[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:18]OFD Sender: No OFD packet to send [03:23:23]OFD Sender: No OFD packet to send [03:23:28]OFD Sender: No OFD packet to send [03:23:33]OFD Sender: No OFD packet to send [03:23:38]OFD Sender: No OFD packet to send [03:23:43]OFD Sender: No OFD packet to send [03:23:48]OFD Sender: No OFD packet to send [03:23:53]OFD Sender: No OFD packet to send [03:23:58]OFD Sender: No OFD packet to send [03:24:03]OFD Sender: No OFD packet to send [03:24:08]OFD Sender: No OFD packet to send [03:24:13]OFD Sender: No OFD packet to send [03:24:18]OFD Sender: No OFD packet to send [03:24:23]OFD Sender: No OFD packet to send [03:24:28]OFD Sender: No OFD packet to send [03:24:33]OFD Sender: No OFD packet to send [03:24:38]OFD Sender: No OFD packet to send [03:24:43]OFD Sender: No OFD packet to send [03:24:48]OFD Sender: No OFD packet to send [03:24:53]OFD Sender: No OFD packet to send [03:24:58]OFD Sender: No OFD packet to send [03:25:03]OFD Sender: No OFD packet to send [03:25:08]OFD Sender: No OFD packet to send [03:25:13]OFD Sender: No OFD packet to send [03:25:18]OFD Sender: No OFD packet to send [03:25:23]OFD Sender: No OFD packet to send [03:25:28]OFD Sender: No OFD packet to send [03:25:33]OFD Sender: No OFD packet to send [03:25:38]OFD Sender: No OFD packet to send [03:25:43]OFD Sender: No OFD packet to send [03:25:48]OFD Sender: No OFD packet to send [03:25:53]OFD Sender: No OFD packet to send [03:25:58]OFD Sender: No OFD packet to send [03:26:03]OFD Sender: No OFD packet to send [03:26:08]OFD Sender: No OFD packet to send [03:26:13]OFD Sender: No OFD packet to send [03:26:18]OFD Sender: No OFD packet to send [03:26:23]OFD Sender: No OFD packet to send [03:26:28]OFD Sender: No OFD packet to send [03:26:33]OFD Sender: No OFD packet to send [03:26:38]OFD Sender: No OFD packet to send [03:26:43]OFD Sender: No OFD packet to send [03:26:48]OFD Sender: No OFD packet to send [03:26:53]OFD Sender: No OFD packet to send [03:26:58]OFD Sender: No OFD packet to send [03:27:03]OFD Sender: No OFD packet to send [03:27:08]OFD Sender: No OFD packet to send [03:27:13]OFD Sender: No OFD packet to send [03:27:18]OFD Sender: No OFD packet to send [03:27:23]OFD Sender: No OFD packet to send [03:27:28]OFD Sender: No OFD packet to send [03:27:33]OFD Sender: No OFD packet to send [03:27:38]OFD Sender: No OFD packet to send [03:27:43]OFD Sender: No OFD packet to send [03:27:48]OFD Sender: No OFD packet to send [03:27:53]OFD Sender: No OFD packet to send [03:27:58]OFD Sender: No OFD packet to send [03:28:03]OFD Sender: No OFD packet to send [03:28:08]OFD Sender: No OFD packet to send [03:28:13]OFD Sender: No OFD packet to send [03:28:18]OFD Sender: No OFD packet to send [03:28:23]OFD Sender: No OFD packet to send [03:28:28]OFD Sender: No OFD packet to send [03:28:33]OFD Sender: No OFD packet to send [03:28:38]OFD Sender: No OFD packet to send [03:28:43]OFD Sender: No OFD packet to send [03:28:48]OFD Sender: No OFD packet to send [03:28:53]OFD Sender: No OFD packet to send [03:28:58]OFD Sender: No OFD packet to send [03:29:03]OFD Sender: No OFD packet to send [03:29:08]OFD Sender: No OFD packet to send [03:29:13]OFD Sender: No OFD packet to send [03:29:18]OFD Sender: No OFD packet to send [03:29:23]OFD Sender: No OFD packet to send [03:29:28]OFD Sender: No OFD packet to send [03:29:33]OFD Sender: No OFD packet to send [03:29:38]OFD Sender: No OFD packet to send [03:29:43]OFD Sender: No OFD packet to send [03:29:48]OFD Sender: No OFD packet to send [03:29:53]OFD Sender: No OFD packet to send [03:29:58]OFD Sender: No OFD packet to send [03:30:03]OFD Sender: No OFD packet to send [03:30:08]OFD Sender: No OFD packet to send [03:30:13]OFD Sender: No OFD packet to send [03:30:18]OFD Sender: No OFD packet to send [03:30:23]OFD Sender: No OFD packet to send [03:30:28]OFD Sender: No OFD packet to send [03:30:33]OFD Sender: No OFD packet to send [03:30:38]OFD Sender: No OFD packet to send [03:30:43]OFD Sender: No OFD packet to send [03:30:48]OFD Sender: No OFD packet to send [03:30:53]OFD Sender: No OFD packet to send [03:30:58]OFD Sender: No OFD packet to send [03:31:03]OFD Sender: No OFD packet to send [03:31:08]OFD Sender: No OFD packet to send [03:31:13]OFD Sender: No OFD packet to send [03:31:18]OFD Sender: No OFD packet to send [03:31:23]OFD Sender: No OFD packet to send [03:31:28]OFD Sender: No OFD packet to send [03:31:33]OFD Sender: No OFD packet to send [03:31:38]OFD Sender: No OFD packet to send [03:31:43]OFD Sender: No OFD packet to send [03:31:48]OFD Sender: No OFD packet to send [03:31:53]OFD Sender: No OFD packet to send [03:31:58]OFD Sender: No OFD packet to send [03:32:03]OFD Sender: No OFD packet to send [03:32:08]OFD Sender: No OFD packet to send [03:32:13]OFD Sender: No OFD packet to send [03:32:18]OFD Sender: No OFD packet to send [03:32:23]OFD Sender: No OFD packet to send [03:32:28]OFD Sender: No OFD packet to send [03:32:33]OFD Sender: No OFD packet to send [03:32:38]OFD Sender: No OFD packet to send [03:32:43]OFD Sender: No OFD packet to send [03:32:48]OFD Sender: No OFD packet to send [03:32:53]OFD Sender: No OFD packet to send [03:32:58]OFD Sender: No OFD packet to send [03:33:03]OFD Sender: No OFD packet to send [03:33:08]OFD Sender: No OFD packet to send [03:33:13]OFD Sender: No OFD packet to send [03:33:18]OFD Sender: No OFD packet to send [03:33:23]OFD Sender: No OFD packet to send [03:33:28]OFD Sender: No OFD packet to send [03:33:33]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:44]OFD Sender: No OFD packet to send [03:41:49]OFD Sender: No OFD packet to send [03:41:54]OFD Sender: No OFD packet to send [03:41:59]OFD Sender: No OFD packet to send [03:42:04]OFD Sender: No OFD packet to send [03:42:09]OFD Sender: No OFD packet to send [03:42:14]OFD Sender: No OFD packet to send [03:42:19]OFD Sender: No OFD packet to send [03:42:24]OFD Sender: No OFD packet to send [03:42:29]OFD Sender: No OFD packet to send [03:42:34]OFD Sender: No OFD packet to send [03:42:39]OFD Sender: No OFD packet to send [03:42:44]OFD Sender: No OFD packet to send [03:42:49]OFD Sender: No OFD packet to send [03:42:54]OFD Sender: No OFD packet to send [03:42:59]OFD Sender: No OFD packet to send [03:43:04]OFD Sender: No OFD packet to send [03:43:09]OFD Sender: No OFD packet to send [03:43:14]OFD Sender: No OFD packet to send [03:43:19]OFD Sender: No OFD packet to send [03:43:24]OFD Sender: No OFD packet to send [03:43:29]OFD Sender: No OFD packet to send [03:43:34]OFD Sender: No OFD packet to send [03:43:39]OFD Sender: No OFD packet to send [03:43:44]OFD Sender: No OFD packet to send [03:43:49]OFD Sender: No OFD packet to send [03:43:54]OFD Sender: No OFD packet to send [03:43:59]OFD Sender: No OFD packet to send [03:44:04]OFD Sender: No OFD packet to send [03:44:09]OFD Sender: No OFD packet to send [03:44:14]OFD Sender: No OFD packet to send [03:44:19]OFD Sender: No OFD packet to send [03:44:24]OFD Sender: No OFD packet to send [03:44:29]OFD Sender: No OFD packet to send [03:44:34]OFD Sender: No OFD packet to send [03:44:39]OFD Sender: No OFD packet to send [03:44:44]OFD Sender: No OFD packet to send [03:44:49]OFD Sender: No OFD packet to send [03:44:54]OFD Sender: No OFD packet to send [03:44:59]OFD Sender: No OFD packet to send [03:45:04]OFD Sender: No OFD packet to send [03:45:09]OFD Sender: No OFD packet to send [03:45:14]OFD Sender: No OFD packet to send [03:45:19]OFD Sender: No OFD packet to send [03:45:24]OFD Sender: No OFD packet to send [03:45:29]OFD Sender: No OFD packet to send [03:45:34]OFD Sender: No OFD packet to send [03:45:39]OFD Sender: No OFD packet to send [03:45:44]OFD Sender: No OFD packet to send [03:45:49]OFD Sender: No OFD packet to send [03:45:54]OFD Sender: No OFD packet to send [03:45:59]OFD Sender: No OFD packet to send [03:46:04]OFD Sender: No OFD packet to send [03:46:09]OFD Sender: No OFD packet to send [03:46:14]OFD Sender: No OFD packet to send [03:46:19]OFD Sender: No OFD packet to send [03:46:24]OFD Sender: No OFD packet to send [03:46:29]OFD Sender: No OFD packet to send [03:46:34]OFD Sender: No OFD packet to send [03:46:39]OFD Sender: No OFD packet to send [03:46:44]OFD Sender: No OFD packet to send [03:46:49]OFD Sender: No OFD packet to send [03:46:54]OFD Sender: No OFD packet to send [03:46:59]OFD Sender: No OFD packet to send [03:47:04]OFD Sender: No OFD packet to send [03:47:09]OFD Sender: No OFD packet to send [03:47:14]OFD Sender: No OFD packet to send [03:47:19]OFD Sender: No OFD packet to send [03:47:24]OFD Sender: No OFD packet to send [03:47:29]OFD Sender: No OFD packet to send [03:47:34]OFD Sender: No OFD packet to send [03:47:39]OFD Sender: No OFD packet to send [03:47:44]OFD Sender: No OFD packet to send [03:47:49]OFD Sender: No OFD packet to send [03:47:54]OFD Sender: No OFD packet to send [03:47:59]OFD Sender: No OFD packet to send [03:48:04]OFD Sender: No OFD packet to send [03:48:09]OFD Sender: No OFD packet to send [03:48:14]OFD Sender: No OFD packet to send [03:48:19]OFD Sender: No OFD packet to send [03:48:24]OFD Sender: No OFD packet to send [03:48:29]OFD Sender: No OFD packet to send [03:48:34]OFD Sender: No OFD packet to send [03:48:39]OFD Sender: No OFD packet to send [03:48:44]OFD Sender: No OFD packet to send [03:48:49]OFD Sender: No OFD packet to send [03:48:54]OFD Sender: No OFD packet to send [03:48:59]OFD Sender: No OFD packet to send [03:49:04]OFD Sender: No OFD packet to send [03:49:09]OFD Sender: No OFD packet to send [03:49:14]OFD Sender: No OFD packet to send [03:49:19]OFD Sender: No OFD packet to send [03:49:24]OFD Sender: No OFD packet to send [03:49:29]OFD Sender: No OFD packet to send [03:49:34]OFD Sender: No OFD packet to send [03:49:39]OFD Sender: No OFD packet to send [03:49:44]OFD Sender: No OFD packet to send [03:49:49]OFD Sender: No OFD packet to send [03:49:54]OFD Sender: No OFD packet to send [03:49:59]OFD Sender: No OFD packet to send [03:50:04]OFD Sender: No OFD packet to send [03:50:09]OFD Sender: No OFD packet to send [03:50:14]OFD Sender: No OFD packet to send [03:50:19]OFD Sender: No OFD packet to send [03:50:24]OFD Sender: No OFD packet to send [03:50:29]OFD Sender: No OFD packet to send [03:50:34]OFD Sender: No OFD packet to send [03:50:39]OFD Sender: No OFD packet to send [03:50:44]OFD Sender: No OFD packet to send [03:50:49]OFD Sender: No OFD packet to send [03:50:54]OFD Sender: No OFD packet to send [03:50:59]OFD Sender: No OFD packet to send [03:51:04]OFD Sender: No OFD packet to send [03:51:09]OFD Sender: No OFD packet to send [03:51:14]OFD Sender: No OFD packet to send [03:51:19]OFD Sender: No OFD packet to send [03:51:24]OFD Sender: No OFD packet to send [03:51:29]OFD Sender: No OFD packet to send [03:51:34]OFD Sender: No OFD packet to send [03:51:39]OFD Sender: No OFD packet to send [03:51:44]OFD Sender: No OFD packet to send [03:51:49]OFD Sender: No OFD packet to send [03:51:54]OFD Sender: No OFD packet to send [03:51:59]OFD Sender: No OFD packet to send [03:52:04]OFD Sender: No OFD packet to send [03:52:09]OFD Sender: No OFD packet to send [03:52:14]OFD Sender: No OFD packet to send [03:52:19]OFD Sender: No OFD packet to send [03:52:24]OFD Sender: No OFD packet to send [03:52:29]OFD Sender: No OFD packet to send [03:52:34]OFD Sender: No OFD packet to send [03:52:39]OFD Sender: No OFD packet to send [03:52:44]OFD Sender: No OFD packet to send [03:52:49]OFD Sender: No OFD packet to send [03:52:54]OFD Sender: No OFD packet to send [03:52:59]OFD Sender: No OFD packet to send [03:53:04]OFD Sender: No OFD packet to send [03:53:09]OFD Sender: No OFD packet to send [03:53:14]OFD Sender: No OFD packet to send [03:53:19]OFD Sender: No OFD packet to send [03:53:24]OFD Sender: No OFD packet to send [03:53:29]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:15]OFD Sender: No OFD packet to send [04:00:20]OFD Sender: No OFD packet to send [04:00:25]OFD Sender: No OFD packet to send [04:00:30]OFD Sender: No OFD packet to send [04:00:35]OFD Sender: No OFD packet to send [04:00:40]OFD Sender: No OFD packet to send [04:00:45]OFD Sender: No OFD packet to send [04:00:50]OFD Sender: No OFD packet to send [04:00:55]OFD Sender: No OFD packet to send [04:01:00]OFD Sender: No OFD packet to send [04:01:05]OFD Sender: No OFD packet to send [04:01:10]OFD Sender: No OFD packet to send [04:01:15]OFD Sender: No OFD packet to send [04:01:20]OFD Sender: No OFD packet to send [04:01:25]OFD Sender: No OFD packet to send [04:01:30]OFD Sender: No OFD packet to send [04:01:35]OFD Sender: No OFD packet to send [04:01:40]OFD Sender: No OFD packet to send [04:01:45]OFD Sender: No OFD packet to send [04:01:50]OFD Sender: No OFD packet to send [04:01:55]OFD Sender: No OFD packet to send [04:02:00]OFD Sender: No OFD packet to send [04:02:05]OFD Sender: No OFD packet to send [04:02:10]OFD Sender: No OFD packet to send [04:02:15]OFD Sender: No OFD packet to send [04:02:20]OFD Sender: No OFD packet to send [04:02:25]OFD Sender: No OFD packet to send [04:02:30]OFD Sender: No OFD packet to send [04:02:35]OFD Sender: No OFD packet to send [04:02:40]OFD Sender: No OFD packet to send [04:02:45]OFD Sender: No OFD packet to send [04:02:50]OFD Sender: No OFD packet to send [04:02:55]OFD Sender: No OFD packet to send [04:03:00]OFD Sender: No OFD packet to send [04:03:05]OFD Sender: No OFD packet to send [04:03:10]OFD Sender: No OFD packet to send [04:03:15]OFD Sender: No OFD packet to send [04:03:20]OFD Sender: No OFD packet to send [04:03:25]OFD Sender: No OFD packet to send [04:03:30]OFD Sender: No OFD packet to send [04:03:35]OFD Sender: No OFD packet to send [04:03:40]OFD Sender: No OFD packet to send [04:03:45]OFD Sender: No OFD packet to send [04:03:50]OFD Sender: No OFD packet to send [04:03:55]OFD Sender: No OFD packet to send [04:04:00]OFD Sender: No OFD packet to send [04:04:05]OFD Sender: No OFD packet to send [04:04:10]OFD Sender: No OFD packet to send [04:04:15]OFD Sender: No OFD packet to send [04:04:20]OFD Sender: No OFD packet to send [04:04:25]OFD Sender: No OFD packet to send [04:04:30]OFD Sender: No OFD packet to send [04:04:35]OFD Sender: No OFD packet to send [04:04:40]OFD Sender: No OFD packet to send [04:04:45]OFD Sender: No OFD packet to send [04:04:50]OFD Sender: No OFD packet to send [04:04:55]OFD Sender: No OFD packet to send [04:05:00]OFD Sender: No OFD packet to send [04:05:05]OFD Sender: No OFD packet to send [04:05:10]OFD Sender: No OFD packet to send [04:05:15]OFD Sender: No OFD packet to send [04:05:20]OFD Sender: No OFD packet to send [04:05:25]OFD Sender: No OFD packet to send [04:05:30]OFD Sender: No OFD packet to send [04:05:35]OFD Sender: No OFD packet to send [04:05:40]OFD Sender: No OFD packet to send [04:05:45]OFD Sender: No OFD packet to send [04:05:50]OFD Sender: No OFD packet to send [04:05:55]OFD Sender: No OFD packet to send [04:06:00]OFD Sender: No OFD packet to send [04:06:05]OFD Sender: No OFD packet to send [04:06:10]OFD Sender: No OFD packet to send [04:06:15]OFD Sender: No OFD packet to send [04:06:20]OFD Sender: No OFD packet to send [04:06:25]OFD Sender: No OFD packet to send [04:06:30]OFD Sender: No OFD packet to send [04:06:35]OFD Sender: No OFD packet to send [04:06:40]OFD Sender: No OFD packet to send [04:06:45]OFD Sender: No OFD packet to send [04:06:50]OFD Sender: No OFD packet to send [04:06:55]OFD Sender: No OFD packet to send [04:07:00]OFD Sender: No OFD packet to send [04:07:05]OFD Sender: No OFD packet to send [04:07:10]OFD Sender: No OFD packet to send [04:07:15]OFD Sender: No OFD packet to send [04:07:20]OFD Sender: No OFD packet to send [04:07:25]OFD Sender: No OFD packet to send [04:07:30]OFD Sender: No OFD packet to send [04:07:35]OFD Sender: No OFD packet to send [04:07:40]OFD Sender: No OFD packet to send [04:07:45]OFD Sender: No OFD packet to send [04:07:50]OFD Sender: No OFD packet to send [04:07:55]OFD Sender: No OFD packet to send [04:08:00]OFD Sender: No OFD packet to send [04:08:05]OFD Sender: No OFD packet to send [04:08:10]OFD Sender: No OFD packet to send [04:08:15]OFD Sender: No OFD packet to send [04:08:20]OFD Sender: No OFD packet to send [04:08:25]OFD Sender: No OFD packet to send [04:08:30]OFD Sender: No OFD packet to send [04:08:35]OFD Sender: No OFD packet to send [04:08:40]OFD Sender: No OFD packet to send [04:08:45]OFD Sender: No OFD packet to send [04:08:50]OFD Sender: No OFD packet to send [04:08:55]OFD Sender: No OFD packet to send [04:09:00]OFD Sender: No OFD packet to send [04:09:05]OFD Sender: No OFD packet to send [04:09:10]OFD Sender: No OFD packet to send [04:09:15]OFD Sender: No OFD packet to send [04:09:20]OFD Sender: No OFD packet to send [04:09:25]OFD Sender: No OFD packet to send [04:09:30]OFD Sender: No OFD packet to send [04:09:35]OFD Sender: No OFD packet to send [04:09:40]OFD Sender: No OFD packet to send [04:09:45]OFD Sender: No OFD packet to send [04:09:50]OFD Sender: No OFD packet to send [04:09:55]OFD Sender: No OFD packet to send [04:10:00]OFD Sender: No OFD packet to send [04:10:05]OFD Sender: No OFD packet to send [04:10:10]OFD Sender: No OFD packet to send [04:10:15]OFD Sender: No OFD packet to send [04:10:20]OFD Sender: No OFD packet to send [04:10:25]OFD Sender: No OFD packet to send [04:10:30]OFD Sender: No OFD packet to send [04:10:35]OFD Sender: No OFD packet to send [04:10:40]OFD Sender: No OFD packet to send [04:10:45]OFD Sender: No OFD packet to send [04:10:50]OFD Sender: No OFD packet to send [04:10:55]OFD Sender: No OFD packet to send [04:11:00]OFD Sender: No OFD packet to send [04:11:05]OFD Sender: No OFD packet to send [04:11:10]OFD Sender: No OFD packet to send [04:11:15]OFD Sender: No OFD packet to send [04:11:20]OFD Sender: No OFD packet to send [04:11:25]OFD Sender: No OFD packet to send [04:11:30]OFD Sender: No OFD packet to send [04:11:35]OFD Sender: No OFD packet to send [04:11:40]OFD Sender: No OFD packet to send [04:11:45]OFD Sender: No OFD packet to send [04:11:50]OFD Sender: No OFD packet to send [04:11:55]OFD Sender: No OFD packet to send [04:12:00]OFD Sender: No OFD packet to send [04:12:05]OFD Sender: No OFD packet to send [04:12:10]OFD Sender: No OFD packet to send [04:12:15]OFD Sender: No OFD packet to send [04:12:20]OFD Sender: No OFD packet to send [04:12:25]OFD Sender: No OFD packet to send [04:12:30]OFD Sender: No OFD packet to send [04:12:35]OFD Sender: No OFD packet to send [04:12:40]OFD Sender: No OFD packet to send [04:12:45]OFD Sender: No OFD packet to send [04:12:50]OFD Sender: No OFD packet to send [04:12:55]OFD Sender: No OFD packet to send [04:13:00]OFD Sender: No OFD packet to send [04:13:05]OFD Sender: No OFD packet to send [04:13:10]OFD Sender: No OFD packet to send [04:13:15]OFD Sender: No OFD packet to send [04:13:20]OFD Sender: No OFD packet to send [04:13:26]OFD Sender: No OFD packet to send [04:13:31]OFD Sender: No OFD packet to send [04:13:36]OFD Sender: No OFD packet to send [04:13:41]OFD Sender: No OFD packet to send [04:13:46]OFD Sender: No OFD packet to send [04:13:51]OFD Sender: No OFD packet to send [04:13:56]OFD Sender: No OFD packet to send [04:14:01]OFD Sender: No OFD packet to send [04:14:06]OFD Sender: No OFD packet to send [04:14:11]OFD Sender: No OFD packet to send [04:14:16]OFD Sender: No OFD packet to send [04:14:21]OFD Sender: No OFD packet to send [04:14:26]OFD Sender: No OFD packet to send [04:14:31]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: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:46]OFD Sender: No OFD packet to send [04:18:51]OFD Sender: No OFD packet to send [04:18:56]OFD Sender: No OFD packet to send [04:19:01]OFD Sender: No OFD packet to send [04:19:06]OFD Sender: No OFD packet to send [04:19:11]OFD Sender: No OFD packet to send [04:19:16]OFD Sender: No OFD packet to send [04:19:21]OFD Sender: No OFD packet to send [04:19:26]OFD Sender: No OFD packet to send [04:19:31]OFD Sender: No OFD packet to send [04:19:36]OFD Sender: No OFD packet to send [04:19:41]OFD Sender: No OFD packet to send [04:19:46]OFD Sender: No OFD packet to send [04:19:51]OFD Sender: No OFD packet to send [04:19:56]OFD Sender: No OFD packet to send [04:20:01]OFD Sender: No OFD packet to send [04:20:06]OFD Sender: No OFD packet to send [04:20:11]OFD Sender: No OFD packet to send [04:20:16]OFD Sender: No OFD packet to send [04:20:21]OFD Sender: No OFD packet to send [04:20:26]OFD Sender: No OFD packet to send [04:20:31]OFD Sender: No OFD packet to send [04:20:36]OFD Sender: No OFD packet to send [04:20:41]OFD Sender: No OFD packet to send [04:20:46]OFD Sender: No OFD packet to send [04:20:51]OFD Sender: No OFD packet to send [04:20:56]OFD Sender: No OFD packet to send [04:21:01]OFD Sender: No OFD packet to send [04:21:06]OFD Sender: No OFD packet to send [04:21:11]OFD Sender: No OFD packet to send [04:21:16]OFD Sender: No OFD packet to send [04:21:21]OFD Sender: No OFD packet to send [04:21:26]OFD Sender: No OFD packet to send [04:21:31]OFD Sender: No OFD packet to send [04:21:36]OFD Sender: No OFD packet to send [04:21:41]OFD Sender: No OFD packet to send [04:21:46]OFD Sender: No OFD packet to send [04:21:51]OFD Sender: No OFD packet to send [04:21:56]OFD Sender: No OFD packet to send [04:22:01]OFD Sender: No OFD packet to send [04:22:06]OFD Sender: No OFD packet to send [04:22:11]OFD Sender: No OFD packet to send [04:22:16]OFD Sender: No OFD packet to send [04:22:21]OFD Sender: No OFD packet to send [04:22:26]OFD Sender: No OFD packet to send [04:22:31]OFD Sender: No OFD packet to send [04:22:36]OFD Sender: No OFD packet to send [04:22:41]OFD Sender: No OFD packet to send [04:22:46]OFD Sender: No OFD packet to send [04:22:51]OFD Sender: No OFD packet to send [04:22:56]OFD Sender: No OFD packet to send [04:23:01]OFD Sender: No OFD packet to send [04:23:06]OFD Sender: No OFD packet to send [04:23:11]OFD Sender: No OFD packet to send [04:23:16]OFD Sender: No OFD packet to send [04:23:21]OFD Sender: No OFD packet to send [04:23:26]OFD Sender: No OFD packet to send [04:23:31]OFD Sender: No OFD packet to send [04:23:36]OFD Sender: No OFD packet to send [04:23:41]OFD Sender: No OFD packet to send [04:23:46]OFD Sender: No OFD packet to send [04:23:51]OFD Sender: No OFD packet to send [04:23:56]OFD Sender: No OFD packet to send [04:24:01]OFD Sender: No OFD packet to send [04:24:06]OFD Sender: No OFD packet to send [04:24:11]OFD Sender: No OFD packet to send [04:24:16]OFD Sender: No OFD packet to send [04:24:21]OFD Sender: No OFD packet to send [04:24:26]OFD Sender: No OFD packet to send [04:24:31]OFD Sender: No OFD packet to send [04:24:36]OFD Sender: No OFD packet to send [04:24:41]OFD Sender: No OFD packet to send [04:24:46]OFD Sender: No OFD packet to send [04:24:51]OFD Sender: No OFD packet to send [04:24:56]OFD Sender: No OFD packet to send [04:25:01]OFD Sender: No OFD packet to send [04:25:06]OFD Sender: No OFD packet to send [04:25:11]OFD Sender: No OFD packet to send [04:25:16]OFD Sender: No OFD packet to send [04:25:21]OFD Sender: No OFD packet to send [04:25:26]OFD Sender: No OFD packet to send [04:25:31]OFD Sender: No OFD packet to send [04:25:36]OFD Sender: No OFD packet to send [04:25:41]OFD Sender: No OFD packet to send [04:25:46]OFD Sender: No OFD packet to send [04:25:51]OFD Sender: No OFD packet to send [04:25:56]OFD Sender: No OFD packet to send [04:26:01]OFD Sender: No OFD packet to send [04:26:06]OFD Sender: No OFD packet to send [04:26:11]OFD Sender: No OFD packet to send [04:26:16]OFD Sender: No OFD packet to send [04:26:21]OFD Sender: No OFD packet to send [04:26:26]OFD Sender: No OFD packet to send [04:26:31]OFD Sender: No OFD packet to send [04:26:36]OFD Sender: No OFD packet to send [04:26:41]OFD Sender: No OFD packet to send [04:26:46]OFD Sender: No OFD packet to send [04:26:51]OFD Sender: No OFD packet to send [04:26:56]OFD Sender: No OFD packet to send [04:27:01]OFD Sender: No OFD packet to send [04:27:06]OFD Sender: No OFD packet to send [04:27:11]OFD Sender: No OFD packet to send [04:27:16]OFD Sender: No OFD packet to send [04:27:21]OFD Sender: No OFD packet to send [04:27:26]OFD Sender: No OFD packet to send [04:27:31]OFD Sender: No OFD packet to send [04:27:36]OFD Sender: No OFD packet to send [04:27:41]OFD Sender: No OFD packet to send [04:27:46]OFD Sender: No OFD packet to send [04:27:51]OFD Sender: No OFD packet to send [04:27:56]OFD Sender: No OFD packet to send [04:28:01]OFD Sender: No OFD packet to send [04:28:06]OFD Sender: No OFD packet to send [04:28:11]OFD Sender: No OFD packet to send [04:28:16]OFD Sender: No OFD packet to send [04:28:21]OFD Sender: No OFD packet to send [04:28:26]OFD Sender: No OFD packet to send [04:28:31]OFD Sender: No OFD packet to send [04:28:36]OFD Sender: No OFD packet to send [04:28:41]OFD Sender: No OFD packet to send [04:28:46]OFD Sender: No OFD packet to send [04:28:51]OFD Sender: No OFD packet to send [04:28:56]OFD Sender: No OFD packet to send [04:29:01]OFD Sender: No OFD packet to send [04:29:06]OFD Sender: No OFD packet to send [04:29:11]OFD Sender: No OFD packet to send [04:29:16]OFD Sender: No OFD packet to send [04:29:21]OFD Sender: No OFD packet to send [04:29:26]OFD Sender: No OFD packet to send [04:29:31]OFD Sender: No OFD packet to send [04:29:36]OFD Sender: No OFD packet to send [04:29:41]OFD Sender: No OFD packet to send [04:29:46]OFD Sender: No OFD packet to send [04:29:51]OFD Sender: No OFD packet to send [04:29:56]OFD Sender: No OFD packet to send [04:30:01]OFD Sender: No OFD packet to send [04:30:06]OFD Sender: No OFD packet to send [04:30:11]OFD Sender: No OFD packet to send [04:30:16]OFD Sender: No OFD packet to send [04:30:21]OFD Sender: No OFD packet to send [04:30:26]OFD Sender: No OFD packet to send [04:30:31]OFD Sender: No OFD packet to send [04:30:36]OFD Sender: No OFD packet to send [04:30:41]OFD Sender: No OFD packet to send [04:30:46]OFD Sender: No OFD packet to send [04:30:51]OFD Sender: No OFD packet to send [04:30:56]OFD Sender: No OFD packet to send [04:31:01]OFD Sender: No OFD packet to send [04:31:06]OFD Sender: No OFD packet to send [04:31:11]OFD Sender: No OFD packet to send [04:31:16]OFD Sender: No OFD packet to send [04:31:21]OFD Sender: No OFD packet to send [04:31:26]OFD Sender: No OFD packet to send [04:31:31]OFD Sender: No OFD packet to send [04:31:36]OFD Sender: No OFD packet to send [04:31:41]OFD Sender: No OFD packet to send [04:31:46]OFD Sender: No OFD packet to send [04:31:51]OFD Sender: No OFD packet to send [04:31:56]OFD Sender: No OFD packet to send [04:32:01]OFD Sender: No OFD packet to send [04:32:06]OFD Sender: No OFD packet to send [04:32:11]OFD Sender: No OFD packet to send [04:32:16]OFD Sender: No OFD packet to send [04:32:21]OFD Sender: No OFD packet to send [04:32:26]OFD Sender: No OFD packet to send [04:32:31]OFD Sender: No OFD packet to send [04:32:36]OFD Sender: No OFD packet to send [04:32:41]OFD Sender: No OFD packet to send [04:32:46]OFD Sender: No OFD packet to send [04:32:51]OFD Sender: No OFD packet to send [04:32:56]OFD Sender: No OFD packet to send [04:33:01]OFD Sender: No OFD packet to send [04:33:06]OFD Sender: No OFD packet to send [04:33:11]OFD Sender: No OFD packet to send [04:33:16]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:17]OFD Sender: No OFD packet to send [04:37:22]OFD Sender: No OFD packet to send [04:37:27]OFD Sender: No OFD packet to send [04:37:32]OFD Sender: No OFD packet to send [04:37:37]OFD Sender: No OFD packet to send [04:37:42]OFD Sender: No OFD packet to send [04:37:47]OFD Sender: No OFD packet to send [04:37:52]OFD Sender: No OFD packet to send [04:37:57]OFD Sender: No OFD packet to send [04:38:02]OFD Sender: No OFD packet to send [04:38:07]OFD Sender: No OFD packet to send [04:38:12]OFD Sender: No OFD packet to send [04:38:17]OFD Sender: No OFD packet to send [04:38:22]OFD Sender: No OFD packet to send [04:38:27]OFD Sender: No OFD packet to send [04:38:32]OFD Sender: No OFD packet to send [04:38:37]OFD Sender: No OFD packet to send [04:38:42]OFD Sender: No OFD packet to send [04:38:47]OFD Sender: No OFD packet to send [04:38:52]OFD Sender: No OFD packet to send [04:38:57]OFD Sender: No OFD packet to send [04:39:02]OFD Sender: No OFD packet to send [04:39:07]OFD Sender: No OFD packet to send [04:39:12]OFD Sender: No OFD packet to send [04:39:17]OFD Sender: No OFD packet to send [04:39:22]OFD Sender: No OFD packet to send [04:39:27]OFD Sender: No OFD packet to send [04:39:32]OFD Sender: No OFD packet to send [04:39:37]OFD Sender: No OFD packet to send [04:39:42]OFD Sender: No OFD packet to send [04:39:47]OFD Sender: No OFD packet to send [04:39:52]OFD Sender: No OFD packet to send [04:39:57]OFD Sender: No OFD packet to send [04:40:02]OFD Sender: No OFD packet to send [04:40:07]OFD Sender: No OFD packet to send [04:40:12]OFD Sender: No OFD packet to send [04:40:17]OFD Sender: No OFD packet to send [04:40:22]OFD Sender: No OFD packet to send [04:40:27]OFD Sender: No OFD packet to send [04:40:32]OFD Sender: No OFD packet to send [04:40:37]OFD Sender: No OFD packet to send [04:40:42]OFD Sender: No OFD packet to send [04:40:47]OFD Sender: No OFD packet to send [04:40:52]OFD Sender: No OFD packet to send [04:40:57]OFD Sender: No OFD packet to send [04:41:02]OFD Sender: No OFD packet to send [04:41:07]OFD Sender: No OFD packet to send [04:41:12]OFD Sender: No OFD packet to send [04:41:17]OFD Sender: No OFD packet to send [04:41:22]OFD Sender: No OFD packet to send [04:41:27]OFD Sender: No OFD packet to send [04:41:32]OFD Sender: No OFD packet to send [04:41:37]OFD Sender: No OFD packet to send [04:41:42]OFD Sender: No OFD packet to send [04:41:47]OFD Sender: No OFD packet to send [04:41:52]OFD Sender: No OFD packet to send [04:41:57]OFD Sender: No OFD packet to send [04:42:02]OFD Sender: No OFD packet to send [04:42:07]OFD Sender: No OFD packet to send [04:42:12]OFD Sender: No OFD packet to send [04:42:17]OFD Sender: No OFD packet to send [04:42:22]OFD Sender: No OFD packet to send [04:42:27]OFD Sender: No OFD packet to send [04:42:32]OFD Sender: No OFD packet to send [04:42:37]OFD Sender: No OFD packet to send [04:42:42]OFD Sender: No OFD packet to send [04:42:47]OFD Sender: No OFD packet to send [04:42:52]OFD Sender: No OFD packet to send [04:42:57]OFD Sender: No OFD packet to send [04:43:02]OFD Sender: No OFD packet to send [04:43:07]OFD Sender: No OFD packet to send [04:43:12]OFD Sender: No OFD packet to send [04:43:17]OFD Sender: No OFD packet to send [04:43:22]OFD Sender: No OFD packet to send [04:43:27]OFD Sender: No OFD packet to send [04:43:32]OFD Sender: No OFD packet to send [04:43:37]OFD Sender: No OFD packet to send [04:43:42]OFD Sender: No OFD packet to send [04:43:47]OFD Sender: No OFD packet to send [04:43:52]OFD Sender: No OFD packet to send [04:43:57]OFD Sender: No OFD packet to send [04:44:02]OFD Sender: No OFD packet to send [04:44:07]OFD Sender: No OFD packet to send [04:44:12]OFD Sender: No OFD packet to send [04:44:17]OFD Sender: No OFD packet to send [04:44:22]OFD Sender: No OFD packet to send [04:44:27]OFD Sender: No OFD packet to send [04:44:32]OFD Sender: No OFD packet to send [04:44:37]OFD Sender: No OFD packet to send [04:44:42]OFD Sender: No OFD packet to send [04:44:47]OFD Sender: No OFD packet to send [04:44:52]OFD Sender: No OFD packet to send [04:44:57]OFD Sender: No OFD packet to send [04:45:02]OFD Sender: No OFD packet to send [04:45:07]OFD Sender: No OFD packet to send [04:45:12]OFD Sender: No OFD packet to send [04:45:17]OFD Sender: No OFD packet to send [04:45:22]OFD Sender: No OFD packet to send [04:45:27]OFD Sender: No OFD packet to send [04:45:32]OFD Sender: No OFD packet to send [04:45:37]OFD Sender: No OFD packet to send [04:45:42]OFD Sender: No OFD packet to send [04:45:47]OFD Sender: No OFD packet to send [04:45:52]OFD Sender: No OFD packet to send [04:45:57]OFD Sender: No OFD packet to send [04:46:02]OFD Sender: No OFD packet to send [04:46:07]OFD Sender: No OFD packet to send [04:46:12]OFD Sender: No OFD packet to send [04:46:17]OFD Sender: No OFD packet to send [04:46:22]OFD Sender: No OFD packet to send [04:46:27]OFD Sender: No OFD packet to send [04:46:32]OFD Sender: No OFD packet to send [04:46:37]OFD Sender: No OFD packet to send [04:46:42]OFD Sender: No OFD packet to send [04:46:47]OFD Sender: No OFD packet to send [04:46:52]OFD Sender: No OFD packet to send [04:46:57]OFD Sender: No OFD packet to send [04:47:02]OFD Sender: No OFD packet to send [04:47:07]OFD Sender: No OFD packet to send [04:47:12]OFD Sender: No OFD packet to send [04:47:17]OFD Sender: No OFD packet to send [04:47:22]OFD Sender: No OFD packet to send [04:47:27]OFD Sender: No OFD packet to send [04:47:32]OFD Sender: No OFD packet to send [04:47:37]OFD Sender: No OFD packet to send [04:47:42]OFD Sender: No OFD packet to send [04:47:47]OFD Sender: No OFD packet to send [04:47:52]OFD Sender: No OFD packet to send [04:47:57]OFD Sender: No OFD packet to send [04:48:02]OFD Sender: No OFD packet to send [04:48:07]OFD Sender: No OFD packet to send [04:48:12]OFD Sender: No OFD packet to send [04:48:17]OFD Sender: No OFD packet to send [04:48:22]OFD Sender: No OFD packet to send [04:48:27]OFD Sender: No OFD packet to send [04:48:32]OFD Sender: No OFD packet to send [04:48:37]OFD Sender: No OFD packet to send [04:48:42]OFD Sender: No OFD packet to send [04:48:47]OFD Sender: No OFD packet to send [04:48:52]OFD Sender: No OFD packet to send [04:48:57]OFD Sender: No OFD packet to send [04:49:02]OFD Sender: No OFD packet to send [04:49:07]OFD Sender: No OFD packet to send [04:49:12]OFD Sender: No OFD packet to send [04:49:17]OFD Sender: No OFD packet to send [04:49:22]OFD Sender: No OFD packet to send [04:49:27]OFD Sender: No OFD packet to send [04:49:32]OFD Sender: No OFD packet to send [04:49:37]OFD Sender: No OFD packet to send [04:49:42]OFD Sender: No OFD packet to send [04:49:47]OFD Sender: No OFD packet to send [04:49:52]OFD Sender: No OFD packet to send [04:49:57]OFD Sender: No OFD packet to send [04:50:02]OFD Sender: No OFD packet to send [04:50:07]OFD Sender: No OFD packet to send [04:50:12]OFD Sender: No OFD packet to send [04:50:17]OFD Sender: No OFD packet to send [04:50:22]OFD Sender: No OFD packet to send [04:50:27]OFD Sender: No OFD packet to send [04:50:32]OFD Sender: No OFD packet to send [04:50:37]OFD Sender: No OFD packet to send [04:50:42]OFD Sender: No OFD packet to send [04:50:47]OFD Sender: No OFD packet to send [04:50:52]OFD Sender: No OFD packet to send [04:50:57]OFD Sender: No OFD packet to send [04:51:02]OFD Sender: No OFD packet to send [04:51:07]OFD Sender: No OFD packet to send [04:51:12]OFD Sender: No OFD packet to send [04:51:17]OFD Sender: No OFD packet to send [04:51:22]OFD Sender: No OFD packet to send [04:51:27]OFD Sender: No OFD packet to send [04:51:32]OFD Sender: No OFD packet to send [04:51:37]OFD Sender: No OFD packet to send [04:51:42]OFD Sender: No OFD packet to send [04:51:47]OFD Sender: No OFD packet to send [04:51:52]OFD Sender: No OFD packet to send [04:51:57]OFD Sender: No OFD packet to send [04:52:02]OFD Sender: No OFD packet to send [04:52:07]OFD Sender: No OFD packet to send [04:52:12]OFD Sender: No OFD packet to send [04:52:17]OFD Sender: No OFD packet to send [04:52:22]OFD Sender: No OFD packet to send [04:52:27]OFD Sender: No OFD packet to send [04:52:32]OFD Sender: No OFD packet to send [04:52:37]OFD Sender: No OFD packet to send [04:52:42]OFD Sender: No OFD packet to send [04:52:47]OFD Sender: No OFD packet to send [04:52:52]OFD Sender: No OFD packet to send [04:52:57]OFD Sender: No OFD packet to send [04:53:02]OFD Sender: No OFD packet to send [04:53:07]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:43]OFD Sender: No OFD packet to send [04:56:48]OFD Sender: No OFD packet to send [04:56:53]OFD Sender: No OFD packet to send [04:56:58]OFD Sender: No OFD packet to send [04:57:03]OFD Sender: No OFD packet to send [04:57:08]OFD Sender: No OFD packet to send [04:57:13]OFD Sender: No OFD packet to send [04:57:18]OFD Sender: No OFD packet to send [04:57:23]OFD Sender: No OFD packet to send [04:57:28]OFD Sender: No OFD packet to send [04:57:33]OFD Sender: No OFD packet to send [04:57:38]OFD Sender: No OFD packet to send [04:57:43]OFD Sender: No OFD packet to send [04:57:48]OFD Sender: No OFD packet to send [04:57:53]OFD Sender: No OFD packet to send [04:57:58]OFD Sender: No OFD packet to send [04:58:03]OFD Sender: No OFD packet to send [04:58:08]OFD Sender: No OFD packet to send [04:58:13]OFD Sender: No OFD packet to send [04:58:18]OFD Sender: No OFD packet to send [04:58:23]OFD Sender: No OFD packet to send [04:58:28]OFD Sender: No OFD packet to send [04:58:33]OFD Sender: No OFD packet to send [04:58:38]OFD Sender: No OFD packet to send [04:58:43]OFD Sender: No OFD packet to send [04:58:48]OFD Sender: No OFD packet to send [04:58:53]OFD Sender: No OFD packet to send [04:58:58]OFD Sender: No OFD packet to send [04:59:03]OFD Sender: No OFD packet to send [04:59:08]OFD Sender: No OFD packet to send [04:59:13]OFD Sender: No OFD packet to send [04:59:18]OFD Sender: No OFD packet to send [04:59:23]OFD Sender: No OFD packet to send [04:59:28]OFD Sender: No OFD packet to send [04:59:33]OFD Sender: No OFD packet to send [04:59:38]OFD Sender: No OFD packet to send [04:59:43]OFD Sender: No OFD packet to send [04:59:48]OFD Sender: No OFD packet to send [04:59:53]OFD Sender: No OFD packet to send [04:59:58]OFD Sender: No OFD packet to send [05:00:03]OFD Sender: No OFD packet to send [05:00:08]OFD Sender: No OFD packet to send [05:00:13]OFD Sender: No OFD packet to send [05:00:18]OFD Sender: No OFD packet to send [05:00:23]OFD Sender: No OFD packet to send [05:00:28]OFD Sender: No OFD packet to send [05:00:33]OFD Sender: No OFD packet to send [05:00:38]OFD Sender: No OFD packet to send [05:00:43]OFD Sender: No OFD packet to send [05:00:48]OFD Sender: No OFD packet to send [05:00:53]OFD Sender: No OFD packet to send [05:00:58]OFD Sender: No OFD packet to send [05:01:03]OFD Sender: No OFD packet to send [05:01:08]OFD Sender: No OFD packet to send [05:01:13]OFD Sender: No OFD packet to send [05:01:18]OFD Sender: No OFD packet to send [05:01:23]OFD Sender: No OFD packet to send [05:01:28]OFD Sender: No OFD packet to send [05:01:33]OFD Sender: No OFD packet to send [05:01:38]OFD Sender: No OFD packet to send [05:01:43]OFD Sender: No OFD packet to send [05:01:48]OFD Sender: No OFD packet to send [05:01:53]OFD Sender: No OFD packet to send [05:01:58]OFD Sender: No OFD packet to send [05:02:03]OFD Sender: No OFD packet to send [05:02:08]OFD Sender: No OFD packet to send [05:02:13]OFD Sender: No OFD packet to send [05:02:18]OFD Sender: No OFD packet to send [05:02:23]OFD Sender: No OFD packet to send [05:02:28]OFD Sender: No OFD packet to send [05:02:33]OFD Sender: No OFD packet to send [05:02:38]OFD Sender: No OFD packet to send [05:02:43]OFD Sender: No OFD packet to send [05:02:48]OFD Sender: No OFD packet to send [05:02:53]OFD Sender: No OFD packet to send [05:02:58]OFD Sender: No OFD packet to send [05:03:03]OFD Sender: No OFD packet to send [05:03:08]OFD Sender: No OFD packet to send [05:03:13]OFD Sender: No OFD packet to send [05:03:18]OFD Sender: No OFD packet to send [05:03:23]OFD Sender: No OFD packet to send [05:03:28]OFD Sender: No OFD packet to send [05:03:33]OFD Sender: No OFD packet to send [05:03:38]OFD Sender: No OFD packet to send [05:03:43]OFD Sender: No OFD packet to send [05:03:48]OFD Sender: No OFD packet to send [05:03:53]OFD Sender: No OFD packet to send [05:03:58]OFD Sender: No OFD packet to send [05:04:03]OFD Sender: No OFD packet to send [05:04:08]OFD Sender: No OFD packet to send [05:04:13]OFD Sender: No OFD packet to send [05:04:18]OFD Sender: No OFD packet to send [05:04:23]OFD Sender: No OFD packet to send [05:04:28]OFD Sender: No OFD packet to send [05:04:33]OFD Sender: No OFD packet to send [05:04:38]OFD Sender: No OFD packet to send [05:04:43]OFD Sender: No OFD packet to send [05:04:48]OFD Sender: No OFD packet to send [05:04:53]OFD Sender: No OFD packet to send [05:04:58]OFD Sender: No OFD packet to send [05:05:03]OFD Sender: No OFD packet to send [05:05:08]OFD Sender: No OFD packet to send [05:05:13]OFD Sender: No OFD packet to send [05:05:18]OFD Sender: No OFD packet to send [05:05:23]OFD Sender: No OFD packet to send [05:05:28]OFD Sender: No OFD packet to send [05:05:33]OFD Sender: No OFD packet to send [05:05:38]OFD Sender: No OFD packet to send [05:05:43]OFD Sender: No OFD packet to send [05:05:48]OFD Sender: No OFD packet to send [05:05:53]OFD Sender: No OFD packet to send [05:05:58]OFD Sender: No OFD packet to send [05:06:03]OFD Sender: No OFD packet to send [05:06:08]OFD Sender: No OFD packet to send [05:06:13]OFD Sender: No OFD packet to send [05:06:18]OFD Sender: No OFD packet to send [05:06:23]OFD Sender: No OFD packet to send [05:06:28]OFD Sender: No OFD packet to send [05:06:33]OFD Sender: No OFD packet to send [05:06:38]OFD Sender: No OFD packet to send [05:06:43]OFD Sender: No OFD packet to send [05:06:48]OFD Sender: No OFD packet to send [05:06:53]OFD Sender: No OFD packet to send [05:06:58]OFD Sender: No OFD packet to send [05:07:03]OFD Sender: No OFD packet to send [05:07:08]OFD Sender: No OFD packet to send [05:07:13]OFD Sender: No OFD packet to send [05:07:18]OFD Sender: No OFD packet to send [05:07:23]OFD Sender: No OFD packet to send [05:07:28]OFD Sender: No OFD packet to send [05:07:33]OFD Sender: No OFD packet to send [05:07:38]OFD Sender: No OFD packet to send [05:07:43]OFD Sender: No OFD packet to send [05:07:48]OFD Sender: No OFD packet to send [05:07:53]OFD Sender: No OFD packet to send [05:07:58]OFD Sender: No OFD packet to send [05:08:03]OFD Sender: No OFD packet to send [05:08:08]OFD Sender: No OFD packet to send [05:08:13]OFD Sender: No OFD packet to send [05:08:18]OFD Sender: No OFD packet to send [05:08:23]OFD Sender: No OFD packet to send [05:08:28]OFD Sender: No OFD packet to send [05:08:33]OFD Sender: No OFD packet to send [05:08:38]OFD Sender: No OFD packet to send [05:08:43]OFD Sender: No OFD packet to send [05:08:48]OFD Sender: No OFD packet to send [05:08:53]OFD Sender: No OFD packet to send [05:08:58]OFD Sender: No OFD packet to send [05:09:03]OFD Sender: No OFD packet to send [05:09:08]OFD Sender: No OFD packet to send [05:09:13]OFD Sender: No OFD packet to send [05:09:18]OFD Sender: No OFD packet to send [05:09:23]OFD Sender: No OFD packet to send [05:09:28]OFD Sender: No OFD packet to send [05:09:33]OFD Sender: No OFD packet to send [05:09:38]OFD Sender: No OFD packet to send [05:09:43]OFD Sender: No OFD packet to send [05:09:48]OFD Sender: No OFD packet to send [05:09:53]OFD Sender: No OFD packet to send [05:09:58]OFD Sender: No OFD packet to send [05:10:03]OFD Sender: No OFD packet to send [05:10:08]OFD Sender: No OFD packet to send [05:10:13]OFD Sender: No OFD packet to send [05:10:18]OFD Sender: No OFD packet to send [05:10:23]OFD Sender: No OFD packet to send [05:10:28]OFD Sender: No OFD packet to send [05:10:33]OFD Sender: No OFD packet to send [05:10:38]OFD Sender: No OFD packet to send [05:10:43]OFD Sender: No OFD packet to send [05:10:48]OFD Sender: No OFD packet to send [05:10:53]OFD Sender: No OFD packet to send [05:10:58]OFD Sender: No OFD packet to send [05:11:03]OFD Sender: No OFD packet to send [05:11:08]OFD Sender: No OFD packet to send [05:11:13]OFD Sender: No OFD packet to send [05:11:18]OFD Sender: No OFD packet to send [05:11:23]OFD Sender: No OFD packet to send [05:11:28]OFD Sender: No OFD packet to send [05:11:33]OFD Sender: No OFD packet to send [05:11:38]OFD Sender: No OFD packet to send [05:11:43]OFD Sender: No OFD packet to send [05:11:48]OFD Sender: No OFD packet to send [05:11:53]OFD Sender: No OFD packet to send [05:11:58]OFD Sender: No OFD packet to send [05:12:03]OFD Sender: No OFD packet to send [05:12:08]OFD Sender: No OFD packet to send [05:12:13]OFD Sender: No OFD packet to send [05:12:18]OFD Sender: No OFD packet to send [05:12:23]OFD Sender: No OFD packet to send [05:12:28]OFD Sender: No OFD packet to send [05:12:33]OFD Sender: No OFD packet to send [05:12:38]OFD Sender: No OFD packet to send [05:12:43]OFD Sender: No OFD packet to send [05:12:48]OFD Sender: No OFD packet to send [05:12:53]OFD Sender: No OFD packet to send [05:12:58]OFD Sender: No OFD packet to send [05:13:03]OFD Sender: No OFD packet to send [05:13: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:09]OFD Sender: No OFD packet to send [05:15:14]OFD Sender: No OFD packet to send [05:15:19]OFD Sender: No OFD packet to send [05:15:24]OFD Sender: No OFD packet to send [05:15:29]OFD Sender: No OFD packet to send [05:15:34]OFD Sender: No OFD packet to send [05:15:39]OFD Sender: No OFD packet to send [05:15:44]OFD Sender: No OFD packet to send [05:15:49]OFD Sender: No OFD packet to send [05:15:54]OFD Sender: No OFD packet to send [05:15:59]OFD Sender: No OFD packet to send [05:16:04]OFD Sender: No OFD packet to send [05:16:09]OFD Sender: No OFD packet to send [05:16:14]OFD Sender: No OFD packet to send [05:16:19]OFD Sender: No OFD packet to send [05:16:24]OFD Sender: No OFD packet to send [05:16:29]OFD Sender: No OFD packet to send [05:16:34]OFD Sender: No OFD packet to send [05:16:39]OFD Sender: No OFD packet to send [05:16:44]OFD Sender: No OFD packet to send [05:16:49]OFD Sender: No OFD packet to send [05:16:54]OFD Sender: No OFD packet to send [05:16:59]OFD Sender: No OFD packet to send [05:17:04]OFD Sender: No OFD packet to send [05:17:09]OFD Sender: No OFD packet to send [05:17:14]OFD Sender: No OFD packet to send [05:17:19]OFD Sender: No OFD packet to send [05:17:24]OFD Sender: No OFD packet to send [05:17:29]OFD Sender: No OFD packet to send [05:17:34]OFD Sender: No OFD packet to send [05:17:39]OFD Sender: No OFD packet to send [05:17:44]OFD Sender: No OFD packet to send [05:17:49]OFD Sender: No OFD packet to send [05:17:54]OFD Sender: No OFD packet to send [05:17:59]OFD Sender: No OFD packet to send [05:18:04]OFD Sender: No OFD packet to send [05:18:09]OFD Sender: No OFD packet to send [05:18:14]OFD Sender: No OFD packet to send [05:18:19]OFD Sender: No OFD packet to send [05:18:24]OFD Sender: No OFD packet to send [05:18:29]OFD Sender: No OFD packet to send [05:18:34]OFD Sender: No OFD packet to send [05:18:39]OFD Sender: No OFD packet to send [05:18:44]OFD Sender: No OFD packet to send [05:18:49]OFD Sender: No OFD packet to send [05:18:54]OFD Sender: No OFD packet to send [05:18:59]OFD Sender: No OFD packet to send [05:19:04]OFD Sender: No OFD packet to send [05:19:09]OFD Sender: No OFD packet to send [05:19:14]OFD Sender: No OFD packet to send [05:19:19]OFD Sender: No OFD packet to send [05:19:24]OFD Sender: No OFD packet to send [05:19:29]OFD Sender: No OFD packet to send [05:19:34]OFD Sender: No OFD packet to send [05:19:39]OFD Sender: No OFD packet to send [05:19:44]OFD Sender: No OFD packet to send [05:19:49]OFD Sender: No OFD packet to send [05:19:54]OFD Sender: No OFD packet to send [05:19:59]OFD Sender: No OFD packet to send [05:20:04]OFD Sender: No OFD packet to send [05:20:09]OFD Sender: No OFD packet to send [05:20:14]OFD Sender: No OFD packet to send [05:20:19]OFD Sender: No OFD packet to send [05:20:24]OFD Sender: No OFD packet to send [05:20:29]OFD Sender: No OFD packet to send [05:20:34]OFD Sender: No OFD packet to send [05:20:39]OFD Sender: No OFD packet to send [05:20:44]OFD Sender: No OFD packet to send [05:20:49]OFD Sender: No OFD packet to send [05:20:54]OFD Sender: No OFD packet to send [05:20:59]OFD Sender: No OFD packet to send [05:21:04]OFD Sender: No OFD packet to send [05:21:09]OFD Sender: No OFD packet to send [05:21:14]OFD Sender: No OFD packet to send [05:21:19]OFD Sender: No OFD packet to send [05:21:24]OFD Sender: No OFD packet to send [05:21:29]OFD Sender: No OFD packet to send [05:21:34]OFD Sender: No OFD packet to send [05:21:39]OFD Sender: No OFD packet to send [05:21:44]OFD Sender: No OFD packet to send [05:21:49]OFD Sender: No OFD packet to send [05:21:54]OFD Sender: No OFD packet to send [05:21:59]OFD Sender: No OFD packet to send [05:22:04]OFD Sender: No OFD packet to send [05:22:09]OFD Sender: No OFD packet to send [05:22:14]OFD Sender: No OFD packet to send [05:22:19]OFD Sender: No OFD packet to send [05:22:24]OFD Sender: No OFD packet to send [05:22:29]OFD Sender: No OFD packet to send [05:22:34]OFD Sender: No OFD packet to send [05:22:39]OFD Sender: No OFD packet to send [05:22:44]OFD Sender: No OFD packet to send [05:22:49]OFD Sender: No OFD packet to send [05:22:54]OFD Sender: No OFD packet to send [05:22:59]OFD Sender: No OFD packet to send [05:23:04]OFD Sender: No OFD packet to send [05:23:09]OFD Sender: No OFD packet to send [05:23:14]OFD Sender: No OFD packet to send [05:23:19]OFD Sender: No OFD packet to send [05:23:24]OFD Sender: No OFD packet to send [05:23:29]OFD Sender: No OFD packet to send [05:23:34]OFD Sender: No OFD packet to send [05:23:39]OFD Sender: No OFD packet to send [05:23:44]OFD Sender: No OFD packet to send [05:23:49]OFD Sender: No OFD packet to send [05:23:54]OFD Sender: No OFD packet to send [05:23:59]OFD Sender: No OFD packet to send [05:24:04]OFD Sender: No OFD packet to send [05:24:09]OFD Sender: No OFD packet to send [05:24:14]OFD Sender: No OFD packet to send [05:24:19]OFD Sender: No OFD packet to send [05:24:24]OFD Sender: No OFD packet to send [05:24:29]OFD Sender: No OFD packet to send [05:24:34]OFD Sender: No OFD packet to send [05:24:39]OFD Sender: No OFD packet to send [05:24:44]OFD Sender: No OFD packet to send [05:24:49]OFD Sender: No OFD packet to send [05:24:54]OFD Sender: No OFD packet to send [05:24:59]OFD Sender: No OFD packet to send [05:25:04]OFD Sender: No OFD packet to send [05:25:09]OFD Sender: No OFD packet to send [05:25:14]OFD Sender: No OFD packet to send [05:25:19]OFD Sender: No OFD packet to send [05:25:24]OFD Sender: No OFD packet to send [05:25:29]OFD Sender: No OFD packet to send [05:25:34]OFD Sender: No OFD packet to send [05:25:39]OFD Sender: No OFD packet to send [05:25:44]OFD Sender: No OFD packet to send [05:25:49]OFD Sender: No OFD packet to send [05:25:54]OFD Sender: No OFD packet to send [05:25:59]OFD Sender: No OFD packet to send [05:26:04]OFD Sender: No OFD packet to send [05:26:09]OFD Sender: No OFD packet to send [05:26:14]OFD Sender: No OFD packet to send [05:26:19]OFD Sender: No OFD packet to send [05:26:24]OFD Sender: No OFD packet to send [05:26:29]OFD Sender: No OFD packet to send [05:26:34]OFD Sender: No OFD packet to send [05:26:39]OFD Sender: No OFD packet to send [05:26:44]OFD Sender: No OFD packet to send [05:26:49]OFD Sender: No OFD packet to send [05:26:54]OFD Sender: No OFD packet to send [05:26:59]OFD Sender: No OFD packet to send [05:27:04]OFD Sender: No OFD packet to send [05:27:09]OFD Sender: No OFD packet to send [05:27:14]OFD Sender: No OFD packet to send [05:27:19]OFD Sender: No OFD packet to send [05:27:24]OFD Sender: No OFD packet to send [05:27:29]OFD Sender: No OFD packet to send [05:27:34]OFD Sender: No OFD packet to send [05:27:39]OFD Sender: No OFD packet to send [05:27:44]OFD Sender: No OFD packet to send [05:27:49]OFD Sender: No OFD packet to send [05:27:54]OFD Sender: No OFD packet to send [05:27:59]OFD Sender: No OFD packet to send [05:28:04]OFD Sender: No OFD packet to send [05:28:09]OFD Sender: No OFD packet to send [05:28:14]OFD Sender: No OFD packet to send [05:28:19]OFD Sender: No OFD packet to send [05:28:24]OFD Sender: No OFD packet to send [05:28:29]OFD Sender: No OFD packet to send [05:28:34]OFD Sender: No OFD packet to send [05:28:39]OFD Sender: No OFD packet to send [05:28:44]OFD Sender: No OFD packet to send [05:28:49]OFD Sender: No OFD packet to send [05:28:54]OFD Sender: No OFD packet to send [05:28:59]OFD Sender: No OFD packet to send [05:29:04]OFD Sender: No OFD packet to send [05:29:09]OFD Sender: No OFD packet to send [05:29:14]OFD Sender: No OFD packet to send [05:29:19]OFD Sender: No OFD packet to send [05:29:24]OFD Sender: No OFD packet to send [05:29:29]OFD Sender: No OFD packet to send [05:29:34]OFD Sender: No OFD packet to send [05:29:39]OFD Sender: No OFD packet to send [05:29:44]OFD Sender: No OFD packet to send [05:29:49]OFD Sender: No OFD packet to send [05:29:54]OFD Sender: No OFD packet to send [05:29:59]OFD Sender: No OFD packet to send [05:30:04]OFD Sender: No OFD packet to send [05:30:09]OFD Sender: No OFD packet to send [05:30:14]OFD Sender: No OFD packet to send [05:30:19]OFD Sender: No OFD packet to send [05:30:24]OFD Sender: No OFD packet to send [05:30:29]OFD Sender: No OFD packet to send [05:30:34]OFD Sender: No OFD packet to send [05:30:39]OFD Sender: No OFD packet to send [05:30:44]OFD Sender: No OFD packet to send [05:30:49]OFD Sender: No OFD packet to send [05:30:54]OFD Sender: No OFD packet to send [05:30:59]OFD Sender: No OFD packet to send [05:31:04]OFD Sender: No OFD packet to send [05:31:09]OFD Sender: No OFD packet to send [05:31:14]OFD Sender: No OFD packet to send [05:31:19]OFD Sender: No OFD packet to send [05:31:24]OFD Sender: No OFD packet to send [05:31:29]OFD Sender: No OFD packet to send [05:31:34]OFD Sender: No OFD packet to send [05:31:39]OFD Sender: No OFD packet to send [05:31:44]OFD Sender: No OFD packet to send [05:31:49]OFD Sender: No OFD packet to send [05:31:54]OFD Sender: No OFD packet to send [05:31:59]OFD Sender: No OFD packet to send [05:32:04]OFD Sender: No OFD packet to send [05:32:09]OFD Sender: No OFD packet to send [05:32:14]OFD Sender: No OFD packet to send [05:32:19]OFD Sender: No OFD packet to send [05:32:24]OFD Sender: No OFD packet to send [05:32:29]OFD Sender: No OFD packet to send [05:32:34]OFD Sender: No OFD packet to send [05:32:39]OFD Sender: No OFD packet to send [05:32:44]OFD Sender: No OFD packet to send [05:32:49]OFD Sender: No OFD packet to send [05:32:54]OFD Sender: No OFD packet to send [05:32:59]OFD Sender: No OFD packet to send [05:33: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:40]OFD Sender: No OFD packet to send [05:33:45]OFD Sender: No OFD packet to send [05:33:50]OFD Sender: No OFD packet to send [05:33:55]OFD Sender: No OFD packet to send [05:34:00]OFD Sender: No OFD packet to send [05:34:05]OFD Sender: No OFD packet to send [05:34:10]OFD Sender: No OFD packet to send [05:34:15]OFD Sender: No OFD packet to send [05:34:20]OFD Sender: No OFD packet to send [05:34:25]OFD Sender: No OFD packet to send [05:34:30]OFD Sender: No OFD packet to send [05:34:35]OFD Sender: No OFD packet to send [05:34:40]OFD Sender: No OFD packet to send [05:34:45]OFD Sender: No OFD packet to send [05:34:50]OFD Sender: No OFD packet to send [05:34:55]OFD Sender: No OFD packet to send [05:35:00]OFD Sender: No OFD packet to send [05:35:05]OFD Sender: No OFD packet to send [05:35:10]OFD Sender: No OFD packet to send [05:35:15]OFD Sender: No OFD packet to send [05:35:20]OFD Sender: No OFD packet to send [05:35:25]OFD Sender: No OFD packet to send [05:35:30]OFD Sender: No OFD packet to send [05:35:35]OFD Sender: No OFD packet to send [05:35:40]OFD Sender: No OFD packet to send [05:35:45]OFD Sender: No OFD packet to send [05:35:50]OFD Sender: No OFD packet to send [05:35:55]OFD Sender: No OFD packet to send [05:36:00]OFD Sender: No OFD packet to send [05:36:05]OFD Sender: No OFD packet to send [05:36:10]OFD Sender: No OFD packet to send [05:36:15]OFD Sender: No OFD packet to send [05:36:20]OFD Sender: No OFD packet to send [05:36:25]OFD Sender: No OFD packet to send [05:36:30]OFD Sender: No OFD packet to send [05:36:35]OFD Sender: No OFD packet to send [05:36:40]OFD Sender: No OFD packet to send [05:36:45]OFD Sender: No OFD packet to send [05:36:50]OFD Sender: No OFD packet to send [05:36:55]OFD Sender: No OFD packet to send [05:37:00]OFD Sender: No OFD packet to send [05:37:05]OFD Sender: No OFD packet to send [05:37:10]OFD Sender: No OFD packet to send [05:37:15]OFD Sender: No OFD packet to send [05:37:20]OFD Sender: No OFD packet to send [05:37:25]OFD Sender: No OFD packet to send [05:37:30]OFD Sender: No OFD packet to send [05:37:35]OFD Sender: No OFD packet to send [05:37:40]OFD Sender: No OFD packet to send [05:37:45]OFD Sender: No OFD packet to send [05:37:50]OFD Sender: No OFD packet to send [05:37:55]OFD Sender: No OFD packet to send [05:38:00]OFD Sender: No OFD packet to send [05:38:05]OFD Sender: No OFD packet to send [05:38:10]OFD Sender: No OFD packet to send [05:38:15]OFD Sender: No OFD packet to send [05:38:20]OFD Sender: No OFD packet to send [05:38:25]OFD Sender: No OFD packet to send [05:38:30]OFD Sender: No OFD packet to send [05:38:35]OFD Sender: No OFD packet to send [05:38:40]OFD Sender: No OFD packet to send [05:38:45]OFD Sender: No OFD packet to send [05:38:50]OFD Sender: No OFD packet to send [05:38:55]OFD Sender: No OFD packet to send [05:39:00]OFD Sender: No OFD packet to send [05:39:05]OFD Sender: No OFD packet to send [05:39:10]OFD Sender: No OFD packet to send [05:39:15]OFD Sender: No OFD packet to send [05:39:20]OFD Sender: No OFD packet to send [05:39:25]OFD Sender: No OFD packet to send [05:39:30]OFD Sender: No OFD packet to send [05:39:35]OFD Sender: No OFD packet to send [05:39:40]OFD Sender: No OFD packet to send [05:39:45]OFD Sender: No OFD packet to send [05:39:50]OFD Sender: No OFD packet to send [05:39:55]OFD Sender: No OFD packet to send [05:40:00]OFD Sender: No OFD packet to send [05:40:05]OFD Sender: No OFD packet to send [05:40:10]OFD Sender: No OFD packet to send [05:40:15]OFD Sender: No OFD packet to send [05:40:20]OFD Sender: No OFD packet to send [05:40:25]OFD Sender: No OFD packet to send [05:40:30]OFD Sender: No OFD packet to send [05:40:35]OFD Sender: No OFD packet to send [05:40:40]OFD Sender: No OFD packet to send [05:40:45]OFD Sender: No OFD packet to send [05:40:50]OFD Sender: No OFD packet to send [05:40:55]OFD Sender: No OFD packet to send [05:41:00]OFD Sender: No OFD packet to send [05:41:05]OFD Sender: No OFD packet to send [05:41:10]OFD Sender: No OFD packet to send [05:41:15]OFD Sender: No OFD packet to send [05:41:20]OFD Sender: No OFD packet to send [05:41:25]OFD Sender: No OFD packet to send [05:41:30]OFD Sender: No OFD packet to send [05:41:35]OFD Sender: No OFD packet to send [05:41:40]OFD Sender: No OFD packet to send [05:41:45]OFD Sender: No OFD packet to send [05:41:50]OFD Sender: No OFD packet to send [05:41:55]OFD Sender: No OFD packet to send [05:42:00]OFD Sender: No OFD packet to send [05:42:05]OFD Sender: No OFD packet to send [05:42:10]OFD Sender: No OFD packet to send [05:42:15]OFD Sender: No OFD packet to send [05:42:20]OFD Sender: No OFD packet to send [05:42:25]OFD Sender: No OFD packet to send [05:42:30]OFD Sender: No OFD packet to send [05:42:35]OFD Sender: No OFD packet to send [05:42:40]OFD Sender: No OFD packet to send [05:42:45]OFD Sender: No OFD packet to send [05:42:50]OFD Sender: No OFD packet to send [05:42:55]OFD Sender: No OFD packet to send [05:43:00]OFD Sender: No OFD packet to send [05:43:05]OFD Sender: No OFD packet to send [05:43:10]OFD Sender: No OFD packet to send [05:43:15]OFD Sender: No OFD packet to send [05:43:20]OFD Sender: No OFD packet to send [05:43:25]OFD Sender: No OFD packet to send [05:43:30]OFD Sender: No OFD packet to send [05:43:35]OFD Sender: No OFD packet to send [05:43:40]OFD Sender: No OFD packet to send [05:43:45]OFD Sender: No OFD packet to send [05:43:50]OFD Sender: No OFD packet to send [05:43:55]OFD Sender: No OFD packet to send [05:44:00]OFD Sender: No OFD packet to send [05:44:05]OFD Sender: No OFD packet to send [05:44:10]OFD Sender: No OFD packet to send [05:44:15]OFD Sender: No OFD packet to send [05:44:20]OFD Sender: No OFD packet to send [05:44:25]OFD Sender: No OFD packet to send [05:44:30]OFD Sender: No OFD packet to send [05:44:35]OFD Sender: No OFD packet to send [05:44:40]OFD Sender: No OFD packet to send [05:44:45]OFD Sender: No OFD packet to send [05:44:50]OFD Sender: No OFD packet to send [05:44:55]OFD Sender: No OFD packet to send [05:45:00]OFD Sender: No OFD packet to send [05:45:05]OFD Sender: No OFD packet to send [05:45:10]OFD Sender: No OFD packet to send [05:45:15]OFD Sender: No OFD packet to send [05:45:20]OFD Sender: No OFD packet to send [05:45:25]OFD Sender: No OFD packet to send [05:45:30]OFD Sender: No OFD packet to send [05:45:35]OFD Sender: No OFD packet to send [05:45:40]OFD Sender: No OFD packet to send [05:45:45]OFD Sender: No OFD packet to send [05:45:50]OFD Sender: No OFD packet to send [05:45:55]OFD Sender: No OFD packet to send [05:46:00]OFD Sender: No OFD packet to send [05:46:05]OFD Sender: No OFD packet to send [05:46:10]OFD Sender: No OFD packet to send [05:46:15]OFD Sender: No OFD packet to send [05:46:20]OFD Sender: No OFD packet to send [05:46:25]OFD Sender: No OFD packet to send [05:46:30]OFD Sender: No OFD packet to send [05:46:35]OFD Sender: No OFD packet to send [05:46:40]OFD Sender: No OFD packet to send [05:46:45]OFD Sender: No OFD packet to send [05:46:50]OFD Sender: No OFD packet to send [05:46:55]OFD Sender: No OFD packet to send [05:47:00]OFD Sender: No OFD packet to send [05:47:05]OFD Sender: No OFD packet to send [05:47:10]OFD Sender: No OFD packet to send [05:47:15]OFD Sender: No OFD packet to send [05:47:20]OFD Sender: No OFD packet to send [05:47:25]OFD Sender: No OFD packet to send [05:47:30]OFD Sender: No OFD packet to send [05:47:35]OFD Sender: No OFD packet to send [05:47:40]OFD Sender: No OFD packet to send [05:47:45]OFD Sender: No OFD packet to send [05:47:50]OFD Sender: No OFD packet to send [05:47:55]OFD Sender: No OFD packet to send [05:48:00]OFD Sender: No OFD packet to send [05:48:05]OFD Sender: No OFD packet to send [05:48:10]OFD Sender: No OFD packet to send [05:48:15]OFD Sender: No OFD packet to send [05:48:20]OFD Sender: No OFD packet to send [05:48:25]OFD Sender: No OFD packet to send [05:48:30]OFD Sender: No OFD packet to send [05:48:35]OFD Sender: No OFD packet to send [05:48:40]OFD Sender: No OFD packet to send [05:48:45]OFD Sender: No OFD packet to send [05:48:50]OFD Sender: No OFD packet to send [05:48:55]OFD Sender: No OFD packet to send [05:49:00]OFD Sender: No OFD packet to send [05:49:05]OFD Sender: No OFD packet to send [05:49:10]OFD Sender: No OFD packet to send [05:49:15]OFD Sender: No OFD packet to send [05:49:20]OFD Sender: No OFD packet to send [05:49:25]OFD Sender: No OFD packet to send [05:49:30]OFD Sender: No OFD packet to send [05:49:35]OFD Sender: No OFD packet to send [05:49:40]OFD Sender: No OFD packet to send [05:49:45]OFD Sender: No OFD packet to send [05:49:50]OFD Sender: No OFD packet to send [05:49:55]OFD Sender: No OFD packet to send [05:50:00]OFD Sender: No OFD packet to send [05:50:05]OFD Sender: No OFD packet to send [05:50:10]OFD Sender: No OFD packet to send [05:50:15]OFD Sender: No OFD packet to send [05:50:20]OFD Sender: No OFD packet to send [05:50:25]OFD Sender: No OFD packet to send [05:50:30]OFD Sender: No OFD packet to send [05:50:35]OFD Sender: No OFD packet to send [05:50:40]OFD Sender: No OFD packet to send [05:50:45]OFD Sender: No OFD packet to send [05:50:50]OFD Sender: No OFD packet to send [05:50:55]OFD Sender: No OFD packet to send [05:51:00]OFD Sender: No OFD packet to send [05:51:05]OFD Sender: No OFD packet to send [05:51:10]OFD Sender: No OFD packet to send [05:51:15]OFD Sender: No OFD packet to send [05:51:20]OFD Sender: No OFD packet to send [05:51:25]OFD Sender: No OFD packet to send [05:51:30]OFD Sender: No OFD packet to send [05:51:35]OFD Sender: No OFD packet to send [05:51:40]OFD Sender: No OFD packet to send [05:51:45]OFD Sender: No OFD packet to send [05:51:50]OFD Sender: No OFD packet to send [05:51:55]OFD Sender: No OFD packet to send [05:52:00]OFD Sender: No OFD packet to send [05:52:05]OFD Sender: No OFD packet to send [05:52:10]OFD Sender: No OFD packet to send [05:52:15]OFD Sender: No OFD packet to send [05:52:20]OFD Sender: No OFD packet to send [05:52:25]OFD Sender: No OFD packet to send [05:52:30]OFD Sender: No OFD packet to send [05:52:35]OFD Sender: No OFD packet to send [05:52:40]OFD Sender: No OFD packet to send [05:52:45]OFD Sender: No OFD packet to send [05:52:50]OFD Sender: No OFD packet to send [05:52:56]OFD Sender: No OFD packet to send [05:53:01]OFD Sender: No OFD packet to send [05:53:06]OFD Sender: No OFD packet to send [05:53:11]OFD Sender: No OFD packet to send [05:53:16]OFD Sender: No OFD packet to send [05:53:21]OFD Sender: No OFD packet to send [05:53:26]OFD Sender: No OFD packet to send [05:53:31]OFD Sender: No OFD packet to send [05:53:36]OFD Sender: No OFD packet to send [05:53:41]OFD Sender: No OFD packet to send [05:53:46]OFD Sender: No OFD packet to send [05:53:51]OFD Sender: No OFD packet to send [05:53:56]OFD Sender: No OFD packet to send [05:54:01]OFD Sender: No OFD packet to send [05:54:06]OFD Sender: No OFD packet to send [05:54:11]OFD Sender: No OFD packet to send [05:54:16]OFD Sender: No OFD packet to send [05:54:21]OFD Sender: No OFD packet to send [05:54:26]OFD Sender: No OFD packet to send [05:54:31]OFD Sender: No OFD packet to send [05:54:36]OFD Sender: No OFD packet to send [05:54:41]OFD Sender: No OFD packet to send [05:54:46]OFD Sender: No OFD packet to send [05:54:51]OFD Sender: No OFD packet to send [05:54:56]OFD Sender: No OFD packet to send [05:55:01]OFD Sender: No OFD packet to send [05:55:06]OFD Sender: No OFD packet to send [05:55:11]OFD Sender: No OFD packet to send [05:55:16]OFD Sender: No OFD packet to send [05:55:21]OFD Sender: No OFD packet to send [05:55:26]OFD Sender: No OFD packet to send [05:55:31]OFD Sender: No OFD packet to send [05:55:36]OFD Sender: No OFD packet to send [05:55:41]OFD Sender: No OFD packet to send [05:55:46]OFD Sender: No OFD packet to send [05:55:51]OFD Sender: No OFD packet to send [05:55:56]OFD Sender: No OFD packet to send [05:56:01]OFD Sender: No OFD packet to send [05:56:06]OFD Sender: No OFD packet to send [05:56:11]OFD Sender: No OFD packet to send [05:56:16]OFD Sender: No OFD packet to send [05:56:21]OFD Sender: No OFD packet to send [05:56:26]OFD Sender: No OFD packet to send [05:56:31]OFD Sender: No OFD packet to send [05:56:36]OFD Sender: No OFD packet to send [05:56:41]OFD Sender: No OFD packet to send [05:56:46]OFD Sender: No OFD packet to send [05:56:51]OFD Sender: No OFD packet to send [05:56:56]OFD Sender: No OFD packet to send [05:57:01]OFD Sender: No OFD packet to send [05:57:06]OFD Sender: No OFD packet to send [05:57:11]OFD Sender: No OFD packet to send [05:57:16]OFD Sender: No OFD packet to send [05:57:21]OFD Sender: No OFD packet to send [05:57:26]OFD Sender: No OFD packet to send [05:57:31]OFD Sender: No OFD packet to send [05:57:36]OFD Sender: No OFD packet to send [05:57:41]OFD Sender: No OFD packet to send [05:57:46]OFD Sender: No OFD packet to send [05:57:51]OFD Sender: No OFD packet to send [05:57:56]OFD Sender: No OFD packet to send [05:58:01]OFD Sender: No OFD packet to send [05:58:06]OFD Sender: No OFD packet to send [05:58:11]OFD Sender: No OFD packet to send [05:58:16]OFD Sender: No OFD packet to send [05:58:21]OFD Sender: No OFD packet to send [05:58:26]OFD Sender: No OFD packet to send [05:58:31]OFD Sender: No OFD packet to send [05:58:36]OFD Sender: No OFD packet to send [05:58:41]OFD Sender: No OFD packet to send [05:58:46]OFD Sender: No OFD packet to send [05:58:51]OFD Sender: No OFD packet to send [05:58:56]OFD Sender: No OFD packet to send [05:59:01]OFD Sender: No OFD packet to send [05:59:06]OFD Sender: No OFD packet to send [05:59:11]OFD Sender: No OFD packet to send [05:59:16]OFD Sender: No OFD packet to send [05:59:21]OFD Sender: No OFD packet to send [05:59:26]OFD Sender: No OFD packet to send [05:59:31]OFD Sender: No OFD packet to send [05:59:36]OFD Sender: No OFD packet to send [05:59:41]OFD Sender: No OFD packet to send [05:59:46]OFD Sender: No OFD packet to send [05:59:51]OFD Sender: No OFD packet to send [05:59:56]OFD Sender: No OFD packet to send [06:00:01]OFD Sender: No OFD packet to send [06:00:06]OFD Sender: No OFD packet to send [06:00:11]OFD Sender: No OFD packet to send [06:00:16]OFD Sender: No OFD packet to send [06:00:21]OFD Sender: No OFD packet to send [06:00:26]OFD Sender: No OFD packet to send [06:00:31]OFD Sender: No OFD packet to send [06:00:36]OFD Sender: No OFD packet to send [06:00:41]OFD Sender: No OFD packet to send [06:00:46]OFD Sender: No OFD packet to send [06:00:51]OFD Sender: No OFD packet to send [06:00:56]OFD Sender: No OFD packet to send [06:01:01]OFD Sender: No OFD packet to send [06:01:06]OFD Sender: No OFD packet to send [06:01:11]OFD Sender: No OFD packet to send [06:01:16]OFD Sender: No OFD packet to send [06:01:21]OFD Sender: No OFD packet to send [06:01:26]OFD Sender: No OFD packet to send [06:01:31]OFD Sender: No OFD packet to send [06:01:36]OFD Sender: No OFD packet to send [06:01:41]OFD Sender: No OFD packet to send [06:01:46]OFD Sender: No OFD packet to send [06:01:51]OFD Sender: No OFD packet to send [06:01:56]OFD Sender: No OFD packet to send [06:02:01]OFD Sender: No OFD packet to send [06:02:06]OFD Sender: No OFD packet to send [06:02:11]OFD Sender: No OFD packet to send [06:02:16]OFD Sender: No OFD packet to send [06:02:21]OFD Sender: No OFD packet to send [06:02:26]OFD Sender: No OFD packet to send [06:02:31]OFD Sender: No OFD packet to send [06:02:36]OFD Sender: No OFD packet to send [06:02:41]OFD Sender: No OFD packet to send [06:02:46]OFD Sender: No OFD packet to send [06:02:51]OFD Sender: No OFD packet to send [06:02:56]OFD Sender: No OFD packet to send [06:03:01]OFD Sender: No OFD packet to send [06:03:06]OFD Sender: No OFD packet to send [06:03:11]OFD Sender: No OFD packet to send [06:03:16]OFD Sender: No OFD packet to send [06:03:21]OFD Sender: No OFD packet to send [06:03:26]OFD Sender: No OFD packet to send [06:03:31]OFD Sender: No OFD packet to send [06:03:36]OFD Sender: No OFD packet to send [06:03:41]OFD Sender: No OFD packet to send [06:03:46]OFD Sender: No OFD packet to send [06:03:51]OFD Sender: No OFD packet to send [06:03:56]OFD Sender: No OFD packet to send [06:04:01]OFD Sender: No OFD packet to send [06:04:06]OFD Sender: No OFD packet to send [06:04:11]OFD Sender: No OFD packet to send [06:04:16]OFD Sender: No OFD packet to send [06:04:21]OFD Sender: No OFD packet to send [06:04:26]OFD Sender: No OFD packet to send [06:04:31]OFD Sender: No OFD packet to send [06:04:36]OFD Sender: No OFD packet to send [06:04:41]OFD Sender: No OFD packet to send [06:04:43]accept exits with 9 [06:04:43]New connection [06:04:43]New thread 3066686820 created [06:04:43]Thread 3066543460 joined [06:04:43]Waiting for new connection... [06:04:43] Sock 9.Parse request [06:04:43]Sock 9.Check first char [06:04:43]Sock 9.First char is OK [06:04:43]request: POST /json_proto HTTP/1.0 [06:04:43]Method: POST [06:04:43]URL: /json_proto [06:04:43]Method is POST - this is cgi request [06:04:43]url: /json_proto [06:04:43]query_string will be loaded in cgi processing [06:04:43]execute_cgi json_proto POST (null) [06:04:43]execute_cgi path=json_proto method=POST [06:04:43]POST find Content-Length [06:04:43]Host: 172.17.36.132:8080 [06:04:43]Content-Length: 682 [06:04:43]Content-Type: application/json [06:04:43] [06:04:43]POST finish read [06:04:43]Found Content-Length = 682 [06:04:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706328", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:04:43]execute_script... [06:04:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706328", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:04:43]POST & json_proto [06:04:43]process_json_proto [06:04:43]json parsed OK: [06:04:43]protocol is kg_v1.0 [06:04:43]action value=close_receipt [06:04:43]process_action close_receipt [06:04:43]cmd_close_receipt [06:04:43]MH_GetDate [06:04:43]Write to MH i2c: F0 00 00 46 1C 51 [06:04:43]Write i2c OK [06:04:43]MH_I2C_Read... [06:04:43]Read from MH i2c: F0 [06:04:43]MH_I2C_Read... [06:04:43]Read from MH i2c: F0 09 00 [06:04:43]MH_I2C_Read... [06:04:43]Read from MH i2c: F0 09 00 46 1C 00 FE 5C 5D 66 B2 22 B0 64 5F [06:04:43]GetLastDocTimeStamp 1717384583 [06:04:43]current date 1717394686 [06:04:43]FM_GetShiftState [06:04:43]SAM_PROTO_GetShiftState [06:04:43]wFMCommunicate request_size=4 [06:04:43]MH_SAM_APDU [06:04:43]CAPDU: 80 13 01 00 [06:04:43]Write to MH i2c: E2 08 00 47 1C 80 13 01 00 00 00 00 00 E0 [06:04:43]Write i2c OK [06:04:43]MH_I2C_Read... [06:04:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:04:43]Read from MH i2c: E2 [06:04:43]MH_I2C_Read... [06:04:43]Read from MH i2c: E2 0E 00 [06:04:43]MH_I2C_Read... [06:04:43]Read from MH i2c: E2 0E 00 47 1C 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 BB [06:04:43]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [06:04:43]wFMCommunicate OK [06:04:43]SAM_PROTO_GetShiftState done [06:04:43]FM_GetShiftState done [06:04:43]opened in 1717378033 [06:04:43]opened+sec_in_day 1717464433 [06:04:43]quantity*price = 200031 [06:04:43]sum+1 = 200032 [06:04:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 4 03.06.2024 06:04 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68258 ФПД: 108350720442669 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T060446&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68258&fm=108350720442669&tin=02508201610067®Number=0000000000098096&sum=200000 [06:04:44]StoreToDocumentArchive [06:04:44]shift 324 fd 68258 [06:04:44]save to /storage/0324/doc_00068258 [06:04:44]save last doc name /storage/0324/doc_00068258 to /storage/kkm_last_doc_name [06:04:44]save OK [06:04:44]Clear old archive folders... [06:04:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:04:44]tlvbuf is 001FF320 [06:04:44]SAM_PROTO_ClearQueue [06:04:44]wFMCommunicate request_size=4 [06:04:44]MH_SAM_APDU [06:04:44]CAPDU: 80 09 00 00 [06:04:44]Write to MH i2c: E2 08 00 54 1C 80 09 00 00 00 00 00 00 E2 [06:04:44]Write i2c OK [06:04:44]MH_I2C_Read... [06:04:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:04:44]Read from MH i2c: E2 [06:04:44]MH_I2C_Read... [06:04:44]Read from MH i2c: E2 03 00 [06:04:44]MH_I2C_Read... [06:04:44]Read from MH i2c: E2 03 00 54 1C 00 90 00 E4 [06:04:44]RAPDU: 90 00 [06:04:44]wFMCommunicate OK [06:04:44]SAM_PROTO_ClearQueue done [06:04:44]KKMCreateOFDPacket [06:04:44]OFDProtocolAddRootSTLVToBuf [06:04:44]FM_MakeSignedData [06:04:44]FM_MakeSignedData [06:04:44]SAM_PROTO_SignData [06:04:44]wFMCommunicate request_size=4 [06:04:44]MH_SAM_APDU [06:04:44]CAPDU: 80 0D 01 02 [06:04:44]Write to MH i2c: E2 08 00 55 1C 80 0D 01 02 00 00 00 00 EA [06:04:44]Write i2c OK [06:04:44]MH_I2C_Read... [06:04:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:04:44]Read from MH i2c: E2 [06:04:44]MH_I2C_Read... [06:04:44]Read from MH i2c: E2 03 00 [06:04:44]MH_I2C_Read... [06:04:44]Read from MH i2c: E2 03 00 55 1C 00 90 00 E5 [06:04:44]RAPDU: 90 00 [06:04:44]wFMCommunicate OK [06:04:44]wFMCommunicate request_size=255 [06:04:44]MH_SAM_APDU [06:04: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 34 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 FE 5C 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A2 0A 01 00 35 04 06 00 62 [06:04:44]Write to MH i2c: E2 02 01 56 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 FE 5C 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A2 0A 01 00 35 04 06 00 62 00 00 2E [06:04:44]Write i2c OK [06:04:44]MH_I2C_Read... [06:04:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:04:44]Read from MH i2c: E2 [06:04:44]MH_I2C_Read... [06:04:44]Read from MH i2c: E2 03 00 [06:04:44]MH_I2C_Read... [06:04:44]Read from MH i2c: E2 03 00 56 1C 00 90 00 E6 [06:04:44]RAPDU: 90 00 [06:04:44]wFMCommunicate OK [06:04:44]wFMCommunicate request_size=10 [06:04:44]MH_SAM_APDU [06:04:44]CAPDU: 80 0D 02 02 05 8B 5E 34 01 2D [06:04:44]Write to MH i2c: E2 0D 00 57 1C 80 0D 02 02 05 00 8B 5E 34 01 2D 00 00 42 [06:04:44]Write i2c OK [06:04:44]MH_I2C_Read... [06:04:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:04:44]Read from MH i2c: E2 [06:04:44]MH_I2C_Read... [06:04:44]Read from MH i2c: E2 03 00 [06:04:44]MH_I2C_Read... [06:04:44]Read from MH i2c: E2 03 00 57 1C 00 90 00 E7 [06:04:44]RAPDU: 90 00 [06:04:44]wFMCommunicate OK [06:04:44]wFMCommunicate request_size=4 [06:04:44]MH_SAM_APDU [06:04:44]CAPDU: 80 0D 03 02 [06:04:44]Write to MH i2c: E2 08 00 58 1C 80 0D 03 02 00 00 00 00 EF [06:04:44]Write i2c OK [06:04:44]MH_I2C_Read... [06:04:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:04:44]Read from MH i2c: E2 [06:04:44]MH_I2C_Read... [06:04:44]Read from MH i2c: E2 0B 00 [06:04:44]MH_I2C_Read... [06:04:44]Read from MH i2c: E2 0B 00 58 1C 00 8D 7B 71 66 C2 7A B9 40 90 00 04 [06:04:44]RAPDU: 8D 7B 71 66 C2 7A B9 40 90 00 [06:04:44]wFMCommunicate OK [06:04:44]SAM_PROTO_SignData done [06:04:44]FM_MakeSignedData done [06:04:44]CreateOFDProtocolMessage [06:04:44]wFMCommunicate request_size=4 [06:04:44]MH_SAM_APDU [06:04:44]CAPDU: 80 11 00 00 [06:04:44]Write to MH i2c: E2 08 00 59 1C 80 11 00 00 00 00 00 00 EF [06:04:44]Write i2c OK [06:04:44]MH_I2C_Read... [06:04:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:04:44]Read from MH i2c: E2 [06:04:44]MH_I2C_Read... [06:04:44]Read from MH i2c: E2 17 00 [06:04:44]MH_I2C_Read... [06:04:44]Read from MH i2c: E2 17 00 59 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 3A [06:04:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [06:04:44]wFMCommunicate OK [06:04:44]CreateOFDProtocolMessage done [06:04:44]OFDSenderStorePacket 68258 [06:04:44]StoreOFDPacket docnum=68258 [06:04:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 E0 78 07 01 58 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 FE 5C 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A2 0A 01 00 35 04 06 00 62 8B 5E 34 01 2D 8D 7B 71 66 C2 7A B9 40 [06:04:44]CheckFolder [06:04:44]dirname=/storage/ofd_packets [06:04:44]CheckFolder done [06:04:44]ProducePacketName [06:04:44]name=ofd_packets/00068258 [06:04:44]NVStorageSaveData ofd_packets/00068258 [06:04:44]File name is /storage/ofd_packets/00068258 [06:04:44]Write 301 bytes [06:04:44]NVStorageSaveData done [06:04:44]OFDSenderStorePacket done [06:04:44]KKMCreateOFDPacket done [06:04:44]NVStorageSaveData kkm_last_timestamp [06:04:44]File name is /storage/kkm_last_timestamp [06:04:44]Write 4 bytes [06:04:44]NVStorageSaveData done [06:04:44]ExternCall_PrintAddStr [06:04:44]wPrintStart [06:04:44]Write to MH i2c: 01 00 00 5A 1C 76 [06:04:44]Write i2c OK [06:04:44]MH_I2C_Read... [06:04:45]Read from MH i2c: 01 [06:04:45]MH_I2C_Read... [06:04:45]Read from MH i2c: 01 07 00 [06:04:45]MH_I2C_Read... [06:04:45]Read from MH i2c: 01 07 00 5A 1C 00 00 00 00 00 FF 0F 8B [06:04:45]RasterBufferAndPrint [06:04:45]line Счет N : (1)706328 [06:04:45]line ИНН: 02508201610067 [06:04:45]line Контрольно-Кассовый Чек [06:04:45]line ПРОДАЖА [06:04:45]line ТРК (МРК, ГНК) : 63 [06:04:45]line Товар: 2710124130 [06:04:45]line Аи-92-К-4 [06:04:45]line 29.900 * 66.90 [06:04:45]line = 2000.31 [06:04:45]line НДС 12% НСП 1% [06:04:45]line > о реализуемом товаре [06:04:45]line ОКРУГЛЕНИЕ: -0.31 [06:04:45]line ИТОГО: 2000.00 [06:04:45]line Внесено: 2000.00 [06:04:45]line СДАЧА: 0.00 [06:04:45]line НСП 1% : 17.70 [06:04:45]line НДС 12% : 212.42 [06:04:45]line Наличными: 2000.00 [06:04:45]line Безнал.: 0.00 [06:04:45]line Место: АЗС № 62 "Партнер Нефть" [06:04:45]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [06:04:45]line СНО: Общий режим [06:04:45]line Чек 4 03.06.2024 06:04 [06:04:45]line Смена: 324 ФФД: 1.0 [06:04:45]line ЗНМ: 0300000181 [06:04:45]line РНМ: 0000000000098096 [06:04:45]line Версия ККМ: 001 [06:04:45]line ФМ: 0000000000965400 [06:04:45]line ФД: 68258 [06:04:45]line ФПД: 108350720442669 [06:04:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T060446&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68258&fm=108350720442669&tin=02508201610067®Number=0000000000098096&sum=200000 [06:04:45]written 0, free lines is 4095 [06:04:45]OFD Sender: Processing packet 68258 [packets to send 26, broken 25] [06:04:45]ProducePacketName [06:04:45]name=ofd_packets/00068258 [06:04:45]OFD Sender: To server: pG, [06:04:45]CommunicateWithHost lk.salyk.kg:30040 [06:04:45]ConnectInit lk.salyk.kg [06:04:45]Connected sock=10 [06:04:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 E0 78 07 01 58 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 FE 5C 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A2 0A 01 00 35 04 06 00 62 8B 5E 34 01 2D 8D 7B 71 66 C2 7A B9 40 [06:04:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 AC 29 47 00 B4 EE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A2 0A 01 00 F4 03 04 00 FB 03 5D 66 B6 04 01 00 00 1B 5F CE 0C B8 A1 52 FC [06:04:45]CommunicateWithHost err = 0 [06:04:45]CheckOFDResponse [06:04:45]1017 (14) - 77093643461234 [06:04:45]1041 (16) - 0000000000965400 [06:04:45]1040 (4) - 68258 [06:04:45]1012 (4) - 02.06.2024 23:44 [06:04:45]1206 (1) - 0 [06:04:45]OFD Sender: Remove packet 68258 [06:04:45]ProducePacketName [06:04:45]name=ofd_packets/00068258 [06:04:45]NVStorageDeleteData [06:04:45]Write to MH i2c: 01 00 00 85 1C A1 [06:04:45]Write i2c OK [06:04:45]MH_I2C_Read... [06:04:45]Read from MH i2c: 01 [06:04:45]MH_I2C_Read... [06:04:45]Read from MH i2c: 01 07 00 [06:04:45]MH_I2C_Read... [06:04:45]Read from MH i2c: 01 07 00 85 1C 00 00 00 00 00 DD 0C 91 [06:04:45]RasterBufferAndPrint [06:04:45]line [06:04:45]line [06:04:45]line [06:04:45]line [06:04:45]line [06:04:45]written 0, free lines is 3302 [06:04:45]MH_Cut [06:04:45]Write to MH i2c: D1 01 00 8C 1C 01 7A [06:04:45]Write i2c OK [06:04:45]MH_I2C_Read... [06:04:45]Read from MH i2c: D1 [06:04:45]MH_I2C_Read... [06:04:45]Read from MH i2c: D1 01 00 [06:04:45]MH_I2C_Read... [06:04:45]Read from MH i2c: D1 01 00 8C 1C 00 79 [06:04:45]Write to MH i2c: 01 00 00 8D 1C A9 [06:04:45]Write i2c OK [06:04:45]MH_I2C_Read... [06:04:45]OFD Sender: No OFD packet to send [06:04:46]*** Cut start [06:04:46]*** Partial cut [06:04:46]*** CUTSNS_PIN = 1 [06:04:46]*** CUTSNS_PIN = 0 [06:04:46]*** Brake cut motor [06:04:46]Read from MH i2c: 01 [06:04:46]MH_I2C_Read... [06:04:46]*** Stop cut motor [06:04:46]*** Cut end [06:04:46]Read from MH i2c: 01 07 00 [06:04:46]MH_I2C_Read... [06:04:46]Read from MH i2c: 01 07 00 8D 1C 00 00 00 00 00 FF 0F BE [06:04:46]process_action close_receipt done [06:04:46]requested_data is exist [06:04:46]produce_requested_data [06:04:46]requested_item fm.sn is exist - process it [06:04:46]wFMCommunicate request_size=4 [06:04:46]MH_SAM_APDU [06:04:46]CAPDU: 80 11 00 00 [06:04:46]Write to MH i2c: E2 08 00 8E 1C 80 11 00 00 00 00 00 00 24 [06:04:46]Write i2c OK [06:04:46]MH_I2C_Read... [06:04:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:04:46]Read from MH i2c: E2 [06:04:46]MH_I2C_Read... [06:04:46]Read from MH i2c: E2 17 00 [06:04:46]MH_I2C_Read... [06:04:46]Read from MH i2c: E2 17 00 8E 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 6F [06:04:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [06:04:46]wFMCommunicate OK [06:04:46]requested_item fd.num is exist - process it [06:04:46]SAM_PROTO_GetFieldsCounters [06:04:46]wFMCommunicate request_size=4 [06:04:46]MH_SAM_APDU [06:04:46]CAPDU: 80 13 00 00 [06:04:46]Write to MH i2c: E2 08 00 8F 1C 80 13 00 00 00 00 00 00 27 [06:04:46]Write i2c OK [06:04:46]MH_I2C_Read... [06:04:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:04:47]Read from MH i2c: E2 [06:04:47]MH_I2C_Read... [06:04:47]Read from MH i2c: E2 62 00 [06:04:47]MH_I2C_Read... [06:04:47]Read from MH i2c: E2 62 00 8F 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 A2 0A 01 00 0E 04 04 00 44 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 45 [06:04:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 A2 0A 01 00 0E 04 04 00 44 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 [06:04:47]wFMCommunicate OK [06:04:47]SAM_PROTO_GetFieldsCounters done [06:04:47]requested_item shift.num is exist - process it [06:04:47]requested_item shift.opened is exist - process it [06:04:47]req_shift_opened [06:04:47]FM_GetShiftState [06:04:47]SAM_PROTO_GetShiftState [06:04:47]wFMCommunicate request_size=4 [06:04:47]MH_SAM_APDU [06:04:47]CAPDU: 80 13 01 00 [06:04:47]Write to MH i2c: E2 08 00 90 1C 80 13 01 00 00 00 00 00 29 [06:04:47]Write i2c OK [06:04:47]MH_I2C_Read... [06:04:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:04:47]Read from MH i2c: E2 [06:04:47]MH_I2C_Read... [06:04:47]Read from MH i2c: E2 0E 00 [06:04:47]MH_I2C_Read... [06:04:47]Read from MH i2c: E2 0E 00 90 1C 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 04 [06:04:47]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [06:04:47]wFMCommunicate OK [06:04:47]SAM_PROTO_GetShiftState done [06:04:47]FM_GetShiftState done [06:04:47]req_shift_opened done [06:04:47]requested_item shift.open_date is exist - process it [06:04:47]req_shift_open_date [06:04:47]req_shift_open_date done [06:04:47]produce_requested_data done [06:04:47]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68258,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [06:04:47]process_action_free close_receipt [06:04:47]json_value_free [06:04:47]json_value_free done [06:04:47]process_json_proto returns [06:04:47]Send response to host [06:04:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68258,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [06:04:47]free response buf [06:04:47]execute_script done [06:04:47]execute_script returns [06:04:47]free content buf [06:04:47]Sock 9.Close socket [06:04:47]Sock 9.Thread stoped [06:04:50]OFD Sender: No OFD packet to send [06:04:55]OFD Sender: No OFD packet to send [06:05:00]OFD Sender: No OFD packet to send [06:05:05]OFD Sender: No OFD packet to send [06:05:10]OFD Sender: No OFD packet to send [06:05:15]OFD Sender: No OFD packet to send [06:05:20]OFD Sender: No OFD packet to send [06:05:25]OFD Sender: No OFD packet to send [06:05:30]OFD Sender: No OFD packet to send [06:05:35]OFD Sender: No OFD packet to send [06:05:40]OFD Sender: No OFD packet to send [06:05:45]OFD Sender: No OFD packet to send [06:05:50]OFD Sender: No OFD packet to send [06:05:55]OFD Sender: No OFD packet to send [06:06:00]OFD Sender: No OFD packet to send [06:06:05]OFD Sender: No OFD packet to send [06:06:10]OFD Sender: No OFD packet to send [06:06:15]OFD Sender: No OFD packet to send [06:06:20]OFD Sender: No OFD packet to send [06:06:25]OFD Sender: No OFD packet to send [06:06:30]OFD Sender: No OFD packet to send [06:06:35]OFD Sender: No OFD packet to send [06:06:40]OFD Sender: No OFD packet to send [06:06:45]OFD Sender: No OFD packet to send [06:06:50]OFD Sender: No OFD packet to send [06:06:55]OFD Sender: No OFD packet to send [06:07:00]OFD Sender: No OFD packet to send [06:07:05]OFD Sender: No OFD packet to send [06:07:10]OFD Sender: No OFD packet to send [06:07:16]OFD Sender: No OFD packet to send [06:07:21]OFD Sender: No OFD packet to send [06:07:26]OFD Sender: No OFD packet to send [06:07:31]OFD Sender: No OFD packet to send [06:07:36]OFD Sender: No OFD packet to send [06:07:41]OFD Sender: No OFD packet to send [06:07:46]OFD Sender: No OFD packet to send [06:07:51]OFD Sender: No OFD packet to send [06:07:56]OFD Sender: No OFD packet to send [06:08:01]OFD Sender: No OFD packet to send [06:08:06]OFD Sender: No OFD packet to send [06:08:11]OFD Sender: No OFD packet to send [06:08:16]OFD Sender: No OFD packet to send [06:08:21]OFD Sender: No OFD packet to send [06:08:26]OFD Sender: No OFD packet to send [06:08:31]OFD Sender: No OFD packet to send [06:08:36]OFD Sender: No OFD packet to send [06:08:41]OFD Sender: No OFD packet to send [06:08:46]OFD Sender: No OFD packet to send [06:08:51]OFD Sender: No OFD packet to send [06:08:56]OFD Sender: No OFD packet to send [06:09:01]OFD Sender: No OFD packet to send [06:09:06]OFD Sender: No OFD packet to send [06:09:11]OFD Sender: No OFD packet to send [06:09:16]OFD Sender: No OFD packet to send [06:09:21]OFD Sender: No OFD packet to send [06:09:26]OFD Sender: No OFD packet to send [06:09:31]OFD Sender: No OFD packet to send [06:09:36]OFD Sender: No OFD packet to send [06:09:41]OFD Sender: No OFD packet to send [06:09:46]OFD Sender: No OFD packet to send [06:09:51]OFD Sender: No OFD packet to send [06:09:56]OFD Sender: No OFD packet to send [06:10:01]OFD Sender: No OFD packet to send [06:10:06]OFD Sender: No OFD packet to send [06:10:11]OFD Sender: No OFD packet to send [06:10:16]OFD Sender: No OFD packet to send [06:10:21]OFD Sender: No OFD packet to send [06:10:26]OFD Sender: No OFD packet to send [06:10:31]OFD Sender: No OFD packet to send [06:10:36]OFD Sender: No OFD packet to send [06:10:41]OFD Sender: No OFD packet to send [06:10:46]OFD Sender: No OFD packet to send [06:10:51]OFD Sender: No OFD packet to send [06:10:56]OFD Sender: No OFD packet to send [06:11:01]OFD Sender: No OFD packet to send [06:11:06]OFD Sender: No OFD packet to send [06:11:11]OFD Sender: No OFD packet to send [06:11:16]OFD Sender: No OFD packet to send [06:11:21]OFD Sender: No OFD packet to send [06:11:26]OFD Sender: No OFD packet to send [06:11:31]OFD Sender: No OFD packet to send [06:11:36]OFD Sender: No OFD packet to send [06:11:41]OFD Sender: No OFD packet to send [06:11:46]OFD Sender: No OFD packet to send [06:11:51]OFD Sender: No OFD packet to send [06:11:56]OFD Sender: No OFD packet to send [06:12:01]OFD Sender: No OFD packet to send [06:12:06]OFD Sender: No OFD packet to send [06:12:11]OFD Sender: No OFD packet to send [06:12:16]OFD Sender: No OFD packet to send [06:12:21]OFD Sender: No OFD packet to send [06:12:26]OFD Sender: No OFD packet to send [06:12:31]OFD Sender: No OFD packet to send [06:12:36]OFD Sender: No OFD packet to send [06:12:41]OFD Sender: No OFD packet to send [06:12:46]OFD Sender: No OFD packet to send [06:12:51]OFD Sender: No OFD packet to send [06:12:56]OFD Sender: No OFD packet to send [06:13:01]OFD Sender: No OFD packet to send [06:13:06]OFD Sender: No OFD packet to send [06:13:11]OFD Sender: No OFD packet to send [06:13:16]OFD Sender: No OFD packet to send [06:13:21]OFD Sender: No OFD packet to send [06:13:26]OFD Sender: No OFD packet to send [06:13:31]OFD Sender: No OFD packet to send [06:13:36]OFD Sender: No OFD packet to send [06:13:41]OFD Sender: No OFD packet to send [06:13:46]OFD Sender: No OFD packet to send [06:13:51]OFD Sender: No OFD packet to send [06:13:56]OFD Sender: No OFD packet to send [06:14:01]OFD Sender: No OFD packet to send [06:14:06]OFD Sender: No OFD packet to send [06:14:11]OFD Sender: No OFD packet to send [06:14:16]OFD Sender: No OFD packet to send [06:14:21]OFD Sender: No OFD packet to send [06:14:26]OFD Sender: No OFD packet to send [06:14:31]OFD Sender: No OFD packet to send [06:14:36]OFD Sender: No OFD packet to send [06:14:41]OFD Sender: No OFD packet to send [06:14:46]OFD Sender: No OFD packet to send [06:14:51]OFD Sender: No OFD packet to send [06:14:56]OFD Sender: No OFD packet to send [06:15:01]OFD Sender: No OFD packet to send [06:15:06]OFD Sender: No OFD packet to send [06:15:11]OFD Sender: No OFD packet to send [06:15:16]OFD Sender: No OFD packet to send [06:15:21]OFD Sender: No OFD packet to send [06:15:26]OFD Sender: No OFD packet to send [06:15:31]OFD Sender: No OFD packet to send [06:15:36]OFD Sender: No OFD packet to send [06:15:41]OFD Sender: No OFD packet to send [06:15:46]OFD Sender: No OFD packet to send [06:15:51]OFD Sender: No OFD packet to send [06:15:56]OFD Sender: No OFD packet to send [06:16:01]OFD Sender: No OFD packet to send [06:16:06]OFD Sender: No OFD packet to send [06:16:11]OFD Sender: No OFD packet to send [06:16:16]OFD Sender: No OFD packet to send [06:16:21]OFD Sender: No OFD packet to send [06:16:26]OFD Sender: No OFD packet to send [06:16:31]OFD Sender: No OFD packet to send [06:16:36]OFD Sender: No OFD packet to send [06:16:41]OFD Sender: No OFD packet to send [06:16:46]OFD Sender: No OFD packet to send [06:16:51]OFD Sender: No OFD packet to send [06:16:56]OFD Sender: No OFD packet to send [06:17:01]OFD Sender: No OFD packet to send [06:17:06]OFD Sender: No OFD packet to send [06:17:11]OFD Sender: No OFD packet to send [06:17:16]OFD Sender: No OFD packet to send [06:17:21]OFD Sender: No OFD packet to send [06:17:26]OFD Sender: No OFD packet to send [06:17:31]OFD Sender: No OFD packet to send [06:17:36]OFD Sender: No OFD packet to send [06:17:41]OFD Sender: No OFD packet to send [06:17:46]OFD Sender: No OFD packet to send [06:17:51]OFD Sender: No OFD packet to send [06:17:56]OFD Sender: No OFD packet to send [06:18:01]OFD Sender: No OFD packet to send [06:18:06]OFD Sender: No OFD packet to send [06:18:11]OFD Sender: No OFD packet to send [06:18:16]OFD Sender: No OFD packet to send [06:18:21]OFD Sender: No OFD packet to send [06:18:26]OFD Sender: No OFD packet to send [06:18:31]OFD Sender: No OFD packet to send [06:18:36]OFD Sender: No OFD packet to send [06:18:41]OFD Sender: No OFD packet to send [06:18:46]OFD Sender: No OFD packet to send [06:18:51]OFD Sender: No OFD packet to send [06:18:56]OFD Sender: No OFD packet to send [06:19:01]OFD Sender: No OFD packet to send [06:19:06]OFD Sender: No OFD packet to send [06:19:11]OFD Sender: No OFD packet to send [06:19:16]OFD Sender: No OFD packet to send [06:19:21]OFD Sender: No OFD packet to send [06:19:26]OFD Sender: No OFD packet to send [06:19:31]OFD Sender: No OFD packet to send [06:19:36]OFD Sender: No OFD packet to send [06:19:41]OFD Sender: No OFD packet to send [06:19:46]OFD Sender: No OFD packet to send [06:19:51]OFD Sender: No OFD packet to send [06:19:56]OFD Sender: No OFD packet to send [06:20:01]OFD Sender: No OFD packet to send [06:20:06]OFD Sender: No OFD packet to send [06:20:11]OFD Sender: No OFD packet to send [06:20:16]OFD Sender: No OFD packet to send [06:20:21]OFD Sender: No OFD packet to send [06:20:26]OFD Sender: No OFD packet to send [06:20:31]OFD Sender: No OFD packet to send [06:20:36]OFD Sender: No OFD packet to send [06:20:41]OFD Sender: No OFD packet to send [06:20:46]OFD Sender: No OFD packet to send [06:20:51]OFD Sender: No OFD packet to send [06:20:56]OFD Sender: No OFD packet to send [06:21:01]OFD Sender: No OFD packet to send [06:21:06]OFD Sender: No OFD packet to send [06:21:11]OFD Sender: No OFD packet to send [06:21:16]OFD Sender: No OFD packet to send [06:21:21]OFD Sender: No OFD packet to send [06:21:26]OFD Sender: No OFD packet to send [06:21:31]OFD Sender: No OFD packet to send [06:21:36]OFD Sender: No OFD packet to send [06:21:41]OFD Sender: No OFD packet to send [06:21:46]OFD Sender: No OFD packet to send [06:21:51]OFD Sender: No OFD packet to send [06:21:56]OFD Sender: No OFD packet to send [06:22:01]OFD Sender: No OFD packet to send [06:22:06]OFD Sender: No OFD packet to send [06:22:11]OFD Sender: No OFD packet to send [06:22:16]OFD Sender: No OFD packet to send [06:22:21]OFD Sender: No OFD packet to send [06:22:26]OFD Sender: No OFD packet to send [06:22:31]OFD Sender: No OFD packet to send [06:22:36]OFD Sender: No OFD packet to send [06:22:41]OFD Sender: No OFD packet to send [06:22:46]OFD Sender: No OFD packet to send [06:22:51]OFD Sender: No OFD packet to send [06:22:56]OFD Sender: No OFD packet to send [06:23:01]OFD Sender: No OFD packet to send [06:23:06]OFD Sender: No OFD packet to send [06:23:11]OFD Sender: No OFD packet to send [06:23:16]OFD Sender: No OFD packet to send [06:23:21]OFD Sender: No OFD packet to send [06:23:26]OFD Sender: No OFD packet to send [06:23:31]OFD Sender: No OFD packet to send [06:23:36]OFD Sender: No OFD packet to send [06:23:41]OFD Sender: No OFD packet to send [06:23:46]OFD Sender: No OFD packet to send [06:23:51]OFD Sender: No OFD packet to send [06:23:56]OFD Sender: No OFD packet to send [06:24:01]OFD Sender: No OFD packet to send [06:24:06]OFD Sender: No OFD packet to send [06:24:11]OFD Sender: No OFD packet to send [06:24:16]OFD Sender: No OFD packet to send [06:24:21]OFD Sender: No OFD packet to send [06:24:26]OFD Sender: No OFD packet to send [06:24:31]OFD Sender: No OFD packet to send [06:24:36]OFD Sender: No OFD packet to send [06:24:41]OFD Sender: No OFD packet to send [06:24:46]OFD Sender: No OFD packet to send [06:24:51]OFD Sender: No OFD packet to send [06:24:56]OFD Sender: No OFD packet to send [06:25:01]OFD Sender: No OFD packet to send [06:25:06]OFD Sender: No OFD packet to send [06:25:11]OFD Sender: No OFD packet to send [06:25:16]OFD Sender: No OFD packet to send [06:25:21]OFD Sender: No OFD packet to send [06:25:26]OFD Sender: No OFD packet to send [06:25:31]OFD Sender: No OFD packet to send [06:25:36]OFD Sender: No OFD packet to send [06:25:41]OFD Sender: No OFD packet to send [06:25:46]OFD Sender: No OFD packet to send [06:25:51]OFD Sender: No OFD packet to send [06:25:56]OFD Sender: No OFD packet to send [06:26:01]OFD Sender: No OFD packet to send [06:26:06]OFD Sender: No OFD packet to send [06:26:11]OFD Sender: No OFD packet to send [06:26:16]OFD Sender: No OFD packet to send [06:26:21]OFD Sender: No OFD packet to send [06:26:26]OFD Sender: No OFD packet to send [06:26:31]OFD Sender: No OFD packet to send [06:26:36]OFD Sender: No OFD packet to send [06:26:41]OFD Sender: No OFD packet to send [06:26:46]OFD Sender: No OFD packet to send [06:26:51]OFD Sender: No OFD packet to send [06:26:56]OFD Sender: No OFD packet to send [06:27:01]OFD Sender: No OFD packet to send [06:27:07]OFD Sender: No OFD packet to send [06:27:12]OFD Sender: No OFD packet to send [06:27:17]OFD Sender: No OFD packet to send [06:27:22]OFD Sender: No OFD packet to send [06:27:27]OFD Sender: No OFD packet to send [06:27:32]OFD Sender: No OFD packet to send [06:27:37]OFD Sender: No OFD packet to send [06:27:42]OFD Sender: No OFD packet to send [06:27:47]OFD Sender: No OFD packet to send [06:27:52]OFD Sender: No OFD packet to send [06:27:57]OFD Sender: No OFD packet to send [06:28:02]OFD Sender: No OFD packet to send [06:28:07]OFD Sender: No OFD packet to send [06:28:12]OFD Sender: No OFD packet to send [06:28:17]OFD Sender: No OFD packet to send [06:28:22]OFD Sender: No OFD packet to send [06:28:27]OFD Sender: No OFD packet to send [06:28:32]OFD Sender: No OFD packet to send [06:28:37]OFD Sender: No OFD packet to send [06:28:42]OFD Sender: No OFD packet to send [06:28:47]OFD Sender: No OFD packet to send [06:28:52]OFD Sender: No OFD packet to send [06:28:57]OFD Sender: No OFD packet to send [06:29:02]OFD Sender: No OFD packet to send [06:29:07]OFD Sender: No OFD packet to send [06:29:12]OFD Sender: No OFD packet to send [06:29:17]OFD Sender: No OFD packet to send [06:29:22]OFD Sender: No OFD packet to send [06:29:27]OFD Sender: No OFD packet to send [06:29:32]OFD Sender: No OFD packet to send [06:29:37]OFD Sender: No OFD packet to send [06:29:42]OFD Sender: No OFD packet to send [06:29:47]OFD Sender: No OFD packet to send [06:29:52]OFD Sender: No OFD packet to send [06:29:57]OFD Sender: No OFD packet to send [06:30:02]OFD Sender: No OFD packet to send [06:30:07]OFD Sender: No OFD packet to send [06:30:12]OFD Sender: No OFD packet to send [06:30:17]OFD Sender: No OFD packet to send [06:30:22]OFD Sender: No OFD packet to send [06:30:27]OFD Sender: No OFD packet to send [06:30:32]OFD Sender: No OFD packet to send [06:30:37]OFD Sender: No OFD packet to send [06:30:42]OFD Sender: No OFD packet to send [06:30:47]OFD Sender: No OFD packet to send [06:30:52]OFD Sender: No OFD packet to send [06:30:57]OFD Sender: No OFD packet to send [06:31:02]OFD Sender: No OFD packet to send [06:31:07]OFD Sender: No OFD packet to send [06:31:12]OFD Sender: No OFD packet to send [06:31:17]OFD Sender: No OFD packet to send [06:31:22]OFD Sender: No OFD packet to send [06:31:27]OFD Sender: No OFD packet to send [06:31:32]OFD Sender: No OFD packet to send [06:31:37]OFD Sender: No OFD packet to send [06:31:42]OFD Sender: No OFD packet to send [06:31:47]OFD Sender: No OFD packet to send [06:31:52]OFD Sender: No OFD packet to send [06:31:57]OFD Sender: No OFD packet to send [06:32:02]OFD Sender: No OFD packet to send [06:32:07]OFD Sender: No OFD packet to send [06:32:12]OFD Sender: No OFD packet to send [06:32:17]OFD Sender: No OFD packet to send [06:32:22]OFD Sender: No OFD packet to send [06:32:27]OFD Sender: No OFD packet to send [06:32:32]OFD Sender: No OFD packet to send [06:32:37]OFD Sender: No OFD packet to send [06:32:42]OFD Sender: No OFD packet to send [06:32:47]OFD Sender: No OFD packet to send [06:32:52]OFD Sender: No OFD packet to send [06:32:57]OFD Sender: No OFD packet to send [06:33:02]OFD Sender: No OFD packet to send [06:33:07]OFD Sender: No OFD packet to send [06:33:12]OFD Sender: No OFD packet to send [06:33:17]OFD Sender: No OFD packet to send [06:33:22]OFD Sender: No OFD packet to send [06:33:27]OFD Sender: No OFD packet to send [06:33:32]OFD Sender: No OFD packet to send [06:33:37]OFD Sender: No OFD packet to send [06:33:42]OFD Sender: No OFD packet to send [06:33:47]OFD Sender: No OFD packet to send [06:33:52]OFD Sender: No OFD packet to send [06:33:57]OFD Sender: No OFD packet to send [06:34:02]OFD Sender: No OFD packet to send [06:34:07]OFD Sender: No OFD packet to send [06:34:12]OFD Sender: No OFD packet to send [06:34:17]OFD Sender: No OFD packet to send [06:34:22]OFD Sender: No OFD packet to send [06:34:27]OFD Sender: No OFD packet to send [06:34:32]OFD Sender: No OFD packet to send [06:34:37]OFD Sender: No OFD packet to send [06:34:42]OFD Sender: No OFD packet to send [06:34:47]OFD Sender: No OFD packet to send [06:34:52]OFD Sender: No OFD packet to send [06:34:57]OFD Sender: No OFD packet to send [06:35:02]OFD Sender: No OFD packet to send [06:35:07]OFD Sender: No OFD packet to send [06:35:12]OFD Sender: No OFD packet to send [06:35:17]OFD Sender: No OFD packet to send [06:35:22]OFD Sender: No OFD packet to send [06:35:27]OFD Sender: No OFD packet to send [06:35:32]OFD Sender: No OFD packet to send [06:35:37]OFD Sender: No OFD packet to send [06:35:42]OFD Sender: No OFD packet to send [06:35:47]OFD Sender: No OFD packet to send [06:35:52]OFD Sender: No OFD packet to send [06:35:57]OFD Sender: No OFD packet to send [06:36:02]OFD Sender: No OFD packet to send [06:36:07]OFD Sender: No OFD packet to send [06:36:12]OFD Sender: No OFD packet to send [06:36:17]OFD Sender: No OFD packet to send [06:36:22]OFD Sender: No OFD packet to send [06:36:27]OFD Sender: No OFD packet to send [06:36:32]OFD Sender: No OFD packet to send [06:36:37]OFD Sender: No OFD packet to send [06:36:42]OFD Sender: No OFD packet to send [06:36:47]OFD Sender: No OFD packet to send [06:36:52]OFD Sender: No OFD packet to send [06:36:57]OFD Sender: No OFD packet to send [06:37:02]OFD Sender: No OFD packet to send [06:37:07]OFD Sender: No OFD packet to send [06:37:12]OFD Sender: No OFD packet to send [06:37:17]OFD Sender: No OFD packet to send [06:37:22]OFD Sender: No OFD packet to send [06:37:27]OFD Sender: No OFD packet to send [06:37:32]OFD Sender: No OFD packet to send [06:37:37]OFD Sender: No OFD packet to send [06:37:42]OFD Sender: No OFD packet to send [06:37:47]OFD Sender: No OFD packet to send [06:37:52]OFD Sender: No OFD packet to send [06:37:57]OFD Sender: No OFD packet to send [06:38:02]OFD Sender: No OFD packet to send [06:38:07]OFD Sender: No OFD packet to send [06:38:12]OFD Sender: No OFD packet to send [06:38:17]OFD Sender: No OFD packet to send [06:38:22]OFD Sender: No OFD packet to send [06:38:27]OFD Sender: No OFD packet to send [06:38:32]OFD Sender: No OFD packet to send [06:38:37]OFD Sender: No OFD packet to send [06:38:42]OFD Sender: No OFD packet to send [06:38:47]OFD Sender: No OFD packet to send [06:38:52]OFD Sender: No OFD packet to send [06:38:57]OFD Sender: No OFD packet to send [06:39:02]OFD Sender: No OFD packet to send [06:39:07]OFD Sender: No OFD packet to send [06:39:12]OFD Sender: No OFD packet to send [06:39:17]OFD Sender: No OFD packet to send [06:39:22]OFD Sender: No OFD packet to send [06:39:27]OFD Sender: No OFD packet to send [06:39:32]OFD Sender: No OFD packet to send [06:39:37]OFD Sender: No OFD packet to send [06:39:42]OFD Sender: No OFD packet to send [06:39:47]OFD Sender: No OFD packet to send [06:39:52]OFD Sender: No OFD packet to send [06:39:57]OFD Sender: No OFD packet to send [06:40:02]OFD Sender: No OFD packet to send [06:40:07]OFD Sender: No OFD packet to send [06:40:12]OFD Sender: No OFD packet to send [06:40:17]OFD Sender: No OFD packet to send [06:40:22]OFD Sender: No OFD packet to send [06:40:27]OFD Sender: No OFD packet to send [06:40:32]OFD Sender: No OFD packet to send [06:40:37]OFD Sender: No OFD packet to send [06:40:42]OFD Sender: No OFD packet to send [06:40:47]OFD Sender: No OFD packet to send [06:40:52]OFD Sender: No OFD packet to send [06:40:57]OFD Sender: No OFD packet to send [06:41:02]OFD Sender: No OFD packet to send [06:41:07]OFD Sender: No OFD packet to send [06:41:12]OFD Sender: No OFD packet to send [06:41:17]OFD Sender: No OFD packet to send [06:41:22]OFD Sender: No OFD packet to send [06:41:27]OFD Sender: No OFD packet to send [06:41:32]OFD Sender: No OFD packet to send [06:41:37]OFD Sender: No OFD packet to send [06:41:42]OFD Sender: No OFD packet to send [06:41:47]OFD Sender: No OFD packet to send [06:41:52]OFD Sender: No OFD packet to send [06:41:57]OFD Sender: No OFD packet to send [06:42:02]OFD Sender: No OFD packet to send [06:42:07]OFD Sender: No OFD packet to send [06:42:12]OFD Sender: No OFD packet to send [06:42:17]OFD Sender: No OFD packet to send [06:42:22]OFD Sender: No OFD packet to send [06:42:27]OFD Sender: No OFD packet to send [06:42:32]OFD Sender: No OFD packet to send [06:42:37]OFD Sender: No OFD packet to send [06:42:42]OFD Sender: No OFD packet to send [06:42:47]OFD Sender: No OFD packet to send [06:42:52]OFD Sender: No OFD packet to send [06:42:57]OFD Sender: No OFD packet to send [06:43:02]OFD Sender: No OFD packet to send [06:43:07]OFD Sender: No OFD packet to send [06:43:12]OFD Sender: No OFD packet to send [06:43:17]OFD Sender: No OFD packet to send [06:43:22]OFD Sender: No OFD packet to send [06:43:27]OFD Sender: No OFD packet to send [06:43:32]OFD Sender: No OFD packet to send [06:43:37]OFD Sender: No OFD packet to send [06:43:42]OFD Sender: No OFD packet to send [06:43:47]OFD Sender: No OFD packet to send [06:43:52]OFD Sender: No OFD packet to send [06:43:57]OFD Sender: No OFD packet to send [06:44:02]OFD Sender: No OFD packet to send [06:44:07]OFD Sender: No OFD packet to send [06:44:12]OFD Sender: No OFD packet to send [06:44:17]OFD Sender: No OFD packet to send [06:44:22]OFD Sender: No OFD packet to send [06:44:27]OFD Sender: No OFD packet to send [06:44:32]OFD Sender: No OFD packet to send [06:44:37]OFD Sender: No OFD packet to send [06:44:42]OFD Sender: No OFD packet to send [06:44:47]OFD Sender: No OFD packet to send [06:44:52]OFD Sender: No OFD packet to send [06:44:57]OFD Sender: No OFD packet to send [06:45:02]OFD Sender: No OFD packet to send [06:45:07]OFD Sender: No OFD packet to send [06:45:12]OFD Sender: No OFD packet to send [06:45:17]OFD Sender: No OFD packet to send [06:45:22]OFD Sender: No OFD packet to send [06:45:27]OFD Sender: No OFD packet to send [06:45:32]OFD Sender: No OFD packet to send [06:45:37]OFD Sender: No OFD packet to send [06:45:42]OFD Sender: No OFD packet to send [06:45:47]OFD Sender: No OFD packet to send [06:45:52]OFD Sender: No OFD packet to send [06:45:57]OFD Sender: No OFD packet to send [06:46:02]OFD Sender: No OFD packet to send [06:46:07]OFD Sender: No OFD packet to send [06:46:12]OFD Sender: No OFD packet to send [06:46:17]OFD Sender: No OFD packet to send [06:46:22]OFD Sender: No OFD packet to send [06:46:27]OFD Sender: No OFD packet to send [06:46:32]OFD Sender: No OFD packet to send [06:46:37]OFD Sender: No OFD packet to send [06:46:42]OFD Sender: No OFD packet to send [06:46:47]OFD Sender: No OFD packet to send [06:46:52]OFD Sender: No OFD packet to send [06:46:57]OFD Sender: No OFD packet to send [06:47:02]OFD Sender: No OFD packet to send [06:47:08]OFD Sender: No OFD packet to send [06:47:13]OFD Sender: No OFD packet to send [06:47:18]OFD Sender: No OFD packet to send [06:47:23]OFD Sender: No OFD packet to send [06:47:28]OFD Sender: No OFD packet to send [06:47:33]OFD Sender: No OFD packet to send [06:47:38]OFD Sender: No OFD packet to send [06:47:43]OFD Sender: No OFD packet to send [06:47:48]OFD Sender: No OFD packet to send [06:47:53]OFD Sender: No OFD packet to send [06:47:58]OFD Sender: No OFD packet to send [06:48:03]OFD Sender: No OFD packet to send [06:48:08]OFD Sender: No OFD packet to send [06:48:13]OFD Sender: No OFD packet to send [06:48:18]OFD Sender: No OFD packet to send [06:48:23]OFD Sender: No OFD packet to send [06:48:28]OFD Sender: No OFD packet to send [06:48:33]OFD Sender: No OFD packet to send [06:48:38]OFD Sender: No OFD packet to send [06:48:43]OFD Sender: No OFD packet to send [06:48:48]OFD Sender: No OFD packet to send [06:48:53]OFD Sender: No OFD packet to send [06:48:58]OFD Sender: No OFD packet to send [06:49:03]OFD Sender: No OFD packet to send [06:49:08]OFD Sender: No OFD packet to send [06:49:13]OFD Sender: No OFD packet to send [06:49:18]OFD Sender: No OFD packet to send [06:49:23]OFD Sender: No OFD packet to send [06:49:28]OFD Sender: No OFD packet to send [06:49:33]OFD Sender: No OFD packet to send [06:49:38]OFD Sender: No OFD packet to send [06:49:43]OFD Sender: No OFD packet to send [06:49:48]OFD Sender: No OFD packet to send [06:49:53]OFD Sender: No OFD packet to send [06:49:58]OFD Sender: No OFD packet to send [06:50:03]OFD Sender: No OFD packet to send [06:50:08]OFD Sender: No OFD packet to send [06:50:13]OFD Sender: No OFD packet to send [06:50:18]OFD Sender: No OFD packet to send [06:50:23]OFD Sender: No OFD packet to send [06:50:28]OFD Sender: No OFD packet to send [06:50:33]OFD Sender: No OFD packet to send [06:50:38]OFD Sender: No OFD packet to send [06:50:43]OFD Sender: No OFD packet to send [06:50:48]OFD Sender: No OFD packet to send [06:50:53]OFD Sender: No OFD packet to send [06:50:58]OFD Sender: No OFD packet to send [06:51:03]OFD Sender: No OFD packet to send [06:51:08]OFD Sender: No OFD packet to send [06:51:13]OFD Sender: No OFD packet to send [06:51:18]OFD Sender: No OFD packet to send [06:51:23]OFD Sender: No OFD packet to send [06:51:28]OFD Sender: No OFD packet to send [06:51:33]OFD Sender: No OFD packet to send [06:51:38]OFD Sender: No OFD packet to send [06:51:43]OFD Sender: No OFD packet to send [06:51:48]OFD Sender: No OFD packet to send [06:51:53]OFD Sender: No OFD packet to send [06:51:58]OFD Sender: No OFD packet to send [06:52:03]OFD Sender: No OFD packet to send [06:52:08]OFD Sender: No OFD packet to send [06:52:13]OFD Sender: No OFD packet to send [06:52:18]OFD Sender: No OFD packet to send [06:52:23]OFD Sender: No OFD packet to send [06:52:28]OFD Sender: No OFD packet to send [06:52:33]OFD Sender: No OFD packet to send [06:52:38]OFD Sender: No OFD packet to send [06:52:43]OFD Sender: No OFD packet to send [06:52:48]OFD Sender: No OFD packet to send [06:52:53]OFD Sender: No OFD packet to send [06:52:58]OFD Sender: No OFD packet to send [06:53:03]OFD Sender: No OFD packet to send [06:53:08]OFD Sender: No OFD packet to send [06:53:13]OFD Sender: No OFD packet to send [06:53:18]OFD Sender: No OFD packet to send [06:53:23]OFD Sender: No OFD packet to send [06:53:28]OFD Sender: No OFD packet to send [06:53:33]OFD Sender: No OFD packet to send [06:53:38]OFD Sender: No OFD packet to send [06:53:43]OFD Sender: No OFD packet to send [06:53:48]OFD Sender: No OFD packet to send [06:53:53]OFD Sender: No OFD packet to send [06:53:58]OFD Sender: No OFD packet to send [06:54:03]OFD Sender: No OFD packet to send [06:54:08]OFD Sender: No OFD packet to send [06:54:13]OFD Sender: No OFD packet to send [06:54:18]OFD Sender: No OFD packet to send [06:54:23]OFD Sender: No OFD packet to send [06:54:28]OFD Sender: No OFD packet to send [06:54:33]OFD Sender: No OFD packet to send [06:54:38]OFD Sender: No OFD packet to send [06:54:43]OFD Sender: No OFD packet to send [06:54:48]OFD Sender: No OFD packet to send [06:54:53]OFD Sender: No OFD packet to send [06:54:58]OFD Sender: No OFD packet to send [06:55:03]OFD Sender: No OFD packet to send [06:55:08]OFD Sender: No OFD packet to send [06:55:13]OFD Sender: No OFD packet to send [06:55:18]OFD Sender: No OFD packet to send [06:55:23]OFD Sender: No OFD packet to send [06:55:28]OFD Sender: No OFD packet to send [06:55:33]OFD Sender: No OFD packet to send [06:55:38]OFD Sender: No OFD packet to send [06:55:43]OFD Sender: No OFD packet to send [06:55:48]OFD Sender: No OFD packet to send [06:55:53]OFD Sender: No OFD packet to send [06:55:58]OFD Sender: No OFD packet to send [06:56:03]OFD Sender: No OFD packet to send [06:56:08]OFD Sender: No OFD packet to send [06:56:13]OFD Sender: No OFD packet to send [06:56:18]OFD Sender: No OFD packet to send [06:56:23]OFD Sender: No OFD packet to send [06:56:28]OFD Sender: No OFD packet to send [06:56:33]OFD Sender: No OFD packet to send [06:56:38]OFD Sender: No OFD packet to send [06:56:43]OFD Sender: No OFD packet to send [06:56:48]OFD Sender: No OFD packet to send [06:56:53]OFD Sender: No OFD packet to send [06:56:58]OFD Sender: No OFD packet to send [06:57:03]OFD Sender: No OFD packet to send [06:57:08]OFD Sender: No OFD packet to send [06:57:13]OFD Sender: No OFD packet to send [06:57:18]OFD Sender: No OFD packet to send [06:57:23]OFD Sender: No OFD packet to send [06:57:28]OFD Sender: No OFD packet to send [06:57:33]OFD Sender: No OFD packet to send [06:57:38]OFD Sender: No OFD packet to send [06:57:43]OFD Sender: No OFD packet to send [06:57:48]OFD Sender: No OFD packet to send [06:57:53]OFD Sender: No OFD packet to send [06:57:58]OFD Sender: No OFD packet to send [06:58:03]OFD Sender: No OFD packet to send [06:58:08]OFD Sender: No OFD packet to send [06:58:13]OFD Sender: No OFD packet to send [06:58:18]OFD Sender: No OFD packet to send [06:58:23]OFD Sender: No OFD packet to send [06:58:28]OFD Sender: No OFD packet to send [06:58:33]OFD Sender: No OFD packet to send [06:58:38]OFD Sender: No OFD packet to send [06:58:43]OFD Sender: No OFD packet to send [06:58:48]OFD Sender: No OFD packet to send [06:58:53]OFD Sender: No OFD packet to send [06:58:55]accept exits with 7 [06:58:55]New connection [06:58:55]New thread 3066543460 created [06:58:55]Thread 3066686820 joined [06:58:55]Waiting for new connection... [06:58:55] Sock 7.Parse request [06:58:55]Sock 7.Check first char [06:58:55]Sock 7.First char is OK [06:58:55]request: POST /json_proto HTTP/1.0 [06:58:55]Method: POST [06:58:55]URL: /json_proto [06:58:55]Method is POST - this is cgi request [06:58:55]url: /json_proto [06:58:55]query_string will be loaded in cgi processing [06:58:55]execute_cgi json_proto POST (null) [06:58:55]execute_cgi path=json_proto method=POST [06:58:55]POST find Content-Length [06:58:55]Host: 172.17.36.132:8080 [06:58:55]Content-Length: 670 [06:58:55]Content-Type: application/json [06:58:55] [06:58:55]POST finish read [06:58:55]Found Content-Length = 670 [06:58:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706330", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 5.900, "sum" : 400.61, "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" ] } } [06:58:55]execute_script... [06:58: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)706330", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 5.900, "sum" : 400.61, "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" ] } } [06:58:55]POST & json_proto [06:58:55]process_json_proto [06:58:55]json parsed OK: [06:58:55]protocol is kg_v1.0 [06:58:55]action value=close_receipt [06:58:55]process_action close_receipt [06:58:55]cmd_close_receipt [06:58:55]MH_GetDate [06:58:55]Write to MH i2c: F0 00 00 91 1C 9C [06:58:55]Write i2c OK [06:58:55]MH_I2C_Read... [06:58:55]Read from MH i2c: F0 [06:58:55]MH_I2C_Read... [06:58:55]Read from MH i2c: F0 09 00 [06:58:55]MH_I2C_Read... [06:58:55]Read from MH i2c: F0 09 00 91 1C 00 B3 69 5D 66 B2 22 B0 64 6C [06:58:55]GetLastDocTimeStamp 1717394686 [06:58:55]current date 1717397939 [06:58:55]FM_GetShiftState [06:58:55]SAM_PROTO_GetShiftState [06:58:55]wFMCommunicate request_size=4 [06:58:55]MH_SAM_APDU [06:58:55]CAPDU: 80 13 01 00 [06:58:55]Write to MH i2c: E2 08 00 92 1C 80 13 01 00 00 00 00 00 2B [06:58:55]Write i2c OK [06:58:55]MH_I2C_Read... [06:58:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:58:55]Read from MH i2c: E2 [06:58:55]MH_I2C_Read... [06:58:55]Read from MH i2c: E2 0E 00 [06:58:55]MH_I2C_Read... [06:58:55]Read from MH i2c: E2 0E 00 92 1C 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 06 [06:58:55]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [06:58:55]wFMCommunicate OK [06:58:55]SAM_PROTO_GetShiftState done [06:58:55]FM_GetShiftState done [06:58:55]opened in 1717378033 [06:58:55]opened+sec_in_day 1717464433 [06:58:55]quantity*price = 40061 [06:58:55]sum+1 = 40062 [06:58:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 5 03.06.2024 06:58 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68259 ФПД: 112719016590260 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T065859&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68259&fm=112719016590260&tin=02508201610067®Number=0000000000098096&sum=40000 [06:58:56]StoreToDocumentArchive [06:58:56]shift 324 fd 68259 [06:58:56]save to /storage/0324/doc_00068259 [06:58:56]save last doc name /storage/0324/doc_00068259 to /storage/kkm_last_doc_name [06:58:56]save OK [06:58:56]Clear old archive folders... [06:58:56]ProcessDocumentItem done err = 0, tmpTLVsize=252 [06:58:56]tlvbuf is 002F2530 [06:58:56]SAM_PROTO_ClearQueue [06:58:56]wFMCommunicate request_size=4 [06:58:56]MH_SAM_APDU [06:58:56]CAPDU: 80 09 00 00 [06:58:56]Write to MH i2c: E2 08 00 9F 1C 80 09 00 00 00 00 00 00 2D [06:58:56]Write i2c OK [06:58:56]MH_I2C_Read... [06:58:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:58:56]Read from MH i2c: E2 [06:58:56]MH_I2C_Read... [06:58:56]Read from MH i2c: E2 03 00 [06:58:56]MH_I2C_Read... [06:58:56]Read from MH i2c: E2 03 00 9F 1C 00 90 00 2F [06:58:56]RAPDU: 90 00 [06:58:56]wFMCommunicate OK [06:58:56]SAM_PROTO_ClearQueue done [06:58:56]KKMCreateOFDPacket [06:58:56]OFDProtocolAddRootSTLVToBuf [06:58:56]FM_MakeSignedData [06:58:56]FM_MakeSignedData [06:58:56]SAM_PROTO_SignData [06:58:56]wFMCommunicate request_size=4 [06:58:56]MH_SAM_APDU [06:58:56]CAPDU: 80 0D 01 02 [06:58:56]Write to MH i2c: E2 08 00 A0 1C 80 0D 01 02 00 00 00 00 35 [06:58:56]Write i2c OK [06:58:56]MH_I2C_Read... [06:58:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:58:56]Read from MH i2c: E2 [06:58:56]MH_I2C_Read... [06:58:56]Read from MH i2c: E2 03 00 [06:58:56]MH_I2C_Read... [06:58:56]Read from MH i2c: E2 03 00 A0 1C 00 90 00 30 [06:58:56]RAPDU: 90 00 [06:58:56]wFMCommunicate OK [06:58:56]wFMCommunicate request_size=255 [06:58:56]MH_SAM_APDU [06:58:56]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 7D 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 9E 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 05 00 00 00 F4 03 04 00 B3 69 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A3 0A 01 00 35 04 06 00 [06:58:56]Write to MH i2c: E2 02 01 A1 1C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 7D 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 9E 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 05 00 00 00 F4 03 04 00 B3 69 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A3 0A 01 00 35 04 06 00 00 00 E4 [06:58:56]Write i2c OK [06:58:56]MH_I2C_Read... [06:58:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:58:56]Read from MH i2c: E2 [06:58:56]MH_I2C_Read... [06:58:56]Read from MH i2c: E2 03 00 [06:58:56]MH_I2C_Read... [06:58:56]Read from MH i2c: E2 03 00 A1 1C 00 90 00 31 [06:58:56]RAPDU: 90 00 [06:58:56]wFMCommunicate OK [06:58:56]wFMCommunicate request_size=11 [06:58:56]MH_SAM_APDU [06:58:56]CAPDU: 80 0D 02 02 06 66 84 70 F1 7B B4 [06:58:56]Write to MH i2c: E2 0E 00 A2 1C 80 0D 02 02 06 00 66 84 70 F1 7B B4 00 00 BE [06:58:56]Write i2c OK [06:58:56]MH_I2C_Read... [06:58:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:58:56]Read from MH i2c: E2 [06:58:56]MH_I2C_Read... [06:58:56]Read from MH i2c: E2 03 00 [06:58:56]MH_I2C_Read... [06:58:56]Read from MH i2c: E2 03 00 A2 1C 00 90 00 32 [06:58:56]RAPDU: 90 00 [06:58:56]wFMCommunicate OK [06:58:56]wFMCommunicate request_size=4 [06:58:56]MH_SAM_APDU [06:58:56]CAPDU: 80 0D 03 02 [06:58:56]Write to MH i2c: E2 08 00 A3 1C 80 0D 03 02 00 00 00 00 3A [06:58:56]Write i2c OK [06:58:56]MH_I2C_Read... [06:58:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:58:56]Read from MH i2c: E2 [06:58:56]MH_I2C_Read... [06:58:56]Read from MH i2c: E2 0B 00 [06:58:56]MH_I2C_Read... [06:58:56]Read from MH i2c: E2 0B 00 A3 1C 00 29 A9 26 CF 62 F8 5B 46 90 00 FD [06:58:56]RAPDU: 29 A9 26 CF 62 F8 5B 46 90 00 [06:58:56]wFMCommunicate OK [06:58:56]SAM_PROTO_SignData done [06:58:56]FM_MakeSignedData done [06:58:56]CreateOFDProtocolMessage [06:58:56]wFMCommunicate request_size=4 [06:58:56]MH_SAM_APDU [06:58:56]CAPDU: 80 11 00 00 [06:58:56]Write to MH i2c: E2 08 00 A4 1C 80 11 00 00 00 00 00 00 3A [06:58:56]Write i2c OK [06:58:56]MH_I2C_Read... [06:58:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:58:56]Read from MH i2c: E2 [06:58:56]MH_I2C_Read... [06:58:56]Read from MH i2c: E2 17 00 [06:58:56]MH_I2C_Read... [06:58:56]Read from MH i2c: E2 17 00 A4 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 85 [06:58:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [06:58:56]wFMCommunicate OK [06:58:56]CreateOFDProtocolMessage done [06:58:56]OFDSenderStorePacket 68259 [06:58:56]StoreOFDPacket docnum=68259 [06:58:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 2E 9C 08 01 65 A6 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 7D 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 9E 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 05 00 00 00 F4 03 04 00 B3 69 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A3 0A 01 00 35 04 06 00 66 84 70 F1 7B B4 29 A9 26 CF 62 F8 5B 46 [06:58:56]CheckFolder [06:58:56]dirname=/storage/ofd_packets [06:58:56]CheckFolder done [06:58:56]ProducePacketName [06:58:56]name=ofd_packets/00068259 [06:58:56]NVStorageSaveData ofd_packets/00068259 [06:58:56]File name is /storage/ofd_packets/00068259 [06:58:56]Write 302 bytes [06:58:56]NVStorageSaveData done [06:58:56]OFDSenderStorePacket done [06:58:56]KKMCreateOFDPacket done [06:58:56]NVStorageSaveData kkm_last_timestamp [06:58:56]File name is /storage/kkm_last_timestamp [06:58:56]Write 4 bytes [06:58:56]NVStorageSaveData done [06:58:56]ExternCall_PrintAddStr [06:58:56]wPrintStart [06:58:56]Write to MH i2c: 01 00 00 A5 1C C1 [06:58:56]Write i2c OK [06:58:56]MH_I2C_Read... [06:58:56]Read from MH i2c: 01 [06:58:56]MH_I2C_Read... [06:58:56]Read from MH i2c: 01 07 00 [06:58:56]MH_I2C_Read... [06:58:56]Read from MH i2c: 01 07 00 A5 1C 00 00 00 00 00 FF 0F D6 [06:58:56]RasterBufferAndPrint [06:58:56]line Счет N : (1)706330 [06:58:56]line ИНН: 02508201610067 [06:58:56]line Контрольно-Кассовый Чек [06:58:56]line ПРОДАЖА [06:58:56]line ТРК (МРК, ГНК) : 52 [06:58:56]line Товар: 2710124130 [06:58:56]line Super-92-К-5 [06:58:56]line 5.900 * 67.90 [06:58:56]line = 400.61 [06:58:56]line НДС 12% НСП 1% [06:58:56]line > о реализуемом товаре [06:58:56]line ОКРУГЛЕНИЕ: -0.61 [06:58:56]line ИТОГО: 400.00 [06:58:56]line Внесено: 400.00 [06:58:56]line СДАЧА: 0.00 [06:58:56]line НСП 1% : 3.54 [06:58:56]line НДС 12% : 42.54 [06:58:56]line Наличными: 400.00 [06:58:56]line Безнал.: 0.00 [06:58:56]line Место: АЗС № 62 "Партнер Нефть" [06:58:56]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [06:58:56]line СНО: Общий режим [06:58:56]line Чек 5 03.06.2024 06:58 [06:58:56]line Смена: 324 ФФД: 1.0 [06:58:56]line ЗНМ: 0300000181 [06:58:56]line РНМ: 0000000000098096 [06:58:56]line Версия ККМ: 001 [06:58:56]line ФМ: 0000000000965400 [06:58:56]line ФД: 68259 [06:58:56]line ФПД: 112719016590260 [06:58:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T065859&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68259&fm=112719016590260&tin=02508201610067®Number=0000000000098096&sum=40000 [06:58:57]OFD Sender: Processing packet 68259 [packets to send 26, broken 25] [06:58:57]ProducePacketName [06:58:57]name=ofd_packets/00068259 [06:58:57]OFD Sender: To server: pG, [06:58:57]CommunicateWithHost lk.salyk.kg:30040 [06:58:57]ConnectInit lk.salyk.kg [06:58:57]written 0, free lines is 4095 [06:58:57]Connected sock=10 [06:58:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 2E 9C 08 01 65 A6 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 7D 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 9E 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 05 00 00 00 F4 03 04 00 B3 69 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A3 0A 01 00 35 04 06 00 66 84 70 F1 7B B4 29 A9 26 CF 62 F8 5B 46 [06:58:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 EA E7 47 00 C7 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A3 0A 01 00 F4 03 04 00 AF 10 5D 66 B6 04 01 00 00 A2 BC 8A 94 00 43 06 27 [06:58:57]CommunicateWithHost err = 0 [06:58:57]CheckOFDResponse [06:58:57]1017 (14) - 77093643461234 [06:58:57]1041 (16) - 0000000000965400 [06:58:57]1040 (4) - 68259 [06:58:57]1012 (4) - 03.06.2024 00:39 [06:58:57]1206 (1) - 0 [06:58:57]OFD Sender: Remove packet 68259 [06:58:57]ProducePacketName [06:58:57]name=ofd_packets/00068259 [06:58:57]NVStorageDeleteData [06:58:57]Write to MH i2c: 01 00 00 D0 1C EC [06:58:57]Write i2c OK [06:58:57]MH_I2C_Read... [06:58:57]Read from MH i2c: 01 [06:58:57]MH_I2C_Read... [06:58:57]Read from MH i2c: 01 07 00 [06:58:57]MH_I2C_Read... [06:58:57]Read from MH i2c: 01 07 00 D0 1C 00 00 00 00 00 D4 0C D3 [06:58:57]RasterBufferAndPrint [06:58:57]line [06:58:57]line [06:58:57]line [06:58:57]line [06:58:57]line [06:58:57]written 0, free lines is 3292 [06:58:57]MH_Cut [06:58:57]Write to MH i2c: D1 01 00 D7 1C 01 C5 [06:58:57]Write i2c OK [06:58:57]MH_I2C_Read... [06:58:57]Read from MH i2c: D1 [06:58:57]MH_I2C_Read... [06:58:57]Read from MH i2c: D1 01 00 [06:58:57]MH_I2C_Read... [06:58:57]Read from MH i2c: D1 01 00 D7 1C 00 C4 [06:58:57]Write to MH i2c: 01 00 00 D8 1C F4 [06:58:57]Write i2c OK [06:58:57]MH_I2C_Read... [06:58:58]OFD Sender: No OFD packet to send [06:58:58]*** Cut start [06:58:58]*** Partial cut [06:58:58]*** CUTSNS_PIN = 1 [06:58:58]*** CUTSNS_PIN = 0 [06:58:58]*** Brake cut motor [06:58:59]Read from MH i2c: 01 [06:58:59]MH_I2C_Read... [06:58:59]*** Stop cut motor [06:58:59]*** Cut end [06:58:59]Read from MH i2c: 01 07 00 [06:58:59]MH_I2C_Read... [06:58:59]Read from MH i2c: 01 07 00 D8 1C 00 00 00 00 00 FF 0F 09 [06:58:59]process_action close_receipt done [06:58:59]requested_data is exist [06:58:59]produce_requested_data [06:58:59]requested_item fm.sn is exist - process it [06:58:59]wFMCommunicate request_size=4 [06:58:59]MH_SAM_APDU [06:58:59]CAPDU: 80 11 00 00 [06:58:59]Write to MH i2c: E2 08 00 D9 1C 80 11 00 00 00 00 00 00 6F [06:58:59]Write i2c OK [06:58:59]MH_I2C_Read... [06:58:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:58:59]Read from MH i2c: E2 [06:58:59]MH_I2C_Read... [06:58:59]Read from MH i2c: E2 17 00 [06:58:59]MH_I2C_Read... [06:58:59]Read from MH i2c: E2 17 00 D9 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 BA [06:58:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [06:58:59]wFMCommunicate OK [06:58:59]requested_item fd.num is exist - process it [06:58:59]SAM_PROTO_GetFieldsCounters [06:58:59]wFMCommunicate request_size=4 [06:58:59]MH_SAM_APDU [06:58:59]CAPDU: 80 13 00 00 [06:58:59]Write to MH i2c: E2 08 00 DA 1C 80 13 00 00 00 00 00 00 72 [06:58:59]Write i2c OK [06:58:59]MH_I2C_Read... [06:58:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:58:59]Read from MH i2c: E2 [06:58:59]MH_I2C_Read... [06:58:59]Read from MH i2c: E2 62 00 [06:58:59]MH_I2C_Read... [06:58:59]Read from MH i2c: E2 62 00 DA 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 A3 0A 01 00 0E 04 04 00 44 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 94 [06:58:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 A3 0A 01 00 0E 04 04 00 44 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 [06:58:59]wFMCommunicate OK [06:58:59]SAM_PROTO_GetFieldsCounters done [06:58:59]requested_item shift.num is exist - process it [06:58:59]requested_item shift.opened is exist - process it [06:58:59]req_shift_opened [06:58:59]FM_GetShiftState [06:58:59]SAM_PROTO_GetShiftState [06:58:59]wFMCommunicate request_size=4 [06:58:59]MH_SAM_APDU [06:58:59]CAPDU: 80 13 01 00 [06:58:59]Write to MH i2c: E2 08 00 DB 1C 80 13 01 00 00 00 00 00 74 [06:58:59]Write i2c OK [06:58:59]MH_I2C_Read... [06:58:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:58:59]Read from MH i2c: E2 [06:58:59]MH_I2C_Read... [06:58:59]Read from MH i2c: E2 0E 00 [06:58:59]MH_I2C_Read... [06:58:59]Read from MH i2c: E2 0E 00 DB 1C 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 4F [06:58:59]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [06:58:59]wFMCommunicate OK [06:58:59]SAM_PROTO_GetShiftState done [06:58:59]FM_GetShiftState done [06:58:59]req_shift_opened done [06:58:59]requested_item shift.open_date is exist - process it [06:58:59]req_shift_open_date [06:58:59]req_shift_open_date done [06:58:59]produce_requested_data done [06:58:59]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68259,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [06:58:59]process_action_free close_receipt [06:58:59]json_value_free [06:58:59]json_value_free done [06:58:59]process_json_proto returns [06:58:59]Send response to host [06:58:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68259,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [06:58:59]free response buf [06:58:59]execute_script done [06:58:59]execute_script returns [06:58:59]free content buf [06:58:59]Sock 7.Close socket [06:58:59]Sock 7.Thread stoped [06:59:03]OFD Sender: No OFD packet to send [06:59:08]OFD Sender: No OFD packet to send [06:59:13]OFD Sender: No OFD packet to send [06:59:18]OFD Sender: No OFD packet to send [06:59:23]OFD Sender: No OFD packet to send [06:59:28]OFD Sender: No OFD packet to send [06:59:33]OFD Sender: No OFD packet to send [06:59:38]OFD Sender: No OFD packet to send [06:59:43]OFD Sender: No OFD packet to send [06:59:48]OFD Sender: No OFD packet to send [06:59:53]OFD Sender: No OFD packet to send [06:59:58]OFD Sender: No OFD packet to send [06:59:59]accept exits with 9 [06:59:59]New connection [06:59:59]New thread 3066686820 created [06:59:59]Thread 3066543460 joined [06:59:59]Waiting for new connection... [06:59:59] Sock 9.Parse request [06:59:59]Sock 9.Check first char [06:59:59]Sock 9.First char is OK [06:59:59]request: POST /json_proto HTTP/1.0 [06:59:59]Method: POST [06:59:59]URL: /json_proto [06:59:59]Method is POST - this is cgi request [06:59:59]url: /json_proto [06:59:59]query_string will be loaded in cgi processing [06:59:59]execute_cgi json_proto POST (null) [06:59:59]execute_cgi path=json_proto method=POST [06:59:59]POST find Content-Length [06:59:59]Host: 172.17.36.132:8080 [06:59:59]Content-Length: 843 [06:59:59]Content-Type: application/json [06:59:59] [06:59:59]POST finish read [06:59:59]Found Content-Length = 843 [06:59:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706329", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 43.240, "sum" : 2892.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 2892.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:59:59]execute_script... [06:59: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)706329", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 43.240, "sum" : 2892.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 2892.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:59:59]POST & json_proto [06:59:59]process_json_proto [06:59:59]json parsed OK: [06:59:59]protocol is kg_v1.0 [06:59:59]action value=close_receipt [06:59:59]process_action close_receipt [06:59:59]cmd_close_receipt [06:59:59]MH_GetDate [06:59:59]Write to MH i2c: F0 00 00 DC 1C E7 [06:59:59]Write i2c OK [06:59:59]MH_I2C_Read... [06:59:59]Read from MH i2c: F0 [06:59:59]MH_I2C_Read... [06:59:59]Read from MH i2c: F0 09 00 [06:59:59]MH_I2C_Read... [06:59:59]Read from MH i2c: F0 09 00 DC 1C 00 F3 69 5D 66 B2 22 B0 64 F7 [06:59:59]GetLastDocTimeStamp 1717397939 [06:59:59]current date 1717398003 [06:59:59]FM_GetShiftState [06:59:59]SAM_PROTO_GetShiftState [06:59:59]wFMCommunicate request_size=4 [06:59:59]MH_SAM_APDU [06:59:59]CAPDU: 80 13 01 00 [06:59:59]Write to MH i2c: E2 08 00 DD 1C 80 13 01 00 00 00 00 00 76 [06:59:59]Write i2c OK [06:59:59]MH_I2C_Read... [06:59:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:59:59]Read from MH i2c: E2 [06:59:59]MH_I2C_Read... [06:59:59]Read from MH i2c: E2 0E 00 [06:59:59]MH_I2C_Read... [06:59:59]Read from MH i2c: E2 0E 00 DD 1C 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 51 [06:59:59]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [06:59:59]wFMCommunicate OK [06:59:59]SAM_PROTO_GetShiftState done [06:59:59]FM_GetShiftState done [06:59:59]opened in 1717378033 [06:59:59]opened+sec_in_day 1717464433 [06:59:59]quantity*price = 289275 [06:59:59]sum+1 = 289277 [06:59:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2892.76 НСП 1% : 25.60 НДС 12% : 307.20 Наличными: 0.00 Безнал.: 2892.76 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 6 03.06.2024 07:00 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68260 ФПД: 60932767171964 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T070003&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68260&fm=60932767171964&tin=02508201610067®Number=0000000000098096&sum=289276 [07:00:00]StoreToDocumentArchive [07:00:00]shift 324 fd 68260 [07:00:00]save to /storage/0324/doc_00068260 [07:00:00]save last doc name /storage/0324/doc_00068260 to /storage/kkm_last_doc_name [07:00:00]save OK [07:00:00]Clear old archive folders... [07:00:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:00:00]tlvbuf is 004625A0 [07:00:00]SAM_PROTO_ClearQueue [07:00:00]wFMCommunicate request_size=4 [07:00:00]MH_SAM_APDU [07:00:00]CAPDU: 80 09 00 00 [07:00:00]Write to MH i2c: E2 08 00 EA 1C 80 09 00 00 00 00 00 00 78 [07:00:00]Write i2c OK [07:00:00]MH_I2C_Read... [07:00:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:00:00]Read from MH i2c: E2 [07:00:00]MH_I2C_Read... [07:00:00]Read from MH i2c: E2 03 00 [07:00:00]MH_I2C_Read... [07:00:00]Read from MH i2c: E2 03 00 EA 1C 00 90 00 7A [07:00:00]RAPDU: 90 00 [07:00:00]wFMCommunicate OK [07:00:00]SAM_PROTO_ClearQueue done [07:00:00]KKMCreateOFDPacket [07:00:00]OFDProtocolAddRootSTLVToBuf [07:00:00]FM_MakeSignedData [07:00:00]FM_MakeSignedData [07:00:00]SAM_PROTO_SignData [07:00:00]wFMCommunicate request_size=4 [07:00:00]MH_SAM_APDU [07:00:00]CAPDU: 80 0D 01 02 [07:00:00]Write to MH i2c: E2 08 00 EB 1C 80 0D 01 02 00 00 00 00 80 [07:00:00]Write i2c OK [07:00:00]MH_I2C_Read... [07:00:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:00:00]Read from MH i2c: E2 [07:00:00]MH_I2C_Read... [07:00:00]Read from MH i2c: E2 03 00 [07:00:00]MH_I2C_Read... [07:00:00]Read from MH i2c: E2 03 00 EB 1C 00 90 00 7B [07:00:00]RAPDU: 90 00 [07:00:00]wFMCommunicate OK [07:00:00]wFMCommunicate request_size=255 [07:00:00]MH_SAM_APDU [07:00:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E8 A8 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FC 69 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 69 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 78 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 69 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 F3 69 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A4 0A 01 00 35 04 06 00 37 [07:00:00]Write to MH i2c: E2 02 01 EC 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E8 A8 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FC 69 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 69 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 78 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 69 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 F3 69 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A4 0A 01 00 35 04 06 00 37 00 00 61 [07:00:00]Write i2c OK [07:00:00]MH_I2C_Read... [07:00:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:00:00]Read from MH i2c: E2 [07:00:00]MH_I2C_Read... [07:00:00]Read from MH i2c: E2 03 00 [07:00:00]MH_I2C_Read... [07:00:00]Read from MH i2c: E2 03 00 EC 1C 00 90 00 7C [07:00:00]RAPDU: 90 00 [07:00:00]wFMCommunicate OK [07:00:00]wFMCommunicate request_size=10 [07:00:00]MH_SAM_APDU [07:00:00]CAPDU: 80 0D 02 02 05 6B 03 F1 45 7C [07:00:00]Write to MH i2c: E2 0D 00 ED 1C 80 0D 02 02 05 00 6B 03 F1 45 7C 00 00 AD [07:00:00]Write i2c OK [07:00:00]MH_I2C_Read... [07:00:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:00:00]Read from MH i2c: E2 [07:00:00]MH_I2C_Read... [07:00:00]Read from MH i2c: E2 03 00 [07:00:00]MH_I2C_Read... [07:00:00]Read from MH i2c: E2 03 00 ED 1C 00 90 00 7D [07:00:00]RAPDU: 90 00 [07:00:00]wFMCommunicate OK [07:00:00]wFMCommunicate request_size=4 [07:00:00]MH_SAM_APDU [07:00:00]CAPDU: 80 0D 03 02 [07:00:00]Write to MH i2c: E2 08 00 EE 1C 80 0D 03 02 00 00 00 00 85 [07:00:00]Write i2c OK [07:00:00]MH_I2C_Read... [07:00:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:00:00]Read from MH i2c: E2 [07:00:00]MH_I2C_Read... [07:00:00]Read from MH i2c: E2 0B 00 [07:00:00]MH_I2C_Read... [07:00:00]Read from MH i2c: E2 0B 00 EE 1C 00 2D C6 E8 31 E0 FA E9 1D 90 00 72 [07:00:00]RAPDU: 2D C6 E8 31 E0 FA E9 1D 90 00 [07:00:00]wFMCommunicate OK [07:00:00]SAM_PROTO_SignData done [07:00:00]FM_MakeSignedData done [07:00:00]CreateOFDProtocolMessage [07:00:00]wFMCommunicate request_size=4 [07:00:00]MH_SAM_APDU [07:00:00]CAPDU: 80 11 00 00 [07:00:00]Write to MH i2c: E2 08 00 EF 1C 80 11 00 00 00 00 00 00 85 [07:00:00]Write i2c OK [07:00:00]MH_I2C_Read... [07:00:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:00:00]Read from MH i2c: E2 [07:00:00]MH_I2C_Read... [07:00:00]Read from MH i2c: E2 17 00 [07:00:00]MH_I2C_Read... [07:00:00]Read from MH i2c: E2 17 00 EF 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 D0 [07:00:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [07:00:00]wFMCommunicate OK [07:00:00]CreateOFDProtocolMessage done [07:00:00]OFDSenderStorePacket 68260 [07:00:00]StoreOFDPacket docnum=68260 [07:00:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 B9 7E 07 01 F1 D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E8 A8 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FC 69 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 69 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 78 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 69 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 F3 69 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A4 0A 01 00 35 04 06 00 37 6B 03 F1 45 7C 2D C6 E8 31 E0 FA E9 1D [07:00:00]CheckFolder [07:00:00]dirname=/storage/ofd_packets [07:00:00]CheckFolder done [07:00:00]ProducePacketName [07:00:00]name=ofd_packets/00068260 [07:00:00]NVStorageSaveData ofd_packets/00068260 [07:00:00]File name is /storage/ofd_packets/00068260 [07:00:00]Write 301 bytes [07:00:00]NVStorageSaveData done [07:00:00]OFDSenderStorePacket done [07:00:00]KKMCreateOFDPacket done [07:00:00]NVStorageSaveData kkm_last_timestamp [07:00:00]File name is /storage/kkm_last_timestamp [07:00:00]Write 4 bytes [07:00:00]NVStorageSaveData done [07:00:00]ExternCall_PrintAddStr [07:00:00]wPrintStart [07:00:00]Write to MH i2c: 01 00 00 F0 1C 0C [07:00:00]Write i2c OK [07:00:00]MH_I2C_Read... [07:00:00]Read from MH i2c: 01 [07:00:00]MH_I2C_Read... [07:00:00]Read from MH i2c: 01 07 00 [07:00:00]MH_I2C_Read... [07:00:00]Read from MH i2c: 01 07 00 F0 1C 00 00 00 00 00 FF 0F 21 [07:00:00]RasterBufferAndPrint [07:00:00]line Счет N : (1)706329 [07:00:00]line ИНН: 02508201610067 [07:00:00]line Контрольно-Кассовый Чек [07:00:00]line ПРОДАЖА [07:00:00]line ТРК (МРК, ГНК) : 32 [07:00:00]line Товар: 2710124130 [07:00:00]line Аи-92-К-4 [07:00:00]line 43.240 * 66.90 [07:00:00]line = 2892.76 [07:00:00]line НДС 12% НСП 1% [07:00:00]line > о реализуемом товаре [07:00:00]line ИТОГО: 2892.76 [07:00:00]line НСП 1% : 25.60 [07:00:00]line НДС 12% : 307.20 [07:00:00]line Наличными: 0.00 [07:00:00]line Безнал.: 2892.76 [07:00:00]line Место: АЗС № 62 "Партнер Нефть" [07:00:00]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [07:00:00]line СНО: Общий режим [07:00:00]line Чек 6 03.06.2024 07:00 [07:00:00]line Смена: 324 ФФД: 1.0 [07:00:00]line ЗНМ: 0300000181 [07:00:00]line РНМ: 0000000000098096 [07:00:00]line Версия ККМ: 001 [07:00:00]line Платежная система: АКБ Кыргызстан [07:00:00]line ФМ: 0000000000965400 [07:00:00]line ФД: 68260 [07:00:00]line ФПД: 60932767171964 [07:00:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T070003&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68260&fm=60932767171964&tin=02508201610067®Number=0000000000098096&sum=289276 [07:00:01]OFD Sender: Processing packet 68260 [packets to send 26, broken 25] [07:00:01]ProducePacketName [07:00:01]name=ofd_packets/00068260 [07:00:01]OFD Sender: To server: pG, [07:00:01]CommunicateWithHost lk.salyk.kg:30040 [07:00:01]ConnectInit lk.salyk.kg [07:00:01]written 0, free lines is 4095 [07:00:01]Connected sock=10 [07:00:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 B9 7E 07 01 F1 D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E8 A8 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FC 69 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 69 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 78 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 69 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 F3 69 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A4 0A 01 00 35 04 06 00 37 6B 03 F1 45 7C 2D C6 E8 31 E0 FA E9 1D [07:00:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 12 7A 47 00 F6 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A4 0A 01 00 F4 03 04 00 EF 10 5D 66 B6 04 01 00 00 F4 94 DF 1F 1E E6 73 2C [07:00:01]CommunicateWithHost err = 0 [07:00:01]CheckOFDResponse [07:00:01]1017 (14) - 77093643461234 [07:00:01]1041 (16) - 0000000000965400 [07:00:01]1040 (4) - 68260 [07:00:01]1012 (4) - 03.06.2024 00:40 [07:00:01]1206 (1) - 0 [07:00:01]OFD Sender: Remove packet 68260 [07:00:01]ProducePacketName [07:00:01]name=ofd_packets/00068260 [07:00:01]NVStorageDeleteData [07:00:01]Write to MH i2c: 01 00 00 1A 1D 37 [07:00:01]Write i2c OK [07:00:01]MH_I2C_Read... [07:00:01]Read from MH i2c: 01 [07:00:01]MH_I2C_Read... [07:00:01]Read from MH i2c: 01 07 00 [07:00:01]MH_I2C_Read... [07:00:01]Read from MH i2c: 01 07 00 1A 1D 00 00 00 00 00 F6 0C 40 [07:00:01]RasterBufferAndPrint [07:00:01]line [07:00:01]line [07:00:01]line [07:00:01]line [07:00:01]line [07:00:01]written 0, free lines is 3326 [07:00:01]MH_Cut [07:00:01]Write to MH i2c: D1 01 00 21 1D 01 10 [07:00:01]Write i2c OK [07:00:01]MH_I2C_Read... [07:00:01]Read from MH i2c: D1 [07:00:01]MH_I2C_Read... [07:00:01]Read from MH i2c: D1 01 00 [07:00:01]MH_I2C_Read... [07:00:01]Read from MH i2c: D1 01 00 21 1D 00 0F [07:00:01]Write to MH i2c: 01 00 00 22 1D 3F [07:00:01]Write i2c OK [07:00:01]MH_I2C_Read... [07:00:02]OFD Sender: No OFD packet to send [07:00:02]*** Cut start [07:00:02]*** Partial cut [07:00:02]*** CUTSNS_PIN = 1 [07:00:02]*** CUTSNS_PIN = 0 [07:00:02]*** Brake cut motor [07:00:03]Read from MH i2c: 01 [07:00:03]MH_I2C_Read... [07:00:03]*** Stop cut motor [07:00:03]*** Cut end [07:00:03]Read from MH i2c: 01 07 00 [07:00:03]MH_I2C_Read... [07:00:03]Read from MH i2c: 01 07 00 22 1D 00 00 00 00 00 FF 0F 54 [07:00:03]process_action close_receipt done [07:00:03]requested_data is exist [07:00:03]produce_requested_data [07:00:03]requested_item fm.sn is exist - process it [07:00:03]wFMCommunicate request_size=4 [07:00:03]MH_SAM_APDU [07:00:03]CAPDU: 80 11 00 00 [07:00:03]Write to MH i2c: E2 08 00 23 1D 80 11 00 00 00 00 00 00 BA [07:00:03]Write i2c OK [07:00:03]MH_I2C_Read... [07:00:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:00:03]Read from MH i2c: E2 [07:00:03]MH_I2C_Read... [07:00:03]Read from MH i2c: E2 17 00 [07:00:03]MH_I2C_Read... [07:00:03]Read from MH i2c: E2 17 00 23 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 05 [07:00:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [07:00:03]wFMCommunicate OK [07:00:03]requested_item fd.num is exist - process it [07:00:03]SAM_PROTO_GetFieldsCounters [07:00:03]wFMCommunicate request_size=4 [07:00:03]MH_SAM_APDU [07:00:03]CAPDU: 80 13 00 00 [07:00:03]Write to MH i2c: E2 08 00 24 1D 80 13 00 00 00 00 00 00 BD [07:00:03]Write i2c OK [07:00:03]MH_I2C_Read... [07:00:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:00:03]Read from MH i2c: E2 [07:00:03]MH_I2C_Read... [07:00:03]Read from MH i2c: E2 62 00 [07:00:03]MH_I2C_Read... [07:00:03]Read from MH i2c: E2 62 00 24 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 A4 0A 01 00 0E 04 04 00 44 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 E3 [07:00:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 A4 0A 01 00 0E 04 04 00 44 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 [07:00:03]wFMCommunicate OK [07:00:03]SAM_PROTO_GetFieldsCounters done [07:00:03]requested_item shift.num is exist - process it [07:00:03]requested_item shift.opened is exist - process it [07:00:03]req_shift_opened [07:00:03]FM_GetShiftState [07:00:03]SAM_PROTO_GetShiftState [07:00:03]wFMCommunicate request_size=4 [07:00:03]MH_SAM_APDU [07:00:03]CAPDU: 80 13 01 00 [07:00:03]Write to MH i2c: E2 08 00 25 1D 80 13 01 00 00 00 00 00 BF [07:00:03]Write i2c OK [07:00:03]MH_I2C_Read... [07:00:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:00:03]Read from MH i2c: E2 [07:00:03]MH_I2C_Read... [07:00:03]Read from MH i2c: E2 0E 00 [07:00:03]MH_I2C_Read... [07:00:03]Read from MH i2c: E2 0E 00 25 1D 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 9A [07:00:03]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [07:00:03]wFMCommunicate OK [07:00:03]SAM_PROTO_GetShiftState done [07:00:03]FM_GetShiftState done [07:00:03]req_shift_opened done [07:00:03]requested_item shift.open_date is exist - process it [07:00:03]req_shift_open_date [07:00:03]req_shift_open_date done [07:00:03]produce_requested_data done [07:00:03]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68260,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [07:00:03]process_action_free close_receipt [07:00:03]json_value_free [07:00:03]json_value_free done [07:00:03]process_json_proto returns [07:00:03]Send response to host [07:00:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68260,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [07:00:03]free response buf [07:00:03]execute_script done [07:00:03]execute_script returns [07:00:03]free content buf [07:00:03]Sock 9.Close socket [07:00:03]Sock 9.Thread stoped [07:00:07]OFD Sender: No OFD packet to send [07:00:12]OFD Sender: No OFD packet to send [07:00:17]OFD Sender: No OFD packet to send [07:00:22]OFD Sender: No OFD packet to send [07:00:27]OFD Sender: No OFD packet to send [07:00:32]OFD Sender: No OFD packet to send [07:00:37]OFD Sender: No OFD packet to send [07:00:42]OFD Sender: No OFD packet to send [07:00:47]OFD Sender: No OFD packet to send [07:00:52]OFD Sender: No OFD packet to send [07:00:57]OFD Sender: No OFD packet to send [07:01:02]OFD Sender: No OFD packet to send [07:01:07]OFD Sender: No OFD packet to send [07:01:12]OFD Sender: No OFD packet to send [07:01:17]OFD Sender: No OFD packet to send [07:01:22]OFD Sender: No OFD packet to send [07:01:27]OFD Sender: No OFD packet to send [07:01:32]OFD Sender: No OFD packet to send [07:01:37]OFD Sender: No OFD packet to send [07:01:42]OFD Sender: No OFD packet to send [07:01:47]OFD Sender: No OFD packet to send [07:01:52]OFD Sender: No OFD packet to send [07:01:57]OFD Sender: No OFD packet to send [07:02:02]OFD Sender: No OFD packet to send [07:02:07]OFD Sender: No OFD packet to send [07:02:12]OFD Sender: No OFD packet to send [07:02:17]OFD Sender: No OFD packet to send [07:02:22]OFD Sender: No OFD packet to send [07:02:27]OFD Sender: No OFD packet to send [07:02:32]OFD Sender: No OFD packet to send [07:02:37]OFD Sender: No OFD packet to send [07:02:42]OFD Sender: No OFD packet to send [07:02:47]OFD Sender: No OFD packet to send [07:02:52]OFD Sender: No OFD packet to send [07:02:57]OFD Sender: No OFD packet to send [07:03:02]OFD Sender: No OFD packet to send [07:03:07]OFD Sender: No OFD packet to send [07:03:12]OFD Sender: No OFD packet to send [07:03:17]OFD Sender: No OFD packet to send [07:03:22]OFD Sender: No OFD packet to send [07:03:27]OFD Sender: No OFD packet to send [07:03:32]OFD Sender: No OFD packet to send [07:03:37]OFD Sender: No OFD packet to send [07:03:42]OFD Sender: No OFD packet to send [07:03:47]OFD Sender: No OFD packet to send [07:03:52]OFD Sender: No OFD packet to send [07:03:57]OFD Sender: No OFD packet to send [07:04:02]OFD Sender: No OFD packet to send [07:04:07]OFD Sender: No OFD packet to send [07:04:12]OFD Sender: No OFD packet to send [07:04:17]OFD Sender: No OFD packet to send [07:04:22]OFD Sender: No OFD packet to send [07:04:27]OFD Sender: No OFD packet to send [07:04:32]OFD Sender: No OFD packet to send [07:04:37]OFD Sender: No OFD packet to send [07:04:42]OFD Sender: No OFD packet to send [07:04:47]OFD Sender: No OFD packet to send [07:04:52]OFD Sender: No OFD packet to send [07:04:57]OFD Sender: No OFD packet to send [07:05:02]OFD Sender: No OFD packet to send [07:05:07]OFD Sender: No OFD packet to send [07:05:12]OFD Sender: No OFD packet to send [07:05:17]OFD Sender: No OFD packet to send [07:05:22]OFD Sender: No OFD packet to send [07:05:27]OFD Sender: No OFD packet to send [07:05:32]OFD Sender: No OFD packet to send [07:05:37]OFD Sender: No OFD packet to send [07:05:42]OFD Sender: No OFD packet to send [07:05:47]OFD Sender: No OFD packet to send [07:05:52]OFD Sender: No OFD packet to send [07:05:57]OFD Sender: No OFD packet to send [07:06:02]OFD Sender: No OFD packet to send [07:06:07]OFD Sender: No OFD packet to send [07:06:12]OFD Sender: No OFD packet to send [07:06:17]OFD Sender: No OFD packet to send [07:06:22]OFD Sender: No OFD packet to send [07:06:27]OFD Sender: No OFD packet to send [07:06:32]OFD Sender: No OFD packet to send [07:06:37]OFD Sender: No OFD packet to send [07:06:42]OFD Sender: No OFD packet to send [07:06:47]OFD Sender: No OFD packet to send [07:06:52]OFD Sender: No OFD packet to send [07:06:57]OFD Sender: No OFD packet to send [07:07:02]OFD Sender: No OFD packet to send [07:07:07]OFD Sender: No OFD packet to send [07:07:12]OFD Sender: No OFD packet to send [07:07:17]OFD Sender: No OFD packet to send [07:07:22]OFD Sender: No OFD packet to send [07:07:27]OFD Sender: No OFD packet to send [07:07:32]OFD Sender: No OFD packet to send [07:07:37]OFD Sender: No OFD packet to send [07:07:42]OFD Sender: No OFD packet to send [07:07:47]OFD Sender: No OFD packet to send [07:07:52]OFD Sender: No OFD packet to send [07:07:57]OFD Sender: No OFD packet to send [07:08:02]OFD Sender: No OFD packet to send [07:08:07]OFD Sender: No OFD packet to send [07:08:12]OFD Sender: No OFD packet to send [07:08:17]OFD Sender: No OFD packet to send [07:08:22]OFD Sender: No OFD packet to send [07:08:27]OFD Sender: No OFD packet to send [07:08:32]OFD Sender: No OFD packet to send [07:08:37]OFD Sender: No OFD packet to send [07:08:42]OFD Sender: No OFD packet to send [07:08:47]OFD Sender: No OFD packet to send [07:08:52]OFD Sender: No OFD packet to send [07:08:57]OFD Sender: No OFD packet to send [07:09:02]OFD Sender: No OFD packet to send [07:09:07]OFD Sender: No OFD packet to send [07:09:12]OFD Sender: No OFD packet to send [07:09:17]OFD Sender: No OFD packet to send [07:09:22]OFD Sender: No OFD packet to send [07:09:27]OFD Sender: No OFD packet to send [07:09:32]OFD Sender: No OFD packet to send [07:09:37]OFD Sender: No OFD packet to send [07:09:42]OFD Sender: No OFD packet to send [07:09:47]OFD Sender: No OFD packet to send [07:09:52]OFD Sender: No OFD packet to send [07:09:57]OFD Sender: No OFD packet to send [07:10:02]OFD Sender: No OFD packet to send [07:10:07]OFD Sender: No OFD packet to send [07:10:12]OFD Sender: No OFD packet to send [07:10:17]OFD Sender: No OFD packet to send [07:10:22]OFD Sender: No OFD packet to send [07:10:27]OFD Sender: No OFD packet to send [07:10:32]OFD Sender: No OFD packet to send [07:10:37]OFD Sender: No OFD packet to send [07:10:42]OFD Sender: No OFD packet to send [07:10:47]OFD Sender: No OFD packet to send [07:10:52]OFD Sender: No OFD packet to send [07:10:57]OFD Sender: No OFD packet to send [07:11:02]OFD Sender: No OFD packet to send [07:11:07]OFD Sender: No OFD packet to send [07:11:12]OFD Sender: No OFD packet to send [07:11:17]OFD Sender: No OFD packet to send [07:11:22]OFD Sender: No OFD packet to send [07:11:27]OFD Sender: No OFD packet to send [07:11:32]OFD Sender: No OFD packet to send [07:11:37]OFD Sender: No OFD packet to send [07:11:42]OFD Sender: No OFD packet to send [07:11:47]OFD Sender: No OFD packet to send [07:11:52]OFD Sender: No OFD packet to send [07:11:57]OFD Sender: No OFD packet to send [07:12:02]OFD Sender: No OFD packet to send [07:12:07]OFD Sender: No OFD packet to send [07:12:12]OFD Sender: No OFD packet to send [07:12:17]OFD Sender: No OFD packet to send [07:12:22]OFD Sender: No OFD packet to send [07:12:27]OFD Sender: No OFD packet to send [07:12:32]OFD Sender: No OFD packet to send [07:12:37]OFD Sender: No OFD packet to send [07:12:42]OFD Sender: No OFD packet to send [07:12:47]OFD Sender: No OFD packet to send [07:12:52]OFD Sender: No OFD packet to send [07:12:57]OFD Sender: No OFD packet to send [07:13:02]OFD Sender: No OFD packet to send [07:13:07]OFD Sender: No OFD packet to send [07:13:12]OFD Sender: No OFD packet to send [07:13:17]OFD Sender: No OFD packet to send [07:13:22]OFD Sender: No OFD packet to send [07:13:27]OFD Sender: No OFD packet to send [07:13:32]OFD Sender: No OFD packet to send [07:13:37]OFD Sender: No OFD packet to send [07:13:42]OFD Sender: No OFD packet to send [07:13:47]OFD Sender: No OFD packet to send [07:13:52]OFD Sender: No OFD packet to send [07:13:57]OFD Sender: No OFD packet to send [07:14:02]OFD Sender: No OFD packet to send [07:14:07]OFD Sender: No OFD packet to send [07:14:12]OFD Sender: No OFD packet to send [07:14:17]OFD Sender: No OFD packet to send [07:14:22]OFD Sender: No OFD packet to send [07:14:27]OFD Sender: No OFD packet to send [07:14:32]OFD Sender: No OFD packet to send [07:14:37]OFD Sender: No OFD packet to send [07:14:42]OFD Sender: No OFD packet to send [07:14:47]OFD Sender: No OFD packet to send [07:14:52]OFD Sender: No OFD packet to send [07:14:57]OFD Sender: No OFD packet to send [07:15:02]OFD Sender: No OFD packet to send [07:15:07]OFD Sender: No OFD packet to send [07:15:12]OFD Sender: No OFD packet to send [07:15:17]OFD Sender: No OFD packet to send [07:15:22]OFD Sender: No OFD packet to send [07:15:27]OFD Sender: No OFD packet to send [07:15:32]OFD Sender: No OFD packet to send [07:15:37]OFD Sender: No OFD packet to send [07:15:42]OFD Sender: No OFD packet to send [07:15:47]OFD Sender: No OFD packet to send [07:15:52]OFD Sender: No OFD packet to send [07:15:57]OFD Sender: No OFD packet to send [07:16:02]OFD Sender: No OFD packet to send [07:16:07]OFD Sender: No OFD packet to send [07:16:12]OFD Sender: No OFD packet to send [07:16:17]OFD Sender: No OFD packet to send [07:16:22]OFD Sender: No OFD packet to send [07:16:27]OFD Sender: No OFD packet to send [07:16:32]OFD Sender: No OFD packet to send [07:16:37]OFD Sender: No OFD packet to send [07:16:42]OFD Sender: No OFD packet to send [07:16:47]OFD Sender: No OFD packet to send [07:16:52]OFD Sender: No OFD packet to send [07:16:57]OFD Sender: No OFD packet to send [07:17:02]OFD Sender: No OFD packet to send [07:17:07]OFD Sender: No OFD packet to send [07:17:12]OFD Sender: No OFD packet to send [07:17:17]OFD Sender: No OFD packet to send [07:17:22]OFD Sender: No OFD packet to send [07:17:27]OFD Sender: No OFD packet to send [07:17:32]OFD Sender: No OFD packet to send [07:17:37]OFD Sender: No OFD packet to send [07:17:42]OFD Sender: No OFD packet to send [07:17:47]OFD Sender: No OFD packet to send [07:17:52]OFD Sender: No OFD packet to send [07:17:58]OFD Sender: No OFD packet to send [07:18:03]OFD Sender: No OFD packet to send [07:18:08]OFD Sender: No OFD packet to send [07:18:13]OFD Sender: No OFD packet to send [07:18:18]OFD Sender: No OFD packet to send [07:18:23]OFD Sender: No OFD packet to send [07:18:28]OFD Sender: No OFD packet to send [07:18:33]OFD Sender: No OFD packet to send [07:18:38]OFD Sender: No OFD packet to send [07:18:43]OFD Sender: No OFD packet to send [07:18:48]OFD Sender: No OFD packet to send [07:18:53]OFD Sender: No OFD packet to send [07:18:58]OFD Sender: No OFD packet to send [07:19:03]OFD Sender: No OFD packet to send [07:19:08]OFD Sender: No OFD packet to send [07:19:13]OFD Sender: No OFD packet to send [07:19:18]OFD Sender: No OFD packet to send [07:19:23]OFD Sender: No OFD packet to send [07:19:28]OFD Sender: No OFD packet to send [07:19:33]OFD Sender: No OFD packet to send [07:19:38]OFD Sender: No OFD packet to send [07:19:43]OFD Sender: No OFD packet to send [07:19:48]OFD Sender: No OFD packet to send [07:19:53]OFD Sender: No OFD packet to send [07:19:58]OFD Sender: No OFD packet to send [07:20:03]OFD Sender: No OFD packet to send [07:20:08]OFD Sender: No OFD packet to send [07:20:13]OFD Sender: No OFD packet to send [07:20:18]OFD Sender: No OFD packet to send [07:20:23]OFD Sender: No OFD packet to send [07:20:28]OFD Sender: No OFD packet to send [07:20:33]OFD Sender: No OFD packet to send [07:20:38]OFD Sender: No OFD packet to send [07:20:43]OFD Sender: No OFD packet to send [07:20:48]OFD Sender: No OFD packet to send [07:20:53]OFD Sender: No OFD packet to send [07:20:58]OFD Sender: No OFD packet to send [07:21:03]OFD Sender: No OFD packet to send [07:21:08]OFD Sender: No OFD packet to send [07:21:13]OFD Sender: No OFD packet to send [07:21:18]OFD Sender: No OFD packet to send [07:21:23]OFD Sender: No OFD packet to send [07:21:28]OFD Sender: No OFD packet to send [07:21:33]OFD Sender: No OFD packet to send [07:21:38]OFD Sender: No OFD packet to send [07:21:43]OFD Sender: No OFD packet to send [07:21:48]OFD Sender: No OFD packet to send [07:21:53]OFD Sender: No OFD packet to send [07:21:58]OFD Sender: No OFD packet to send [07:22:03]OFD Sender: No OFD packet to send [07:22:08]OFD Sender: No OFD packet to send [07:22:13]OFD Sender: No OFD packet to send [07:22:18]OFD Sender: No OFD packet to send [07:22:23]OFD Sender: No OFD packet to send [07:22:28]OFD Sender: No OFD packet to send [07:22:33]OFD Sender: No OFD packet to send [07:22:38]OFD Sender: No OFD packet to send [07:22:43]OFD Sender: No OFD packet to send [07:22:48]OFD Sender: No OFD packet to send [07:22:53]OFD Sender: No OFD packet to send [07:22:58]OFD Sender: No OFD packet to send [07:23:03]OFD Sender: No OFD packet to send [07:23:08]OFD Sender: No OFD packet to send [07:23:13]OFD Sender: No OFD packet to send [07:23:18]OFD Sender: No OFD packet to send [07:23:23]OFD Sender: No OFD packet to send [07:23:28]OFD Sender: No OFD packet to send [07:23:33]OFD Sender: No OFD packet to send [07:23:38]OFD Sender: No OFD packet to send [07:23:43]OFD Sender: No OFD packet to send [07:23:48]OFD Sender: No OFD packet to send [07:23:53]OFD Sender: No OFD packet to send [07:23:58]OFD Sender: No OFD packet to send [07:24:03]OFD Sender: No OFD packet to send [07:24:08]OFD Sender: No OFD packet to send [07:24:13]OFD Sender: No OFD packet to send [07:24:18]OFD Sender: No OFD packet to send [07:24:23]OFD Sender: No OFD packet to send [07:24:28]OFD Sender: No OFD packet to send [07:24:33]OFD Sender: No OFD packet to send [07:24:38]OFD Sender: No OFD packet to send [07:24:43]OFD Sender: No OFD packet to send [07:24:48]OFD Sender: No OFD packet to send [07:24:53]OFD Sender: No OFD packet to send [07:24:58]OFD Sender: No OFD packet to send [07:25:03]OFD Sender: No OFD packet to send [07:25:08]OFD Sender: No OFD packet to send [07:25:13]OFD Sender: No OFD packet to send [07:25:18]OFD Sender: No OFD packet to send [07:25:23]OFD Sender: No OFD packet to send [07:25:28]OFD Sender: No OFD packet to send [07:25:33]OFD Sender: No OFD packet to send [07:25:38]OFD Sender: No OFD packet to send [07:25:43]OFD Sender: No OFD packet to send [07:25:48]OFD Sender: No OFD packet to send [07:25:53]OFD Sender: No OFD packet to send [07:25:58]OFD Sender: No OFD packet to send [07:26:03]OFD Sender: No OFD packet to send [07:26:08]OFD Sender: No OFD packet to send [07:26:13]OFD Sender: No OFD packet to send [07:26:18]OFD Sender: No OFD packet to send [07:26:23]OFD Sender: No OFD packet to send [07:26:28]OFD Sender: No OFD packet to send [07:26:33]OFD Sender: No OFD packet to send [07:26:38]OFD Sender: No OFD packet to send [07:26:43]OFD Sender: No OFD packet to send [07:26:48]OFD Sender: No OFD packet to send [07:26:53]OFD Sender: No OFD packet to send [07:26:58]OFD Sender: No OFD packet to send [07:27:03]OFD Sender: No OFD packet to send [07:27:08]OFD Sender: No OFD packet to send [07:27:13]OFD Sender: No OFD packet to send [07:27:18]OFD Sender: No OFD packet to send [07:27:23]OFD Sender: No OFD packet to send [07:27:28]OFD Sender: No OFD packet to send [07:27:33]OFD Sender: No OFD packet to send [07:27:38]OFD Sender: No OFD packet to send [07:27:43]OFD Sender: No OFD packet to send [07:27:48]OFD Sender: No OFD packet to send [07:27:53]OFD Sender: No OFD packet to send [07:27:58]OFD Sender: No OFD packet to send [07:28:03]OFD Sender: No OFD packet to send [07:28:08]OFD Sender: No OFD packet to send [07:28:13]OFD Sender: No OFD packet to send [07:28:18]OFD Sender: No OFD packet to send [07:28:23]OFD Sender: No OFD packet to send [07:28:28]OFD Sender: No OFD packet to send [07:28:33]OFD Sender: No OFD packet to send [07:28:38]OFD Sender: No OFD packet to send [07:28:43]OFD Sender: No OFD packet to send [07:28:48]OFD Sender: No OFD packet to send [07:28:53]OFD Sender: No OFD packet to send [07:28:58]OFD Sender: No OFD packet to send [07:29:03]OFD Sender: No OFD packet to send [07:29:08]OFD Sender: No OFD packet to send [07:29:13]OFD Sender: No OFD packet to send [07:29:18]OFD Sender: No OFD packet to send [07:29:23]OFD Sender: No OFD packet to send [07:29:28]OFD Sender: No OFD packet to send [07:29:33]OFD Sender: No OFD packet to send [07:29:38]OFD Sender: No OFD packet to send [07:29:43]OFD Sender: No OFD packet to send [07:29:48]OFD Sender: No OFD packet to send [07:29:53]OFD Sender: No OFD packet to send [07:29:58]OFD Sender: No OFD packet to send [07:30:03]OFD Sender: No OFD packet to send [07:30:08]OFD Sender: No OFD packet to send [07:30:13]OFD Sender: No OFD packet to send [07:30:18]OFD Sender: No OFD packet to send [07:30:23]OFD Sender: No OFD packet to send [07:30:28]OFD Sender: No OFD packet to send [07:30:33]OFD Sender: No OFD packet to send [07:30:38]OFD Sender: No OFD packet to send [07:30:43]OFD Sender: No OFD packet to send [07:30:48]OFD Sender: No OFD packet to send [07:30:53]OFD Sender: No OFD packet to send [07:30:58]OFD Sender: No OFD packet to send [07:31:03]OFD Sender: No OFD packet to send [07:31:08]OFD Sender: No OFD packet to send [07:31:13]OFD Sender: No OFD packet to send [07:31:18]OFD Sender: No OFD packet to send [07:31:23]OFD Sender: No OFD packet to send [07:31:28]OFD Sender: No OFD packet to send [07:31:33]OFD Sender: No OFD packet to send [07:31:38]OFD Sender: No OFD packet to send [07:31:43]OFD Sender: No OFD packet to send [07:31:48]OFD Sender: No OFD packet to send [07:31:53]OFD Sender: No OFD packet to send [07:31:58]OFD Sender: No OFD packet to send [07:32:03]OFD Sender: No OFD packet to send [07:32:08]OFD Sender: No OFD packet to send [07:32:13]OFD Sender: No OFD packet to send [07:32:18]OFD Sender: No OFD packet to send [07:32:23]OFD Sender: No OFD packet to send [07:32:28]OFD Sender: No OFD packet to send [07:32:33]OFD Sender: No OFD packet to send [07:32:38]OFD Sender: No OFD packet to send [07:32:43]OFD Sender: No OFD packet to send [07:32:48]OFD Sender: No OFD packet to send [07:32:53]OFD Sender: No OFD packet to send [07:32:58]OFD Sender: No OFD packet to send [07:33:03]OFD Sender: No OFD packet to send [07:33:08]OFD Sender: No OFD packet to send [07:33:13]OFD Sender: No OFD packet to send [07:33:18]OFD Sender: No OFD packet to send [07:33:23]OFD Sender: No OFD packet to send [07:33:28]OFD Sender: No OFD packet to send [07:33:33]OFD Sender: No OFD packet to send [07:33:38]OFD Sender: No OFD packet to send [07:33:43]OFD Sender: No OFD packet to send [07:33:48]OFD Sender: No OFD packet to send [07:33:53]OFD Sender: No OFD packet to send [07:33:58]OFD Sender: No OFD packet to send [07:34:03]OFD Sender: No OFD packet to send [07:34:08]OFD Sender: No OFD packet to send [07:34:13]OFD Sender: No OFD packet to send [07:34:18]OFD Sender: No OFD packet to send [07:34:23]OFD Sender: No OFD packet to send [07:34:28]OFD Sender: No OFD packet to send [07:34:33]OFD Sender: No OFD packet to send [07:34:38]OFD Sender: No OFD packet to send [07:34:43]OFD Sender: No OFD packet to send [07:34:48]OFD Sender: No OFD packet to send [07:34:53]OFD Sender: No OFD packet to send [07:34:58]OFD Sender: No OFD packet to send [07:35:03]OFD Sender: No OFD packet to send [07:35:08]OFD Sender: No OFD packet to send [07:35:13]OFD Sender: No OFD packet to send [07:35:18]OFD Sender: No OFD packet to send [07:35:23]OFD Sender: No OFD packet to send [07:35:28]OFD Sender: No OFD packet to send [07:35:33]OFD Sender: No OFD packet to send [07:35:38]OFD Sender: No OFD packet to send [07:35:43]OFD Sender: No OFD packet to send [07:35:48]OFD Sender: No OFD packet to send [07:35:53]OFD Sender: No OFD packet to send [07:35:58]OFD Sender: No OFD packet to send [07:36:03]OFD Sender: No OFD packet to send [07:36:08]OFD Sender: No OFD packet to send [07:36:13]OFD Sender: No OFD packet to send [07:36:18]OFD Sender: No OFD packet to send [07:36:23]OFD Sender: No OFD packet to send [07:36:28]OFD Sender: No OFD packet to send [07:36:33]OFD Sender: No OFD packet to send [07:36:38]OFD Sender: No OFD packet to send [07:36:43]OFD Sender: No OFD packet to send [07:36:48]OFD Sender: No OFD packet to send [07:36:53]OFD Sender: No OFD packet to send [07:36:58]OFD Sender: No OFD packet to send [07:37:03]OFD Sender: No OFD packet to send [07:37:08]OFD Sender: No OFD packet to send [07:37:13]OFD Sender: No OFD packet to send [07:37:18]OFD Sender: No OFD packet to send [07:37:23]OFD Sender: No OFD packet to send [07:37:28]OFD Sender: No OFD packet to send [07:37:33]OFD Sender: No OFD packet to send [07:37:38]OFD Sender: No OFD packet to send [07:37:43]OFD Sender: No OFD packet to send [07:37:48]OFD Sender: No OFD packet to send [07:37:53]OFD Sender: No OFD packet to send [07:37:58]OFD Sender: No OFD packet to send [07:38:04]OFD Sender: No OFD packet to send [07:38:09]OFD Sender: No OFD packet to send [07:38:14]OFD Sender: No OFD packet to send [07:38:19]OFD Sender: No OFD packet to send [07:38:24]OFD Sender: No OFD packet to send [07:38:29]OFD Sender: No OFD packet to send [07:38:34]OFD Sender: No OFD packet to send [07:38:39]OFD Sender: No OFD packet to send [07:38:44]OFD Sender: No OFD packet to send [07:38:49]OFD Sender: No OFD packet to send [07:38:54]OFD Sender: No OFD packet to send [07:38:59]OFD Sender: No OFD packet to send [07:39:04]OFD Sender: No OFD packet to send [07:39:09]OFD Sender: No OFD packet to send [07:39:14]OFD Sender: No OFD packet to send [07:39:19]OFD Sender: No OFD packet to send [07:39:24]OFD Sender: No OFD packet to send [07:39:29]OFD Sender: No OFD packet to send [07:39:34]OFD Sender: No OFD packet to send [07:39:39]OFD Sender: No OFD packet to send [07:39:44]OFD Sender: No OFD packet to send [07:39:49]OFD Sender: No OFD packet to send [07:39:54]OFD Sender: No OFD packet to send [07:39:59]OFD Sender: No OFD packet to send [07:40:04]OFD Sender: No OFD packet to send [07:40:09]OFD Sender: No OFD packet to send [07:40:14]OFD Sender: No OFD packet to send [07:40:19]OFD Sender: No OFD packet to send [07:40:24]OFD Sender: No OFD packet to send [07:40:29]OFD Sender: No OFD packet to send [07:40:34]OFD Sender: No OFD packet to send [07:40:39]OFD Sender: No OFD packet to send [07:40:44]OFD Sender: No OFD packet to send [07:40:49]OFD Sender: No OFD packet to send [07:40:54]OFD Sender: No OFD packet to send [07:40:59]OFD Sender: No OFD packet to send [07:41:04]OFD Sender: No OFD packet to send [07:41:09]OFD Sender: No OFD packet to send [07:41:14]OFD Sender: No OFD packet to send [07:41:19]OFD Sender: No OFD packet to send [07:41:24]OFD Sender: No OFD packet to send [07:41:29]OFD Sender: No OFD packet to send [07:41:34]OFD Sender: No OFD packet to send [07:41:39]OFD Sender: No OFD packet to send [07:41:44]OFD Sender: No OFD packet to send [07:41:49]OFD Sender: No OFD packet to send [07:41:54]OFD Sender: No OFD packet to send [07:41:59]OFD Sender: No OFD packet to send [07:42:04]OFD Sender: No OFD packet to send [07:42:09]OFD Sender: No OFD packet to send [07:42:14]OFD Sender: No OFD packet to send [07:42:19]OFD Sender: No OFD packet to send [07:42:24]OFD Sender: No OFD packet to send [07:42:29]OFD Sender: No OFD packet to send [07:42:34]OFD Sender: No OFD packet to send [07:42:39]OFD Sender: No OFD packet to send [07:42:44]OFD Sender: No OFD packet to send [07:42:49]OFD Sender: No OFD packet to send [07:42:54]OFD Sender: No OFD packet to send [07:42:59]OFD Sender: No OFD packet to send [07:43:04]OFD Sender: No OFD packet to send [07:43:09]OFD Sender: No OFD packet to send [07:43:14]OFD Sender: No OFD packet to send [07:43:19]OFD Sender: No OFD packet to send [07:43:24]OFD Sender: No OFD packet to send [07:43:29]OFD Sender: No OFD packet to send [07:43:34]OFD Sender: No OFD packet to send [07:43:39]OFD Sender: No OFD packet to send [07:43:44]OFD Sender: No OFD packet to send [07:43:49]OFD Sender: No OFD packet to send [07:43:54]OFD Sender: No OFD packet to send [07:43:59]OFD Sender: No OFD packet to send [07:44:04]OFD Sender: No OFD packet to send [07:44:09]OFD Sender: No OFD packet to send [07:44:14]OFD Sender: No OFD packet to send [07:44:19]OFD Sender: No OFD packet to send [07:44:24]OFD Sender: No OFD packet to send [07:44:29]OFD Sender: No OFD packet to send [07:44:34]OFD Sender: No OFD packet to send [07:44:39]OFD Sender: No OFD packet to send [07:44:44]OFD Sender: No OFD packet to send [07:44:49]OFD Sender: No OFD packet to send [07:44:54]OFD Sender: No OFD packet to send [07:44:59]OFD Sender: No OFD packet to send [07:45:04]OFD Sender: No OFD packet to send [07:45:09]OFD Sender: No OFD packet to send [07:45:14]OFD Sender: No OFD packet to send [07:45:19]OFD Sender: No OFD packet to send [07:45:24]OFD Sender: No OFD packet to send [07:45:29]OFD Sender: No OFD packet to send [07:45:34]OFD Sender: No OFD packet to send [07:45:39]OFD Sender: No OFD packet to send [07:45:44]OFD Sender: No OFD packet to send [07:45:49]OFD Sender: No OFD packet to send [07:45:54]OFD Sender: No OFD packet to send [07:45:59]OFD Sender: No OFD packet to send [07:46:04]OFD Sender: No OFD packet to send [07:46:09]OFD Sender: No OFD packet to send [07:46:14]OFD Sender: No OFD packet to send [07:46:19]OFD Sender: No OFD packet to send [07:46:24]OFD Sender: No OFD packet to send [07:46:29]OFD Sender: No OFD packet to send [07:46:34]OFD Sender: No OFD packet to send [07:46:39]OFD Sender: No OFD packet to send [07:46:44]OFD Sender: No OFD packet to send [07:46:49]OFD Sender: No OFD packet to send [07:46:54]OFD Sender: No OFD packet to send [07:46:59]OFD Sender: No OFD packet to send [07:47:04]OFD Sender: No OFD packet to send [07:47:09]OFD Sender: No OFD packet to send [07:47:14]OFD Sender: No OFD packet to send [07:47:19]OFD Sender: No OFD packet to send [07:47:24]OFD Sender: No OFD packet to send [07:47:29]OFD Sender: No OFD packet to send [07:47:34]OFD Sender: No OFD packet to send [07:47:39]OFD Sender: No OFD packet to send [07:47:44]OFD Sender: No OFD packet to send [07:47:49]OFD Sender: No OFD packet to send [07:47:54]OFD Sender: No OFD packet to send [07:47:59]OFD Sender: No OFD packet to send [07:48:04]OFD Sender: No OFD packet to send [07:48:09]OFD Sender: No OFD packet to send [07:48:14]OFD Sender: No OFD packet to send [07:48:19]OFD Sender: No OFD packet to send [07:48:24]OFD Sender: No OFD packet to send [07:48:29]OFD Sender: No OFD packet to send [07:48:34]OFD Sender: No OFD packet to send [07:48:39]OFD Sender: No OFD packet to send [07:48:44]OFD Sender: No OFD packet to send [07:48:49]OFD Sender: No OFD packet to send [07:48:54]OFD Sender: No OFD packet to send [07:48:59]OFD Sender: No OFD packet to send [07:49:04]OFD Sender: No OFD packet to send [07:49:09]OFD Sender: No OFD packet to send [07:49:14]OFD Sender: No OFD packet to send [07:49:19]OFD Sender: No OFD packet to send [07:49:24]OFD Sender: No OFD packet to send [07:49:29]OFD Sender: No OFD packet to send [07:49:34]OFD Sender: No OFD packet to send [07:49:39]OFD Sender: No OFD packet to send [07:49:44]OFD Sender: No OFD packet to send [07:49:49]OFD Sender: No OFD packet to send [07:49:54]OFD Sender: No OFD packet to send [07:49:59]OFD Sender: No OFD packet to send [07:50:04]OFD Sender: No OFD packet to send [07:50:09]OFD Sender: No OFD packet to send [07:50:14]OFD Sender: No OFD packet to send [07:50:19]OFD Sender: No OFD packet to send [07:50:24]OFD Sender: No OFD packet to send [07:50:29]OFD Sender: No OFD packet to send [07:50:34]OFD Sender: No OFD packet to send [07:50:39]OFD Sender: No OFD packet to send [07:50:44]OFD Sender: No OFD packet to send [07:50:49]OFD Sender: No OFD packet to send [07:50:54]OFD Sender: No OFD packet to send [07:50:59]OFD Sender: No OFD packet to send [07:51:04]OFD Sender: No OFD packet to send [07:51:09]OFD Sender: No OFD packet to send [07:51:14]OFD Sender: No OFD packet to send [07:51:19]OFD Sender: No OFD packet to send [07:51:24]OFD Sender: No OFD packet to send [07:51:29]OFD Sender: No OFD packet to send [07:51:34]OFD Sender: No OFD packet to send [07:51:39]OFD Sender: No OFD packet to send [07:51:44]OFD Sender: No OFD packet to send [07:51:49]OFD Sender: No OFD packet to send [07:51:54]OFD Sender: No OFD packet to send [07:51:59]OFD Sender: No OFD packet to send [07:52:04]OFD Sender: No OFD packet to send [07:52:09]OFD Sender: No OFD packet to send [07:52:14]OFD Sender: No OFD packet to send [07:52:19]OFD Sender: No OFD packet to send [07:52:24]OFD Sender: No OFD packet to send [07:52:29]OFD Sender: No OFD packet to send [07:52:34]OFD Sender: No OFD packet to send [07:52:39]OFD Sender: No OFD packet to send [07:52:44]OFD Sender: No OFD packet to send [07:52:49]OFD Sender: No OFD packet to send [07:52:54]OFD Sender: No OFD packet to send [07:52:59]OFD Sender: No OFD packet to send [07:53:04]OFD Sender: No OFD packet to send [07:53:09]OFD Sender: No OFD packet to send [07:53:14]OFD Sender: No OFD packet to send [07:53:19]OFD Sender: No OFD packet to send [07:53:24]OFD Sender: No OFD packet to send [07:53:29]OFD Sender: No OFD packet to send [07:53:34]OFD Sender: No OFD packet to send [07:53:39]OFD Sender: No OFD packet to send [07:53:44]OFD Sender: No OFD packet to send [07:53:49]OFD Sender: No OFD packet to send [07:53:54]OFD Sender: No OFD packet to send [07:53:59]OFD Sender: No OFD packet to send [07:54:04]OFD Sender: No OFD packet to send [07:54:09]OFD Sender: No OFD packet to send [07:54:14]OFD Sender: No OFD packet to send [07:54:19]OFD Sender: No OFD packet to send [07:54:24]OFD Sender: No OFD packet to send [07:54:29]OFD Sender: No OFD packet to send [07:54:34]OFD Sender: No OFD packet to send [07:54:39]OFD Sender: No OFD packet to send [07:54:44]OFD Sender: No OFD packet to send [07:54:49]OFD Sender: No OFD packet to send [07:54:54]OFD Sender: No OFD packet to send [07:54:59]OFD Sender: No OFD packet to send [07:55:04]OFD Sender: No OFD packet to send [07:55:09]OFD Sender: No OFD packet to send [07:55:14]OFD Sender: No OFD packet to send [07:55:19]OFD Sender: No OFD packet to send [07:55:24]OFD Sender: No OFD packet to send [07:55:29]OFD Sender: No OFD packet to send [07:55:34]OFD Sender: No OFD packet to send [07:55:39]OFD Sender: No OFD packet to send [07:55:44]OFD Sender: No OFD packet to send [07:55:49]OFD Sender: No OFD packet to send [07:55:52]accept exits with 7 [07:55:52]New connection [07:55:52]New thread 3066543460 created [07:55:52]Thread 3066686820 joined [07:55:52]Waiting for new connection... [07:55:52] Sock 7.Parse request [07:55:52]Sock 7.Check first char [07:55:52]Sock 7.First char is OK [07:55:52]request: POST /json_proto HTTP/1.0 [07:55:52]Method: POST [07:55:52]URL: /json_proto [07:55:52]Method is POST - this is cgi request [07:55:52]url: /json_proto [07:55:52]query_string will be loaded in cgi processing [07:55:52]execute_cgi json_proto POST (null) [07:55:52]execute_cgi path=json_proto method=POST [07:55:52]POST find Content-Length [07:55:52]Host: 172.17.36.132:8080 [07:55:52]Content-Length: 642 [07:55:52]Content-Type: application/json [07:55:52] [07:55:52]POST finish read [07:55:52]Found Content-Length = 642 [07:55:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706331", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 30.000, "sum" : 2007.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 2007.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:55:52]execute_script... [07:55:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706331", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 30.000, "sum" : 2007.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 2007.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:55:52]POST & json_proto [07:55:52]process_json_proto [07:55:52]json parsed OK: [07:55:52]protocol is kg_v1.0 [07:55:52]action value=close_receipt [07:55:52]process_action close_receipt [07:55:52]cmd_close_receipt [07:55:52]MH_GetDate [07:55:52]Write to MH i2c: F0 00 00 26 1D 32 [07:55:52]Write i2c OK [07:55:52]MH_I2C_Read... [07:55:52]Read from MH i2c: F0 [07:55:52]MH_I2C_Read... [07:55:52]Read from MH i2c: F0 09 00 [07:55:52]MH_I2C_Read... [07:55:52]Read from MH i2c: F0 09 00 26 1D 00 0C 77 5D 66 B2 22 B0 64 69 [07:55:52]GetLastDocTimeStamp 1717398003 [07:55:52]current date 1717401356 [07:55:52]FM_GetShiftState [07:55:52]SAM_PROTO_GetShiftState [07:55:52]wFMCommunicate request_size=4 [07:55:52]MH_SAM_APDU [07:55:52]CAPDU: 80 13 01 00 [07:55:52]Write to MH i2c: E2 08 00 27 1D 80 13 01 00 00 00 00 00 C1 [07:55:52]Write i2c OK [07:55:52]MH_I2C_Read... [07:55:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:55:52]Read from MH i2c: E2 [07:55:52]MH_I2C_Read... [07:55:52]Read from MH i2c: E2 0E 00 [07:55:52]MH_I2C_Read... [07:55:52]Read from MH i2c: E2 0E 00 27 1D 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 9C [07:55:52]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [07:55:52]wFMCommunicate OK [07:55:52]SAM_PROTO_GetShiftState done [07:55:52]FM_GetShiftState done [07:55:52]opened in 1717378033 [07:55:52]opened+sec_in_day 1717464433 [07:55:52]quantity*price = 200700 [07:55:52]sum+1 = 200701 [07:55:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2007.00 НСП 1% : 17.76 НДС 12% : 213.13 Наличными: 2007.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 7 03.06.2024 07:55 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68261 ФПД: 94722935591582 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T075556&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68261&fm=94722935591582&tin=02508201610067®Number=0000000000098096&sum=200700 [07:55:54]StoreToDocumentArchive [07:55:54]shift 324 fd 68261 [07:55:54]save to /storage/0324/doc_00068261 [07:55:54]save last doc name /storage/0324/doc_00068261 to /storage/kkm_last_doc_name [07:55:54]save OK [07:55:54]Clear old archive folders... [07:55:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:55:54]tlvbuf is 003CFBB0 [07:55:54]SAM_PROTO_ClearQueue [07:55:54]wFMCommunicate request_size=4 [07:55:54]MH_SAM_APDU [07:55:54]CAPDU: 80 09 00 00 [07:55:54]Write to MH i2c: E2 08 00 34 1D 80 09 00 00 00 00 00 00 C3 [07:55:54]Write i2c OK [07:55:54]MH_I2C_Read... [07:55:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:55:54]Read from MH i2c: E2 [07:55:54]MH_I2C_Read... [07:55:54]Read from MH i2c: E2 03 00 [07:55:54]MH_I2C_Read... [07:55:54]Read from MH i2c: E2 03 00 34 1D 00 90 00 C5 [07:55:54]RAPDU: 90 00 [07:55:54]wFMCommunicate OK [07:55:54]SAM_PROTO_ClearQueue done [07:55:54]KKMCreateOFDPacket [07:55:54]OFDProtocolAddRootSTLVToBuf [07:55:54]FM_MakeSignedData [07:55:54]FM_MakeSignedData [07:55:54]SAM_PROTO_SignData [07:55:54]wFMCommunicate request_size=4 [07:55:54]MH_SAM_APDU [07:55:54]CAPDU: 80 0D 01 02 [07:55:54]Write to MH i2c: E2 08 00 35 1D 80 0D 01 02 00 00 00 00 CB [07:55:54]Write i2c OK [07:55:54]MH_I2C_Read... [07:55:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:55:54]Read from MH i2c: E2 [07:55:54]MH_I2C_Read... [07:55:54]Read from MH i2c: E2 03 00 [07:55:54]MH_I2C_Read... [07:55:54]Read from MH i2c: E2 03 00 35 1D 00 90 00 C6 [07:55:54]RAPDU: 90 00 [07:55:54]wFMCommunicate OK [07:55:54]wFMCommunicate request_size=255 [07:55:54]MH_SAM_APDU [07:55:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FC 0F 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 0F 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 53 00 00 00 00 07 04 06 00 FC 0F 03 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 0C 77 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A5 0A 01 00 35 04 06 00 56 [07:55:54]Write to MH i2c: E2 02 01 36 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FC 0F 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 0F 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 53 00 00 00 00 07 04 06 00 FC 0F 03 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 0C 77 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A5 0A 01 00 35 04 06 00 56 00 00 00 [07:55:54]Write i2c OK [07:55:54]MH_I2C_Read... [07:55:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:55:54]Read from MH i2c: E2 [07:55:54]MH_I2C_Read... [07:55:54]Read from MH i2c: E2 03 00 [07:55:54]MH_I2C_Read... [07:55:54]Read from MH i2c: E2 03 00 36 1D 00 90 00 C7 [07:55:54]RAPDU: 90 00 [07:55:54]wFMCommunicate OK [07:55:54]wFMCommunicate request_size=10 [07:55:54]MH_SAM_APDU [07:55:54]CAPDU: 80 0D 02 02 05 26 66 ED 92 9E [07:55:54]Write to MH i2c: E2 0D 00 37 1D 80 0D 02 02 05 00 26 66 ED 92 9E 00 00 81 [07:55:54]Write i2c OK [07:55:54]MH_I2C_Read... [07:55:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:55:54]Read from MH i2c: E2 [07:55:54]MH_I2C_Read... [07:55:54]Read from MH i2c: E2 03 00 [07:55:54]MH_I2C_Read... [07:55:54]Read from MH i2c: E2 03 00 37 1D 00 90 00 C8 [07:55:54]RAPDU: 90 00 [07:55:54]wFMCommunicate OK [07:55:54]wFMCommunicate request_size=4 [07:55:54]MH_SAM_APDU [07:55:54]CAPDU: 80 0D 03 02 [07:55:54]Write to MH i2c: E2 08 00 38 1D 80 0D 03 02 00 00 00 00 D0 [07:55:54]Write i2c OK [07:55:54]MH_I2C_Read... [07:55:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:55:54]Read from MH i2c: E2 [07:55:54]MH_I2C_Read... [07:55:54]Read from MH i2c: E2 0B 00 [07:55:54]MH_I2C_Read... [07:55:54]Read from MH i2c: E2 0B 00 38 1D 00 6A FF 25 29 63 15 77 BF 90 00 36 [07:55:54]RAPDU: 6A FF 25 29 63 15 77 BF 90 00 [07:55:54]wFMCommunicate OK [07:55:54]SAM_PROTO_SignData done [07:55:54]FM_MakeSignedData done [07:55:54]CreateOFDProtocolMessage [07:55:54]wFMCommunicate request_size=4 [07:55:54]MH_SAM_APDU [07:55:54]CAPDU: 80 11 00 00 [07:55:54]Write to MH i2c: E2 08 00 39 1D 80 11 00 00 00 00 00 00 D0 [07:55:54]Write i2c OK [07:55:54]MH_I2C_Read... [07:55:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:55:54]Read from MH i2c: E2 [07:55:54]MH_I2C_Read... [07:55:54]Read from MH i2c: E2 17 00 [07:55:54]MH_I2C_Read... [07:55:54]Read from MH i2c: E2 17 00 39 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 1B [07:55:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [07:55:54]wFMCommunicate OK [07:55:54]CreateOFDProtocolMessage done [07:55:54]OFDSenderStorePacket 68261 [07:55:54]StoreOFDPacket docnum=68261 [07:55:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 EF 30 07 01 4F 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FC 0F 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 0F 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 53 00 00 00 00 07 04 06 00 FC 0F 03 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 0C 77 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A5 0A 01 00 35 04 06 00 56 26 66 ED 92 9E 6A FF 25 29 63 15 77 BF [07:55:54]CheckFolder [07:55:54]dirname=/storage/ofd_packets [07:55:54]CheckFolder done [07:55:54]ProducePacketName [07:55:54]name=ofd_packets/00068261 [07:55:54]NVStorageSaveData ofd_packets/00068261 [07:55:54]File name is /storage/ofd_packets/00068261 [07:55:54]Write 301 bytes [07:55:54]NVStorageSaveData done [07:55:54]OFDSenderStorePacket done [07:55:54]KKMCreateOFDPacket done [07:55:54]NVStorageSaveData kkm_last_timestamp [07:55:54]File name is /storage/kkm_last_timestamp [07:55:54]Write 4 bytes [07:55:54]NVStorageSaveData done [07:55:54]ExternCall_PrintAddStr [07:55:54]wPrintStart [07:55:54]Write to MH i2c: 01 00 00 3A 1D 57 [07:55:54]Write i2c OK [07:55:54]MH_I2C_Read... [07:55:54]Read from MH i2c: 01 [07:55:54]MH_I2C_Read... [07:55:54]Read from MH i2c: 01 07 00 [07:55:54]MH_I2C_Read... [07:55:54]Read from MH i2c: 01 07 00 3A 1D 00 00 00 00 00 FF 0F 6C [07:55:54]RasterBufferAndPrint [07:55:54]line Счет N : (1)706331 [07:55:54]line ИНН: 02508201610067 [07:55:54]line Контрольно-Кассовый Чек [07:55:54]line ПРОДАЖА [07:55:54]line ТРК (МРК, ГНК) : 53 [07:55:54]line Товар: 2710124130 [07:55:54]line Аи-92-К-4 [07:55:54]line 30.000 * 66.90 [07:55:54]line = 2007.00 [07:55:54]line НДС 12% НСП 1% [07:55:54]line > о реализуемом товаре [07:55:54]line ИТОГО: 2007.00 [07:55:54]line НСП 1% : 17.76 [07:55:54]line НДС 12% : 213.13 [07:55:54]line Наличными: 2007.00 [07:55:54]line Безнал.: 0.00 [07:55:54]line Место: АЗС № 62 "Партнер Нефть" [07:55:54]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [07:55:54]line СНО: Общий режим [07:55:54]line Чек 7 03.06.2024 07:55 [07:55:54]line Смена: 324 ФФД: 1.0 [07:55:54]line ЗНМ: 0300000181 [07:55:54]line РНМ: 0000000000098096 [07:55:54]line Версия ККМ: 001 [07:55:54]line ФМ: 0000000000965400 [07:55:54]line ФД: 68261 [07:55:54]line ФПД: 94722935591582 [07:55:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T075556&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68261&fm=94722935591582&tin=02508201610067®Number=0000000000098096&sum=200700 [07:55:54]OFD Sender: Processing packet 68261 [packets to send 26, broken 25] [07:55:54]ProducePacketName [07:55:54]name=ofd_packets/00068261 [07:55:54]OFD Sender: To server: pG, [07:55:54]CommunicateWithHost lk.salyk.kg:30040 [07:55:54]ConnectInit lk.salyk.kg [07:55:54]written 0, free lines is 4095 [07:55:54]Connected sock=10 [07:55:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 EF 30 07 01 4F 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FC 0F 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 0F 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 53 00 00 00 00 07 04 06 00 FC 0F 03 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 0C 77 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A5 0A 01 00 35 04 06 00 56 26 66 ED 92 9E 6A FF 25 29 63 15 77 BF [07:55:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 57 41 47 00 E1 A7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A5 0A 01 00 F4 03 04 00 09 1E 5D 66 B6 04 01 00 00 25 3E 8C 10 2F 83 F7 76 [07:55:55]CommunicateWithHost err = 0 [07:55:55]CheckOFDResponse [07:55:55]1017 (14) - 77093643461234 [07:55:55]1041 (16) - 0000000000965400 [07:55:55]1040 (4) - 68261 [07:55:55]1012 (4) - 03.06.2024 01:36 [07:55:55]1206 (1) - 0 [07:55:55]OFD Sender: Remove packet 68261 [07:55:55]ProducePacketName [07:55:55]name=ofd_packets/00068261 [07:55:55]NVStorageDeleteData [07:55:55]Write to MH i2c: 01 00 00 62 1D 7F [07:55:55]Write i2c OK [07:55:55]MH_I2C_Read... [07:55:55]Read from MH i2c: 01 [07:55:55]MH_I2C_Read... [07:55:55]Read from MH i2c: 01 07 00 [07:55:55]MH_I2C_Read... [07:55:55]Read from MH i2c: 01 07 00 62 1D 00 00 00 00 00 F6 0C 88 [07:55:55]RasterBufferAndPrint [07:55:55]line [07:55:55]line [07:55:55]line [07:55:55]line [07:55:55]line [07:55:55]written 0, free lines is 3324 [07:55:55]MH_Cut [07:55:55]Write to MH i2c: D1 01 00 69 1D 01 58 [07:55:55]Write i2c OK [07:55:55]MH_I2C_Read... [07:55:55]Read from MH i2c: D1 [07:55:55]MH_I2C_Read... [07:55:55]Read from MH i2c: D1 01 00 [07:55:55]MH_I2C_Read... [07:55:55]Read from MH i2c: D1 01 00 69 1D 00 57 [07:55:55]Write to MH i2c: 01 00 00 6A 1D 87 [07:55:55]Write i2c OK [07:55:55]MH_I2C_Read... [07:55:55]OFD Sender: No OFD packet to send [07:55:56]*** Cut start [07:55:56]*** Partial cut [07:55:56]*** CUTSNS_PIN = 1 [07:55:56]*** CUTSNS_PIN = 0 [07:55:56]*** Brake cut motor [07:55:56]Read from MH i2c: 01 [07:55:56]MH_I2C_Read... [07:55:56]*** Stop cut motor [07:55:56]*** Cut end [07:55:56]Read from MH i2c: 01 07 00 [07:55:56]MH_I2C_Read... [07:55:56]Read from MH i2c: 01 07 00 6A 1D 00 00 00 00 00 FF 0F 9C [07:55:56]process_action close_receipt done [07:55:56]requested_data is exist [07:55:56]produce_requested_data [07:55:56]requested_item fm.sn is exist - process it [07:55:56]wFMCommunicate request_size=4 [07:55:56]MH_SAM_APDU [07:55:56]CAPDU: 80 11 00 00 [07:55:56]Write to MH i2c: E2 08 00 6B 1D 80 11 00 00 00 00 00 00 02 [07:55:56]Write i2c OK [07:55:56]MH_I2C_Read... [07:55:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:55:56]Read from MH i2c: E2 [07:55:56]MH_I2C_Read... [07:55:56]Read from MH i2c: E2 17 00 [07:55:56]MH_I2C_Read... [07:55:56]Read from MH i2c: E2 17 00 6B 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 4D [07:55:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [07:55:56]wFMCommunicate OK [07:55:56]requested_item fd.num is exist - process it [07:55:56]SAM_PROTO_GetFieldsCounters [07:55:56]wFMCommunicate request_size=4 [07:55:56]MH_SAM_APDU [07:55:56]CAPDU: 80 13 00 00 [07:55:56]Write to MH i2c: E2 08 00 6C 1D 80 13 00 00 00 00 00 00 05 [07:55:56]Write i2c OK [07:55:56]MH_I2C_Read... [07:55:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:55:56]Read from MH i2c: E2 [07:55:56]MH_I2C_Read... [07:55:56]Read from MH i2c: E2 62 00 [07:55:56]MH_I2C_Read... [07:55:56]Read from MH i2c: E2 62 00 6C 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 A5 0A 01 00 0E 04 04 00 44 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 2F [07:55:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 A5 0A 01 00 0E 04 04 00 44 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 [07:55:56]wFMCommunicate OK [07:55:56]SAM_PROTO_GetFieldsCounters done [07:55:56]requested_item shift.num is exist - process it [07:55:56]requested_item shift.opened is exist - process it [07:55:56]req_shift_opened [07:55:56]FM_GetShiftState [07:55:56]SAM_PROTO_GetShiftState [07:55:56]wFMCommunicate request_size=4 [07:55:56]MH_SAM_APDU [07:55:56]CAPDU: 80 13 01 00 [07:55:56]Write to MH i2c: E2 08 00 6D 1D 80 13 01 00 00 00 00 00 07 [07:55:56]Write i2c OK [07:55:56]MH_I2C_Read... [07:55:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:55:57]Read from MH i2c: E2 [07:55:57]MH_I2C_Read... [07:55:57]Read from MH i2c: E2 0E 00 [07:55:57]MH_I2C_Read... [07:55:57]Read from MH i2c: E2 0E 00 6D 1D 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 E2 [07:55:57]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [07:55:57]wFMCommunicate OK [07:55:57]SAM_PROTO_GetShiftState done [07:55:57]FM_GetShiftState done [07:55:57]req_shift_opened done [07:55:57]requested_item shift.open_date is exist - process it [07:55:57]req_shift_open_date [07:55:57]req_shift_open_date done [07:55:57]produce_requested_data done [07:55:57]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68261,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [07:55:57]process_action_free close_receipt [07:55:57]json_value_free [07:55:57]json_value_free done [07:55:57]process_json_proto returns [07:55:57]Send response to host [07:55:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68261,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [07:55:57]free response buf [07:55:57]execute_script done [07:55:57]execute_script returns [07:55:57]free content buf [07:55:57]Sock 7.Close socket [07:55:57]Sock 7.Thread stoped [07:56:00]OFD Sender: No OFD packet to send [07:56:05]OFD Sender: No OFD packet to send [07:56:10]OFD Sender: No OFD packet to send [07:56:15]OFD Sender: No OFD packet to send [07:56:20]OFD Sender: No OFD packet to send [07:56:25]OFD Sender: No OFD packet to send [07:56:30]OFD Sender: No OFD packet to send [07:56:35]OFD Sender: No OFD packet to send [07:56:40]OFD Sender: No OFD packet to send [07:56:45]OFD Sender: No OFD packet to send [07:56:50]OFD Sender: No OFD packet to send [07:56:55]OFD Sender: No OFD packet to send [07:57:00]OFD Sender: No OFD packet to send [07:57:05]OFD Sender: No OFD packet to send [07:57:10]OFD Sender: No OFD packet to send [07:57:15]OFD Sender: No OFD packet to send [07:57:20]OFD Sender: No OFD packet to send [07:57:25]OFD Sender: No OFD packet to send [07:57:30]OFD Sender: No OFD packet to send [07:57:35]OFD Sender: No OFD packet to send [07:57:40]OFD Sender: No OFD packet to send [07:57:45]OFD Sender: No OFD packet to send [07:57:50]OFD Sender: No OFD packet to send [07:57:55]OFD Sender: No OFD packet to send [07:58:00]OFD Sender: No OFD packet to send [07:58:05]OFD Sender: No OFD packet to send [07:58:10]OFD Sender: No OFD packet to send [07:58:15]OFD Sender: No OFD packet to send [07:58:20]OFD Sender: No OFD packet to send [07:58:25]OFD Sender: No OFD packet to send [07:58:30]OFD Sender: No OFD packet to send [07:58:35]OFD Sender: No OFD packet to send [07:58:40]OFD Sender: No OFD packet to send [07:58:45]OFD Sender: No OFD packet to send [07:58:50]OFD Sender: No OFD packet to send [07:58:55]OFD Sender: No OFD packet to send [07:59:00]OFD Sender: No OFD packet to send [07:59:05]OFD Sender: No OFD packet to send [07:59:10]OFD Sender: No OFD packet to send [07:59:15]OFD Sender: No OFD packet to send [07:59:20]OFD Sender: No OFD packet to send [07:59:25]OFD Sender: No OFD packet to send [07:59:30]OFD Sender: No OFD packet to send [07:59:35]OFD Sender: No OFD packet to send [07:59:40]OFD Sender: No OFD packet to send [07:59:45]OFD Sender: No OFD packet to send [07:59:50]OFD Sender: No OFD packet to send [07:59:55]OFD Sender: No OFD packet to send [08:00:00]OFD Sender: No OFD packet to send [08:00:05]OFD Sender: No OFD packet to send [08:00:10]OFD Sender: No OFD packet to send [08:00:15]OFD Sender: No OFD packet to send [08:00:20]OFD Sender: No OFD packet to send [08:00:25]OFD Sender: No OFD packet to send [08:00:30]OFD Sender: No OFD packet to send [08:00:35]OFD Sender: No OFD packet to send [08:00:40]OFD Sender: No OFD packet to send [08:00:45]OFD Sender: No OFD packet to send [08:00:50]OFD Sender: No OFD packet to send [08:00:55]OFD Sender: No OFD packet to send [08:01:00]OFD Sender: No OFD packet to send [08:01:05]OFD Sender: No OFD packet to send [08:01:10]OFD Sender: No OFD packet to send [08:01:15]OFD Sender: No OFD packet to send [08:01:20]OFD Sender: No OFD packet to send [08:01:25]OFD Sender: No OFD packet to send [08:01:30]OFD Sender: No OFD packet to send [08:01:35]OFD Sender: No OFD packet to send [08:01:40]OFD Sender: No OFD packet to send [08:01:45]OFD Sender: No OFD packet to send [08:01:50]OFD Sender: No OFD packet to send [08:01:56]OFD Sender: No OFD packet to send [08:02:01]OFD Sender: No OFD packet to send [08:02:06]OFD Sender: No OFD packet to send [08:02:11]OFD Sender: No OFD packet to send [08:02:16]OFD Sender: No OFD packet to send [08:02:21]OFD Sender: No OFD packet to send [08:02:26]OFD Sender: No OFD packet to send [08:02:31]OFD Sender: No OFD packet to send [08:02:36]OFD Sender: No OFD packet to send [08:02:41]OFD Sender: No OFD packet to send [08:02:46]OFD Sender: No OFD packet to send [08:02:51]OFD Sender: No OFD packet to send [08:02:56]OFD Sender: No OFD packet to send [08:03:01]OFD Sender: No OFD packet to send [08:03:06]OFD Sender: No OFD packet to send [08:03:11]OFD Sender: No OFD packet to send [08:03:16]OFD Sender: No OFD packet to send [08:03:21]OFD Sender: No OFD packet to send [08:03:26]OFD Sender: No OFD packet to send [08:03:31]OFD Sender: No OFD packet to send [08:03:36]OFD Sender: No OFD packet to send [08:03:41]OFD Sender: No OFD packet to send [08:03:46]OFD Sender: No OFD packet to send [08:03:51]OFD Sender: No OFD packet to send [08:03:56]OFD Sender: No OFD packet to send [08:04:01]OFD Sender: No OFD packet to send [08:04:06]OFD Sender: No OFD packet to send [08:04:11]OFD Sender: No OFD packet to send [08:04:16]OFD Sender: No OFD packet to send [08:04:21]OFD Sender: No OFD packet to send [08:04:26]OFD Sender: No OFD packet to send [08:04:31]OFD Sender: No OFD packet to send [08:04:36]OFD Sender: No OFD packet to send [08:04:41]OFD Sender: No OFD packet to send [08:04:46]OFD Sender: No OFD packet to send [08:04:51]OFD Sender: No OFD packet to send [08:04:56]OFD Sender: No OFD packet to send [08:05:01]OFD Sender: No OFD packet to send [08:05:06]OFD Sender: No OFD packet to send [08:05:11]OFD Sender: No OFD packet to send [08:05:16]OFD Sender: No OFD packet to send [08:05:21]OFD Sender: No OFD packet to send [08:05:26]OFD Sender: No OFD packet to send [08:05:31]OFD Sender: No OFD packet to send [08:05:36]OFD Sender: No OFD packet to send [08:05:39]accept exits with 9 [08:05:39]New connection [08:05:39]New thread 3066686820 created [08:05:39]Thread 3066543460 joined [08:05:39]Waiting for new connection... [08:05:39] Sock 9.Parse request [08:05:39]Sock 9.Check first char [08:05:39]Sock 9.First char is OK [08:05:39]request: POST /json_proto HTTP/1.0 [08:05:39]Method: POST [08:05:39]URL: /json_proto [08:05:39]Method is POST - this is cgi request [08:05:39]url: /json_proto [08:05:39]query_string will be loaded in cgi processing [08:05:39]execute_cgi json_proto POST (null) [08:05:39]execute_cgi path=json_proto method=POST [08:05:39]POST find Content-Length [08:05:39]Host: 172.17.36.132:8080 [08:05:39]Content-Length: 840 [08:05:39]Content-Type: application/json [08:05:39] [08:05:39]POST finish read [08:05:39]Found Content-Length = 840 [08:05:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706332", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.180, "sum" : 279.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 279.64 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:05:39]execute_script... [08:05:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706332", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.180, "sum" : 279.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 279.64 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:05:39]POST & json_proto [08:05:39]process_json_proto [08:05:39]json parsed OK: [08:05:39]protocol is kg_v1.0 [08:05:39]action value=close_receipt [08:05:39]process_action close_receipt [08:05:39]cmd_close_receipt [08:05:39]MH_GetDate [08:05:39]Write to MH i2c: F0 00 00 6E 1D 7A [08:05:39]Write i2c OK [08:05:39]MH_I2C_Read... [08:05:39]Read from MH i2c: F0 [08:05:39]MH_I2C_Read... [08:05:39]Read from MH i2c: F0 09 00 [08:05:39]MH_I2C_Read... [08:05:39]Read from MH i2c: F0 09 00 6E 1D 00 57 79 5D 66 B2 22 B0 64 FE [08:05:39]GetLastDocTimeStamp 1717401356 [08:05:39]current date 1717401943 [08:05:39]FM_GetShiftState [08:05:39]SAM_PROTO_GetShiftState [08:05:39]wFMCommunicate request_size=4 [08:05:39]MH_SAM_APDU [08:05:39]CAPDU: 80 13 01 00 [08:05:39]Write to MH i2c: E2 08 00 6F 1D 80 13 01 00 00 00 00 00 09 [08:05:39]Write i2c OK [08:05:39]MH_I2C_Read... [08:05:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:05:39]Read from MH i2c: E2 [08:05:39]MH_I2C_Read... [08:05:39]Read from MH i2c: E2 0E 00 [08:05:39]MH_I2C_Read... [08:05:39]Read from MH i2c: E2 0E 00 6F 1D 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 E4 [08:05:39]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [08:05:39]wFMCommunicate OK [08:05:39]SAM_PROTO_GetShiftState done [08:05:39]FM_GetShiftState done [08:05:39]opened in 1717378033 [08:05:39]opened+sec_in_day 1717464433 [08:05:39]quantity*price = 27964 [08:05:39]sum+1 = 27965 [08:05:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 279.64 НСП 1% : 2.47 НДС 12% : 29.70 Наличными: 0.00 Безнал.: 279.64 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 8 03.06.2024 08:05 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68262 ФПД: 259411120190181 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T080543&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68262&fm=259411120190181&tin=02508201610067®Number=0000000000098096&sum=27964 [08:05:40]StoreToDocumentArchive [08:05:40]shift 324 fd 68262 [08:05:40]save to /storage/0324/doc_00068262 [08:05:40]save last doc name /storage/0324/doc_00068262 to /storage/kkm_last_doc_name [08:05:40]save OK [08:05:40]Clear old archive folders... [08:05:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:05:40]tlvbuf is 0046B990 [08:05:40]SAM_PROTO_ClearQueue [08:05:40]wFMCommunicate request_size=4 [08:05:40]MH_SAM_APDU [08:05:40]CAPDU: 80 09 00 00 [08:05:40]Write to MH i2c: E2 08 00 7C 1D 80 09 00 00 00 00 00 00 0B [08:05:40]Write i2c OK [08:05:40]MH_I2C_Read... [08:05:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:05:40]Read from MH i2c: E2 [08:05:40]MH_I2C_Read... [08:05:40]Read from MH i2c: E2 03 00 [08:05:40]MH_I2C_Read... [08:05:40]Read from MH i2c: E2 03 00 7C 1D 00 90 00 0D [08:05:40]RAPDU: 90 00 [08:05:40]wFMCommunicate OK [08:05:40]SAM_PROTO_ClearQueue done [08:05:40]KKMCreateOFDPacket [08:05:40]OFDProtocolAddRootSTLVToBuf [08:05:40]FM_MakeSignedData [08:05:40]FM_MakeSignedData [08:05:40]SAM_PROTO_SignData [08:05:40]wFMCommunicate request_size=4 [08:05:40]MH_SAM_APDU [08:05:40]CAPDU: 80 0D 01 02 [08:05:40]Write to MH i2c: E2 08 00 7D 1D 80 0D 01 02 00 00 00 00 13 [08:05:40]Write i2c OK [08:05:40]MH_I2C_Read... [08:05:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:05:40]Read from MH i2c: E2 [08:05:40]MH_I2C_Read... [08:05:40]Read from MH i2c: E2 03 00 [08:05:40]MH_I2C_Read... [08:05:40]Read from MH i2c: E2 03 00 7D 1D 00 90 00 0E [08:05:40]RAPDU: 90 00 [08:05:40]wFMCommunicate OK [08:05:40]wFMCommunicate request_size=255 [08:05:40]MH_SAM_APDU [08:05: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 34 FF 03 08 00 03 54 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 3C 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3C 6D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 57 79 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A6 0A 01 00 35 04 06 00 EB [08:05:40]Write to MH i2c: E2 02 01 7E 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 54 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 3C 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3C 6D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 57 79 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A6 0A 01 00 35 04 06 00 EB 00 00 CE [08:05:40]Write i2c OK [08:05:40]MH_I2C_Read... [08:05:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:05:40]Read from MH i2c: E2 [08:05:40]MH_I2C_Read... [08:05:40]Read from MH i2c: E2 03 00 [08:05:40]MH_I2C_Read... [08:05:40]Read from MH i2c: E2 03 00 7E 1D 00 90 00 0F [08:05:40]RAPDU: 90 00 [08:05:40]wFMCommunicate OK [08:05:40]wFMCommunicate request_size=10 [08:05:40]MH_SAM_APDU [08:05:40]CAPDU: 80 0D 02 02 05 EE DB AB 72 E5 [08:05:40]Write to MH i2c: E2 0D 00 7F 1D 80 0D 02 02 05 00 EE DB AB 72 E5 00 00 EB [08:05:40]Write i2c OK [08:05:40]MH_I2C_Read... [08:05:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:05:40]Read from MH i2c: E2 [08:05:40]MH_I2C_Read... [08:05:40]Read from MH i2c: E2 03 00 [08:05:40]MH_I2C_Read... [08:05:40]Read from MH i2c: E2 03 00 7F 1D 00 90 00 10 [08:05:40]RAPDU: 90 00 [08:05:40]wFMCommunicate OK [08:05:40]wFMCommunicate request_size=4 [08:05:40]MH_SAM_APDU [08:05:40]CAPDU: 80 0D 03 02 [08:05:40]Write to MH i2c: E2 08 00 80 1D 80 0D 03 02 00 00 00 00 18 [08:05:40]Write i2c OK [08:05:40]MH_I2C_Read... [08:05:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:05:40]Read from MH i2c: E2 [08:05:40]MH_I2C_Read... [08:05:40]Read from MH i2c: E2 0B 00 [08:05:40]MH_I2C_Read... [08:05:40]Read from MH i2c: E2 0B 00 80 1D 00 77 E1 C0 AB 1D 78 F7 8E 90 00 F6 [08:05:40]RAPDU: 77 E1 C0 AB 1D 78 F7 8E 90 00 [08:05:40]wFMCommunicate OK [08:05:40]SAM_PROTO_SignData done [08:05:40]FM_MakeSignedData done [08:05:40]CreateOFDProtocolMessage [08:05:40]wFMCommunicate request_size=4 [08:05:40]MH_SAM_APDU [08:05:40]CAPDU: 80 11 00 00 [08:05:40]Write to MH i2c: E2 08 00 81 1D 80 11 00 00 00 00 00 00 18 [08:05:40]Write i2c OK [08:05:40]MH_I2C_Read... [08:05:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:05:41]Read from MH i2c: E2 [08:05:41]MH_I2C_Read... [08:05:41]Read from MH i2c: E2 17 00 [08:05:41]MH_I2C_Read... [08:05:41]Read from MH i2c: E2 17 00 81 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 63 [08:05:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [08:05:41]wFMCommunicate OK [08:05:41]CreateOFDProtocolMessage done [08:05:41]OFDSenderStorePacket 68262 [08:05:41]StoreOFDPacket docnum=68262 [08:05:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 4D 5B 07 01 D2 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 54 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 3C 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3C 6D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 57 79 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A6 0A 01 00 35 04 06 00 EB EE DB AB 72 E5 77 E1 C0 AB 1D 78 F7 8E [08:05:41]CheckFolder [08:05:41]dirname=/storage/ofd_packets [08:05:41]CheckFolder done [08:05:41]ProducePacketName [08:05:41]name=ofd_packets/00068262 [08:05:41]NVStorageSaveData ofd_packets/00068262 [08:05:41]File name is /storage/ofd_packets/00068262 [08:05:41]Write 301 bytes [08:05:41]NVStorageSaveData done [08:05:41]OFDSenderStorePacket done [08:05:41]KKMCreateOFDPacket done [08:05:41]NVStorageSaveData kkm_last_timestamp [08:05:41]File name is /storage/kkm_last_timestamp [08:05:41]Write 4 bytes [08:05:41]NVStorageSaveData done [08:05:41]ExternCall_PrintAddStr [08:05:41]wPrintStart [08:05:41]Write to MH i2c: 01 00 00 82 1D 9F [08:05:41]Write i2c OK [08:05:41]MH_I2C_Read... [08:05:41]Read from MH i2c: 01 [08:05:41]MH_I2C_Read... [08:05:41]Read from MH i2c: 01 07 00 [08:05:41]MH_I2C_Read... [08:05:41]Read from MH i2c: 01 07 00 82 1D 00 00 00 00 00 FF 0F B4 [08:05:41]RasterBufferAndPrint [08:05:41]line Счет N : (1)706332 [08:05:41]line ИНН: 02508201610067 [08:05:41]line Контрольно-Кассовый Чек [08:05:41]line ПРОДАЖА [08:05:41]line ТРК (МРК, ГНК) : 32 [08:05:41]line Товар: 2710124130 [08:05:41]line Аи-92-К-4 [08:05:41]line 4.180 * 66.90 [08:05:41]line = 279.64 [08:05:41]line НДС 12% НСП 1% [08:05:41]line > о реализуемом товаре [08:05:41]line ИТОГО: 279.64 [08:05:41]line НСП 1% : 2.47 [08:05:41]line НДС 12% : 29.70 [08:05:41]line Наличными: 0.00 [08:05:41]line Безнал.: 279.64 [08:05:41]line Место: АЗС № 62 "Партнер Нефть" [08:05:41]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [08:05:41]line СНО: Общий режим [08:05:41]line Чек 8 03.06.2024 08:05 [08:05:41]line Смена: 324 ФФД: 1.0 [08:05:41]line ЗНМ: 0300000181 [08:05:41]line РНМ: 0000000000098096 [08:05:41]line Версия ККМ: 001 [08:05:41]line Платежная система: АКБ Кыргызстан [08:05:41]line ФМ: 0000000000965400 [08:05:41]line ФД: 68262 [08:05:41]line ФПД: 259411120190181 [08:05:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T080543&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68262&fm=259411120190181&tin=02508201610067®Number=0000000000098096&sum=27964 [08:05:41]OFD Sender: Processing packet 68262 [packets to send 26, broken 25] [08:05:41]ProducePacketName [08:05:41]name=ofd_packets/00068262 [08:05:41]OFD Sender: To server: pG, [08:05:41]CommunicateWithHost lk.salyk.kg:30040 [08:05:41]ConnectInit lk.salyk.kg [08:05:41]written 0, free lines is 4095 [08:05:41]Connected sock=10 [08:05:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 4D 5B 07 01 D2 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 54 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 3C 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3C 6D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 57 79 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A6 0A 01 00 35 04 06 00 EB EE DB AB 72 E5 77 E1 C0 AB 1D 78 F7 8E [08:05:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 3E 24 47 00 A3 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A6 0A 01 00 F4 03 04 00 54 20 5D 66 B6 04 01 00 00 FD 9F 1E 61 4C F6 C7 BA [08:05:41]CommunicateWithHost err = 0 [08:05:41]CheckOFDResponse [08:05:41]1017 (14) - 77093643461234 [08:05:41]1041 (16) - 0000000000965400 [08:05:41]1040 (4) - 68262 [08:05:41]1012 (4) - 03.06.2024 01:45 [08:05:41]1206 (1) - 0 [08:05:41]OFD Sender: Remove packet 68262 [08:05:41]ProducePacketName [08:05:41]name=ofd_packets/00068262 [08:05:41]NVStorageDeleteData [08:05:41]Write to MH i2c: 01 00 00 AC 1D C9 [08:05:41]Write i2c OK [08:05:41]MH_I2C_Read... [08:05:41]Read from MH i2c: 01 [08:05:41]MH_I2C_Read... [08:05:41]Read from MH i2c: 01 07 00 [08:05:41]MH_I2C_Read... [08:05:41]Read from MH i2c: 01 07 00 AC 1D 00 00 00 00 00 E7 0C C3 [08:05:41]RasterBufferAndPrint [08:05:41]line [08:05:41]line [08:05:41]line [08:05:41]line [08:05:41]line [08:05:41]written 0, free lines is 3307 [08:05:41]MH_Cut [08:05:41]Write to MH i2c: D1 01 00 B3 1D 01 A2 [08:05:41]Write i2c OK [08:05:41]MH_I2C_Read... [08:05:41]Read from MH i2c: D1 [08:05:41]MH_I2C_Read... [08:05:41]Read from MH i2c: D1 01 00 [08:05:41]MH_I2C_Read... [08:05:41]Read from MH i2c: D1 01 00 B3 1D 00 A1 [08:05:41]Write to MH i2c: 01 00 00 B4 1D D1 [08:05:41]Write i2c OK [08:05:41]MH_I2C_Read... [08:05:42]OFD Sender: No OFD packet to send [08:05:42]*** Cut start [08:05:42]*** Partial cut [08:05:42]*** CUTSNS_PIN = 1 [08:05:42]*** CUTSNS_PIN = 0 [08:05:42]*** Brake cut motor [08:05:43]Read from MH i2c: 01 [08:05:43]MH_I2C_Read... [08:05:43]*** Stop cut motor [08:05:43]*** Cut end [08:05:43]Read from MH i2c: 01 07 00 [08:05:43]MH_I2C_Read... [08:05:43]Read from MH i2c: 01 07 00 B4 1D 00 00 00 00 00 FF 0F E6 [08:05:43]process_action close_receipt done [08:05:43]requested_data is exist [08:05:43]produce_requested_data [08:05:43]requested_item fm.sn is exist - process it [08:05:43]wFMCommunicate request_size=4 [08:05:43]MH_SAM_APDU [08:05:43]CAPDU: 80 11 00 00 [08:05:43]Write to MH i2c: E2 08 00 B5 1D 80 11 00 00 00 00 00 00 4C [08:05:43]Write i2c OK [08:05:43]MH_I2C_Read... [08:05:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:05:43]Read from MH i2c: E2 [08:05:43]MH_I2C_Read... [08:05:43]Read from MH i2c: E2 17 00 [08:05:43]MH_I2C_Read... [08:05:43]Read from MH i2c: E2 17 00 B5 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 97 [08:05:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [08:05:43]wFMCommunicate OK [08:05:43]requested_item fd.num is exist - process it [08:05:43]SAM_PROTO_GetFieldsCounters [08:05:43]wFMCommunicate request_size=4 [08:05:43]MH_SAM_APDU [08:05:43]CAPDU: 80 13 00 00 [08:05:43]Write to MH i2c: E2 08 00 B6 1D 80 13 00 00 00 00 00 00 4F [08:05:43]Write i2c OK [08:05:43]MH_I2C_Read... [08:05:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:05:43]Read from MH i2c: E2 [08:05:43]MH_I2C_Read... [08:05:43]Read from MH i2c: E2 62 00 [08:05:43]MH_I2C_Read... [08:05:43]Read from MH i2c: E2 62 00 B6 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 A6 0A 01 00 0E 04 04 00 44 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 7D [08:05:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 A6 0A 01 00 0E 04 04 00 44 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:05:43]wFMCommunicate OK [08:05:43]SAM_PROTO_GetFieldsCounters done [08:05:43]requested_item shift.num is exist - process it [08:05:43]requested_item shift.opened is exist - process it [08:05:43]req_shift_opened [08:05:43]FM_GetShiftState [08:05:43]SAM_PROTO_GetShiftState [08:05:43]wFMCommunicate request_size=4 [08:05:43]MH_SAM_APDU [08:05:43]CAPDU: 80 13 01 00 [08:05:43]Write to MH i2c: E2 08 00 B7 1D 80 13 01 00 00 00 00 00 51 [08:05:43]Write i2c OK [08:05:43]MH_I2C_Read... [08:05:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:05:43]Read from MH i2c: E2 [08:05:43]MH_I2C_Read... [08:05:43]Read from MH i2c: E2 0E 00 [08:05:43]MH_I2C_Read... [08:05:43]Read from MH i2c: E2 0E 00 B7 1D 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 2C [08:05:43]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [08:05:43]wFMCommunicate OK [08:05:43]SAM_PROTO_GetShiftState done [08:05:43]FM_GetShiftState done [08:05:43]req_shift_opened done [08:05:43]requested_item shift.open_date is exist - process it [08:05:43]req_shift_open_date [08:05:43]req_shift_open_date done [08:05:43]produce_requested_data done [08:05:43]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68262,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [08:05:43]process_action_free close_receipt [08:05:43]json_value_free [08:05:43]json_value_free done [08:05:43]process_json_proto returns [08:05:43]Send response to host [08:05:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68262,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [08:05:43]free response buf [08:05:43]execute_script done [08:05:43]execute_script returns [08:05:43]free content buf [08:05:43]Sock 9.Close socket [08:05:43]Sock 9.Thread stoped [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:27]accept exits with 7 [08:06:27]New connection [08:06:27]New thread 3066543460 created [08:06:27]Thread 3066686820 joined [08:06:27]Waiting for new connection... [08:06:27] Sock 7.Parse request [08:06:27]Sock 7.Check first char [08:06:27]Sock 7.First char is OK [08:06:27]request: POST /json_proto HTTP/1.0 [08:06:27]Method: POST [08:06:27]URL: /json_proto [08:06:27]Method is POST - this is cgi request [08:06:27]url: /json_proto [08:06:27]query_string will be loaded in cgi processing [08:06:27]execute_cgi json_proto POST (null) [08:06:27]execute_cgi path=json_proto method=POST [08:06:27]POST find Content-Length [08:06:27]Host: 172.17.36.132:8080 [08:06:27]Content-Length: 677 [08:06:27]Content-Type: application/json [08:06:27] [08:06:27]POST finish read [08:06:27]Found Content-Length = 677 [08:06:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706333", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 1.500, "sum" : 100.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:06:27]execute_script... [08:06:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706333", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 1.500, "sum" : 100.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:06:27]POST & json_proto [08:06:27]process_json_proto [08:06:27]json parsed OK: [08:06:27]protocol is kg_v1.0 [08:06:27]action value=close_receipt [08:06:27]process_action close_receipt [08:06:27]cmd_close_receipt [08:06:27]MH_GetDate [08:06:27]Write to MH i2c: F0 00 00 B8 1D C4 [08:06:27]Write i2c OK [08:06:27]MH_I2C_Read... [08:06:27]Read from MH i2c: F0 [08:06:27]MH_I2C_Read... [08:06:27]Read from MH i2c: F0 09 00 [08:06:27]MH_I2C_Read... [08:06:27]Read from MH i2c: F0 09 00 B8 1D 00 87 79 5D 66 B2 22 B0 64 78 [08:06:27]GetLastDocTimeStamp 1717401943 [08:06:27]current date 1717401991 [08:06:27]FM_GetShiftState [08:06:27]SAM_PROTO_GetShiftState [08:06:27]wFMCommunicate request_size=4 [08:06:27]MH_SAM_APDU [08:06:27]CAPDU: 80 13 01 00 [08:06:27]Write to MH i2c: E2 08 00 B9 1D 80 13 01 00 00 00 00 00 53 [08:06:27]Write i2c OK [08:06:27]MH_I2C_Read... [08:06:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:06:27]Read from MH i2c: E2 [08:06:27]MH_I2C_Read... [08:06:27]Read from MH i2c: E2 0E 00 [08:06:27]MH_I2C_Read... [08:06:27]Read from MH i2c: E2 0E 00 B9 1D 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 2E [08:06:27]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [08:06:27]wFMCommunicate OK [08:06:27]SAM_PROTO_GetShiftState done [08:06:27]FM_GetShiftState done [08:06:27]opened in 1717378033 [08:06:27]opened+sec_in_day 1717464433 [08:06:27]quantity*price = 10035 [08:06:27]sum+1 = 10036 [08:06:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.66 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 9 03.06.2024 08:06 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68263 ФПД: 36395869152305 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T080631&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68263&fm=36395869152305&tin=02508201610067®Number=0000000000098096&sum=10000 [08:06:28]StoreToDocumentArchive [08:06:28]shift 324 fd 68263 [08:06:28]save to /storage/0324/doc_00068263 [08:06:28]save last doc name /storage/0324/doc_00068263 to /storage/kkm_last_doc_name [08:06:28]save OK [08:06:28]Clear old archive folders... [08:06:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:06:28]tlvbuf is B6D670B0 [08:06:28]SAM_PROTO_ClearQueue [08:06:28]wFMCommunicate request_size=4 [08:06:28]MH_SAM_APDU [08:06:28]CAPDU: 80 09 00 00 [08:06:28]Write to MH i2c: E2 08 00 C6 1D 80 09 00 00 00 00 00 00 55 [08:06:28]Write i2c OK [08:06:28]MH_I2C_Read... [08:06:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:06:28]Read from MH i2c: E2 [08:06:28]MH_I2C_Read... [08:06:28]Read from MH i2c: E2 03 00 [08:06:28]MH_I2C_Read... [08:06:28]Read from MH i2c: E2 03 00 C6 1D 00 90 00 57 [08:06:28]RAPDU: 90 00 [08:06:28]wFMCommunicate OK [08:06:28]SAM_PROTO_ClearQueue done [08:06:28]KKMCreateOFDPacket [08:06:28]OFDProtocolAddRootSTLVToBuf [08:06:28]FM_MakeSignedData [08:06:28]FM_MakeSignedData [08:06:28]SAM_PROTO_SignData [08:06:28]wFMCommunicate request_size=4 [08:06:28]MH_SAM_APDU [08:06:28]CAPDU: 80 0D 01 02 [08:06:28]Write to MH i2c: E2 08 00 C7 1D 80 0D 01 02 00 00 00 00 5D [08:06:28]Write i2c OK [08:06:28]MH_I2C_Read... [08:06:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:06:28]Read from MH i2c: E2 [08:06:28]MH_I2C_Read... [08:06:28]Read from MH i2c: E2 03 00 [08:06:28]MH_I2C_Read... [08:06:28]Read from MH i2c: E2 03 00 C7 1D 00 90 00 58 [08:06:28]RAPDU: 90 00 [08:06:28]wFMCommunicate OK [08:06:28]wFMCommunicate request_size=255 [08:06:28]MH_SAM_APDU [08:06:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 87 79 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A7 0A 01 00 35 04 06 00 21 [08:06:28]Write to MH i2c: E2 02 01 C8 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 87 79 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A7 0A 01 00 35 04 06 00 21 00 00 B5 [08:06:28]Write i2c OK [08:06:28]MH_I2C_Read... [08:06:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:06:28]Read from MH i2c: E2 [08:06:28]MH_I2C_Read... [08:06:28]Read from MH i2c: E2 03 00 [08:06:28]MH_I2C_Read... [08:06:28]Read from MH i2c: E2 03 00 C8 1D 00 90 00 59 [08:06:28]RAPDU: 90 00 [08:06:28]wFMCommunicate OK [08:06:28]wFMCommunicate request_size=10 [08:06:28]MH_SAM_APDU [08:06:28]CAPDU: 80 0D 02 02 05 1A 12 DA 24 31 [08:06:28]Write to MH i2c: E2 0D 00 C9 1D 80 0D 02 02 05 00 1A 12 DA 24 31 00 00 C5 [08:06:28]Write i2c OK [08:06:28]MH_I2C_Read... [08:06:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:06:28]Read from MH i2c: E2 [08:06:28]MH_I2C_Read... [08:06:28]Read from MH i2c: E2 03 00 [08:06:28]MH_I2C_Read... [08:06:28]Read from MH i2c: E2 03 00 C9 1D 00 90 00 5A [08:06:28]RAPDU: 90 00 [08:06:28]wFMCommunicate OK [08:06:28]wFMCommunicate request_size=4 [08:06:28]MH_SAM_APDU [08:06:28]CAPDU: 80 0D 03 02 [08:06:28]Write to MH i2c: E2 08 00 CA 1D 80 0D 03 02 00 00 00 00 62 [08:06:28]Write i2c OK [08:06:28]MH_I2C_Read... [08:06:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:06:28]Read from MH i2c: E2 [08:06:28]MH_I2C_Read... [08:06:28]Read from MH i2c: E2 0B 00 [08:06:28]MH_I2C_Read... [08:06:28]Read from MH i2c: E2 0B 00 CA 1D 00 B2 0B 88 AC B2 33 60 BF 90 00 58 [08:06:28]RAPDU: B2 0B 88 AC B2 33 60 BF 90 00 [08:06:28]wFMCommunicate OK [08:06:28]SAM_PROTO_SignData done [08:06:28]FM_MakeSignedData done [08:06:28]CreateOFDProtocolMessage [08:06:28]wFMCommunicate request_size=4 [08:06:28]MH_SAM_APDU [08:06:28]CAPDU: 80 11 00 00 [08:06:28]Write to MH i2c: E2 08 00 CB 1D 80 11 00 00 00 00 00 00 62 [08:06:28]Write i2c OK [08:06:28]MH_I2C_Read... [08:06:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:06:28]Read from MH i2c: E2 [08:06:28]MH_I2C_Read... [08:06:28]Read from MH i2c: E2 17 00 [08:06:28]MH_I2C_Read... [08:06:28]Read from MH i2c: E2 17 00 CB 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 AD [08:06:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [08:06:28]wFMCommunicate OK [08:06:28]CreateOFDProtocolMessage done [08:06:28]OFDSenderStorePacket 68263 [08:06:28]StoreOFDPacket docnum=68263 [08:06:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 E1 B6 07 01 1D AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 87 79 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A7 0A 01 00 35 04 06 00 21 1A 12 DA 24 31 B2 0B 88 AC B2 33 60 BF [08:06:28]CheckFolder [08:06:28]dirname=/storage/ofd_packets [08:06:28]CheckFolder done [08:06:28]ProducePacketName [08:06:28]name=ofd_packets/00068263 [08:06:28]NVStorageSaveData ofd_packets/00068263 [08:06:28]File name is /storage/ofd_packets/00068263 [08:06:28]Write 301 bytes [08:06:28]NVStorageSaveData done [08:06:28]OFDSenderStorePacket done [08:06:28]KKMCreateOFDPacket done [08:06:28]NVStorageSaveData kkm_last_timestamp [08:06:28]File name is /storage/kkm_last_timestamp [08:06:28]Write 4 bytes [08:06:28]NVStorageSaveData done [08:06:28]ExternCall_PrintAddStr [08:06:28]wPrintStart [08:06:28]Write to MH i2c: 01 00 00 CC 1D E9 [08:06:28]Write i2c OK [08:06:28]MH_I2C_Read... [08:06:28]Read from MH i2c: 01 [08:06:28]MH_I2C_Read... [08:06:28]Read from MH i2c: 01 07 00 [08:06:28]MH_I2C_Read... [08:06:28]Read from MH i2c: 01 07 00 CC 1D 00 00 00 00 00 FF 0F FE [08:06:28]RasterBufferAndPrint [08:06:28]line Счет N : (1)706333 [08:06:28]line ИНН: 02508201610067 [08:06:28]line Контрольно-Кассовый Чек [08:06:28]line ПРОДАЖА [08:06:28]line ТРК (МРК, ГНК) : 32 [08:06:28]line Товар: 2710124130 [08:06:28]line Аи-92-К-4 [08:06:28]line 1.500 * 66.90 [08:06:28]line = 100.35 [08:06:28]line НДС 12% НСП 1% [08:06:28]line > о реализуемом товаре [08:06:28]line ОКРУГЛЕНИЕ: -0.35 [08:06:28]line ИТОГО: 100.00 [08:06:28]line Внесено: 100.00 [08:06:28]line СДАЧА: 0.00 [08:06:28]line НСП 1% : 0.89 [08:06:28]line НДС 12% : 10.66 [08:06:28]line Наличными: 100.00 [08:06:28]line Безнал.: 0.00 [08:06:28]line Место: АЗС № 62 "Партнер Нефть" [08:06:28]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [08:06:28]line СНО: Общий режим [08:06:28]line Чек 9 03.06.2024 08:06 [08:06:28]line Смена: 324 ФФД: 1.0 [08:06:28]line ЗНМ: 0300000181 [08:06:28]line РНМ: 0000000000098096 [08:06:28]line Версия ККМ: 001 [08:06:28]line ФМ: 0000000000965400 [08:06:28]line ФД: 68263 [08:06:28]line ФПД: 36395869152305 [08:06:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T080631&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68263&fm=36395869152305&tin=02508201610067®Number=0000000000098096&sum=10000 [08:06:29]OFD Sender: Processing packet 68263 [packets to send 26, broken 25] [08:06:29]ProducePacketName [08:06:29]name=ofd_packets/00068263 [08:06:29]OFD Sender: To server: pG, [08:06:29]CommunicateWithHost lk.salyk.kg:30040 [08:06:29]ConnectInit lk.salyk.kg [08:06:29]written 0, free lines is 4095 [08:06:29]Connected sock=10 [08:06:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 E1 B6 07 01 1D AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 87 79 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A7 0A 01 00 35 04 06 00 21 1A 12 DA 24 31 B2 0B 88 AC B2 33 60 BF [08:06:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 94 7E 47 00 BD 3E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A7 0A 01 00 F4 03 04 00 84 20 5D 66 B6 04 01 00 00 89 5C BA DF F8 6D E4 CE [08:06:29]CommunicateWithHost err = 0 [08:06:29]CheckOFDResponse [08:06:29]1017 (14) - 77093643461234 [08:06:29]1041 (16) - 0000000000965400 [08:06:29]1040 (4) - 68263 [08:06:29]1012 (4) - 03.06.2024 01:46 [08:06:29]1206 (1) - 0 [08:06:29]OFD Sender: Remove packet 68263 [08:06:29]ProducePacketName [08:06:29]name=ofd_packets/00068263 [08:06:29]NVStorageDeleteData [08:06:29]Write to MH i2c: 01 00 00 F7 1D 14 [08:06:29]Write i2c OK [08:06:29]MH_I2C_Read... [08:06:29]Read from MH i2c: 01 [08:06:29]MH_I2C_Read... [08:06:29]Read from MH i2c: 01 07 00 [08:06:29]MH_I2C_Read... [08:06:29]Read from MH i2c: 01 07 00 F7 1D 00 00 00 00 00 D7 0C FE [08:06:29]RasterBufferAndPrint [08:06:29]line [08:06:29]line [08:06:29]line [08:06:29]line [08:06:29]line [08:06:29]written 0, free lines is 3290 [08:06:29]MH_Cut [08:06:29]Write to MH i2c: D1 01 00 FE 1D 01 ED [08:06:29]Write i2c OK [08:06:29]MH_I2C_Read... [08:06:29]Read from MH i2c: D1 [08:06:29]MH_I2C_Read... [08:06:29]Read from MH i2c: D1 01 00 [08:06:29]MH_I2C_Read... [08:06:29]Read from MH i2c: D1 01 00 FE 1D 00 EC [08:06:29]Write to MH i2c: 01 00 00 FF 1D 1C [08:06:29]Write i2c OK [08:06:29]MH_I2C_Read... [08:06:30]OFD Sender: No OFD packet to send [08:06:30]*** Cut start [08:06:30]*** Partial cut [08:06:30]*** CUTSNS_PIN = 1 [08:06:30]*** CUTSNS_PIN = 0 [08:06:30]*** Brake cut motor [08:06:31]Read from MH i2c: 01 [08:06:31]MH_I2C_Read... [08:06:31]*** Stop cut motor [08:06:31]*** Cut end [08:06:31]Read from MH i2c: 01 07 00 [08:06:31]MH_I2C_Read... [08:06:31]Read from MH i2c: 01 07 00 FF 1D 00 00 00 00 00 FF 0F 31 [08:06:31]process_action close_receipt done [08:06:31]requested_data is exist [08:06:31]produce_requested_data [08:06:31]requested_item fm.sn is exist - process it [08:06:31]wFMCommunicate request_size=4 [08:06:31]MH_SAM_APDU [08:06:31]CAPDU: 80 11 00 00 [08:06:31]Write to MH i2c: E2 08 00 00 1E 80 11 00 00 00 00 00 00 98 [08:06:31]Write i2c OK [08:06:31]MH_I2C_Read... [08:06:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:06:31]Read from MH i2c: E2 [08:06:31]MH_I2C_Read... [08:06:31]Read from MH i2c: E2 17 00 [08:06:31]MH_I2C_Read... [08:06:31]Read from MH i2c: E2 17 00 00 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 E3 [08:06:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [08:06:31]wFMCommunicate OK [08:06:31]requested_item fd.num is exist - process it [08:06:31]SAM_PROTO_GetFieldsCounters [08:06:31]wFMCommunicate request_size=4 [08:06:31]MH_SAM_APDU [08:06:31]CAPDU: 80 13 00 00 [08:06:31]Write to MH i2c: E2 08 00 01 1E 80 13 00 00 00 00 00 00 9B [08:06:31]Write i2c OK [08:06:31]MH_I2C_Read... [08:06:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:06:31]Read from MH i2c: E2 [08:06:31]MH_I2C_Read... [08:06:31]Read from MH i2c: E2 62 00 [08:06:31]MH_I2C_Read... [08:06:31]Read from MH i2c: E2 62 00 01 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 A7 0A 01 00 0E 04 04 00 44 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 CD [08:06:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 A7 0A 01 00 0E 04 04 00 44 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:06:31]wFMCommunicate OK [08:06:31]SAM_PROTO_GetFieldsCounters done [08:06:31]requested_item shift.num is exist - process it [08:06:31]requested_item shift.opened is exist - process it [08:06:31]req_shift_opened [08:06:31]FM_GetShiftState [08:06:31]SAM_PROTO_GetShiftState [08:06:31]wFMCommunicate request_size=4 [08:06:31]MH_SAM_APDU [08:06:31]CAPDU: 80 13 01 00 [08:06:31]Write to MH i2c: E2 08 00 02 1E 80 13 01 00 00 00 00 00 9D [08:06:31]Write i2c OK [08:06:31]MH_I2C_Read... [08:06:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:06:31]Read from MH i2c: E2 [08:06:31]MH_I2C_Read... [08:06:31]Read from MH i2c: E2 0E 00 [08:06:31]MH_I2C_Read... [08:06:31]Read from MH i2c: E2 0E 00 02 1E 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 78 [08:06:31]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [08:06:31]wFMCommunicate OK [08:06:31]SAM_PROTO_GetShiftState done [08:06:31]FM_GetShiftState done [08:06:31]req_shift_opened done [08:06:31]requested_item shift.open_date is exist - process it [08:06:31]req_shift_open_date [08:06:31]req_shift_open_date done [08:06:31]produce_requested_data done [08:06:31]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68263,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [08:06:31]process_action_free close_receipt [08:06:31]json_value_free [08:06:31]json_value_free done [08:06:31]process_json_proto returns [08:06:31]Send response to host [08:06:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68263,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [08:06:31]free response buf [08:06:31]execute_script done [08:06:31]execute_script returns [08:06:31]free content buf [08:06:31]Sock 7.Close socket [08:06:31]Sock 7.Thread stoped [08:06:35]OFD Sender: No OFD packet to send [08:06:40]OFD Sender: No OFD packet to send [08:06:45]OFD Sender: No OFD packet to send [08:06:50]OFD Sender: No OFD packet to send [08:06:55]OFD Sender: No OFD packet to send [08:07:00]OFD Sender: No OFD packet to send [08:07:05]OFD Sender: No OFD packet to send [08:07:10]OFD Sender: No OFD packet to send [08:07:15]OFD Sender: No OFD packet to send [08:07:20]OFD Sender: No OFD packet to send [08:07:25]OFD Sender: No OFD packet to send [08:07:30]OFD Sender: No OFD packet to send [08:07:35]OFD Sender: No OFD packet to send [08:07:40]OFD Sender: No OFD packet to send [08:07:45]OFD Sender: No OFD packet to send [08:07:50]OFD Sender: No OFD packet to send [08:07:55]OFD Sender: No OFD packet to send [08:08:00]OFD Sender: No OFD packet to send [08:08:05]OFD Sender: No OFD packet to send [08:08:10]OFD Sender: No OFD packet to send [08:08:15]OFD Sender: No OFD packet to send [08:08:20]OFD Sender: No OFD packet to send [08:08:25]OFD Sender: No OFD packet to send [08:08:30]OFD Sender: No OFD packet to send [08:08:35]OFD Sender: No OFD packet to send [08:08:40]OFD Sender: No OFD packet to send [08:08:45]OFD Sender: No OFD packet to send [08:08:50]OFD Sender: No OFD packet to send [08:08:55]OFD Sender: No OFD packet to send [08:09:00]OFD Sender: No OFD packet to send [08:09:05]OFD Sender: No OFD packet to send [08:09:10]OFD Sender: No OFD packet to send [08:09:15]OFD Sender: No OFD packet to send [08:09:20]OFD Sender: No OFD packet to send [08:09:25]OFD Sender: No OFD packet to send [08:09:30]OFD Sender: No OFD packet to send [08:09:35]OFD Sender: No OFD packet to send [08:09:40]OFD Sender: No OFD packet to send [08:09:45]OFD Sender: No OFD packet to send [08:09:50]OFD Sender: No OFD packet to send [08:09:55]OFD Sender: No OFD packet to send [08:10:00]OFD Sender: No OFD packet to send [08:10:05]OFD Sender: No OFD packet to send [08:10:10]OFD Sender: No OFD packet to send [08:10:15]OFD Sender: No OFD packet to send [08:10:20]OFD Sender: No OFD packet to send [08:10:25]OFD Sender: No OFD packet to send [08:10:30]OFD Sender: No OFD packet to send [08:10:35]OFD Sender: No OFD packet to send [08:10:40]OFD Sender: No OFD packet to send [08:10:45]OFD Sender: No OFD packet to send [08:10:50]OFD Sender: No OFD packet to send [08:10:52]accept exits with 9 [08:10:52]New connection [08:10:52]New thread 3066686820 created [08:10:52]Thread 3066543460 joined [08:10:52]Waiting for new connection... [08:10:52] Sock 9.Parse request [08:10:52]Sock 9.Check first char [08:10:52]Sock 9.First char is OK [08:10:52]request: POST /json_proto HTTP/1.0 [08:10:52]Method: POST [08:10:52]URL: /json_proto [08:10:52]Method is POST - this is cgi request [08:10:52]url: /json_proto [08:10:52]query_string will be loaded in cgi processing [08:10:52]execute_cgi json_proto POST (null) [08:10:52]execute_cgi path=json_proto method=POST [08:10:52]POST find Content-Length [08:10:52]Host: 172.17.36.132:8080 [08:10:52]Content-Length: 677 [08:10:52]Content-Type: application/json [08:10:52] [08:10:52]POST finish read [08:10:52]Found Content-Length = 677 [08:10:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706334", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 5.420, "sum" : 400.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:10:52]execute_script... [08:10:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706334", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 5.420, "sum" : 400.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:10:52]POST & json_proto [08:10:52]process_json_proto [08:10:52]json parsed OK: [08:10:52]protocol is kg_v1.0 [08:10:52]action value=close_receipt [08:10:52]process_action close_receipt [08:10:52]cmd_close_receipt [08:10:52]MH_GetDate [08:10:52]Write to MH i2c: F0 00 00 03 1E 10 [08:10:52]Write i2c OK [08:10:52]MH_I2C_Read... [08:10:52]Read from MH i2c: F0 [08:10:52]MH_I2C_Read... [08:10:52]Read from MH i2c: F0 09 00 [08:10:52]MH_I2C_Read... [08:10:52]Read from MH i2c: F0 09 00 03 1E 00 90 7A 5D 66 B2 22 B0 64 CE [08:10:52]GetLastDocTimeStamp 1717401991 [08:10:52]current date 1717402256 [08:10:52]FM_GetShiftState [08:10:52]SAM_PROTO_GetShiftState [08:10:52]wFMCommunicate request_size=4 [08:10:52]MH_SAM_APDU [08:10:52]CAPDU: 80 13 01 00 [08:10:52]Write to MH i2c: E2 08 00 04 1E 80 13 01 00 00 00 00 00 9F [08:10:52]Write i2c OK [08:10:52]MH_I2C_Read... [08:10:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:10:52]Read from MH i2c: E2 [08:10:52]MH_I2C_Read... [08:10:52]Read from MH i2c: E2 0E 00 [08:10:52]MH_I2C_Read... [08:10:52]Read from MH i2c: E2 0E 00 04 1E 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 7A [08:10:52]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [08:10:52]wFMCommunicate OK [08:10:52]SAM_PROTO_GetShiftState done [08:10:52]FM_GetShiftState done [08:10:52]opened in 1717378033 [08:10:52]opened+sec_in_day 1717464433 [08:10:52]quantity*price = 40053 [08:10:52]sum+1 = 40055 [08:10:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.53 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 10 03.06.2024 08:10 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68264 ФПД: 16097251587387 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T081056&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68264&fm=16097251587387&tin=02508201610067®Number=0000000000098096&sum=40000 [08:10:53]StoreToDocumentArchive [08:10:53]shift 324 fd 68264 [08:10:53]save to /storage/0324/doc_00068264 [08:10:53]save last doc name /storage/0324/doc_00068264 to /storage/kkm_last_doc_name [08:10:53]save OK [08:10:53]Clear old archive folders... [08:10:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:10:53]tlvbuf is B6E80570 [08:10:53]SAM_PROTO_ClearQueue [08:10:53]wFMCommunicate request_size=4 [08:10:53]MH_SAM_APDU [08:10:53]CAPDU: 80 09 00 00 [08:10:53]Write to MH i2c: E2 08 00 11 1E 80 09 00 00 00 00 00 00 A1 [08:10:53]Write i2c OK [08:10:53]MH_I2C_Read... [08:10:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:10:53]Read from MH i2c: E2 [08:10:53]MH_I2C_Read... [08:10:53]Read from MH i2c: E2 03 00 [08:10:53]MH_I2C_Read... [08:10:53]Read from MH i2c: E2 03 00 11 1E 00 90 00 A3 [08:10:53]RAPDU: 90 00 [08:10:53]wFMCommunicate OK [08:10:53]SAM_PROTO_ClearQueue done [08:10:53]KKMCreateOFDPacket [08:10:53]OFDProtocolAddRootSTLVToBuf [08:10:53]FM_MakeSignedData [08:10:53]FM_MakeSignedData [08:10:53]SAM_PROTO_SignData [08:10:53]wFMCommunicate request_size=4 [08:10:53]MH_SAM_APDU [08:10:53]CAPDU: 80 0D 01 02 [08:10:53]Write to MH i2c: E2 08 00 12 1E 80 0D 01 02 00 00 00 00 A9 [08:10:53]Write i2c OK [08:10:53]MH_I2C_Read... [08:10:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:10:53]Read from MH i2c: E2 [08:10:53]MH_I2C_Read... [08:10:53]Read from MH i2c: E2 03 00 [08:10:53]MH_I2C_Read... [08:10:53]Read from MH i2c: E2 03 00 12 1E 00 90 00 A4 [08:10:53]RAPDU: 90 00 [08:10:53]wFMCommunicate OK [08:10:53]wFMCommunicate request_size=255 [08:10:53]MH_SAM_APDU [08:10:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 2C 15 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 76 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 9D 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 0A 00 00 00 F4 03 04 00 90 7A 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A8 0A 01 00 35 04 06 00 0E [08:10:53]Write to MH i2c: E2 02 01 13 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 2C 15 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 76 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 9D 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 0A 00 00 00 F4 03 04 00 90 7A 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A8 0A 01 00 35 04 06 00 0E 00 00 A8 [08:10:53]Write i2c OK [08:10:53]MH_I2C_Read... [08:10:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:10:53]Read from MH i2c: E2 [08:10:53]MH_I2C_Read... [08:10:53]Read from MH i2c: E2 03 00 [08:10:53]MH_I2C_Read... [08:10:53]Read from MH i2c: E2 03 00 13 1E 00 90 00 A5 [08:10:53]RAPDU: 90 00 [08:10:53]wFMCommunicate OK [08:10:53]wFMCommunicate request_size=10 [08:10:53]MH_SAM_APDU [08:10:53]CAPDU: 80 0D 02 02 05 A3 EE F6 75 3B [08:10:53]Write to MH i2c: E2 0D 00 14 1E 80 0D 02 02 05 00 A3 EE F6 75 3B 00 00 ED [08:10:53]Write i2c OK [08:10:53]MH_I2C_Read... [08:10:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:10:53]Read from MH i2c: E2 [08:10:53]MH_I2C_Read... [08:10:53]Read from MH i2c: E2 03 00 [08:10:53]MH_I2C_Read... [08:10:53]Read from MH i2c: E2 03 00 14 1E 00 90 00 A6 [08:10:53]RAPDU: 90 00 [08:10:53]wFMCommunicate OK [08:10:53]wFMCommunicate request_size=4 [08:10:53]MH_SAM_APDU [08:10:53]CAPDU: 80 0D 03 02 [08:10:53]Write to MH i2c: E2 08 00 15 1E 80 0D 03 02 00 00 00 00 AE [08:10:53]Write i2c OK [08:10:53]MH_I2C_Read... [08:10:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:10:53]Read from MH i2c: E2 [08:10:53]MH_I2C_Read... [08:10:53]Read from MH i2c: E2 0B 00 [08:10:53]MH_I2C_Read... [08:10:53]Read from MH i2c: E2 0B 00 15 1E 00 E1 E8 10 69 BA F6 26 58 90 00 1F [08:10:53]RAPDU: E1 E8 10 69 BA F6 26 58 90 00 [08:10:53]wFMCommunicate OK [08:10:53]SAM_PROTO_SignData done [08:10:53]FM_MakeSignedData done [08:10:53]CreateOFDProtocolMessage [08:10:53]wFMCommunicate request_size=4 [08:10:53]MH_SAM_APDU [08:10:53]CAPDU: 80 11 00 00 [08:10:53]Write to MH i2c: E2 08 00 16 1E 80 11 00 00 00 00 00 00 AE [08:10:53]Write i2c OK [08:10:53]MH_I2C_Read... [08:10:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:10:53]Read from MH i2c: E2 [08:10:53]MH_I2C_Read... [08:10:53]Read from MH i2c: E2 17 00 [08:10:53]MH_I2C_Read... [08:10:53]Read from MH i2c: E2 17 00 16 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 F9 [08:10:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [08:10:53]wFMCommunicate OK [08:10:53]CreateOFDProtocolMessage done [08:10:53]OFDSenderStorePacket 68264 [08:10:53]StoreOFDPacket docnum=68264 [08:10:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 DC 06 07 01 BB B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 2C 15 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 76 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 9D 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 0A 00 00 00 F4 03 04 00 90 7A 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A8 0A 01 00 35 04 06 00 0E A3 EE F6 75 3B E1 E8 10 69 BA F6 26 58 [08:10:53]CheckFolder [08:10:53]dirname=/storage/ofd_packets [08:10:53]CheckFolder done [08:10:53]ProducePacketName [08:10:53]name=ofd_packets/00068264 [08:10:53]NVStorageSaveData ofd_packets/00068264 [08:10:53]File name is /storage/ofd_packets/00068264 [08:10:53]Write 301 bytes [08:10:53]NVStorageSaveData done [08:10:53]OFDSenderStorePacket done [08:10:53]KKMCreateOFDPacket done [08:10:53]NVStorageSaveData kkm_last_timestamp [08:10:53]File name is /storage/kkm_last_timestamp [08:10:53]Write 4 bytes [08:10:53]NVStorageSaveData done [08:10:53]ExternCall_PrintAddStr [08:10:53]wPrintStart [08:10:53]Write to MH i2c: 01 00 00 17 1E 35 [08:10:53]Write i2c OK [08:10:53]MH_I2C_Read... [08:10:53]Read from MH i2c: 01 [08:10:53]MH_I2C_Read... [08:10:53]Read from MH i2c: 01 07 00 [08:10:53]MH_I2C_Read... [08:10:53]Read from MH i2c: 01 07 00 17 1E 00 00 00 00 00 FF 0F 4A [08:10:53]RasterBufferAndPrint [08:10:53]line Счет N : (1)706334 [08:10:53]line ИНН: 02508201610067 [08:10:53]line Контрольно-Кассовый Чек [08:10:53]line ПРОДАЖА [08:10:53]line ТРК (МРК, ГНК) : 33 [08:10:53]line Товар: 2710124500 [08:10:53]line Аи-95-К-5 [08:10:53]line 5.420 * 73.90 [08:10:53]line = 400.54 [08:10:53]line НДС 12% НСП 1% [08:10:53]line > о реализуемом товаре [08:10:53]line ОКРУГЛЕНИЕ: -0.54 [08:10:53]line ИТОГО: 400.00 [08:10:53]line Внесено: 400.00 [08:10:53]line СДАЧА: 0.00 [08:10:53]line НСП 1% : 3.54 [08:10:53]line НДС 12% : 42.53 [08:10:53]line Наличными: 400.00 [08:10:53]line Безнал.: 0.00 [08:10:53]line Место: АЗС № 62 "Партнер Нефть" [08:10:53]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [08:10:53]line СНО: Общий режим [08:10:53]line Чек 10 03.06.2024 08:10 [08:10:53]line Смена: 324 ФФД: 1.0 [08:10:53]line ЗНМ: 0300000181 [08:10:53]line РНМ: 0000000000098096 [08:10:53]line Версия ККМ: 001 [08:10:53]line ФМ: 0000000000965400 [08:10:53]line ФД: 68264 [08:10:53]line ФПД: 16097251587387 [08:10:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T081056&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68264&fm=16097251587387&tin=02508201610067®Number=0000000000098096&sum=40000 [08:10:54]OFD Sender: Processing packet 68264 [packets to send 26, broken 25] [08:10:54]ProducePacketName [08:10:54]name=ofd_packets/00068264 [08:10:54]OFD Sender: To server: pG, [08:10:54]CommunicateWithHost lk.salyk.kg:30040 [08:10:54]ConnectInit lk.salyk.kg [08:10:54]written 0, free lines is 4095 [08:10:54]Connected sock=10 [08:10:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 DC 06 07 01 BB B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 2C 15 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 76 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 9D 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 0A 00 00 00 F4 03 04 00 90 7A 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A8 0A 01 00 35 04 06 00 0E A3 EE F6 75 3B E1 E8 10 69 BA F6 26 58 [08:10:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 B3 6A 47 00 31 D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A8 0A 01 00 F4 03 04 00 8D 21 5D 66 B6 04 01 00 00 46 6A 29 2A 81 50 1A 76 [08:10:54]CommunicateWithHost err = 0 [08:10:54]CheckOFDResponse [08:10:54]1017 (14) - 77093643461234 [08:10:54]1041 (16) - 0000000000965400 [08:10:54]1040 (4) - 68264 [08:10:54]1012 (4) - 03.06.2024 01:51 [08:10:54]1206 (1) - 0 [08:10:54]OFD Sender: Remove packet 68264 [08:10:54]ProducePacketName [08:10:54]name=ofd_packets/00068264 [08:10:54]NVStorageDeleteData [08:10:54]Write to MH i2c: 01 00 00 42 1E 60 [08:10:54]Write i2c OK [08:10:54]MH_I2C_Read... [08:10:54]Read from MH i2c: 01 [08:10:54]MH_I2C_Read... [08:10:54]Read from MH i2c: 01 07 00 [08:10:54]MH_I2C_Read... [08:10:54]Read from MH i2c: 01 07 00 42 1E 00 00 00 00 00 D8 0C 4B [08:10:54]RasterBufferAndPrint [08:10:54]line [08:10:54]line [08:10:54]line [08:10:54]line [08:10:54]line [08:10:54]written 0, free lines is 3295 [08:10:54]MH_Cut [08:10:54]Write to MH i2c: D1 01 00 49 1E 01 39 [08:10:54]Write i2c OK [08:10:54]MH_I2C_Read... [08:10:54]Read from MH i2c: D1 [08:10:54]MH_I2C_Read... [08:10:54]Read from MH i2c: D1 01 00 [08:10:54]MH_I2C_Read... [08:10:54]Read from MH i2c: D1 01 00 49 1E 00 38 [08:10:54]Write to MH i2c: 01 00 00 4A 1E 68 [08:10:54]Write i2c OK [08:10:54]MH_I2C_Read... [08:10:55]OFD Sender: No OFD packet to send [08:10:55]*** Cut start [08:10:55]*** Partial cut [08:10:55]*** CUTSNS_PIN = 1 [08:10:55]*** CUTSNS_PIN = 0 [08:10:55]*** Brake cut motor [08:10:56]Read from MH i2c: 01 [08:10:56]MH_I2C_Read... [08:10:56]*** Stop cut motor [08:10:56]*** Cut end [08:10:56]Read from MH i2c: 01 07 00 [08:10:56]MH_I2C_Read... [08:10:56]Read from MH i2c: 01 07 00 4A 1E 00 00 00 00 00 FF 0F 7D [08:10:56]process_action close_receipt done [08:10:56]requested_data is exist [08:10:56]produce_requested_data [08:10:56]requested_item fm.sn is exist - process it [08:10:56]wFMCommunicate request_size=4 [08:10:56]MH_SAM_APDU [08:10:56]CAPDU: 80 11 00 00 [08:10:56]Write to MH i2c: E2 08 00 4B 1E 80 11 00 00 00 00 00 00 E3 [08:10:56]Write i2c OK [08:10:56]MH_I2C_Read... [08:10:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:10:56]Read from MH i2c: E2 [08:10:56]MH_I2C_Read... [08:10:56]Read from MH i2c: E2 17 00 [08:10:56]MH_I2C_Read... [08:10:56]Read from MH i2c: E2 17 00 4B 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 2E [08:10:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [08:10:56]wFMCommunicate OK [08:10:56]requested_item fd.num is exist - process it [08:10:56]SAM_PROTO_GetFieldsCounters [08:10:56]wFMCommunicate request_size=4 [08:10:56]MH_SAM_APDU [08:10:56]CAPDU: 80 13 00 00 [08:10:56]Write to MH i2c: E2 08 00 4C 1E 80 13 00 00 00 00 00 00 E6 [08:10:56]Write i2c OK [08:10:56]MH_I2C_Read... [08:10:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:10:56]Read from MH i2c: E2 [08:10:56]MH_I2C_Read... [08:10:56]Read from MH i2c: E2 62 00 [08:10:56]MH_I2C_Read... [08:10:56]Read from MH i2c: E2 62 00 4C 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 A8 0A 01 00 0E 04 04 00 44 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 1C [08:10:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 A8 0A 01 00 0E 04 04 00 44 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 [08:10:56]wFMCommunicate OK [08:10:56]SAM_PROTO_GetFieldsCounters done [08:10:56]requested_item shift.num is exist - process it [08:10:56]requested_item shift.opened is exist - process it [08:10:56]req_shift_opened [08:10:56]FM_GetShiftState [08:10:56]SAM_PROTO_GetShiftState [08:10:56]wFMCommunicate request_size=4 [08:10:56]MH_SAM_APDU [08:10:56]CAPDU: 80 13 01 00 [08:10:56]Write to MH i2c: E2 08 00 4D 1E 80 13 01 00 00 00 00 00 E8 [08:10:56]Write i2c OK [08:10:56]MH_I2C_Read... [08:10:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:10:56]Read from MH i2c: E2 [08:10:56]MH_I2C_Read... [08:10:56]Read from MH i2c: E2 0E 00 [08:10:56]MH_I2C_Read... [08:10:56]Read from MH i2c: E2 0E 00 4D 1E 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 C3 [08:10:56]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [08:10:56]wFMCommunicate OK [08:10:56]SAM_PROTO_GetShiftState done [08:10:56]FM_GetShiftState done [08:10:56]req_shift_opened done [08:10:56]requested_item shift.open_date is exist - process it [08:10:56]req_shift_open_date [08:10:56]req_shift_open_date done [08:10:56]produce_requested_data done [08:10:56]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68264,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [08:10:56]process_action_free close_receipt [08:10:56]json_value_free [08:10:56]json_value_free done [08:10:56]process_json_proto returns [08:10:56]Send response to host [08:10:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68264,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [08:10:56]free response buf [08:10:56]execute_script done [08:10:56]execute_script returns [08:10:56]free content buf [08:10:56]Sock 9.Close socket [08:10:56]Sock 9.Thread stoped [08:11:00]OFD Sender: No OFD packet to send [08:11:05]OFD Sender: No OFD packet to send [08:11:10]OFD Sender: No OFD packet to send [08:11:15]OFD Sender: No OFD packet to send [08:11:20]OFD Sender: No OFD packet to send [08:11:25]OFD Sender: No OFD packet to send [08:11:30]OFD Sender: No OFD packet to send [08:11:35]OFD Sender: No OFD packet to send [08:11:40]OFD Sender: No OFD packet to send [08:11:45]OFD Sender: No OFD packet to send [08:11:50]OFD Sender: No OFD packet to send [08:11:55]OFD Sender: No OFD packet to send [08:12:00]OFD Sender: No OFD packet to send [08:12:05]OFD Sender: No OFD packet to send [08:12:10]OFD Sender: No OFD packet to send [08:12:15]OFD Sender: No OFD packet to send [08:12:20]OFD Sender: No OFD packet to send [08:12:20]accept exits with 7 [08:12:20]New connection [08:12:20]New thread 3066543460 created [08:12:20]Thread 3066686820 joined [08:12:20]Waiting for new connection... [08:12:20] Sock 7.Parse request [08:12:20]Sock 7.Check first char [08:12:20]Sock 7.First char is OK [08:12:20]request: POST /json_proto HTTP/1.0 [08:12:20]Method: POST [08:12:20]URL: /json_proto [08:12:20]Method is POST - this is cgi request [08:12:20]url: /json_proto [08:12:20]query_string will be loaded in cgi processing [08:12:20]execute_cgi json_proto POST (null) [08:12:20]execute_cgi path=json_proto method=POST [08:12:20]POST find Content-Length [08:12:20]Host: 172.17.36.132:8080 [08:12:20]Content-Length: 843 [08:12:20]Content-Type: application/json [08:12:20] [08:12:20]POST finish read [08:12:20]Found Content-Length = 843 [08:12:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706335", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:12:20]execute_script... [08:12:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706335", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:12:20]POST & json_proto [08:12:20]process_json_proto [08:12:20]json parsed OK: [08:12:20]protocol is kg_v1.0 [08:12:20]action value=close_receipt [08:12:20]process_action close_receipt [08:12:20]cmd_close_receipt [08:12:20]MH_GetDate [08:12:20]Write to MH i2c: F0 00 00 4E 1E 5B [08:12:20]Write i2c OK [08:12:20]MH_I2C_Read... [08:12:20]Read from MH i2c: F0 [08:12:20]MH_I2C_Read... [08:12:20]Read from MH i2c: F0 09 00 [08:12:20]MH_I2C_Read... [08:12:20]Read from MH i2c: F0 09 00 4E 1E 00 E8 7A 5D 66 B2 22 B0 64 71 [08:12:20]GetLastDocTimeStamp 1717402256 [08:12:20]current date 1717402344 [08:12:20]FM_GetShiftState [08:12:20]SAM_PROTO_GetShiftState [08:12:20]wFMCommunicate request_size=4 [08:12:20]MH_SAM_APDU [08:12:20]CAPDU: 80 13 01 00 [08:12:20]Write to MH i2c: E2 08 00 4F 1E 80 13 01 00 00 00 00 00 EA [08:12:20]Write i2c OK [08:12:20]MH_I2C_Read... [08:12:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:12:20]Read from MH i2c: E2 [08:12:20]MH_I2C_Read... [08:12:20]Read from MH i2c: E2 0E 00 [08:12:20]MH_I2C_Read... [08:12:20]Read from MH i2c: E2 0E 00 4F 1E 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 C5 [08:12:20]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [08:12:20]wFMCommunicate OK [08:12:20]SAM_PROTO_GetShiftState done [08:12:20]FM_GetShiftState done [08:12:20]opened in 1717378033 [08:12:20]opened+sec_in_day 1717464433 [08:12:20]quantity*price = 100015 [08:12:20]sum+1 = 100017 [08:12:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 11 03.06.2024 08:12 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68265 ФПД: 128923788244373 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T081224&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68265&fm=128923788244373&tin=02508201610067®Number=0000000000098096&sum=100016 [08:12:21]StoreToDocumentArchive [08:12:21]shift 324 fd 68265 [08:12:21]save to /storage/0324/doc_00068265 [08:12:21]save last doc name /storage/0324/doc_00068265 to /storage/kkm_last_doc_name [08:12:21]save OK [08:12:21]Clear old archive folders... [08:12:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:12:21]tlvbuf is B6E67180 [08:12:21]SAM_PROTO_ClearQueue [08:12:21]wFMCommunicate request_size=4 [08:12:21]MH_SAM_APDU [08:12:21]CAPDU: 80 09 00 00 [08:12:21]Write to MH i2c: E2 08 00 5C 1E 80 09 00 00 00 00 00 00 EC [08:12:21]Write i2c OK [08:12:21]MH_I2C_Read... [08:12:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:12:21]Read from MH i2c: E2 [08:12:21]MH_I2C_Read... [08:12:21]Read from MH i2c: E2 03 00 [08:12:21]MH_I2C_Read... [08:12:21]Read from MH i2c: E2 03 00 5C 1E 00 90 00 EE [08:12:21]RAPDU: 90 00 [08:12:21]wFMCommunicate OK [08:12:21]SAM_PROTO_ClearQueue done [08:12:21]KKMCreateOFDPacket [08:12:21]OFDProtocolAddRootSTLVToBuf [08:12:21]FM_MakeSignedData [08:12:21]FM_MakeSignedData [08:12:21]SAM_PROTO_SignData [08:12:21]wFMCommunicate request_size=4 [08:12:21]MH_SAM_APDU [08:12:21]CAPDU: 80 0D 01 02 [08:12:21]Write to MH i2c: E2 08 00 5D 1E 80 0D 01 02 00 00 00 00 F4 [08:12:21]Write i2c OK [08:12:21]MH_I2C_Read... [08:12:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:12:21]Read from MH i2c: E2 [08:12:21]MH_I2C_Read... [08:12:21]Read from MH i2c: E2 03 00 [08:12:21]MH_I2C_Read... [08:12:21]Read from MH i2c: E2 03 00 5D 1E 00 90 00 EF [08:12:21]RAPDU: 90 00 [08:12:21]wFMCommunicate OK [08:12:21]wFMCommunicate request_size=255 [08:12:21]MH_SAM_APDU [08:12: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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 E8 7A 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A9 0A 01 00 35 04 06 00 75 [08:12:21]Write to MH i2c: E2 02 01 5E 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 E8 7A 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A9 0A 01 00 35 04 06 00 75 00 00 39 [08:12:21]Write i2c OK [08:12:21]MH_I2C_Read... [08:12:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:12:22]Read from MH i2c: E2 [08:12:22]MH_I2C_Read... [08:12:22]Read from MH i2c: E2 03 00 [08:12:22]MH_I2C_Read... [08:12:22]Read from MH i2c: E2 03 00 5E 1E 00 90 00 F0 [08:12:22]RAPDU: 90 00 [08:12:22]wFMCommunicate OK [08:12:22]wFMCommunicate request_size=10 [08:12:22]MH_SAM_APDU [08:12:22]CAPDU: 80 0D 02 02 05 41 68 99 F5 95 [08:12:22]Write to MH i2c: E2 0D 00 5F 1E 80 0D 02 02 05 00 41 68 99 F5 95 00 00 CD [08:12:22]Write i2c OK [08:12:22]MH_I2C_Read... [08:12:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:12:22]Read from MH i2c: E2 [08:12:22]MH_I2C_Read... [08:12:22]Read from MH i2c: E2 03 00 [08:12:22]MH_I2C_Read... [08:12:22]Read from MH i2c: E2 03 00 5F 1E 00 90 00 F1 [08:12:22]RAPDU: 90 00 [08:12:22]wFMCommunicate OK [08:12:22]wFMCommunicate request_size=4 [08:12:22]MH_SAM_APDU [08:12:22]CAPDU: 80 0D 03 02 [08:12:22]Write to MH i2c: E2 08 00 60 1E 80 0D 03 02 00 00 00 00 F9 [08:12:22]Write i2c OK [08:12:22]MH_I2C_Read... [08:12:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:12:22]Read from MH i2c: E2 [08:12:22]MH_I2C_Read... [08:12:22]Read from MH i2c: E2 0B 00 [08:12:22]MH_I2C_Read... [08:12:22]Read from MH i2c: E2 0B 00 60 1E 00 86 7D DE 62 CA 3C E2 78 90 00 9D [08:12:22]RAPDU: 86 7D DE 62 CA 3C E2 78 90 00 [08:12:22]wFMCommunicate OK [08:12:22]SAM_PROTO_SignData done [08:12:22]FM_MakeSignedData done [08:12:22]CreateOFDProtocolMessage [08:12:22]wFMCommunicate request_size=4 [08:12:22]MH_SAM_APDU [08:12:22]CAPDU: 80 11 00 00 [08:12:22]Write to MH i2c: E2 08 00 61 1E 80 11 00 00 00 00 00 00 F9 [08:12:22]Write i2c OK [08:12:22]MH_I2C_Read... [08:12:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:12:22]Read from MH i2c: E2 [08:12:22]MH_I2C_Read... [08:12:22]Read from MH i2c: E2 17 00 [08:12:22]MH_I2C_Read... [08:12:22]Read from MH i2c: E2 17 00 61 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 44 [08:12:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [08:12:22]wFMCommunicate OK [08:12:22]CreateOFDProtocolMessage done [08:12:22]OFDSenderStorePacket 68265 [08:12:22]StoreOFDPacket docnum=68265 [08:12:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 CE 82 07 01 3C 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 E8 7A 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A9 0A 01 00 35 04 06 00 75 41 68 99 F5 95 86 7D DE 62 CA 3C E2 78 [08:12:22]CheckFolder [08:12:22]dirname=/storage/ofd_packets [08:12:22]CheckFolder done [08:12:22]ProducePacketName [08:12:22]name=ofd_packets/00068265 [08:12:22]NVStorageSaveData ofd_packets/00068265 [08:12:22]File name is /storage/ofd_packets/00068265 [08:12:22]Write 301 bytes [08:12:22]NVStorageSaveData done [08:12:22]OFDSenderStorePacket done [08:12:22]KKMCreateOFDPacket done [08:12:22]NVStorageSaveData kkm_last_timestamp [08:12:22]File name is /storage/kkm_last_timestamp [08:12:22]Write 4 bytes [08:12:22]NVStorageSaveData done [08:12:22]ExternCall_PrintAddStr [08:12:22]wPrintStart [08:12:22]Write to MH i2c: 01 00 00 62 1E 80 [08:12:22]Write i2c OK [08:12:22]MH_I2C_Read... [08:12:22]Read from MH i2c: 01 [08:12:22]MH_I2C_Read... [08:12:22]Read from MH i2c: 01 07 00 [08:12:22]MH_I2C_Read... [08:12:22]Read from MH i2c: 01 07 00 62 1E 00 00 00 00 00 FF 0F 95 [08:12:22]RasterBufferAndPrint [08:12:22]line Счет N : (1)706335 [08:12:22]line ИНН: 02508201610067 [08:12:22]line Контрольно-Кассовый Чек [08:12:22]line ПРОДАЖА [08:12:22]line ТРК (МРК, ГНК) : 53 [08:12:22]line Товар: 2710124130 [08:12:22]line Аи-92-К-4 [08:12:22]line 14.950 * 66.90 [08:12:22]line = 1000.16 [08:12:22]line НДС 12% НСП 1% [08:12:22]line > о реализуемом товаре [08:12:22]line ИТОГО: 1000.16 [08:12:22]line НСП 1% : 8.85 [08:12:22]line НДС 12% : 106.21 [08:12:22]line Наличными: 0.00 [08:12:22]line Безнал.: 1000.16 [08:12:22]line Место: АЗС № 62 "Партнер Нефть" [08:12:22]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [08:12:22]line СНО: Общий режим [08:12:22]line Чек 11 03.06.2024 08:12 [08:12:22]line Смена: 324 ФФД: 1.0 [08:12:22]line ЗНМ: 0300000181 [08:12:22]line РНМ: 0000000000098096 [08:12:22]line Версия ККМ: 001 [08:12:22]line Платежная система: АКБ Кыргызстан [08:12:22]line ФМ: 0000000000965400 [08:12:22]line ФД: 68265 [08:12:22]line ФПД: 128923788244373 [08:12:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T081224&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68265&fm=128923788244373&tin=02508201610067®Number=0000000000098096&sum=100016 [08:12:22]OFD Sender: Processing packet 68265 [packets to send 26, broken 25] [08:12:22]ProducePacketName [08:12:22]name=ofd_packets/00068265 [08:12:22]OFD Sender: To server: pG, [08:12:22]CommunicateWithHost lk.salyk.kg:30040 [08:12:22]ConnectInit lk.salyk.kg [08:12:22]written 0, free lines is 4095 [08:12:22]Connected sock=10 [08:12:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 CE 82 07 01 3C 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 E8 7A 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A9 0A 01 00 35 04 06 00 75 41 68 99 F5 95 86 7D DE 62 CA 3C E2 78 [08:12:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 D1 25 47 00 51 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 A9 0A 01 00 F4 03 04 00 E5 21 5D 66 B6 04 01 00 00 B7 BF 1A F0 27 6F 29 B2 [08:12:22]CommunicateWithHost err = 0 [08:12:22]CheckOFDResponse [08:12:22]1017 (14) - 77093643461234 [08:12:22]1041 (16) - 0000000000965400 [08:12:22]1040 (4) - 68265 [08:12:22]1012 (4) - 03.06.2024 01:52 [08:12:22]1206 (1) - 0 [08:12:22]OFD Sender: Remove packet 68265 [08:12:22]ProducePacketName [08:12:22]name=ofd_packets/00068265 [08:12:22]NVStorageDeleteData [08:12:23]Write to MH i2c: 01 00 00 8C 1E AA [08:12:23]Write i2c OK [08:12:23]MH_I2C_Read... [08:12:23]Read from MH i2c: 01 [08:12:23]MH_I2C_Read... [08:12:23]Read from MH i2c: 01 07 00 [08:12:23]MH_I2C_Read... [08:12:23]Read from MH i2c: 01 07 00 8C 1E 00 00 00 00 00 01 0D BF [08:12:23]RasterBufferAndPrint [08:12:23]line [08:12:23]line [08:12:23]line [08:12:23]line [08:12:23]line [08:12:23]written 0, free lines is 3335 [08:12:23]MH_Cut [08:12:23]Write to MH i2c: D1 01 00 93 1E 01 83 [08:12:23]Write i2c OK [08:12:23]MH_I2C_Read... [08:12:23]Read from MH i2c: D1 [08:12:23]MH_I2C_Read... [08:12:23]Read from MH i2c: D1 01 00 [08:12:23]MH_I2C_Read... [08:12:23]Read from MH i2c: D1 01 00 93 1E 00 82 [08:12:23]Write to MH i2c: 01 00 00 94 1E B2 [08:12:23]Write i2c OK [08:12:23]MH_I2C_Read... [08:12:23]OFD Sender: No OFD packet to send [08:12:23]*** Cut start [08:12:23]*** Partial cut [08:12:23]*** CUTSNS_PIN = 1 [08:12:23]*** CUTSNS_PIN = 0 [08:12:24]*** Brake cut motor [08:12:24]Read from MH i2c: 01 [08:12:24]MH_I2C_Read... [08:12:24]*** Stop cut motor [08:12:24]*** Cut end [08:12:24]Read from MH i2c: 01 07 00 [08:12:24]MH_I2C_Read... [08:12:24]Read from MH i2c: 01 07 00 94 1E 00 00 00 00 00 FF 0F C7 [08:12:24]process_action close_receipt done [08:12:24]requested_data is exist [08:12:24]produce_requested_data [08:12:24]requested_item fm.sn is exist - process it [08:12:24]wFMCommunicate request_size=4 [08:12:24]MH_SAM_APDU [08:12:24]CAPDU: 80 11 00 00 [08:12:24]Write to MH i2c: E2 08 00 95 1E 80 11 00 00 00 00 00 00 2D [08:12:24]Write i2c OK [08:12:24]MH_I2C_Read... [08:12:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:12:24]Read from MH i2c: E2 [08:12:24]MH_I2C_Read... [08:12:24]Read from MH i2c: E2 17 00 [08:12:24]MH_I2C_Read... [08:12:24]Read from MH i2c: E2 17 00 95 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 78 [08:12:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [08:12:24]wFMCommunicate OK [08:12:24]requested_item fd.num is exist - process it [08:12:24]SAM_PROTO_GetFieldsCounters [08:12:24]wFMCommunicate request_size=4 [08:12:24]MH_SAM_APDU [08:12:24]CAPDU: 80 13 00 00 [08:12:24]Write to MH i2c: E2 08 00 96 1E 80 13 00 00 00 00 00 00 30 [08:12:24]Write i2c OK [08:12:24]MH_I2C_Read... [08:12:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:12:24]Read from MH i2c: E2 [08:12:24]MH_I2C_Read... [08:12:24]Read from MH i2c: E2 62 00 [08:12:24]MH_I2C_Read... [08:12:24]Read from MH i2c: E2 62 00 96 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 A9 0A 01 00 0E 04 04 00 44 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 6A [08:12:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 A9 0A 01 00 0E 04 04 00 44 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 [08:12:24]wFMCommunicate OK [08:12:24]SAM_PROTO_GetFieldsCounters done [08:12:24]requested_item shift.num is exist - process it [08:12:24]requested_item shift.opened is exist - process it [08:12:24]req_shift_opened [08:12:24]FM_GetShiftState [08:12:24]SAM_PROTO_GetShiftState [08:12:24]wFMCommunicate request_size=4 [08:12:24]MH_SAM_APDU [08:12:24]CAPDU: 80 13 01 00 [08:12:24]Write to MH i2c: E2 08 00 97 1E 80 13 01 00 00 00 00 00 32 [08:12:24]Write i2c OK [08:12:24]MH_I2C_Read... [08:12:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:12:24]Read from MH i2c: E2 [08:12:24]MH_I2C_Read... [08:12:24]Read from MH i2c: E2 0E 00 [08:12:24]MH_I2C_Read... [08:12:24]Read from MH i2c: E2 0E 00 97 1E 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 0D [08:12:24]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [08:12:24]wFMCommunicate OK [08:12:24]SAM_PROTO_GetShiftState done [08:12:24]FM_GetShiftState done [08:12:24]req_shift_opened done [08:12:24]requested_item shift.open_date is exist - process it [08:12:24]req_shift_open_date [08:12:24]req_shift_open_date done [08:12:24]produce_requested_data done [08:12:24]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68265,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [08:12:24]process_action_free close_receipt [08:12:24]json_value_free [08:12:24]json_value_free done [08:12:24]process_json_proto returns [08:12:24]Send response to host [08:12:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68265,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [08:12:24]free response buf [08:12:24]execute_script done [08:12:24]execute_script returns [08:12:24]free content buf [08:12:24]Sock 7.Close socket [08:12:24]Sock 7.Thread stoped [08:12:28]OFD Sender: No OFD packet to send [08:12:33]OFD Sender: No OFD packet to send [08:12:38]OFD Sender: No OFD packet to send [08:12:43]OFD Sender: No OFD packet to send [08:12:48]OFD Sender: No OFD packet to send [08:12:53]OFD Sender: No OFD packet to send [08:12:58]OFD Sender: No OFD packet to send [08:13:03]OFD Sender: No OFD packet to send [08:13:08]OFD Sender: No OFD packet to send [08:13:13]OFD Sender: No OFD packet to send [08:13:18]OFD Sender: No OFD packet to send [08:13:23]OFD Sender: No OFD packet to send [08:13:27]accept exits with 9 [08:13:27]New connection [08:13:27]New thread 3066686820 created [08:13:27]Thread 3066543460 joined [08:13:27]Waiting for new connection... [08:13:27] Sock 9.Parse request [08:13:27]Sock 9.Check first char [08:13:27]Sock 9.First char is OK [08:13:27]request: POST /json_proto HTTP/1.0 [08:13:27]Method: POST [08:13:27]URL: /json_proto [08:13:27]Method is POST - this is cgi request [08:13:27]url: /json_proto [08:13:27]query_string will be loaded in cgi processing [08:13:27]execute_cgi json_proto POST (null) [08:13:27]execute_cgi path=json_proto method=POST [08:13:27]POST find Content-Length [08:13:27]Host: 172.17.36.132:8080 [08:13:27]Content-Length: 682 [08:13:27]Content-Type: application/json [08:13:27] [08:13:27]POST finish read [08:13:27]Found Content-Length = 682 [08:13:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706336", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:13:27]execute_script... [08:13:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706336", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:13:27]POST & json_proto [08:13:27]process_json_proto [08:13:27]json parsed OK: [08:13:27]protocol is kg_v1.0 [08:13:27]action value=close_receipt [08:13:27]process_action close_receipt [08:13:27]cmd_close_receipt [08:13:27]MH_GetDate [08:13:27]Write to MH i2c: F0 00 00 98 1E A5 [08:13:27]Write i2c OK [08:13:27]MH_I2C_Read... [08:13:27]Read from MH i2c: F0 [08:13:27]MH_I2C_Read... [08:13:27]Read from MH i2c: F0 09 00 [08:13:27]MH_I2C_Read... [08:13:27]Read from MH i2c: F0 09 00 98 1E 00 2B 7B 5D 66 B2 22 B0 64 FF [08:13:27]GetLastDocTimeStamp 1717402344 [08:13:27]current date 1717402411 [08:13:27]FM_GetShiftState [08:13:27]SAM_PROTO_GetShiftState [08:13:27]wFMCommunicate request_size=4 [08:13:27]MH_SAM_APDU [08:13:27]CAPDU: 80 13 01 00 [08:13:27]Write to MH i2c: E2 08 00 99 1E 80 13 01 00 00 00 00 00 34 [08:13:27]Write i2c OK [08:13:27]MH_I2C_Read... [08:13:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:13:27]Read from MH i2c: E2 [08:13:27]MH_I2C_Read... [08:13:27]Read from MH i2c: E2 0E 00 [08:13:27]MH_I2C_Read... [08:13:27]Read from MH i2c: E2 0E 00 99 1E 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 0F [08:13:27]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [08:13:27]wFMCommunicate OK [08:13:27]SAM_PROTO_GetShiftState done [08:13:27]FM_GetShiftState done [08:13:27]opened in 1717378033 [08:13:27]opened+sec_in_day 1717464433 [08:13:27]quantity*price = 100015 [08:13:27]sum+1 = 100017 [08:13:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 12 03.06.2024 08:13 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68266 ФПД: 199399071049446 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T081331&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68266&fm=199399071049446&tin=02508201610067®Number=0000000000098096&sum=100000 [08:13:28]StoreToDocumentArchive [08:13:28]shift 324 fd 68266 [08:13:28]save to /storage/0324/doc_00068266 [08:13:28]save last doc name /storage/0324/doc_00068266 to /storage/kkm_last_doc_name [08:13:28]save OK [08:13:28]Clear old archive folders... [08:13:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:13:28]tlvbuf is 005BC100 [08:13:28]SAM_PROTO_ClearQueue [08:13:28]wFMCommunicate request_size=4 [08:13:28]MH_SAM_APDU [08:13:28]CAPDU: 80 09 00 00 [08:13:28]Write to MH i2c: E2 08 00 A6 1E 80 09 00 00 00 00 00 00 36 [08:13:28]Write i2c OK [08:13:28]MH_I2C_Read... [08:13:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:13:28]Read from MH i2c: E2 [08:13:28]MH_I2C_Read... [08:13:28]Read from MH i2c: E2 03 00 [08:13:28]MH_I2C_Read... [08:13:28]Read from MH i2c: E2 03 00 A6 1E 00 90 00 38 [08:13:28]RAPDU: 90 00 [08:13:28]wFMCommunicate OK [08:13:28]SAM_PROTO_ClearQueue done [08:13:28]KKMCreateOFDPacket [08:13:28]OFDProtocolAddRootSTLVToBuf [08:13:28]FM_MakeSignedData [08:13:28]FM_MakeSignedData [08:13:28]SAM_PROTO_SignData [08:13:28]wFMCommunicate request_size=4 [08:13:28]MH_SAM_APDU [08:13:28]CAPDU: 80 0D 01 02 [08:13:28]Write to MH i2c: E2 08 00 A7 1E 80 0D 01 02 00 00 00 00 3E [08:13:28]Write i2c OK [08:13:28]MH_I2C_Read... [08:13:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:13:28]Read from MH i2c: E2 [08:13:28]MH_I2C_Read... [08:13:28]Read from MH i2c: E2 03 00 [08:13:28]MH_I2C_Read... [08:13:28]Read from MH i2c: E2 03 00 A7 1E 00 90 00 39 [08:13:28]RAPDU: 90 00 [08:13:28]wFMCommunicate OK [08:13:28]wFMCommunicate request_size=255 [08:13:28]MH_SAM_APDU [08:13:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 2B 7B 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 AA 0A 01 00 35 04 06 00 B5 [08:13:28]Write to MH i2c: E2 02 01 A8 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 2B 7B 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 AA 0A 01 00 35 04 06 00 B5 00 00 E9 [08:13:28]Write i2c OK [08:13:28]MH_I2C_Read... [08:13:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:13:28]Read from MH i2c: E2 [08:13:28]MH_I2C_Read... [08:13:28]Read from MH i2c: E2 03 00 [08:13:28]MH_I2C_Read... [08:13:28]Read from MH i2c: E2 03 00 A8 1E 00 90 00 3A [08:13:28]RAPDU: 90 00 [08:13:28]wFMCommunicate OK [08:13:28]wFMCommunicate request_size=10 [08:13:28]MH_SAM_APDU [08:13:28]CAPDU: 80 0D 02 02 05 5A 36 CC 66 E6 [08:13:28]Write to MH i2c: E2 0D 00 A9 1E 80 0D 02 02 05 00 5A 36 CC 66 E6 00 00 F3 [08:13:28]Write i2c OK [08:13:28]MH_I2C_Read... [08:13:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:13:28]Read from MH i2c: E2 [08:13:28]MH_I2C_Read... [08:13:28]Read from MH i2c: E2 03 00 [08:13:28]MH_I2C_Read... [08:13:28]Read from MH i2c: E2 03 00 A9 1E 00 90 00 3B [08:13:28]RAPDU: 90 00 [08:13:28]wFMCommunicate OK [08:13:28]wFMCommunicate request_size=4 [08:13:28]MH_SAM_APDU [08:13:28]CAPDU: 80 0D 03 02 [08:13:28]Write to MH i2c: E2 08 00 AA 1E 80 0D 03 02 00 00 00 00 43 [08:13:28]Write i2c OK [08:13:28]MH_I2C_Read... [08:13:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:13:29]Read from MH i2c: E2 [08:13:29]MH_I2C_Read... [08:13:29]Read from MH i2c: E2 0B 00 [08:13:29]MH_I2C_Read... [08:13:29]Read from MH i2c: E2 0B 00 AA 1E 00 4C FF 6C 4E C7 5F 69 8E 90 00 66 [08:13:29]RAPDU: 4C FF 6C 4E C7 5F 69 8E 90 00 [08:13:29]wFMCommunicate OK [08:13:29]SAM_PROTO_SignData done [08:13:29]FM_MakeSignedData done [08:13:29]CreateOFDProtocolMessage [08:13:29]wFMCommunicate request_size=4 [08:13:29]MH_SAM_APDU [08:13:29]CAPDU: 80 11 00 00 [08:13:29]Write to MH i2c: E2 08 00 AB 1E 80 11 00 00 00 00 00 00 43 [08:13:29]Write i2c OK [08:13:29]MH_I2C_Read... [08:13:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:13:29]Read from MH i2c: E2 [08:13:29]MH_I2C_Read... [08:13:29]Read from MH i2c: E2 17 00 [08:13:29]MH_I2C_Read... [08:13:29]Read from MH i2c: E2 17 00 AB 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 8E [08:13:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [08:13:29]wFMCommunicate OK [08:13:29]CreateOFDProtocolMessage done [08:13:29]OFDSenderStorePacket 68266 [08:13:29]StoreOFDPacket docnum=68266 [08:13:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 F0 FD 07 01 99 D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 2B 7B 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 AA 0A 01 00 35 04 06 00 B5 5A 36 CC 66 E6 4C FF 6C 4E C7 5F 69 8E [08:13:29]CheckFolder [08:13:29]dirname=/storage/ofd_packets [08:13:29]CheckFolder done [08:13:29]ProducePacketName [08:13:29]name=ofd_packets/00068266 [08:13:29]NVStorageSaveData ofd_packets/00068266 [08:13:29]File name is /storage/ofd_packets/00068266 [08:13:29]Write 301 bytes [08:13:29]NVStorageSaveData done [08:13:29]OFDSenderStorePacket done [08:13:29]KKMCreateOFDPacket done [08:13:29]NVStorageSaveData kkm_last_timestamp [08:13:29]File name is /storage/kkm_last_timestamp [08:13:29]Write 4 bytes [08:13:29]NVStorageSaveData done [08:13:29]ExternCall_PrintAddStr [08:13:29]wPrintStart [08:13:29]Write to MH i2c: 01 00 00 AC 1E CA [08:13:29]Write i2c OK [08:13:29]MH_I2C_Read... [08:13:29]Read from MH i2c: 01 [08:13:29]MH_I2C_Read... [08:13:29]Read from MH i2c: 01 07 00 [08:13:29]MH_I2C_Read... [08:13:29]Read from MH i2c: 01 07 00 AC 1E 00 00 00 00 00 FF 0F DF [08:13:29]RasterBufferAndPrint [08:13:29]line Счет N : (1)706336 [08:13:29]line ИНН: 02508201610067 [08:13:29]line Контрольно-Кассовый Чек [08:13:29]line ПРОДАЖА [08:13:29]line ТРК (МРК, ГНК) : 63 [08:13:29]line Товар: 2710124130 [08:13:29]line Аи-92-К-4 [08:13:29]line 14.950 * 66.90 [08:13:29]line = 1000.16 [08:13:29]line НДС 12% НСП 1% [08:13:29]line > о реализуемом товаре [08:13:29]line ОКРУГЛЕНИЕ: -0.16 [08:13:29]line ИТОГО: 1000.00 [08:13:29]line Внесено: 1000.00 [08:13:29]line СДАЧА: 0.00 [08:13:29]line НСП 1% : 8.85 [08:13:29]line НДС 12% : 106.21 [08:13:29]line Наличными: 1000.00 [08:13:29]line Безнал.: 0.00 [08:13:29]line Место: АЗС № 62 "Партнер Нефть" [08:13:29]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [08:13:29]line СНО: Общий режим [08:13:29]line Чек 12 03.06.2024 08:13 [08:13:29]line Смена: 324 ФФД: 1.0 [08:13:29]line ЗНМ: 0300000181 [08:13:29]line РНМ: 0000000000098096 [08:13:29]line Версия ККМ: 001 [08:13:29]line ФМ: 0000000000965400 [08:13:29]line ФД: 68266 [08:13:29]line ФПД: 199399071049446 [08:13:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T081331&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68266&fm=199399071049446&tin=02508201610067®Number=0000000000098096&sum=100000 [08:13:29]OFD Sender: Processing packet 68266 [packets to send 26, broken 25] [08:13:29]ProducePacketName [08:13:29]name=ofd_packets/00068266 [08:13:29]OFD Sender: To server: pG, [08:13:29]CommunicateWithHost lk.salyk.kg:30040 [08:13:29]ConnectInit lk.salyk.kg [08:13:29]written 0, free lines is 4095 [08:13:29]Connected sock=10 [08:13:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 F0 FD 07 01 99 D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 2B 7B 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 AA 0A 01 00 35 04 06 00 B5 5A 36 CC 66 E6 4C FF 6C 4E C7 5F 69 8E [08:13:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 10 77 47 00 5A A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 AA 0A 01 00 F4 03 04 00 28 22 5D 66 B6 04 01 00 00 18 E2 DD A9 F4 2E 87 2D [08:13:29]CommunicateWithHost err = 0 [08:13:29]CheckOFDResponse [08:13:29]1017 (14) - 77093643461234 [08:13:29]1041 (16) - 0000000000965400 [08:13:29]1040 (4) - 68266 [08:13:29]1012 (4) - 03.06.2024 01:53 [08:13:29]1206 (1) - 0 [08:13:29]OFD Sender: Remove packet 68266 [08:13:29]ProducePacketName [08:13:29]name=ofd_packets/00068266 [08:13:29]NVStorageDeleteData [08:13:29]Write to MH i2c: 01 00 00 D7 1E F5 [08:13:29]Write i2c OK [08:13:29]MH_I2C_Read... [08:13:29]Read from MH i2c: 01 [08:13:29]MH_I2C_Read... [08:13:29]Read from MH i2c: 01 07 00 [08:13:29]MH_I2C_Read... [08:13:29]Read from MH i2c: 01 07 00 D7 1E 00 00 00 00 00 E4 0C EC [08:13:29]RasterBufferAndPrint [08:13:29]line [08:13:29]line [08:13:29]line [08:13:29]line [08:13:29]line [08:13:29]written 0, free lines is 3306 [08:13:29]MH_Cut [08:13:29]Write to MH i2c: D1 01 00 DE 1E 01 CE [08:13:29]Write i2c OK [08:13:29]MH_I2C_Read... [08:13:29]Read from MH i2c: D1 [08:13:29]MH_I2C_Read... [08:13:29]Read from MH i2c: D1 01 00 [08:13:29]MH_I2C_Read... [08:13:29]Read from MH i2c: D1 01 00 DE 1E 00 CD [08:13:29]Write to MH i2c: 01 00 00 DF 1E FD [08:13:29]Write i2c OK [08:13:29]MH_I2C_Read... [08:13:30]OFD Sender: No OFD packet to send [08:13:30]*** Cut start [08:13:30]*** Partial cut [08:13:30]*** CUTSNS_PIN = 1 [08:13:30]*** CUTSNS_PIN = 0 [08:13:30]*** Brake cut motor [08:13:31]Read from MH i2c: 01 [08:13:31]MH_I2C_Read... [08:13:31]*** Stop cut motor [08:13:31]*** Cut end [08:13:31]Read from MH i2c: 01 07 00 [08:13:31]MH_I2C_Read... [08:13:31]Read from MH i2c: 01 07 00 DF 1E 00 00 00 00 00 FF 0F 12 [08:13:31]process_action close_receipt done [08:13:31]requested_data is exist [08:13:31]produce_requested_data [08:13:31]requested_item fm.sn is exist - process it [08:13:31]wFMCommunicate request_size=4 [08:13:31]MH_SAM_APDU [08:13:31]CAPDU: 80 11 00 00 [08:13:31]Write to MH i2c: E2 08 00 E0 1E 80 11 00 00 00 00 00 00 78 [08:13:31]Write i2c OK [08:13:31]MH_I2C_Read... [08:13:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:13:31]Read from MH i2c: E2 [08:13:31]MH_I2C_Read... [08:13:31]Read from MH i2c: E2 17 00 [08:13:31]MH_I2C_Read... [08:13:31]Read from MH i2c: E2 17 00 E0 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 C3 [08:13:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [08:13:31]wFMCommunicate OK [08:13:31]requested_item fd.num is exist - process it [08:13:31]SAM_PROTO_GetFieldsCounters [08:13:31]wFMCommunicate request_size=4 [08:13:31]MH_SAM_APDU [08:13:31]CAPDU: 80 13 00 00 [08:13:31]Write to MH i2c: E2 08 00 E1 1E 80 13 00 00 00 00 00 00 7B [08:13:31]Write i2c OK [08:13:31]MH_I2C_Read... [08:13:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:13:31]Read from MH i2c: E2 [08:13:31]MH_I2C_Read... [08:13:31]Read from MH i2c: E2 62 00 [08:13:31]MH_I2C_Read... [08:13:31]Read from MH i2c: E2 62 00 E1 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 AA 0A 01 00 0E 04 04 00 44 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 B9 [08:13:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 AA 0A 01 00 0E 04 04 00 44 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 [08:13:31]wFMCommunicate OK [08:13:31]SAM_PROTO_GetFieldsCounters done [08:13:31]requested_item shift.num is exist - process it [08:13:31]requested_item shift.opened is exist - process it [08:13:31]req_shift_opened [08:13:31]FM_GetShiftState [08:13:31]SAM_PROTO_GetShiftState [08:13:31]wFMCommunicate request_size=4 [08:13:31]MH_SAM_APDU [08:13:31]CAPDU: 80 13 01 00 [08:13:31]Write to MH i2c: E2 08 00 E2 1E 80 13 01 00 00 00 00 00 7D [08:13:31]Write i2c OK [08:13:31]MH_I2C_Read... [08:13:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:13:31]Read from MH i2c: E2 [08:13:31]MH_I2C_Read... [08:13:31]Read from MH i2c: E2 0E 00 [08:13:31]MH_I2C_Read... [08:13:31]Read from MH i2c: E2 0E 00 E2 1E 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 58 [08:13:31]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [08:13:31]wFMCommunicate OK [08:13:31]SAM_PROTO_GetShiftState done [08:13:31]FM_GetShiftState done [08:13:31]req_shift_opened done [08:13:31]requested_item shift.open_date is exist - process it [08:13:31]req_shift_open_date [08:13:31]req_shift_open_date done [08:13:31]produce_requested_data done [08:13:31]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68266,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [08:13:31]process_action_free close_receipt [08:13:31]json_value_free [08:13:31]json_value_free done [08:13:31]process_json_proto returns [08:13:31]Send response to host [08:13:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68266,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [08:13:31]free response buf [08:13:31]execute_script done [08:13:31]execute_script returns [08:13:31]free content buf [08:13:31]Sock 9.Close socket [08:13:31]Sock 9.Thread stoped [08:13:35]OFD Sender: No OFD packet to send [08:13:40]OFD Sender: No OFD packet to send [08:13:45]OFD Sender: No OFD packet to send [08:13:50]OFD Sender: No OFD packet to send [08:13:55]OFD Sender: No OFD packet to send [08:14:00]OFD Sender: No OFD packet to send [08:14:05]OFD Sender: No OFD packet to send [08:14:10]OFD Sender: No OFD packet to send [08:14:15]OFD Sender: No OFD packet to send [08:14:20]OFD Sender: No OFD packet to send [08:14:25]OFD Sender: No OFD packet to send [08:14:30]OFD Sender: No OFD packet to send [08:14:35]OFD Sender: No OFD packet to send [08:14:40]OFD Sender: No OFD packet to send [08:14:45]OFD Sender: No OFD packet to send [08:14:50]OFD Sender: No OFD packet to send [08:14:55]OFD Sender: No OFD packet to send [08:15:00]OFD Sender: No OFD packet to send [08:15:05]OFD Sender: No OFD packet to send [08:15:10]OFD Sender: No OFD packet to send [08:15:15]OFD Sender: No OFD packet to send [08:15:20]OFD Sender: No OFD packet to send [08:15:25]OFD Sender: No OFD packet to send [08:15:30]OFD Sender: No OFD packet to send [08:15:32]accept exits with 7 [08:15:32]New connection [08:15:32]New thread 3066543460 created [08:15:32]Thread 3066686820 joined [08:15:32]Waiting for new connection... [08:15:32] Sock 7.Parse request [08:15:32]Sock 7.Check first char [08:15:32]Sock 7.First char is OK [08:15:32]request: POST /json_proto HTTP/1.0 [08:15:32]Method: POST [08:15:32]URL: /json_proto [08:15:32]Method is POST - this is cgi request [08:15:32]url: /json_proto [08:15:32]query_string will be loaded in cgi processing [08:15:32]execute_cgi json_proto POST (null) [08:15:32]execute_cgi path=json_proto method=POST [08:15:32]POST find Content-Length [08:15:32]Host: 172.17.36.132:8080 [08:15:32]Content-Length: 682 [08:15:32]Content-Type: application/json [08:15:32] [08:15:32]POST finish read [08:15:32]Found Content-Length = 682 [08:15:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706337", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:15:32]execute_script... [08:15: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)706337", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:15:32]POST & json_proto [08:15:32]process_json_proto [08:15:32]json parsed OK: [08:15:32]protocol is kg_v1.0 [08:15:32]action value=close_receipt [08:15:32]process_action close_receipt [08:15:32]cmd_close_receipt [08:15:32]MH_GetDate [08:15:32]Write to MH i2c: F0 00 00 E3 1E F0 [08:15:32]Write i2c OK [08:15:32]MH_I2C_Read... [08:15:32]Read from MH i2c: F0 [08:15:32]MH_I2C_Read... [08:15:32]Read from MH i2c: F0 09 00 [08:15:32]MH_I2C_Read... [08:15:32]Read from MH i2c: F0 09 00 E3 1E 00 A8 7B 5D 66 B2 22 B0 64 C7 [08:15:32]GetLastDocTimeStamp 1717402411 [08:15:32]current date 1717402536 [08:15:32]FM_GetShiftState [08:15:32]SAM_PROTO_GetShiftState [08:15:32]wFMCommunicate request_size=4 [08:15:32]MH_SAM_APDU [08:15:32]CAPDU: 80 13 01 00 [08:15:32]Write to MH i2c: E2 08 00 E4 1E 80 13 01 00 00 00 00 00 7F [08:15:32]Write i2c OK [08:15:32]MH_I2C_Read... [08:15:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:15:32]Read from MH i2c: E2 [08:15:32]MH_I2C_Read... [08:15:32]Read from MH i2c: E2 0E 00 [08:15:32]MH_I2C_Read... [08:15:32]Read from MH i2c: E2 0E 00 E4 1E 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 5A [08:15:32]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [08:15:32]wFMCommunicate OK [08:15:32]SAM_PROTO_GetShiftState done [08:15:32]FM_GetShiftState done [08:15:32]opened in 1717378033 [08:15:32]opened+sec_in_day 1717464433 [08:15:32]quantity*price = 200031 [08:15:32]sum+1 = 200032 [08:15:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 13 03.06.2024 08:15 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68267 ФПД: 115014924191090 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T081536&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68267&fm=115014924191090&tin=02508201610067®Number=0000000000098096&sum=200000 [08:15:33]StoreToDocumentArchive [08:15:33]shift 324 fd 68267 [08:15:33]save to /storage/0324/doc_00068267 [08:15:33]save last doc name /storage/0324/doc_00068267 to /storage/kkm_last_doc_name [08:15:33]save OK [08:15:33]Clear old archive folders... [08:15:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:15:33]tlvbuf is 002AC9B0 [08:15:33]SAM_PROTO_ClearQueue [08:15:33]wFMCommunicate request_size=4 [08:15:33]MH_SAM_APDU [08:15:33]CAPDU: 80 09 00 00 [08:15:33]Write to MH i2c: E2 08 00 F1 1E 80 09 00 00 00 00 00 00 81 [08:15:33]Write i2c OK [08:15:33]MH_I2C_Read... [08:15:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:15:33]Read from MH i2c: E2 [08:15:33]MH_I2C_Read... [08:15:33]Read from MH i2c: E2 03 00 [08:15:33]MH_I2C_Read... [08:15:33]Read from MH i2c: E2 03 00 F1 1E 00 90 00 83 [08:15:33]RAPDU: 90 00 [08:15:33]wFMCommunicate OK [08:15:33]SAM_PROTO_ClearQueue done [08:15:33]KKMCreateOFDPacket [08:15:33]OFDProtocolAddRootSTLVToBuf [08:15:33]FM_MakeSignedData [08:15:33]FM_MakeSignedData [08:15:33]SAM_PROTO_SignData [08:15:33]wFMCommunicate request_size=4 [08:15:33]MH_SAM_APDU [08:15:33]CAPDU: 80 0D 01 02 [08:15:33]Write to MH i2c: E2 08 00 F2 1E 80 0D 01 02 00 00 00 00 89 [08:15:33]Write i2c OK [08:15:33]MH_I2C_Read... [08:15:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:15:34]Read from MH i2c: E2 [08:15:34]MH_I2C_Read... [08:15:34]Read from MH i2c: E2 03 00 [08:15:34]MH_I2C_Read... [08:15:34]Read from MH i2c: E2 03 00 F2 1E 00 90 00 84 [08:15:34]RAPDU: 90 00 [08:15:34]wFMCommunicate OK [08:15:34]wFMCommunicate request_size=255 [08:15:34]MH_SAM_APDU [08:15: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 34 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 A8 7B 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 AB 0A 01 00 35 04 06 00 68 [08:15:34]Write to MH i2c: E2 02 01 F3 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 A8 7B 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 AB 0A 01 00 35 04 06 00 68 00 00 AE [08:15:34]Write i2c OK [08:15:34]MH_I2C_Read... [08:15:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:15:34]Read from MH i2c: E2 [08:15:34]MH_I2C_Read... [08:15:34]Read from MH i2c: E2 03 00 [08:15:34]MH_I2C_Read... [08:15:34]Read from MH i2c: E2 03 00 F3 1E 00 90 00 85 [08:15:34]RAPDU: 90 00 [08:15:34]wFMCommunicate OK [08:15:34]wFMCommunicate request_size=10 [08:15:34]MH_SAM_APDU [08:15:34]CAPDU: 80 0D 02 02 05 9A FF B3 45 72 [08:15:34]Write to MH i2c: E2 0D 00 F4 1E 80 0D 02 02 05 00 9A FF B3 45 72 00 00 99 [08:15:34]Write i2c OK [08:15:34]MH_I2C_Read... [08:15:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:15:34]Read from MH i2c: E2 [08:15:34]MH_I2C_Read... [08:15:34]Read from MH i2c: E2 03 00 [08:15:34]MH_I2C_Read... [08:15:34]Read from MH i2c: E2 03 00 F4 1E 00 90 00 86 [08:15:34]RAPDU: 90 00 [08:15:34]wFMCommunicate OK [08:15:34]wFMCommunicate request_size=4 [08:15:34]MH_SAM_APDU [08:15:34]CAPDU: 80 0D 03 02 [08:15:34]Write to MH i2c: E2 08 00 F5 1E 80 0D 03 02 00 00 00 00 8E [08:15:34]Write i2c OK [08:15:34]MH_I2C_Read... [08:15:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:15:34]Read from MH i2c: E2 [08:15:34]MH_I2C_Read... [08:15:34]Read from MH i2c: E2 0B 00 [08:15:34]MH_I2C_Read... [08:15:34]Read from MH i2c: E2 0B 00 F5 1E 00 8F A5 A8 EB CC B6 41 8C 90 00 A5 [08:15:34]RAPDU: 8F A5 A8 EB CC B6 41 8C 90 00 [08:15:34]wFMCommunicate OK [08:15:34]SAM_PROTO_SignData done [08:15:34]FM_MakeSignedData done [08:15:34]CreateOFDProtocolMessage [08:15:34]wFMCommunicate request_size=4 [08:15:34]MH_SAM_APDU [08:15:34]CAPDU: 80 11 00 00 [08:15:34]Write to MH i2c: E2 08 00 F6 1E 80 11 00 00 00 00 00 00 8E [08:15:34]Write i2c OK [08:15:34]MH_I2C_Read... [08:15:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:15:34]Read from MH i2c: E2 [08:15:34]MH_I2C_Read... [08:15:34]Read from MH i2c: E2 17 00 [08:15:34]MH_I2C_Read... [08:15:34]Read from MH i2c: E2 17 00 F6 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 D9 [08:15:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [08:15:34]wFMCommunicate OK [08:15:34]CreateOFDProtocolMessage done [08:15:34]OFDSenderStorePacket 68267 [08:15:34]StoreOFDPacket docnum=68267 [08:15:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 C7 96 07 01 BA 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 A8 7B 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 AB 0A 01 00 35 04 06 00 68 9A FF B3 45 72 8F A5 A8 EB CC B6 41 8C [08:15:34]CheckFolder [08:15:34]dirname=/storage/ofd_packets [08:15:34]CheckFolder done [08:15:34]ProducePacketName [08:15:34]name=ofd_packets/00068267 [08:15:34]NVStorageSaveData ofd_packets/00068267 [08:15:34]File name is /storage/ofd_packets/00068267 [08:15:34]Write 301 bytes [08:15:34]NVStorageSaveData done [08:15:34]OFDSenderStorePacket done [08:15:34]KKMCreateOFDPacket done [08:15:34]NVStorageSaveData kkm_last_timestamp [08:15:34]File name is /storage/kkm_last_timestamp [08:15:34]Write 4 bytes [08:15:34]NVStorageSaveData done [08:15:34]ExternCall_PrintAddStr [08:15:34]wPrintStart [08:15:34]Write to MH i2c: 01 00 00 F7 1E 15 [08:15:34]Write i2c OK [08:15:34]MH_I2C_Read... [08:15:34]Read from MH i2c: 01 [08:15:34]MH_I2C_Read... [08:15:34]Read from MH i2c: 01 07 00 [08:15:34]MH_I2C_Read... [08:15:34]Read from MH i2c: 01 07 00 F7 1E 00 00 00 00 00 FF 0F 2A [08:15:34]RasterBufferAndPrint [08:15:34]line Счет N : (1)706337 [08:15:34]line ИНН: 02508201610067 [08:15:34]line Контрольно-Кассовый Чек [08:15:34]line ПРОДАЖА [08:15:34]line ТРК (МРК, ГНК) : 42 [08:15:34]line Товар: 2710124130 [08:15:34]line Аи-92-К-4 [08:15:34]line 29.900 * 66.90 [08:15:34]line = 2000.31 [08:15:34]line НДС 12% НСП 1% [08:15:34]line > о реализуемом товаре [08:15:34]line ОКРУГЛЕНИЕ: -0.31 [08:15:34]line ИТОГО: 2000.00 [08:15:34]line Внесено: 2000.00 [08:15:34]line СДАЧА: 0.00 [08:15:34]line НСП 1% : 17.70 [08:15:34]line НДС 12% : 212.42 [08:15:34]line Наличными: 2000.00 [08:15:34]line Безнал.: 0.00 [08:15:34]line Место: АЗС № 62 "Партнер Нефть" [08:15:34]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [08:15:34]line СНО: Общий режим [08:15:34]line Чек 13 03.06.2024 08:15 [08:15:34]line Смена: 324 ФФД: 1.0 [08:15:34]line ЗНМ: 0300000181 [08:15:34]line РНМ: 0000000000098096 [08:15:34]line Версия ККМ: 001 [08:15:34]line ФМ: 0000000000965400 [08:15:34]line ФД: 68267 [08:15:34]line ФПД: 115014924191090 [08:15:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T081536&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68267&fm=115014924191090&tin=02508201610067®Number=0000000000098096&sum=200000 [08:15:34]OFD Sender: Processing packet 68267 [packets to send 26, broken 25] [08:15:34]ProducePacketName [08:15:34]name=ofd_packets/00068267 [08:15:34]OFD Sender: To server: pG, [08:15:34]CommunicateWithHost lk.salyk.kg:30040 [08:15:34]ConnectInit lk.salyk.kg [08:15:34]written 0, free lines is 4095 [08:15:34]Connected sock=10 [08:15:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 C7 96 07 01 BA 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 A8 7B 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 AB 0A 01 00 35 04 06 00 68 9A FF B3 45 72 8F A5 A8 EB CC B6 41 8C [08:15:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 AB 06 47 00 1B 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 AB 0A 01 00 F4 03 04 00 A5 22 5D 66 B6 04 01 00 00 F9 F6 2D 44 15 C7 13 8C [08:15:35]CommunicateWithHost err = 0 [08:15:35]CheckOFDResponse [08:15:35]1017 (14) - 77093643461234 [08:15:35]1041 (16) - 0000000000965400 [08:15:35]1040 (4) - 68267 [08:15:35]1012 (4) - 03.06.2024 01:55 [08:15:35]1206 (1) - 0 [08:15:35]OFD Sender: Remove packet 68267 [08:15:35]ProducePacketName [08:15:35]name=ofd_packets/00068267 [08:15:35]NVStorageDeleteData [08:15:35]Write to MH i2c: 01 00 00 22 1F 41 [08:15:35]Write i2c OK [08:15:35]MH_I2C_Read... [08:15:35]Read from MH i2c: 01 [08:15:35]MH_I2C_Read... [08:15:35]Read from MH i2c: 01 07 00 [08:15:35]MH_I2C_Read... [08:15:35]Read from MH i2c: 01 07 00 22 1F 00 00 00 00 00 DD 0C 31 [08:15:35]RasterBufferAndPrint [08:15:35]line [08:15:35]line [08:15:35]line [08:15:35]line [08:15:35]line [08:15:35]written 0, free lines is 3300 [08:15:35]MH_Cut [08:15:35]Write to MH i2c: D1 01 00 29 1F 01 1A [08:15:35]Write i2c OK [08:15:35]MH_I2C_Read... [08:15:35]Read from MH i2c: D1 [08:15:35]MH_I2C_Read... [08:15:35]Read from MH i2c: D1 01 00 [08:15:35]MH_I2C_Read... [08:15:35]Read from MH i2c: D1 01 00 29 1F 00 19 [08:15:35]Write to MH i2c: 01 00 00 2A 1F 49 [08:15:35]Write i2c OK [08:15:35]MH_I2C_Read... [08:15:35]OFD Sender: No OFD packet to send [08:15:36]*** Cut start [08:15:36]*** Partial cut [08:15:36]*** CUTSNS_PIN = 1 [08:15:36]*** CUTSNS_PIN = 0 [08:15:36]*** Brake cut motor [08:15:36]Read from MH i2c: 01 [08:15:36]MH_I2C_Read... [08:15:36]*** Stop cut motor [08:15:36]*** Cut end [08:15:36]Read from MH i2c: 01 07 00 [08:15:36]MH_I2C_Read... [08:15:36]Read from MH i2c: 01 07 00 2A 1F 00 00 00 00 00 FF 0F 5E [08:15:36]process_action close_receipt done [08:15:36]requested_data is exist [08:15:36]produce_requested_data [08:15:36]requested_item fm.sn is exist - process it [08:15:36]wFMCommunicate request_size=4 [08:15:36]MH_SAM_APDU [08:15:36]CAPDU: 80 11 00 00 [08:15:36]Write to MH i2c: E2 08 00 2B 1F 80 11 00 00 00 00 00 00 C4 [08:15:36]Write i2c OK [08:15:36]MH_I2C_Read... [08:15:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:15:36]Read from MH i2c: E2 [08:15:36]MH_I2C_Read... [08:15:36]Read from MH i2c: E2 17 00 [08:15:36]MH_I2C_Read... [08:15:36]Read from MH i2c: E2 17 00 2B 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 0F [08:15:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [08:15:36]wFMCommunicate OK [08:15:36]requested_item fd.num is exist - process it [08:15:36]SAM_PROTO_GetFieldsCounters [08:15:36]wFMCommunicate request_size=4 [08:15:36]MH_SAM_APDU [08:15:36]CAPDU: 80 13 00 00 [08:15:36]Write to MH i2c: E2 08 00 2C 1F 80 13 00 00 00 00 00 00 C7 [08:15:36]Write i2c OK [08:15:36]MH_I2C_Read... [08:15:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:15:36]Read from MH i2c: E2 [08:15:36]MH_I2C_Read... [08:15:36]Read from MH i2c: E2 62 00 [08:15:36]MH_I2C_Read... [08:15:36]Read from MH i2c: E2 62 00 2C 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 AB 0A 01 00 0E 04 04 00 44 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 09 [08:15:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 AB 0A 01 00 0E 04 04 00 44 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 [08:15:36]wFMCommunicate OK [08:15:36]SAM_PROTO_GetFieldsCounters done [08:15:36]requested_item shift.num is exist - process it [08:15:36]requested_item shift.opened is exist - process it [08:15:36]req_shift_opened [08:15:36]FM_GetShiftState [08:15:36]SAM_PROTO_GetShiftState [08:15:36]wFMCommunicate request_size=4 [08:15:36]MH_SAM_APDU [08:15:36]CAPDU: 80 13 01 00 [08:15:36]Write to MH i2c: E2 08 00 2D 1F 80 13 01 00 00 00 00 00 C9 [08:15:36]Write i2c OK [08:15:36]MH_I2C_Read... [08:15:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:15:36]Read from MH i2c: E2 [08:15:36]MH_I2C_Read... [08:15:36]Read from MH i2c: E2 0E 00 [08:15:36]MH_I2C_Read... [08:15:36]Read from MH i2c: E2 0E 00 2D 1F 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 A4 [08:15:36]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [08:15:36]wFMCommunicate OK [08:15:36]SAM_PROTO_GetShiftState done [08:15:36]FM_GetShiftState done [08:15:36]req_shift_opened done [08:15:36]requested_item shift.open_date is exist - process it [08:15:36]req_shift_open_date [08:15:36]req_shift_open_date done [08:15:36]produce_requested_data done [08:15:36]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68267,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [08:15:36]process_action_free close_receipt [08:15:36]json_value_free [08:15:36]json_value_free done [08:15:36]process_json_proto returns [08:15:36]Send response to host [08:15:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68267,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [08:15:36]free response buf [08:15:36]execute_script done [08:15:36]execute_script returns [08:15:36]free content buf [08:15:36]Sock 7.Close socket [08:15:36]Sock 7.Thread stoped [08:15:40]OFD Sender: No OFD packet to send [08:15:45]OFD Sender: No OFD packet to send [08:15:50]OFD Sender: No OFD packet to send [08:15:55]OFD Sender: No OFD packet to send [08:16:00]OFD Sender: No OFD packet to send [08:16:05]OFD Sender: No OFD packet to send [08:16:10]OFD Sender: No OFD packet to send [08:16:15]OFD Sender: No OFD packet to send [08:16:20]OFD Sender: No OFD packet to send [08:16:25]OFD Sender: No OFD packet to send [08:16:30]OFD Sender: No OFD packet to send [08:16:35]OFD Sender: No OFD packet to send [08:16:40]OFD Sender: No OFD packet to send [08:16:45]OFD Sender: No OFD packet to send [08:16:50]OFD Sender: No OFD packet to send [08:16:55]OFD Sender: No OFD packet to send [08:17:00]OFD Sender: No OFD packet to send [08:17:05]OFD Sender: No OFD packet to send [08:17:10]OFD Sender: No OFD packet to send [08:17:15]OFD Sender: No OFD packet to send [08:17:20]OFD Sender: No OFD packet to send [08:17:25]OFD Sender: No OFD packet to send [08:17:30]OFD Sender: No OFD packet to send [08:17:35]OFD Sender: No OFD packet to send [08:17:40]OFD Sender: No OFD packet to send [08:17:45]OFD Sender: No OFD packet to send [08:17:50]OFD Sender: No OFD packet to send [08:17:55]OFD Sender: No OFD packet to send [08:18:00]OFD Sender: No OFD packet to send [08:18:05]OFD Sender: No OFD packet to send [08:18:10]OFD Sender: No OFD packet to send [08:18:15]OFD Sender: No OFD packet to send [08:18:20]OFD Sender: No OFD packet to send [08:18:25]OFD Sender: No OFD packet to send [08:18:30]OFD Sender: No OFD packet to send [08:18:35]OFD Sender: No OFD packet to send [08:18:40]OFD Sender: No OFD packet to send [08:18:45]OFD Sender: No OFD packet to send [08:18:50]OFD Sender: No OFD packet to send [08:18:55]OFD Sender: No OFD packet to send [08:19:00]OFD Sender: No OFD packet to send [08:19:05]OFD Sender: No OFD packet to send [08:19:10]OFD Sender: No OFD packet to send [08:19:15]OFD Sender: No OFD packet to send [08:19:20]OFD Sender: No OFD packet to send [08:19:25]OFD Sender: No OFD packet to send [08:19:30]OFD Sender: No OFD packet to send [08:19:35]OFD Sender: No OFD packet to send [08:19:40]OFD Sender: No OFD packet to send [08:19:45]OFD Sender: No OFD packet to send [08:19:50]OFD Sender: No OFD packet to send [08:19:55]OFD Sender: No OFD packet to send [08:20:00]OFD Sender: No OFD packet to send [08:20:05]OFD Sender: No OFD packet to send [08:20:10]OFD Sender: No OFD packet to send [08:20:15]OFD Sender: No OFD packet to send [08:20:20]OFD Sender: No OFD packet to send [08:20:25]OFD Sender: No OFD packet to send [08:20:30]OFD Sender: No OFD packet to send [08:20:35]OFD Sender: No OFD packet to send [08:20:40]OFD Sender: No OFD packet to send [08:20:45]OFD Sender: No OFD packet to send [08:20:50]OFD Sender: No OFD packet to send [08:20:55]OFD Sender: No OFD packet to send [08:21:00]OFD Sender: No OFD packet to send [08:21:05]OFD Sender: No OFD packet to send [08:21:10]OFD Sender: No OFD packet to send [08:21:15]OFD Sender: No OFD packet to send [08:21:20]OFD Sender: No OFD packet to send [08:21:25]OFD Sender: No OFD packet to send [08:21:30]OFD Sender: No OFD packet to send [08:21:35]OFD Sender: No OFD packet to send [08:21:40]OFD Sender: No OFD packet to send [08:21:45]OFD Sender: No OFD packet to send [08:21:50]OFD Sender: No OFD packet to send [08:21:55]OFD Sender: No OFD packet to send [08:22:00]OFD Sender: No OFD packet to send [08:22:05]OFD Sender: No OFD packet to send [08:22:10]OFD Sender: No OFD packet to send [08:22:15]OFD Sender: No OFD packet to send [08:22:20]OFD Sender: No OFD packet to send [08:22:25]OFD Sender: No OFD packet to send [08:22:30]OFD Sender: No OFD packet to send [08:22:35]OFD Sender: No OFD packet to send [08:22:40]OFD Sender: No OFD packet to send [08:22:45]OFD Sender: No OFD packet to send [08:22:50]OFD Sender: No OFD packet to send [08:22:55]OFD Sender: No OFD packet to send [08:23:00]OFD Sender: No OFD packet to send [08:23:05]OFD Sender: No OFD packet to send [08:23:10]OFD Sender: No OFD packet to send [08:23:15]OFD Sender: No OFD packet to send [08:23:20]OFD Sender: No OFD packet to send [08:23:25]OFD Sender: No OFD packet to send [08:23:30]OFD Sender: No OFD packet to send [08:23:35]OFD Sender: No OFD packet to send [08:23:40]OFD Sender: No OFD packet to send [08:23:45]OFD Sender: No OFD packet to send [08:23:50]OFD Sender: No OFD packet to send [08:23:56]OFD Sender: No OFD packet to send [08:24:01]OFD Sender: No OFD packet to send [08:24:06]OFD Sender: No OFD packet to send [08:24:11]OFD Sender: No OFD packet to send [08:24:16]OFD Sender: No OFD packet to send [08:24:21]OFD Sender: No OFD packet to send [08:24:26]OFD Sender: No OFD packet to send [08:24:31]OFD Sender: No OFD packet to send [08:24:36]OFD Sender: No OFD packet to send [08:24:37]accept exits with 9 [08:24:37]New connection [08:24:37]New thread 3066686820 created [08:24:37]Thread 3066543460 joined [08:24:37]Waiting for new connection... [08:24:37] Sock 9.Parse request [08:24:37]Sock 9.Check first char [08:24:37]Sock 9.First char is OK [08:24:37]request: POST /json_proto HTTP/1.0 [08:24:37]Method: POST [08:24:37]URL: /json_proto [08:24:37]Method is POST - this is cgi request [08:24:37]url: /json_proto [08:24:37]query_string will be loaded in cgi processing [08:24:37]execute_cgi json_proto POST (null) [08:24:37]execute_cgi path=json_proto method=POST [08:24:37]POST find Content-Length [08:24:37]Host: 172.17.36.132:8080 [08:24:37]Content-Length: 677 [08:24:37]Content-Type: application/json [08:24:37] [08:24:37]POST finish read [08:24:37]Found Content-Length = 677 [08:24:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706338", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:24:37]execute_script... [08:24:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706338", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:24:37]POST & json_proto [08:24:37]process_json_proto [08:24:37]json parsed OK: [08:24:37]protocol is kg_v1.0 [08:24:37]action value=close_receipt [08:24:37]process_action close_receipt [08:24:37]cmd_close_receipt [08:24:37]MH_GetDate [08:24:37]Write to MH i2c: F0 00 00 2E 1F 3C [08:24:37]Write i2c OK [08:24:37]MH_I2C_Read... [08:24:37]Read from MH i2c: F0 [08:24:37]MH_I2C_Read... [08:24:37]Read from MH i2c: F0 09 00 [08:24:37]MH_I2C_Read... [08:24:37]Read from MH i2c: F0 09 00 2E 1F 00 C9 7D 5D 66 B2 22 B0 64 36 [08:24:37]GetLastDocTimeStamp 1717402536 [08:24:37]current date 1717403081 [08:24:37]FM_GetShiftState [08:24:37]SAM_PROTO_GetShiftState [08:24:37]wFMCommunicate request_size=4 [08:24:37]MH_SAM_APDU [08:24:37]CAPDU: 80 13 01 00 [08:24:37]Write to MH i2c: E2 08 00 2F 1F 80 13 01 00 00 00 00 00 CB [08:24:37]Write i2c OK [08:24:37]MH_I2C_Read... [08:24:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:24:37]Read from MH i2c: E2 [08:24:37]MH_I2C_Read... [08:24:37]Read from MH i2c: E2 0E 00 [08:24:37]MH_I2C_Read... [08:24:37]Read from MH i2c: E2 0E 00 2F 1F 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 A6 [08:24:37]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [08:24:37]wFMCommunicate OK [08:24:37]SAM_PROTO_GetShiftState done [08:24:37]FM_GetShiftState done [08:24:37]opened in 1717378033 [08:24:37]opened+sec_in_day 1717464433 [08:24:37]quantity*price = 60009 [08:24:37]sum+1 = 60010 [08:24:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 14 03.06.2024 08:24 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68268 ФПД: 174091158484895 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T082441&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68268&fm=174091158484895&tin=02508201610067®Number=0000000000098096&sum=60000 [08:24:38]StoreToDocumentArchive [08:24:38]shift 324 fd 68268 [08:24:38]save to /storage/0324/doc_00068268 [08:24:38]save last doc name /storage/0324/doc_00068268 to /storage/kkm_last_doc_name [08:24:38]save OK [08:24:38]Clear old archive folders... [08:24:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:24:38]tlvbuf is 0046B4F0 [08:24:38]SAM_PROTO_ClearQueue [08:24:38]wFMCommunicate request_size=4 [08:24:38]MH_SAM_APDU [08:24:38]CAPDU: 80 09 00 00 [08:24:38]Write to MH i2c: E2 08 00 3C 1F 80 09 00 00 00 00 00 00 CD [08:24:38]Write i2c OK [08:24:38]MH_I2C_Read... [08:24:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:24:38]Read from MH i2c: E2 [08:24:38]MH_I2C_Read... [08:24:38]Read from MH i2c: E2 03 00 [08:24:38]MH_I2C_Read... [08:24:38]Read from MH i2c: E2 03 00 3C 1F 00 90 00 CF [08:24:38]RAPDU: 90 00 [08:24:38]wFMCommunicate OK [08:24:38]SAM_PROTO_ClearQueue done [08:24:38]KKMCreateOFDPacket [08:24:38]OFDProtocolAddRootSTLVToBuf [08:24:38]FM_MakeSignedData [08:24:38]FM_MakeSignedData [08:24:38]SAM_PROTO_SignData [08:24:38]wFMCommunicate request_size=4 [08:24:38]MH_SAM_APDU [08:24:38]CAPDU: 80 0D 01 02 [08:24:38]Write to MH i2c: E2 08 00 3D 1F 80 0D 01 02 00 00 00 00 D5 [08:24:38]Write i2c OK [08:24:38]MH_I2C_Read... [08:24:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:24:38]Read from MH i2c: E2 [08:24:38]MH_I2C_Read... [08:24:38]Read from MH i2c: E2 03 00 [08:24:38]MH_I2C_Read... [08:24:38]Read from MH i2c: E2 03 00 3D 1F 00 90 00 D0 [08:24:38]RAPDU: 90 00 [08:24:38]wFMCommunicate OK [08:24:38]wFMCommunicate request_size=255 [08:24:38]MH_SAM_APDU [08:24:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 C9 7D 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 AC 0A 01 00 35 04 06 00 9E [08:24:38]Write to MH i2c: E2 02 01 3E 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 C9 7D 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 AC 0A 01 00 35 04 06 00 9E 00 00 F0 [08:24:38]Write i2c OK [08:24:38]MH_I2C_Read... [08:24:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:24:39]Read from MH i2c: E2 [08:24:39]MH_I2C_Read... [08:24:39]Read from MH i2c: E2 03 00 [08:24:39]MH_I2C_Read... [08:24:39]Read from MH i2c: E2 03 00 3E 1F 00 90 00 D1 [08:24:39]RAPDU: 90 00 [08:24:39]wFMCommunicate OK [08:24:39]wFMCommunicate request_size=10 [08:24:39]MH_SAM_APDU [08:24:39]CAPDU: 80 0D 02 02 05 55 C1 A8 F7 9F [08:24:39]Write to MH i2c: E2 0D 00 3F 1F 80 0D 02 02 05 00 55 C1 A8 F7 9F 00 00 36 [08:24:39]Write i2c OK [08:24:39]MH_I2C_Read... [08:24:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:24:39]Read from MH i2c: E2 [08:24:39]MH_I2C_Read... [08:24:39]Read from MH i2c: E2 03 00 [08:24:39]MH_I2C_Read... [08:24:39]Read from MH i2c: E2 03 00 3F 1F 00 90 00 D2 [08:24:39]RAPDU: 90 00 [08:24:39]wFMCommunicate OK [08:24:39]wFMCommunicate request_size=4 [08:24:39]MH_SAM_APDU [08:24:39]CAPDU: 80 0D 03 02 [08:24:39]Write to MH i2c: E2 08 00 40 1F 80 0D 03 02 00 00 00 00 DA [08:24:39]Write i2c OK [08:24:39]MH_I2C_Read... [08:24:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:24:39]Read from MH i2c: E2 [08:24:39]MH_I2C_Read... [08:24:39]Read from MH i2c: E2 0B 00 [08:24:39]MH_I2C_Read... [08:24:39]Read from MH i2c: E2 0B 00 40 1F 00 DB B0 25 96 0C 1E 09 43 90 00 97 [08:24:39]RAPDU: DB B0 25 96 0C 1E 09 43 90 00 [08:24:39]wFMCommunicate OK [08:24:39]SAM_PROTO_SignData done [08:24:39]FM_MakeSignedData done [08:24:39]CreateOFDProtocolMessage [08:24:39]wFMCommunicate request_size=4 [08:24:39]MH_SAM_APDU [08:24:39]CAPDU: 80 11 00 00 [08:24:39]Write to MH i2c: E2 08 00 41 1F 80 11 00 00 00 00 00 00 DA [08:24:39]Write i2c OK [08:24:39]MH_I2C_Read... [08:24:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:24:39]Read from MH i2c: E2 [08:24:39]MH_I2C_Read... [08:24:39]Read from MH i2c: E2 17 00 [08:24:39]MH_I2C_Read... [08:24:39]Read from MH i2c: E2 17 00 41 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 25 [08:24:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [08:24:39]wFMCommunicate OK [08:24:39]CreateOFDProtocolMessage done [08:24:39]OFDSenderStorePacket 68268 [08:24:39]StoreOFDPacket docnum=68268 [08:24:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 2C 4D 07 01 23 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 C9 7D 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 AC 0A 01 00 35 04 06 00 9E 55 C1 A8 F7 9F DB B0 25 96 0C 1E 09 43 [08:24:39]CheckFolder [08:24:39]dirname=/storage/ofd_packets [08:24:39]CheckFolder done [08:24:39]ProducePacketName [08:24:39]name=ofd_packets/00068268 [08:24:39]NVStorageSaveData ofd_packets/00068268 [08:24:39]File name is /storage/ofd_packets/00068268 [08:24:39]Write 301 bytes [08:24:39]NVStorageSaveData done [08:24:39]OFDSenderStorePacket done [08:24:39]KKMCreateOFDPacket done [08:24:39]NVStorageSaveData kkm_last_timestamp [08:24:39]File name is /storage/kkm_last_timestamp [08:24:39]Write 4 bytes [08:24:39]NVStorageSaveData done [08:24:39]OFD Sender: Processing packet 68268 [packets to send 26, broken 25] [08:24:39]ProducePacketName [08:24:39]name=ofd_packets/00068268 [08:24:39]OFD Sender: To server: pG, [08:24:39]CommunicateWithHost lk.salyk.kg:30040 [08:24:39]ConnectInit lk.salyk.kg [08:24:39]ExternCall_PrintAddStr [08:24:39]wPrintStart [08:24:39]Write to MH i2c: 01 00 00 42 1F 61 [08:24:39]Write i2c OK [08:24:39]MH_I2C_Read... [08:24:39]Read from MH i2c: 01 [08:24:39]MH_I2C_Read... [08:24:39]Read from MH i2c: 01 07 00 [08:24:39]MH_I2C_Read... [08:24:39]Read from MH i2c: 01 07 00 42 1F 00 00 00 00 00 FF 0F 76 [08:24:39]RasterBufferAndPrint [08:24:39]line Счет N : (1)706338 [08:24:39]line ИНН: 02508201610067 [08:24:39]line Контрольно-Кассовый Чек [08:24:39]line ПРОДАЖА [08:24:39]line ТРК (МРК, ГНК) : 63 [08:24:39]line Товар: 2710124130 [08:24:39]line Аи-92-К-4 [08:24:39]line 8.970 * 66.90 [08:24:39]line = 600.09 [08:24:39]line НДС 12% НСП 1% [08:24:39]line > о реализуемом товаре [08:24:39]line ОКРУГЛЕНИЕ: -0.09 [08:24:39]line ИТОГО: 600.00 [08:24:39]line Внесено: 600.00 [08:24:39]line СДАЧА: 0.00 [08:24:39]line НСП 1% : 5.31 [08:24:39]line НДС 12% : 63.73 [08:24:39]line Наличными: 600.00 [08:24:39]line Безнал.: 0.00 [08:24:39]line Место: АЗС № 62 "Партнер Нефть" [08:24:39]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [08:24:39]line СНО: Общий режим [08:24:39]line Чек 14 03.06.2024 08:24 [08:24:39]line Смена: 324 ФФД: 1.0 [08:24:39]line ЗНМ: 0300000181 [08:24:39]line РНМ: 0000000000098096 [08:24:39]line Версия ККМ: 001 [08:24:39]line ФМ: 0000000000965400 [08:24:39]line ФД: 68268 [08:24:39]line ФПД: 174091158484895 [08:24:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T082441&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68268&fm=174091158484895&tin=02508201610067®Number=0000000000098096&sum=60000 [08:24:39]Connected sock=11 [08:24:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 2C 4D 07 01 23 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 C9 7D 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 AC 0A 01 00 35 04 06 00 9E 55 C1 A8 F7 9F DB B0 25 96 0C 1E 09 43 [08:24:39]written 0, free lines is 4095 [08:24:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 8E B5 47 00 E6 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 AC 0A 01 00 F4 03 04 00 C6 24 5D 66 B6 04 01 00 00 7E 68 81 F0 96 8C 28 F7 [08:24:39]CommunicateWithHost err = 0 [08:24:39]CheckOFDResponse [08:24:39]1017 (14) - 77093643461234 [08:24:39]1041 (16) - 0000000000965400 [08:24:39]1040 (4) - 68268 [08:24:39]1012 (4) - 03.06.2024 02:04 [08:24:39]1206 (1) - 0 [08:24:39]OFD Sender: Remove packet 68268 [08:24:39]ProducePacketName [08:24:39]name=ofd_packets/00068268 [08:24:39]NVStorageDeleteData [08:24:40]Write to MH i2c: 01 00 00 6D 1F 8C [08:24:40]Write i2c OK [08:24:40]MH_I2C_Read... [08:24:40]Read from MH i2c: 01 [08:24:40]MH_I2C_Read... [08:24:40]Read from MH i2c: 01 07 00 [08:24:40]MH_I2C_Read... [08:24:40]Read from MH i2c: 01 07 00 6D 1F 00 00 00 00 00 D8 0C 77 [08:24:40]RasterBufferAndPrint [08:24:40]line [08:24:40]line [08:24:40]line [08:24:40]line [08:24:40]line [08:24:40]written 0, free lines is 3295 [08:24:40]MH_Cut [08:24:40]Write to MH i2c: D1 01 00 74 1F 01 65 [08:24:40]Write i2c OK [08:24:40]MH_I2C_Read... [08:24:40]Read from MH i2c: D1 [08:24:40]MH_I2C_Read... [08:24:40]Read from MH i2c: D1 01 00 [08:24:40]MH_I2C_Read... [08:24:40]Read from MH i2c: D1 01 00 74 1F 00 64 [08:24:40]Write to MH i2c: 01 00 00 75 1F 94 [08:24:40]Write i2c OK [08:24:40]MH_I2C_Read... [08:24:40]OFD Sender: No OFD packet to send [08:24:40]*** Cut start [08:24:40]*** Partial cut [08:24:40]*** CUTSNS_PIN = 1 [08:24:41]*** CUTSNS_PIN = 0 [08:24:41]*** Brake cut motor [08:24:41]Read from MH i2c: 01 [08:24:41]MH_I2C_Read... [08:24:41]*** Stop cut motor [08:24:41]*** Cut end [08:24:41]Read from MH i2c: 01 07 00 [08:24:41]MH_I2C_Read... [08:24:41]Read from MH i2c: 01 07 00 75 1F 00 00 00 00 00 FF 0F A9 [08:24:41]process_action close_receipt done [08:24:41]requested_data is exist [08:24:41]produce_requested_data [08:24:41]requested_item fm.sn is exist - process it [08:24:41]wFMCommunicate request_size=4 [08:24:41]MH_SAM_APDU [08:24:41]CAPDU: 80 11 00 00 [08:24:41]Write to MH i2c: E2 08 00 76 1F 80 11 00 00 00 00 00 00 0F [08:24:41]Write i2c OK [08:24:41]MH_I2C_Read... [08:24:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:24:41]Read from MH i2c: E2 [08:24:41]MH_I2C_Read... [08:24:41]Read from MH i2c: E2 17 00 [08:24:41]MH_I2C_Read... [08:24:41]Read from MH i2c: E2 17 00 76 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 5A [08:24:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [08:24:41]wFMCommunicate OK [08:24:41]requested_item fd.num is exist - process it [08:24:41]SAM_PROTO_GetFieldsCounters [08:24:41]wFMCommunicate request_size=4 [08:24:41]MH_SAM_APDU [08:24:41]CAPDU: 80 13 00 00 [08:24:41]Write to MH i2c: E2 08 00 77 1F 80 13 00 00 00 00 00 00 12 [08:24:41]Write i2c OK [08:24:41]MH_I2C_Read... [08:24:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:24:41]Read from MH i2c: E2 [08:24:41]MH_I2C_Read... [08:24:41]Read from MH i2c: E2 62 00 [08:24:41]MH_I2C_Read... [08:24:41]Read from MH i2c: E2 62 00 77 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 AC 0A 01 00 0E 04 04 00 44 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 58 [08:24:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 AC 0A 01 00 0E 04 04 00 44 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 [08:24:41]wFMCommunicate OK [08:24:41]SAM_PROTO_GetFieldsCounters done [08:24:41]requested_item shift.num is exist - process it [08:24:41]requested_item shift.opened is exist - process it [08:24:41]req_shift_opened [08:24:41]FM_GetShiftState [08:24:41]SAM_PROTO_GetShiftState [08:24:41]wFMCommunicate request_size=4 [08:24:41]MH_SAM_APDU [08:24:41]CAPDU: 80 13 01 00 [08:24:41]Write to MH i2c: E2 08 00 78 1F 80 13 01 00 00 00 00 00 14 [08:24:41]Write i2c OK [08:24:41]MH_I2C_Read... [08:24:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:24:41]Read from MH i2c: E2 [08:24:41]MH_I2C_Read... [08:24:41]Read from MH i2c: E2 0E 00 [08:24:41]MH_I2C_Read... [08:24:41]Read from MH i2c: E2 0E 00 78 1F 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 EF [08:24:41]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [08:24:41]wFMCommunicate OK [08:24:41]SAM_PROTO_GetShiftState done [08:24:41]FM_GetShiftState done [08:24:41]req_shift_opened done [08:24:41]requested_item shift.open_date is exist - process it [08:24:41]req_shift_open_date [08:24:41]req_shift_open_date done [08:24:41]produce_requested_data done [08:24:41]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68268,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [08:24:41]process_action_free close_receipt [08:24:41]json_value_free [08:24:41]json_value_free done [08:24:41]process_json_proto returns [08:24:41]Send response to host [08:24:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68268,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [08:24:41]free response buf [08:24:41]execute_script done [08:24:41]execute_script returns [08:24:41]free content buf [08:24:41]Sock 9.Close socket [08:24:41]Sock 9.Thread stoped [08:24:45]OFD Sender: No OFD packet to send [08:24:50]OFD Sender: No OFD packet to send [08:24:55]OFD Sender: No OFD packet to send [08:25:00]OFD Sender: No OFD packet to send [08:25:05]OFD Sender: No OFD packet to send [08:25:10]OFD Sender: No OFD packet to send [08:25:15]OFD Sender: No OFD packet to send [08:25:20]OFD Sender: No OFD packet to send [08:25:25]OFD Sender: No OFD packet to send [08:25:30]OFD Sender: No OFD packet to send [08:25:35]OFD Sender: No OFD packet to send [08:25:40]OFD Sender: No OFD packet to send [08:25:45]OFD Sender: No OFD packet to send [08:25:50]OFD Sender: No OFD packet to send [08:25:55]OFD Sender: No OFD packet to send [08:26:00]OFD Sender: No OFD packet to send [08:26:05]OFD Sender: No OFD packet to send [08:26:10]OFD Sender: No OFD packet to send [08:26:15]OFD Sender: No OFD packet to send [08:26:20]OFD Sender: No OFD packet to send [08:26:25]OFD Sender: No OFD packet to send [08:26:30]OFD Sender: No OFD packet to send [08:26:35]OFD Sender: No OFD packet to send [08:26:40]OFD Sender: No OFD packet to send [08:26:45]OFD Sender: No OFD packet to send [08:26:50]OFD Sender: No OFD packet to send [08:26:55]OFD Sender: No OFD packet to send [08:27:00]OFD Sender: No OFD packet to send [08:27:05]OFD Sender: No OFD packet to send [08:27:10]OFD Sender: No OFD packet to send [08:27:15]OFD Sender: No OFD packet to send [08:27:20]OFD Sender: No OFD packet to send [08:27:25]OFD Sender: No OFD packet to send [08:27:30]OFD Sender: No OFD packet to send [08:27:35]OFD Sender: No OFD packet to send [08:27:40]OFD Sender: No OFD packet to send [08:27:45]OFD Sender: No OFD packet to send [08:27:50]OFD Sender: No OFD packet to send [08:27:55]OFD Sender: No OFD packet to send [08:28:00]OFD Sender: No OFD packet to send [08:28:05]OFD Sender: No OFD packet to send [08:28:10]OFD Sender: No OFD packet to send [08:28:15]OFD Sender: No OFD packet to send [08:28:20]OFD Sender: No OFD packet to send [08:28:25]OFD Sender: No OFD packet to send [08:28:30]OFD Sender: No OFD packet to send [08:28:35]OFD Sender: No OFD packet to send [08:28:40]OFD Sender: No OFD packet to send [08:28:45]OFD Sender: No OFD packet to send [08:28:50]OFD Sender: No OFD packet to send [08:28:55]OFD Sender: No OFD packet to send [08:29:00]OFD Sender: No OFD packet to send [08:29:05]OFD Sender: No OFD packet to send [08:29:10]OFD Sender: No OFD packet to send [08:29:15]OFD Sender: No OFD packet to send [08:29:20]OFD Sender: No OFD packet to send [08:29:25]OFD Sender: No OFD packet to send [08:29:30]OFD Sender: No OFD packet to send [08:29:35]OFD Sender: No OFD packet to send [08:29:40]OFD Sender: No OFD packet to send [08:29:45]OFD Sender: No OFD packet to send [08:29:50]OFD Sender: No OFD packet to send [08:29:55]OFD Sender: No OFD packet to send [08:30:00]OFD Sender: No OFD packet to send [08:30:05]OFD Sender: No OFD packet to send [08:30:10]OFD Sender: No OFD packet to send [08:30:15]OFD Sender: No OFD packet to send [08:30:20]OFD Sender: No OFD packet to send [08:30:25]OFD Sender: No OFD packet to send [08:30:30]OFD Sender: No OFD packet to send [08:30:35]OFD Sender: No OFD packet to send [08:30:40]OFD Sender: No OFD packet to send [08:30:45]OFD Sender: No OFD packet to send [08:30:50]OFD Sender: No OFD packet to send [08:30:55]OFD Sender: No OFD packet to send [08:31:00]OFD Sender: No OFD packet to send [08:31:05]OFD Sender: No OFD packet to send [08:31:10]OFD Sender: No OFD packet to send [08:31:15]OFD Sender: No OFD packet to send [08:31:20]OFD Sender: No OFD packet to send [08:31:25]OFD Sender: No OFD packet to send [08:31:30]OFD Sender: No OFD packet to send [08:31:33]accept exits with 7 [08:31:33]New connection [08:31:33]New thread 3066543460 created [08:31:33]Thread 3066686820 joined [08:31:33]Waiting for new connection... [08:31:33] Sock 7.Parse request [08:31:33]Sock 7.Check first char [08:31:33]Sock 7.First char is OK [08:31:33]request: POST /json_proto HTTP/1.0 [08:31:33]Method: POST [08:31:33]URL: /json_proto [08:31:33]Method is POST - this is cgi request [08:31:33]url: /json_proto [08:31:33]query_string will be loaded in cgi processing [08:31:33]execute_cgi json_proto POST (null) [08:31:33]execute_cgi path=json_proto method=POST [08:31:33]POST find Content-Length [08:31:33]Host: 172.17.36.132:8080 [08:31:33]Content-Length: 841 [08:31:33]Content-Type: application/json [08:31:33] [08:31:33]POST finish read [08:31:33]Found Content-Length = 841 [08:31:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706339", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.000, "sum" : 669.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 669.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:31:33]execute_script... [08:31: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)706339", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.000, "sum" : 669.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 669.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:31:33]POST & json_proto [08:31:33]process_json_proto [08:31:33]json parsed OK: [08:31:33]protocol is kg_v1.0 [08:31:33]action value=close_receipt [08:31:33]process_action close_receipt [08:31:33]cmd_close_receipt [08:31:33]MH_GetDate [08:31:33]Write to MH i2c: F0 00 00 79 1F 87 [08:31:33]Write i2c OK [08:31:33]MH_I2C_Read... [08:31:33]Read from MH i2c: F0 [08:31:33]MH_I2C_Read... [08:31:33]Read from MH i2c: F0 09 00 [08:31:33]MH_I2C_Read... [08:31:33]Read from MH i2c: F0 09 00 79 1F 00 69 7F 5D 66 B2 22 B0 64 23 [08:31:33]GetLastDocTimeStamp 1717403081 [08:31:33]current date 1717403497 [08:31:33]FM_GetShiftState [08:31:33]SAM_PROTO_GetShiftState [08:31:33]wFMCommunicate request_size=4 [08:31:33]MH_SAM_APDU [08:31:33]CAPDU: 80 13 01 00 [08:31:33]Write to MH i2c: E2 08 00 7A 1F 80 13 01 00 00 00 00 00 16 [08:31:33]Write i2c OK [08:31:33]MH_I2C_Read... [08:31:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:33]Read from MH i2c: E2 [08:31:33]MH_I2C_Read... [08:31:33]Read from MH i2c: E2 0E 00 [08:31:33]MH_I2C_Read... [08:31:33]Read from MH i2c: E2 0E 00 7A 1F 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 F1 [08:31:33]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [08:31:33]wFMCommunicate OK [08:31:33]SAM_PROTO_GetShiftState done [08:31:33]FM_GetShiftState done [08:31:33]opened in 1717378033 [08:31:33]opened+sec_in_day 1717464433 [08:31:33]quantity*price = 66900 [08:31:33]sum+1 = 66901 [08:31:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 669.00 НСП 1% : 5.92 НДС 12% : 71.04 Наличными: 0.00 Безнал.: 669.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 15 03.06.2024 08:31 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68269 ФПД: 176388929814949 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T083137&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68269&fm=176388929814949&tin=02508201610067®Number=0000000000098096&sum=66900 [08:31:34]StoreToDocumentArchive [08:31:34]shift 324 fd 68269 [08:31:34]save to /storage/0324/doc_00068269 [08:31:34]save last doc name /storage/0324/doc_00068269 to /storage/kkm_last_doc_name [08:31:34]save OK [08:31:34]Clear old archive folders... [08:31:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:31:34]tlvbuf is 0026AF00 [08:31:34]SAM_PROTO_ClearQueue [08:31:34]wFMCommunicate request_size=4 [08:31:34]MH_SAM_APDU [08:31:34]CAPDU: 80 09 00 00 [08:31:34]Write to MH i2c: E2 08 00 87 1F 80 09 00 00 00 00 00 00 18 [08:31:34]Write i2c OK [08:31:34]MH_I2C_Read... [08:31:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:31:34]Read from MH i2c: E2 [08:31:34]MH_I2C_Read... [08:31:34]Read from MH i2c: E2 03 00 [08:31:34]MH_I2C_Read... [08:31:34]Read from MH i2c: E2 03 00 87 1F 00 90 00 1A [08:31:34]RAPDU: 90 00 [08:31:34]wFMCommunicate OK [08:31:34]SAM_PROTO_ClearQueue done [08:31:34]KKMCreateOFDPacket [08:31:34]OFDProtocolAddRootSTLVToBuf [08:31:34]FM_MakeSignedData [08:31:34]FM_MakeSignedData [08:31:34]SAM_PROTO_SignData [08:31:34]wFMCommunicate request_size=4 [08:31:34]MH_SAM_APDU [08:31:34]CAPDU: 80 0D 01 02 [08:31:34]Write to MH i2c: E2 08 00 88 1F 80 0D 01 02 00 00 00 00 20 [08:31:34]Write i2c OK [08:31:34]MH_I2C_Read... [08:31:34]Read from MH i2c: E2 [08:31:34]MH_I2C_Read... [08:31:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:31:34]Read from MH i2c: E2 03 00 [08:31:34]MH_I2C_Read... [08:31:34]Read from MH i2c: E2 03 00 88 1F 00 90 00 1B [08:31:34]RAPDU: 90 00 [08:31:34]wFMCommunicate OK [08:31:34]wFMCommunicate request_size=255 [08:31:34]MH_SAM_APDU [08:31: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 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 54 05 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 69 7F 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 AD 0A 01 00 35 04 06 00 A0 [08:31:34]Write to MH i2c: E2 02 01 89 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 54 05 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 69 7F 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 AD 0A 01 00 35 04 06 00 A0 00 00 2D [08:31:34]Write i2c OK [08:31:34]MH_I2C_Read... [08:31:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:34]Read from MH i2c: E2 [08:31:34]MH_I2C_Read... [08:31:34]Read from MH i2c: E2 03 00 [08:31:34]MH_I2C_Read... [08:31:34]Read from MH i2c: E2 03 00 89 1F 00 90 00 1C [08:31:34]RAPDU: 90 00 [08:31:34]wFMCommunicate OK [08:31:34]wFMCommunicate request_size=10 [08:31:34]MH_SAM_APDU [08:31:34]CAPDU: 80 0D 02 02 05 6C BF 81 01 A5 [08:31:34]Write to MH i2c: E2 0D 00 8A 1F 80 0D 02 02 05 00 6C BF 81 01 A5 00 00 7F [08:31:34]Write i2c OK [08:31:34]MH_I2C_Read... [08:31:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:34]Read from MH i2c: E2 [08:31:34]MH_I2C_Read... [08:31:34]Read from MH i2c: E2 03 00 [08:31:34]MH_I2C_Read... [08:31:34]Read from MH i2c: E2 03 00 8A 1F 00 90 00 1D [08:31:34]RAPDU: 90 00 [08:31:34]wFMCommunicate OK [08:31:34]wFMCommunicate request_size=4 [08:31:34]MH_SAM_APDU [08:31:34]CAPDU: 80 0D 03 02 [08:31:34]Write to MH i2c: E2 08 00 8B 1F 80 0D 03 02 00 00 00 00 25 [08:31:34]Write i2c OK [08:31:34]MH_I2C_Read... [08:31:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:31:34]Read from MH i2c: E2 [08:31:34]MH_I2C_Read... [08:31:34]Read from MH i2c: E2 0B 00 [08:31:34]MH_I2C_Read... [08:31:34]Read from MH i2c: E2 0B 00 8B 1F 00 21 AA 81 CB 6D 08 70 2F 90 00 51 [08:31:34]RAPDU: 21 AA 81 CB 6D 08 70 2F 90 00 [08:31:34]wFMCommunicate OK [08:31:34]SAM_PROTO_SignData done [08:31:34]FM_MakeSignedData done [08:31:34]CreateOFDProtocolMessage [08:31:34]wFMCommunicate request_size=4 [08:31:34]MH_SAM_APDU [08:31:34]CAPDU: 80 11 00 00 [08:31:34]Write to MH i2c: E2 08 00 8C 1F 80 11 00 00 00 00 00 00 25 [08:31:34]Write i2c OK [08:31:34]MH_I2C_Read... [08:31:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:34]Read from MH i2c: E2 [08:31:34]MH_I2C_Read... [08:31:34]Read from MH i2c: E2 17 00 [08:31:34]MH_I2C_Read... [08:31:34]Read from MH i2c: E2 17 00 8C 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 70 [08:31:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [08:31:34]wFMCommunicate OK [08:31:34]CreateOFDProtocolMessage done [08:31:34]OFDSenderStorePacket 68269 [08:31:34]StoreOFDPacket docnum=68269 [08:31:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 53 E9 07 01 E5 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 54 05 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 69 7F 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 AD 0A 01 00 35 04 06 00 A0 6C BF 81 01 A5 21 AA 81 CB 6D 08 70 2F [08:31:34]CheckFolder [08:31:34]dirname=/storage/ofd_packets [08:31:34]CheckFolder done [08:31:34]ProducePacketName [08:31:34]name=ofd_packets/00068269 [08:31:34]NVStorageSaveData ofd_packets/00068269 [08:31:34]File name is /storage/ofd_packets/00068269 [08:31:34]Write 301 bytes [08:31:34]NVStorageSaveData done [08:31:34]OFDSenderStorePacket done [08:31:34]KKMCreateOFDPacket done [08:31:34]NVStorageSaveData kkm_last_timestamp [08:31:34]File name is /storage/kkm_last_timestamp [08:31:34]Write 4 bytes [08:31:34]NVStorageSaveData done [08:31:34]ExternCall_PrintAddStr [08:31:34]wPrintStart [08:31:34]Write to MH i2c: 01 00 00 8D 1F AC [08:31:34]Write i2c OK [08:31:34]MH_I2C_Read... [08:31:34]Read from MH i2c: 01 [08:31:34]MH_I2C_Read... [08:31:34]Read from MH i2c: 01 07 00 [08:31:34]MH_I2C_Read... [08:31:34]Read from MH i2c: 01 07 00 8D 1F 00 00 00 00 00 FF 0F C1 [08:31:34]RasterBufferAndPrint [08:31:34]line Счет N : (1)706339 [08:31:34]line ИНН: 02508201610067 [08:31:34]line Контрольно-Кассовый Чек [08:31:34]line ПРОДАЖА [08:31:34]line ТРК (МРК, ГНК) : 63 [08:31:34]line Товар: 2710124130 [08:31:34]line Аи-92-К-4 [08:31:34]line 10.000 * 66.90 [08:31:34]line = 669.00 [08:31:34]line НДС 12% НСП 1% [08:31:34]line > о реализуемом товаре [08:31:34]line ИТОГО: 669.00 [08:31:34]line НСП 1% : 5.92 [08:31:34]line НДС 12% : 71.04 [08:31:34]line Наличными: 0.00 [08:31:34]line Безнал.: 669.00 [08:31:34]line Место: АЗС № 62 "Партнер Нефть" [08:31:34]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [08:31:34]line СНО: Общий режим [08:31:34]line Чек 15 03.06.2024 08:31 [08:31:34]line Смена: 324 ФФД: 1.0 [08:31:34]line ЗНМ: 0300000181 [08:31:34]line РНМ: 0000000000098096 [08:31:34]line Версия ККМ: 001 [08:31:34]line Платежная система: АКБ Кыргызстан [08:31:34]line ФМ: 0000000000965400 [08:31:34]line ФД: 68269 [08:31:34]line ФПД: 176388929814949 [08:31:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T083137&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68269&fm=176388929814949&tin=02508201610067®Number=0000000000098096&sum=66900 [08:31:35]OFD Sender: Processing packet 68269 [packets to send 26, broken 25] [08:31:35]ProducePacketName [08:31:35]name=ofd_packets/00068269 [08:31:35]OFD Sender: To server: pG, [08:31:35]CommunicateWithHost lk.salyk.kg:30040 [08:31:35]ConnectInit lk.salyk.kg [08:31:35]written 0, free lines is 4095 [08:31:35]Connected sock=10 [08:31:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 53 E9 07 01 E5 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 54 05 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 69 7F 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 AD 0A 01 00 35 04 06 00 A0 6C BF 81 01 A5 21 AA 81 CB 6D 08 70 2F [08:31:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 42 52 47 00 2A 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 AD 0A 01 00 F4 03 04 00 66 26 5D 66 B6 04 01 00 00 15 B8 B8 87 58 33 78 09 [08:31:35]CommunicateWithHost err = 0 [08:31:35]CheckOFDResponse [08:31:35]1017 (14) - 77093643461234 [08:31:35]1041 (16) - 0000000000965400 [08:31:35]1040 (4) - 68269 [08:31:35]1012 (4) - 03.06.2024 02:11 [08:31:35]1206 (1) - 0 [08:31:35]OFD Sender: Remove packet 68269 [08:31:35]ProducePacketName [08:31:35]name=ofd_packets/00068269 [08:31:35]NVStorageDeleteData [08:31:35]Write to MH i2c: 01 00 00 B7 1F D6 [08:31:35]Write i2c OK [08:31:35]MH_I2C_Read... [08:31:35]Read from MH i2c: 01 [08:31:35]MH_I2C_Read... [08:31:35]Read from MH i2c: 01 07 00 [08:31:35]MH_I2C_Read... [08:31:35]Read from MH i2c: 01 07 00 B7 1F 00 00 00 00 00 ED 0C D6 [08:31:35]RasterBufferAndPrint [08:31:35]line [08:31:35]line [08:31:35]line [08:31:35]line [08:31:35]line [08:31:35]written 0, free lines is 3315 [08:31:35]MH_Cut [08:31:35]Write to MH i2c: D1 01 00 BE 1F 01 AF [08:31:35]Write i2c OK [08:31:35]MH_I2C_Read... [08:31:35]Read from MH i2c: D1 [08:31:35]MH_I2C_Read... [08:31:35]Read from MH i2c: D1 01 00 [08:31:35]MH_I2C_Read... [08:31:35]Read from MH i2c: D1 01 00 BE 1F 00 AE [08:31:35]Write to MH i2c: 01 00 00 BF 1F DE [08:31:35]Write i2c OK [08:31:35]MH_I2C_Read... [08:31:36]OFD Sender: No OFD packet to send [08:31:36]*** Cut start [08:31:36]*** Partial cut [08:31:36]*** CUTSNS_PIN = 1 [08:31:36]*** CUTSNS_PIN = 0 [08:31:36]*** Brake cut motor [08:31:37]Read from MH i2c: 01 [08:31:37]MH_I2C_Read... [08:31:37]*** Stop cut motor [08:31:37]*** Cut end [08:31:37]Read from MH i2c: 01 07 00 [08:31:37]MH_I2C_Read... [08:31:37]Read from MH i2c: 01 07 00 BF 1F 00 00 00 00 00 FF 0F F3 [08:31:37]process_action close_receipt done [08:31:37]requested_data is exist [08:31:37]produce_requested_data [08:31:37]requested_item fm.sn is exist - process it [08:31:37]wFMCommunicate request_size=4 [08:31:37]MH_SAM_APDU [08:31:37]CAPDU: 80 11 00 00 [08:31:37]Write to MH i2c: E2 08 00 C0 1F 80 11 00 00 00 00 00 00 59 [08:31:37]Write i2c OK [08:31:37]MH_I2C_Read... [08:31:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:37]Read from MH i2c: E2 [08:31:37]MH_I2C_Read... [08:31:37]Read from MH i2c: E2 17 00 [08:31:37]MH_I2C_Read... [08:31:37]Read from MH i2c: E2 17 00 C0 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 A4 [08:31:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [08:31:37]wFMCommunicate OK [08:31:37]requested_item fd.num is exist - process it [08:31:37]SAM_PROTO_GetFieldsCounters [08:31:37]wFMCommunicate request_size=4 [08:31:37]MH_SAM_APDU [08:31:37]CAPDU: 80 13 00 00 [08:31:37]Write to MH i2c: E2 08 00 C1 1F 80 13 00 00 00 00 00 00 5C [08:31:37]Write i2c OK [08:31:37]MH_I2C_Read... [08:31:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:31:37]Read from MH i2c: E2 [08:31:37]MH_I2C_Read... [08:31:37]Read from MH i2c: E2 62 00 [08:31:37]MH_I2C_Read... [08:31:37]Read from MH i2c: E2 62 00 C1 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 AD 0A 01 00 0E 04 04 00 44 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 A6 [08:31:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 AD 0A 01 00 0E 04 04 00 44 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 [08:31:37]wFMCommunicate OK [08:31:37]SAM_PROTO_GetFieldsCounters done [08:31:37]requested_item shift.num is exist - process it [08:31:37]requested_item shift.opened is exist - process it [08:31:37]req_shift_opened [08:31:37]FM_GetShiftState [08:31:37]SAM_PROTO_GetShiftState [08:31:37]wFMCommunicate request_size=4 [08:31:37]MH_SAM_APDU [08:31:37]CAPDU: 80 13 01 00 [08:31:37]Write to MH i2c: E2 08 00 C2 1F 80 13 01 00 00 00 00 00 5E [08:31:37]Write i2c OK [08:31:37]MH_I2C_Read... [08:31:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:37]Read from MH i2c: E2 [08:31:37]MH_I2C_Read... [08:31:37]Read from MH i2c: E2 0E 00 [08:31:37]MH_I2C_Read... [08:31:37]Read from MH i2c: E2 0E 00 C2 1F 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 39 [08:31:37]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [08:31:37]wFMCommunicate OK [08:31:37]SAM_PROTO_GetShiftState done [08:31:37]FM_GetShiftState done [08:31:37]req_shift_opened done [08:31:37]requested_item shift.open_date is exist - process it [08:31:37]req_shift_open_date [08:31:37]req_shift_open_date done [08:31:37]produce_requested_data done [08:31:37]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68269,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [08:31:37]process_action_free close_receipt [08:31:37]json_value_free [08:31:37]json_value_free done [08:31:37]process_json_proto returns [08:31:37]Send response to host [08:31:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68269,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [08:31:37]free response buf [08:31:37]execute_script done [08:31:37]execute_script returns [08:31:37]free content buf [08:31:37]Sock 7.Close socket [08:31:37]Sock 7.Thread stoped [08:31:41]OFD Sender: No OFD packet to send [08:31:46]OFD Sender: No OFD packet to send [08:31:51]OFD Sender: No OFD packet to send [08:31:56]OFD Sender: No OFD packet to send [08:32:01]OFD Sender: No OFD packet to send [08:32:06]OFD Sender: No OFD packet to send [08:32:11]OFD Sender: No OFD packet to send [08:32:16]OFD Sender: No OFD packet to send [08:32:21]OFD Sender: No OFD packet to send [08:32:26]OFD Sender: No OFD packet to send [08:32:31]OFD Sender: No OFD packet to send [08:32:36]OFD Sender: No OFD packet to send [08:32:41]OFD Sender: No OFD packet to send [08:32:46]OFD Sender: No OFD packet to send [08:32:51]OFD Sender: No OFD packet to send [08:32:56]OFD Sender: No OFD packet to send [08:33:01]OFD Sender: No OFD packet to send [08:33:06]OFD Sender: No OFD packet to send [08:33:11]OFD Sender: No OFD packet to send [08:33:16]OFD Sender: No OFD packet to send [08:33:21]OFD Sender: No OFD packet to send [08:33:26]OFD Sender: No OFD packet to send [08:33:31]OFD Sender: No OFD packet to send [08:33:36]OFD Sender: No OFD packet to send [08:33:41]OFD Sender: No OFD packet to send [08:33:46]OFD Sender: No OFD packet to send [08:33:51]OFD Sender: No OFD packet to send [08:33:56]OFD Sender: No OFD packet to send [08:34:01]OFD Sender: No OFD packet to send [08:34:06]OFD Sender: No OFD packet to send [08:34:11]OFD Sender: No OFD packet to send [08:34:16]OFD Sender: No OFD packet to send [08:34:21]OFD Sender: No OFD packet to send [08:34:26]OFD Sender: No OFD packet to send [08:34:31]OFD Sender: No OFD packet to send [08:34:36]OFD Sender: No OFD packet to send [08:34:41]OFD Sender: No OFD packet to send [08:34:46]OFD Sender: No OFD packet to send [08:34:51]OFD Sender: No OFD packet to send [08:34:56]OFD Sender: No OFD packet to send [08:35:01]OFD Sender: No OFD packet to send [08:35:06]OFD Sender: No OFD packet to send [08:35:11]OFD Sender: No OFD packet to send [08:35:16]OFD Sender: No OFD packet to send [08:35:21]OFD Sender: No OFD packet to send [08:35:26]OFD Sender: No OFD packet to send [08:35:31]OFD Sender: No OFD packet to send [08:35:36]OFD Sender: No OFD packet to send [08:35:41]OFD Sender: No OFD packet to send [08:35:44]accept exits with 9 [08:35:44]New connection [08:35:44]New thread 3066686820 created [08:35:44]Thread 3066543460 joined [08:35:44]Waiting for new connection... [08:35:44] Sock 9.Parse request [08:35:44]Sock 9.Check first char [08:35:44]Sock 9.First char is OK [08:35:44]request: POST /json_proto HTTP/1.0 [08:35:44]Method: POST [08:35:44]URL: /json_proto [08:35:44]Method is POST - this is cgi request [08:35:44]url: /json_proto [08:35:44]query_string will be loaded in cgi processing [08:35:44]execute_cgi json_proto POST (null) [08:35:44]execute_cgi path=json_proto method=POST [08:35:44]POST find Content-Length [08:35:44]Host: 172.17.36.132:8080 [08:35:44]Content-Length: 1145 [08:35:44]Content-Type: application/json [08:35:44] [08:35:44]POST finish read [08:35:44]Found Content-Length = 1145 [08:35:44]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706340\u000A03.06.2024 08:12\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 63\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 20.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 1338.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30111795\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:35:44]execute_script... [08:35:44]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706340\u000A03.06.2024 08:12\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 63\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 20.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 1338.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30111795\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:35:44]POST & json_proto [08:35:44]process_json_proto [08:35:44]json parsed OK: [08:35:44]protocol is kg_v1.0 [08:35:44]action value=print_text [08:35:44]process_action print_text [08:35:44]cmd_print_text [08:35:44]ExternCall_PrintAddStr [08:35:44]wPrintStart [08:35:44]Write to MH i2c: 01 00 00 C3 1F E2 [08:35:44]Write i2c OK [08:35:44]MH_I2C_Read... [08:35:44]Read from MH i2c: 01 [08:35:44]MH_I2C_Read... [08:35:44]Read from MH i2c: 01 07 00 [08:35:44]MH_I2C_Read... [08:35:44]Read from MH i2c: 01 07 00 C3 1F 00 00 00 00 00 FF 0F F7 [08:35:44]RasterBufferAndPrint [08:35:44]line *****ТОВАРНЫЙ ЧЕК***** [08:35:44]line АЗС 62 [08:35:44]line Партнер нефть [08:35:44]line 02508201610067 [08:35:44]line Кассир : Балаев А. [08:35:44]line Счет N : (1)706340 [08:35:44]line 03.06.2024 08:12 [08:35:44]line ПРОДАЖА [08:35:44]line ТРК (МРК, ГНК): 63 [08:35:44]line Вид ГСМ : 2710124130 [08:35:44]line Аи-92-К-4 [08:35:44]line 20.000 x 66.90 [08:35:44]line ИТОГ: 1338.00 [08:35:44]line Тип оплаты: Талоны: ТК ГПНА Online [08:35:44]line 30111795 [08:35:44]line ______________________ [08:35:44]line (подпись) [08:35:44]written 0, free lines is 4095 [08:35:44]Write to MH i2c: 01 00 00 D7 1F F6 [08:35:44]Write i2c OK [08:35:44]MH_I2C_Read... [08:35:44]Read from MH i2c: 01 [08:35:44]MH_I2C_Read... [08:35:44]Read from MH i2c: 01 07 00 [08:35:44]MH_I2C_Read... [08:35:44]Read from MH i2c: 01 07 00 D7 1F 00 00 00 00 00 0F 0E 1A [08:35:44]RasterBufferAndPrint [08:35:44]line [08:35:44]line [08:35:44]line [08:35:44]line [08:35:44]line [08:35:44]written 0, free lines is 3601 [08:35:44]MH_Cut [08:35:44]Write to MH i2c: D1 01 00 DE 1F 01 CF [08:35:44]Write i2c OK [08:35:44]MH_I2C_Read... [08:35:44]Read from MH i2c: D1 [08:35:44]MH_I2C_Read... [08:35:44]Read from MH i2c: D1 01 00 [08:35:44]MH_I2C_Read... [08:35:44]Read from MH i2c: D1 01 00 DE 1F 00 CE [08:35:44]Write to MH i2c: 01 00 00 DF 1F FE [08:35:44]Write i2c OK [08:35:44]MH_I2C_Read... [08:35:44]*** Cut start [08:35:44]*** Partial cut [08:35:44]*** CUTSNS_PIN = 1 [08:35:44]*** CUTSNS_PIN = 0 [08:35:45]*** Brake cut motor [08:35:45]Read from MH i2c: 01 [08:35:45]MH_I2C_Read... [08:35:45]*** Stop cut motor [08:35:45]*** Cut end [08:35:45]Read from MH i2c: 01 07 00 [08:35:45]MH_I2C_Read... [08:35:45]Read from MH i2c: 01 07 00 DF 1F 00 00 00 00 00 FF 0F 13 [08:35:45]process_action print_text done [08:35:45]requested_data is exist [08:35:45]produce_requested_data [08:35:45]requested_item fm.sn is exist - process it [08:35:45]wFMCommunicate request_size=4 [08:35:45]MH_SAM_APDU [08:35:45]CAPDU: 80 11 00 00 [08:35:45]Write to MH i2c: E2 08 00 E0 1F 80 11 00 00 00 00 00 00 79 [08:35:45]Write i2c OK [08:35:45]MH_I2C_Read... [08:35:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:35:45]Read from MH i2c: E2 [08:35:45]MH_I2C_Read... [08:35:45]Read from MH i2c: E2 17 00 [08:35:45]MH_I2C_Read... [08:35:45]Read from MH i2c: E2 17 00 E0 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 C4 [08:35:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [08:35:45]wFMCommunicate OK [08:35:45]requested_item fd.num is exist - process it [08:35:45]SAM_PROTO_GetFieldsCounters [08:35:45]wFMCommunicate request_size=4 [08:35:45]MH_SAM_APDU [08:35:45]CAPDU: 80 13 00 00 [08:35:45]Write to MH i2c: E2 08 00 E1 1F 80 13 00 00 00 00 00 00 7C [08:35:45]Write i2c OK [08:35:45]MH_I2C_Read... [08:35:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:35:45]Read from MH i2c: E2 [08:35:45]MH_I2C_Read... [08:35:45]Read from MH i2c: E2 62 00 [08:35:45]MH_I2C_Read... [08:35:45]Read from MH i2c: E2 62 00 E1 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 AD 0A 01 00 0E 04 04 00 44 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 C6 [08:35:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 AD 0A 01 00 0E 04 04 00 44 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 [08:35:45]wFMCommunicate OK [08:35:45]SAM_PROTO_GetFieldsCounters done [08:35:45]requested_item shift.num is exist - process it [08:35:45]requested_item shift.opened is exist - process it [08:35:45]req_shift_opened [08:35:45]FM_GetShiftState [08:35:45]SAM_PROTO_GetShiftState [08:35:45]wFMCommunicate request_size=4 [08:35:45]MH_SAM_APDU [08:35:45]CAPDU: 80 13 01 00 [08:35:45]Write to MH i2c: E2 08 00 E2 1F 80 13 01 00 00 00 00 00 7E [08:35:45]Write i2c OK [08:35:45]MH_I2C_Read... [08:35:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:35:45]Read from MH i2c: E2 [08:35:45]MH_I2C_Read... [08:35:45]Read from MH i2c: E2 0E 00 [08:35:45]MH_I2C_Read... [08:35:45]Read from MH i2c: E2 0E 00 E2 1F 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 59 [08:35:45]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [08:35:45]wFMCommunicate OK [08:35:45]SAM_PROTO_GetShiftState done [08:35:45]FM_GetShiftState done [08:35:45]req_shift_opened done [08:35:45]requested_item shift.open_date is exist - process it [08:35:45]req_shift_open_date [08:35:45]req_shift_open_date done [08:35:45]produce_requested_data done [08:35:45]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68269,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [08:35:45]process_action_free print_text [08:35:45]json_value_free [08:35:45]json_value_free done [08:35:45]process_json_proto returns [08:35:45]Send response to host [08:35:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68269,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [08:35:45]free response buf [08:35:45]execute_script done [08:35:45]execute_script returns [08:35:45]free content buf [08:35:45]Sock 9.Close socket [08:35:45]Sock 9.Thread stoped [08:35:46]OFD Sender: No OFD packet to send [08:35:51]OFD Sender: No OFD packet to send [08:35:56]OFD Sender: No OFD packet to send [08:36:01]OFD Sender: No OFD packet to send [08:36:06]OFD Sender: No OFD packet to send [08:36:11]OFD Sender: No OFD packet to send [08:36:16]OFD Sender: No OFD packet to send [08:36:21]OFD Sender: No OFD packet to send [08:36:26]OFD Sender: No OFD packet to send [08:36:31]OFD Sender: No OFD packet to send [08:36:36]OFD Sender: No OFD packet to send [08:36:40]accept exits with 7 [08:36:40]New connection [08:36:40]New thread 3066543460 created [08:36:40]Thread 3066686820 joined [08:36:40]Waiting for new connection... [08:36:40] Sock 7.Parse request [08:36:40]Sock 7.Check first char [08:36:40]Sock 7.First char is OK [08:36:40]request: POST /json_proto HTTP/1.0 [08:36:40]Method: POST [08:36:40]URL: /json_proto [08:36:40]Method is POST - this is cgi request [08:36:40]url: /json_proto [08:36:40]query_string will be loaded in cgi processing [08:36:40]execute_cgi json_proto POST (null) [08:36:40]execute_cgi path=json_proto method=POST [08:36:40]POST find Content-Length [08:36:40]Host: 172.17.36.132:8080 [08:36:40]Content-Length: 1145 [08:36:40]Content-Type: application/json [08:36:40] [08:36:40]POST finish read [08:36:40]Found Content-Length = 1145 [08:36:40]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706341\u000A03.06.2024 08:13\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 53\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 15.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 1003.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30111795\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:36:40]execute_script... [08:36:40]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706341\u000A03.06.2024 08:13\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 53\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 15.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 1003.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30111795\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:36:40]POST & json_proto [08:36:40]process_json_proto [08:36:40]json parsed OK: [08:36:40]protocol is kg_v1.0 [08:36:40]action value=print_text [08:36:40]process_action print_text [08:36:40]cmd_print_text [08:36:40]ExternCall_PrintAddStr [08:36:40]wPrintStart [08:36:40]Write to MH i2c: 01 00 00 E3 1F 02 [08:36:40]Write i2c OK [08:36:40]MH_I2C_Read... [08:36:40]Read from MH i2c: 01 [08:36:40]MH_I2C_Read... [08:36:40]Read from MH i2c: 01 07 00 [08:36:40]MH_I2C_Read... [08:36:40]Read from MH i2c: 01 07 00 E3 1F 00 00 00 00 00 FF 0F 17 [08:36:40]RasterBufferAndPrint [08:36:40]line *****ТОВАРНЫЙ ЧЕК***** [08:36:40]line АЗС 62 [08:36:40]line Партнер нефть [08:36:40]line 02508201610067 [08:36:40]line Кассир : Балаев А. [08:36:40]line Счет N : (1)706341 [08:36:40]line 03.06.2024 08:13 [08:36:40]line ПРОДАЖА [08:36:40]line ТРК (МРК, ГНК): 53 [08:36:40]line Вид ГСМ : 2710124130 [08:36:40]line Аи-92-К-4 [08:36:40]line 15.000 x 66.90 [08:36:40]line ИТОГ: 1003.50 [08:36:40]line Тип оплаты: Талоны: ТК ГПНА Online [08:36:40]line 30111795 [08:36:40]line ______________________ [08:36:40]line (подпись) [08:36:40]written 0, free lines is 4095 [08:36:40]Write to MH i2c: 01 00 00 F7 1F 16 [08:36:40]Write i2c OK [08:36:40]MH_I2C_Read... [08:36:40]Read from MH i2c: 01 [08:36:40]MH_I2C_Read... [08:36:40]Read from MH i2c: 01 07 00 [08:36:40]MH_I2C_Read... [08:36:40]Read from MH i2c: 01 07 00 F7 1F 00 00 00 00 00 0F 0E 3A [08:36:40]RasterBufferAndPrint [08:36:40]line [08:36:40]line [08:36:40]line [08:36:40]line [08:36:40]line [08:36:40]written 0, free lines is 3600 [08:36:40]MH_Cut [08:36:40]Write to MH i2c: D1 01 00 FE 1F 01 EF [08:36:40]Write i2c OK [08:36:40]MH_I2C_Read... [08:36:40]Read from MH i2c: D1 [08:36:40]MH_I2C_Read... [08:36:40]Read from MH i2c: D1 01 00 [08:36:40]MH_I2C_Read... [08:36:40]Read from MH i2c: D1 01 00 FE 1F 00 EE [08:36:40]Write to MH i2c: 01 00 00 FF 1F 1E [08:36:40]Write i2c OK [08:36:40]MH_I2C_Read... [08:36:41]*** Cut start [08:36:41]*** Partial cut [08:36:41]*** CUTSNS_PIN = 1 [08:36:41]*** CUTSNS_PIN = 0 [08:36:41]OFD Sender: No OFD packet to send [08:36:41]*** Brake cut motor [08:36:41]Read from MH i2c: 01 [08:36:41]MH_I2C_Read... [08:36:41]*** Stop cut motor [08:36:41]*** Cut end [08:36:41]Read from MH i2c: 01 07 00 [08:36:41]MH_I2C_Read... [08:36:41]Read from MH i2c: 01 07 00 FF 1F 00 00 00 00 00 FF 0F 33 [08:36:41]process_action print_text done [08:36:41]requested_data is exist [08:36:41]produce_requested_data [08:36:41]requested_item fm.sn is exist - process it [08:36:41]wFMCommunicate request_size=4 [08:36:41]MH_SAM_APDU [08:36:41]CAPDU: 80 11 00 00 [08:36:41]Write to MH i2c: E2 08 00 00 20 80 11 00 00 00 00 00 00 9A [08:36:41]Write i2c OK [08:36:41]MH_I2C_Read... [08:36:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:36:41]Read from MH i2c: E2 [08:36:41]MH_I2C_Read... [08:36:41]Read from MH i2c: E2 17 00 [08:36:41]MH_I2C_Read... [08:36:41]Read from MH i2c: E2 17 00 00 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 E5 [08:36:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [08:36:41]wFMCommunicate OK [08:36:41]requested_item fd.num is exist - process it [08:36:41]SAM_PROTO_GetFieldsCounters [08:36:41]wFMCommunicate request_size=4 [08:36:41]MH_SAM_APDU [08:36:41]CAPDU: 80 13 00 00 [08:36:41]Write to MH i2c: E2 08 00 01 20 80 13 00 00 00 00 00 00 9D [08:36:41]Write i2c OK [08:36:41]MH_I2C_Read... [08:36:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:36:41]Read from MH i2c: E2 [08:36:41]MH_I2C_Read... [08:36:41]Read from MH i2c: E2 62 00 [08:36:41]MH_I2C_Read... [08:36:41]Read from MH i2c: E2 62 00 01 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 AD 0A 01 00 0E 04 04 00 44 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 E7 [08:36:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 AD 0A 01 00 0E 04 04 00 44 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 [08:36:41]wFMCommunicate OK [08:36:41]SAM_PROTO_GetFieldsCounters done [08:36:41]requested_item shift.num is exist - process it [08:36:41]requested_item shift.opened is exist - process it [08:36:41]req_shift_opened [08:36:41]FM_GetShiftState [08:36:41]SAM_PROTO_GetShiftState [08:36:41]wFMCommunicate request_size=4 [08:36:41]MH_SAM_APDU [08:36:41]CAPDU: 80 13 01 00 [08:36:41]Write to MH i2c: E2 08 00 02 20 80 13 01 00 00 00 00 00 9F [08:36:41]Write i2c OK [08:36:41]MH_I2C_Read... [08:36:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:36:41]Read from MH i2c: E2 [08:36:41]MH_I2C_Read... [08:36:41]Read from MH i2c: E2 0E 00 [08:36:41]MH_I2C_Read... [08:36:41]Read from MH i2c: E2 0E 00 02 20 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 7A [08:36:41]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [08:36:41]wFMCommunicate OK [08:36:41]SAM_PROTO_GetShiftState done [08:36:41]FM_GetShiftState done [08:36:41]req_shift_opened done [08:36:41]requested_item shift.open_date is exist - process it [08:36:41]req_shift_open_date [08:36:41]req_shift_open_date done [08:36:41]produce_requested_data done [08:36:41]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68269,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [08:36:41]process_action_free print_text [08:36:41]json_value_free [08:36:41]json_value_free done [08:36:41]process_json_proto returns [08:36:41]Send response to host [08:36:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68269,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [08:36:41]free response buf [08:36:41]execute_script done [08:36:41]execute_script returns [08:36:41]free content buf [08:36:41]Sock 7.Close socket [08:36:41]Sock 7.Thread stoped [08:36:46]OFD Sender: No OFD packet to send [08:36:51]OFD Sender: No OFD packet to send [08:36:56]OFD Sender: No OFD packet to send [08:37:01]OFD Sender: No OFD packet to send [08:37:06]OFD Sender: No OFD packet to send [08:37:11]OFD Sender: No OFD packet to send [08:37:16]OFD Sender: No OFD packet to send [08:37:21]OFD Sender: No OFD packet to send [08:37:26]OFD Sender: No OFD packet to send [08:37:31]OFD Sender: No OFD packet to send [08:37:36]OFD Sender: No OFD packet to send [08:37:41]OFD Sender: No OFD packet to send [08:37:46]OFD Sender: No OFD packet to send [08:37:51]OFD Sender: No OFD packet to send [08:37:56]OFD Sender: No OFD packet to send [08:38:01]OFD Sender: No OFD packet to send [08:38:06]OFD Sender: No OFD packet to send [08:38:11]OFD Sender: No OFD packet to send [08:38:16]OFD Sender: No OFD packet to send [08:38:21]OFD Sender: No OFD packet to send [08:38:26]OFD Sender: No OFD packet to send [08:38:31]OFD Sender: No OFD packet to send [08:38:36]OFD Sender: No OFD packet to send [08:38:41]OFD Sender: No OFD packet to send [08:38:46]OFD Sender: No OFD packet to send [08:38:51]OFD Sender: No OFD packet to send [08:38:56]OFD Sender: No OFD packet to send [08:39:01]OFD Sender: No OFD packet to send [08:39:06]OFD Sender: No OFD packet to send [08:39:11]OFD Sender: No OFD packet to send [08:39:16]OFD Sender: No OFD packet to send [08:39:21]OFD Sender: No OFD packet to send [08:39:26]OFD Sender: No OFD packet to send [08:39:31]OFD Sender: No OFD packet to send [08:39:36]OFD Sender: No OFD packet to send [08:39:41]OFD Sender: No OFD packet to send [08:39:46]OFD Sender: No OFD packet to send [08:39:51]OFD Sender: No OFD packet to send [08:39:56]OFD Sender: No OFD packet to send [08:40:01]OFD Sender: No OFD packet to send [08:40:06]OFD Sender: No OFD packet to send [08:40:11]OFD Sender: No OFD packet to send [08:40:16]OFD Sender: No OFD packet to send [08:40:21]OFD Sender: No OFD packet to send [08:40:26]OFD Sender: No OFD packet to send [08:40:31]OFD Sender: No OFD packet to send [08:40:36]OFD Sender: No OFD packet to send [08:40:41]OFD Sender: No OFD packet to send [08:40:46]OFD Sender: No OFD packet to send [08:40:51]OFD Sender: No OFD packet to send [08:40:56]OFD Sender: No OFD packet to send [08:41:01]OFD Sender: No OFD packet to send [08:41:06]OFD Sender: No OFD packet to send [08:41:11]OFD Sender: No OFD packet to send [08:41:16]OFD Sender: No OFD packet to send [08:41:21]OFD Sender: No OFD packet to send [08:41:26]OFD Sender: No OFD packet to send [08:41:31]OFD Sender: No OFD packet to send [08:41:36]OFD Sender: No OFD packet to send [08:41:41]OFD Sender: No OFD packet to send [08:41:46]OFD Sender: No OFD packet to send [08:41:51]OFD Sender: No OFD packet to send [08:41:56]OFD Sender: No OFD packet to send [08:42:01]OFD Sender: No OFD packet to send [08:42:06]OFD Sender: No OFD packet to send [08:42:11]OFD Sender: No OFD packet to send [08:42:16]OFD Sender: No OFD packet to send [08:42:21]OFD Sender: No OFD packet to send [08:42:26]OFD Sender: No OFD packet to send [08:42:31]OFD Sender: No OFD packet to send [08:42:36]OFD Sender: No OFD packet to send [08:42:41]OFD Sender: No OFD packet to send [08:42:46]OFD Sender: No OFD packet to send [08:42:51]OFD Sender: No OFD packet to send [08:42:56]OFD Sender: No OFD packet to send [08:43:01]OFD Sender: No OFD packet to send [08:43:06]OFD Sender: No OFD packet to send [08:43:11]OFD Sender: No OFD packet to send [08:43:16]OFD Sender: No OFD packet to send [08:43:21]OFD Sender: No OFD packet to send [08:43:26]OFD Sender: No OFD packet to send [08:43:31]OFD Sender: No OFD packet to send [08:43:36]OFD Sender: No OFD packet to send [08:43:41]OFD Sender: No OFD packet to send [08:43:46]OFD Sender: No OFD packet to send [08:43:51]OFD Sender: No OFD packet to send [08:43:56]OFD Sender: No OFD packet to send [08:44:01]OFD Sender: No OFD packet to send [08:44:06]OFD Sender: No OFD packet to send [08:44:11]OFD Sender: No OFD packet to send [08:44:16]OFD Sender: No OFD packet to send [08:44:21]OFD Sender: No OFD packet to send [08:44:26]OFD Sender: No OFD packet to send [08:44:31]OFD Sender: No OFD packet to send [08:44:36]OFD Sender: No OFD packet to send [08:44:41]OFD Sender: No OFD packet to send [08:44:46]OFD Sender: No OFD packet to send [08:44:51]OFD Sender: No OFD packet to send [08:44:56]OFD Sender: No OFD packet to send [08:45:01]OFD Sender: No OFD packet to send [08:45:04]accept exits with 9 [08:45:04]New connection [08:45:04]New thread 3066686820 created [08:45:04]Thread 3066543460 joined [08:45:04]Waiting for new connection... [08:45:04] Sock 9.Parse request [08:45:04]Sock 9.Check first char [08:45:04]Sock 9.First char is OK [08:45:04]request: POST /json_proto HTTP/1.0 [08:45:04]Method: POST [08:45:04]URL: /json_proto [08:45:04]Method is POST - this is cgi request [08:45:04]url: /json_proto [08:45:04]query_string will be loaded in cgi processing [08:45:04]execute_cgi json_proto POST (null) [08:45:04]execute_cgi path=json_proto method=POST [08:45:04]POST find Content-Length [08:45:04]Host: 172.17.36.132:8080 [08:45:04]Content-Length: 840 [08:45:04]Content-Type: application/json [08:45:04] [08:45:04]POST finish read [08:45:04]Found Content-Length = 840 [08:45:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706342", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.000, "sum" : 334.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 334.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:45:04]execute_script... [08:45: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)706342", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.000, "sum" : 334.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 334.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:45:04]POST & json_proto [08:45:04]process_json_proto [08:45:04]json parsed OK: [08:45:04]protocol is kg_v1.0 [08:45:04]action value=close_receipt [08:45:04]process_action close_receipt [08:45:04]cmd_close_receipt [08:45:04]MH_GetDate [08:45:04]Write to MH i2c: F0 00 00 03 20 12 [08:45:04]Write i2c OK [08:45:04]MH_I2C_Read... [08:45:04]Read from MH i2c: F0 [08:45:04]MH_I2C_Read... [08:45:04]Read from MH i2c: F0 09 00 [08:45:04]MH_I2C_Read... [08:45:04]Read from MH i2c: F0 09 00 03 20 00 94 82 5D 66 B2 22 B0 64 DC [08:45:04]GetLastDocTimeStamp 1717403497 [08:45:04]current date 1717404308 [08:45:04]FM_GetShiftState [08:45:04]SAM_PROTO_GetShiftState [08:45:04]wFMCommunicate request_size=4 [08:45:04]MH_SAM_APDU [08:45:04]CAPDU: 80 13 01 00 [08:45:04]Write to MH i2c: E2 08 00 04 20 80 13 01 00 00 00 00 00 A1 [08:45:04]Write i2c OK [08:45:04]MH_I2C_Read... [08:45:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:45:04]Read from MH i2c: E2 [08:45:04]MH_I2C_Read... [08:45:04]Read from MH i2c: E2 0E 00 [08:45:04]MH_I2C_Read... [08:45:04]Read from MH i2c: E2 0E 00 04 20 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 7C [08:45:04]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [08:45:04]wFMCommunicate OK [08:45:04]SAM_PROTO_GetShiftState done [08:45:04]FM_GetShiftState done [08:45:04]opened in 1717378033 [08:45:04]opened+sec_in_day 1717464433 [08:45:04]quantity*price = 33450 [08:45:04]sum+1 = 33451 [08:45:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 334.50 НСП 1% : 2.96 НДС 12% : 35.52 Наличными: 0.00 Безнал.: 334.50 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 16 03.06.2024 08:45 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68270 ФПД: 95335143448405 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T084508&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68270&fm=95335143448405&tin=02508201610067®Number=0000000000098096&sum=33450 [08:45:05]StoreToDocumentArchive [08:45:05]shift 324 fd 68270 [08:45:05]save to /storage/0324/doc_00068270 [08:45:05]save last doc name /storage/0324/doc_00068270 to /storage/kkm_last_doc_name [08:45:05]save OK [08:45:05]Clear old archive folders... [08:45:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:45:05]tlvbuf is 004624E0 [08:45:05]SAM_PROTO_ClearQueue [08:45:05]wFMCommunicate request_size=4 [08:45:05]MH_SAM_APDU [08:45:05]CAPDU: 80 09 00 00 [08:45:05]Write to MH i2c: E2 08 00 11 20 80 09 00 00 00 00 00 00 A3 [08:45:05]Write i2c OK [08:45:05]MH_I2C_Read... [08:45:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:45:05]Read from MH i2c: E2 [08:45:05]MH_I2C_Read... [08:45:05]Read from MH i2c: E2 03 00 [08:45:05]MH_I2C_Read... [08:45:05]Read from MH i2c: E2 03 00 11 20 00 90 00 A5 [08:45:05]RAPDU: 90 00 [08:45:05]wFMCommunicate OK [08:45:05]SAM_PROTO_ClearQueue done [08:45:05]KKMCreateOFDPacket [08:45:05]OFDProtocolAddRootSTLVToBuf [08:45:05]FM_MakeSignedData [08:45:05]FM_MakeSignedData [08:45:05]SAM_PROTO_SignData [08:45:05]wFMCommunicate request_size=4 [08:45:05]MH_SAM_APDU [08:45:05]CAPDU: 80 0D 01 02 [08:45:05]Write to MH i2c: E2 08 00 12 20 80 0D 01 02 00 00 00 00 AB [08:45:05]Write i2c OK [08:45:05]MH_I2C_Read... [08:45:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:45:05]Read from MH i2c: E2 [08:45:05]MH_I2C_Read... [08:45:05]Read from MH i2c: E2 03 00 [08:45:05]MH_I2C_Read... [08:45:05]Read from MH i2c: E2 03 00 12 20 00 90 00 A6 [08:45:05]RAPDU: 90 00 [08:45:05]wFMCommunicate OK [08:45:05]wFMCommunicate request_size=255 [08:45:05]MH_SAM_APDU [08:45: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 34 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 AA 82 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AA 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AA 82 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 94 82 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 AE 0A 01 00 35 04 06 00 56 [08:45:05]Write to MH i2c: E2 02 01 13 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 AA 82 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AA 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AA 82 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 94 82 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 AE 0A 01 00 35 04 06 00 56 00 00 61 [08:45:05]Write i2c OK [08:45:05]MH_I2C_Read... [08:45:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:45:06]Read from MH i2c: E2 [08:45:06]MH_I2C_Read... [08:45:06]Read from MH i2c: E2 03 00 [08:45:06]MH_I2C_Read... [08:45:06]Read from MH i2c: E2 03 00 13 20 00 90 00 A7 [08:45:06]RAPDU: 90 00 [08:45:06]wFMCommunicate OK [08:45:06]wFMCommunicate request_size=10 [08:45:06]MH_SAM_APDU [08:45:06]CAPDU: 80 0D 02 02 05 B4 F1 5C 1F 55 [08:45:06]Write to MH i2c: E2 0D 00 14 20 80 0D 02 02 05 00 B4 F1 5C 1F 55 00 00 2D [08:45:06]Write i2c OK [08:45:06]MH_I2C_Read... [08:45:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:45:06]Read from MH i2c: E2 [08:45:06]MH_I2C_Read... [08:45:06]Read from MH i2c: E2 03 00 [08:45:06]MH_I2C_Read... [08:45:06]Read from MH i2c: E2 03 00 14 20 00 90 00 A8 [08:45:06]RAPDU: 90 00 [08:45:06]wFMCommunicate OK [08:45:06]wFMCommunicate request_size=4 [08:45:06]MH_SAM_APDU [08:45:06]CAPDU: 80 0D 03 02 [08:45:06]Write to MH i2c: E2 08 00 15 20 80 0D 03 02 00 00 00 00 B0 [08:45:06]Write i2c OK [08:45:06]MH_I2C_Read... [08:45:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:45:06]Read from MH i2c: E2 [08:45:06]MH_I2C_Read... [08:45:06]Read from MH i2c: E2 0B 00 [08:45:06]MH_I2C_Read... [08:45:06]Read from MH i2c: E2 0B 00 15 20 00 79 8D 48 42 5F 2C AC 53 90 00 CB [08:45:06]RAPDU: 79 8D 48 42 5F 2C AC 53 90 00 [08:45:06]wFMCommunicate OK [08:45:06]SAM_PROTO_SignData done [08:45:06]FM_MakeSignedData done [08:45:06]CreateOFDProtocolMessage [08:45:06]wFMCommunicate request_size=4 [08:45:06]MH_SAM_APDU [08:45:06]CAPDU: 80 11 00 00 [08:45:06]Write to MH i2c: E2 08 00 16 20 80 11 00 00 00 00 00 00 B0 [08:45:06]Write i2c OK [08:45:06]MH_I2C_Read... [08:45:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:45:06]Read from MH i2c: E2 [08:45:06]MH_I2C_Read... [08:45:06]Read from MH i2c: E2 17 00 [08:45:06]MH_I2C_Read... [08:45:06]Read from MH i2c: E2 17 00 16 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 FB [08:45:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [08:45:06]wFMCommunicate OK [08:45:06]CreateOFDProtocolMessage done [08:45:06]OFDSenderStorePacket 68270 [08:45:06]StoreOFDPacket docnum=68270 [08:45:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 1A 56 07 01 2C 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 AA 82 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AA 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AA 82 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 94 82 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 AE 0A 01 00 35 04 06 00 56 B4 F1 5C 1F 55 79 8D 48 42 5F 2C AC 53 [08:45:06]CheckFolder [08:45:06]dirname=/storage/ofd_packets [08:45:06]CheckFolder done [08:45:06]ProducePacketName [08:45:06]name=ofd_packets/00068270 [08:45:06]NVStorageSaveData ofd_packets/00068270 [08:45:06]File name is /storage/ofd_packets/00068270 [08:45:06]Write 301 bytes [08:45:06]NVStorageSaveData done [08:45:06]OFDSenderStorePacket done [08:45:06]KKMCreateOFDPacket done [08:45:06]NVStorageSaveData kkm_last_timestamp [08:45:06]File name is /storage/kkm_last_timestamp [08:45:06]Write 4 bytes [08:45:06]NVStorageSaveData done [08:45:06]ExternCall_PrintAddStr [08:45:06]wPrintStart [08:45:06]Write to MH i2c: 01 00 00 17 20 37 [08:45:06]Write i2c OK [08:45:06]MH_I2C_Read... [08:45:06]Read from MH i2c: 01 [08:45:06]MH_I2C_Read... [08:45:06]Read from MH i2c: 01 07 00 [08:45:06]MH_I2C_Read... [08:45:06]Read from MH i2c: 01 07 00 17 20 00 00 00 00 00 FF 0F 4C [08:45:06]RasterBufferAndPrint [08:45:06]line Счет N : (1)706342 [08:45:06]line ИНН: 02508201610067 [08:45:06]line Контрольно-Кассовый Чек [08:45:06]line ПРОДАЖА [08:45:06]line ТРК (МРК, ГНК) : 53 [08:45:06]line Товар: 2710124130 [08:45:06]line Аи-92-К-4 [08:45:06]line 5.000 * 66.90 [08:45:06]line = 334.50 [08:45:06]line НДС 12% НСП 1% [08:45:06]line > о реализуемом товаре [08:45:06]line ИТОГО: 334.50 [08:45:06]line НСП 1% : 2.96 [08:45:06]line НДС 12% : 35.52 [08:45:06]line Наличными: 0.00 [08:45:06]line Безнал.: 334.50 [08:45:06]line Место: АЗС № 62 "Партнер Нефть" [08:45:06]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [08:45:06]line СНО: Общий режим [08:45:06]line Чек 16 03.06.2024 08:45 [08:45:06]line Смена: 324 ФФД: 1.0 [08:45:06]line ЗНМ: 0300000181 [08:45:06]line РНМ: 0000000000098096 [08:45:06]line Версия ККМ: 001 [08:45:06]line Платежная система: АКБ Кыргызстан [08:45:06]line ФМ: 0000000000965400 [08:45:06]line ФД: 68270 [08:45:06]line ФПД: 95335143448405 [08:45:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T084508&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68270&fm=95335143448405&tin=02508201610067®Number=0000000000098096&sum=33450 [08:45:06]OFD Sender: Processing packet 68270 [packets to send 26, broken 25] [08:45:06]ProducePacketName [08:45:06]name=ofd_packets/00068270 [08:45:06]OFD Sender: To server: pG, [08:45:06]CommunicateWithHost lk.salyk.kg:30040 [08:45:06]ConnectInit lk.salyk.kg [08:45:06]written 0, free lines is 4095 [08:45:06]Connected sock=10 [08:45:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 1A 56 07 01 2C 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 AA 82 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AA 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AA 82 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 94 82 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 AE 0A 01 00 35 04 06 00 56 B4 F1 5C 1F 55 79 8D 48 42 5F 2C AC 53 [08:45:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 FC 0D 47 00 16 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 AE 0A 01 00 F4 03 04 00 91 29 5D 66 B6 04 01 00 00 66 07 42 A1 A0 56 C2 82 [08:45:06]CommunicateWithHost err = 0 [08:45:06]CheckOFDResponse [08:45:06]1017 (14) - 77093643461234 [08:45:06]1041 (16) - 0000000000965400 [08:45:06]1040 (4) - 68270 [08:45:06]1012 (4) - 03.06.2024 02:25 [08:45:06]1206 (1) - 0 [08:45:06]OFD Sender: Remove packet 68270 [08:45:06]ProducePacketName [08:45:06]name=ofd_packets/00068270 [08:45:06]NVStorageDeleteData [08:45:07]Write to MH i2c: 01 00 00 41 20 61 [08:45:07]Write i2c OK [08:45:07]MH_I2C_Read... [08:45:07]Read from MH i2c: 01 [08:45:07]MH_I2C_Read... [08:45:07]Read from MH i2c: 01 07 00 [08:45:07]MH_I2C_Read... [08:45:07]Read from MH i2c: 01 07 00 41 20 00 00 00 00 00 E4 0C 58 [08:45:07]RasterBufferAndPrint [08:45:07]line [08:45:07]line [08:45:07]line [08:45:07]line [08:45:07]line [08:45:07]written 0, free lines is 3306 [08:45:07]MH_Cut [08:45:07]Write to MH i2c: D1 01 00 48 20 01 3A [08:45:07]Write i2c OK [08:45:07]MH_I2C_Read... [08:45:07]Read from MH i2c: D1 [08:45:07]MH_I2C_Read... [08:45:07]Read from MH i2c: D1 01 00 [08:45:07]MH_I2C_Read... [08:45:07]Read from MH i2c: D1 01 00 48 20 00 39 [08:45:07]Write to MH i2c: 01 00 00 49 20 69 [08:45:07]Write i2c OK [08:45:07]MH_I2C_Read... [08:45:07]OFD Sender: No OFD packet to send [08:45:07]*** Cut start [08:45:07]*** Partial cut [08:45:07]*** CUTSNS_PIN = 1 [08:45:07]*** CUTSNS_PIN = 0 [08:45:08]*** Brake cut motor [08:45:08]Read from MH i2c: 01 [08:45:08]MH_I2C_Read... [08:45:08]*** Stop cut motor [08:45:08]*** Cut end [08:45:08]Read from MH i2c: 01 07 00 [08:45:08]MH_I2C_Read... [08:45:08]Read from MH i2c: 01 07 00 49 20 00 00 00 00 00 FF 0F 7E [08:45:08]process_action close_receipt done [08:45:08]requested_data is exist [08:45:08]produce_requested_data [08:45:08]requested_item fm.sn is exist - process it [08:45:08]wFMCommunicate request_size=4 [08:45:08]MH_SAM_APDU [08:45:08]CAPDU: 80 11 00 00 [08:45:08]Write to MH i2c: E2 08 00 4A 20 80 11 00 00 00 00 00 00 E4 [08:45:08]Write i2c OK [08:45:08]MH_I2C_Read... [08:45:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:45:08]Read from MH i2c: E2 [08:45:08]MH_I2C_Read... [08:45:08]Read from MH i2c: E2 17 00 [08:45:08]MH_I2C_Read... [08:45:08]Read from MH i2c: E2 17 00 4A 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 2F [08:45:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [08:45:08]wFMCommunicate OK [08:45:08]requested_item fd.num is exist - process it [08:45:08]SAM_PROTO_GetFieldsCounters [08:45:08]wFMCommunicate request_size=4 [08:45:08]MH_SAM_APDU [08:45:08]CAPDU: 80 13 00 00 [08:45:08]Write to MH i2c: E2 08 00 4B 20 80 13 00 00 00 00 00 00 E7 [08:45:08]Write i2c OK [08:45:08]MH_I2C_Read... [08:45:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:45:08]Read from MH i2c: E2 [08:45:08]MH_I2C_Read... [08:45:08]Read from MH i2c: E2 62 00 [08:45:08]MH_I2C_Read... [08:45:08]Read from MH i2c: E2 62 00 4B 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 AE 0A 01 00 0E 04 04 00 44 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 35 [08:45:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 AE 0A 01 00 0E 04 04 00 44 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 [08:45:08]wFMCommunicate OK [08:45:08]SAM_PROTO_GetFieldsCounters done [08:45:08]requested_item shift.num is exist - process it [08:45:08]requested_item shift.opened is exist - process it [08:45:08]req_shift_opened [08:45:08]FM_GetShiftState [08:45:08]SAM_PROTO_GetShiftState [08:45:08]wFMCommunicate request_size=4 [08:45:08]MH_SAM_APDU [08:45:08]CAPDU: 80 13 01 00 [08:45:08]Write to MH i2c: E2 08 00 4C 20 80 13 01 00 00 00 00 00 E9 [08:45:08]Write i2c OK [08:45:08]MH_I2C_Read... [08:45:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:45:08]Read from MH i2c: E2 [08:45:08]MH_I2C_Read... [08:45:08]Read from MH i2c: E2 0E 00 [08:45:08]MH_I2C_Read... [08:45:08]Read from MH i2c: E2 0E 00 4C 20 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 C4 [08:45:08]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [08:45:08]wFMCommunicate OK [08:45:08]SAM_PROTO_GetShiftState done [08:45:08]FM_GetShiftState done [08:45:08]req_shift_opened done [08:45:08]requested_item shift.open_date is exist - process it [08:45:08]req_shift_open_date [08:45:08]req_shift_open_date done [08:45:08]produce_requested_data done [08:45:08]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68270,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [08:45:08]process_action_free close_receipt [08:45:08]json_value_free [08:45:08]json_value_free done [08:45:08]process_json_proto returns [08:45:08]Send response to host [08:45:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68270,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [08:45:08]free response buf [08:45:08]execute_script done [08:45:08]execute_script returns [08:45:08]free content buf [08:45:08]Sock 9.Close socket [08:45:08]Sock 9.Thread stoped [08:45:12]OFD Sender: No OFD packet to send [08:45:17]OFD Sender: No OFD packet to send [08:45:22]OFD Sender: No OFD packet to send [08:45:27]OFD Sender: No OFD packet to send [08:45:32]OFD Sender: No OFD packet to send [08:45:37]OFD Sender: No OFD packet to send [08:45:42]OFD Sender: No OFD packet to send [08:45:47]OFD Sender: No OFD packet to send [08:45:52]OFD Sender: No OFD packet to send [08:45:57]OFD Sender: No OFD packet to send [08:46:02]OFD Sender: No OFD packet to send [08:46:07]OFD Sender: No OFD packet to send [08:46:12]OFD Sender: No OFD packet to send [08:46:17]OFD Sender: No OFD packet to send [08:46:22]OFD Sender: No OFD packet to send [08:46:27]OFD Sender: No OFD packet to send [08:46:32]OFD Sender: No OFD packet to send [08:46:37]OFD Sender: No OFD packet to send [08:46:42]OFD Sender: No OFD packet to send [08:46:47]OFD Sender: No OFD packet to send [08:46:52]OFD Sender: No OFD packet to send [08:46:57]OFD Sender: No OFD packet to send [08:47:02]OFD Sender: No OFD packet to send [08:47:07]OFD Sender: No OFD packet to send [08:47:12]OFD Sender: No OFD packet to send [08:47:17]OFD Sender: No OFD packet to send [08:47:22]OFD Sender: No OFD packet to send [08:47:27]OFD Sender: No OFD packet to send [08:47:32]OFD Sender: No OFD packet to send [08:47:37]OFD Sender: No OFD packet to send [08:47:42]OFD Sender: No OFD packet to send [08:47:47]OFD Sender: No OFD packet to send [08:47:52]OFD Sender: No OFD packet to send [08:47:57]OFD Sender: No OFD packet to send [08:48:02]OFD Sender: No OFD packet to send [08:48:07]OFD Sender: No OFD packet to send [08:48:12]OFD Sender: No OFD packet to send [08:48:17]OFD Sender: No OFD packet to send [08:48:22]OFD Sender: No OFD packet to send [08:48:27]OFD Sender: No OFD packet to send [08:48:32]OFD Sender: No OFD packet to send [08:48:37]OFD Sender: No OFD packet to send [08:48:42]OFD Sender: No OFD packet to send [08:48:47]OFD Sender: No OFD packet to send [08:48:52]OFD Sender: No OFD packet to send [08:48:57]OFD Sender: No OFD packet to send [08:49:02]OFD Sender: No OFD packet to send [08:49:07]OFD Sender: No OFD packet to send [08:49:12]OFD Sender: No OFD packet to send [08:49:17]OFD Sender: No OFD packet to send [08:49:22]OFD Sender: No OFD packet to send [08:49:27]OFD Sender: No OFD packet to send [08:49:32]OFD Sender: No OFD packet to send [08:49:37]OFD Sender: No OFD packet to send [08:49:42]OFD Sender: No OFD packet to send [08:49:47]OFD Sender: No OFD packet to send [08:49:52]OFD Sender: No OFD packet to send [08:49:57]OFD Sender: No OFD packet to send [08:50:02]OFD Sender: No OFD packet to send [08:50:07]OFD Sender: No OFD packet to send [08:50:12]OFD Sender: No OFD packet to send [08:50:17]OFD Sender: No OFD packet to send [08:50:22]OFD Sender: No OFD packet to send [08:50:27]OFD Sender: No OFD packet to send [08:50:32]OFD Sender: No OFD packet to send [08:50:37]OFD Sender: No OFD packet to send [08:50:42]OFD Sender: No OFD packet to send [08:50:47]OFD Sender: No OFD packet to send [08:50:52]OFD Sender: No OFD packet to send [08:50:57]OFD Sender: No OFD packet to send [08:51:02]OFD Sender: No OFD packet to send [08:51:07]OFD Sender: No OFD packet to send [08:51:12]OFD Sender: No OFD packet to send [08:51:17]OFD Sender: No OFD packet to send [08:51:22]OFD Sender: No OFD packet to send [08:51:27]OFD Sender: No OFD packet to send [08:51:32]OFD Sender: No OFD packet to send [08:51:37]OFD Sender: No OFD packet to send [08:51:42]OFD Sender: No OFD packet to send [08:51:47]OFD Sender: No OFD packet to send [08:51:52]OFD Sender: No OFD packet to send [08:51:57]OFD Sender: No OFD packet to send [08:52:02]OFD Sender: No OFD packet to send [08:52:07]OFD Sender: No OFD packet to send [08:52:12]OFD Sender: No OFD packet to send [08:52:17]OFD Sender: No OFD packet to send [08:52:22]OFD Sender: No OFD packet to send [08:52:27]OFD Sender: No OFD packet to send [08:52:32]OFD Sender: No OFD packet to send [08:52:37]OFD Sender: No OFD packet to send [08:52:42]OFD Sender: No OFD packet to send [08:52:47]OFD Sender: No OFD packet to send [08:52:52]OFD Sender: No OFD packet to send [08:52:57]OFD Sender: No OFD packet to send [08:53:02]OFD Sender: No OFD packet to send [08:53:07]OFD Sender: No OFD packet to send [08:53:12]OFD Sender: No OFD packet to send [08:53:17]OFD Sender: No OFD packet to send [08:53:22]OFD Sender: No OFD packet to send [08:53:27]OFD Sender: No OFD packet to send [08:53:32]OFD Sender: No OFD packet to send [08:53:37]OFD Sender: No OFD packet to send [08:53:42]OFD Sender: No OFD packet to send [08:53:47]OFD Sender: No OFD packet to send [08:53:52]OFD Sender: No OFD packet to send [08:53:57]OFD Sender: No OFD packet to send [08:54:02]OFD Sender: No OFD packet to send [08:54:07]OFD Sender: No OFD packet to send [08:54:12]OFD Sender: No OFD packet to send [08:54:17]OFD Sender: No OFD packet to send [08:54:22]OFD Sender: No OFD packet to send [08:54:27]OFD Sender: No OFD packet to send [08:54:32]OFD Sender: No OFD packet to send [08:54:37]OFD Sender: No OFD packet to send [08:54:42]OFD Sender: No OFD packet to send [08:54:47]OFD Sender: No OFD packet to send [08:54:52]OFD Sender: No OFD packet to send [08:54:57]OFD Sender: No OFD packet to send [08:55:02]OFD Sender: No OFD packet to send [08:55:07]OFD Sender: No OFD packet to send [08:55:12]OFD Sender: No OFD packet to send [08:55:17]OFD Sender: No OFD packet to send [08:55:22]OFD Sender: No OFD packet to send [08:55:27]OFD Sender: No OFD packet to send [08:55:32]OFD Sender: No OFD packet to send [08:55:37]OFD Sender: No OFD packet to send [08:55:42]OFD Sender: No OFD packet to send [08:55:47]OFD Sender: No OFD packet to send [08:55:52]OFD Sender: No OFD packet to send [08:55:57]OFD Sender: No OFD packet to send [08:56:02]OFD Sender: No OFD packet to send [08:56:07]OFD Sender: No OFD packet to send [08:56:12]accept exits with 7 [08:56:12]New connection [08:56:12]New thread 3066543460 created [08:56:12]Thread 3066686820 joined [08:56:12]Waiting for new connection... [08:56:12] Sock 7.Parse request [08:56:12]Sock 7.Check first char [08:56:12]Sock 7.First char is OK [08:56:12]request: POST /json_proto HTTP/1.0 [08:56:12]Method: POST [08:56:12]URL: /json_proto [08:56:12]Method is POST - this is cgi request [08:56:12]url: /json_proto [08:56:12]query_string will be loaded in cgi processing [08:56:12]execute_cgi json_proto POST (null) [08:56:12]execute_cgi path=json_proto method=POST [08:56:12]POST find Content-Length [08:56:12]Host: 172.17.36.132:8080 [08:56:12]Content-Length: 841 [08:56:12]Content-Type: application/json [08:56:12] [08:56:12]POST finish read [08:56:12]Found Content-Length = 841 [08:56:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706343", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.000, "sum" : 669.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 669.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:56:12]execute_script... [08:56: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)706343", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.000, "sum" : 669.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 669.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:56:12]POST & json_proto [08:56:12]process_json_proto [08:56:12]json parsed OK: [08:56:12]protocol is kg_v1.0 [08:56:12]action value=close_receipt [08:56:12]process_action close_receipt [08:56:12]cmd_close_receipt [08:56:12]MH_GetDate [08:56:12]Write to MH i2c: F0 00 00 4D 20 5C [08:56:12]Write i2c OK [08:56:12]MH_I2C_Read... [08:56:12]Read from MH i2c: F0 [08:56:12]MH_I2C_Read... [08:56:12]Read from MH i2c: F0 09 00 [08:56:12]MH_I2C_Read... [08:56:12]Read from MH i2c: F0 09 00 4D 20 00 30 85 5D 66 B2 22 B0 64 C5 [08:56:12]GetLastDocTimeStamp 1717404308 [08:56:12]current date 1717404976 [08:56:12]FM_GetShiftState [08:56:12]SAM_PROTO_GetShiftState [08:56:12]wFMCommunicate request_size=4 [08:56:12]MH_SAM_APDU [08:56:12]CAPDU: 80 13 01 00 [08:56:12]Write to MH i2c: E2 08 00 4E 20 80 13 01 00 00 00 00 00 EB [08:56:12]Write i2c OK [08:56:12]MH_I2C_Read... [08:56:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:56:12]Read from MH i2c: E2 [08:56:12]MH_I2C_Read... [08:56:12]Read from MH i2c: E2 0E 00 [08:56:12]MH_I2C_Read... [08:56:12]Read from MH i2c: E2 0E 00 4E 20 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 C6 [08:56:12]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [08:56:12]wFMCommunicate OK [08:56:12]SAM_PROTO_GetShiftState done [08:56:12]FM_GetShiftState done [08:56:12]opened in 1717378033 [08:56:12]opened+sec_in_day 1717464433 [08:56:12]quantity*price = 66900 [08:56:12]sum+1 = 66901 [08:56:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 669.00 НСП 1% : 5.92 НДС 12% : 71.04 Наличными: 0.00 Безнал.: 669.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 17 03.06.2024 08:56 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68271 ФПД: 168268855919658 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T085616&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68271&fm=168268855919658&tin=02508201610067®Number=0000000000098096&sum=66900 [08:56:13]StoreToDocumentArchive [08:56:13]shift 324 fd 68271 [08:56:13]save to /storage/0324/doc_00068271 [08:56:13]save last doc name /storage/0324/doc_00068271 to /storage/kkm_last_doc_name [08:56:13]save OK [08:56:13]Clear old archive folders... [08:56:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:56:13]tlvbuf is B6E67900 [08:56:13]SAM_PROTO_ClearQueue [08:56:13]wFMCommunicate request_size=4 [08:56:13]MH_SAM_APDU [08:56:13]CAPDU: 80 09 00 00 [08:56:13]Write to MH i2c: E2 08 00 5B 20 80 09 00 00 00 00 00 00 ED [08:56:13]Write i2c OK [08:56:13]MH_I2C_Read... [08:56:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:56:13]Read from MH i2c: E2 [08:56:13]MH_I2C_Read... [08:56:13]Read from MH i2c: E2 03 00 [08:56:13]MH_I2C_Read... [08:56:13]Read from MH i2c: E2 03 00 5B 20 00 90 00 EF [08:56:13]RAPDU: 90 00 [08:56:13]wFMCommunicate OK [08:56:13]SAM_PROTO_ClearQueue done [08:56:13]KKMCreateOFDPacket [08:56:13]OFDProtocolAddRootSTLVToBuf [08:56:13]FM_MakeSignedData [08:56:13]FM_MakeSignedData [08:56:13]SAM_PROTO_SignData [08:56:13]wFMCommunicate request_size=4 [08:56:13]MH_SAM_APDU [08:56:13]CAPDU: 80 0D 01 02 [08:56:13]Write to MH i2c: E2 08 00 5C 20 80 0D 01 02 00 00 00 00 F5 [08:56:13]Write i2c OK [08:56:13]MH_I2C_Read... [08:56:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:56:13]Read from MH i2c: E2 [08:56:13]MH_I2C_Read... [08:56:13]Read from MH i2c: E2 03 00 [08:56:13]MH_I2C_Read... [08:56:13]Read from MH i2c: E2 03 00 5C 20 00 90 00 F0 [08:56:13]RAPDU: 90 00 [08:56:13]wFMCommunicate OK [08:56:13]wFMCommunicate request_size=255 [08:56:13]MH_SAM_APDU [08:56:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 54 05 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 30 85 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 AF 0A 01 00 35 04 06 00 99 [08:56:13]Write to MH i2c: E2 02 01 5D 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 54 05 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 30 85 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 AF 0A 01 00 35 04 06 00 99 00 00 CC [08:56:13]Write i2c OK [08:56:13]MH_I2C_Read... [08:56:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:56:13]Read from MH i2c: E2 [08:56:13]MH_I2C_Read... [08:56:13]Read from MH i2c: E2 03 00 [08:56:13]MH_I2C_Read... [08:56:13]Read from MH i2c: E2 03 00 5D 20 00 90 00 F1 [08:56:13]RAPDU: 90 00 [08:56:13]wFMCommunicate OK [08:56:13]wFMCommunicate request_size=10 [08:56:13]MH_SAM_APDU [08:56:13]CAPDU: 80 0D 02 02 05 0A 25 62 44 2A [08:56:13]Write to MH i2c: E2 0D 00 5E 20 80 0D 02 02 05 00 0A 25 62 44 2A 00 00 01 [08:56:13]Write i2c OK [08:56:13]MH_I2C_Read... [08:56:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:56:13]Read from MH i2c: E2 [08:56:13]MH_I2C_Read... [08:56:13]Read from MH i2c: E2 03 00 [08:56:13]MH_I2C_Read... [08:56:13]Read from MH i2c: E2 03 00 5E 20 00 90 00 F2 [08:56:13]RAPDU: 90 00 [08:56:13]wFMCommunicate OK [08:56:13]wFMCommunicate request_size=4 [08:56:13]MH_SAM_APDU [08:56:13]CAPDU: 80 0D 03 02 [08:56:13]Write to MH i2c: E2 08 00 5F 20 80 0D 03 02 00 00 00 00 FA [08:56:13]Write i2c OK [08:56:13]MH_I2C_Read... [08:56:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:56:13]Read from MH i2c: E2 [08:56:13]MH_I2C_Read... [08:56:13]Read from MH i2c: E2 0B 00 [08:56:13]MH_I2C_Read... [08:56:13]Read from MH i2c: E2 0B 00 5F 20 00 2B FC 41 67 A4 1E AE 01 90 00 3B [08:56:13]RAPDU: 2B FC 41 67 A4 1E AE 01 90 00 [08:56:13]wFMCommunicate OK [08:56:13]SAM_PROTO_SignData done [08:56:13]FM_MakeSignedData done [08:56:13]CreateOFDProtocolMessage [08:56:13]wFMCommunicate request_size=4 [08:56:13]MH_SAM_APDU [08:56:13]CAPDU: 80 11 00 00 [08:56:13]Write to MH i2c: E2 08 00 60 20 80 11 00 00 00 00 00 00 FA [08:56:13]Write i2c OK [08:56:13]MH_I2C_Read... [08:56:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:56:14]Read from MH i2c: E2 [08:56:14]MH_I2C_Read... [08:56:14]Read from MH i2c: E2 17 00 [08:56:14]MH_I2C_Read... [08:56:14]Read from MH i2c: E2 17 00 60 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 45 [08:56:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [08:56:14]wFMCommunicate OK [08:56:14]CreateOFDProtocolMessage done [08:56:14]OFDSenderStorePacket 68271 [08:56:14]StoreOFDPacket docnum=68271 [08:56:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 57 E1 07 01 2D B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 54 05 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 30 85 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 AF 0A 01 00 35 04 06 00 99 0A 25 62 44 2A 2B FC 41 67 A4 1E AE 01 [08:56:14]CheckFolder [08:56:14]dirname=/storage/ofd_packets [08:56:14]CheckFolder done [08:56:14]ProducePacketName [08:56:14]name=ofd_packets/00068271 [08:56:14]NVStorageSaveData ofd_packets/00068271 [08:56:14]File name is /storage/ofd_packets/00068271 [08:56:14]Write 301 bytes [08:56:14]NVStorageSaveData done [08:56:14]OFDSenderStorePacket done [08:56:14]KKMCreateOFDPacket done [08:56:14]NVStorageSaveData kkm_last_timestamp [08:56:14]File name is /storage/kkm_last_timestamp [08:56:14]Write 4 bytes [08:56:14]NVStorageSaveData done [08:56:14]ExternCall_PrintAddStr [08:56:14]wPrintStart [08:56:14]Write to MH i2c: 01 00 00 61 20 81 [08:56:14]Write i2c OK [08:56:14]MH_I2C_Read... [08:56:14]Read from MH i2c: 01 [08:56:14]MH_I2C_Read... [08:56:14]Read from MH i2c: 01 07 00 [08:56:14]MH_I2C_Read... [08:56:14]Read from MH i2c: 01 07 00 61 20 00 00 00 00 00 FF 0F 96 [08:56:14]RasterBufferAndPrint [08:56:14]line Счет N : (1)706343 [08:56:14]line ИНН: 02508201610067 [08:56:14]line Контрольно-Кассовый Чек [08:56:14]line ПРОДАЖА [08:56:14]line ТРК (МРК, ГНК) : 53 [08:56:14]line Товар: 2710124130 [08:56:14]line Аи-92-К-4 [08:56:14]line 10.000 * 66.90 [08:56:14]line = 669.00 [08:56:14]line НДС 12% НСП 1% [08:56:14]line > о реализуемом товаре [08:56:14]line ИТОГО: 669.00 [08:56:14]line НСП 1% : 5.92 [08:56:14]line НДС 12% : 71.04 [08:56:14]line Наличными: 0.00 [08:56:14]line Безнал.: 669.00 [08:56:14]line Место: АЗС № 62 "Партнер Нефть" [08:56:14]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [08:56:14]line СНО: Общий режим [08:56:14]line Чек 17 03.06.2024 08:56 [08:56:14]line Смена: 324 ФФД: 1.0 [08:56:14]line ЗНМ: 0300000181 [08:56:14]line РНМ: 0000000000098096 [08:56:14]line Версия ККМ: 001 [08:56:14]line Платежная система: АКБ Кыргызстан [08:56:14]line ФМ: 0000000000965400 [08:56:14]line ФД: 68271 [08:56:14]line ФПД: 168268855919658 [08:56:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T085616&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68271&fm=168268855919658&tin=02508201610067®Number=0000000000098096&sum=66900 [08:56:14]OFD Sender: Processing packet 68271 [packets to send 26, broken 25] [08:56:14]ProducePacketName [08:56:14]name=ofd_packets/00068271 [08:56:14]OFD Sender: To server: pG, [08:56:14]CommunicateWithHost lk.salyk.kg:30040 [08:56:14]ConnectInit lk.salyk.kg [08:56:14]written 0, free lines is 4095 [08:56:14]Connected sock=10 [08:56:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 57 E1 07 01 2D B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 54 05 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 30 85 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 AF 0A 01 00 35 04 06 00 99 0A 25 62 44 2A 2B FC 41 67 A4 1E AE 01 [08:56:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 BA 2E 47 00 93 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 AF 0A 01 00 F4 03 04 00 2D 2C 5D 66 B6 04 01 00 00 C1 03 74 FF 51 B0 B1 B7 [08:56:14]CommunicateWithHost err = 0 [08:56:14]CheckOFDResponse [08:56:14]1017 (14) - 77093643461234 [08:56:14]1041 (16) - 0000000000965400 [08:56:14]1040 (4) - 68271 [08:56:14]1012 (4) - 03.06.2024 02:36 [08:56:14]1206 (1) - 0 [08:56:14]OFD Sender: Remove packet 68271 [08:56:14]ProducePacketName [08:56:14]name=ofd_packets/00068271 [08:56:14]NVStorageDeleteData [08:56:14]Write to MH i2c: 01 00 00 8B 20 AB [08:56:14]Write i2c OK [08:56:14]MH_I2C_Read... [08:56:14]Read from MH i2c: 01 [08:56:14]MH_I2C_Read... [08:56:14]Read from MH i2c: 01 07 00 [08:56:14]MH_I2C_Read... [08:56:14]Read from MH i2c: 01 07 00 8B 20 00 00 00 00 00 E9 0C A7 [08:56:14]RasterBufferAndPrint [08:56:14]line [08:56:14]line [08:56:14]line [08:56:14]line [08:56:14]line [08:56:14]written 0, free lines is 3311 [08:56:14]MH_Cut [08:56:14]Write to MH i2c: D1 01 00 92 20 01 84 [08:56:14]Write i2c OK [08:56:14]MH_I2C_Read... [08:56:14]Read from MH i2c: D1 [08:56:14]MH_I2C_Read... [08:56:14]Read from MH i2c: D1 01 00 [08:56:14]MH_I2C_Read... [08:56:14]Read from MH i2c: D1 01 00 92 20 00 83 [08:56:14]Write to MH i2c: 01 00 00 93 20 B3 [08:56:14]Write i2c OK [08:56:14]MH_I2C_Read... [08:56:15]OFD Sender: No OFD packet to send [08:56:15]*** Cut start [08:56:15]*** Partial cut [08:56:15]*** CUTSNS_PIN = 1 [08:56:15]*** CUTSNS_PIN = 0 [08:56:15]*** Brake cut motor [08:56:16]Read from MH i2c: 01 [08:56:16]MH_I2C_Read... [08:56:16]*** Stop cut motor [08:56:16]*** Cut end [08:56:16]Read from MH i2c: 01 07 00 [08:56:16]MH_I2C_Read... [08:56:16]Read from MH i2c: 01 07 00 93 20 00 00 00 00 00 FF 0F C8 [08:56:16]process_action close_receipt done [08:56:16]requested_data is exist [08:56:16]produce_requested_data [08:56:16]requested_item fm.sn is exist - process it [08:56:16]wFMCommunicate request_size=4 [08:56:16]MH_SAM_APDU [08:56:16]CAPDU: 80 11 00 00 [08:56:16]Write to MH i2c: E2 08 00 94 20 80 11 00 00 00 00 00 00 2E [08:56:16]Write i2c OK [08:56:16]MH_I2C_Read... [08:56:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:56:16]Read from MH i2c: E2 [08:56:16]MH_I2C_Read... [08:56:16]Read from MH i2c: E2 17 00 [08:56:16]MH_I2C_Read... [08:56:16]Read from MH i2c: E2 17 00 94 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 79 [08:56:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [08:56:16]wFMCommunicate OK [08:56:16]requested_item fd.num is exist - process it [08:56:16]SAM_PROTO_GetFieldsCounters [08:56:16]wFMCommunicate request_size=4 [08:56:16]MH_SAM_APDU [08:56:16]CAPDU: 80 13 00 00 [08:56:16]Write to MH i2c: E2 08 00 95 20 80 13 00 00 00 00 00 00 31 [08:56:16]Write i2c OK [08:56:16]MH_I2C_Read... [08:56:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:56:16]Read from MH i2c: E2 [08:56:16]MH_I2C_Read... [08:56:16]Read from MH i2c: E2 62 00 [08:56:16]MH_I2C_Read... [08:56:16]Read from MH i2c: E2 62 00 95 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 AF 0A 01 00 0E 04 04 00 44 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 83 [08:56:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 AF 0A 01 00 0E 04 04 00 44 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 [08:56:16]wFMCommunicate OK [08:56:16]SAM_PROTO_GetFieldsCounters done [08:56:16]requested_item shift.num is exist - process it [08:56:16]requested_item shift.opened is exist - process it [08:56:16]req_shift_opened [08:56:16]FM_GetShiftState [08:56:16]SAM_PROTO_GetShiftState [08:56:16]wFMCommunicate request_size=4 [08:56:16]MH_SAM_APDU [08:56:16]CAPDU: 80 13 01 00 [08:56:16]Write to MH i2c: E2 08 00 96 20 80 13 01 00 00 00 00 00 33 [08:56:16]Write i2c OK [08:56:16]MH_I2C_Read... [08:56:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:56:16]Read from MH i2c: E2 [08:56:16]MH_I2C_Read... [08:56:16]Read from MH i2c: E2 0E 00 [08:56:16]MH_I2C_Read... [08:56:16]Read from MH i2c: E2 0E 00 96 20 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 0E [08:56:16]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [08:56:16]wFMCommunicate OK [08:56:16]SAM_PROTO_GetShiftState done [08:56:16]FM_GetShiftState done [08:56:16]req_shift_opened done [08:56:16]requested_item shift.open_date is exist - process it [08:56:16]req_shift_open_date [08:56:16]req_shift_open_date done [08:56:16]produce_requested_data done [08:56:16]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68271,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [08:56:16]process_action_free close_receipt [08:56:16]json_value_free [08:56:16]json_value_free done [08:56:16]process_json_proto returns [08:56:16]Send response to host [08:56:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68271,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [08:56:16]free response buf [08:56:16]execute_script done [08:56:16]execute_script returns [08:56:16]free content buf [08:56:16]Sock 7.Close socket [08:56:16]Sock 7.Thread stoped [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:50]accept exits with 9 [08:56:50]New connection [08:56:50]New thread 3066686820 created [08:56:50]Thread 3066543460 joined [08:56:50]Waiting for new connection... [08:56:50] Sock 9.Parse request [08:56:50]Sock 9.Check first char [08:56:50]Sock 9.First char is OK [08:56:50]request: POST /json_proto HTTP/1.0 [08:56:50]Method: POST [08:56:50]URL: /json_proto [08:56:50]Method is POST - this is cgi request [08:56:50]url: /json_proto [08:56:50]query_string will be loaded in cgi processing [08:56:50]execute_cgi json_proto POST (null) [08:56:50]execute_cgi path=json_proto method=POST [08:56:50]POST find Content-Length [08:56:50]Host: 172.17.36.132:8080 [08:56:50]Content-Length: 843 [08:56:50]Content-Type: application/json [08:56:50] [08:56:50]POST finish read [08:56:50]Found Content-Length = 843 [08:56:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706344", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:56:50]execute_script... [08:56: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)706344", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:56:50]POST & json_proto [08:56:50]process_json_proto [08:56:50]json parsed OK: [08:56:50]protocol is kg_v1.0 [08:56:50]action value=close_receipt [08:56:50]process_action close_receipt [08:56:50]cmd_close_receipt [08:56:50]MH_GetDate [08:56:50]Write to MH i2c: F0 00 00 97 20 A6 [08:56:50]Write i2c OK [08:56:50]MH_I2C_Read... [08:56:50]Read from MH i2c: F0 [08:56:50]MH_I2C_Read... [08:56:50]Read from MH i2c: F0 09 00 [08:56:50]MH_I2C_Read... [08:56:50]Read from MH i2c: F0 09 00 97 20 00 56 85 5D 66 B2 22 B0 64 35 [08:56:50]GetLastDocTimeStamp 1717404976 [08:56:50]current date 1717405014 [08:56:50]FM_GetShiftState [08:56:50]SAM_PROTO_GetShiftState [08:56:50]wFMCommunicate request_size=4 [08:56:50]MH_SAM_APDU [08:56:50]CAPDU: 80 13 01 00 [08:56:50]Write to MH i2c: E2 08 00 98 20 80 13 01 00 00 00 00 00 35 [08:56:50]Write i2c OK [08:56:50]MH_I2C_Read... [08:56:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:56:50]Read from MH i2c: E2 [08:56:50]MH_I2C_Read... [08:56:50]Read from MH i2c: E2 0E 00 [08:56:50]MH_I2C_Read... [08:56:50]Read from MH i2c: E2 0E 00 98 20 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 10 [08:56:50]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [08:56:50]wFMCommunicate OK [08:56:50]SAM_PROTO_GetShiftState done [08:56:50]FM_GetShiftState done [08:56:50]opened in 1717378033 [08:56:50]opened+sec_in_day 1717464433 [08:56:50]quantity*price = 100015 [08:56:50]sum+1 = 100017 [08:56:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 18 03.06.2024 08:56 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68272 ФПД: 134655881671418 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T085655&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68272&fm=134655881671418&tin=02508201610067®Number=0000000000098096&sum=100016 [08:56:51]StoreToDocumentArchive [08:56:51]shift 324 fd 68272 [08:56:51]save to /storage/0324/doc_00068272 [08:56:51]save last doc name /storage/0324/doc_00068272 to /storage/kkm_last_doc_name [08:56:51]save OK [08:56:51]Clear old archive folders... [08:56:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:56:51]tlvbuf is 00462640 [08:56:51]SAM_PROTO_ClearQueue [08:56:51]wFMCommunicate request_size=4 [08:56:51]MH_SAM_APDU [08:56:51]CAPDU: 80 09 00 00 [08:56:51]Write to MH i2c: E2 08 00 A5 20 80 09 00 00 00 00 00 00 37 [08:56:51]Write i2c OK [08:56:51]MH_I2C_Read... [08:56:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:56:51]Read from MH i2c: E2 [08:56:51]MH_I2C_Read... [08:56:51]Read from MH i2c: E2 03 00 [08:56:51]MH_I2C_Read... [08:56:51]Read from MH i2c: E2 03 00 A5 20 00 90 00 39 [08:56:51]RAPDU: 90 00 [08:56:51]wFMCommunicate OK [08:56:51]SAM_PROTO_ClearQueue done [08:56:51]KKMCreateOFDPacket [08:56:51]OFDProtocolAddRootSTLVToBuf [08:56:51]FM_MakeSignedData [08:56:51]FM_MakeSignedData [08:56:51]SAM_PROTO_SignData [08:56:51]wFMCommunicate request_size=4 [08:56:51]MH_SAM_APDU [08:56:51]CAPDU: 80 0D 01 02 [08:56:51]Write to MH i2c: E2 08 00 A6 20 80 0D 01 02 00 00 00 00 3F [08:56:51]Write i2c OK [08:56:51]MH_I2C_Read... [08:56:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:56:51]Read from MH i2c: E2 [08:56:51]MH_I2C_Read... [08:56:51]Read from MH i2c: E2 03 00 [08:56:51]MH_I2C_Read... [08:56:51]Read from MH i2c: E2 03 00 A6 20 00 90 00 3A [08:56:51]RAPDU: 90 00 [08:56:51]wFMCommunicate OK [08:56:51]wFMCommunicate request_size=255 [08:56:51]MH_SAM_APDU [08:56:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 57 85 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B0 0A 01 00 35 04 06 00 7A [08:56:52]Write to MH i2c: E2 02 01 A7 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 57 85 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B0 0A 01 00 35 04 06 00 7A 00 00 11 [08:56:52]Write i2c OK [08:56:52]MH_I2C_Read... [08:56:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:56:52]Read from MH i2c: E2 [08:56:52]MH_I2C_Read... [08:56:52]Read from MH i2c: E2 03 00 [08:56:52]MH_I2C_Read... [08:56:52]Read from MH i2c: E2 03 00 A7 20 00 90 00 3B [08:56:52]RAPDU: 90 00 [08:56:52]wFMCommunicate OK [08:56:52]wFMCommunicate request_size=10 [08:56:52]MH_SAM_APDU [08:56:52]CAPDU: 80 0D 02 02 05 78 03 FE 72 FA [08:56:52]Write to MH i2c: E2 0D 00 A8 20 80 0D 02 02 05 00 78 03 FE 72 FA 00 00 31 [08:56:52]Write i2c OK [08:56:52]MH_I2C_Read... [08:56:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:56:52]Read from MH i2c: E2 [08:56:52]MH_I2C_Read... [08:56:52]Read from MH i2c: E2 03 00 [08:56:52]MH_I2C_Read... [08:56:52]Read from MH i2c: E2 03 00 A8 20 00 90 00 3C [08:56:52]RAPDU: 90 00 [08:56:52]wFMCommunicate OK [08:56:52]wFMCommunicate request_size=4 [08:56:52]MH_SAM_APDU [08:56:52]CAPDU: 80 0D 03 02 [08:56:52]Write to MH i2c: E2 08 00 A9 20 80 0D 03 02 00 00 00 00 44 [08:56:52]Write i2c OK [08:56:52]MH_I2C_Read... [08:56:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:56:52]Read from MH i2c: E2 [08:56:52]MH_I2C_Read... [08:56:52]Read from MH i2c: E2 0B 00 [08:56:52]MH_I2C_Read... [08:56:52]Read from MH i2c: E2 0B 00 A9 20 00 3B DA C7 B3 50 7C 20 52 90 00 12 [08:56:52]RAPDU: 3B DA C7 B3 50 7C 20 52 90 00 [08:56:52]wFMCommunicate OK [08:56:52]SAM_PROTO_SignData done [08:56:52]FM_MakeSignedData done [08:56:52]CreateOFDProtocolMessage [08:56:52]wFMCommunicate request_size=4 [08:56:52]MH_SAM_APDU [08:56:52]CAPDU: 80 11 00 00 [08:56:52]Write to MH i2c: E2 08 00 AA 20 80 11 00 00 00 00 00 00 44 [08:56:52]Write i2c OK [08:56:52]MH_I2C_Read... [08:56:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:56:52]Read from MH i2c: E2 [08:56:52]MH_I2C_Read... [08:56:52]Read from MH i2c: E2 17 00 [08:56:52]MH_I2C_Read... [08:56:52]Read from MH i2c: E2 17 00 AA 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 8F [08:56:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [08:56:52]wFMCommunicate OK [08:56:52]CreateOFDProtocolMessage done [08:56:52]OFDSenderStorePacket 68272 [08:56:52]StoreOFDPacket docnum=68272 [08:56:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 AA 5B 07 01 B1 D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 57 85 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B0 0A 01 00 35 04 06 00 7A 78 03 FE 72 FA 3B DA C7 B3 50 7C 20 52 [08:56:52]CheckFolder [08:56:52]dirname=/storage/ofd_packets [08:56:52]CheckFolder done [08:56:52]ProducePacketName [08:56:52]name=ofd_packets/00068272 [08:56:52]NVStorageSaveData ofd_packets/00068272 [08:56:52]File name is /storage/ofd_packets/00068272 [08:56:52]Write 301 bytes [08:56:52]NVStorageSaveData done [08:56:52]OFDSenderStorePacket done [08:56:52]KKMCreateOFDPacket done [08:56:52]NVStorageSaveData kkm_last_timestamp [08:56:52]File name is /storage/kkm_last_timestamp [08:56:52]Write 4 bytes [08:56:52]NVStorageSaveData done [08:56:52]ExternCall_PrintAddStr [08:56:52]wPrintStart [08:56:52]Write to MH i2c: 01 00 00 AB 20 CB [08:56:52]Write i2c OK [08:56:52]MH_I2C_Read... [08:56:52]Read from MH i2c: 01 [08:56:52]MH_I2C_Read... [08:56:52]Read from MH i2c: 01 07 00 [08:56:52]MH_I2C_Read... [08:56:52]Read from MH i2c: 01 07 00 AB 20 00 00 00 00 00 FF 0F E0 [08:56:52]RasterBufferAndPrint [08:56:52]line Счет N : (1)706344 [08:56:52]line ИНН: 02508201610067 [08:56:52]line Контрольно-Кассовый Чек [08:56:52]line ПРОДАЖА [08:56:52]line ТРК (МРК, ГНК) : 42 [08:56:52]line Товар: 2710124130 [08:56:52]line Аи-92-К-4 [08:56:52]line 14.950 * 66.90 [08:56:52]line = 1000.16 [08:56:52]line НДС 12% НСП 1% [08:56:52]line > о реализуемом товаре [08:56:52]line ИТОГО: 1000.16 [08:56:52]line НСП 1% : 8.85 [08:56:52]line НДС 12% : 106.21 [08:56:52]line Наличными: 0.00 [08:56:52]line Безнал.: 1000.16 [08:56:52]line Место: АЗС № 62 "Партнер Нефть" [08:56:52]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [08:56:52]line СНО: Общий режим [08:56:52]line Чек 18 03.06.2024 08:56 [08:56:52]line Смена: 324 ФФД: 1.0 [08:56:52]line ЗНМ: 0300000181 [08:56:52]line РНМ: 0000000000098096 [08:56:52]line Версия ККМ: 001 [08:56:52]line Платежная система: АКБ Кыргызстан [08:56:52]line ФМ: 0000000000965400 [08:56:52]line ФД: 68272 [08:56:52]line ФПД: 134655881671418 [08:56:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T085655&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68272&fm=134655881671418&tin=02508201610067®Number=0000000000098096&sum=100016 [08:56:52]OFD Sender: Processing packet 68272 [packets to send 26, broken 25] [08:56:52]ProducePacketName [08:56:52]name=ofd_packets/00068272 [08:56:52]OFD Sender: To server: pG, [08:56:52]CommunicateWithHost lk.salyk.kg:30040 [08:56:52]ConnectInit lk.salyk.kg [08:56:52]written 0, free lines is 4095 [08:56:52]Connected sock=10 [08:56:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 AA 5B 07 01 B1 D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 57 85 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B0 0A 01 00 35 04 06 00 7A 78 03 FE 72 FA 3B DA C7 B3 50 7C 20 52 [08:56:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 63 38 47 00 E8 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B0 0A 01 00 F4 03 04 00 53 2C 5D 66 B6 04 01 00 00 4D 35 87 FA 8F 73 98 46 [08:56:53]CommunicateWithHost err = 0 [08:56:53]CheckOFDResponse [08:56:53]1017 (14) - 77093643461234 [08:56:53]1041 (16) - 0000000000965400 [08:56:53]1040 (4) - 68272 [08:56:53]1012 (4) - 03.06.2024 02:37 [08:56:53]1206 (1) - 0 [08:56:53]OFD Sender: Remove packet 68272 [08:56:53]ProducePacketName [08:56:53]name=ofd_packets/00068272 [08:56:53]NVStorageDeleteData [08:56:53]Write to MH i2c: 01 00 00 D5 20 F5 [08:56:53]Write i2c OK [08:56:53]MH_I2C_Read... [08:56:53]Read from MH i2c: 01 [08:56:53]MH_I2C_Read... [08:56:53]Read from MH i2c: 01 07 00 [08:56:53]MH_I2C_Read... [08:56:53]Read from MH i2c: 01 07 00 D5 20 00 00 00 00 00 EE 0C F6 [08:56:53]RasterBufferAndPrint [08:56:53]line [08:56:53]line [08:56:53]line [08:56:53]line [08:56:53]line [08:56:53]written 0, free lines is 3317 [08:56:53]MH_Cut [08:56:53]Write to MH i2c: D1 01 00 DC 20 01 CE [08:56:53]Write i2c OK [08:56:53]MH_I2C_Read... [08:56:53]Read from MH i2c: D1 [08:56:53]MH_I2C_Read... [08:56:53]Read from MH i2c: D1 01 00 [08:56:53]MH_I2C_Read... [08:56:53]Read from MH i2c: D1 01 00 DC 20 00 CD [08:56:53]Write to MH i2c: 01 00 00 DD 20 FD [08:56:53]Write i2c OK [08:56:53]MH_I2C_Read... [08:56:53]OFD Sender: No OFD packet to send [08:56:53]*** Cut start [08:56:53]*** Partial cut [08:56:53]*** CUTSNS_PIN = 1 [08:56:54]*** CUTSNS_PIN = 0 [08:56:54]*** Brake cut motor [08:56:54]Read from MH i2c: 01 [08:56:54]MH_I2C_Read... [08:56:54]*** Stop cut motor [08:56:54]*** Cut end [08:56:54]Read from MH i2c: 01 07 00 [08:56:54]MH_I2C_Read... [08:56:54]Read from MH i2c: 01 07 00 DD 20 00 00 00 00 00 FF 0F 12 [08:56:54]process_action close_receipt done [08:56:54]requested_data is exist [08:56:54]produce_requested_data [08:56:54]requested_item fm.sn is exist - process it [08:56:54]wFMCommunicate request_size=4 [08:56:54]MH_SAM_APDU [08:56:54]CAPDU: 80 11 00 00 [08:56:54]Write to MH i2c: E2 08 00 DE 20 80 11 00 00 00 00 00 00 78 [08:56:54]Write i2c OK [08:56:54]MH_I2C_Read... [08:56:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:56:54]Read from MH i2c: E2 [08:56:54]MH_I2C_Read... [08:56:54]Read from MH i2c: E2 17 00 [08:56:54]MH_I2C_Read... [08:56:54]Read from MH i2c: E2 17 00 DE 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 C3 [08:56:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [08:56:54]wFMCommunicate OK [08:56:54]requested_item fd.num is exist - process it [08:56:54]SAM_PROTO_GetFieldsCounters [08:56:54]wFMCommunicate request_size=4 [08:56:54]MH_SAM_APDU [08:56:54]CAPDU: 80 13 00 00 [08:56:54]Write to MH i2c: E2 08 00 DF 20 80 13 00 00 00 00 00 00 7B [08:56:54]Write i2c OK [08:56:54]MH_I2C_Read... [08:56:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:56:54]Read from MH i2c: E2 [08:56:54]MH_I2C_Read... [08:56:54]Read from MH i2c: E2 62 00 [08:56:54]MH_I2C_Read... [08:56:54]Read from MH i2c: E2 62 00 DF 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 B0 0A 01 00 0E 04 04 00 44 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 D1 [08:56:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 B0 0A 01 00 0E 04 04 00 44 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:56:54]wFMCommunicate OK [08:56:54]SAM_PROTO_GetFieldsCounters done [08:56:54]requested_item shift.num is exist - process it [08:56:54]requested_item shift.opened is exist - process it [08:56:54]req_shift_opened [08:56:54]FM_GetShiftState [08:56:54]SAM_PROTO_GetShiftState [08:56:54]wFMCommunicate request_size=4 [08:56:54]MH_SAM_APDU [08:56:54]CAPDU: 80 13 01 00 [08:56:54]Write to MH i2c: E2 08 00 E0 20 80 13 01 00 00 00 00 00 7D [08:56:54]Write i2c OK [08:56:54]MH_I2C_Read... [08:56:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:56:54]Read from MH i2c: E2 [08:56:54]MH_I2C_Read... [08:56:54]Read from MH i2c: E2 0E 00 [08:56:54]MH_I2C_Read... [08:56:54]Read from MH i2c: E2 0E 00 E0 20 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 58 [08:56:54]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [08:56:54]wFMCommunicate OK [08:56:54]SAM_PROTO_GetShiftState done [08:56:54]FM_GetShiftState done [08:56:54]req_shift_opened done [08:56:54]requested_item shift.open_date is exist - process it [08:56:54]req_shift_open_date [08:56:54]req_shift_open_date done [08:56:54]produce_requested_data done [08:56:54]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68272,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [08:56:54]process_action_free close_receipt [08:56:54]json_value_free [08:56:54]json_value_free done [08:56:54]process_json_proto returns [08:56:54]Send response to host [08:56:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68272,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [08:56:54]free response buf [08:56:54]execute_script done [08:56:54]execute_script returns [08:56:54]free content buf [08:56:54]Sock 9.Close socket [08:56:54]Sock 9.Thread stoped [08:56:58]OFD Sender: No OFD packet to send [08:57:03]OFD Sender: No OFD packet to send [08:57:08]OFD Sender: No OFD packet to send [08:57:13]OFD Sender: No OFD packet to send [08:57:18]OFD Sender: No OFD packet to send [08:57:23]OFD Sender: No OFD packet to send [08:57:28]OFD Sender: No OFD packet to send [08:57:33]OFD Sender: No OFD packet to send [08:57:38]OFD Sender: No OFD packet to send [08:57:43]OFD Sender: No OFD packet to send [08:57:48]OFD Sender: No OFD packet to send [08:57:53]OFD Sender: No OFD packet to send [08:57:58]OFD Sender: No OFD packet to send [08:58:03]OFD Sender: No OFD packet to send [08:58:08]OFD Sender: No OFD packet to send [08:58:13]OFD Sender: No OFD packet to send [08:58:18]OFD Sender: No OFD packet to send [08:58:23]OFD Sender: No OFD packet to send [08:58:28]OFD Sender: No OFD packet to send [08:58:33]OFD Sender: No OFD packet to send [08:58:38]OFD Sender: No OFD packet to send [08:58:43]OFD Sender: No OFD packet to send [08:58:48]OFD Sender: No OFD packet to send [08:58:53]OFD Sender: No OFD packet to send [08:58:58]OFD Sender: No OFD packet to send [08:59:03]OFD Sender: No OFD packet to send [08:59:08]OFD Sender: No OFD packet to send [08:59:13]OFD Sender: No OFD packet to send [08:59:18]OFD Sender: No OFD packet to send [08:59:23]OFD Sender: No OFD packet to send [08:59:28]OFD Sender: No OFD packet to send [08:59:33]OFD Sender: No OFD packet to send [08:59:38]OFD Sender: No OFD packet to send [08:59:43]OFD Sender: No OFD packet to send [08:59:48]OFD Sender: No OFD packet to send [08:59:53]OFD Sender: No OFD packet to send [08:59:58]OFD Sender: No OFD packet to send [09:00:03]OFD Sender: No OFD packet to send [09:00:08]OFD Sender: No OFD packet to send [09:00:13]OFD Sender: No OFD packet to send [09:00:18]OFD Sender: No OFD packet to send [09:00:23]OFD Sender: No OFD packet to send [09:00:28]OFD Sender: No OFD packet to send [09:00:33]OFD Sender: No OFD packet to send [09:00:38]OFD Sender: No OFD packet to send [09:00:43]OFD Sender: No OFD packet to send [09:00:48]OFD Sender: No OFD packet to send [09:00:53]OFD Sender: No OFD packet to send [09:00:58]OFD Sender: No OFD packet to send [09:01:03]OFD Sender: No OFD packet to send [09:01:08]OFD Sender: No OFD packet to send [09:01:13]OFD Sender: No OFD packet to send [09:01:18]OFD Sender: No OFD packet to send [09:01:23]OFD Sender: No OFD packet to send [09:01:25]accept exits with 7 [09:01:25]New connection [09:01:25]New thread 3066543460 created [09:01:25]Thread 3066686820 joined [09:01:25]Waiting for new connection... [09:01:25] Sock 7.Parse request [09:01:25]Sock 7.Check first char [09:01:25]Sock 7.First char is OK [09:01:25]request: POST /json_proto HTTP/1.0 [09:01:25]Method: POST [09:01:25]URL: /json_proto [09:01:25]Method is POST - this is cgi request [09:01:25]url: /json_proto [09:01:25]query_string will be loaded in cgi processing [09:01:25]execute_cgi json_proto POST (null) [09:01:25]execute_cgi path=json_proto method=POST [09:01:25]POST find Content-Length [09:01:25]Host: 172.17.36.132:8080 [09:01:25]Content-Length: 678 [09:01:25]Content-Type: application/json [09:01:25] [09:01:25]POST finish read [09:01:25]Found Content-Length = 678 [09:01:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706345", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:01:25]execute_script... [09:01: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)706345", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:01:25]POST & json_proto [09:01:25]process_json_proto [09:01:25]json parsed OK: [09:01:25]protocol is kg_v1.0 [09:01:25]action value=close_receipt [09:01:25]process_action close_receipt [09:01:25]cmd_close_receipt [09:01:25]MH_GetDate [09:01:25]Write to MH i2c: F0 00 00 E1 20 F0 [09:01:25]Write i2c OK [09:01:25]MH_I2C_Read... [09:01:25]Read from MH i2c: F0 [09:01:25]MH_I2C_Read... [09:01:25]Read from MH i2c: F0 09 00 [09:01:25]MH_I2C_Read... [09:01:25]Read from MH i2c: F0 09 00 E1 20 00 6A 86 5D 66 B2 22 B0 64 94 [09:01:25]GetLastDocTimeStamp 1717405015 [09:01:25]current date 1717405290 [09:01:25]FM_GetShiftState [09:01:25]SAM_PROTO_GetShiftState [09:01:25]wFMCommunicate request_size=4 [09:01:25]MH_SAM_APDU [09:01:25]CAPDU: 80 13 01 00 [09:01:25]Write to MH i2c: E2 08 00 E2 20 80 13 01 00 00 00 00 00 7F [09:01:25]Write i2c OK [09:01:25]MH_I2C_Read... [09:01:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:25]Read from MH i2c: E2 [09:01:25]MH_I2C_Read... [09:01:25]Read from MH i2c: E2 0E 00 [09:01:25]MH_I2C_Read... [09:01:25]Read from MH i2c: E2 0E 00 E2 20 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 5A [09:01:25]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [09:01:25]wFMCommunicate OK [09:01:25]SAM_PROTO_GetShiftState done [09:01:25]FM_GetShiftState done [09:01:25]opened in 1717378033 [09:01:25]opened+sec_in_day 1717464433 [09:01:25]quantity*price = 80012 [09:01:25]sum+1 = 80013 [09:01:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 19 03.06.2024 09:01 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68273 ФПД: 227580474024259 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T090130&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68273&fm=227580474024259&tin=02508201610067®Number=0000000000098096&sum=80000 [09:01:26]StoreToDocumentArchive [09:01:26]shift 324 fd 68273 [09:01:26]save to /storage/0324/doc_00068273 [09:01:26]save last doc name /storage/0324/doc_00068273 to /storage/kkm_last_doc_name [09:01:26]save OK [09:01:26]Clear old archive folders... [09:01:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:01:26]tlvbuf is 00265880 [09:01:26]SAM_PROTO_ClearQueue [09:01:26]wFMCommunicate request_size=4 [09:01:26]MH_SAM_APDU [09:01:26]CAPDU: 80 09 00 00 [09:01:26]Write to MH i2c: E2 08 00 EF 20 80 09 00 00 00 00 00 00 81 [09:01:26]Write i2c OK [09:01:26]MH_I2C_Read... [09:01:27]Read from MH i2c: E2 [09:01:27]MH_I2C_Read... [09:01:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:01:27]Read from MH i2c: E2 03 00 [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: E2 03 00 EF 20 00 90 00 83 [09:01:27]RAPDU: 90 00 [09:01:27]wFMCommunicate OK [09:01:27]SAM_PROTO_ClearQueue done [09:01:27]KKMCreateOFDPacket [09:01:27]OFDProtocolAddRootSTLVToBuf [09:01:27]FM_MakeSignedData [09:01:27]FM_MakeSignedData [09:01:27]SAM_PROTO_SignData [09:01:27]wFMCommunicate request_size=4 [09:01:27]MH_SAM_APDU [09:01:27]CAPDU: 80 0D 01 02 [09:01:27]Write to MH i2c: E2 08 00 F0 20 80 0D 01 02 00 00 00 00 89 [09:01:27]Write i2c OK [09:01:27]MH_I2C_Read... [09:01:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:01:27]Read from MH i2c: E2 [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: E2 03 00 [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: E2 03 00 F0 20 00 90 00 84 [09:01:27]RAPDU: 90 00 [09:01:27]wFMCommunicate OK [09:01:27]wFMCommunicate request_size=255 [09:01:27]MH_SAM_APDU [09:01:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 6A 86 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B1 0A 01 00 35 04 06 00 CE [09:01:27]Write to MH i2c: E2 02 01 F1 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 6A 86 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B1 0A 01 00 35 04 06 00 CE 00 00 97 [09:01:27]Write i2c OK [09:01:27]MH_I2C_Read... [09:01:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:01:27]Read from MH i2c: E2 [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: E2 03 00 [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: E2 03 00 F1 20 00 90 00 85 [09:01:27]RAPDU: 90 00 [09:01:27]wFMCommunicate OK [09:01:27]wFMCommunicate request_size=10 [09:01:27]MH_SAM_APDU [09:01:27]CAPDU: 80 0D 02 02 05 FB B5 4F E1 43 [09:01:27]Write to MH i2c: E2 0D 00 F2 20 80 0D 02 02 05 00 FB B5 4F E1 43 00 00 B9 [09:01:27]Write i2c OK [09:01:27]MH_I2C_Read... [09:01:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:01:27]Read from MH i2c: E2 [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: E2 03 00 [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: E2 03 00 F2 20 00 90 00 86 [09:01:27]RAPDU: 90 00 [09:01:27]wFMCommunicate OK [09:01:27]wFMCommunicate request_size=4 [09:01:27]MH_SAM_APDU [09:01:27]CAPDU: 80 0D 03 02 [09:01:27]Write to MH i2c: E2 08 00 F3 20 80 0D 03 02 00 00 00 00 8E [09:01:27]Write i2c OK [09:01:27]MH_I2C_Read... [09:01:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:01:27]Read from MH i2c: E2 [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: E2 0B 00 [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: E2 0B 00 F3 20 00 7F 0A 84 DA 21 1F 73 E9 90 00 12 [09:01:27]RAPDU: 7F 0A 84 DA 21 1F 73 E9 90 00 [09:01:27]wFMCommunicate OK [09:01:27]SAM_PROTO_SignData done [09:01:27]FM_MakeSignedData done [09:01:27]CreateOFDProtocolMessage [09:01:27]wFMCommunicate request_size=4 [09:01:27]MH_SAM_APDU [09:01:27]CAPDU: 80 11 00 00 [09:01:27]Write to MH i2c: E2 08 00 F4 20 80 11 00 00 00 00 00 00 8E [09:01:27]Write i2c OK [09:01:27]MH_I2C_Read... [09:01:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:27]Read from MH i2c: E2 [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: E2 17 00 [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: E2 17 00 F4 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 D9 [09:01:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [09:01:27]wFMCommunicate OK [09:01:27]CreateOFDProtocolMessage done [09:01:27]OFDSenderStorePacket 68273 [09:01:27]StoreOFDPacket docnum=68273 [09:01:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 F2 A6 07 01 0D 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 6A 86 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B1 0A 01 00 35 04 06 00 CE FB B5 4F E1 43 7F 0A 84 DA 21 1F 73 E9 [09:01:27]CheckFolder [09:01:27]dirname=/storage/ofd_packets [09:01:27]CheckFolder done [09:01:27]ProducePacketName [09:01:27]name=ofd_packets/00068273 [09:01:27]NVStorageSaveData ofd_packets/00068273 [09:01:27]File name is /storage/ofd_packets/00068273 [09:01:27]Write 301 bytes [09:01:27]NVStorageSaveData done [09:01:27]OFDSenderStorePacket done [09:01:27]KKMCreateOFDPacket done [09:01:27]NVStorageSaveData kkm_last_timestamp [09:01:27]File name is /storage/kkm_last_timestamp [09:01:27]Write 4 bytes [09:01:27]NVStorageSaveData done [09:01:27]ExternCall_PrintAddStr [09:01:27]wPrintStart [09:01:27]Write to MH i2c: 01 00 00 F5 20 15 [09:01:27]Write i2c OK [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: 01 [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: 01 07 00 [09:01:27]MH_I2C_Read... [09:01:27]Read from MH i2c: 01 07 00 F5 20 00 00 00 00 00 FF 0F 2A [09:01:27]RasterBufferAndPrint [09:01:27]line Счет N : (1)706345 [09:01:27]line ИНН: 02508201610067 [09:01:27]line Контрольно-Кассовый Чек [09:01:27]line ПРОДАЖА [09:01:27]line ТРК (МРК, ГНК) : 63 [09:01:27]line Товар: 2710124130 [09:01:27]line Аи-92-К-4 [09:01:27]line 11.960 * 66.90 [09:01:27]line = 800.12 [09:01:27]line НДС 12% НСП 1% [09:01:27]line > о реализуемом товаре [09:01:27]line ОКРУГЛЕНИЕ: -0.12 [09:01:27]line ИТОГО: 800.00 [09:01:27]line Внесено: 800.00 [09:01:27]line СДАЧА: 0.00 [09:01:27]line НСП 1% : 7.08 [09:01:27]line НДС 12% : 84.97 [09:01:27]line Наличными: 800.00 [09:01:27]line Безнал.: 0.00 [09:01:27]line Место: АЗС № 62 "Партнер Нефть" [09:01:27]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [09:01:27]line СНО: Общий режим [09:01:27]line Чек 19 03.06.2024 09:01 [09:01:27]line Смена: 324 ФФД: 1.0 [09:01:27]line ЗНМ: 0300000181 [09:01:27]line РНМ: 0000000000098096 [09:01:27]line Версия ККМ: 001 [09:01:27]line ФМ: 0000000000965400 [09:01:27]line ФД: 68273 [09:01:27]line ФПД: 227580474024259 [09:01:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T090130&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68273&fm=227580474024259&tin=02508201610067®Number=0000000000098096&sum=80000 [09:01:27]OFD Sender: Processing packet 68273 [packets to send 26, broken 25] [09:01:27]ProducePacketName [09:01:27]name=ofd_packets/00068273 [09:01:27]OFD Sender: To server: pG, [09:01:27]CommunicateWithHost lk.salyk.kg:30040 [09:01:27]ConnectInit lk.salyk.kg [09:01:27]written 0, free lines is 4095 [09:01:28]Connected sock=10 [09:01:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 F2 A6 07 01 0D 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 6A 86 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B1 0A 01 00 35 04 06 00 CE FB B5 4F E1 43 7F 0A 84 DA 21 1F 73 E9 [09:01:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 C4 E4 47 00 EF EE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B1 0A 01 00 F4 03 04 00 66 2D 5D 66 B6 04 01 00 00 D9 A9 3F FC 46 73 FC 7C [09:01:28]CommunicateWithHost err = 0 [09:01:28]CheckOFDResponse [09:01:28]1017 (14) - 77093643461234 [09:01:28]1041 (16) - 0000000000965400 [09:01:28]1040 (4) - 68273 [09:01:28]1012 (4) - 03.06.2024 02:41 [09:01:28]1206 (1) - 0 [09:01:28]OFD Sender: Remove packet 68273 [09:01:28]ProducePacketName [09:01:28]name=ofd_packets/00068273 [09:01:28]NVStorageDeleteData [09:01:28]Write to MH i2c: 01 00 00 20 21 41 [09:01:28]Write i2c OK [09:01:28]MH_I2C_Read... [09:01:28]Read from MH i2c: 01 [09:01:28]MH_I2C_Read... [09:01:28]Read from MH i2c: 01 07 00 [09:01:28]MH_I2C_Read... [09:01:28]Read from MH i2c: 01 07 00 20 21 00 00 00 00 00 E2 0C 36 [09:01:28]RasterBufferAndPrint [09:01:28]line [09:01:28]line [09:01:28]line [09:01:28]line [09:01:28]line [09:01:28]written 0, free lines is 3304 [09:01:28]MH_Cut [09:01:28]Write to MH i2c: D1 01 00 27 21 01 1A [09:01:28]Write i2c OK [09:01:28]MH_I2C_Read... [09:01:28]Read from MH i2c: D1 [09:01:28]MH_I2C_Read... [09:01:28]Read from MH i2c: D1 01 00 [09:01:28]MH_I2C_Read... [09:01:28]Read from MH i2c: D1 01 00 27 21 00 19 [09:01:28]Write to MH i2c: 01 00 00 28 21 49 [09:01:28]Write i2c OK [09:01:28]MH_I2C_Read... [09:01:28]OFD Sender: No OFD packet to send [09:01:29]*** Cut start [09:01:29]*** Partial cut [09:01:29]*** CUTSNS_PIN = 1 [09:01:29]*** CUTSNS_PIN = 0 [09:01:29]*** Brake cut motor [09:01:29]Read from MH i2c: 01 [09:01:29]MH_I2C_Read... [09:01:29]*** Stop cut motor [09:01:29]*** Cut end [09:01:29]Read from MH i2c: 01 07 00 [09:01:29]MH_I2C_Read... [09:01:29]Read from MH i2c: 01 07 00 28 21 00 00 00 00 00 FF 0F 5E [09:01:29]process_action close_receipt done [09:01:29]requested_data is exist [09:01:29]produce_requested_data [09:01:29]requested_item fm.sn is exist - process it [09:01:29]wFMCommunicate request_size=4 [09:01:29]MH_SAM_APDU [09:01:29]CAPDU: 80 11 00 00 [09:01:29]Write to MH i2c: E2 08 00 29 21 80 11 00 00 00 00 00 00 C4 [09:01:29]Write i2c OK [09:01:29]MH_I2C_Read... [09:01:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:29]Read from MH i2c: E2 [09:01:29]MH_I2C_Read... [09:01:29]Read from MH i2c: E2 17 00 [09:01:29]MH_I2C_Read... [09:01:29]Read from MH i2c: E2 17 00 29 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 0F [09:01:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [09:01:29]wFMCommunicate OK [09:01:29]requested_item fd.num is exist - process it [09:01:29]SAM_PROTO_GetFieldsCounters [09:01:29]wFMCommunicate request_size=4 [09:01:29]MH_SAM_APDU [09:01:29]CAPDU: 80 13 00 00 [09:01:29]Write to MH i2c: E2 08 00 2A 21 80 13 00 00 00 00 00 00 C7 [09:01:29]Write i2c OK [09:01:29]MH_I2C_Read... [09:01:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:01:29]Read from MH i2c: E2 [09:01:29]MH_I2C_Read... [09:01:29]Read from MH i2c: E2 62 00 [09:01:29]MH_I2C_Read... [09:01:29]Read from MH i2c: E2 62 00 2A 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 B1 0A 01 00 0E 04 04 00 44 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 21 [09:01:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 B1 0A 01 00 0E 04 04 00 44 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 [09:01:29]wFMCommunicate OK [09:01:29]SAM_PROTO_GetFieldsCounters done [09:01:29]requested_item shift.num is exist - process it [09:01:29]requested_item shift.opened is exist - process it [09:01:29]req_shift_opened [09:01:29]FM_GetShiftState [09:01:29]SAM_PROTO_GetShiftState [09:01:29]wFMCommunicate request_size=4 [09:01:29]MH_SAM_APDU [09:01:29]CAPDU: 80 13 01 00 [09:01:29]Write to MH i2c: E2 08 00 2B 21 80 13 01 00 00 00 00 00 C9 [09:01:29]Write i2c OK [09:01:29]MH_I2C_Read... [09:01:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:29]Read from MH i2c: E2 [09:01:29]MH_I2C_Read... [09:01:29]Read from MH i2c: E2 0E 00 [09:01:29]MH_I2C_Read... [09:01:29]Read from MH i2c: E2 0E 00 2B 21 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 A4 [09:01:29]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [09:01:29]wFMCommunicate OK [09:01:29]SAM_PROTO_GetShiftState done [09:01:29]FM_GetShiftState done [09:01:29]req_shift_opened done [09:01:29]requested_item shift.open_date is exist - process it [09:01:29]req_shift_open_date [09:01:29]req_shift_open_date done [09:01:29]produce_requested_data done [09:01:29]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68273,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [09:01:29]process_action_free close_receipt [09:01:29]json_value_free [09:01:29]json_value_free done [09:01:29]process_json_proto returns [09:01:29]Send response to host [09:01:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68273,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [09:01:29]free response buf [09:01:29]execute_script done [09:01:29]execute_script returns [09:01:29]free content buf [09:01:29]Sock 7.Close socket [09:01:29]Sock 7.Thread stoped [09:01:33]OFD Sender: No OFD packet to send [09:01:38]OFD Sender: No OFD packet to send [09:01:43]OFD Sender: No OFD packet to send [09:01:48]OFD Sender: No OFD packet to send [09:01:53]OFD Sender: No OFD packet to send [09:01:58]OFD Sender: No OFD packet to send [09:02:03]OFD Sender: No OFD packet to send [09:02:08]OFD Sender: No OFD packet to send [09:02:13]OFD Sender: No OFD packet to send [09:02:18]OFD Sender: No OFD packet to send [09:02:23]OFD Sender: No OFD packet to send [09:02:28]OFD Sender: No OFD packet to send [09:02:33]OFD Sender: No OFD packet to send [09:02:38]OFD Sender: No OFD packet to send [09:02:43]OFD Sender: No OFD packet to send [09:02:48]OFD Sender: No OFD packet to send [09:02:53]OFD Sender: No OFD packet to send [09:02:58]OFD Sender: No OFD packet to send [09:03:03]OFD Sender: No OFD packet to send [09:03:08]OFD Sender: No OFD packet to send [09:03:13]OFD Sender: No OFD packet to send [09:03:18]OFD Sender: No OFD packet to send [09:03:23]OFD Sender: No OFD packet to send [09:03:28]OFD Sender: No OFD packet to send [09:03:33]OFD Sender: No OFD packet to send [09:03:38]OFD Sender: No OFD packet to send [09:03:43]OFD Sender: No OFD packet to send [09:03:48]OFD Sender: No OFD packet to send [09:03:53]OFD Sender: No OFD packet to send [09:03:58]OFD Sender: No OFD packet to send [09:04:03]OFD Sender: No OFD packet to send [09:04:08]OFD Sender: No OFD packet to send [09:04:13]OFD Sender: No OFD packet to send [09:04:18]OFD Sender: No OFD packet to send [09:04:23]OFD Sender: No OFD packet to send [09:04:28]OFD Sender: No OFD packet to send [09:04:33]OFD Sender: No OFD packet to send [09:04:38]OFD Sender: No OFD packet to send [09:04:43]OFD Sender: No OFD packet to send [09:04:48]OFD Sender: No OFD packet to send [09:04:53]OFD Sender: No OFD packet to send [09:04:58]OFD Sender: No OFD packet to send [09:05:03]OFD Sender: No OFD packet to send [09:05:08]OFD Sender: No OFD packet to send [09:05:13]OFD Sender: No OFD packet to send [09:05:18]OFD Sender: No OFD packet to send [09:05:23]OFD Sender: No OFD packet to send [09:05:28]OFD Sender: No OFD packet to send [09:05:33]OFD Sender: No OFD packet to send [09:05:38]OFD Sender: No OFD packet to send [09:05:43]OFD Sender: No OFD packet to send [09:05:48]OFD Sender: No OFD packet to send [09:05:53]OFD Sender: No OFD packet to send [09:05:58]OFD Sender: No OFD packet to send [09:06:03]OFD Sender: No OFD packet to send [09:06:08]OFD Sender: No OFD packet to send [09:06:13]OFD Sender: No OFD packet to send [09:06:18]OFD Sender: No OFD packet to send [09:06:23]OFD Sender: No OFD packet to send [09:06:28]OFD Sender: No OFD packet to send [09:06:33]OFD Sender: No OFD packet to send [09:06:38]OFD Sender: No OFD packet to send [09:06:43]OFD Sender: No OFD packet to send [09:06:48]OFD Sender: No OFD packet to send [09:06:53]OFD Sender: No OFD packet to send [09:06:58]OFD Sender: No OFD packet to send [09:07:03]OFD Sender: No OFD packet to send [09:07:08]OFD Sender: No OFD packet to send [09:07:13]OFD Sender: No OFD packet to send [09:07:18]OFD Sender: No OFD packet to send [09:07:23]OFD Sender: No OFD packet to send [09:07:28]OFD Sender: No OFD packet to send [09:07:33]OFD Sender: No OFD packet to send [09:07:35]accept exits with 9 [09:07:35]New connection [09:07:35]New thread 3066686820 created [09:07:35]Thread 3066543460 joined [09:07:35]Waiting for new connection... [09:07:35] Sock 9.Parse request [09:07:35]Sock 9.Check first char [09:07:35]Sock 9.First char is OK [09:07:35]request: POST /json_proto HTTP/1.0 [09:07:35]Method: POST [09:07:35]URL: /json_proto [09:07:35]Method is POST - this is cgi request [09:07:35]url: /json_proto [09:07:35]query_string will be loaded in cgi processing [09:07:35]execute_cgi json_proto POST (null) [09:07:35]execute_cgi path=json_proto method=POST [09:07:35]POST find Content-Length [09:07:35]Host: 172.17.36.132:8080 [09:07:35]Content-Length: 677 [09:07:35]Content-Type: application/json [09:07:35] [09:07:35]POST finish read [09:07:35]Found Content-Length = 677 [09:07:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706346", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:07:35]execute_script... [09:07: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)706346", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:07:35]POST & json_proto [09:07:35]process_json_proto [09:07:35]json parsed OK: [09:07:35]protocol is kg_v1.0 [09:07:35]action value=close_receipt [09:07:35]process_action close_receipt [09:07:35]cmd_close_receipt [09:07:35]MH_GetDate [09:07:35]Write to MH i2c: F0 00 00 2C 21 3C [09:07:35]Write i2c OK [09:07:35]MH_I2C_Read... [09:07:35]Read from MH i2c: F0 [09:07:35]MH_I2C_Read... [09:07:35]Read from MH i2c: F0 09 00 [09:07:35]MH_I2C_Read... [09:07:35]Read from MH i2c: F0 09 00 2C 21 00 DB 87 5D 66 B2 22 B0 64 52 [09:07:35]GetLastDocTimeStamp 1717405290 [09:07:35]current date 1717405659 [09:07:35]FM_GetShiftState [09:07:35]SAM_PROTO_GetShiftState [09:07:35]wFMCommunicate request_size=4 [09:07:35]MH_SAM_APDU [09:07:35]CAPDU: 80 13 01 00 [09:07:35]Write to MH i2c: E2 08 00 2D 21 80 13 01 00 00 00 00 00 CB [09:07:35]Write i2c OK [09:07:35]MH_I2C_Read... [09:07:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:07:35]Read from MH i2c: E2 [09:07:35]MH_I2C_Read... [09:07:35]Read from MH i2c: E2 0E 00 [09:07:35]MH_I2C_Read... [09:07:35]Read from MH i2c: E2 0E 00 2D 21 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 A6 [09:07:35]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [09:07:35]wFMCommunicate OK [09:07:35]SAM_PROTO_GetShiftState done [09:07:35]FM_GetShiftState done [09:07:35]opened in 1717378033 [09:07:35]opened+sec_in_day 1717464433 [09:07:35]quantity*price = 60009 [09:07:35]sum+1 = 60010 [09:07:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 20 03.06.2024 09:07 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68274 ФПД: 197062561162483 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T090739&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68274&fm=197062561162483&tin=02508201610067®Number=0000000000098096&sum=60000 [09:07:36]StoreToDocumentArchive [09:07:36]shift 324 fd 68274 [09:07:36]save to /storage/0324/doc_00068274 [09:07:36]save last doc name /storage/0324/doc_00068274 to /storage/kkm_last_doc_name [09:07:36]save OK [09:07:36]Clear old archive folders... [09:07:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:07:36]tlvbuf is B6E67A30 [09:07:36]SAM_PROTO_ClearQueue [09:07:36]wFMCommunicate request_size=4 [09:07:36]MH_SAM_APDU [09:07:36]CAPDU: 80 09 00 00 [09:07:36]Write to MH i2c: E2 08 00 3A 21 80 09 00 00 00 00 00 00 CD [09:07:36]Write i2c OK [09:07:36]MH_I2C_Read... [09:07:36]Read from MH i2c: E2 [09:07:36]MH_I2C_Read... [09:07:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:07:36]Read from MH i2c: E2 03 00 [09:07:36]MH_I2C_Read... [09:07:36]Read from MH i2c: E2 03 00 3A 21 00 90 00 CF [09:07:36]RAPDU: 90 00 [09:07:36]wFMCommunicate OK [09:07:36]SAM_PROTO_ClearQueue done [09:07:36]KKMCreateOFDPacket [09:07:36]OFDProtocolAddRootSTLVToBuf [09:07:36]FM_MakeSignedData [09:07:36]FM_MakeSignedData [09:07:36]SAM_PROTO_SignData [09:07:36]wFMCommunicate request_size=4 [09:07:36]MH_SAM_APDU [09:07:36]CAPDU: 80 0D 01 02 [09:07:36]Write to MH i2c: E2 08 00 3B 21 80 0D 01 02 00 00 00 00 D5 [09:07:36]Write i2c OK [09:07:36]MH_I2C_Read... [09:07:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:07:36]Read from MH i2c: E2 [09:07:36]MH_I2C_Read... [09:07:36]Read from MH i2c: E2 03 00 [09:07:36]MH_I2C_Read... [09:07:36]Read from MH i2c: E2 03 00 3B 21 00 90 00 D0 [09:07:36]RAPDU: 90 00 [09:07:36]wFMCommunicate OK [09:07:36]wFMCommunicate request_size=255 [09:07:36]MH_SAM_APDU [09:07:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 DB 87 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B2 0A 01 00 35 04 06 00 B3 [09:07:36]Write to MH i2c: E2 02 01 3C 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 DB 87 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B2 0A 01 00 35 04 06 00 B3 00 00 2D [09:07:36]Write i2c OK [09:07:36]MH_I2C_Read... [09:07:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:07:36]Read from MH i2c: E2 [09:07:36]MH_I2C_Read... [09:07:36]Read from MH i2c: E2 03 00 [09:07:36]MH_I2C_Read... [09:07:36]Read from MH i2c: E2 03 00 3C 21 00 90 00 D1 [09:07:36]RAPDU: 90 00 [09:07:36]wFMCommunicate OK [09:07:36]wFMCommunicate request_size=10 [09:07:36]MH_SAM_APDU [09:07:36]CAPDU: 80 0D 02 02 05 3A 33 F4 E4 F3 [09:07:36]Write to MH i2c: E2 0D 00 3D 21 80 0D 02 02 05 00 3A 33 F4 E4 F3 00 00 1A [09:07:36]Write i2c OK [09:07:36]MH_I2C_Read... [09:07:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:07:36]Read from MH i2c: E2 [09:07:36]MH_I2C_Read... [09:07:36]Read from MH i2c: E2 03 00 [09:07:36]MH_I2C_Read... [09:07:36]Read from MH i2c: E2 03 00 3D 21 00 90 00 D2 [09:07:36]RAPDU: 90 00 [09:07:36]wFMCommunicate OK [09:07:36]wFMCommunicate request_size=4 [09:07:36]MH_SAM_APDU [09:07:36]CAPDU: 80 0D 03 02 [09:07:36]Write to MH i2c: E2 08 00 3E 21 80 0D 03 02 00 00 00 00 DA [09:07:36]Write i2c OK [09:07:36]MH_I2C_Read... [09:07:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:07:36]Read from MH i2c: E2 [09:07:36]MH_I2C_Read... [09:07:36]Read from MH i2c: E2 0B 00 [09:07:36]MH_I2C_Read... [09:07:36]Read from MH i2c: E2 0B 00 3E 21 00 38 97 F0 F6 3C 50 32 5F 90 00 AD [09:07:36]RAPDU: 38 97 F0 F6 3C 50 32 5F 90 00 [09:07:36]wFMCommunicate OK [09:07:36]SAM_PROTO_SignData done [09:07:36]FM_MakeSignedData done [09:07:36]CreateOFDProtocolMessage [09:07:36]wFMCommunicate request_size=4 [09:07:36]MH_SAM_APDU [09:07:36]CAPDU: 80 11 00 00 [09:07:36]Write to MH i2c: E2 08 00 3F 21 80 11 00 00 00 00 00 00 DA [09:07:36]Write i2c OK [09:07:36]MH_I2C_Read... [09:07:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:07:36]Read from MH i2c: E2 [09:07:36]MH_I2C_Read... [09:07:36]Read from MH i2c: E2 17 00 [09:07:36]MH_I2C_Read... [09:07:36]Read from MH i2c: E2 17 00 3F 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 25 [09:07:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [09:07:36]wFMCommunicate OK [09:07:36]CreateOFDProtocolMessage done [09:07:36]OFDSenderStorePacket 68274 [09:07:36]StoreOFDPacket docnum=68274 [09:07:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 DD 85 07 01 CE 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 DB 87 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B2 0A 01 00 35 04 06 00 B3 3A 33 F4 E4 F3 38 97 F0 F6 3C 50 32 5F [09:07:36]CheckFolder [09:07:36]dirname=/storage/ofd_packets [09:07:36]CheckFolder done [09:07:36]ProducePacketName [09:07:36]name=ofd_packets/00068274 [09:07:36]NVStorageSaveData ofd_packets/00068274 [09:07:36]File name is /storage/ofd_packets/00068274 [09:07:36]Write 301 bytes [09:07:36]NVStorageSaveData done [09:07:36]OFDSenderStorePacket done [09:07:36]KKMCreateOFDPacket done [09:07:36]NVStorageSaveData kkm_last_timestamp [09:07:36]File name is /storage/kkm_last_timestamp [09:07:36]Write 4 bytes [09:07:36]NVStorageSaveData done [09:07:36]ExternCall_PrintAddStr [09:07:36]wPrintStart [09:07:36]Write to MH i2c: 01 00 00 40 21 61 [09:07:36]Write i2c OK [09:07:36]MH_I2C_Read... [09:07:36]Read from MH i2c: 01 [09:07:36]MH_I2C_Read... [09:07:36]Read from MH i2c: 01 07 00 [09:07:36]MH_I2C_Read... [09:07:36]Read from MH i2c: 01 07 00 40 21 00 00 00 00 00 FF 0F 76 [09:07:36]RasterBufferAndPrint [09:07:36]line Счет N : (1)706346 [09:07:36]line ИНН: 02508201610067 [09:07:36]line Контрольно-Кассовый Чек [09:07:36]line ПРОДАЖА [09:07:36]line ТРК (МРК, ГНК) : 32 [09:07:36]line Товар: 2710124130 [09:07:36]line Аи-92-К-4 [09:07:36]line 8.970 * 66.90 [09:07:36]line = 600.09 [09:07:36]line НДС 12% НСП 1% [09:07:36]line > о реализуемом товаре [09:07:36]line ОКРУГЛЕНИЕ: -0.09 [09:07:36]line ИТОГО: 600.00 [09:07:36]line Внесено: 600.00 [09:07:36]line СДАЧА: 0.00 [09:07:36]line НСП 1% : 5.31 [09:07:36]line НДС 12% : 63.73 [09:07:36]line Наличными: 600.00 [09:07:36]line Безнал.: 0.00 [09:07:36]line Место: АЗС № 62 "Партнер Нефть" [09:07:36]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [09:07:36]line СНО: Общий режим [09:07:36]line Чек 20 03.06.2024 09:07 [09:07:36]line Смена: 324 ФФД: 1.0 [09:07:36]line ЗНМ: 0300000181 [09:07:36]line РНМ: 0000000000098096 [09:07:36]line Версия ККМ: 001 [09:07:36]line ФМ: 0000000000965400 [09:07:36]line ФД: 68274 [09:07:36]line ФПД: 197062561162483 [09:07:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T090739&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68274&fm=197062561162483&tin=02508201610067®Number=0000000000098096&sum=60000 [09:07:37]OFD Sender: Processing packet 68274 [packets to send 26, broken 25] [09:07:37]ProducePacketName [09:07:37]name=ofd_packets/00068274 [09:07:37]OFD Sender: To server: pG, [09:07:37]CommunicateWithHost lk.salyk.kg:30040 [09:07:37]ConnectInit lk.salyk.kg [09:07:37]written 0, free lines is 4095 [09:07:37]Connected sock=10 [09:07:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 DD 85 07 01 CE 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 DB 87 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B2 0A 01 00 35 04 06 00 B3 3A 33 F4 E4 F3 38 97 F0 F6 3C 50 32 5F [09:07:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 98 17 47 00 B5 C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B2 0A 01 00 F4 03 04 00 D8 2E 5D 66 B6 04 01 00 00 05 CA 42 19 E2 1E 49 0C [09:07:37]CommunicateWithHost err = 0 [09:07:37]CheckOFDResponse [09:07:37]1017 (14) - 77093643461234 [09:07:37]1041 (16) - 0000000000965400 [09:07:37]1040 (4) - 68274 [09:07:37]1012 (4) - 03.06.2024 02:47 [09:07:37]1206 (1) - 0 [09:07:37]OFD Sender: Remove packet 68274 [09:07:37]ProducePacketName [09:07:37]name=ofd_packets/00068274 [09:07:37]NVStorageDeleteData [09:07:37]Write to MH i2c: 01 00 00 6B 21 8C [09:07:37]Write i2c OK [09:07:37]MH_I2C_Read... [09:07:37]Read from MH i2c: 01 [09:07:37]MH_I2C_Read... [09:07:37]Read from MH i2c: 01 07 00 [09:07:37]MH_I2C_Read... [09:07:37]Read from MH i2c: 01 07 00 6B 21 00 00 00 00 00 D7 0C 76 [09:07:37]RasterBufferAndPrint [09:07:37]line [09:07:37]line [09:07:37]line [09:07:37]line [09:07:37]line [09:07:37]written 0, free lines is 3294 [09:07:37]MH_Cut [09:07:37]Write to MH i2c: D1 01 00 72 21 01 65 [09:07:37]Write i2c OK [09:07:37]MH_I2C_Read... [09:07:37]Read from MH i2c: D1 [09:07:37]MH_I2C_Read... [09:07:37]Read from MH i2c: D1 01 00 [09:07:37]MH_I2C_Read... [09:07:37]Read from MH i2c: D1 01 00 72 21 00 64 [09:07:37]Write to MH i2c: 01 00 00 73 21 94 [09:07:37]Write i2c OK [09:07:37]MH_I2C_Read... [09:07:37]OFD Sender: No OFD packet to send [09:07:38]*** Cut start [09:07:38]*** Partial cut [09:07:38]*** CUTSNS_PIN = 1 [09:07:38]*** CUTSNS_PIN = 0 [09:07:38]*** Brake cut motor [09:07:39]Read from MH i2c: 01 [09:07:39]MH_I2C_Read... [09:07:39]*** Stop cut motor [09:07:39]*** Cut end [09:07:39]Read from MH i2c: 01 07 00 [09:07:39]MH_I2C_Read... [09:07:39]Read from MH i2c: 01 07 00 73 21 00 00 00 00 00 FF 0F A9 [09:07:39]process_action close_receipt done [09:07:39]requested_data is exist [09:07:39]produce_requested_data [09:07:39]requested_item fm.sn is exist - process it [09:07:39]wFMCommunicate request_size=4 [09:07:39]MH_SAM_APDU [09:07:39]CAPDU: 80 11 00 00 [09:07:39]Write to MH i2c: E2 08 00 74 21 80 11 00 00 00 00 00 00 0F [09:07:39]Write i2c OK [09:07:39]MH_I2C_Read... [09:07:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:07:39]Read from MH i2c: E2 [09:07:39]MH_I2C_Read... [09:07:39]Read from MH i2c: E2 17 00 [09:07:39]MH_I2C_Read... [09:07:39]Read from MH i2c: E2 17 00 74 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 5A [09:07:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [09:07:39]wFMCommunicate OK [09:07:39]requested_item fd.num is exist - process it [09:07:39]SAM_PROTO_GetFieldsCounters [09:07:39]wFMCommunicate request_size=4 [09:07:39]MH_SAM_APDU [09:07:39]CAPDU: 80 13 00 00 [09:07:39]Write to MH i2c: E2 08 00 75 21 80 13 00 00 00 00 00 00 12 [09:07:39]Write i2c OK [09:07:39]MH_I2C_Read... [09:07:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:07:39]Read from MH i2c: E2 [09:07:39]MH_I2C_Read... [09:07:39]Read from MH i2c: E2 62 00 [09:07:39]MH_I2C_Read... [09:07:39]Read from MH i2c: E2 62 00 75 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 B2 0A 01 00 0E 04 04 00 44 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 70 [09:07:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 B2 0A 01 00 0E 04 04 00 44 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 [09:07:39]wFMCommunicate OK [09:07:39]SAM_PROTO_GetFieldsCounters done [09:07:39]requested_item shift.num is exist - process it [09:07:39]requested_item shift.opened is exist - process it [09:07:39]req_shift_opened [09:07:39]FM_GetShiftState [09:07:39]SAM_PROTO_GetShiftState [09:07:39]wFMCommunicate request_size=4 [09:07:39]MH_SAM_APDU [09:07:39]CAPDU: 80 13 01 00 [09:07:39]Write to MH i2c: E2 08 00 76 21 80 13 01 00 00 00 00 00 14 [09:07:39]Write i2c OK [09:07:39]MH_I2C_Read... [09:07:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:07:39]Read from MH i2c: E2 [09:07:39]MH_I2C_Read... [09:07:39]Read from MH i2c: E2 0E 00 [09:07:39]MH_I2C_Read... [09:07:39]Read from MH i2c: E2 0E 00 76 21 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 EF [09:07:39]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [09:07:39]wFMCommunicate OK [09:07:39]SAM_PROTO_GetShiftState done [09:07:39]FM_GetShiftState done [09:07:39]req_shift_opened done [09:07:39]requested_item shift.open_date is exist - process it [09:07:39]req_shift_open_date [09:07:39]req_shift_open_date done [09:07:39]produce_requested_data done [09:07:39]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68274,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [09:07:39]process_action_free close_receipt [09:07:39]json_value_free [09:07:39]json_value_free done [09:07:39]process_json_proto returns [09:07:39]Send response to host [09:07:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68274,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [09:07:39]free response buf [09:07:39]execute_script done [09:07:39]execute_script returns [09:07:39]free content buf [09:07:39]Sock 9.Close socket [09:07:39]Sock 9.Thread stoped [09:07:43]OFD Sender: No OFD packet to send [09:07:48]OFD Sender: No OFD packet to send [09:07:53]OFD Sender: No OFD packet to send [09:07:58]OFD Sender: No OFD packet to send [09:08:03]OFD Sender: No OFD packet to send [09:08:08]OFD Sender: No OFD packet to send [09:08:13]OFD Sender: No OFD packet to send [09:08:18]OFD Sender: No OFD packet to send [09:08:23]OFD Sender: No OFD packet to send [09:08:28]OFD Sender: No OFD packet to send [09:08:33]OFD Sender: No OFD packet to send [09:08:38]OFD Sender: No OFD packet to send [09:08:43]OFD Sender: No OFD packet to send [09:08:48]OFD Sender: No OFD packet to send [09:08:53]OFD Sender: No OFD packet to send [09:08:58]OFD Sender: No OFD packet to send [09:09:03]OFD Sender: No OFD packet to send [09:09:08]OFD Sender: No OFD packet to send [09:09:13]OFD Sender: No OFD packet to send [09:09:18]OFD Sender: No OFD packet to send [09:09:23]OFD Sender: No OFD packet to send [09:09:28]OFD Sender: No OFD packet to send [09:09:33]OFD Sender: No OFD packet to send [09:09:38]OFD Sender: No OFD packet to send [09:09:43]OFD Sender: No OFD packet to send [09:09:48]OFD Sender: No OFD packet to send [09:09:53]OFD Sender: No OFD packet to send [09:09:58]OFD Sender: No OFD packet to send [09:10:03]OFD Sender: No OFD packet to send [09:10:08]OFD Sender: No OFD packet to send [09:10:13]OFD Sender: No OFD packet to send [09:10:18]OFD Sender: No OFD packet to send [09:10:23]OFD Sender: No OFD packet to send [09:10:28]OFD Sender: No OFD packet to send [09:10:33]OFD Sender: No OFD packet to send [09:10:38]OFD Sender: No OFD packet to send [09:10:43]OFD Sender: No OFD packet to send [09:10:48]OFD Sender: No OFD packet to send [09:10:53]OFD Sender: No OFD packet to send [09:10:58]OFD Sender: No OFD packet to send [09:11:03]OFD Sender: No OFD packet to send [09:11:08]OFD Sender: No OFD packet to send [09:11:13]OFD Sender: No OFD packet to send [09:11:18]OFD Sender: No OFD packet to send [09:11:23]OFD Sender: No OFD packet to send [09:11:28]OFD Sender: No OFD packet to send [09:11:33]OFD Sender: No OFD packet to send [09:11:38]OFD Sender: No OFD packet to send [09:11:43]OFD Sender: No OFD packet to send [09:11:48]OFD Sender: No OFD packet to send [09:11:53]OFD Sender: No OFD packet to send [09:11:58]OFD Sender: No OFD packet to send [09:12:03]OFD Sender: No OFD packet to send [09:12:08]OFD Sender: No OFD packet to send [09:12:13]OFD Sender: No OFD packet to send [09:12:18]OFD Sender: No OFD packet to send [09:12:23]OFD Sender: No OFD packet to send [09:12:28]OFD Sender: No OFD packet to send [09:12:33]OFD Sender: No OFD packet to send [09:12:38]OFD Sender: No OFD packet to send [09:12:43]OFD Sender: No OFD packet to send [09:12:48]OFD Sender: No OFD packet to send [09:12:53]OFD Sender: No OFD packet to send [09:12:58]OFD Sender: No OFD packet to send [09:12:59]accept exits with 7 [09:12:59]New connection [09:12:59]New thread 3066543460 created [09:12:59]Thread 3066686820 joined [09:12:59]Waiting for new connection... [09:12:59] Sock 7.Parse request [09:12:59]Sock 7.Check first char [09:12:59]Sock 7.First char is OK [09:12:59]request: POST /json_proto HTTP/1.0 [09:12:59]Method: POST [09:12:59]URL: /json_proto [09:12:59]Method is POST - this is cgi request [09:12:59]url: /json_proto [09:12:59]query_string will be loaded in cgi processing [09:12:59]execute_cgi json_proto POST (null) [09:12:59]execute_cgi path=json_proto method=POST [09:12:59]POST find Content-Length [09:12:59]Host: 172.17.36.132:8080 [09:12:59]Content-Length: 670 [09:12:59]Content-Type: application/json [09:12:59] [09:12:59]POST finish read [09:12:59]Found Content-Length = 670 [09:12:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706348", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 2.210, "sum" : 150.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:12:59]execute_script... [09:12: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)706348", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 2.210, "sum" : 150.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:12:59]POST & json_proto [09:12:59]process_json_proto [09:12:59]json parsed OK: [09:12:59]protocol is kg_v1.0 [09:12:59]action value=close_receipt [09:12:59]process_action close_receipt [09:12:59]cmd_close_receipt [09:12:59]MH_GetDate [09:12:59]Write to MH i2c: F0 00 00 77 21 87 [09:12:59]Write i2c OK [09:12:59]MH_I2C_Read... [09:12:59]Read from MH i2c: F0 [09:12:59]MH_I2C_Read... [09:12:59]Read from MH i2c: F0 09 00 [09:12:59]MH_I2C_Read... [09:12:59]Read from MH i2c: F0 09 00 77 21 00 1F 89 5D 66 B2 22 B0 64 E3 [09:12:59]GetLastDocTimeStamp 1717405659 [09:12:59]current date 1717405983 [09:12:59]FM_GetShiftState [09:12:59]SAM_PROTO_GetShiftState [09:12:59]wFMCommunicate request_size=4 [09:12:59]MH_SAM_APDU [09:12:59]CAPDU: 80 13 01 00 [09:12:59]Write to MH i2c: E2 08 00 78 21 80 13 01 00 00 00 00 00 16 [09:12:59]Write i2c OK [09:12:59]MH_I2C_Read... [09:12:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:12:59]Read from MH i2c: E2 [09:12:59]MH_I2C_Read... [09:12:59]Read from MH i2c: E2 0E 00 [09:12:59]MH_I2C_Read... [09:12:59]Read from MH i2c: E2 0E 00 78 21 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 F1 [09:12:59]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [09:12:59]wFMCommunicate OK [09:12:59]SAM_PROTO_GetShiftState done [09:12:59]FM_GetShiftState done [09:12:59]opened in 1717378033 [09:12:59]opened+sec_in_day 1717464433 [09:12:59]quantity*price = 15005 [09:12:59]sum+1 = 15007 [09:12:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 150.00 Внесено: 150.00 СДАЧА: 0.00 НСП 1% : 1.33 НДС 12% : 15.94 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 21 03.06.2024 09:13 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68275 ФПД: 8254870071710 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T091303&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68275&fm=8254870071710&tin=02508201610067®Number=0000000000098096&sum=15000 [09:13:00]StoreToDocumentArchive [09:13:00]shift 324 fd 68275 [09:13:00]save to /storage/0324/doc_00068275 [09:13:00]save last doc name /storage/0324/doc_00068275 to /storage/kkm_last_doc_name [09:13:00]save OK [09:13:00]Clear old archive folders... [09:13:00]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:13:00]tlvbuf is 00377B70 [09:13:00]SAM_PROTO_ClearQueue [09:13:00]wFMCommunicate request_size=4 [09:13:00]MH_SAM_APDU [09:13:00]CAPDU: 80 09 00 00 [09:13:00]Write to MH i2c: E2 08 00 85 21 80 09 00 00 00 00 00 00 18 [09:13:00]Write i2c OK [09:13:00]MH_I2C_Read... [09:13:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:13:00]Read from MH i2c: E2 [09:13:00]MH_I2C_Read... [09:13:00]Read from MH i2c: E2 03 00 [09:13:00]MH_I2C_Read... [09:13:00]Read from MH i2c: E2 03 00 85 21 00 90 00 1A [09:13:00]RAPDU: 90 00 [09:13:00]wFMCommunicate OK [09:13:00]SAM_PROTO_ClearQueue done [09:13:00]KKMCreateOFDPacket [09:13:00]OFDProtocolAddRootSTLVToBuf [09:13:00]FM_MakeSignedData [09:13:00]FM_MakeSignedData [09:13:00]SAM_PROTO_SignData [09:13:00]wFMCommunicate request_size=4 [09:13:00]MH_SAM_APDU [09:13:00]CAPDU: 80 0D 01 02 [09:13:00]Write to MH i2c: E2 08 00 86 21 80 0D 01 02 00 00 00 00 20 [09:13:00]Write i2c OK [09:13:00]MH_I2C_Read... [09:13:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:13:00]Read from MH i2c: E2 [09:13:00]MH_I2C_Read... [09:13:00]Read from MH i2c: E2 03 00 [09:13:00]MH_I2C_Read... [09:13:00]Read from MH i2c: E2 03 00 86 21 00 90 00 1B [09:13:00]RAPDU: 90 00 [09:13:00]wFMCommunicate OK [09:13:00]wFMCommunicate request_size=255 [09:13:00]MH_SAM_APDU [09:13: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 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 08 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 9E 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 1F 89 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B3 0A 01 00 35 04 06 00 [09:13:00]Write to MH i2c: E2 02 01 87 21 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 08 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 9E 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 1F 89 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B3 0A 01 00 35 04 06 00 00 00 61 [09:13:00]Write i2c OK [09:13:00]MH_I2C_Read... [09:13:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:13:01]Read from MH i2c: E2 [09:13:01]MH_I2C_Read... [09:13:01]Read from MH i2c: E2 03 00 [09:13:01]MH_I2C_Read... [09:13:01]Read from MH i2c: E2 03 00 87 21 00 90 00 1C [09:13:01]RAPDU: 90 00 [09:13:01]wFMCommunicate OK [09:13:01]wFMCommunicate request_size=11 [09:13:01]MH_SAM_APDU [09:13:01]CAPDU: 80 0D 02 02 06 07 81 FC 99 29 9E [09:13:01]Write to MH i2c: E2 0E 00 88 21 80 0D 02 02 06 00 07 81 FC 99 29 9E 00 00 13 [09:13:01]Write i2c OK [09:13:01]MH_I2C_Read... [09:13:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:13:01]Read from MH i2c: E2 [09:13:01]MH_I2C_Read... [09:13:01]Read from MH i2c: E2 03 00 [09:13:01]MH_I2C_Read... [09:13:01]Read from MH i2c: E2 03 00 88 21 00 90 00 1D [09:13:01]RAPDU: 90 00 [09:13:01]wFMCommunicate OK [09:13:01]wFMCommunicate request_size=4 [09:13:01]MH_SAM_APDU [09:13:01]CAPDU: 80 0D 03 02 [09:13:01]Write to MH i2c: E2 08 00 89 21 80 0D 03 02 00 00 00 00 25 [09:13:01]Write i2c OK [09:13:01]MH_I2C_Read... [09:13:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:13:01]Read from MH i2c: E2 [09:13:01]MH_I2C_Read... [09:13:01]Read from MH i2c: E2 0B 00 [09:13:01]MH_I2C_Read... [09:13:01]Read from MH i2c: E2 0B 00 89 21 00 C1 62 C1 3E 81 22 41 F1 90 00 1D [09:13:01]RAPDU: C1 62 C1 3E 81 22 41 F1 90 00 [09:13:01]wFMCommunicate OK [09:13:01]SAM_PROTO_SignData done [09:13:01]FM_MakeSignedData done [09:13:01]CreateOFDProtocolMessage [09:13:01]wFMCommunicate request_size=4 [09:13:01]MH_SAM_APDU [09:13:01]CAPDU: 80 11 00 00 [09:13:01]Write to MH i2c: E2 08 00 8A 21 80 11 00 00 00 00 00 00 25 [09:13:01]Write i2c OK [09:13:01]MH_I2C_Read... [09:13:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:13:01]Read from MH i2c: E2 [09:13:01]MH_I2C_Read... [09:13:01]Read from MH i2c: E2 17 00 [09:13:01]MH_I2C_Read... [09:13:01]Read from MH i2c: E2 17 00 8A 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 70 [09:13:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [09:13:01]wFMCommunicate OK [09:13:01]CreateOFDProtocolMessage done [09:13:01]OFDSenderStorePacket 68275 [09:13:01]StoreOFDPacket docnum=68275 [09:13:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 66 C9 08 01 75 11 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 08 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 9E 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 1F 89 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B3 0A 01 00 35 04 06 00 07 81 FC 99 29 9E C1 62 C1 3E 81 22 41 F1 [09:13:01]CheckFolder [09:13:01]dirname=/storage/ofd_packets [09:13:01]CheckFolder done [09:13:01]ProducePacketName [09:13:01]name=ofd_packets/00068275 [09:13:01]NVStorageSaveData ofd_packets/00068275 [09:13:01]File name is /storage/ofd_packets/00068275 [09:13:01]Write 302 bytes [09:13:01]NVStorageSaveData done [09:13:01]OFDSenderStorePacket done [09:13:01]KKMCreateOFDPacket done [09:13:01]NVStorageSaveData kkm_last_timestamp [09:13:01]File name is /storage/kkm_last_timestamp [09:13:01]Write 4 bytes [09:13:01]NVStorageSaveData done [09:13:01]ExternCall_PrintAddStr [09:13:01]wPrintStart [09:13:01]Write to MH i2c: 01 00 00 8B 21 AC [09:13:01]Write i2c OK [09:13:01]MH_I2C_Read... [09:13:01]Read from MH i2c: 01 [09:13:01]MH_I2C_Read... [09:13:01]Read from MH i2c: 01 07 00 [09:13:01]MH_I2C_Read... [09:13:01]Read from MH i2c: 01 07 00 8B 21 00 00 00 00 00 FF 0F C1 [09:13:01]RasterBufferAndPrint [09:13:01]line Счет N : (1)706348 [09:13:01]line ИНН: 02508201610067 [09:13:01]line Контрольно-Кассовый Чек [09:13:01]line ПРОДАЖА [09:13:01]line ТРК (МРК, ГНК) : 52 [09:13:01]line Товар: 2710124130 [09:13:01]line Super-92-К-5 [09:13:01]line 2.210 * 67.90 [09:13:01]line = 150.06 [09:13:01]line НДС 12% НСП 1% [09:13:01]line > о реализуемом товаре [09:13:01]line ОКРУГЛЕНИЕ: -0.06 [09:13:01]line ИТОГО: 150.00 [09:13:01]line Внесено: 150.00 [09:13:01]line СДАЧА: 0.00 [09:13:01]line НСП 1% : 1.33 [09:13:01]line НДС 12% : 15.94 [09:13:01]line Наличными: 150.00 [09:13:01]line Безнал.: 0.00 [09:13:01]line Место: АЗС № 62 "Партнер Нефть" [09:13:01]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [09:13:01]line СНО: Общий режим [09:13:01]line Чек 21 03.06.2024 09:13 [09:13:01]line Смена: 324 ФФД: 1.0 [09:13:01]line ЗНМ: 0300000181 [09:13:01]line РНМ: 0000000000098096 [09:13:01]line Версия ККМ: 001 [09:13:01]line ФМ: 0000000000965400 [09:13:01]line ФД: 68275 [09:13:01]line ФПД: 8254870071710 [09:13:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T091303&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68275&fm=8254870071710&tin=02508201610067®Number=0000000000098096&sum=15000 [09:13:01]OFD Sender: Processing packet 68275 [packets to send 26, broken 25] [09:13:01]ProducePacketName [09:13:01]name=ofd_packets/00068275 [09:13:01]OFD Sender: To server: pG, [09:13:01]CommunicateWithHost lk.salyk.kg:30040 [09:13:01]ConnectInit lk.salyk.kg [09:13:01]written 0, free lines is 4095 [09:13:01]Connected sock=10 [09:13:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 66 C9 08 01 75 11 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 08 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 9E 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 1F 89 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B3 0A 01 00 35 04 06 00 07 81 FC 99 29 9E C1 62 C1 3E 81 22 41 F1 [09:13:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 8E 10 47 00 F7 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B3 0A 01 00 F4 03 04 00 1C 30 5D 66 B6 04 01 00 00 AF AB 42 C3 76 25 2A 4F [09:13:01]CommunicateWithHost err = 0 [09:13:01]CheckOFDResponse [09:13:01]1017 (14) - 77093643461234 [09:13:01]1041 (16) - 0000000000965400 [09:13:01]1040 (4) - 68275 [09:13:01]1012 (4) - 03.06.2024 02:53 [09:13:01]1206 (1) - 0 [09:13:01]OFD Sender: Remove packet 68275 [09:13:01]ProducePacketName [09:13:01]name=ofd_packets/00068275 [09:13:01]NVStorageDeleteData [09:13:02]Write to MH i2c: 01 00 00 B6 21 D7 [09:13:02]Write i2c OK [09:13:02]MH_I2C_Read... [09:13:02]Read from MH i2c: 01 [09:13:02]MH_I2C_Read... [09:13:02]Read from MH i2c: 01 07 00 [09:13:02]MH_I2C_Read... [09:13:02]Read from MH i2c: 01 07 00 B6 21 00 00 00 00 00 D0 0C BA [09:13:02]RasterBufferAndPrint [09:13:02]line [09:13:02]line [09:13:02]line [09:13:02]line [09:13:02]line [09:13:02]written 0, free lines is 3287 [09:13:02]MH_Cut [09:13:02]Write to MH i2c: D1 01 00 BD 21 01 B0 [09:13:02]Write i2c OK [09:13:02]MH_I2C_Read... [09:13:02]Read from MH i2c: D1 [09:13:02]MH_I2C_Read... [09:13:02]Read from MH i2c: D1 01 00 [09:13:02]MH_I2C_Read... [09:13:02]Read from MH i2c: D1 01 00 BD 21 00 AF [09:13:02]Write to MH i2c: 01 00 00 BE 21 DF [09:13:02]Write i2c OK [09:13:02]MH_I2C_Read... [09:13:02]OFD Sender: No OFD packet to send [09:13:02]*** Cut start [09:13:02]*** Partial cut [09:13:02]*** CUTSNS_PIN = 1 [09:13:02]*** CUTSNS_PIN = 0 [09:13:03]*** Brake cut motor [09:13:03]Read from MH i2c: 01 [09:13:03]MH_I2C_Read... [09:13:03]*** Stop cut motor [09:13:03]*** Cut end [09:13:03]Read from MH i2c: 01 07 00 [09:13:03]MH_I2C_Read... [09:13:03]Read from MH i2c: 01 07 00 BE 21 00 00 00 00 00 FF 0F F4 [09:13:03]process_action close_receipt done [09:13:03]requested_data is exist [09:13:03]produce_requested_data [09:13:03]requested_item fm.sn is exist - process it [09:13:03]wFMCommunicate request_size=4 [09:13:03]MH_SAM_APDU [09:13:03]CAPDU: 80 11 00 00 [09:13:03]Write to MH i2c: E2 08 00 BF 21 80 11 00 00 00 00 00 00 5A [09:13:03]Write i2c OK [09:13:03]MH_I2C_Read... [09:13:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:13:03]Read from MH i2c: E2 [09:13:03]MH_I2C_Read... [09:13:03]Read from MH i2c: E2 17 00 [09:13:03]MH_I2C_Read... [09:13:03]Read from MH i2c: E2 17 00 BF 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 A5 [09:13:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [09:13:03]wFMCommunicate OK [09:13:03]requested_item fd.num is exist - process it [09:13:03]SAM_PROTO_GetFieldsCounters [09:13:03]wFMCommunicate request_size=4 [09:13:03]MH_SAM_APDU [09:13:03]CAPDU: 80 13 00 00 [09:13:03]Write to MH i2c: E2 08 00 C0 21 80 13 00 00 00 00 00 00 5D [09:13:03]Write i2c OK [09:13:03]MH_I2C_Read... [09:13:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:13:03]Read from MH i2c: E2 [09:13:03]MH_I2C_Read... [09:13:03]Read from MH i2c: E2 62 00 [09:13:03]MH_I2C_Read... [09:13:03]Read from MH i2c: E2 62 00 C0 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 B3 0A 01 00 0E 04 04 00 44 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 BF [09:13:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 B3 0A 01 00 0E 04 04 00 44 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 [09:13:03]wFMCommunicate OK [09:13:03]SAM_PROTO_GetFieldsCounters done [09:13:03]requested_item shift.num is exist - process it [09:13:03]requested_item shift.opened is exist - process it [09:13:03]req_shift_opened [09:13:03]FM_GetShiftState [09:13:03]SAM_PROTO_GetShiftState [09:13:03]wFMCommunicate request_size=4 [09:13:03]MH_SAM_APDU [09:13:03]CAPDU: 80 13 01 00 [09:13:03]Write to MH i2c: E2 08 00 C1 21 80 13 01 00 00 00 00 00 5F [09:13:03]Write i2c OK [09:13:03]MH_I2C_Read... [09:13:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:13:03]Read from MH i2c: E2 [09:13:03]MH_I2C_Read... [09:13:03]Read from MH i2c: E2 0E 00 [09:13:03]MH_I2C_Read... [09:13:03]Read from MH i2c: E2 0E 00 C1 21 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 3A [09:13:03]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [09:13:03]wFMCommunicate OK [09:13:03]SAM_PROTO_GetShiftState done [09:13:03]FM_GetShiftState done [09:13:03]req_shift_opened done [09:13:03]requested_item shift.open_date is exist - process it [09:13:03]req_shift_open_date [09:13:03]req_shift_open_date done [09:13:03]produce_requested_data done [09:13:03]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68275,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [09:13:03]process_action_free close_receipt [09:13:03]json_value_free [09:13:03]json_value_free done [09:13:03]process_json_proto returns [09:13:03]Send response to host [09:13:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68275,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [09:13:03]free response buf [09:13:03]execute_script done [09:13:03]execute_script returns [09:13:03]free content buf [09:13:03]Sock 7.Close socket [09:13:03]Sock 7.Thread stoped [09:13:07]OFD Sender: No OFD packet to send [09:13:12]OFD Sender: No OFD packet to send [09:13:17]OFD Sender: No OFD packet to send [09:13:22]OFD Sender: No OFD packet to send [09:13:27]OFD Sender: No OFD packet to send [09:13:32]OFD Sender: No OFD packet to send [09:13:37]OFD Sender: No OFD packet to send [09:13:42]OFD Sender: No OFD packet to send [09:13:47]OFD Sender: No OFD packet to send [09:13:52]OFD Sender: No OFD packet to send [09:13:57]OFD Sender: No OFD packet to send [09:14:02]OFD Sender: No OFD packet to send [09:14:07]OFD Sender: No OFD packet to send [09:14:12]OFD Sender: No OFD packet to send [09:14:16]accept exits with 9 [09:14:16]New connection [09:14:16]New thread 3066686820 created [09:14:16]Thread 3066543460 joined [09:14:16]Waiting for new connection... [09:14:16] Sock 9.Parse request [09:14:16]Sock 9.Check first char [09:14:16]Sock 9.First char is OK [09:14:16]request: POST /json_proto HTTP/1.0 [09:14:16]Method: POST [09:14:16]URL: /json_proto [09:14:16]Method is POST - this is cgi request [09:14:16]url: /json_proto [09:14:16]query_string will be loaded in cgi processing [09:14:16]execute_cgi json_proto POST (null) [09:14:16]execute_cgi path=json_proto method=POST [09:14:16]POST find Content-Length [09:14:16]Host: 172.17.36.132:8080 [09:14:16]Content-Length: 677 [09:14:16]Content-Type: application/json [09:14:16] [09:14:16]POST finish read [09:14:16]Found Content-Length = 677 [09:14:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706349", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:14:16]execute_script... [09:14: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)706349", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:14:16]POST & json_proto [09:14:16]process_json_proto [09:14:16]json parsed OK: [09:14:16]protocol is kg_v1.0 [09:14:16]action value=close_receipt [09:14:16]process_action close_receipt [09:14:16]cmd_close_receipt [09:14:16]MH_GetDate [09:14:16]Write to MH i2c: F0 00 00 C2 21 D2 [09:14:16]Write i2c OK [09:14:16]MH_I2C_Read... [09:14:16]Read from MH i2c: F0 [09:14:16]MH_I2C_Read... [09:14:16]Read from MH i2c: F0 09 00 [09:14:16]MH_I2C_Read... [09:14:16]Read from MH i2c: F0 09 00 C2 21 00 6C 89 5D 66 B2 22 B0 64 7B [09:14:16]GetLastDocTimeStamp 1717405983 [09:14:16]current date 1717406060 [09:14:16]FM_GetShiftState [09:14:16]SAM_PROTO_GetShiftState [09:14:16]wFMCommunicate request_size=4 [09:14:16]MH_SAM_APDU [09:14:16]CAPDU: 80 13 01 00 [09:14:16]Write to MH i2c: E2 08 00 C3 21 80 13 01 00 00 00 00 00 61 [09:14:16]Write i2c OK [09:14:16]MH_I2C_Read... [09:14:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:14:16]Read from MH i2c: E2 [09:14:16]MH_I2C_Read... [09:14:16]Read from MH i2c: E2 0E 00 [09:14:16]MH_I2C_Read... [09:14:16]Read from MH i2c: E2 0E 00 C3 21 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 3C [09:14:16]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [09:14:16]wFMCommunicate OK [09:14:16]SAM_PROTO_GetShiftState done [09:14:16]FM_GetShiftState done [09:14:16]opened in 1717378033 [09:14:16]opened+sec_in_day 1717464433 [09:14:16]quantity*price = 20003 [09:14:16]sum+1 = 20004 [09:14:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 22 03.06.2024 09:14 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68276 ФПД: 110133839711491 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T091420&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68276&fm=110133839711491&tin=02508201610067®Number=0000000000098096&sum=20000 [09:14:17]StoreToDocumentArchive [09:14:17]shift 324 fd 68276 [09:14:17]save to /storage/0324/doc_00068276 [09:14:17]save last doc name /storage/0324/doc_00068276 to /storage/kkm_last_doc_name [09:14:17]save OK [09:14:17]Clear old archive folders... [09:14:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:14:17]tlvbuf is 003783C0 [09:14:17]SAM_PROTO_ClearQueue [09:14:17]wFMCommunicate request_size=4 [09:14:17]MH_SAM_APDU [09:14:17]CAPDU: 80 09 00 00 [09:14:17]Write to MH i2c: E2 08 00 D0 21 80 09 00 00 00 00 00 00 63 [09:14:17]Write i2c OK [09:14:17]MH_I2C_Read... [09:14:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:14:17]Read from MH i2c: E2 [09:14:17]MH_I2C_Read... [09:14:17]Read from MH i2c: E2 03 00 [09:14:17]MH_I2C_Read... [09:14:17]Read from MH i2c: E2 03 00 D0 21 00 90 00 65 [09:14:17]RAPDU: 90 00 [09:14:17]wFMCommunicate OK [09:14:17]SAM_PROTO_ClearQueue done [09:14:17]KKMCreateOFDPacket [09:14:17]OFDProtocolAddRootSTLVToBuf [09:14:17]FM_MakeSignedData [09:14:17]FM_MakeSignedData [09:14:17]SAM_PROTO_SignData [09:14:17]wFMCommunicate request_size=4 [09:14:17]MH_SAM_APDU [09:14:17]CAPDU: 80 0D 01 02 [09:14:17]Write to MH i2c: E2 08 00 D1 21 80 0D 01 02 00 00 00 00 6B [09:14:17]Write i2c OK [09:14:17]MH_I2C_Read... [09:14:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:14:17]Read from MH i2c: E2 [09:14:17]MH_I2C_Read... [09:14:17]Read from MH i2c: E2 03 00 [09:14:17]MH_I2C_Read... [09:14:17]Read from MH i2c: E2 03 00 D1 21 00 90 00 66 [09:14:17]RAPDU: 90 00 [09:14:17]wFMCommunicate OK [09:14:17]wFMCommunicate request_size=255 [09:14:17]MH_SAM_APDU [09:14:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 6C 89 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B4 0A 01 00 35 04 06 00 64 [09:14:17]Write to MH i2c: E2 02 01 D2 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 6C 89 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B4 0A 01 00 35 04 06 00 64 00 00 F0 [09:14:17]Write i2c OK [09:14:17]MH_I2C_Read... [09:14:17]OFD Sender: No OFD packet to send [09:14:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:14:17]Read from MH i2c: E2 [09:14:17]MH_I2C_Read... [09:14:17]Read from MH i2c: E2 03 00 [09:14:17]MH_I2C_Read... [09:14:17]Read from MH i2c: E2 03 00 D2 21 00 90 00 67 [09:14:17]RAPDU: 90 00 [09:14:17]wFMCommunicate OK [09:14:17]wFMCommunicate request_size=10 [09:14:17]MH_SAM_APDU [09:14:17]CAPDU: 80 0D 02 02 05 2A 88 64 CD 03 [09:14:17]Write to MH i2c: E2 0D 00 D3 21 80 0D 02 02 05 00 2A 88 64 CD 03 00 00 5E [09:14:17]Write i2c OK [09:14:17]MH_I2C_Read... [09:14:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:14:17]Read from MH i2c: E2 [09:14:17]MH_I2C_Read... [09:14:17]Read from MH i2c: E2 03 00 [09:14:17]MH_I2C_Read... [09:14:17]Read from MH i2c: E2 03 00 D3 21 00 90 00 68 [09:14:17]RAPDU: 90 00 [09:14:17]wFMCommunicate OK [09:14:17]wFMCommunicate request_size=4 [09:14:17]MH_SAM_APDU [09:14:17]CAPDU: 80 0D 03 02 [09:14:17]Write to MH i2c: E2 08 00 D4 21 80 0D 03 02 00 00 00 00 70 [09:14:17]Write i2c OK [09:14:17]MH_I2C_Read... [09:14:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:14:17]Read from MH i2c: E2 [09:14:17]MH_I2C_Read... [09:14:17]Read from MH i2c: E2 0B 00 [09:14:17]MH_I2C_Read... [09:14:17]Read from MH i2c: E2 0B 00 D4 21 00 55 1B 9C F1 7F F4 D3 8A 90 00 3E [09:14:17]RAPDU: 55 1B 9C F1 7F F4 D3 8A 90 00 [09:14:17]wFMCommunicate OK [09:14:17]SAM_PROTO_SignData done [09:14:17]FM_MakeSignedData done [09:14:17]CreateOFDProtocolMessage [09:14:17]wFMCommunicate request_size=4 [09:14:17]MH_SAM_APDU [09:14:17]CAPDU: 80 11 00 00 [09:14:17]Write to MH i2c: E2 08 00 D5 21 80 11 00 00 00 00 00 00 70 [09:14:17]Write i2c OK [09:14:17]MH_I2C_Read... [09:14:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:14:17]Read from MH i2c: E2 [09:14:17]MH_I2C_Read... [09:14:17]Read from MH i2c: E2 17 00 [09:14:17]MH_I2C_Read... [09:14:17]Read from MH i2c: E2 17 00 D5 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 BB [09:14:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [09:14:17]wFMCommunicate OK [09:14:17]CreateOFDProtocolMessage done [09:14:17]OFDSenderStorePacket 68276 [09:14:17]StoreOFDPacket docnum=68276 [09:14:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 22 37 07 01 E5 C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 6C 89 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B4 0A 01 00 35 04 06 00 64 2A 88 64 CD 03 55 1B 9C F1 7F F4 D3 8A [09:14:17]CheckFolder [09:14:17]dirname=/storage/ofd_packets [09:14:17]CheckFolder done [09:14:17]ProducePacketName [09:14:17]name=ofd_packets/00068276 [09:14:17]NVStorageSaveData ofd_packets/00068276 [09:14:17]File name is /storage/ofd_packets/00068276 [09:14:17]Write 301 bytes [09:14:17]NVStorageSaveData done [09:14:17]OFDSenderStorePacket done [09:14:17]KKMCreateOFDPacket done [09:14:17]NVStorageSaveData kkm_last_timestamp [09:14:17]File name is /storage/kkm_last_timestamp [09:14:17]Write 4 bytes [09:14:17]NVStorageSaveData done [09:14:17]ExternCall_PrintAddStr [09:14:17]wPrintStart [09:14:17]Write to MH i2c: 01 00 00 D6 21 F7 [09:14:17]Write i2c OK [09:14:17]MH_I2C_Read... [09:14:17]Read from MH i2c: 01 [09:14:17]MH_I2C_Read... [09:14:17]Read from MH i2c: 01 07 00 [09:14:17]MH_I2C_Read... [09:14:17]Read from MH i2c: 01 07 00 D6 21 00 00 00 00 00 FF 0F 0C [09:14:17]RasterBufferAndPrint [09:14:17]line Счет N : (1)706349 [09:14:17]line ИНН: 02508201610067 [09:14:17]line Контрольно-Кассовый Чек [09:14:17]line ПРОДАЖА [09:14:17]line ТРК (МРК, ГНК) : 32 [09:14:17]line Товар: 2710124130 [09:14:17]line Аи-92-К-4 [09:14:17]line 2.990 * 66.90 [09:14:17]line = 200.03 [09:14:17]line НДС 12% НСП 1% [09:14:17]line > о реализуемом товаре [09:14:17]line ОКРУГЛЕНИЕ: -0.03 [09:14:17]line ИТОГО: 200.00 [09:14:17]line Внесено: 200.00 [09:14:17]line СДАЧА: 0.00 [09:14:17]line НСП 1% : 1.77 [09:14:17]line НДС 12% : 21.24 [09:14:17]line Наличными: 200.00 [09:14:17]line Безнал.: 0.00 [09:14:17]line Место: АЗС № 62 "Партнер Нефть" [09:14:17]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [09:14:17]line СНО: Общий режим [09:14:17]line Чек 22 03.06.2024 09:14 [09:14:17]line Смена: 324 ФФД: 1.0 [09:14:17]line ЗНМ: 0300000181 [09:14:17]line РНМ: 0000000000098096 [09:14:17]line Версия ККМ: 001 [09:14:17]line ФМ: 0000000000965400 [09:14:17]line ФД: 68276 [09:14:17]line ФПД: 110133839711491 [09:14:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T091420&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68276&fm=110133839711491&tin=02508201610067®Number=0000000000098096&sum=20000 [09:14:18]OFD Sender: Processing packet 68276 [packets to send 26, broken 25] [09:14:18]ProducePacketName [09:14:18]name=ofd_packets/00068276 [09:14:18]OFD Sender: To server: pG, [09:14:18]CommunicateWithHost lk.salyk.kg:30040 [09:14:18]ConnectInit lk.salyk.kg [09:14:18]written 0, free lines is 4095 [09:14:18]Connected sock=10 [09:14:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 22 37 07 01 E5 C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 6C 89 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B4 0A 01 00 35 04 06 00 64 2A 88 64 CD 03 55 1B 9C F1 7F F4 D3 8A [09:14:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 73 71 47 00 CE 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B4 0A 01 00 F4 03 04 00 68 30 5D 66 B6 04 01 00 00 12 76 2B 32 AB ED 84 FD [09:14:18]CommunicateWithHost err = 0 [09:14:18]CheckOFDResponse [09:14:18]1017 (14) - 77093643461234 [09:14:18]1041 (16) - 0000000000965400 [09:14:18]1040 (4) - 68276 [09:14:18]1012 (4) - 03.06.2024 02:54 [09:14:18]1206 (1) - 0 [09:14:18]OFD Sender: Remove packet 68276 [09:14:18]ProducePacketName [09:14:18]name=ofd_packets/00068276 [09:14:18]NVStorageDeleteData [09:14:18]Write to MH i2c: 01 00 00 01 22 23 [09:14:18]Write i2c OK [09:14:18]MH_I2C_Read... [09:14:18]Read from MH i2c: 01 [09:14:18]MH_I2C_Read... [09:14:18]Read from MH i2c: 01 07 00 [09:14:18]MH_I2C_Read... [09:14:18]Read from MH i2c: 01 07 00 01 22 00 00 00 00 00 D8 0C 0E [09:14:18]RasterBufferAndPrint [09:14:18]line [09:14:18]line [09:14:18]line [09:14:18]line [09:14:18]line [09:14:18]written 0, free lines is 3296 [09:14:18]MH_Cut [09:14:18]Write to MH i2c: D1 01 00 08 22 01 FC [09:14:18]Write i2c OK [09:14:18]MH_I2C_Read... [09:14:18]Read from MH i2c: D1 [09:14:18]MH_I2C_Read... [09:14:18]Read from MH i2c: D1 01 00 [09:14:18]MH_I2C_Read... [09:14:18]Read from MH i2c: D1 01 00 08 22 00 FB [09:14:18]Write to MH i2c: 01 00 00 09 22 2B [09:14:18]Write i2c OK [09:14:18]MH_I2C_Read... [09:14:18]OFD Sender: No OFD packet to send [09:14:19]*** Cut start [09:14:19]*** Partial cut [09:14:19]*** CUTSNS_PIN = 1 [09:14:19]*** CUTSNS_PIN = 0 [09:14:19]*** Brake cut motor [09:14:19]Read from MH i2c: 01 [09:14:19]MH_I2C_Read... [09:14:19]*** Stop cut motor [09:14:19]*** Cut end [09:14:19]Read from MH i2c: 01 07 00 [09:14:19]MH_I2C_Read... [09:14:19]Read from MH i2c: 01 07 00 09 22 00 00 00 00 00 FF 0F 40 [09:14:19]process_action close_receipt done [09:14:19]requested_data is exist [09:14:19]produce_requested_data [09:14:19]requested_item fm.sn is exist - process it [09:14:19]wFMCommunicate request_size=4 [09:14:19]MH_SAM_APDU [09:14:19]CAPDU: 80 11 00 00 [09:14:19]Write to MH i2c: E2 08 00 0A 22 80 11 00 00 00 00 00 00 A6 [09:14:19]Write i2c OK [09:14:19]MH_I2C_Read... [09:14:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:14:19]Read from MH i2c: E2 [09:14:19]MH_I2C_Read... [09:14:19]Read from MH i2c: E2 17 00 [09:14:19]MH_I2C_Read... [09:14:19]Read from MH i2c: E2 17 00 0A 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 F1 [09:14:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [09:14:19]wFMCommunicate OK [09:14:19]requested_item fd.num is exist - process it [09:14:19]SAM_PROTO_GetFieldsCounters [09:14:19]wFMCommunicate request_size=4 [09:14:19]MH_SAM_APDU [09:14:19]CAPDU: 80 13 00 00 [09:14:19]Write to MH i2c: E2 08 00 0B 22 80 13 00 00 00 00 00 00 A9 [09:14:19]Write i2c OK [09:14:19]MH_I2C_Read... [09:14:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:14:20]Read from MH i2c: E2 [09:14:20]MH_I2C_Read... [09:14:20]Read from MH i2c: E2 62 00 [09:14:20]MH_I2C_Read... [09:14:20]Read from MH i2c: E2 62 00 0B 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 B4 0A 01 00 0E 04 04 00 44 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 0F [09:14:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 B4 0A 01 00 0E 04 04 00 44 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 [09:14:20]wFMCommunicate OK [09:14:20]SAM_PROTO_GetFieldsCounters done [09:14:20]requested_item shift.num is exist - process it [09:14:20]requested_item shift.opened is exist - process it [09:14:20]req_shift_opened [09:14:20]FM_GetShiftState [09:14:20]SAM_PROTO_GetShiftState [09:14:20]wFMCommunicate request_size=4 [09:14:20]MH_SAM_APDU [09:14:20]CAPDU: 80 13 01 00 [09:14:20]Write to MH i2c: E2 08 00 0C 22 80 13 01 00 00 00 00 00 AB [09:14:20]Write i2c OK [09:14:20]MH_I2C_Read... [09:14:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:14:20]Read from MH i2c: E2 [09:14:20]MH_I2C_Read... [09:14:20]Read from MH i2c: E2 0E 00 [09:14:20]MH_I2C_Read... [09:14:20]Read from MH i2c: E2 0E 00 0C 22 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 86 [09:14:20]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [09:14:20]wFMCommunicate OK [09:14:20]SAM_PROTO_GetShiftState done [09:14:20]FM_GetShiftState done [09:14:20]req_shift_opened done [09:14:20]requested_item shift.open_date is exist - process it [09:14:20]req_shift_open_date [09:14:20]req_shift_open_date done [09:14:20]produce_requested_data done [09:14:20]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68276,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [09:14:20]process_action_free close_receipt [09:14:20]json_value_free [09:14:20]json_value_free done [09:14:20]process_json_proto returns [09:14:20]Send response to host [09:14:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68276,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [09:14:20]free response buf [09:14:20]execute_script done [09:14:20]execute_script returns [09:14:20]free content buf [09:14:20]Sock 9.Close socket [09:14:20]Sock 9.Thread stoped [09:14:23]OFD Sender: No OFD packet to send [09:14:28]OFD Sender: No OFD packet to send [09:14:33]OFD Sender: No OFD packet to send [09:14:38]OFD Sender: No OFD packet to send [09:14:43]OFD Sender: No OFD packet to send [09:14:48]OFD Sender: No OFD packet to send [09:14:53]OFD Sender: No OFD packet to send [09:14:58]OFD Sender: No OFD packet to send [09:15:03]OFD Sender: No OFD packet to send [09:15:08]OFD Sender: No OFD packet to send [09:15:13]OFD Sender: No OFD packet to send [09:15:18]OFD Sender: No OFD packet to send [09:15:23]OFD Sender: No OFD packet to send [09:15:28]OFD Sender: No OFD packet to send [09:15:33]OFD Sender: No OFD packet to send [09:15:38]OFD Sender: No OFD packet to send [09:15:43]OFD Sender: No OFD packet to send [09:15:48]OFD Sender: No OFD packet to send [09:15:53]OFD Sender: No OFD packet to send [09:15:58]OFD Sender: No OFD packet to send [09:16:03]OFD Sender: No OFD packet to send [09:16:08]OFD Sender: No OFD packet to send [09:16:13]OFD Sender: No OFD packet to send [09:16:18]OFD Sender: No OFD packet to send [09:16:23]OFD Sender: No OFD packet to send [09:16:28]OFD Sender: No OFD packet to send [09:16:33]OFD Sender: No OFD packet to send [09:16:38]OFD Sender: No OFD packet to send [09:16:44]OFD Sender: No OFD packet to send [09:16:49]OFD Sender: No OFD packet to send [09:16:53]accept exits with 7 [09:16:53]New connection [09:16:53]New thread 3066543460 created [09:16:53]Thread 3066686820 joined [09:16:53]Waiting for new connection... [09:16:53] Sock 7.Parse request [09:16:53]Sock 7.Check first char [09:16:53]Sock 7.First char is OK [09:16:53]request: POST /json_proto HTTP/1.0 [09:16:53]Method: POST [09:16:53]URL: /json_proto [09:16:53]Method is POST - this is cgi request [09:16:53]url: /json_proto [09:16:53]query_string will be loaded in cgi processing [09:16:53]execute_cgi json_proto POST (null) [09:16:53]execute_cgi path=json_proto method=POST [09:16:53]POST find Content-Length [09:16:53]Host: 172.17.36.132:8080 [09:16:53]Content-Length: 670 [09:16:53]Content-Type: application/json [09:16:53] [09:16:53]POST finish read [09:16:53]Found Content-Length = 670 [09:16:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706350", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 8.840, "sum" : 600.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:16:53]execute_script... [09:16: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)706350", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 8.840, "sum" : 600.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:16:53]POST & json_proto [09:16:53]process_json_proto [09:16:53]json parsed OK: [09:16:53]protocol is kg_v1.0 [09:16:53]action value=close_receipt [09:16:53]process_action close_receipt [09:16:53]cmd_close_receipt [09:16:53]MH_GetDate [09:16:53]Write to MH i2c: F0 00 00 0D 22 1E [09:16:53]Write i2c OK [09:16:53]MH_I2C_Read... [09:16:53]Read from MH i2c: F0 [09:16:53]MH_I2C_Read... [09:16:53]Read from MH i2c: F0 09 00 [09:16:53]MH_I2C_Read... [09:16:53]Read from MH i2c: F0 09 00 0D 22 00 09 8A 5D 66 B2 22 B0 64 65 [09:16:53]GetLastDocTimeStamp 1717406060 [09:16:53]current date 1717406217 [09:16:53]FM_GetShiftState [09:16:53]SAM_PROTO_GetShiftState [09:16:53]wFMCommunicate request_size=4 [09:16:53]MH_SAM_APDU [09:16:53]CAPDU: 80 13 01 00 [09:16:53]Write to MH i2c: E2 08 00 0E 22 80 13 01 00 00 00 00 00 AD [09:16:53]Write i2c OK [09:16:53]MH_I2C_Read... [09:16:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:53]Read from MH i2c: E2 [09:16:53]MH_I2C_Read... [09:16:53]Read from MH i2c: E2 0E 00 [09:16:53]MH_I2C_Read... [09:16:53]Read from MH i2c: E2 0E 00 0E 22 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 88 [09:16:53]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [09:16:53]wFMCommunicate OK [09:16:53]SAM_PROTO_GetShiftState done [09:16:53]FM_GetShiftState done [09:16:53]opened in 1717378033 [09:16:53]opened+sec_in_day 1717464433 [09:16:53]quantity*price = 60023 [09:16:53]sum+1 = 60025 [09:16:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 23 03.06.2024 09:16 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68277 ФПД: 121515092363907 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T091657&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68277&fm=121515092363907&tin=02508201610067®Number=0000000000098096&sum=60000 [09:16:54]StoreToDocumentArchive [09:16:54]shift 324 fd 68277 [09:16:54]save to /storage/0324/doc_00068277 [09:16:54]save last doc name /storage/0324/doc_00068277 to /storage/kkm_last_doc_name [09:16:54]save OK [09:16:54]Clear old archive folders... [09:16:54]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:16:54]tlvbuf is B6E80530 [09:16:54]SAM_PROTO_ClearQueue [09:16:54]wFMCommunicate request_size=4 [09:16:54]MH_SAM_APDU [09:16:54]CAPDU: 80 09 00 00 [09:16:54]Write to MH i2c: E2 08 00 1B 22 80 09 00 00 00 00 00 00 AF [09:16:54]Write i2c OK [09:16:54]MH_I2C_Read... [09:16:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:16:54]Read from MH i2c: E2 [09:16:54]MH_I2C_Read... [09:16:54]Read from MH i2c: E2 03 00 [09:16:54]MH_I2C_Read... [09:16:54]Read from MH i2c: E2 03 00 1B 22 00 90 00 B1 [09:16:54]RAPDU: 90 00 [09:16:54]wFMCommunicate OK [09:16:54]SAM_PROTO_ClearQueue done [09:16:54]KKMCreateOFDPacket [09:16:54]OFDProtocolAddRootSTLVToBuf [09:16:54]FM_MakeSignedData [09:16:54]FM_MakeSignedData [09:16:54]SAM_PROTO_SignData [09:16:54]wFMCommunicate request_size=4 [09:16:54]MH_SAM_APDU [09:16:54]CAPDU: 80 0D 01 02 [09:16:54]Write to MH i2c: E2 08 00 1C 22 80 0D 01 02 00 00 00 00 B7 [09:16:54]Write i2c OK [09:16:54]MH_I2C_Read... [09:16:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:16:54]Read from MH i2c: E2 [09:16:54]MH_I2C_Read... [09:16:54]Read from MH i2c: E2 03 00 [09:16:54]MH_I2C_Read... [09:16:54]Read from MH i2c: E2 03 00 1C 22 00 90 00 B2 [09:16:54]RAPDU: 90 00 [09:16:54]wFMCommunicate OK [09:16:54]wFMCommunicate request_size=255 [09:16:54]MH_SAM_APDU [09:16:54]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 22 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 78 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 09 8A 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B5 0A 01 00 35 04 06 00 [09:16:54]Write to MH i2c: E2 02 01 1D 22 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 22 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 78 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 09 8A 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B5 0A 01 00 35 04 06 00 00 00 AF [09:16:54]Write i2c OK [09:16:54]MH_I2C_Read... [09:16:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:16:54]Read from MH i2c: E2 [09:16:54]MH_I2C_Read... [09:16:54]Read from MH i2c: E2 03 00 [09:16:54]MH_I2C_Read... [09:16:54]Read from MH i2c: E2 03 00 1D 22 00 90 00 B3 [09:16:54]RAPDU: 90 00 [09:16:54]wFMCommunicate OK [09:16:54]wFMCommunicate request_size=11 [09:16:54]MH_SAM_APDU [09:16:54]CAPDU: 80 0D 02 02 06 6E 84 6F EA 4A 83 [09:16:54]Write to MH i2c: E2 0E 00 1E 22 80 0D 02 02 06 00 6E 84 6F EA 4A 83 00 00 DE [09:16:54]Write i2c OK [09:16:54]MH_I2C_Read... [09:16:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:16:54]Read from MH i2c: E2 [09:16:54]MH_I2C_Read... [09:16:54]Read from MH i2c: E2 03 00 [09:16:54]MH_I2C_Read... [09:16:54]Read from MH i2c: E2 03 00 1E 22 00 90 00 B4 [09:16:54]RAPDU: 90 00 [09:16:54]wFMCommunicate OK [09:16:54]wFMCommunicate request_size=4 [09:16:54]MH_SAM_APDU [09:16:54]CAPDU: 80 0D 03 02 [09:16:54]Write to MH i2c: E2 08 00 1F 22 80 0D 03 02 00 00 00 00 BC [09:16:54]Write i2c OK [09:16:54]MH_I2C_Read... [09:16:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:16:54]Read from MH i2c: E2 [09:16:54]MH_I2C_Read... [09:16:54]Read from MH i2c: E2 0B 00 [09:16:54]MH_I2C_Read... [09:16:54]Read from MH i2c: E2 0B 00 1F 22 00 F9 FE 58 1F 55 FB D1 E5 90 00 31 [09:16:54]RAPDU: F9 FE 58 1F 55 FB D1 E5 90 00 [09:16:54]wFMCommunicate OK [09:16:54]SAM_PROTO_SignData done [09:16:54]FM_MakeSignedData done [09:16:54]CreateOFDProtocolMessage [09:16:54]wFMCommunicate request_size=4 [09:16:54]MH_SAM_APDU [09:16:54]CAPDU: 80 11 00 00 [09:16:54]Write to MH i2c: E2 08 00 20 22 80 11 00 00 00 00 00 00 BC [09:16:54]Write i2c OK [09:16:54]MH_I2C_Read... [09:16:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:54]Read from MH i2c: E2 [09:16:54]MH_I2C_Read... [09:16:54]Read from MH i2c: E2 17 00 [09:16:54]MH_I2C_Read... [09:16:54]Read from MH i2c: E2 17 00 20 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 07 [09:16:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [09:16:54]wFMCommunicate OK [09:16:54]CreateOFDProtocolMessage done [09:16:54]OFDSenderStorePacket 68277 [09:16:54]StoreOFDPacket docnum=68277 [09:16:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 2E F0 08 01 7B B8 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 22 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 78 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 09 8A 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B5 0A 01 00 35 04 06 00 6E 84 6F EA 4A 83 F9 FE 58 1F 55 FB D1 E5 [09:16:54]CheckFolder [09:16:54]dirname=/storage/ofd_packets [09:16:54]CheckFolder done [09:16:54]ProducePacketName [09:16:54]name=ofd_packets/00068277 [09:16:54]NVStorageSaveData ofd_packets/00068277 [09:16:54]File name is /storage/ofd_packets/00068277 [09:16:54]Write 302 bytes [09:16:54]NVStorageSaveData done [09:16:54]OFDSenderStorePacket done [09:16:54]KKMCreateOFDPacket done [09:16:54]NVStorageSaveData kkm_last_timestamp [09:16:54]File name is /storage/kkm_last_timestamp [09:16:54]Write 4 bytes [09:16:54]NVStorageSaveData done [09:16:54]ExternCall_PrintAddStr [09:16:54]wPrintStart [09:16:54]Write to MH i2c: 01 00 00 21 22 43 [09:16:54]Write i2c OK [09:16:54]MH_I2C_Read... [09:16:54]Read from MH i2c: 01 [09:16:54]MH_I2C_Read... [09:16:54]Read from MH i2c: 01 07 00 [09:16:54]MH_I2C_Read... [09:16:54]Read from MH i2c: 01 07 00 21 22 00 00 00 00 00 FF 0F 58 [09:16:54]RasterBufferAndPrint [09:16:54]line Счет N : (1)706350 [09:16:54]line ИНН: 02508201610067 [09:16:54]line Контрольно-Кассовый Чек [09:16:54]line ПРОДАЖА [09:16:54]line ТРК (МРК, ГНК) : 22 [09:16:54]line Товар: 2710124130 [09:16:54]line Super-92-К-5 [09:16:54]line 8.840 * 67.90 [09:16:54]line = 600.24 [09:16:54]line НДС 12% НСП 1% [09:16:54]line > о реализуемом товаре [09:16:54]line ОКРУГЛЕНИЕ: -0.24 [09:16:54]line ИТОГО: 600.00 [09:16:54]line Внесено: 600.00 [09:16:54]line СДАЧА: 0.00 [09:16:54]line НСП 1% : 5.31 [09:16:54]line НДС 12% : 63.74 [09:16:54]line Наличными: 600.00 [09:16:54]line Безнал.: 0.00 [09:16:54]line Место: АЗС № 62 "Партнер Нефть" [09:16:54]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [09:16:54]line СНО: Общий режим [09:16:54]line Чек 23 03.06.2024 09:16 [09:16:54]line Смена: 324 ФФД: 1.0 [09:16:54]line ЗНМ: 0300000181 [09:16:54]line РНМ: 0000000000098096 [09:16:54]line Версия ККМ: 001 [09:16:54]line ФМ: 0000000000965400 [09:16:54]line ФД: 68277 [09:16:54]line ФПД: 121515092363907 [09:16:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T091657&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68277&fm=121515092363907&tin=02508201610067®Number=0000000000098096&sum=60000 [09:16:55]OFD Sender: Processing packet 68277 [packets to send 26, broken 25] [09:16:55]ProducePacketName [09:16:55]name=ofd_packets/00068277 [09:16:55]OFD Sender: To server: pG, [09:16:55]CommunicateWithHost lk.salyk.kg:30040 [09:16:55]ConnectInit lk.salyk.kg [09:16:55]written 0, free lines is 4095 [09:16:55]Write to MH i2c: 01 00 00 4C 22 6E [09:16:55]Write i2c OK [09:16:55]MH_I2C_Read... [09:16:55]Read from MH i2c: 01 [09:16:55]MH_I2C_Read... [09:16:55]Read from MH i2c: 01 07 00 [09:16:55]MH_I2C_Read... [09:16:55]Read from MH i2c: 01 07 00 4C 22 00 00 00 00 00 DA 0C 5B [09:16:55]RasterBufferAndPrint [09:16:55]line [09:16:55]line [09:16:55]line [09:16:55]line [09:16:55]line [09:16:55]written 0, free lines is 3298 [09:16:55]MH_Cut [09:16:55]Write to MH i2c: D1 01 00 53 22 01 47 [09:16:55]Write i2c OK [09:16:55]MH_I2C_Read... [09:16:55]Read from MH i2c: D1 [09:16:55]MH_I2C_Read... [09:16:55]Read from MH i2c: D1 01 00 [09:16:55]MH_I2C_Read... [09:16:55]Read from MH i2c: D1 01 00 53 22 00 46 [09:16:55]Write to MH i2c: 01 00 00 54 22 76 [09:16:55]Write i2c OK [09:16:55]MH_I2C_Read... [09:16:56]*** Cut start [09:16:56]*** Partial cut [09:16:56]*** CUTSNS_PIN = 1 [09:16:56]*** CUTSNS_PIN = 0 [09:16:56]*** Brake cut motor [09:16:56]Read from MH i2c: 01 [09:16:56]MH_I2C_Read... [09:16:56]*** Stop cut motor [09:16:56]*** Cut end [09:16:56]Read from MH i2c: 01 07 00 [09:16:56]MH_I2C_Read... [09:16:56]Read from MH i2c: 01 07 00 54 22 00 00 00 00 00 FF 0F 8B [09:16:56]process_action close_receipt done [09:16:56]requested_data is exist [09:16:56]produce_requested_data [09:16:56]requested_item fm.sn is exist - process it [09:16:56]wFMCommunicate request_size=4 [09:16:56]MH_SAM_APDU [09:16:57]CAPDU: 80 11 00 00 [09:16:57]Write to MH i2c: E2 08 00 55 22 80 11 00 00 00 00 00 00 F1 [09:16:57]Write i2c OK [09:16:57]MH_I2C_Read... [09:16:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:57]Read from MH i2c: E2 [09:16:57]MH_I2C_Read... [09:16:57]Read from MH i2c: E2 17 00 [09:16:57]MH_I2C_Read... [09:16:57]Read from MH i2c: E2 17 00 55 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 3C [09:16:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [09:16:57]wFMCommunicate OK [09:16:57]requested_item fd.num is exist - process it [09:16:57]SAM_PROTO_GetFieldsCounters [09:16:57]wFMCommunicate request_size=4 [09:16:57]MH_SAM_APDU [09:16:57]CAPDU: 80 13 00 00 [09:16:57]Write to MH i2c: E2 08 00 56 22 80 13 00 00 00 00 00 00 F4 [09:16:57]Write i2c OK [09:16:57]MH_I2C_Read... [09:16:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:16:57]Read from MH i2c: E2 [09:16:57]MH_I2C_Read... [09:16:57]Read from MH i2c: E2 62 00 [09:16:57]MH_I2C_Read... [09:16:57]Read from MH i2c: E2 62 00 56 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 B5 0A 01 00 0E 04 04 00 44 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 5E [09:16:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 B5 0A 01 00 0E 04 04 00 44 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 [09:16:57]wFMCommunicate OK [09:16:57]SAM_PROTO_GetFieldsCounters done [09:16:57]requested_item shift.num is exist - process it [09:16:57]requested_item shift.opened is exist - process it [09:16:57]req_shift_opened [09:16:57]FM_GetShiftState [09:16:57]SAM_PROTO_GetShiftState [09:16:57]wFMCommunicate request_size=4 [09:16:57]MH_SAM_APDU [09:16:57]CAPDU: 80 13 01 00 [09:16:57]Write to MH i2c: E2 08 00 57 22 80 13 01 00 00 00 00 00 F6 [09:16:57]Write i2c OK [09:16:57]MH_I2C_Read... [09:16:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:57]Read from MH i2c: E2 [09:16:57]MH_I2C_Read... [09:16:57]Read from MH i2c: E2 0E 00 [09:16:57]MH_I2C_Read... [09:16:57]Read from MH i2c: E2 0E 00 57 22 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 D1 [09:16:57]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [09:16:57]wFMCommunicate OK [09:16:57]SAM_PROTO_GetShiftState done [09:16:57]FM_GetShiftState done [09:16:57]req_shift_opened done [09:16:57]requested_item shift.open_date is exist - process it [09:16:57]req_shift_open_date [09:16:57]req_shift_open_date done [09:16:57]produce_requested_data done [09:16:57]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68277,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [09:16:57]process_action_free close_receipt [09:16:57]json_value_free [09:16:57]json_value_free done [09:16:57]process_json_proto returns [09:16:57]Send response to host [09:16:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68277,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [09:16:57]free response buf [09:16:57]execute_script done [09:16:57]execute_script returns [09:16:57]free content buf [09:16:57]Sock 7.Close socket [09:16:57]Sock 7.Thread stoped [09:19:06]ConnectInit Can't connect to host [09:19:06]CommunicateWithHost connect error [09:19:06]CommunicateWithHost err = -1 [09:19:06]OFD Sender: Server communicate error [09:19:11]OFD Sender: Processing packet 68277 [packets to send 26, broken 25] [09:19:11]ProducePacketName [09:19:11]name=ofd_packets/00068277 [09:19:11]OFD Sender: To server: pG, [09:19:11]CommunicateWithHost lk.salyk.kg:30040 [09:19:11]ConnectInit lk.salyk.kg [09:19:11]Connected sock=10 [09:19:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 2E F0 08 01 7B B8 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 22 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 78 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 09 8A 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B5 0A 01 00 35 04 06 00 6E 84 6F EA 4A 83 F9 FE 58 1F 55 FB D1 E5 [09:19:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 DC 4D 47 00 0C 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B5 0A 01 00 F4 03 04 00 8D 31 5D 66 B6 04 01 00 00 A3 C0 2E DB C5 78 A3 5F [09:19:11]CommunicateWithHost err = 0 [09:19:11]CheckOFDResponse [09:19:11]1017 (14) - 77093643461234 [09:19:11]1041 (16) - 0000000000965400 [09:19:11]1040 (4) - 68277 [09:19:11]1012 (4) - 03.06.2024 02:59 [09:19:11]1206 (1) - 0 [09:19:11]OFD Sender: Remove packet 68277 [09:19:11]ProducePacketName [09:19:11]name=ofd_packets/00068277 [09:19:11]NVStorageDeleteData [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:12]OFD Sender: No OFD packet to send [09:22:17]OFD Sender: No OFD packet to send [09:22:22]OFD Sender: No OFD packet to send [09:22:27]OFD Sender: No OFD packet to send [09:22:32]OFD Sender: No OFD packet to send [09:22:37]OFD Sender: No OFD packet to send [09:22:42]OFD Sender: No OFD packet to send [09:22:47]OFD Sender: No OFD packet to send [09:22:52]OFD Sender: No OFD packet to send [09:22:57]OFD Sender: No OFD packet to send [09:22:57]accept exits with 9 [09:22:57]New connection [09:22:57]New thread 3066686820 created [09:22:57]Thread 3066543460 joined [09:22:57]Waiting for new connection... [09:22:57] Sock 9.Parse request [09:22:57]Sock 9.Check first char [09:22:57]Sock 9.First char is OK [09:22:57]request: POST /json_proto HTTP/1.0 [09:22:57]Method: POST [09:22:57]URL: /json_proto [09:22:57]Method is POST - this is cgi request [09:22:57]url: /json_proto [09:22:57]query_string will be loaded in cgi processing [09:22:57]execute_cgi json_proto POST (null) [09:22:57]execute_cgi path=json_proto method=POST [09:22:57]POST find Content-Length [09:22:57]Host: 172.17.36.132:8080 [09:22:57]Content-Length: 803 [09:22:57]Content-Type: application/json [09:22:57] [09:22:57]POST finish read [09:22:57]Found Content-Length = 803 [09:22:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706351", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:22:57]execute_script... [09:22:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706351", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:22:57]POST & json_proto [09:22:57]process_json_proto [09:22:57]json parsed OK: [09:22:57]protocol is kg_v1.0 [09:22:57]action value=close_receipt [09:22:57]process_action close_receipt [09:22:57]cmd_close_receipt [09:22:57]MH_GetDate [09:22:57]Write to MH i2c: F0 00 00 58 22 69 [09:22:57]Write i2c OK [09:22:57]MH_I2C_Read... [09:22:57]Read from MH i2c: F0 [09:22:57]MH_I2C_Read... [09:22:57]Read from MH i2c: F0 09 00 [09:22:57]MH_I2C_Read... [09:22:57]Read from MH i2c: F0 09 00 58 22 00 75 8B 5D 66 B2 22 B0 64 1D [09:22:57]GetLastDocTimeStamp 1717406217 [09:22:57]current date 1717406581 [09:22:57]FM_GetShiftState [09:22:57]SAM_PROTO_GetShiftState [09:22:57]wFMCommunicate request_size=4 [09:22:57]MH_SAM_APDU [09:22:57]CAPDU: 80 13 01 00 [09:22:57]Write to MH i2c: E2 08 00 59 22 80 13 01 00 00 00 00 00 F8 [09:22:57]Write i2c OK [09:22:57]MH_I2C_Read... [09:22:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:57]Read from MH i2c: E2 [09:22:57]MH_I2C_Read... [09:22:57]Read from MH i2c: E2 0E 00 [09:22:57]MH_I2C_Read... [09:22:57]Read from MH i2c: E2 0E 00 59 22 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 D3 [09:22:57]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [09:22:57]wFMCommunicate OK [09:22:57]SAM_PROTO_GetShiftState done [09:22:57]FM_GetShiftState done [09:22:57]opened in 1717378033 [09:22:57]opened+sec_in_day 1717464433 [09:22:57]quantity*price = 100015 [09:22:57]sum+1 = 100017 [09:22:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 24 03.06.2024 09:23 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000965400 ФД: 68278 ФПД: 207057895526164 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T092301&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68278&fm=207057895526164&tin=02508201610067®Number=0000000000098096&sum=100016 [09:22:58]StoreToDocumentArchive [09:22:58]shift 324 fd 68278 [09:22:58]save to /storage/0324/doc_00068278 [09:22:58]save last doc name /storage/0324/doc_00068278 to /storage/kkm_last_doc_name [09:22:58]save OK [09:22:58]Clear old archive folders... [09:22:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:22:58]tlvbuf is B6E80DB0 [09:22:58]SAM_PROTO_ClearQueue [09:22:58]wFMCommunicate request_size=4 [09:22:58]MH_SAM_APDU [09:22:58]CAPDU: 80 09 00 00 [09:22:58]Write to MH i2c: E2 08 00 66 22 80 09 00 00 00 00 00 00 FA [09:22:58]Write i2c OK [09:22:58]MH_I2C_Read... [09:22:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:22:58]Read from MH i2c: E2 [09:22:58]MH_I2C_Read... [09:22:58]Read from MH i2c: E2 03 00 [09:22:58]MH_I2C_Read... [09:22:58]Read from MH i2c: E2 03 00 66 22 00 90 00 FC [09:22:58]RAPDU: 90 00 [09:22:58]wFMCommunicate OK [09:22:58]SAM_PROTO_ClearQueue done [09:22:58]KKMCreateOFDPacket [09:22:58]OFDProtocolAddRootSTLVToBuf [09:22:58]FM_MakeSignedData [09:22:58]FM_MakeSignedData [09:22:58]SAM_PROTO_SignData [09:22:58]wFMCommunicate request_size=4 [09:22:58]MH_SAM_APDU [09:22:58]CAPDU: 80 0D 01 02 [09:22:58]Write to MH i2c: E2 08 00 67 22 80 0D 01 02 00 00 00 00 02 [09:22:58]Write i2c OK [09:22:58]MH_I2C_Read... [09:22:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:22:58]Read from MH i2c: E2 [09:22:58]MH_I2C_Read... [09:22:58]Read from MH i2c: E2 03 00 [09:22:58]MH_I2C_Read... [09:22:58]Read from MH i2c: E2 03 00 67 22 00 90 00 FD [09:22:58]RAPDU: 90 00 [09:22:58]wFMCommunicate OK [09:22:58]wFMCommunicate request_size=255 [09:22:58]MH_SAM_APDU [09:22:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 75 8B 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B6 0A 01 00 35 04 06 00 BC [09:22:58]Write to MH i2c: E2 02 01 68 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 75 8B 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B6 0A 01 00 35 04 06 00 BC 00 00 46 [09:22:58]Write i2c OK [09:22:58]MH_I2C_Read... [09:22:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:58]Read from MH i2c: E2 [09:22:58]MH_I2C_Read... [09:22:58]Read from MH i2c: E2 03 00 [09:22:58]MH_I2C_Read... [09:22:58]Read from MH i2c: E2 03 00 68 22 00 90 00 FE [09:22:58]RAPDU: 90 00 [09:22:58]wFMCommunicate OK [09:22:58]wFMCommunicate request_size=10 [09:22:58]MH_SAM_APDU [09:22:58]CAPDU: 80 0D 02 02 05 51 6C 4F 8F 14 [09:22:58]Write to MH i2c: E2 0D 00 69 22 80 0D 02 02 05 00 51 6C 4F 8F 14 00 00 BE [09:22:58]Write i2c OK [09:22:58]MH_I2C_Read... [09:22:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:58]Read from MH i2c: E2 [09:22:58]MH_I2C_Read... [09:22:58]Read from MH i2c: E2 03 00 [09:22:58]MH_I2C_Read... [09:22:58]Read from MH i2c: E2 03 00 69 22 00 90 00 FF [09:22:58]RAPDU: 90 00 [09:22:58]wFMCommunicate OK [09:22:58]wFMCommunicate request_size=4 [09:22:58]MH_SAM_APDU [09:22:58]CAPDU: 80 0D 03 02 [09:22:58]Write to MH i2c: E2 08 00 6A 22 80 0D 03 02 00 00 00 00 07 [09:22:58]Write i2c OK [09:22:58]MH_I2C_Read... [09:22:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:22:59]Read from MH i2c: E2 [09:22:59]MH_I2C_Read... [09:22:59]Read from MH i2c: E2 0B 00 [09:22:59]MH_I2C_Read... [09:22:59]Read from MH i2c: E2 0B 00 6A 22 00 65 62 5E 16 7B 35 37 E8 90 00 12 [09:22:59]RAPDU: 65 62 5E 16 7B 35 37 E8 90 00 [09:22:59]wFMCommunicate OK [09:22:59]SAM_PROTO_SignData done [09:22:59]FM_MakeSignedData done [09:22:59]CreateOFDProtocolMessage [09:22:59]wFMCommunicate request_size=4 [09:22:59]MH_SAM_APDU [09:22:59]CAPDU: 80 11 00 00 [09:22:59]Write to MH i2c: E2 08 00 6B 22 80 11 00 00 00 00 00 00 07 [09:22:59]Write i2c OK [09:22:59]MH_I2C_Read... [09:22:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:59]Read from MH i2c: E2 [09:22:59]MH_I2C_Read... [09:22:59]Read from MH i2c: E2 17 00 [09:22:59]MH_I2C_Read... [09:22:59]Read from MH i2c: E2 17 00 6B 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 52 [09:22:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [09:22:59]wFMCommunicate OK [09:22:59]CreateOFDProtocolMessage done [09:22:59]OFDSenderStorePacket 68278 [09:22:59]StoreOFDPacket docnum=68278 [09:22:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 F9 A4 07 01 A8 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 75 8B 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B6 0A 01 00 35 04 06 00 BC 51 6C 4F 8F 14 65 62 5E 16 7B 35 37 E8 [09:22:59]CheckFolder [09:22:59]dirname=/storage/ofd_packets [09:22:59]CheckFolder done [09:22:59]ProducePacketName [09:22:59]name=ofd_packets/00068278 [09:22:59]NVStorageSaveData ofd_packets/00068278 [09:22:59]File name is /storage/ofd_packets/00068278 [09:22:59]Write 301 bytes [09:22:59]NVStorageSaveData done [09:22:59]OFDSenderStorePacket done [09:22:59]KKMCreateOFDPacket done [09:22:59]NVStorageSaveData kkm_last_timestamp [09:22:59]File name is /storage/kkm_last_timestamp [09:22:59]Write 4 bytes [09:22:59]NVStorageSaveData done [09:22:59]ExternCall_PrintAddStr [09:22:59]wPrintStart [09:22:59]Write to MH i2c: 01 00 00 6C 22 8E [09:22:59]Write i2c OK [09:22:59]MH_I2C_Read... [09:22:59]Read from MH i2c: 01 [09:22:59]MH_I2C_Read... [09:22:59]Read from MH i2c: 01 07 00 [09:22:59]MH_I2C_Read... [09:22:59]Read from MH i2c: 01 07 00 6C 22 00 00 00 00 00 FF 0F A3 [09:22:59]RasterBufferAndPrint [09:22:59]line Счет N : (1)706351 [09:22:59]line ИНН: 02508201610067 [09:22:59]line Контрольно-Кассовый Чек [09:22:59]line ПРОДАЖА [09:22:59]line ТРК (МРК, ГНК) : 32 [09:22:59]line Товар: 2710124130 [09:22:59]line Аи-92-К-4 [09:22:59]line 14.950 * 66.90 [09:22:59]line = 1000.16 [09:22:59]line НДС 12% НСП 1% [09:22:59]line > о реализуемом товаре [09:22:59]line ИТОГО: 1000.16 [09:22:59]line НСП 1% : 8.85 [09:22:59]line НДС 12% : 106.21 [09:22:59]line Наличными: 0.00 [09:22:59]line Безнал.: 1000.16 [09:22:59]line Место: АЗС № 62 "Партнер Нефть" [09:22:59]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [09:22:59]line СНО: Общий режим [09:22:59]line Чек 24 03.06.2024 09:23 [09:22:59]line Смена: 324 ФФД: 1.0 [09:22:59]line ЗНМ: 0300000181 [09:22:59]line РНМ: 0000000000098096 [09:22:59]line Версия ККМ: 001 [09:22:59]line Платежная система: O! деньги [09:22:59]line ФМ: 0000000000965400 [09:22:59]line ФД: 68278 [09:22:59]line ФПД: 207057895526164 [09:22:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T092301&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68278&fm=207057895526164&tin=02508201610067®Number=0000000000098096&sum=100016 [09:22:59]OFD Sender: Processing packet 68278 [packets to send 26, broken 25] [09:22:59]ProducePacketName [09:22:59]name=ofd_packets/00068278 [09:22:59]OFD Sender: To server: pG, [09:22:59]CommunicateWithHost lk.salyk.kg:30040 [09:22:59]ConnectInit lk.salyk.kg [09:22:59]written 0, free lines is 4095 [09:22:59]Connected sock=10 [09:22:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 F9 A4 07 01 A8 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 75 8B 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B6 0A 01 00 35 04 06 00 BC 51 6C 4F 8F 14 65 62 5E 16 7B 35 37 E8 [09:22:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 8D 58 47 00 97 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B6 0A 01 00 F4 03 04 00 72 32 5D 66 B6 04 01 00 00 37 F8 DC 2D BC AC 68 C2 [09:22:59]CommunicateWithHost err = 0 [09:22:59]CheckOFDResponse [09:22:59]1017 (14) - 77093643461234 [09:22:59]1041 (16) - 0000000000965400 [09:22:59]1040 (4) - 68278 [09:22:59]1012 (4) - 03.06.2024 03:03 [09:22:59]1206 (1) - 0 [09:22:59]OFD Sender: Remove packet 68278 [09:22:59]ProducePacketName [09:22:59]name=ofd_packets/00068278 [09:22:59]NVStorageDeleteData [09:22:59]Write to MH i2c: 01 00 00 96 22 B8 [09:22:59]Write i2c OK [09:22:59]MH_I2C_Read... [09:22:59]Read from MH i2c: 01 [09:22:59]MH_I2C_Read... [09:22:59]Read from MH i2c: 01 07 00 [09:22:59]MH_I2C_Read... [09:22:59]Read from MH i2c: 01 07 00 96 22 00 00 00 00 00 F9 0C C4 [09:22:59]RasterBufferAndPrint [09:22:59]line [09:22:59]line [09:22:59]line [09:22:59]line [09:22:59]line [09:22:59]written 0, free lines is 3328 [09:22:59]MH_Cut [09:22:59]Write to MH i2c: D1 01 00 9D 22 01 91 [09:22:59]Write i2c OK [09:22:59]MH_I2C_Read... [09:22:59]Read from MH i2c: D1 [09:22:59]MH_I2C_Read... [09:22:59]Read from MH i2c: D1 01 00 [09:22:59]MH_I2C_Read... [09:22:59]Read from MH i2c: D1 01 00 9D 22 00 90 [09:22:59]Write to MH i2c: 01 00 00 9E 22 C0 [09:22:59]Write i2c OK [09:22:59]MH_I2C_Read... [09:23:00]OFD Sender: No OFD packet to send [09:23:00]*** Cut start [09:23:00]*** Partial cut [09:23:00]*** CUTSNS_PIN = 1 [09:23:00]*** CUTSNS_PIN = 0 [09:23:00]*** Brake cut motor [09:23:01]Read from MH i2c: 01 [09:23:01]MH_I2C_Read... [09:23:01]*** Stop cut motor [09:23:01]*** Cut end [09:23:01]Read from MH i2c: 01 07 00 [09:23:01]MH_I2C_Read... [09:23:01]Read from MH i2c: 01 07 00 9E 22 00 00 00 00 00 FF 0F D5 [09:23:01]process_action close_receipt done [09:23:01]requested_data is exist [09:23:01]produce_requested_data [09:23:01]requested_item fm.sn is exist - process it [09:23:01]wFMCommunicate request_size=4 [09:23:01]MH_SAM_APDU [09:23:01]CAPDU: 80 11 00 00 [09:23:01]Write to MH i2c: E2 08 00 9F 22 80 11 00 00 00 00 00 00 3B [09:23:01]Write i2c OK [09:23:01]MH_I2C_Read... [09:23:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:01]Read from MH i2c: E2 [09:23:01]MH_I2C_Read... [09:23:01]Read from MH i2c: E2 17 00 [09:23:01]MH_I2C_Read... [09:23:01]Read from MH i2c: E2 17 00 9F 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 86 [09:23:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [09:23:01]wFMCommunicate OK [09:23:01]requested_item fd.num is exist - process it [09:23:01]SAM_PROTO_GetFieldsCounters [09:23:01]wFMCommunicate request_size=4 [09:23:01]MH_SAM_APDU [09:23:01]CAPDU: 80 13 00 00 [09:23:01]Write to MH i2c: E2 08 00 A0 22 80 13 00 00 00 00 00 00 3E [09:23:01]Write i2c OK [09:23:01]MH_I2C_Read... [09:23:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:23:01]Read from MH i2c: E2 [09:23:01]MH_I2C_Read... [09:23:01]Read from MH i2c: E2 62 00 [09:23:01]MH_I2C_Read... [09:23:01]Read from MH i2c: E2 62 00 A0 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 B6 0A 01 00 0E 04 04 00 44 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 AC [09:23:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 B6 0A 01 00 0E 04 04 00 44 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 [09:23:01]wFMCommunicate OK [09:23:01]SAM_PROTO_GetFieldsCounters done [09:23:01]requested_item shift.num is exist - process it [09:23:01]requested_item shift.opened is exist - process it [09:23:01]req_shift_opened [09:23:01]FM_GetShiftState [09:23:01]SAM_PROTO_GetShiftState [09:23:01]wFMCommunicate request_size=4 [09:23:01]MH_SAM_APDU [09:23:01]CAPDU: 80 13 01 00 [09:23:01]Write to MH i2c: E2 08 00 A1 22 80 13 01 00 00 00 00 00 40 [09:23:01]Write i2c OK [09:23:01]MH_I2C_Read... [09:23:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:01]Read from MH i2c: E2 [09:23:01]MH_I2C_Read... [09:23:01]Read from MH i2c: E2 0E 00 [09:23:01]MH_I2C_Read... [09:23:01]Read from MH i2c: E2 0E 00 A1 22 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 1B [09:23:01]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [09:23:01]wFMCommunicate OK [09:23:01]SAM_PROTO_GetShiftState done [09:23:01]FM_GetShiftState done [09:23:01]req_shift_opened done [09:23:01]requested_item shift.open_date is exist - process it [09:23:01]req_shift_open_date [09:23:01]req_shift_open_date done [09:23:01]produce_requested_data done [09:23:01]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68278,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [09:23:01]process_action_free close_receipt [09:23:01]json_value_free [09:23:01]json_value_free done [09:23:01]process_json_proto returns [09:23:01]Send response to host [09:23:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68278,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [09:23:01]free response buf [09:23:01]execute_script done [09:23:01]execute_script returns [09:23:01]free content buf [09:23:01]Sock 9.Close socket [09:23:01]Sock 9.Thread stoped [09:23:05]OFD Sender: No OFD packet to send [09:23:10]OFD Sender: No OFD packet to send [09:23:15]OFD Sender: No OFD packet to send [09:23:20]OFD Sender: No OFD packet to send [09:23:25]OFD Sender: No OFD packet to send [09:23:30]OFD Sender: No OFD packet to send [09:23:35]OFD Sender: No OFD packet to send [09:23:40]OFD Sender: No OFD packet to send [09:23:45]OFD Sender: No OFD packet to send [09:23:50]OFD Sender: No OFD packet to send [09:23:55]OFD Sender: No OFD packet to send [09:24:00]OFD Sender: No OFD packet to send [09:24:05]OFD Sender: No OFD packet to send [09:24:10]OFD Sender: No OFD packet to send [09:24:15]OFD Sender: No OFD packet to send [09:24:20]OFD Sender: No OFD packet to send [09:24:25]OFD Sender: No OFD packet to send [09:24:30]OFD Sender: No OFD packet to send [09:24:35]OFD Sender: No OFD packet to send [09:24:40]OFD Sender: No OFD packet to send [09:24:45]OFD Sender: No OFD packet to send [09:24:50]OFD Sender: No OFD packet to send [09:24:55]OFD Sender: No OFD packet to send [09:25:00]OFD Sender: No OFD packet to send [09:25:05]OFD Sender: No OFD packet to send [09:25:10]OFD Sender: No OFD packet to send [09:25:15]OFD Sender: No OFD packet to send [09:25:20]OFD Sender: No OFD packet to send [09:25:25]OFD Sender: No OFD packet to send [09:25:30]OFD Sender: No OFD packet to send [09:25:35]OFD Sender: No OFD packet to send [09:25:40]OFD Sender: No OFD packet to send [09:25:45]OFD Sender: No OFD packet to send [09:25:50]OFD Sender: No OFD packet to send [09:25:55]OFD Sender: No OFD packet to send [09:26:00]OFD Sender: No OFD packet to send [09:26:05]OFD Sender: No OFD packet to send [09:26:10]OFD Sender: No OFD packet to send [09:26:15]OFD Sender: No OFD packet to send [09:26:20]OFD Sender: No OFD packet to send [09:26:25]OFD Sender: No OFD packet to send [09:26:30]OFD Sender: No OFD packet to send [09:26:35]OFD Sender: No OFD packet to send [09:26:40]OFD Sender: No OFD packet to send [09:26:45]OFD Sender: No OFD packet to send [09:26:50]OFD Sender: No OFD packet to send [09:26:55]OFD Sender: No OFD packet to send [09:27:00]OFD Sender: No OFD packet to send [09:27:05]OFD Sender: No OFD packet to send [09:27:10]OFD Sender: No OFD packet to send [09:27:15]OFD Sender: No OFD packet to send [09:27:20]OFD Sender: No OFD packet to send [09:27:25]OFD Sender: No OFD packet to send [09:27:30]OFD Sender: No OFD packet to send [09:27:35]OFD Sender: No OFD packet to send [09:27:40]OFD Sender: No OFD packet to send [09:27:45]OFD Sender: No OFD packet to send [09:27:50]OFD Sender: No OFD packet to send [09:27:55]OFD Sender: No OFD packet to send [09:28:00]OFD Sender: No OFD packet to send [09:28:05]OFD Sender: No OFD packet to send [09:28:10]OFD Sender: No OFD packet to send [09:28:15]OFD Sender: No OFD packet to send [09:28:20]OFD Sender: No OFD packet to send [09:28:25]OFD Sender: No OFD packet to send [09:28:30]OFD Sender: No OFD packet to send [09:28:35]OFD Sender: No OFD packet to send [09:28:40]OFD Sender: No OFD packet to send [09:28:45]OFD Sender: No OFD packet to send [09:28:50]OFD Sender: No OFD packet to send [09:28:55]OFD Sender: No OFD packet to send [09:29:00]OFD Sender: No OFD packet to send [09:29:05]OFD Sender: No OFD packet to send [09:29:10]OFD Sender: No OFD packet to send [09:29:15]OFD Sender: No OFD packet to send [09:29:20]OFD Sender: No OFD packet to send [09:29:25]OFD Sender: No OFD packet to send [09:29:30]OFD Sender: No OFD packet to send [09:29:35]OFD Sender: No OFD packet to send [09:29:40]OFD Sender: No OFD packet to send [09:29:45]OFD Sender: No OFD packet to send [09:29:50]OFD Sender: No OFD packet to send [09:29:55]OFD Sender: No OFD packet to send [09:30:00]OFD Sender: No OFD packet to send [09:30:05]OFD Sender: No OFD packet to send [09:30:10]OFD Sender: No OFD packet to send [09:30:15]OFD Sender: No OFD packet to send [09:30:20]OFD Sender: No OFD packet to send [09:30:25]OFD Sender: No OFD packet to send [09:30:30]OFD Sender: No OFD packet to send [09:30:35]OFD Sender: No OFD packet to send [09:30:40]OFD Sender: No OFD packet to send [09:30:45]OFD Sender: No OFD packet to send [09:30:50]OFD Sender: No OFD packet to send [09:30:55]OFD Sender: No OFD packet to send [09:31:00]OFD Sender: No OFD packet to send [09:31:05]OFD Sender: No OFD packet to send [09:31:10]OFD Sender: No OFD packet to send [09:31:15]OFD Sender: No OFD packet to send [09:31:20]OFD Sender: No OFD packet to send [09:31:25]OFD Sender: No OFD packet to send [09:31:30]OFD Sender: No OFD packet to send [09:31:35]OFD Sender: No OFD packet to send [09:31:40]OFD Sender: No OFD packet to send [09:31:44]accept exits with 7 [09:31:44]New connection [09:31:44]New thread 3066543460 created [09:31:44]Thread 3066686820 joined [09:31:44]Waiting for new connection... [09:31:44] Sock 7.Parse request [09:31:44]Sock 7.Check first char [09:31:44]Sock 7.First char is OK [09:31:44]request: POST /json_proto HTTP/1.0 [09:31:44]Method: POST [09:31:44]URL: /json_proto [09:31:44]Method is POST - this is cgi request [09:31:44]url: /json_proto [09:31:44]query_string will be loaded in cgi processing [09:31:44]execute_cgi json_proto POST (null) [09:31:44]execute_cgi path=json_proto method=POST [09:31:44]POST find Content-Length [09:31:44]Host: 172.17.36.132:8080 [09:31:44]Content-Length: 670 [09:31:44]Content-Type: application/json [09:31:44] [09:31:44]POST finish read [09:31:44]Found Content-Length = 670 [09:31:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706353", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 2.950, "sum" : 200.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:31:44]execute_script... [09:31:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706353", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 2.950, "sum" : 200.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:31:44]POST & json_proto [09:31:44]process_json_proto [09:31:44]json parsed OK: [09:31:44]protocol is kg_v1.0 [09:31:44]action value=close_receipt [09:31:44]process_action close_receipt [09:31:44]cmd_close_receipt [09:31:44]MH_GetDate [09:31:44]Write to MH i2c: F0 00 00 A2 22 B3 [09:31:44]Write i2c OK [09:31:44]MH_I2C_Read... [09:31:44]Read from MH i2c: F0 [09:31:44]MH_I2C_Read... [09:31:44]Read from MH i2c: F0 09 00 [09:31:44]MH_I2C_Read... [09:31:44]Read from MH i2c: F0 09 00 A2 22 00 85 8D 5D 66 B2 22 B0 64 79 [09:31:44]GetLastDocTimeStamp 1717406581 [09:31:44]current date 1717407109 [09:31:44]FM_GetShiftState [09:31:44]SAM_PROTO_GetShiftState [09:31:44]wFMCommunicate request_size=4 [09:31:44]MH_SAM_APDU [09:31:44]CAPDU: 80 13 01 00 [09:31:44]Write to MH i2c: E2 08 00 A3 22 80 13 01 00 00 00 00 00 42 [09:31:44]Write i2c OK [09:31:44]MH_I2C_Read... [09:31:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:44]Read from MH i2c: E2 [09:31:44]MH_I2C_Read... [09:31:44]Read from MH i2c: E2 0E 00 [09:31:44]MH_I2C_Read... [09:31:44]Read from MH i2c: E2 0E 00 A3 22 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 1D [09:31:44]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [09:31:44]wFMCommunicate OK [09:31:44]SAM_PROTO_GetShiftState done [09:31:44]FM_GetShiftState done [09:31:44]opened in 1717378033 [09:31:44]opened+sec_in_day 1717464433 [09:31:44]quantity*price = 20030 [09:31:44]sum+1 = 20032 [09:31:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.27 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 25 03.06.2024 09:31 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68279 ФПД: 67279714089512 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T093149&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68279&fm=67279714089512&tin=02508201610067®Number=0000000000098096&sum=20000 [09:31:46]StoreToDocumentArchive [09:31:46]shift 324 fd 68279 [09:31:46]save to /storage/0324/doc_00068279 [09:31:46]save last doc name /storage/0324/doc_00068279 to /storage/kkm_last_doc_name [09:31:46]save OK [09:31:46]Clear old archive folders... [09:31:46]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:31:46]tlvbuf is B6F14350 [09:31:46]SAM_PROTO_ClearQueue [09:31:46]wFMCommunicate request_size=4 [09:31:46]MH_SAM_APDU [09:31:46]CAPDU: 80 09 00 00 [09:31:46]Write to MH i2c: E2 08 00 B0 22 80 09 00 00 00 00 00 00 44 [09:31:46]Write i2c OK [09:31:46]MH_I2C_Read... [09:31:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:31:46]Read from MH i2c: E2 [09:31:46]MH_I2C_Read... [09:31:46]Read from MH i2c: E2 03 00 [09:31:46]MH_I2C_Read... [09:31:46]Read from MH i2c: E2 03 00 B0 22 00 90 00 46 [09:31:46]RAPDU: 90 00 [09:31:46]wFMCommunicate OK [09:31:46]SAM_PROTO_ClearQueue done [09:31:46]KKMCreateOFDPacket [09:31:46]OFDProtocolAddRootSTLVToBuf [09:31:46]FM_MakeSignedData [09:31:46]FM_MakeSignedData [09:31:46]SAM_PROTO_SignData [09:31:46]wFMCommunicate request_size=4 [09:31:46]MH_SAM_APDU [09:31:46]CAPDU: 80 0D 01 02 [09:31:46]Write to MH i2c: E2 08 00 B1 22 80 0D 01 02 00 00 00 00 4C [09:31:46]Write i2c OK [09:31:46]MH_I2C_Read... [09:31:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:31:46]Read from MH i2c: E2 [09:31:46]MH_I2C_Read... [09:31:46]Read from MH i2c: E2 03 00 [09:31:46]MH_I2C_Read... [09:31:46]Read from MH i2c: E2 03 00 B1 22 00 90 00 47 [09:31:46]RAPDU: 90 00 [09:31:46]wFMCommunicate OK [09:31:46]wFMCommunicate request_size=255 [09:31:46]MH_SAM_APDU [09:31:46]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 3F 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 19 00 00 00 F4 03 04 00 85 8D 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B7 0A 01 00 35 04 06 00 [09:31:46]Write to MH i2c: E2 02 01 B2 22 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 3F 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 19 00 00 00 F4 03 04 00 85 8D 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B7 0A 01 00 35 04 06 00 00 00 16 [09:31:46]Write i2c OK [09:31:46]MH_I2C_Read... [09:31:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:46]Read from MH i2c: E2 [09:31:46]MH_I2C_Read... [09:31:46]Read from MH i2c: E2 03 00 [09:31:46]MH_I2C_Read... [09:31:46]Read from MH i2c: E2 03 00 B2 22 00 90 00 48 [09:31:46]RAPDU: 90 00 [09:31:46]wFMCommunicate OK [09:31:46]wFMCommunicate request_size=11 [09:31:46]MH_SAM_APDU [09:31:46]CAPDU: 80 0D 02 02 06 3D 30 C7 75 7A 28 [09:31:46]Write to MH i2c: E2 0E 00 B3 22 80 0D 02 02 06 00 3D 30 C7 75 7A 28 00 00 A6 [09:31:46]Write i2c OK [09:31:46]MH_I2C_Read... [09:31:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:46]Read from MH i2c: E2 [09:31:46]MH_I2C_Read... [09:31:46]Read from MH i2c: E2 03 00 [09:31:46]MH_I2C_Read... [09:31:46]Read from MH i2c: E2 03 00 B3 22 00 90 00 49 [09:31:46]RAPDU: 90 00 [09:31:46]wFMCommunicate OK [09:31:46]wFMCommunicate request_size=4 [09:31:46]MH_SAM_APDU [09:31:46]CAPDU: 80 0D 03 02 [09:31:46]Write to MH i2c: E2 08 00 B4 22 80 0D 03 02 00 00 00 00 51 [09:31:46]Write i2c OK [09:31:46]MH_I2C_Read... [09:31:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:31:46]Read from MH i2c: E2 [09:31:46]MH_I2C_Read... [09:31:46]Read from MH i2c: E2 0B 00 [09:31:46]MH_I2C_Read... [09:31:46]Read from MH i2c: E2 0B 00 B4 22 00 8F FA EA 19 D9 75 A6 79 90 00 4B [09:31:46]RAPDU: 8F FA EA 19 D9 75 A6 79 90 00 [09:31:46]wFMCommunicate OK [09:31:46]SAM_PROTO_SignData done [09:31:46]FM_MakeSignedData done [09:31:46]CreateOFDProtocolMessage [09:31:46]wFMCommunicate request_size=4 [09:31:46]MH_SAM_APDU [09:31:46]CAPDU: 80 11 00 00 [09:31:46]Write to MH i2c: E2 08 00 B5 22 80 11 00 00 00 00 00 00 51 [09:31:46]Write i2c OK [09:31:46]MH_I2C_Read... [09:31:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:46]Read from MH i2c: E2 [09:31:46]MH_I2C_Read... [09:31:46]Read from MH i2c: E2 17 00 [09:31:46]MH_I2C_Read... [09:31:46]Read from MH i2c: E2 17 00 B5 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 9C [09:31:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [09:31:46]wFMCommunicate OK [09:31:46]CreateOFDProtocolMessage done [09:31:46]OFDSenderStorePacket 68279 [09:31:46]StoreOFDPacket docnum=68279 [09:31:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 D0 D6 08 01 C1 AF 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 3F 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 19 00 00 00 F4 03 04 00 85 8D 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B7 0A 01 00 35 04 06 00 3D 30 C7 75 7A 28 8F FA EA 19 D9 75 A6 79 [09:31:46]CheckFolder [09:31:46]dirname=/storage/ofd_packets [09:31:46]CheckFolder done [09:31:46]ProducePacketName [09:31:46]name=ofd_packets/00068279 [09:31:46]NVStorageSaveData ofd_packets/00068279 [09:31:46]File name is /storage/ofd_packets/00068279 [09:31:46]Write 302 bytes [09:31:46]NVStorageSaveData done [09:31:46]OFDSenderStorePacket done [09:31:46]KKMCreateOFDPacket done [09:31:46]NVStorageSaveData kkm_last_timestamp [09:31:46]File name is /storage/kkm_last_timestamp [09:31:46]Write 4 bytes [09:31:46]NVStorageSaveData done [09:31:46]ExternCall_PrintAddStr [09:31:46]wPrintStart [09:31:46]Write to MH i2c: 01 00 00 B6 22 D8 [09:31:46]Write i2c OK [09:31:46]MH_I2C_Read... [09:31:46]Read from MH i2c: 01 [09:31:46]MH_I2C_Read... [09:31:46]Read from MH i2c: 01 07 00 [09:31:46]MH_I2C_Read... [09:31:46]Read from MH i2c: 01 07 00 B6 22 00 00 00 00 00 FF 0F ED [09:31:46]RasterBufferAndPrint [09:31:46]line Счет N : (1)706353 [09:31:46]line ИНН: 02508201610067 [09:31:46]line Контрольно-Кассовый Чек [09:31:46]line ПРОДАЖА [09:31:46]line ТРК (МРК, ГНК) : 52 [09:31:46]line Товар: 2710124130 [09:31:46]line Super-92-К-5 [09:31:46]line 2.950 * 67.90 [09:31:46]line = 200.31 [09:31:46]line НДС 12% НСП 1% [09:31:46]line > о реализуемом товаре [09:31:46]line ОКРУГЛЕНИЕ: -0.31 [09:31:46]line ИТОГО: 200.00 [09:31:46]line Внесено: 200.00 [09:31:46]line СДАЧА: 0.00 [09:31:46]line НСП 1% : 1.77 [09:31:46]line НДС 12% : 21.27 [09:31:46]line Наличными: 200.00 [09:31:46]line Безнал.: 0.00 [09:31:46]line Место: АЗС № 62 "Партнер Нефть" [09:31:46]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [09:31:46]line СНО: Общий режим [09:31:46]line Чек 25 03.06.2024 09:31 [09:31:46]line Смена: 324 ФФД: 1.0 [09:31:46]line ЗНМ: 0300000181 [09:31:46]line РНМ: 0000000000098096 [09:31:46]line Версия ККМ: 001 [09:31:46]line ФМ: 0000000000965400 [09:31:46]line ФД: 68279 [09:31:46]line ФПД: 67279714089512 [09:31:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T093149&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68279&fm=67279714089512&tin=02508201610067®Number=0000000000098096&sum=20000 [09:31:46]OFD Sender: Processing packet 68279 [packets to send 26, broken 25] [09:31:46]ProducePacketName [09:31:46]name=ofd_packets/00068279 [09:31:46]OFD Sender: To server: pG, [09:31:46]CommunicateWithHost lk.salyk.kg:30040 [09:31:46]ConnectInit lk.salyk.kg [09:31:46]written 0, free lines is 4095 [09:31:46]Connected sock=10 [09:31:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 D0 D6 08 01 C1 AF 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 3F 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 19 00 00 00 F4 03 04 00 85 8D 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B7 0A 01 00 35 04 06 00 3D 30 C7 75 7A 28 8F FA EA 19 D9 75 A6 79 [09:31:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 12 3E 47 00 6F 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B7 0A 01 00 F4 03 04 00 81 34 5D 66 B6 04 01 00 00 D4 08 0D 1E 95 99 F6 26 [09:31:47]CommunicateWithHost err = 0 [09:31:47]CheckOFDResponse [09:31:47]1017 (14) - 77093643461234 [09:31:47]1041 (16) - 0000000000965400 [09:31:47]1040 (4) - 68279 [09:31:47]1012 (4) - 03.06.2024 03:12 [09:31:47]1206 (1) - 0 [09:31:47]OFD Sender: Remove packet 68279 [09:31:47]ProducePacketName [09:31:47]name=ofd_packets/00068279 [09:31:47]NVStorageDeleteData [09:31:47]Write to MH i2c: 01 00 00 E1 22 03 [09:31:47]Write i2c OK [09:31:47]MH_I2C_Read... [09:31:47]Read from MH i2c: 01 [09:31:47]MH_I2C_Read... [09:31:47]Read from MH i2c: 01 07 00 [09:31:47]MH_I2C_Read... [09:31:47]Read from MH i2c: 01 07 00 E1 22 00 00 00 00 00 D7 0C ED [09:31:47]RasterBufferAndPrint [09:31:47]line [09:31:47]line [09:31:47]line [09:31:47]line [09:31:47]line [09:31:47]written 0, free lines is 3294 [09:31:47]MH_Cut [09:31:47]Write to MH i2c: D1 01 00 E8 22 01 DC [09:31:47]Write i2c OK [09:31:47]MH_I2C_Read... [09:31:47]Read from MH i2c: D1 [09:31:47]MH_I2C_Read... [09:31:47]Read from MH i2c: D1 01 00 [09:31:47]MH_I2C_Read... [09:31:47]Read from MH i2c: D1 01 00 E8 22 00 DB [09:31:47]Write to MH i2c: 01 00 00 E9 22 0B [09:31:47]Write i2c OK [09:31:47]MH_I2C_Read... [09:31:47]OFD Sender: No OFD packet to send [09:31:48]*** Cut start [09:31:48]*** Partial cut [09:31:48]*** CUTSNS_PIN = 1 [09:31:48]*** CUTSNS_PIN = 0 [09:31:48]*** Brake cut motor [09:31:48]Read from MH i2c: 01 [09:31:48]MH_I2C_Read... [09:31:48]*** Stop cut motor [09:31:48]*** Cut end [09:31:48]Read from MH i2c: 01 07 00 [09:31:48]MH_I2C_Read... [09:31:48]Read from MH i2c: 01 07 00 E9 22 00 00 00 00 00 FF 0F 20 [09:31:48]process_action close_receipt done [09:31:48]requested_data is exist [09:31:48]produce_requested_data [09:31:48]requested_item fm.sn is exist - process it [09:31:48]wFMCommunicate request_size=4 [09:31:48]MH_SAM_APDU [09:31:48]CAPDU: 80 11 00 00 [09:31:48]Write to MH i2c: E2 08 00 EA 22 80 11 00 00 00 00 00 00 86 [09:31:48]Write i2c OK [09:31:48]MH_I2C_Read... [09:31:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:48]Read from MH i2c: E2 [09:31:48]MH_I2C_Read... [09:31:48]Read from MH i2c: E2 17 00 [09:31:48]MH_I2C_Read... [09:31:48]Read from MH i2c: E2 17 00 EA 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 D1 [09:31:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [09:31:48]wFMCommunicate OK [09:31:48]requested_item fd.num is exist - process it [09:31:48]SAM_PROTO_GetFieldsCounters [09:31:48]wFMCommunicate request_size=4 [09:31:48]MH_SAM_APDU [09:31:48]CAPDU: 80 13 00 00 [09:31:48]Write to MH i2c: E2 08 00 EB 22 80 13 00 00 00 00 00 00 89 [09:31:48]Write i2c OK [09:31:48]MH_I2C_Read... [09:31:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:31:48]Read from MH i2c: E2 [09:31:48]MH_I2C_Read... [09:31:48]Read from MH i2c: E2 62 00 [09:31:48]MH_I2C_Read... [09:31:48]Read from MH i2c: E2 62 00 EB 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 B7 0A 01 00 0E 04 04 00 44 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 FB [09:31:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 B7 0A 01 00 0E 04 04 00 44 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 [09:31:48]wFMCommunicate OK [09:31:48]SAM_PROTO_GetFieldsCounters done [09:31:48]requested_item shift.num is exist - process it [09:31:48]requested_item shift.opened is exist - process it [09:31:48]req_shift_opened [09:31:48]FM_GetShiftState [09:31:48]SAM_PROTO_GetShiftState [09:31:48]wFMCommunicate request_size=4 [09:31:48]MH_SAM_APDU [09:31:48]CAPDU: 80 13 01 00 [09:31:48]Write to MH i2c: E2 08 00 EC 22 80 13 01 00 00 00 00 00 8B [09:31:48]Write i2c OK [09:31:48]MH_I2C_Read... [09:31:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:49]Read from MH i2c: E2 [09:31:49]MH_I2C_Read... [09:31:49]Read from MH i2c: E2 0E 00 [09:31:49]MH_I2C_Read... [09:31:49]Read from MH i2c: E2 0E 00 EC 22 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 66 [09:31:49]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [09:31:49]wFMCommunicate OK [09:31:49]SAM_PROTO_GetShiftState done [09:31:49]FM_GetShiftState done [09:31:49]req_shift_opened done [09:31:49]requested_item shift.open_date is exist - process it [09:31:49]req_shift_open_date [09:31:49]req_shift_open_date done [09:31:49]produce_requested_data done [09:31:49]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68279,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [09:31:49]process_action_free close_receipt [09:31:49]json_value_free [09:31:49]json_value_free done [09:31:49]process_json_proto returns [09:31:49]Send response to host [09:31:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68279,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [09:31:49]free response buf [09:31:49]execute_script done [09:31:49]execute_script returns [09:31:49]free content buf [09:31:49]Sock 7.Close socket [09:31:49]Sock 7.Thread stoped [09:31:52]OFD Sender: No OFD packet to send [09:31:57]OFD Sender: No OFD packet to send [09:32:02]OFD Sender: No OFD packet to send [09:32:07]OFD Sender: No OFD packet to send [09:32:08]accept exits with 9 [09:32:08]New connection [09:32:08]New thread 3066686820 created [09:32:08]Thread 3066543460 joined [09:32:08]Waiting for new connection... [09:32:08] Sock 9.Parse request [09:32:08]Sock 9.Check first char [09:32:08]Sock 9.First char is OK [09:32:08]request: POST /json_proto HTTP/1.0 [09:32:08]Method: POST [09:32:08]URL: /json_proto [09:32:08]Method is POST - this is cgi request [09:32:08]url: /json_proto [09:32:08]query_string will be loaded in cgi processing [09:32:08]execute_cgi json_proto POST (null) [09:32:08]execute_cgi path=json_proto method=POST [09:32:08]POST find Content-Length [09:32:08]Host: 172.17.36.132:8080 [09:32:08]Content-Length: 836 [09:32:08]Content-Type: application/json [09:32:08] [09:32:08]POST finish read [09:32:08]Found Content-Length = 836 [09:32:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706352", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 14.730, "sum" : 1000.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.17 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:32:08]execute_script... [09:32:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706352", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 14.730, "sum" : 1000.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.17 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:32:08]POST & json_proto [09:32:08]process_json_proto [09:32:08]json parsed OK: [09:32:08]protocol is kg_v1.0 [09:32:08]action value=close_receipt [09:32:08]process_action close_receipt [09:32:08]cmd_close_receipt [09:32:08]MH_GetDate [09:32:08]Write to MH i2c: F0 00 00 ED 22 FE [09:32:08]Write i2c OK [09:32:08]MH_I2C_Read... [09:32:08]Read from MH i2c: F0 [09:32:08]MH_I2C_Read... [09:32:08]Read from MH i2c: F0 09 00 [09:32:08]MH_I2C_Read... [09:32:08]Read from MH i2c: F0 09 00 ED 22 00 9C 8D 5D 66 B2 22 B0 64 DB [09:32:08]GetLastDocTimeStamp 1717407109 [09:32:08]current date 1717407132 [09:32:08]FM_GetShiftState [09:32:08]SAM_PROTO_GetShiftState [09:32:08]wFMCommunicate request_size=4 [09:32:08]MH_SAM_APDU [09:32:08]CAPDU: 80 13 01 00 [09:32:08]Write to MH i2c: E2 08 00 EE 22 80 13 01 00 00 00 00 00 8D [09:32:08]Write i2c OK [09:32:08]MH_I2C_Read... [09:32:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:08]Read from MH i2c: E2 [09:32:08]MH_I2C_Read... [09:32:08]Read from MH i2c: E2 0E 00 [09:32:08]MH_I2C_Read... [09:32:08]Read from MH i2c: E2 0E 00 EE 22 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 68 [09:32:08]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [09:32:08]wFMCommunicate OK [09:32:08]SAM_PROTO_GetShiftState done [09:32:08]FM_GetShiftState done [09:32:08]opened in 1717378033 [09:32:08]opened+sec_in_day 1717464433 [09:32:08]quantity*price = 100016 [09:32:08]sum+1 = 100018 [09:32:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.17 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.17 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 26 03.06.2024 09:32 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68280 ФПД: 171854069563763 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T093212&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68280&fm=171854069563763&tin=02508201610067®Number=0000000000098096&sum=100017 [09:32:09]StoreToDocumentArchive [09:32:09]shift 324 fd 68280 [09:32:09]save to /storage/0324/doc_00068280 [09:32:09]save last doc name /storage/0324/doc_00068280 to /storage/kkm_last_doc_name [09:32:09]save OK [09:32:09]Clear old archive folders... [09:32:09]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:32:09]tlvbuf is 00236D00 [09:32:09]SAM_PROTO_ClearQueue [09:32:09]wFMCommunicate request_size=4 [09:32:09]MH_SAM_APDU [09:32:09]CAPDU: 80 09 00 00 [09:32:09]Write to MH i2c: E2 08 00 FB 22 80 09 00 00 00 00 00 00 8F [09:32:09]Write i2c OK [09:32:09]MH_I2C_Read... [09:32:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:32:09]Read from MH i2c: E2 [09:32:09]MH_I2C_Read... [09:32:09]Read from MH i2c: E2 03 00 [09:32:09]MH_I2C_Read... [09:32:09]Read from MH i2c: E2 03 00 FB 22 00 90 00 91 [09:32:09]RAPDU: 90 00 [09:32:09]wFMCommunicate OK [09:32:09]SAM_PROTO_ClearQueue done [09:32:09]KKMCreateOFDPacket [09:32:09]OFDProtocolAddRootSTLVToBuf [09:32:09]FM_MakeSignedData [09:32:09]FM_MakeSignedData [09:32:09]SAM_PROTO_SignData [09:32:09]wFMCommunicate request_size=4 [09:32:09]MH_SAM_APDU [09:32:09]CAPDU: 80 0D 01 02 [09:32:09]Write to MH i2c: E2 08 00 FC 22 80 0D 01 02 00 00 00 00 97 [09:32:09]Write i2c OK [09:32:09]MH_I2C_Read... [09:32:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:32:09]Read from MH i2c: E2 [09:32:09]MH_I2C_Read... [09:32:09]Read from MH i2c: E2 03 00 [09:32:09]MH_I2C_Read... [09:32:09]Read from MH i2c: E2 03 00 FC 22 00 90 00 92 [09:32:09]RAPDU: 90 00 [09:32:09]wFMCommunicate OK [09:32:09]wFMCommunicate request_size=255 [09:32:09]MH_SAM_APDU [09:32:09]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 39 00 00 00 00 00 37 04 06 00 86 1A 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 B1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 9C 8D 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B8 0A 01 00 35 04 06 00 [09:32:09]Write to MH i2c: E2 02 01 FD 22 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 39 00 00 00 00 00 37 04 06 00 86 1A 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 B1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 9C 8D 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B8 0A 01 00 35 04 06 00 00 00 01 [09:32:09]Write i2c OK [09:32:09]MH_I2C_Read... [09:32:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:09]Read from MH i2c: E2 [09:32:09]MH_I2C_Read... [09:32:09]Read from MH i2c: E2 03 00 [09:32:09]MH_I2C_Read... [09:32:09]Read from MH i2c: E2 03 00 FD 22 00 90 00 93 [09:32:09]RAPDU: 90 00 [09:32:09]wFMCommunicate OK [09:32:09]wFMCommunicate request_size=11 [09:32:09]MH_SAM_APDU [09:32:09]CAPDU: 80 0D 02 02 06 9C 4C E4 C5 01 73 [09:32:09]Write to MH i2c: E2 0E 00 FE 22 80 0D 02 02 06 00 9C 4C E4 C5 01 73 00 00 AB [09:32:09]Write i2c OK [09:32:09]MH_I2C_Read... [09:32:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:09]Read from MH i2c: E2 [09:32:09]MH_I2C_Read... [09:32:09]Read from MH i2c: E2 03 00 [09:32:09]MH_I2C_Read... [09:32:09]Read from MH i2c: E2 03 00 FE 22 00 90 00 94 [09:32:09]RAPDU: 90 00 [09:32:09]wFMCommunicate OK [09:32:09]wFMCommunicate request_size=4 [09:32:09]MH_SAM_APDU [09:32:09]CAPDU: 80 0D 03 02 [09:32:09]Write to MH i2c: E2 08 00 FF 22 80 0D 03 02 00 00 00 00 9C [09:32:09]Write i2c OK [09:32:09]MH_I2C_Read... [09:32:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:32:09]Read from MH i2c: E2 [09:32:09]MH_I2C_Read... [09:32:09]Read from MH i2c: E2 0B 00 [09:32:09]MH_I2C_Read... [09:32:09]Read from MH i2c: E2 0B 00 FF 22 00 5C D3 12 E0 87 AE 9E 6D 90 00 FE [09:32:09]RAPDU: 5C D3 12 E0 87 AE 9E 6D 90 00 [09:32:09]wFMCommunicate OK [09:32:09]SAM_PROTO_SignData done [09:32:09]FM_MakeSignedData done [09:32:09]CreateOFDProtocolMessage [09:32:09]wFMCommunicate request_size=4 [09:32:09]MH_SAM_APDU [09:32:09]CAPDU: 80 11 00 00 [09:32:09]Write to MH i2c: E2 08 00 00 23 80 11 00 00 00 00 00 00 9D [09:32:09]Write i2c OK [09:32:09]MH_I2C_Read... [09:32:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:09]Read from MH i2c: E2 [09:32:09]MH_I2C_Read... [09:32:09]Read from MH i2c: E2 17 00 [09:32:09]MH_I2C_Read... [09:32:09]Read from MH i2c: E2 17 00 00 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 E8 [09:32:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [09:32:09]wFMCommunicate OK [09:32:09]CreateOFDProtocolMessage done [09:32:09]OFDSenderStorePacket 68280 [09:32:09]StoreOFDPacket docnum=68280 [09:32:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 B8 69 08 01 B5 21 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 39 00 00 00 00 00 37 04 06 00 86 1A 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 B1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 9C 8D 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B8 0A 01 00 35 04 06 00 9C 4C E4 C5 01 73 5C D3 12 E0 87 AE 9E 6D [09:32:09]CheckFolder [09:32:09]dirname=/storage/ofd_packets [09:32:09]CheckFolder done [09:32:09]ProducePacketName [09:32:09]name=ofd_packets/00068280 [09:32:09]NVStorageSaveData ofd_packets/00068280 [09:32:09]File name is /storage/ofd_packets/00068280 [09:32:09]Write 302 bytes [09:32:09]NVStorageSaveData done [09:32:09]OFDSenderStorePacket done [09:32:09]KKMCreateOFDPacket done [09:32:09]NVStorageSaveData kkm_last_timestamp [09:32:09]File name is /storage/kkm_last_timestamp [09:32:09]Write 4 bytes [09:32:09]NVStorageSaveData done [09:32:09]ExternCall_PrintAddStr [09:32:09]wPrintStart [09:32:09]Write to MH i2c: 01 00 00 01 23 24 [09:32:09]Write i2c OK [09:32:09]MH_I2C_Read... [09:32:09]Read from MH i2c: 01 [09:32:09]MH_I2C_Read... [09:32:09]Read from MH i2c: 01 07 00 [09:32:09]MH_I2C_Read... [09:32:09]Read from MH i2c: 01 07 00 01 23 00 00 00 00 00 FF 0F 39 [09:32:09]RasterBufferAndPrint [09:32:09]line Счет N : (1)706352 [09:32:09]line ИНН: 02508201610067 [09:32:09]line Контрольно-Кассовый Чек [09:32:09]line ПРОДАЖА [09:32:09]line ТРК (МРК, ГНК) : 41 [09:32:09]line Товар: 2710124130 [09:32:09]line Super-92-К-5 [09:32:09]line 14.730 * 67.90 [09:32:09]line = 1000.17 [09:32:09]line НДС 12% НСП 1% [09:32:09]line > о реализуемом товаре [09:32:09]line ИТОГО: 1000.17 [09:32:09]line НСП 1% : 8.85 [09:32:09]line НДС 12% : 106.21 [09:32:09]line Наличными: 0.00 [09:32:09]line Безнал.: 1000.17 [09:32:09]line Место: АЗС № 62 "Партнер Нефть" [09:32:09]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [09:32:09]line СНО: Общий режим [09:32:09]line Чек 26 03.06.2024 09:32 [09:32:09]line Смена: 324 ФФД: 1.0 [09:32:09]line ЗНМ: 0300000181 [09:32:09]line РНМ: 0000000000098096 [09:32:09]line Версия ККМ: 001 [09:32:09]line Платежная система: АКБ Кыргызстан [09:32:09]line ФМ: 0000000000965400 [09:32:09]line ФД: 68280 [09:32:09]line ФПД: 171854069563763 [09:32:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T093212&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68280&fm=171854069563763&tin=02508201610067®Number=0000000000098096&sum=100017 [09:32:10]OFD Sender: Processing packet 68280 [packets to send 26, broken 25] [09:32:10]ProducePacketName [09:32:10]name=ofd_packets/00068280 [09:32:10]OFD Sender: To server: pG, [09:32:10]CommunicateWithHost lk.salyk.kg:30040 [09:32:10]ConnectInit lk.salyk.kg [09:32:10]written 0, free lines is 4095 [09:32:10]Connected sock=10 [09:32:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 B8 69 08 01 B5 21 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 39 00 00 00 00 00 37 04 06 00 86 1A 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 B1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 9C 8D 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B8 0A 01 00 35 04 06 00 9C 4C E4 C5 01 73 5C D3 12 E0 87 AE 9E 6D [09:32:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 53 62 47 00 94 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B8 0A 01 00 F4 03 04 00 99 34 5D 66 B6 04 01 00 00 BE 05 A6 AB 81 00 FE 92 [09:32:10]CommunicateWithHost err = 0 [09:32:10]CheckOFDResponse [09:32:10]1017 (14) - 77093643461234 [09:32:10]1041 (16) - 0000000000965400 [09:32:10]1040 (4) - 68280 [09:32:10]1012 (4) - 03.06.2024 03:12 [09:32:10]1206 (1) - 0 [09:32:10]OFD Sender: Remove packet 68280 [09:32:10]ProducePacketName [09:32:10]name=ofd_packets/00068280 [09:32:10]NVStorageDeleteData [09:32:10]Write to MH i2c: 01 00 00 2B 23 4E [09:32:10]Write i2c OK [09:32:10]MH_I2C_Read... [09:32:10]Read from MH i2c: 01 [09:32:10]MH_I2C_Read... [09:32:10]Read from MH i2c: 01 07 00 [09:32:10]MH_I2C_Read... [09:32:10]Read from MH i2c: 01 07 00 2B 23 00 00 00 00 00 F2 0C 53 [09:32:10]RasterBufferAndPrint [09:32:10]line [09:32:10]line [09:32:10]line [09:32:10]line [09:32:10]line [09:32:10]written 0, free lines is 3320 [09:32:10]MH_Cut [09:32:10]Write to MH i2c: D1 01 00 32 23 01 27 [09:32:10]Write i2c OK [09:32:10]MH_I2C_Read... [09:32:10]Read from MH i2c: D1 [09:32:10]MH_I2C_Read... [09:32:10]Read from MH i2c: D1 01 00 [09:32:10]MH_I2C_Read... [09:32:10]Read from MH i2c: D1 01 00 32 23 00 26 [09:32:10]Write to MH i2c: 01 00 00 33 23 56 [09:32:10]Write i2c OK [09:32:10]MH_I2C_Read... [09:32:10]OFD Sender: No OFD packet to send [09:32:11]*** Cut start [09:32:11]*** Partial cut [09:32:11]*** CUTSNS_PIN = 1 [09:32:11]*** CUTSNS_PIN = 0 [09:32:11]*** Brake cut motor [09:32:12]Read from MH i2c: 01 [09:32:12]MH_I2C_Read... [09:32:12]*** Stop cut motor [09:32:12]*** Cut end [09:32:12]Read from MH i2c: 01 07 00 [09:32:12]MH_I2C_Read... [09:32:12]Read from MH i2c: 01 07 00 33 23 00 00 00 00 00 FF 0F 6B [09:32:12]process_action close_receipt done [09:32:12]requested_data is exist [09:32:12]produce_requested_data [09:32:12]requested_item fm.sn is exist - process it [09:32:12]wFMCommunicate request_size=4 [09:32:12]MH_SAM_APDU [09:32:12]CAPDU: 80 11 00 00 [09:32:12]Write to MH i2c: E2 08 00 34 23 80 11 00 00 00 00 00 00 D1 [09:32:12]Write i2c OK [09:32:12]MH_I2C_Read... [09:32:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:12]Read from MH i2c: E2 [09:32:12]MH_I2C_Read... [09:32:12]Read from MH i2c: E2 17 00 [09:32:12]MH_I2C_Read... [09:32:12]Read from MH i2c: E2 17 00 34 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 1C [09:32:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [09:32:12]wFMCommunicate OK [09:32:12]requested_item fd.num is exist - process it [09:32:12]SAM_PROTO_GetFieldsCounters [09:32:12]wFMCommunicate request_size=4 [09:32:12]MH_SAM_APDU [09:32:12]CAPDU: 80 13 00 00 [09:32:12]Write to MH i2c: E2 08 00 35 23 80 13 00 00 00 00 00 00 D4 [09:32:12]Write i2c OK [09:32:12]MH_I2C_Read... [09:32:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:32:12]Read from MH i2c: E2 [09:32:12]MH_I2C_Read... [09:32:12]Read from MH i2c: E2 62 00 [09:32:12]MH_I2C_Read... [09:32:12]Read from MH i2c: E2 62 00 35 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 B8 0A 01 00 0E 04 04 00 44 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 4A [09:32:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 B8 0A 01 00 0E 04 04 00 44 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 [09:32:12]wFMCommunicate OK [09:32:12]SAM_PROTO_GetFieldsCounters done [09:32:12]requested_item shift.num is exist - process it [09:32:12]requested_item shift.opened is exist - process it [09:32:12]req_shift_opened [09:32:12]FM_GetShiftState [09:32:12]SAM_PROTO_GetShiftState [09:32:12]wFMCommunicate request_size=4 [09:32:12]MH_SAM_APDU [09:32:12]CAPDU: 80 13 01 00 [09:32:12]Write to MH i2c: E2 08 00 36 23 80 13 01 00 00 00 00 00 D6 [09:32:12]Write i2c OK [09:32:12]MH_I2C_Read... [09:32:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:12]Read from MH i2c: E2 [09:32:12]MH_I2C_Read... [09:32:12]Read from MH i2c: E2 0E 00 [09:32:12]MH_I2C_Read... [09:32:12]Read from MH i2c: E2 0E 00 36 23 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 B1 [09:32:12]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [09:32:12]wFMCommunicate OK [09:32:12]SAM_PROTO_GetShiftState done [09:32:12]FM_GetShiftState done [09:32:12]req_shift_opened done [09:32:12]requested_item shift.open_date is exist - process it [09:32:12]req_shift_open_date [09:32:12]req_shift_open_date done [09:32:12]produce_requested_data done [09:32:12]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68280,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [09:32:12]process_action_free close_receipt [09:32:12]json_value_free [09:32:12]json_value_free done [09:32:12]process_json_proto returns [09:32:12]Send response to host [09:32:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68280,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [09:32:12]free response buf [09:32:12]execute_script done [09:32:12]execute_script returns [09:32:12]free content buf [09:32:12]Sock 9.Close socket [09:32:12]Sock 9.Thread stoped [09:32:15]OFD Sender: No OFD packet to send [09:32:21]OFD Sender: No OFD packet to send [09:32:26]OFD Sender: No OFD packet to send [09:32:31]OFD Sender: No OFD packet to send [09:32:36]OFD Sender: No OFD packet to send [09:32:41]OFD Sender: No OFD packet to send [09:32:46]OFD Sender: No OFD packet to send [09:32:49]accept exits with 7 [09:32:49]New connection [09:32:49]New thread 3066543460 created [09:32:49]Thread 3066686820 joined [09:32:49]Waiting for new connection... [09:32:49] Sock 7.Parse request [09:32:49]Sock 7.Check first char [09:32:49]Sock 7.First char is OK [09:32:49]request: POST /json_proto HTTP/1.0 [09:32:49]Method: POST [09:32:49]URL: /json_proto [09:32:49]Method is POST - this is cgi request [09:32:49]url: /json_proto [09:32:49]query_string will be loaded in cgi processing [09:32:49]execute_cgi json_proto POST (null) [09:32:49]execute_cgi path=json_proto method=POST [09:32:49]POST find Content-Length [09:32:49]Host: 172.17.36.132:8080 [09:32:49]Content-Length: 677 [09:32:49]Content-Type: application/json [09:32:49] [09:32:49]POST finish read [09:32:49]Found Content-Length = 677 [09:32:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706354", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:32:49]execute_script... [09:32: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)706354", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:32:49]POST & json_proto [09:32:49]process_json_proto [09:32:49]json parsed OK: [09:32:49]protocol is kg_v1.0 [09:32:49]action value=close_receipt [09:32:49]process_action close_receipt [09:32:49]cmd_close_receipt [09:32:49]MH_GetDate [09:32:49]Write to MH i2c: F0 00 00 37 23 49 [09:32:49]Write i2c OK [09:32:49]MH_I2C_Read... [09:32:49]Read from MH i2c: F0 [09:32:49]MH_I2C_Read... [09:32:49]Read from MH i2c: F0 09 00 [09:32:49]MH_I2C_Read... [09:32:49]Read from MH i2c: F0 09 00 37 23 00 C5 8D 5D 66 B2 22 B0 64 4F [09:32:49]GetLastDocTimeStamp 1717407132 [09:32:49]current date 1717407173 [09:32:49]FM_GetShiftState [09:32:49]SAM_PROTO_GetShiftState [09:32:49]wFMCommunicate request_size=4 [09:32:49]MH_SAM_APDU [09:32:49]CAPDU: 80 13 01 00 [09:32:49]Write to MH i2c: E2 08 00 38 23 80 13 01 00 00 00 00 00 D8 [09:32:49]Write i2c OK [09:32:49]MH_I2C_Read... [09:32:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:49]Read from MH i2c: E2 [09:32:49]MH_I2C_Read... [09:32:49]Read from MH i2c: E2 0E 00 [09:32:49]MH_I2C_Read... [09:32:49]Read from MH i2c: E2 0E 00 38 23 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 B3 [09:32:49]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [09:32:49]wFMCommunicate OK [09:32:49]SAM_PROTO_GetShiftState done [09:32:49]FM_GetShiftState done [09:32:49]opened in 1717378033 [09:32:49]opened+sec_in_day 1717464433 [09:32:49]quantity*price = 30038 [09:32:49]sum+1 = 30039 [09:32:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 27 03.06.2024 09:32 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68281 ФПД: 213544701571355 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T093253&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68281&fm=213544701571355&tin=02508201610067®Number=0000000000098096&sum=30000 [09:32:50]StoreToDocumentArchive [09:32:50]shift 324 fd 68281 [09:32:50]save to /storage/0324/doc_00068281 [09:32:50]save last doc name /storage/0324/doc_00068281 to /storage/kkm_last_doc_name [09:32:50]save OK [09:32:50]Clear old archive folders... [09:32:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:32:50]tlvbuf is 0046BDE0 [09:32:50]SAM_PROTO_ClearQueue [09:32:50]wFMCommunicate request_size=4 [09:32:50]MH_SAM_APDU [09:32:50]CAPDU: 80 09 00 00 [09:32:50]Write to MH i2c: E2 08 00 45 23 80 09 00 00 00 00 00 00 DA [09:32:50]Write i2c OK [09:32:50]MH_I2C_Read... [09:32:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:32:50]Read from MH i2c: E2 [09:32:50]MH_I2C_Read... [09:32:50]Read from MH i2c: E2 03 00 [09:32:50]MH_I2C_Read... [09:32:50]Read from MH i2c: E2 03 00 45 23 00 90 00 DC [09:32:50]RAPDU: 90 00 [09:32:50]wFMCommunicate OK [09:32:50]SAM_PROTO_ClearQueue done [09:32:50]KKMCreateOFDPacket [09:32:50]OFDProtocolAddRootSTLVToBuf [09:32:50]FM_MakeSignedData [09:32:50]FM_MakeSignedData [09:32:50]SAM_PROTO_SignData [09:32:50]wFMCommunicate request_size=4 [09:32:50]MH_SAM_APDU [09:32:50]CAPDU: 80 0D 01 02 [09:32:50]Write to MH i2c: E2 08 00 46 23 80 0D 01 02 00 00 00 00 E2 [09:32:50]Write i2c OK [09:32:50]MH_I2C_Read... [09:32:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:32:50]Read from MH i2c: E2 [09:32:50]MH_I2C_Read... [09:32:50]Read from MH i2c: E2 03 00 [09:32:50]MH_I2C_Read... [09:32:50]Read from MH i2c: E2 03 00 46 23 00 90 00 DD [09:32:50]RAPDU: 90 00 [09:32:50]wFMCommunicate OK [09:32:50]wFMCommunicate request_size=255 [09:32:50]MH_SAM_APDU [09:32:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 C5 8D 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B9 0A 01 00 35 04 06 00 C2 [09:32:50]Write to MH i2c: E2 02 01 47 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 C5 8D 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B9 0A 01 00 35 04 06 00 C2 00 00 5E [09:32:50]Write i2c OK [09:32:50]MH_I2C_Read... [09:32:51]OFD Sender: No OFD packet to send [09:32:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:51]Read from MH i2c: E2 [09:32:51]MH_I2C_Read... [09:32:51]Read from MH i2c: E2 03 00 [09:32:51]MH_I2C_Read... [09:32:51]Read from MH i2c: E2 03 00 47 23 00 90 00 DE [09:32:51]RAPDU: 90 00 [09:32:51]wFMCommunicate OK [09:32:51]wFMCommunicate request_size=10 [09:32:51]MH_SAM_APDU [09:32:51]CAPDU: 80 0D 02 02 05 37 C0 14 B1 1B [09:32:51]Write to MH i2c: E2 0D 00 48 23 80 0D 02 02 05 00 37 C0 14 B1 1B 00 00 C6 [09:32:51]Write i2c OK [09:32:51]MH_I2C_Read... [09:32:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:51]Read from MH i2c: E2 [09:32:51]MH_I2C_Read... [09:32:51]Read from MH i2c: E2 03 00 [09:32:51]MH_I2C_Read... [09:32:51]Read from MH i2c: E2 03 00 48 23 00 90 00 DF [09:32:51]RAPDU: 90 00 [09:32:51]wFMCommunicate OK [09:32:51]wFMCommunicate request_size=4 [09:32:51]MH_SAM_APDU [09:32:51]CAPDU: 80 0D 03 02 [09:32:51]Write to MH i2c: E2 08 00 49 23 80 0D 03 02 00 00 00 00 E7 [09:32:51]Write i2c OK [09:32:51]MH_I2C_Read... [09:32:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:32:51]Read from MH i2c: E2 [09:32:51]MH_I2C_Read... [09:32:51]Read from MH i2c: E2 0B 00 [09:32:51]MH_I2C_Read... [09:32:51]Read from MH i2c: E2 0B 00 49 23 00 87 09 4A 92 61 8B 63 18 90 00 BB [09:32:51]RAPDU: 87 09 4A 92 61 8B 63 18 90 00 [09:32:51]wFMCommunicate OK [09:32:51]SAM_PROTO_SignData done [09:32:51]FM_MakeSignedData done [09:32:51]CreateOFDProtocolMessage [09:32:51]wFMCommunicate request_size=4 [09:32:51]MH_SAM_APDU [09:32:51]CAPDU: 80 11 00 00 [09:32:51]Write to MH i2c: E2 08 00 4A 23 80 11 00 00 00 00 00 00 E7 [09:32:51]Write i2c OK [09:32:51]MH_I2C_Read... [09:32:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:51]Read from MH i2c: E2 [09:32:51]MH_I2C_Read... [09:32:51]Read from MH i2c: E2 17 00 [09:32:51]MH_I2C_Read... [09:32:51]Read from MH i2c: E2 17 00 4A 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 32 [09:32:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [09:32:51]wFMCommunicate OK [09:32:51]CreateOFDProtocolMessage done [09:32:51]OFDSenderStorePacket 68281 [09:32:51]StoreOFDPacket docnum=68281 [09:32:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 77 DF 07 01 E6 F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 C5 8D 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B9 0A 01 00 35 04 06 00 C2 37 C0 14 B1 1B 87 09 4A 92 61 8B 63 18 [09:32:51]CheckFolder [09:32:51]dirname=/storage/ofd_packets [09:32:51]CheckFolder done [09:32:51]ProducePacketName [09:32:51]name=ofd_packets/00068281 [09:32:51]NVStorageSaveData ofd_packets/00068281 [09:32:51]File name is /storage/ofd_packets/00068281 [09:32:51]Write 301 bytes [09:32:51]NVStorageSaveData done [09:32:51]OFDSenderStorePacket done [09:32:51]KKMCreateOFDPacket done [09:32:51]NVStorageSaveData kkm_last_timestamp [09:32:51]File name is /storage/kkm_last_timestamp [09:32:51]Write 4 bytes [09:32:51]NVStorageSaveData done [09:32:51]ExternCall_PrintAddStr [09:32:51]wPrintStart [09:32:51]Write to MH i2c: 01 00 00 4B 23 6E [09:32:51]Write i2c OK [09:32:51]MH_I2C_Read... [09:32:51]Read from MH i2c: 01 [09:32:51]MH_I2C_Read... [09:32:51]Read from MH i2c: 01 07 00 [09:32:51]MH_I2C_Read... [09:32:51]Read from MH i2c: 01 07 00 4B 23 00 00 00 00 00 FF 0F 83 [09:32:51]RasterBufferAndPrint [09:32:51]line Счет N : (1)706354 [09:32:51]line ИНН: 02508201610067 [09:32:51]line Контрольно-Кассовый Чек [09:32:51]line ПРОДАЖА [09:32:51]line ТРК (МРК, ГНК) : 23 [09:32:51]line Товар: 2710124130 [09:32:51]line Аи-92-К-4 [09:32:51]line 4.490 * 66.90 [09:32:51]line = 300.38 [09:32:51]line НДС 12% НСП 1% [09:32:51]line > о реализуемом товаре [09:32:51]line ОКРУГЛЕНИЕ: -0.38 [09:32:51]line ИТОГО: 300.00 [09:32:51]line Внесено: 300.00 [09:32:51]line СДАЧА: 0.00 [09:32:51]line НСП 1% : 2.66 [09:32:51]line НДС 12% : 31.90 [09:32:51]line Наличными: 300.00 [09:32:51]line Безнал.: 0.00 [09:32:51]line Место: АЗС № 62 "Партнер Нефть" [09:32:51]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [09:32:51]line СНО: Общий режим [09:32:51]line Чек 27 03.06.2024 09:32 [09:32:51]line Смена: 324 ФФД: 1.0 [09:32:51]line ЗНМ: 0300000181 [09:32:51]line РНМ: 0000000000098096 [09:32:51]line Версия ККМ: 001 [09:32:51]line ФМ: 0000000000965400 [09:32:51]line ФД: 68281 [09:32:51]line ФПД: 213544701571355 [09:32:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T093253&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68281&fm=213544701571355&tin=02508201610067®Number=0000000000098096&sum=30000 [09:32:51]OFD Sender: Processing packet 68281 [packets to send 26, broken 25] [09:32:51]ProducePacketName [09:32:51]name=ofd_packets/00068281 [09:32:51]OFD Sender: To server: pG, [09:32:51]CommunicateWithHost lk.salyk.kg:30040 [09:32:51]ConnectInit lk.salyk.kg [09:32:51]written 0, free lines is 4095 [09:32:51]Connected sock=10 [09:32:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 77 DF 07 01 E6 F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 C5 8D 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B9 0A 01 00 35 04 06 00 C2 37 C0 14 B1 1B 87 09 4A 92 61 8B 63 18 [09:32:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 1A FA 47 00 C8 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 B9 0A 01 00 F4 03 04 00 C2 34 5D 66 B6 04 01 00 00 68 C0 5E 67 28 5E 90 7D [09:32:51]CommunicateWithHost err = 0 [09:32:51]CheckOFDResponse [09:32:51]1017 (14) - 77093643461234 [09:32:51]1041 (16) - 0000000000965400 [09:32:51]1040 (4) - 68281 [09:32:51]1012 (4) - 03.06.2024 03:13 [09:32:51]1206 (1) - 0 [09:32:51]OFD Sender: Remove packet 68281 [09:32:51]ProducePacketName [09:32:51]name=ofd_packets/00068281 [09:32:51]NVStorageDeleteData [09:32:52]Write to MH i2c: 01 00 00 76 23 99 [09:32:52]Write i2c OK [09:32:52]MH_I2C_Read... [09:32:52]Read from MH i2c: 01 [09:32:52]MH_I2C_Read... [09:32:52]Read from MH i2c: 01 07 00 [09:32:52]MH_I2C_Read... [09:32:52]Read from MH i2c: 01 07 00 76 23 00 00 00 00 00 D9 0C 85 [09:32:52]RasterBufferAndPrint [09:32:52]line [09:32:52]line [09:32:52]line [09:32:52]line [09:32:52]line [09:32:52]written 0, free lines is 3297 [09:32:52]MH_Cut [09:32:52]Write to MH i2c: D1 01 00 7D 23 01 72 [09:32:52]Write i2c OK [09:32:52]MH_I2C_Read... [09:32:52]Read from MH i2c: D1 [09:32:52]MH_I2C_Read... [09:32:52]Read from MH i2c: D1 01 00 [09:32:52]MH_I2C_Read... [09:32:52]Read from MH i2c: D1 01 00 7D 23 00 71 [09:32:52]Write to MH i2c: 01 00 00 7E 23 A1 [09:32:52]Write i2c OK [09:32:52]MH_I2C_Read... [09:32:52]OFD Sender: No OFD packet to send [09:32:52]*** Cut start [09:32:52]*** Partial cut [09:32:52]*** CUTSNS_PIN = 1 [09:32:52]*** CUTSNS_PIN = 0 [09:32:53]*** Brake cut motor [09:32:53]Read from MH i2c: 01 [09:32:53]MH_I2C_Read... [09:32:53]*** Stop cut motor [09:32:53]*** Cut end [09:32:53]Read from MH i2c: 01 07 00 [09:32:53]MH_I2C_Read... [09:32:53]Read from MH i2c: 01 07 00 7E 23 00 00 00 00 00 FF 0F B6 [09:32:53]process_action close_receipt done [09:32:53]requested_data is exist [09:32:53]produce_requested_data [09:32:53]requested_item fm.sn is exist - process it [09:32:53]wFMCommunicate request_size=4 [09:32:53]MH_SAM_APDU [09:32:53]CAPDU: 80 11 00 00 [09:32:53]Write to MH i2c: E2 08 00 7F 23 80 11 00 00 00 00 00 00 1C [09:32:53]Write i2c OK [09:32:53]MH_I2C_Read... [09:32:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:53]Read from MH i2c: E2 [09:32:53]MH_I2C_Read... [09:32:53]Read from MH i2c: E2 17 00 [09:32:53]MH_I2C_Read... [09:32:53]Read from MH i2c: E2 17 00 7F 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 67 [09:32:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [09:32:53]wFMCommunicate OK [09:32:53]requested_item fd.num is exist - process it [09:32:53]SAM_PROTO_GetFieldsCounters [09:32:53]wFMCommunicate request_size=4 [09:32:53]MH_SAM_APDU [09:32:53]CAPDU: 80 13 00 00 [09:32:53]Write to MH i2c: E2 08 00 80 23 80 13 00 00 00 00 00 00 1F [09:32:53]Write i2c OK [09:32:53]MH_I2C_Read... [09:32:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:32:53]Read from MH i2c: E2 [09:32:53]MH_I2C_Read... [09:32:53]Read from MH i2c: E2 62 00 [09:32:53]MH_I2C_Read... [09:32:53]Read from MH i2c: E2 62 00 80 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 B9 0A 01 00 0E 04 04 00 44 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 99 [09:32:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 B9 0A 01 00 0E 04 04 00 44 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 [09:32:53]wFMCommunicate OK [09:32:53]SAM_PROTO_GetFieldsCounters done [09:32:53]requested_item shift.num is exist - process it [09:32:53]requested_item shift.opened is exist - process it [09:32:53]req_shift_opened [09:32:53]FM_GetShiftState [09:32:53]SAM_PROTO_GetShiftState [09:32:53]wFMCommunicate request_size=4 [09:32:53]MH_SAM_APDU [09:32:53]CAPDU: 80 13 01 00 [09:32:53]Write to MH i2c: E2 08 00 81 23 80 13 01 00 00 00 00 00 21 [09:32:53]Write i2c OK [09:32:53]MH_I2C_Read... [09:32:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:53]Read from MH i2c: E2 [09:32:53]MH_I2C_Read... [09:32:53]Read from MH i2c: E2 0E 00 [09:32:53]MH_I2C_Read... [09:32:53]Read from MH i2c: E2 0E 00 81 23 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 FC [09:32:53]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [09:32:53]wFMCommunicate OK [09:32:53]SAM_PROTO_GetShiftState done [09:32:53]FM_GetShiftState done [09:32:53]req_shift_opened done [09:32:53]requested_item shift.open_date is exist - process it [09:32:53]req_shift_open_date [09:32:53]req_shift_open_date done [09:32:53]produce_requested_data done [09:32:53]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68281,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [09:32:53]process_action_free close_receipt [09:32:53]json_value_free [09:32:53]json_value_free done [09:32:53]process_json_proto returns [09:32:53]Send response to host [09:32:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68281,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [09:32:53]free response buf [09:32:53]execute_script done [09:32:53]execute_script returns [09:32:53]free content buf [09:32:53]Sock 7.Close socket [09:32:53]Sock 7.Thread stoped [09:32:57]OFD Sender: No OFD packet to send [09:33:02]OFD Sender: No OFD packet to send [09:33:07]OFD Sender: No OFD packet to send [09:33:12]OFD Sender: No OFD packet to send [09:33:17]OFD Sender: No OFD packet to send [09:33:22]OFD Sender: No OFD packet to send [09:33:27]OFD Sender: No OFD packet to send [09:33:32]OFD Sender: No OFD packet to send [09:33:37]OFD Sender: No OFD packet to send [09:33:42]OFD Sender: No OFD packet to send [09:33:47]OFD Sender: No OFD packet to send [09:33:52]OFD Sender: No OFD packet to send [09:33:57]OFD Sender: No OFD packet to send [09:34:02]OFD Sender: No OFD packet to send [09:34:07]OFD Sender: No OFD packet to send [09:34:12]OFD Sender: No OFD packet to send [09:34:17]OFD Sender: No OFD packet to send [09:34:22]OFD Sender: No OFD packet to send [09:34:27]OFD Sender: No OFD packet to send [09:34:32]OFD Sender: No OFD packet to send [09:34:37]OFD Sender: No OFD packet to send [09:34:42]OFD Sender: No OFD packet to send [09:34:47]OFD Sender: No OFD packet to send [09:34:52]OFD Sender: No OFD packet to send [09:34:57]OFD Sender: No OFD packet to send [09:35:02]OFD Sender: No OFD packet to send [09:35:07]OFD Sender: No OFD packet to send [09:35:12]OFD Sender: No OFD packet to send [09:35:17]OFD Sender: No OFD packet to send [09:35:22]OFD Sender: No OFD packet to send [09:35:27]OFD Sender: No OFD packet to send [09:35:32]OFD Sender: No OFD packet to send [09:35:37]OFD Sender: No OFD packet to send [09:35:42]OFD Sender: No OFD packet to send [09:35:47]OFD Sender: No OFD packet to send [09:35:52]OFD Sender: No OFD packet to send [09:35:57]OFD Sender: No OFD packet to send [09:36:02]OFD Sender: No OFD packet to send [09:36:07]OFD Sender: No OFD packet to send [09:36:12]OFD Sender: No OFD packet to send [09:36:17]OFD Sender: No OFD packet to send [09:36:22]OFD Sender: No OFD packet to send [09:36:27]OFD Sender: No OFD packet to send [09:36:32]OFD Sender: No OFD packet to send [09:36:37]OFD Sender: No OFD packet to send [09:36:42]OFD Sender: No OFD packet to send [09:36:47]OFD Sender: No OFD packet to send [09:36:52]OFD Sender: No OFD packet to send [09:36:57]OFD Sender: No OFD packet to send [09:37:02]OFD Sender: No OFD packet to send [09:37:07]OFD Sender: No OFD packet to send [09:37:12]OFD Sender: No OFD packet to send [09:37:17]OFD Sender: No OFD packet to send [09:37:22]OFD Sender: No OFD packet to send [09:37:27]OFD Sender: No OFD packet to send [09:37:32]OFD Sender: No OFD packet to send [09:37:37]OFD Sender: No OFD packet to send [09:37:42]OFD Sender: No OFD packet to send [09:37:47]OFD Sender: No OFD packet to send [09:37:52]OFD Sender: No OFD packet to send [09:37:57]OFD Sender: No OFD packet to send [09:38:02]OFD Sender: No OFD packet to send [09:38:07]OFD Sender: No OFD packet to send [09:38:12]OFD Sender: No OFD packet to send [09:38:17]OFD Sender: No OFD packet to send [09:38:22]OFD Sender: No OFD packet to send [09:38:27]OFD Sender: No OFD packet to send [09:38:32]OFD Sender: No OFD packet to send [09:38:37]OFD Sender: No OFD packet to send [09:38:42]OFD Sender: No OFD packet to send [09:38:47]OFD Sender: No OFD packet to send [09:38:52]OFD Sender: No OFD packet to send [09:38:57]OFD Sender: No OFD packet to send [09:39:02]OFD Sender: No OFD packet to send [09:39:07]OFD Sender: No OFD packet to send [09:39:12]OFD Sender: No OFD packet to send [09:39:17]OFD Sender: No OFD packet to send [09:39:22]OFD Sender: No OFD packet to send [09:39:27]OFD Sender: No OFD packet to send [09:39:32]OFD Sender: No OFD packet to send [09:39:37]OFD Sender: No OFD packet to send [09:39:42]OFD Sender: No OFD packet to send [09:39:47]OFD Sender: No OFD packet to send [09:39:52]OFD Sender: No OFD packet to send [09:39:57]OFD Sender: No OFD packet to send [09:40:02]OFD Sender: No OFD packet to send [09:40:07]OFD Sender: No OFD packet to send [09:40:12]OFD Sender: No OFD packet to send [09:40:17]OFD Sender: No OFD packet to send [09:40:22]OFD Sender: No OFD packet to send [09:40:27]OFD Sender: No OFD packet to send [09:40:32]OFD Sender: No OFD packet to send [09:40:37]OFD Sender: No OFD packet to send [09:40:41]accept exits with 9 [09:40:41]New connection [09:40:41]New thread 3066686820 created [09:40:41]Thread 3066543460 joined [09:40:41]Waiting for new connection... [09:40:41] Sock 9.Parse request [09:40:41]Sock 9.Check first char [09:40:41]Sock 9.First char is OK [09:40:41]request: POST /json_proto HTTP/1.0 [09:40:41]Method: POST [09:40:41]URL: /json_proto [09:40:41]Method is POST - this is cgi request [09:40:41]url: /json_proto [09:40:41]query_string will be loaded in cgi processing [09:40:41]execute_cgi json_proto POST (null) [09:40:41]execute_cgi path=json_proto method=POST [09:40:41]POST find Content-Length [09:40:41]Host: 172.17.36.132:8080 [09:40:41]Content-Length: 642 [09:40:41]Content-Type: application/json [09:40:41] [09:40:41]POST finish read [09:40:41]Found Content-Length = 642 [09:40:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706355", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 20.000, "sum" : 1338.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1338.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:41]execute_script... [09:40: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)706355", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 20.000, "sum" : 1338.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1338.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:41]POST & json_proto [09:40:41]process_json_proto [09:40:41]json parsed OK: [09:40:41]protocol is kg_v1.0 [09:40:41]action value=close_receipt [09:40:41]process_action close_receipt [09:40:41]cmd_close_receipt [09:40:41]MH_GetDate [09:40:41]Write to MH i2c: F0 00 00 82 23 94 [09:40:41]Write i2c OK [09:40:41]MH_I2C_Read... [09:40:41]Read from MH i2c: F0 [09:40:41]MH_I2C_Read... [09:40:41]Read from MH i2c: F0 09 00 [09:40:41]MH_I2C_Read... [09:40:41]Read from MH i2c: F0 09 00 82 23 00 9D 8F 5D 66 B2 22 B0 64 74 [09:40:41]GetLastDocTimeStamp 1717407173 [09:40:41]current date 1717407645 [09:40:41]FM_GetShiftState [09:40:41]SAM_PROTO_GetShiftState [09:40:41]wFMCommunicate request_size=4 [09:40:41]MH_SAM_APDU [09:40:41]CAPDU: 80 13 01 00 [09:40:41]Write to MH i2c: E2 08 00 83 23 80 13 01 00 00 00 00 00 23 [09:40:41]Write i2c OK [09:40:41]MH_I2C_Read... [09:40:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:41]Read from MH i2c: E2 [09:40:41]MH_I2C_Read... [09:40:41]Read from MH i2c: E2 0E 00 [09:40:41]MH_I2C_Read... [09:40:41]Read from MH i2c: E2 0E 00 83 23 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 FE [09:40:41]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [09:40:41]wFMCommunicate OK [09:40:41]SAM_PROTO_GetShiftState done [09:40:41]FM_GetShiftState done [09:40:41]opened in 1717378033 [09:40:41]opened+sec_in_day 1717464433 [09:40:41]quantity*price = 133800 [09:40:41]sum+1 = 133801 [09:40:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1338.00 НСП 1% : 11.84 НДС 12% : 142.09 Наличными: 1338.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 28 03.06.2024 09:40 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68282 ФПД: 189284173227569 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T094045&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68282&fm=189284173227569&tin=02508201610067®Number=0000000000098096&sum=133800 [09:40:42]StoreToDocumentArchive [09:40:42]shift 324 fd 68282 [09:40:42]save to /storage/0324/doc_00068282 [09:40:42]save last doc name /storage/0324/doc_00068282 to /storage/kkm_last_doc_name [09:40:42]save OK [09:40:42]Clear old archive folders... [09:40:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:40:42]tlvbuf is 00461B70 [09:40:42]SAM_PROTO_ClearQueue [09:40:42]wFMCommunicate request_size=4 [09:40:42]MH_SAM_APDU [09:40:42]CAPDU: 80 09 00 00 [09:40:42]Write to MH i2c: E2 08 00 90 23 80 09 00 00 00 00 00 00 25 [09:40:42]Write i2c OK [09:40:42]MH_I2C_Read... [09:40:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:40:42]Read from MH i2c: E2 [09:40:42]MH_I2C_Read... [09:40:42]Read from MH i2c: E2 03 00 [09:40:42]MH_I2C_Read... [09:40:42]Read from MH i2c: E2 03 00 90 23 00 90 00 27 [09:40:42]RAPDU: 90 00 [09:40:42]wFMCommunicate OK [09:40:42]SAM_PROTO_ClearQueue done [09:40:42]KKMCreateOFDPacket [09:40:42]OFDProtocolAddRootSTLVToBuf [09:40:42]FM_MakeSignedData [09:40:42]FM_MakeSignedData [09:40:42]SAM_PROTO_SignData [09:40:42]wFMCommunicate request_size=4 [09:40:42]MH_SAM_APDU [09:40:42]CAPDU: 80 0D 01 02 [09:40:42]Write to MH i2c: E2 08 00 91 23 80 0D 01 02 00 00 00 00 2D [09:40:42]Write i2c OK [09:40:42]MH_I2C_Read... [09:40:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:40:42]Read from MH i2c: E2 [09:40:42]MH_I2C_Read... [09:40:42]Read from MH i2c: E2 03 00 [09:40:42]MH_I2C_Read... [09:40:42]Read from MH i2c: E2 03 00 91 23 00 90 00 28 [09:40:42]RAPDU: 90 00 [09:40:42]wFMCommunicate OK [09:40:42]wFMCommunicate request_size=255 [09:40:42]MH_SAM_APDU [09:40:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 0A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 0A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 37 00 00 00 00 07 04 06 00 A8 0A 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 9D 8F 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 BA 0A 01 00 35 04 06 00 AC [09:40:42]Write to MH i2c: E2 02 01 92 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 0A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 0A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 37 00 00 00 00 07 04 06 00 A8 0A 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 9D 8F 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 BA 0A 01 00 35 04 06 00 AC 00 00 18 [09:40:42]Write i2c OK [09:40:42]MH_I2C_Read... [09:40:42]OFD Sender: No OFD packet to send [09:40:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:42]Read from MH i2c: E2 [09:40:42]MH_I2C_Read... [09:40:42]Read from MH i2c: E2 03 00 [09:40:42]MH_I2C_Read... [09:40:42]Read from MH i2c: E2 03 00 92 23 00 90 00 29 [09:40:42]RAPDU: 90 00 [09:40:42]wFMCommunicate OK [09:40:42]wFMCommunicate request_size=10 [09:40:42]MH_SAM_APDU [09:40:42]CAPDU: 80 0D 02 02 05 27 27 E8 26 31 [09:40:42]Write to MH i2c: E2 0D 00 93 23 80 0D 02 02 05 00 27 27 E8 26 31 00 00 C7 [09:40:42]Write i2c OK [09:40:42]MH_I2C_Read... [09:40:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:42]Read from MH i2c: E2 [09:40:42]MH_I2C_Read... [09:40:42]Read from MH i2c: E2 03 00 [09:40:42]MH_I2C_Read... [09:40:42]Read from MH i2c: E2 03 00 93 23 00 90 00 2A [09:40:42]RAPDU: 90 00 [09:40:42]wFMCommunicate OK [09:40:42]wFMCommunicate request_size=4 [09:40:42]MH_SAM_APDU [09:40:42]CAPDU: 80 0D 03 02 [09:40:42]Write to MH i2c: E2 08 00 94 23 80 0D 03 02 00 00 00 00 32 [09:40:42]Write i2c OK [09:40:42]MH_I2C_Read... [09:40:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:40:43]Read from MH i2c: E2 [09:40:43]MH_I2C_Read... [09:40:43]Read from MH i2c: E2 0B 00 [09:40:43]MH_I2C_Read... [09:40:43]Read from MH i2c: E2 0B 00 94 23 00 4A FB 9A CC BA 24 8A EF 90 00 35 [09:40:43]RAPDU: 4A FB 9A CC BA 24 8A EF 90 00 [09:40:43]wFMCommunicate OK [09:40:43]SAM_PROTO_SignData done [09:40:43]FM_MakeSignedData done [09:40:43]CreateOFDProtocolMessage [09:40:43]wFMCommunicate request_size=4 [09:40:43]MH_SAM_APDU [09:40:43]CAPDU: 80 11 00 00 [09:40:43]Write to MH i2c: E2 08 00 95 23 80 11 00 00 00 00 00 00 32 [09:40:43]Write i2c OK [09:40:43]MH_I2C_Read... [09:40:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:43]Read from MH i2c: E2 [09:40:43]MH_I2C_Read... [09:40:43]Read from MH i2c: E2 17 00 [09:40:43]MH_I2C_Read... [09:40:43]Read from MH i2c: E2 17 00 95 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 7D [09:40:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [09:40:43]wFMCommunicate OK [09:40:43]CreateOFDProtocolMessage done [09:40:43]OFDSenderStorePacket 68282 [09:40:43]StoreOFDPacket docnum=68282 [09:40:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 8D 51 07 01 E8 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 0A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 0A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 37 00 00 00 00 07 04 06 00 A8 0A 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 9D 8F 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 BA 0A 01 00 35 04 06 00 AC 27 27 E8 26 31 4A FB 9A CC BA 24 8A EF [09:40:43]CheckFolder [09:40:43]dirname=/storage/ofd_packets [09:40:43]CheckFolder done [09:40:43]ProducePacketName [09:40:43]name=ofd_packets/00068282 [09:40:43]NVStorageSaveData ofd_packets/00068282 [09:40:43]File name is /storage/ofd_packets/00068282 [09:40:43]Write 301 bytes [09:40:43]NVStorageSaveData done [09:40:43]OFDSenderStorePacket done [09:40:43]KKMCreateOFDPacket done [09:40:43]NVStorageSaveData kkm_last_timestamp [09:40:43]File name is /storage/kkm_last_timestamp [09:40:43]Write 4 bytes [09:40:43]NVStorageSaveData done [09:40:43]OFD Sender: Processing packet 68282 [packets to send 26, broken 25] [09:40:43]ProducePacketName [09:40:43]name=ofd_packets/00068282 [09:40:43]OFD Sender: To server: pG, [09:40:43]CommunicateWithHost lk.salyk.kg:30040 [09:40:43]ConnectInit lk.salyk.kg [09:40:43]ExternCall_PrintAddStr [09:40:43]wPrintStart [09:40:43]Write to MH i2c: 01 00 00 96 23 B9 [09:40:43]Write i2c OK [09:40:43]MH_I2C_Read... [09:40:43]Read from MH i2c: 01 [09:40:43]MH_I2C_Read... [09:40:43]Read from MH i2c: 01 07 00 [09:40:43]MH_I2C_Read... [09:40:43]Read from MH i2c: 01 07 00 96 23 00 00 00 00 00 FF 0F CE [09:40:43]RasterBufferAndPrint [09:40:43]line Счет N : (1)706355 [09:40:43]line ИНН: 02508201610067 [09:40:43]line Контрольно-Кассовый Чек [09:40:43]line ПРОДАЖА [09:40:43]line ТРК (МРК, ГНК) : 13 [09:40:43]line Товар: 2710124130 [09:40:43]line Аи-92-К-4 [09:40:43]line 20.000 * 66.90 [09:40:43]line = 1338.00 [09:40:43]line НДС 12% НСП 1% [09:40:43]line > о реализуемом товаре [09:40:43]line ИТОГО: 1338.00 [09:40:43]line НСП 1% : 11.84 [09:40:43]line НДС 12% : 142.09 [09:40:43]line Наличными: 1338.00 [09:40:43]line Безнал.: 0.00 [09:40:43]line Место: АЗС № 62 "Партнер Нефть" [09:40:43]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [09:40:43]line СНО: Общий режим [09:40:43]line Чек 28 03.06.2024 09:40 [09:40:43]line Смена: 324 ФФД: 1.0 [09:40:43]line ЗНМ: 0300000181 [09:40:43]line РНМ: 0000000000098096 [09:40:43]line Версия ККМ: 001 [09:40:43]line ФМ: 0000000000965400 [09:40:43]line ФД: 68282 [09:40:43]line ФПД: 189284173227569 [09:40:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T094045&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68282&fm=189284173227569&tin=02508201610067®Number=0000000000098096&sum=133800 [09:40:43]Connected sock=11 [09:40:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 8D 51 07 01 E8 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 0A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 0A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 37 00 00 00 00 07 04 06 00 A8 0A 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 9D 8F 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 BA 0A 01 00 35 04 06 00 AC 27 27 E8 26 31 4A FB 9A CC BA 24 8A EF [09:40:43]written 0, free lines is 4095 [09:40:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 FC 45 47 00 94 C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 BA 0A 01 00 F4 03 04 00 9A 36 5D 66 B6 04 01 00 00 21 9F 65 E4 60 35 66 0F [09:40:43]CommunicateWithHost err = 0 [09:40:43]CheckOFDResponse [09:40:43]1017 (14) - 77093643461234 [09:40:43]1041 (16) - 0000000000965400 [09:40:43]1040 (4) - 68282 [09:40:43]1012 (4) - 03.06.2024 03:20 [09:40:43]1206 (1) - 0 [09:40:43]OFD Sender: Remove packet 68282 [09:40:43]ProducePacketName [09:40:43]name=ofd_packets/00068282 [09:40:43]NVStorageDeleteData [09:40:43]Write to MH i2c: 01 00 00 BE 23 E1 [09:40:43]Write i2c OK [09:40:43]MH_I2C_Read... [09:40:43]Read from MH i2c: 01 [09:40:43]MH_I2C_Read... [09:40:43]Read from MH i2c: 01 07 00 [09:40:43]MH_I2C_Read... [09:40:43]Read from MH i2c: 01 07 00 BE 23 00 00 00 00 00 13 0D 08 [09:40:43]RasterBufferAndPrint [09:40:43]line [09:40:43]line [09:40:43]line [09:40:43]line [09:40:43]line [09:40:43]written 0, free lines is 3354 [09:40:43]MH_Cut [09:40:43]Write to MH i2c: D1 01 00 C5 23 01 BA [09:40:43]Write i2c OK [09:40:43]MH_I2C_Read... [09:40:43]Read from MH i2c: D1 [09:40:43]MH_I2C_Read... [09:40:43]Read from MH i2c: D1 01 00 [09:40:43]MH_I2C_Read... [09:40:43]Read from MH i2c: D1 01 00 C5 23 00 B9 [09:40:43]Write to MH i2c: 01 00 00 C6 23 E9 [09:40:43]Write i2c OK [09:40:43]MH_I2C_Read... [09:40:44]OFD Sender: No OFD packet to send [09:40:44]*** Cut start [09:40:44]*** Partial cut [09:40:44]*** CUTSNS_PIN = 1 [09:40:44]*** CUTSNS_PIN = 0 [09:40:44]*** Brake cut motor [09:40:45]Read from MH i2c: 01 [09:40:45]MH_I2C_Read... [09:40:45]*** Stop cut motor [09:40:45]*** Cut end [09:40:45]Read from MH i2c: 01 07 00 [09:40:45]MH_I2C_Read... [09:40:45]Read from MH i2c: 01 07 00 C6 23 00 00 00 00 00 FF 0F FE [09:40:45]process_action close_receipt done [09:40:45]requested_data is exist [09:40:45]produce_requested_data [09:40:45]requested_item fm.sn is exist - process it [09:40:45]wFMCommunicate request_size=4 [09:40:45]MH_SAM_APDU [09:40:45]CAPDU: 80 11 00 00 [09:40:45]Write to MH i2c: E2 08 00 C7 23 80 11 00 00 00 00 00 00 64 [09:40:45]Write i2c OK [09:40:45]MH_I2C_Read... [09:40:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:45]Read from MH i2c: E2 [09:40:45]MH_I2C_Read... [09:40:45]Read from MH i2c: E2 17 00 [09:40:45]MH_I2C_Read... [09:40:45]Read from MH i2c: E2 17 00 C7 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 AF [09:40:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [09:40:45]wFMCommunicate OK [09:40:45]requested_item fd.num is exist - process it [09:40:45]SAM_PROTO_GetFieldsCounters [09:40:45]wFMCommunicate request_size=4 [09:40:45]MH_SAM_APDU [09:40:45]CAPDU: 80 13 00 00 [09:40:45]Write to MH i2c: E2 08 00 C8 23 80 13 00 00 00 00 00 00 67 [09:40:45]Write i2c OK [09:40:45]MH_I2C_Read... [09:40:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:40:45]Read from MH i2c: E2 [09:40:45]MH_I2C_Read... [09:40:45]Read from MH i2c: E2 62 00 [09:40:45]MH_I2C_Read... [09:40:45]Read from MH i2c: E2 62 00 C8 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 BA 0A 01 00 0E 04 04 00 44 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 E5 [09:40:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 BA 0A 01 00 0E 04 04 00 44 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 [09:40:45]wFMCommunicate OK [09:40:45]SAM_PROTO_GetFieldsCounters done [09:40:45]requested_item shift.num is exist - process it [09:40:45]requested_item shift.opened is exist - process it [09:40:45]req_shift_opened [09:40:45]FM_GetShiftState [09:40:45]SAM_PROTO_GetShiftState [09:40:45]wFMCommunicate request_size=4 [09:40:45]MH_SAM_APDU [09:40:45]CAPDU: 80 13 01 00 [09:40:45]Write to MH i2c: E2 08 00 C9 23 80 13 01 00 00 00 00 00 69 [09:40:45]Write i2c OK [09:40:45]MH_I2C_Read... [09:40:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:45]Read from MH i2c: E2 [09:40:45]MH_I2C_Read... [09:40:45]Read from MH i2c: E2 0E 00 [09:40:45]MH_I2C_Read... [09:40:45]Read from MH i2c: E2 0E 00 C9 23 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 44 [09:40:45]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [09:40:45]wFMCommunicate OK [09:40:45]SAM_PROTO_GetShiftState done [09:40:45]FM_GetShiftState done [09:40:45]req_shift_opened done [09:40:45]requested_item shift.open_date is exist - process it [09:40:45]req_shift_open_date [09:40:45]req_shift_open_date done [09:40:45]produce_requested_data done [09:40:45]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68282,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [09:40:45]process_action_free close_receipt [09:40:45]json_value_free [09:40:45]json_value_free done [09:40:45]process_json_proto returns [09:40:45]Send response to host [09:40:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68282,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [09:40:45]free response buf [09:40:45]execute_script done [09:40:45]execute_script returns [09:40:45]free content buf [09:40:45]Sock 9.Close socket [09:40:45]Sock 9.Thread stoped [09:40:47]accept exits with 7 [09:40:47]New connection [09:40:47]New thread 3066543460 created [09:40:47]Thread 3066686820 joined [09:40:47]Waiting for new connection... [09:40:47] Sock 7.Parse request [09:40:47]Sock 7.Check first char [09:40:47]Sock 7.First char is OK [09:40:47]request: POST /json_proto HTTP/1.0 [09:40:47]Method: POST [09:40:47]URL: /json_proto [09:40:47]Method is POST - this is cgi request [09:40:47]url: /json_proto [09:40:47]query_string will be loaded in cgi processing [09:40:47]execute_cgi json_proto POST (null) [09:40:47]execute_cgi path=json_proto method=POST [09:40:47]POST find Content-Length [09:40:47]Host: 172.17.36.132:8080 [09:40:47]Content-Length: 698 [09:40:47]Content-Type: application/json [09:40:47] [09:40:47]POST finish read [09:40:47]Found Content-Length = 698 [09:40:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 68282, "base_FM": "0000000000965400", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706355", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 20.000, "sum" : 1338.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1338.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:47]execute_script... [09:40:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 68282, "base_FM": "0000000000965400", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706355", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 20.000, "sum" : 1338.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1338.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:40:47]POST & json_proto [09:40:47]process_json_proto [09:40:47]json parsed OK: [09:40:47]protocol is kg_v1.0 [09:40:47]action value=close_receipt [09:40:47]process_action close_receipt [09:40:47]cmd_close_receipt [09:40:47]MH_GetDate [09:40:47]Write to MH i2c: F0 00 00 CA 23 DC [09:40:47]Write i2c OK [09:40:47]MH_I2C_Read... [09:40:47]Read from MH i2c: F0 [09:40:47]MH_I2C_Read... [09:40:47]Read from MH i2c: F0 09 00 [09:40:47]MH_I2C_Read... [09:40:47]Read from MH i2c: F0 09 00 CA 23 00 A3 8F 5D 66 B2 22 B0 64 C2 [09:40:47]GetLastDocTimeStamp 1717407645 [09:40:47]current date 1717407651 [09:40:47]FM_GetShiftState [09:40:47]SAM_PROTO_GetShiftState [09:40:47]wFMCommunicate request_size=4 [09:40:47]MH_SAM_APDU [09:40:47]CAPDU: 80 13 01 00 [09:40:47]Write to MH i2c: E2 08 00 CB 23 80 13 01 00 00 00 00 00 6B [09:40:47]Write i2c OK [09:40:47]MH_I2C_Read... [09:40:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:47]Read from MH i2c: E2 [09:40:47]MH_I2C_Read... [09:40:47]Read from MH i2c: E2 0E 00 [09:40:47]MH_I2C_Read... [09:40:47]Read from MH i2c: E2 0E 00 CB 23 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 46 [09:40:47]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [09:40:47]wFMCommunicate OK [09:40:47]SAM_PROTO_GetShiftState done [09:40:47]FM_GetShiftState done [09:40:47]opened in 1717378033 [09:40:47]opened+sec_in_day 1717464433 [09:40:47]quantity*price = 133800 [09:40:47]sum+1 = 133801 [09:40:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1338.00 НСП 1% : 11.84 НДС 12% : 142.09 Наличными: 1338.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 29 03.06.2024 09:40 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФД осн.: 68282 ФМ осн.: 0000000000965400 ФМ: 0000000000965400 ФД: 68283 ФПД: 42948676424371 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T094051&type=2&operation_type=1&fn_number=0000000000965400&fd_number=68283&fm=42948676424371&tin=02508201610067®Number=0000000000098096&sum=133800 [09:40:48]StoreToDocumentArchive [09:40:48]shift 324 fd 68283 [09:40:48]save to /storage/0324/doc_00068283 [09:40:48]save last doc name /storage/0324/doc_00068283 to /storage/kkm_last_doc_name [09:40:48]save OK [09:40:48]Clear old archive folders... [09:40:48]ProcessDocumentItem done err = 0, tmpTLVsize=279 [09:40:48]tlvbuf is 001FF590 [09:40:48]SAM_PROTO_ClearQueue [09:40:48]wFMCommunicate request_size=4 [09:40:48]MH_SAM_APDU [09:40:48]CAPDU: 80 09 00 00 [09:40:48]Write to MH i2c: E2 08 00 DA 23 80 09 00 00 00 00 00 00 6F [09:40:48]Write i2c OK [09:40:48]MH_I2C_Read... [09:40:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:40:48]Read from MH i2c: E2 [09:40:48]MH_I2C_Read... [09:40:48]Read from MH i2c: E2 03 00 [09:40:48]MH_I2C_Read... [09:40:48]Read from MH i2c: E2 03 00 DA 23 00 90 00 71 [09:40:48]RAPDU: 90 00 [09:40:48]wFMCommunicate OK [09:40:48]SAM_PROTO_ClearQueue done [09:40:48]KKMCreateOFDPacket [09:40:48]OFDProtocolAddRootSTLVToBuf [09:40:48]FM_MakeSignedData [09:40:48]FM_MakeSignedData [09:40:48]SAM_PROTO_SignData [09:40:48]wFMCommunicate request_size=4 [09:40:48]MH_SAM_APDU [09:40:48]CAPDU: 80 0D 01 02 [09:40:48]Write to MH i2c: E2 08 00 DB 23 80 0D 01 02 00 00 00 00 77 [09:40:48]Write i2c OK [09:40:48]MH_I2C_Read... [09:40:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:40:48]Read from MH i2c: E2 [09:40:48]MH_I2C_Read... [09:40:48]Read from MH i2c: E2 03 00 [09:40:48]MH_I2C_Read... [09:40:48]Read from MH i2c: E2 03 00 DB 23 00 90 00 72 [09:40:48]RAPDU: 90 00 [09:40:48]wFMCommunicate OK [09:40:48]wFMCommunicate request_size=255 [09:40:48]MH_SAM_APDU [09:40:48]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 0A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 0A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 37 00 00 00 00 07 04 06 00 A8 0A 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 A3 8F 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 27 04 04 00 BA 0A 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 11 04 10 00 30 [09:40:48]Write to MH i2c: E2 02 01 DC 23 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 0A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 0A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 37 00 00 00 00 07 04 06 00 A8 0A 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 A3 8F 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 27 04 04 00 BA 0A 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 11 04 10 00 30 00 00 1F [09:40:48]Write i2c OK [09:40:48]MH_I2C_Read... [09:40:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:48]Read from MH i2c: E2 [09:40:48]MH_I2C_Read... [09:40:48]Read from MH i2c: E2 03 00 [09:40:48]MH_I2C_Read... [09:40:48]Read from MH i2c: E2 03 00 DC 23 00 90 00 73 [09:40:48]RAPDU: 90 00 [09:40:48]wFMCommunicate OK [09:40:48]wFMCommunicate request_size=38 [09:40:48]MH_SAM_APDU [09:40:48]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 BB 0A 01 00 35 04 06 00 27 0F C4 9A 12 B3 [09:40:48]Write to MH i2c: E2 29 00 DD 23 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 BB 0A 01 00 35 04 06 00 27 0F C4 9A 12 B3 00 00 1A [09:40:48]Write i2c OK [09:40:48]MH_I2C_Read... [09:40:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:49]Read from MH i2c: E2 [09:40:49]MH_I2C_Read... [09:40:49]Read from MH i2c: E2 03 00 [09:40:49]MH_I2C_Read... [09:40:49]Read from MH i2c: E2 03 00 DD 23 00 90 00 74 [09:40:49]RAPDU: 90 00 [09:40:49]wFMCommunicate OK [09:40:49]wFMCommunicate request_size=4 [09:40:49]MH_SAM_APDU [09:40:49]CAPDU: 80 0D 03 02 [09:40:49]Write to MH i2c: E2 08 00 DE 23 80 0D 03 02 00 00 00 00 7C [09:40:49]Write i2c OK [09:40:49]MH_I2C_Read... [09:40:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:40:49]Read from MH i2c: E2 [09:40:49]MH_I2C_Read... [09:40:49]Read from MH i2c: E2 0B 00 [09:40:49]MH_I2C_Read... [09:40:49]Read from MH i2c: E2 0B 00 DE 23 00 AB C6 3A 2B A8 F0 AE E8 90 00 81 [09:40:49]RAPDU: AB C6 3A 2B A8 F0 AE E8 90 00 [09:40:49]wFMCommunicate OK [09:40:49]SAM_PROTO_SignData done [09:40:49]FM_MakeSignedData done [09:40:49]CreateOFDProtocolMessage [09:40:49]wFMCommunicate request_size=4 [09:40:49]MH_SAM_APDU [09:40:49]CAPDU: 80 11 00 00 [09:40:49]Write to MH i2c: E2 08 00 DF 23 80 11 00 00 00 00 00 00 7C [09:40:49]OFD Sender: No OFD packet to send [09:40:49]Write i2c OK [09:40:49]MH_I2C_Read... [09:40:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:49]Read from MH i2c: E2 [09:40:49]MH_I2C_Read... [09:40:49]Read from MH i2c: E2 17 00 [09:40:49]MH_I2C_Read... [09:40:49]Read from MH i2c: E2 17 00 DF 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 C7 [09:40:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [09:40:49]wFMCommunicate OK [09:40:49]CreateOFDProtocolMessage done [09:40:49]OFDSenderStorePacket 68283 [09:40:49]StoreOFDPacket docnum=68283 [09:40:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 2B 01 00 00 DD A7 23 01 03 E6 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 0A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 0A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 37 00 00 00 00 07 04 06 00 A8 0A 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 A3 8F 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 27 04 04 00 BA 0A 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 BB 0A 01 00 35 04 06 00 27 0F C4 9A 12 B3 AB C6 3A 2B A8 F0 AE E8 [09:40:49]CheckFolder [09:40:49]dirname=/storage/ofd_packets [09:40:49]CheckFolder done [09:40:49]ProducePacketName [09:40:49]name=ofd_packets/00068283 [09:40:49]NVStorageSaveData ofd_packets/00068283 [09:40:49]File name is /storage/ofd_packets/00068283 [09:40:49]Write 329 bytes [09:40:49]NVStorageSaveData done [09:40:49]OFDSenderStorePacket done [09:40:49]KKMCreateOFDPacket done [09:40:49]NVStorageSaveData kkm_last_timestamp [09:40:49]File name is /storage/kkm_last_timestamp [09:40:49]Write 4 bytes [09:40:49]NVStorageSaveData done [09:40:49]ExternCall_PrintAddStr [09:40:49]wPrintStart [09:40:49]Write to MH i2c: 01 00 00 E0 23 03 [09:40:49]Write i2c OK [09:40:49]MH_I2C_Read... [09:40:49]Read from MH i2c: 01 [09:40:49]MH_I2C_Read... [09:40:49]Read from MH i2c: 01 07 00 [09:40:49]MH_I2C_Read... [09:40:49]Read from MH i2c: 01 07 00 E0 23 00 00 00 00 00 FF 0F 18 [09:40:49]RasterBufferAndPrint [09:40:49]line Счет N : (1)706355 [09:40:49]line ИНН: 02508201610067 [09:40:49]line Контрольно-Кассовый Чек [09:40:49]line ВОЗВРАТ ПРОДАЖИ [09:40:49]line ТРК (МРК, ГНК) : 13 [09:40:49]line Товар: 2710124130 [09:40:49]line Аи-92-К-4 [09:40:49]line 20.000 * 66.90 [09:40:49]line = 1338.00 [09:40:49]line НДС 12% НСП 1% [09:40:49]line > о реализуемом товаре [09:40:49]line ИТОГО: 1338.00 [09:40:49]line НСП 1% : 11.84 [09:40:49]line НДС 12% : 142.09 [09:40:49]line Наличными: 1338.00 [09:40:49]line Безнал.: 0.00 [09:40:49]line Место: АЗС № 62 "Партнер Нефть" [09:40:49]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [09:40:49]line СНО: Общий режим [09:40:49]line Чек 29 03.06.2024 09:40 [09:40:49]line Смена: 324 ФФД: 1.0 [09:40:49]line ЗНМ: 0300000181 [09:40:49]line РНМ: 0000000000098096 [09:40:49]line Версия ККМ: 001 [09:40:49]line ФД осн.: 68282 [09:40:49]line ФМ осн.: 0000000000965400 [09:40:49]line ФМ: 0000000000965400 [09:40:49]line ФД: 68283 [09:40:49]line ФПД: 42948676424371 [09:40:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T094051&type=2&operation_type=1&fn_number=0000000000965400&fd_number=68283&fm=42948676424371&tin=02508201610067®Number=0000000000098096&sum=133800 [09:40:49]written 0, free lines is 4095 [09:40:49]OFD Sender: Processing packet 68283 [packets to send 26, broken 25] [09:40:49]ProducePacketName [09:40:49]name=ofd_packets/00068283 [09:40:49]OFD Sender: To server: pG, [09:40:49]CommunicateWithHost lk.salyk.kg:30040 [09:40:49]ConnectInit lk.salyk.kg [09:40:49]Connected sock=10 [09:40:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 2B 01 00 00 DD A7 23 01 03 E6 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 0A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 0A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 37 00 00 00 00 07 04 06 00 A8 0A 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 A3 8F 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 27 04 04 00 BA 0A 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 BB 0A 01 00 35 04 06 00 27 0F C4 9A 12 B3 AB C6 3A 2B A8 F0 AE E8 [09:40:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 28 6B 47 00 40 B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 BB 0A 01 00 F4 03 04 00 A0 36 5D 66 B6 04 01 00 00 93 09 6E 9C 05 C4 5D 70 [09:40:49]CommunicateWithHost err = 0 [09:40:49]CheckOFDResponse [09:40:49]1017 (14) - 77093643461234 [09:40:49]1041 (16) - 0000000000965400 [09:40:49]1040 (4) - 68283 [09:40:49]1012 (4) - 03.06.2024 03:21 [09:40:49]1206 (1) - 0 [09:40:49]OFD Sender: Remove packet 68283 [09:40:49]ProducePacketName [09:40:49]name=ofd_packets/00068283 [09:40:49]NVStorageDeleteData [09:40:49]Write to MH i2c: 01 00 00 0A 24 2E [09:40:49]Write i2c OK [09:40:49]MH_I2C_Read... [09:40:49]Read from MH i2c: 01 [09:40:49]MH_I2C_Read... [09:40:49]Read from MH i2c: 01 07 00 [09:40:49]MH_I2C_Read... [09:40:49]Read from MH i2c: 01 07 00 0A 24 00 00 00 00 00 11 0D 53 [09:40:49]RasterBufferAndPrint [09:40:49]line [09:40:49]line [09:40:49]line [09:40:49]line [09:40:49]line [09:40:49]written 0, free lines is 3360 [09:40:49]MH_Cut [09:40:49]Write to MH i2c: D1 01 00 11 24 01 07 [09:40:49]Write i2c OK [09:40:49]MH_I2C_Read... [09:40:49]Read from MH i2c: D1 [09:40:49]MH_I2C_Read... [09:40:49]Read from MH i2c: D1 01 00 [09:40:49]MH_I2C_Read... [09:40:49]Read from MH i2c: D1 01 00 11 24 00 06 [09:40:49]Write to MH i2c: 01 00 00 12 24 36 [09:40:49]Write i2c OK [09:40:49]MH_I2C_Read... [09:40:50]OFD Sender: No OFD packet to send [09:40:50]*** Cut start [09:40:50]*** Partial cut [09:40:50]*** CUTSNS_PIN = 1 [09:40:50]*** CUTSNS_PIN = 0 [09:40:50]*** Brake cut motor [09:40:51]Read from MH i2c: 01 [09:40:51]MH_I2C_Read... [09:40:51]*** Stop cut motor [09:40:51]*** Cut end [09:40:51]Read from MH i2c: 01 07 00 [09:40:51]MH_I2C_Read... [09:40:51]Read from MH i2c: 01 07 00 12 24 00 00 00 00 00 FF 0F 4B [09:40:51]process_action close_receipt done [09:40:51]requested_data is exist [09:40:51]produce_requested_data [09:40:51]requested_item fm.sn is exist - process it [09:40:51]wFMCommunicate request_size=4 [09:40:51]MH_SAM_APDU [09:40:51]CAPDU: 80 11 00 00 [09:40:51]Write to MH i2c: E2 08 00 13 24 80 11 00 00 00 00 00 00 B1 [09:40:51]Write i2c OK [09:40:51]MH_I2C_Read... [09:40:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:51]Read from MH i2c: E2 [09:40:51]MH_I2C_Read... [09:40:51]Read from MH i2c: E2 17 00 [09:40:51]MH_I2C_Read... [09:40:51]Read from MH i2c: E2 17 00 13 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 FC [09:40:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [09:40:51]wFMCommunicate OK [09:40:51]requested_item fd.num is exist - process it [09:40:51]SAM_PROTO_GetFieldsCounters [09:40:51]wFMCommunicate request_size=4 [09:40:51]MH_SAM_APDU [09:40:51]CAPDU: 80 13 00 00 [09:40:51]Write to MH i2c: E2 08 00 14 24 80 13 00 00 00 00 00 00 B4 [09:40:51]Write i2c OK [09:40:51]MH_I2C_Read... [09:40:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:40:51]Read from MH i2c: E2 [09:40:51]MH_I2C_Read... [09:40:51]Read from MH i2c: E2 62 00 [09:40:51]MH_I2C_Read... [09:40:51]Read from MH i2c: E2 62 00 14 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 BB 0A 01 00 0E 04 04 00 44 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 36 [09:40:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 BB 0A 01 00 0E 04 04 00 44 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 [09:40:51]wFMCommunicate OK [09:40:51]SAM_PROTO_GetFieldsCounters done [09:40:51]requested_item shift.num is exist - process it [09:40:51]requested_item shift.opened is exist - process it [09:40:51]req_shift_opened [09:40:51]FM_GetShiftState [09:40:51]SAM_PROTO_GetShiftState [09:40:51]wFMCommunicate request_size=4 [09:40:51]MH_SAM_APDU [09:40:51]CAPDU: 80 13 01 00 [09:40:51]Write to MH i2c: E2 08 00 15 24 80 13 01 00 00 00 00 00 B6 [09:40:51]Write i2c OK [09:40:51]MH_I2C_Read... [09:40:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:51]Read from MH i2c: E2 [09:40:51]MH_I2C_Read... [09:40:51]Read from MH i2c: E2 0E 00 [09:40:51]MH_I2C_Read... [09:40:51]Read from MH i2c: E2 0E 00 15 24 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 91 [09:40:51]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [09:40:51]wFMCommunicate OK [09:40:51]SAM_PROTO_GetShiftState done [09:40:51]FM_GetShiftState done [09:40:51]req_shift_opened done [09:40:51]requested_item shift.open_date is exist - process it [09:40:51]req_shift_open_date [09:40:51]req_shift_open_date done [09:40:51]produce_requested_data done [09:40:51]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68283,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [09:40:51]process_action_free close_receipt [09:40:51]json_value_free [09:40:51]json_value_free done [09:40:51]process_json_proto returns [09:40:51]Send response to host [09:40:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68283,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [09:40:51]free response buf [09:40:51]execute_script done [09:40:51]execute_script returns [09:40:51]free content buf [09:40:51]Sock 7.Close socket [09:40:51]Sock 7.Thread stoped [09:40:55]OFD Sender: No OFD packet to send [09:41:00]OFD Sender: No OFD packet to send [09:41:05]OFD Sender: No OFD packet to send [09:41:10]OFD Sender: No OFD packet to send [09:41:15]OFD Sender: No OFD packet to send [09:41:20]OFD Sender: No OFD packet to send [09:41:25]OFD Sender: No OFD packet to send [09:41:30]OFD Sender: No OFD packet to send [09:41:35]OFD Sender: No OFD packet to send [09:41:40]OFD Sender: No OFD packet to send [09:41:45]OFD Sender: No OFD packet to send [09:41:50]OFD Sender: No OFD packet to send [09:41:55]OFD Sender: No OFD packet to send [09:42:00]OFD Sender: No OFD packet to send [09:42:05]OFD Sender: No OFD packet to send [09:42:10]OFD Sender: No OFD packet to send [09:42:15]OFD Sender: No OFD packet to send [09:42:16]accept exits with 9 [09:42:16]New connection [09:42:16]New thread 3066686820 created [09:42:16]Thread 3066543460 joined [09:42:16]Waiting for new connection... [09:42:16] Sock 9.Parse request [09:42:16]Sock 9.Check first char [09:42:16]Sock 9.First char is OK [09:42:16]request: POST /json_proto HTTP/1.0 [09:42:16]Method: POST [09:42:16]URL: /json_proto [09:42:16]Method is POST - this is cgi request [09:42:16]url: /json_proto [09:42:16]query_string will be loaded in cgi processing [09:42:16]execute_cgi json_proto POST (null) [09:42:16]execute_cgi path=json_proto method=POST [09:42:16]POST find Content-Length [09:42:16]Host: 172.17.36.132:8080 [09:42:16]Content-Length: 640 [09:42:16]Content-Type: application/json [09:42:16] [09:42:16]POST finish read [09:42:16]Found Content-Length = 640 [09:42:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706357", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.000, "sum" : 669.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 669.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:16]execute_script... [09:42: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)706357", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.000, "sum" : 669.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 669.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:16]POST & json_proto [09:42:16]process_json_proto [09:42:16]json parsed OK: [09:42:16]protocol is kg_v1.0 [09:42:16]action value=close_receipt [09:42:16]process_action close_receipt [09:42:16]cmd_close_receipt [09:42:16]MH_GetDate [09:42:16]Write to MH i2c: F0 00 00 16 24 29 [09:42:16]Write i2c OK [09:42:16]MH_I2C_Read... [09:42:16]Read from MH i2c: F0 [09:42:16]MH_I2C_Read... [09:42:16]Read from MH i2c: F0 09 00 [09:42:16]MH_I2C_Read... [09:42:16]Read from MH i2c: F0 09 00 16 24 00 FD 8F 5D 66 B2 22 B0 64 69 [09:42:16]GetLastDocTimeStamp 1717407651 [09:42:16]current date 1717407741 [09:42:16]FM_GetShiftState [09:42:16]SAM_PROTO_GetShiftState [09:42:16]wFMCommunicate request_size=4 [09:42:16]MH_SAM_APDU [09:42:16]CAPDU: 80 13 01 00 [09:42:16]Write to MH i2c: E2 08 00 17 24 80 13 01 00 00 00 00 00 B8 [09:42:16]Write i2c OK [09:42:16]MH_I2C_Read... [09:42:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:16]Read from MH i2c: E2 [09:42:16]MH_I2C_Read... [09:42:16]Read from MH i2c: E2 0E 00 [09:42:16]MH_I2C_Read... [09:42:16]Read from MH i2c: E2 0E 00 17 24 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 93 [09:42:16]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [09:42:16]wFMCommunicate OK [09:42:16]SAM_PROTO_GetShiftState done [09:42:16]FM_GetShiftState done [09:42:16]opened in 1717378033 [09:42:16]opened+sec_in_day 1717464433 [09:42:16]quantity*price = 66900 [09:42:16]sum+1 = 66901 [09:42:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 669.00 НСП 1% : 5.92 НДС 12% : 71.04 Наличными: 669.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 30 03.06.2024 09:42 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68284 ФПД: 165290821020587 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T094221&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68284&fm=165290821020587&tin=02508201610067®Number=0000000000098096&sum=66900 [09:42:17]StoreToDocumentArchive [09:42:17]shift 324 fd 68284 [09:42:17]save to /storage/0324/doc_00068284 [09:42:17]save last doc name /storage/0324/doc_00068284 to /storage/kkm_last_doc_name [09:42:17]save OK [09:42:17]Clear old archive folders... [09:42:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:42:17]tlvbuf is B6E67330 [09:42:17]SAM_PROTO_ClearQueue [09:42:17]wFMCommunicate request_size=4 [09:42:17]MH_SAM_APDU [09:42:17]CAPDU: 80 09 00 00 [09:42:17]Write to MH i2c: E2 08 00 24 24 80 09 00 00 00 00 00 00 BA [09:42:17]Write i2c OK [09:42:17]MH_I2C_Read... [09:42:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:42:17]Read from MH i2c: E2 [09:42:17]MH_I2C_Read... [09:42:17]Read from MH i2c: E2 03 00 [09:42:17]MH_I2C_Read... [09:42:17]Read from MH i2c: E2 03 00 24 24 00 90 00 BC [09:42:17]RAPDU: 90 00 [09:42:17]wFMCommunicate OK [09:42:17]SAM_PROTO_ClearQueue done [09:42:17]KKMCreateOFDPacket [09:42:17]OFDProtocolAddRootSTLVToBuf [09:42:17]FM_MakeSignedData [09:42:17]FM_MakeSignedData [09:42:17]SAM_PROTO_SignData [09:42:17]wFMCommunicate request_size=4 [09:42:17]MH_SAM_APDU [09:42:17]CAPDU: 80 0D 01 02 [09:42:17]Write to MH i2c: E2 08 00 25 24 80 0D 01 02 00 00 00 00 C2 [09:42:17]Write i2c OK [09:42:17]MH_I2C_Read... [09:42:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:42:17]Read from MH i2c: E2 [09:42:17]MH_I2C_Read... [09:42:17]Read from MH i2c: E2 03 00 [09:42:17]MH_I2C_Read... [09:42:17]Read from MH i2c: E2 03 00 25 24 00 90 00 BD [09:42:17]RAPDU: 90 00 [09:42:17]wFMCommunicate OK [09:42:17]wFMCommunicate request_size=255 [09:42:17]MH_SAM_APDU [09:42:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 54 05 01 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 FD 8F 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 BC 0A 01 00 35 04 06 00 96 [09:42:17]Write to MH i2c: E2 02 01 26 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 54 05 01 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 FD 8F 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 BC 0A 01 00 35 04 06 00 96 00 00 87 [09:42:17]Write i2c OK [09:42:17]MH_I2C_Read... [09:42:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:18]Read from MH i2c: E2 [09:42:18]MH_I2C_Read... [09:42:18]Read from MH i2c: E2 03 00 [09:42:18]MH_I2C_Read... [09:42:18]Read from MH i2c: E2 03 00 26 24 00 90 00 BE [09:42:18]RAPDU: 90 00 [09:42:18]wFMCommunicate OK [09:42:18]wFMCommunicate request_size=10 [09:42:18]MH_SAM_APDU [09:42:18]CAPDU: 80 0D 02 02 05 54 C4 AB EB AB [09:42:18]Write to MH i2c: E2 0D 00 27 24 80 0D 02 02 05 00 54 C4 AB EB AB 00 00 28 [09:42:18]Write i2c OK [09:42:18]MH_I2C_Read... [09:42:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:18]Read from MH i2c: E2 [09:42:18]MH_I2C_Read... [09:42:18]Read from MH i2c: E2 03 00 [09:42:18]MH_I2C_Read... [09:42:18]Read from MH i2c: E2 03 00 27 24 00 90 00 BF [09:42:18]RAPDU: 90 00 [09:42:18]wFMCommunicate OK [09:42:18]wFMCommunicate request_size=4 [09:42:18]MH_SAM_APDU [09:42:18]CAPDU: 80 0D 03 02 [09:42:18]Write to MH i2c: E2 08 00 28 24 80 0D 03 02 00 00 00 00 C7 [09:42:18]Write i2c OK [09:42:18]MH_I2C_Read... [09:42:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:42:18]Read from MH i2c: E2 [09:42:18]MH_I2C_Read... [09:42:18]Read from MH i2c: E2 0B 00 [09:42:18]MH_I2C_Read... [09:42:18]Read from MH i2c: E2 0B 00 28 24 00 72 6B 27 EB 3C 40 EF 76 90 00 98 [09:42:18]RAPDU: 72 6B 27 EB 3C 40 EF 76 90 00 [09:42:18]wFMCommunicate OK [09:42:18]SAM_PROTO_SignData done [09:42:18]FM_MakeSignedData done [09:42:18]CreateOFDProtocolMessage [09:42:18]wFMCommunicate request_size=4 [09:42:18]MH_SAM_APDU [09:42:18]CAPDU: 80 11 00 00 [09:42:18]Write to MH i2c: E2 08 00 29 24 80 11 00 00 00 00 00 00 C7 [09:42:18]Write i2c OK [09:42:18]MH_I2C_Read... [09:42:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:18]Read from MH i2c: E2 [09:42:18]MH_I2C_Read... [09:42:18]Read from MH i2c: E2 17 00 [09:42:18]MH_I2C_Read... [09:42:18]Read from MH i2c: E2 17 00 29 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 12 [09:42:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [09:42:18]wFMCommunicate OK [09:42:18]CreateOFDProtocolMessage done [09:42:18]OFDSenderStorePacket 68284 [09:42:18]StoreOFDPacket docnum=68284 [09:42:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 30 75 07 01 6B 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 54 05 01 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 FD 8F 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 BC 0A 01 00 35 04 06 00 96 54 C4 AB EB AB 72 6B 27 EB 3C 40 EF 76 [09:42:18]CheckFolder [09:42:18]dirname=/storage/ofd_packets [09:42:18]CheckFolder done [09:42:18]ProducePacketName [09:42:18]name=ofd_packets/00068284 [09:42:18]NVStorageSaveData ofd_packets/00068284 [09:42:18]File name is /storage/ofd_packets/00068284 [09:42:18]Write 301 bytes [09:42:18]NVStorageSaveData done [09:42:18]OFDSenderStorePacket done [09:42:18]KKMCreateOFDPacket done [09:42:18]NVStorageSaveData kkm_last_timestamp [09:42:18]File name is /storage/kkm_last_timestamp [09:42:18]Write 4 bytes [09:42:18]NVStorageSaveData done [09:42:18]OFD Sender: Processing packet 68284 [packets to send 26, broken 25] [09:42:18]ProducePacketName [09:42:18]name=ofd_packets/00068284 [09:42:18]OFD Sender: To server: pG, [09:42:18]CommunicateWithHost lk.salyk.kg:30040 [09:42:18]ConnectInit lk.salyk.kg [09:42:18]ExternCall_PrintAddStr [09:42:18]wPrintStart [09:42:18]Write to MH i2c: 01 00 00 2A 24 4E [09:42:18]Write i2c OK [09:42:18]MH_I2C_Read... [09:42:18]Read from MH i2c: 01 [09:42:18]MH_I2C_Read... [09:42:18]Read from MH i2c: 01 07 00 [09:42:18]MH_I2C_Read... [09:42:18]Read from MH i2c: 01 07 00 2A 24 00 00 00 00 00 FF 0F 63 [09:42:18]RasterBufferAndPrint [09:42:18]line Счет N : (1)706357 [09:42:18]line ИНН: 02508201610067 [09:42:18]line Контрольно-Кассовый Чек [09:42:18]line ПРОДАЖА [09:42:18]line ТРК (МРК, ГНК) : 13 [09:42:18]line Товар: 2710124130 [09:42:18]line Аи-92-К-4 [09:42:18]line 10.000 * 66.90 [09:42:18]line = 669.00 [09:42:18]line НДС 12% НСП 1% [09:42:18]line > о реализуемом товаре [09:42:18]line ИТОГО: 669.00 [09:42:18]line НСП 1% : 5.92 [09:42:18]line НДС 12% : 71.04 [09:42:18]line Наличными: 669.00 [09:42:18]line Безнал.: 0.00 [09:42:18]line Место: АЗС № 62 "Партнер Нефть" [09:42:18]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [09:42:18]line СНО: Общий режим [09:42:18]line Чек 30 03.06.2024 09:42 [09:42:18]line Смена: 324 ФФД: 1.0 [09:42:18]line ЗНМ: 0300000181 [09:42:18]line РНМ: 0000000000098096 [09:42:18]line Версия ККМ: 001 [09:42:18]line ФМ: 0000000000965400 [09:42:18]line ФД: 68284 [09:42:18]line ФПД: 165290821020587 [09:42:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T094221&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68284&fm=165290821020587&tin=02508201610067®Number=0000000000098096&sum=66900 [09:42:18]Connected sock=11 [09:42:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 30 75 07 01 6B 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 54 05 01 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 FD 8F 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 BC 0A 01 00 35 04 06 00 96 54 C4 AB EB AB 72 6B 27 EB 3C 40 EF 76 [09:42:18]written 0, free lines is 4095 [09:42:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 FD 3C 47 00 0C 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 BC 0A 01 00 F4 03 04 00 F9 36 5D 66 B6 04 01 00 00 B4 FE 9C BF 6C 66 63 73 [09:42:18]CommunicateWithHost err = 0 [09:42:18]CheckOFDResponse [09:42:18]1017 (14) - 77093643461234 [09:42:18]1041 (16) - 0000000000965400 [09:42:18]1040 (4) - 68284 [09:42:18]1012 (4) - 03.06.2024 03:22 [09:42:18]1206 (1) - 0 [09:42:18]OFD Sender: Remove packet 68284 [09:42:18]ProducePacketName [09:42:18]name=ofd_packets/00068284 [09:42:18]NVStorageDeleteData [09:42:19]Write to MH i2c: 01 00 00 52 24 76 [09:42:19]Write i2c OK [09:42:19]MH_I2C_Read... [09:42:19]Read from MH i2c: 01 [09:42:19]MH_I2C_Read... [09:42:19]Read from MH i2c: 01 07 00 [09:42:19]MH_I2C_Read... [09:42:19]Read from MH i2c: 01 07 00 52 24 00 00 00 00 00 07 0D 91 [09:42:19]RasterBufferAndPrint [09:42:19]line [09:42:19]line [09:42:19]line [09:42:19]line [09:42:19]line [09:42:19]written 0, free lines is 3342 [09:42:19]MH_Cut [09:42:19]Write to MH i2c: D1 01 00 59 24 01 4F [09:42:19]Write i2c OK [09:42:19]MH_I2C_Read... [09:42:19]Read from MH i2c: D1 [09:42:19]MH_I2C_Read... [09:42:19]Read from MH i2c: D1 01 00 [09:42:19]MH_I2C_Read... [09:42:19]Read from MH i2c: D1 01 00 59 24 00 4E [09:42:19]Write to MH i2c: 01 00 00 5A 24 7E [09:42:19]Write i2c OK [09:42:19]MH_I2C_Read... [09:42:19]OFD Sender: No OFD packet to send [09:42:19]*** Cut start [09:42:19]*** Partial cut [09:42:19]*** CUTSNS_PIN = 1 [09:42:19]*** CUTSNS_PIN = 0 [09:42:20]*** Brake cut motor [09:42:20]Read from MH i2c: 01 [09:42:20]MH_I2C_Read... [09:42:20]*** Stop cut motor [09:42:20]*** Cut end [09:42:20]Read from MH i2c: 01 07 00 [09:42:20]MH_I2C_Read... [09:42:20]Read from MH i2c: 01 07 00 5A 24 00 00 00 00 00 FF 0F 93 [09:42:20]process_action close_receipt done [09:42:20]requested_data is exist [09:42:20]produce_requested_data [09:42:20]requested_item fm.sn is exist - process it [09:42:20]wFMCommunicate request_size=4 [09:42:20]MH_SAM_APDU [09:42:20]CAPDU: 80 11 00 00 [09:42:20]Write to MH i2c: E2 08 00 5B 24 80 11 00 00 00 00 00 00 F9 [09:42:20]Write i2c OK [09:42:20]MH_I2C_Read... [09:42:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:20]Read from MH i2c: E2 [09:42:20]MH_I2C_Read... [09:42:20]Read from MH i2c: E2 17 00 [09:42:20]MH_I2C_Read... [09:42:20]Read from MH i2c: E2 17 00 5B 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 44 [09:42:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [09:42:20]wFMCommunicate OK [09:42:20]requested_item fd.num is exist - process it [09:42:20]SAM_PROTO_GetFieldsCounters [09:42:20]wFMCommunicate request_size=4 [09:42:20]MH_SAM_APDU [09:42:20]CAPDU: 80 13 00 00 [09:42:20]Write to MH i2c: E2 08 00 5C 24 80 13 00 00 00 00 00 00 FC [09:42:20]Write i2c OK [09:42:20]MH_I2C_Read... [09:42:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:42:20]Read from MH i2c: E2 [09:42:20]MH_I2C_Read... [09:42:20]Read from MH i2c: E2 62 00 [09:42:20]MH_I2C_Read... [09:42:20]Read from MH i2c: E2 62 00 5C 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 BC 0A 01 00 0E 04 04 00 44 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 82 [09:42:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 BC 0A 01 00 0E 04 04 00 44 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 [09:42:20]wFMCommunicate OK [09:42:20]SAM_PROTO_GetFieldsCounters done [09:42:20]requested_item shift.num is exist - process it [09:42:20]requested_item shift.opened is exist - process it [09:42:20]req_shift_opened [09:42:20]FM_GetShiftState [09:42:20]SAM_PROTO_GetShiftState [09:42:20]wFMCommunicate request_size=4 [09:42:20]MH_SAM_APDU [09:42:20]CAPDU: 80 13 01 00 [09:42:20]Write to MH i2c: E2 08 00 5D 24 80 13 01 00 00 00 00 00 FE [09:42:20]Write i2c OK [09:42:20]MH_I2C_Read... [09:42:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:20]Read from MH i2c: E2 [09:42:20]MH_I2C_Read... [09:42:20]Read from MH i2c: E2 0E 00 [09:42:20]MH_I2C_Read... [09:42:20]Read from MH i2c: E2 0E 00 5D 24 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 D9 [09:42:20]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [09:42:20]wFMCommunicate OK [09:42:20]SAM_PROTO_GetShiftState done [09:42:20]FM_GetShiftState done [09:42:20]req_shift_opened done [09:42:20]requested_item shift.open_date is exist - process it [09:42:20]req_shift_open_date [09:42:20]req_shift_open_date done [09:42:20]produce_requested_data done [09:42:20]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68284,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [09:42:20]process_action_free close_receipt [09:42:20]json_value_free [09:42:20]json_value_free done [09:42:20]process_json_proto returns [09:42:20]Send response to host [09:42:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68284,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [09:42:20]free response buf [09:42:20]execute_script done [09:42:20]execute_script returns [09:42:20]free content buf [09:42:20]Sock 9.Close socket [09:42:20]Sock 9.Thread stoped [09:42:22]accept exits with 7 [09:42:22]New connection [09:42:22]New thread 3066543460 created [09:42:22]Thread 3066686820 joined [09:42:22]Waiting for new connection... [09:42:22] Sock 7.Parse request [09:42:22]Sock 7.Check first char [09:42:22]Sock 7.First char is OK [09:42:22]request: POST /json_proto HTTP/1.0 [09:42:22]Method: POST [09:42:22]URL: /json_proto [09:42:22]Method is POST - this is cgi request [09:42:22]url: /json_proto [09:42:22]query_string will be loaded in cgi processing [09:42:22]execute_cgi json_proto POST (null) [09:42:22]execute_cgi path=json_proto method=POST [09:42:22]POST find Content-Length [09:42:22]Host: 172.17.36.132:8080 [09:42:22]Content-Length: 696 [09:42:22]Content-Type: application/json [09:42:22] [09:42:22]POST finish read [09:42:22]Found Content-Length = 696 [09:42:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 68284, "base_FM": "0000000000965400", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706357", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.000, "sum" : 669.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 669.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:22]execute_script... [09:42:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 68284, "base_FM": "0000000000965400", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706357", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.000, "sum" : 669.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 669.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:22]POST & json_proto [09:42:22]process_json_proto [09:42:22]json parsed OK: [09:42:22]protocol is kg_v1.0 [09:42:22]action value=close_receipt [09:42:22]process_action close_receipt [09:42:22]cmd_close_receipt [09:42:22]MH_GetDate [09:42:22]Write to MH i2c: F0 00 00 5E 24 71 [09:42:22]Write i2c OK [09:42:22]MH_I2C_Read... [09:42:22]Read from MH i2c: F0 [09:42:22]MH_I2C_Read... [09:42:22]Read from MH i2c: F0 09 00 [09:42:22]MH_I2C_Read... [09:42:22]Read from MH i2c: F0 09 00 5E 24 00 02 90 5D 66 B2 22 B0 64 B7 [09:42:22]GetLastDocTimeStamp 1717407741 [09:42:22]current date 1717407746 [09:42:22]FM_GetShiftState [09:42:22]SAM_PROTO_GetShiftState [09:42:22]wFMCommunicate request_size=4 [09:42:22]MH_SAM_APDU [09:42:22]CAPDU: 80 13 01 00 [09:42:22]Write to MH i2c: E2 08 00 5F 24 80 13 01 00 00 00 00 00 00 [09:42:22]Write i2c OK [09:42:22]MH_I2C_Read... [09:42:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:22]Read from MH i2c: E2 [09:42:22]MH_I2C_Read... [09:42:22]Read from MH i2c: E2 0E 00 [09:42:22]MH_I2C_Read... [09:42:22]Read from MH i2c: E2 0E 00 5F 24 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 DB [09:42:22]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [09:42:22]wFMCommunicate OK [09:42:22]SAM_PROTO_GetShiftState done [09:42:22]FM_GetShiftState done [09:42:22]opened in 1717378033 [09:42:22]opened+sec_in_day 1717464433 [09:42:22]quantity*price = 66900 [09:42:22]sum+1 = 66901 [09:42:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 669.00 НСП 1% : 5.92 НДС 12% : 71.04 Наличными: 669.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 31 03.06.2024 09:42 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФД осн.: 68284 ФМ осн.: 0000000000965400 ФМ: 0000000000965400 ФД: 68285 ФПД: 274743266183955 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T094226&type=2&operation_type=1&fn_number=0000000000965400&fd_number=68285&fm=274743266183955&tin=02508201610067®Number=0000000000098096&sum=66900 [09:42:23]StoreToDocumentArchive [09:42:23]shift 324 fd 68285 [09:42:23]save to /storage/0324/doc_00068285 [09:42:23]save last doc name /storage/0324/doc_00068285 to /storage/kkm_last_doc_name [09:42:23]save OK [09:42:23]Clear old archive folders... [09:42:23]ProcessDocumentItem done err = 0, tmpTLVsize=279 [09:42:23]tlvbuf is B6E80B50 [09:42:23]SAM_PROTO_ClearQueue [09:42:23]wFMCommunicate request_size=4 [09:42:23]MH_SAM_APDU [09:42:23]CAPDU: 80 09 00 00 [09:42:23]Write to MH i2c: E2 08 00 6E 24 80 09 00 00 00 00 00 00 04 [09:42:23]Write i2c OK [09:42:23]MH_I2C_Read... [09:42:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:42:23]Read from MH i2c: E2 [09:42:23]MH_I2C_Read... [09:42:23]Read from MH i2c: E2 03 00 [09:42:23]MH_I2C_Read... [09:42:23]Read from MH i2c: E2 03 00 6E 24 00 90 00 06 [09:42:23]RAPDU: 90 00 [09:42:23]wFMCommunicate OK [09:42:23]SAM_PROTO_ClearQueue done [09:42:23]KKMCreateOFDPacket [09:42:23]OFDProtocolAddRootSTLVToBuf [09:42:23]FM_MakeSignedData [09:42:23]FM_MakeSignedData [09:42:23]SAM_PROTO_SignData [09:42:23]wFMCommunicate request_size=4 [09:42:23]MH_SAM_APDU [09:42:23]CAPDU: 80 0D 01 02 [09:42:23]Write to MH i2c: E2 08 00 6F 24 80 0D 01 02 00 00 00 00 0C [09:42:23]Write i2c OK [09:42:23]MH_I2C_Read... [09:42:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:42:23]Read from MH i2c: E2 [09:42:23]MH_I2C_Read... [09:42:23]Read from MH i2c: E2 03 00 [09:42:23]MH_I2C_Read... [09:42:23]Read from MH i2c: E2 03 00 6F 24 00 90 00 07 [09:42:23]RAPDU: 90 00 [09:42:23]wFMCommunicate OK [09:42:23]wFMCommunicate request_size=255 [09:42:23]MH_SAM_APDU [09:42:23]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 54 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 02 90 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 27 04 04 00 BC 0A 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 11 04 10 00 30 [09:42:23]Write to MH i2c: E2 02 01 70 24 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 54 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 02 90 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 27 04 04 00 BC 0A 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 11 04 10 00 30 00 00 A4 [09:42:23]Write i2c OK [09:42:23]MH_I2C_Read... [09:42:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:24]Read from MH i2c: E2 [09:42:24]MH_I2C_Read... [09:42:24]Read from MH i2c: E2 03 00 [09:42:24]MH_I2C_Read... [09:42:24]Read from MH i2c: E2 03 00 70 24 00 90 00 08 [09:42:24]RAPDU: 90 00 [09:42:24]wFMCommunicate OK [09:42:24]wFMCommunicate request_size=38 [09:42:24]MH_SAM_APDU [09:42:24]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 BD 0A 01 00 35 04 06 00 F9 E0 A6 C9 0B 13 [09:42:24]Write to MH i2c: E2 29 00 71 24 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 BD 0A 01 00 35 04 06 00 F9 E0 A6 C9 0B 13 00 00 BE [09:42:24]Write i2c OK [09:42:24]MH_I2C_Read... [09:42:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:24]Read from MH i2c: E2 [09:42:24]MH_I2C_Read... [09:42:24]Read from MH i2c: E2 03 00 [09:42:24]MH_I2C_Read... [09:42:24]Read from MH i2c: E2 03 00 71 24 00 90 00 09 [09:42:24]RAPDU: 90 00 [09:42:24]wFMCommunicate OK [09:42:24]wFMCommunicate request_size=4 [09:42:24]MH_SAM_APDU [09:42:24]CAPDU: 80 0D 03 02 [09:42:24]Write to MH i2c: E2 08 00 72 24 80 0D 03 02 00 00 00 00 11 [09:42:24]Write i2c OK [09:42:24]MH_I2C_Read... [09:42:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:42:24]Read from MH i2c: E2 [09:42:24]MH_I2C_Read... [09:42:24]Read from MH i2c: E2 0B 00 [09:42:24]MH_I2C_Read... [09:42:24]Read from MH i2c: E2 0B 00 72 24 00 42 73 0B BF 4D 8E F2 3C 90 00 9A [09:42:24]RAPDU: 42 73 0B BF 4D 8E F2 3C 90 00 [09:42:24]wFMCommunicate OK [09:42:24]SAM_PROTO_SignData done [09:42:24]FM_MakeSignedData done [09:42:24]CreateOFDProtocolMessage [09:42:24]wFMCommunicate request_size=4 [09:42:24]MH_SAM_APDU [09:42:24]CAPDU: 80 11 00 00 [09:42:24]Write to MH i2c: E2 08 00 73 24 80 11 00 00 00 00 00 00 11 [09:42:24]Write i2c OK [09:42:24]MH_I2C_Read... [09:42:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:24]Read from MH i2c: E2 [09:42:24]MH_I2C_Read... [09:42:24]Read from MH i2c: E2 17 00 [09:42:24]MH_I2C_Read... [09:42:24]Read from MH i2c: E2 17 00 73 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 5C [09:42:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [09:42:24]wFMCommunicate OK [09:42:24]CreateOFDProtocolMessage done [09:42:24]OFDSenderStorePacket 68285 [09:42:24]StoreOFDPacket docnum=68285 [09:42:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 2B 01 00 00 84 BC 23 01 CA 40 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 54 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 02 90 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 27 04 04 00 BC 0A 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 BD 0A 01 00 35 04 06 00 F9 E0 A6 C9 0B 13 42 73 0B BF 4D 8E F2 3C [09:42:24]CheckFolder [09:42:24]dirname=/storage/ofd_packets [09:42:24]CheckFolder done [09:42:24]ProducePacketName [09:42:24]name=ofd_packets/00068285 [09:42:24]NVStorageSaveData ofd_packets/00068285 [09:42:24]File name is /storage/ofd_packets/00068285 [09:42:24]Write 329 bytes [09:42:24]NVStorageSaveData done [09:42:24]OFDSenderStorePacket done [09:42:24]KKMCreateOFDPacket done [09:42:24]NVStorageSaveData kkm_last_timestamp [09:42:24]File name is /storage/kkm_last_timestamp [09:42:24]Write 4 bytes [09:42:24]NVStorageSaveData done [09:42:24]ExternCall_PrintAddStr [09:42:24]wPrintStart [09:42:24]Write to MH i2c: 01 00 00 74 24 98 [09:42:24]Write i2c OK [09:42:24]MH_I2C_Read... [09:42:24]Read from MH i2c: 01 [09:42:24]MH_I2C_Read... [09:42:24]Read from MH i2c: 01 07 00 [09:42:24]MH_I2C_Read... [09:42:24]Read from MH i2c: 01 07 00 74 24 00 00 00 00 00 FF 0F AD [09:42:24]RasterBufferAndPrint [09:42:24]line Счет N : (1)706357 [09:42:24]line ИНН: 02508201610067 [09:42:24]line Контрольно-Кассовый Чек [09:42:24]line ВОЗВРАТ ПРОДАЖИ [09:42:24]line ТРК (МРК, ГНК) : 13 [09:42:24]line Товар: 2710124130 [09:42:24]line Аи-92-К-4 [09:42:24]line 10.000 * 66.90 [09:42:24]line = 669.00 [09:42:24]line НДС 12% НСП 1% [09:42:24]line > о реализуемом товаре [09:42:24]line ИТОГО: 669.00 [09:42:24]line НСП 1% : 5.92 [09:42:24]line НДС 12% : 71.04 [09:42:24]line Наличными: 669.00 [09:42:24]line Безнал.: 0.00 [09:42:24]line Место: АЗС № 62 "Партнер Нефть" [09:42:24]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [09:42:24]line СНО: Общий режим [09:42:24]line Чек 31 03.06.2024 09:42 [09:42:24]line Смена: 324 ФФД: 1.0 [09:42:24]line ЗНМ: 0300000181 [09:42:24]line РНМ: 0000000000098096 [09:42:24]line Версия ККМ: 001 [09:42:24]line ФД осн.: 68284 [09:42:24]line ФМ осн.: 0000000000965400 [09:42:24]line ФМ: 0000000000965400 [09:42:24]line ФД: 68285 [09:42:24]line ФПД: 274743266183955 [09:42:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T094226&type=2&operation_type=1&fn_number=0000000000965400&fd_number=68285&fm=274743266183955&tin=02508201610067®Number=0000000000098096&sum=66900 [09:42:24]written 0, free lines is 4095 [09:42:24]OFD Sender: Processing packet 68285 [packets to send 26, broken 25] [09:42:24]ProducePacketName [09:42:24]name=ofd_packets/00068285 [09:42:24]OFD Sender: To server: pG, [09:42:24]CommunicateWithHost lk.salyk.kg:30040 [09:42:24]ConnectInit lk.salyk.kg [09:42:24]Connected sock=10 [09:42:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 2B 01 00 00 84 BC 23 01 CA 40 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 54 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 02 90 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 27 04 04 00 BC 0A 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 BD 0A 01 00 35 04 06 00 F9 E0 A6 C9 0B 13 42 73 0B BF 4D 8E F2 3C [09:42:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 56 91 47 00 50 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 BD 0A 01 00 F4 03 04 00 FF 36 5D 66 B6 04 01 00 00 CD A2 14 75 3A 9E 45 48 [09:42:24]CommunicateWithHost err = 0 [09:42:24]CheckOFDResponse [09:42:24]1017 (14) - 77093643461234 [09:42:24]1041 (16) - 0000000000965400 [09:42:24]1040 (4) - 68285 [09:42:24]1012 (4) - 03.06.2024 03:22 [09:42:24]1206 (1) - 0 [09:42:24]OFD Sender: Remove packet 68285 [09:42:24]ProducePacketName [09:42:24]name=ofd_packets/00068285 [09:42:24]NVStorageDeleteData [09:42:24]Write to MH i2c: 01 00 00 9E 24 C2 [09:42:24]Write i2c OK [09:42:24]MH_I2C_Read... [09:42:24]Read from MH i2c: 01 [09:42:24]MH_I2C_Read... [09:42:24]Read from MH i2c: 01 07 00 [09:42:24]MH_I2C_Read... [09:42:24]Read from MH i2c: 01 07 00 9E 24 00 00 00 00 00 12 0D E8 [09:42:24]RasterBufferAndPrint [09:42:24]line [09:42:24]line [09:42:24]line [09:42:24]line [09:42:24]line [09:42:24]written 0, free lines is 3361 [09:42:24]MH_Cut [09:42:24]Write to MH i2c: D1 01 00 A5 24 01 9B [09:42:24]Write i2c OK [09:42:24]MH_I2C_Read... [09:42:24]Read from MH i2c: D1 [09:42:24]MH_I2C_Read... [09:42:24]Read from MH i2c: D1 01 00 [09:42:24]MH_I2C_Read... [09:42:24]Read from MH i2c: D1 01 00 A5 24 00 9A [09:42:24]Write to MH i2c: 01 00 00 A6 24 CA [09:42:24]Write i2c OK [09:42:24]MH_I2C_Read... [09:42:25]OFD Sender: No OFD packet to send [09:42:25]*** Cut start [09:42:25]*** Partial cut [09:42:25]*** CUTSNS_PIN = 1 [09:42:25]*** CUTSNS_PIN = 0 [09:42:25]*** Brake cut motor [09:42:26]Read from MH i2c: 01 [09:42:26]MH_I2C_Read... [09:42:26]*** Stop cut motor [09:42:26]*** Cut end [09:42:26]Read from MH i2c: 01 07 00 [09:42:26]MH_I2C_Read... [09:42:26]Read from MH i2c: 01 07 00 A6 24 00 00 00 00 00 FF 0F DF [09:42:26]process_action close_receipt done [09:42:26]requested_data is exist [09:42:26]produce_requested_data [09:42:26]requested_item fm.sn is exist - process it [09:42:26]wFMCommunicate request_size=4 [09:42:26]MH_SAM_APDU [09:42:26]CAPDU: 80 11 00 00 [09:42:26]Write to MH i2c: E2 08 00 A7 24 80 11 00 00 00 00 00 00 45 [09:42:26]Write i2c OK [09:42:26]MH_I2C_Read... [09:42:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:26]Read from MH i2c: E2 [09:42:26]MH_I2C_Read... [09:42:26]Read from MH i2c: E2 17 00 [09:42:26]MH_I2C_Read... [09:42:26]Read from MH i2c: E2 17 00 A7 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 90 [09:42:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [09:42:26]wFMCommunicate OK [09:42:26]requested_item fd.num is exist - process it [09:42:26]SAM_PROTO_GetFieldsCounters [09:42:26]wFMCommunicate request_size=4 [09:42:26]MH_SAM_APDU [09:42:26]CAPDU: 80 13 00 00 [09:42:26]Write to MH i2c: E2 08 00 A8 24 80 13 00 00 00 00 00 00 48 [09:42:26]Write i2c OK [09:42:26]MH_I2C_Read... [09:42:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:42:26]Read from MH i2c: E2 [09:42:26]MH_I2C_Read... [09:42:26]Read from MH i2c: E2 62 00 [09:42:26]MH_I2C_Read... [09:42:26]Read from MH i2c: E2 62 00 A8 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 BD 0A 01 00 0E 04 04 00 44 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 D2 [09:42:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 BD 0A 01 00 0E 04 04 00 44 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 [09:42:26]wFMCommunicate OK [09:42:26]SAM_PROTO_GetFieldsCounters done [09:42:26]requested_item shift.num is exist - process it [09:42:26]requested_item shift.opened is exist - process it [09:42:26]req_shift_opened [09:42:26]FM_GetShiftState [09:42:26]SAM_PROTO_GetShiftState [09:42:26]wFMCommunicate request_size=4 [09:42:26]MH_SAM_APDU [09:42:26]CAPDU: 80 13 01 00 [09:42:26]Write to MH i2c: E2 08 00 A9 24 80 13 01 00 00 00 00 00 4A [09:42:26]Write i2c OK [09:42:26]MH_I2C_Read... [09:42:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:26]Read from MH i2c: E2 [09:42:26]MH_I2C_Read... [09:42:26]Read from MH i2c: E2 0E 00 [09:42:26]MH_I2C_Read... [09:42:26]Read from MH i2c: E2 0E 00 A9 24 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 25 [09:42:26]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [09:42:26]wFMCommunicate OK [09:42:26]SAM_PROTO_GetShiftState done [09:42:26]FM_GetShiftState done [09:42:26]req_shift_opened done [09:42:26]requested_item shift.open_date is exist - process it [09:42:26]req_shift_open_date [09:42:26]req_shift_open_date done [09:42:26]produce_requested_data done [09:42:26]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68285,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [09:42:26]process_action_free close_receipt [09:42:26]json_value_free [09:42:26]json_value_free done [09:42:26]process_json_proto returns [09:42:26]Send response to host [09:42:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68285,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [09:42:26]free response buf [09:42:26]execute_script done [09:42:26]execute_script returns [09:42:26]free content buf [09:42:26]Sock 7.Close socket [09:42:26]Sock 7.Thread stoped [09:42:30]OFD Sender: No OFD packet to send [09:42:35]OFD Sender: No OFD packet to send [09:42:40]OFD Sender: No OFD packet to send [09:42:45]OFD Sender: No OFD packet to send [09:42:50]int [09:42:50]Write to MH i2c: 01 00 00 AA 24 CE [09:42:50]*** FLAG_PRN_KEY set [09:42:50]Write i2c OK [09:42:50]MH_I2C_Read... [09:42:50]Read from MH i2c: 01 [09:42:50]MH_I2C_Read... [09:42:50]Read from MH i2c: 01 07 00 [09:42:50]MH_I2C_Read... [09:42:50]Read from MH i2c: 01 07 00 AA 24 00 08 00 00 00 FF 0F EB [09:42:50]state=0 [09:42:50]Key pressed [09:42:50]Feed [09:42:50]Write to MH i2c: D8 00 00 AB 24 A6 [09:42:50]Write i2c OK [09:42:50]MH_I2C_Read... [09:42:50]Read from MH i2c: D8 [09:42:50]MH_I2C_Read... [09:42:50]Read from MH i2c: D8 01 00 [09:42:50]MH_I2C_Read... [09:42:50]Read from MH i2c: D8 01 00 AB 24 00 A7 [09:42:50]int [09:42:50]Write to MH i2c: 01 00 00 AC 24 D0 [09:42:50]Write i2c OK [09:42:50]MH_I2C_Read... [09:42:50]Read from MH i2c: 01 [09:42:50]MH_I2C_Read... [09:42:50]Read from MH i2c: 01 07 00 [09:42:50]MH_I2C_Read... [09:42:50]Read from MH i2c: 01 07 00 AC 24 00 48 00 00 00 3C 00 5B [09:42:50]state=2 [09:42:50]Key pressed [09:42:50]OFD Sender: No OFD packet to send [09:42:50]int [09:42:50]Write to MH i2c: 01 00 00 AD 24 D1 [09:42:50]*** FLAG_PRN_KEY reset [09:42:50]Write i2c OK [09:42:50]MH_I2C_Read... [09:42:50]Read from MH i2c: 01 [09:42:50]MH_I2C_Read... [09:42:50]Read from MH i2c: 01 07 00 [09:42:50]MH_I2C_Read... [09:42:50]Read from MH i2c: 01 07 00 AD 24 00 00 00 00 00 FC 0F E3 [09:42:50]state=2 [09:42:50]Stop feed [09:42:55]OFD Sender: No OFD packet to send [09:42:57]accept exits with 9 [09:42:57]New connection [09:42:57]New thread 3066686820 created [09:42:57] Sock 9.Parse request [09:42:57]Thread 3066543460 joined [09:42:57]Sock 9.Check first char [09:42:57]Waiting for new connection... [09:42:57]Sock 9.First char is OK [09:42:57]request: POST /json_proto HTTP/1.0 [09:42:57]Method: POST [09:42:57]URL: /json_proto [09:42:57]Method is POST - this is cgi request [09:42:57]url: /json_proto [09:42:57]query_string will be loaded in cgi processing [09:42:57]execute_cgi json_proto POST (null) [09:42:57]execute_cgi path=json_proto method=POST [09:42:57]POST find Content-Length [09:42:57]Host: 172.17.36.132:8080 [09:42:57]Content-Length: 843 [09:42:57]Content-Type: application/json [09:42:57] [09:42:57]POST finish read [09:42:57]Found Content-Length = 843 [09:42:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706356", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:57]execute_script... [09:42: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)706356", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:57]POST & json_proto [09:42:57]process_json_proto [09:42:57]json parsed OK: [09:42:57]protocol is kg_v1.0 [09:42:57]action value=close_receipt [09:42:57]process_action close_receipt [09:42:57]cmd_close_receipt [09:42:57]MH_GetDate [09:42:57]Write to MH i2c: F0 00 00 AE 24 C1 [09:42:57]Write i2c OK [09:42:57]MH_I2C_Read... [09:42:57]Read from MH i2c: F0 [09:42:57]MH_I2C_Read... [09:42:57]Read from MH i2c: F0 09 00 [09:42:57]MH_I2C_Read... [09:42:57]Read from MH i2c: F0 09 00 AE 24 00 25 90 5D 66 B2 22 B0 64 2A [09:42:57]GetLastDocTimeStamp 1717407746 [09:42:57]current date 1717407781 [09:42:57]FM_GetShiftState [09:42:57]SAM_PROTO_GetShiftState [09:42:57]wFMCommunicate request_size=4 [09:42:57]MH_SAM_APDU [09:42:57]CAPDU: 80 13 01 00 [09:42:57]Write to MH i2c: E2 08 00 AF 24 80 13 01 00 00 00 00 00 50 [09:42:57]Write i2c OK [09:42:57]MH_I2C_Read... [09:42:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:57]Read from MH i2c: E2 [09:42:57]MH_I2C_Read... [09:42:57]Read from MH i2c: E2 0E 00 [09:42:57]MH_I2C_Read... [09:42:57]Read from MH i2c: E2 0E 00 AF 24 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 2B [09:42:57]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [09:42:57]wFMCommunicate OK [09:42:57]SAM_PROTO_GetShiftState done [09:42:57]FM_GetShiftState done [09:42:57]opened in 1717378033 [09:42:57]opened+sec_in_day 1717464433 [09:42:57]quantity*price = 100015 [09:42:57]sum+1 = 100017 [09:42:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 32 03.06.2024 09:43 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68286 ФПД: 166297207405831 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T094301&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68286&fm=166297207405831&tin=02508201610067®Number=0000000000098096&sum=100016 [09:42:58]StoreToDocumentArchive [09:42:58]shift 324 fd 68286 [09:42:58]save to /storage/0324/doc_00068286 [09:42:58]save last doc name /storage/0324/doc_00068286 to /storage/kkm_last_doc_name [09:42:58]save OK [09:42:58]Clear old archive folders... [09:42:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:42:58]tlvbuf is B6E67A10 [09:42:58]SAM_PROTO_ClearQueue [09:42:58]wFMCommunicate request_size=4 [09:42:58]MH_SAM_APDU [09:42:58]CAPDU: 80 09 00 00 [09:42:58]Write to MH i2c: E2 08 00 BC 24 80 09 00 00 00 00 00 00 52 [09:42:58]Write i2c OK [09:42:58]MH_I2C_Read... [09:42:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:42:58]Read from MH i2c: E2 [09:42:58]MH_I2C_Read... [09:42:58]Read from MH i2c: E2 03 00 [09:42:58]MH_I2C_Read... [09:42:58]Read from MH i2c: E2 03 00 BC 24 00 90 00 54 [09:42:58]RAPDU: 90 00 [09:42:58]wFMCommunicate OK [09:42:58]SAM_PROTO_ClearQueue done [09:42:58]KKMCreateOFDPacket [09:42:58]OFDProtocolAddRootSTLVToBuf [09:42:58]FM_MakeSignedData [09:42:58]FM_MakeSignedData [09:42:58]SAM_PROTO_SignData [09:42:58]wFMCommunicate request_size=4 [09:42:58]MH_SAM_APDU [09:42:58]CAPDU: 80 0D 01 02 [09:42:58]Write to MH i2c: E2 08 00 BD 24 80 0D 01 02 00 00 00 00 5A [09:42:58]Write i2c OK [09:42:58]MH_I2C_Read... [09:42:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:42:58]Read from MH i2c: E2 [09:42:58]MH_I2C_Read... [09:42:58]Read from MH i2c: E2 03 00 [09:42:58]MH_I2C_Read... [09:42:58]Read from MH i2c: E2 03 00 BD 24 00 90 00 55 [09:42:58]RAPDU: 90 00 [09:42:58]wFMCommunicate OK [09:42:58]wFMCommunicate request_size=255 [09:42:58]MH_SAM_APDU [09:42:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 25 90 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 BE 0A 01 00 35 04 06 00 97 [09:42:58]Write to MH i2c: E2 02 01 BE 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 25 90 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 BE 0A 01 00 35 04 06 00 97 00 00 3E [09:42:58]Write i2c OK [09:42:58]MH_I2C_Read... [09:42:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:58]Read from MH i2c: E2 [09:42:58]MH_I2C_Read... [09:42:58]Read from MH i2c: E2 03 00 [09:42:58]MH_I2C_Read... [09:42:58]Read from MH i2c: E2 03 00 BE 24 00 90 00 56 [09:42:58]RAPDU: 90 00 [09:42:58]wFMCommunicate OK [09:42:58]wFMCommunicate request_size=10 [09:42:58]MH_SAM_APDU [09:42:58]CAPDU: 80 0D 02 02 05 3F 15 F9 7D 07 [09:42:58]Write to MH i2c: E2 0D 00 BF 24 80 0D 02 02 05 00 3F 15 F9 7D 07 00 00 38 [09:42:58]Write i2c OK [09:42:58]MH_I2C_Read... [09:42:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:58]Read from MH i2c: E2 [09:42:58]MH_I2C_Read... [09:42:58]Read from MH i2c: E2 03 00 [09:42:58]MH_I2C_Read... [09:42:58]Read from MH i2c: E2 03 00 BF 24 00 90 00 57 [09:42:58]RAPDU: 90 00 [09:42:58]wFMCommunicate OK [09:42:58]wFMCommunicate request_size=4 [09:42:58]MH_SAM_APDU [09:42:58]CAPDU: 80 0D 03 02 [09:42:58]Write to MH i2c: E2 08 00 C0 24 80 0D 03 02 00 00 00 00 5F [09:42:58]Write i2c OK [09:42:58]MH_I2C_Read... [09:42:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:42:58]Read from MH i2c: E2 [09:42:58]MH_I2C_Read... [09:42:58]Read from MH i2c: E2 0B 00 [09:42:58]MH_I2C_Read... [09:42:58]Read from MH i2c: E2 0B 00 C0 24 00 8C DE CE F5 32 49 73 DD 90 00 58 [09:42:58]RAPDU: 8C DE CE F5 32 49 73 DD 90 00 [09:42:58]wFMCommunicate OK [09:42:58]SAM_PROTO_SignData done [09:42:58]FM_MakeSignedData done [09:42:58]CreateOFDProtocolMessage [09:42:58]wFMCommunicate request_size=4 [09:42:58]MH_SAM_APDU [09:42:58]CAPDU: 80 11 00 00 [09:42:58]Write to MH i2c: E2 08 00 C1 24 80 11 00 00 00 00 00 00 5F [09:42:58]Write i2c OK [09:42:58]MH_I2C_Read... [09:42:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:58]Read from MH i2c: E2 [09:42:58]MH_I2C_Read... [09:42:58]Read from MH i2c: E2 17 00 [09:42:58]MH_I2C_Read... [09:42:58]Read from MH i2c: E2 17 00 C1 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 AA [09:42:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [09:42:58]wFMCommunicate OK [09:42:58]CreateOFDProtocolMessage done [09:42:58]OFDSenderStorePacket 68286 [09:42:58]StoreOFDPacket docnum=68286 [09:42:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 11 8F 07 01 8D 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 25 90 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 BE 0A 01 00 35 04 06 00 97 3F 15 F9 7D 07 8C DE CE F5 32 49 73 DD [09:42:58]CheckFolder [09:42:58]dirname=/storage/ofd_packets [09:42:58]CheckFolder done [09:42:58]ProducePacketName [09:42:58]name=ofd_packets/00068286 [09:42:58]NVStorageSaveData ofd_packets/00068286 [09:42:58]File name is /storage/ofd_packets/00068286 [09:42:58]Write 301 bytes [09:42:58]NVStorageSaveData done [09:42:58]OFDSenderStorePacket done [09:42:58]KKMCreateOFDPacket done [09:42:58]NVStorageSaveData kkm_last_timestamp [09:42:58]File name is /storage/kkm_last_timestamp [09:42:58]Write 4 bytes [09:42:58]NVStorageSaveData done [09:42:58]ExternCall_PrintAddStr [09:42:58]wPrintStart [09:42:58]Write to MH i2c: 01 00 00 C2 24 E6 [09:42:58]Write i2c OK [09:42:58]MH_I2C_Read... [09:42:58]Read from MH i2c: 01 [09:42:58]MH_I2C_Read... [09:42:58]Read from MH i2c: 01 07 00 [09:42:58]MH_I2C_Read... [09:42:58]Read from MH i2c: 01 07 00 C2 24 00 00 00 00 00 FF 0F FB [09:42:58]RasterBufferAndPrint [09:42:58]line Счет N : (1)706356 [09:42:58]line ИНН: 02508201610067 [09:42:58]line Контрольно-Кассовый Чек [09:42:58]line ПРОДАЖА [09:42:58]line ТРК (МРК, ГНК) : 32 [09:42:58]line Товар: 2710124130 [09:42:58]line Аи-92-К-4 [09:42:58]line 14.950 * 66.90 [09:42:58]line = 1000.16 [09:42:58]line НДС 12% НСП 1% [09:42:58]line > о реализуемом товаре [09:42:58]line ИТОГО: 1000.16 [09:42:58]line НСП 1% : 8.85 [09:42:58]line НДС 12% : 106.21 [09:42:58]line Наличными: 0.00 [09:42:58]line Безнал.: 1000.16 [09:42:58]line Место: АЗС № 62 "Партнер Нефть" [09:42:58]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [09:42:58]line СНО: Общий режим [09:42:58]line Чек 32 03.06.2024 09:43 [09:42:58]line Смена: 324 ФФД: 1.0 [09:42:58]line ЗНМ: 0300000181 [09:42:58]line РНМ: 0000000000098096 [09:42:58]line Версия ККМ: 001 [09:42:58]line Платежная система: АКБ Кыргызстан [09:42:58]line ФМ: 0000000000965400 [09:42:58]line ФД: 68286 [09:42:58]line ФПД: 166297207405831 [09:42:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T094301&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68286&fm=166297207405831&tin=02508201610067®Number=0000000000098096&sum=100016 [09:42:59]OFD Sender: Processing packet 68286 [packets to send 26, broken 25] [09:42:59]ProducePacketName [09:42:59]name=ofd_packets/00068286 [09:42:59]OFD Sender: To server: pG, [09:42:59]CommunicateWithHost lk.salyk.kg:30040 [09:42:59]ConnectInit lk.salyk.kg [09:42:59]written 0, free lines is 4095 [09:42:59]Connected sock=10 [09:42:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 11 8F 07 01 8D 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 25 90 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 BE 0A 01 00 35 04 06 00 97 3F 15 F9 7D 07 8C DE CE F5 32 49 73 DD [09:42:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 48 4A 47 00 83 FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 BE 0A 01 00 F4 03 04 00 22 37 5D 66 B6 04 01 00 00 71 67 DF E4 E6 E4 18 D7 [09:42:59]CommunicateWithHost err = 0 [09:42:59]CheckOFDResponse [09:42:59]1017 (14) - 77093643461234 [09:42:59]1041 (16) - 0000000000965400 [09:42:59]1040 (4) - 68286 [09:42:59]1012 (4) - 03.06.2024 03:23 [09:42:59]1206 (1) - 0 [09:42:59]OFD Sender: Remove packet 68286 [09:42:59]ProducePacketName [09:42:59]name=ofd_packets/00068286 [09:42:59]NVStorageDeleteData [09:42:59]Write to MH i2c: 01 00 00 EC 24 10 [09:42:59]Write i2c OK [09:42:59]MH_I2C_Read... [09:42:59]Read from MH i2c: 01 [09:42:59]MH_I2C_Read... [09:42:59]Read from MH i2c: 01 07 00 [09:42:59]MH_I2C_Read... [09:42:59]Read from MH i2c: 01 07 00 EC 24 00 00 00 00 00 FA 0C 1D [09:42:59]RasterBufferAndPrint [09:42:59]line [09:42:59]line [09:42:59]line [09:42:59]line [09:42:59]line [09:42:59]written 0, free lines is 3331 [09:42:59]MH_Cut [09:42:59]Write to MH i2c: D1 01 00 F3 24 01 E9 [09:42:59]Write i2c OK [09:42:59]MH_I2C_Read... [09:42:59]Read from MH i2c: D1 [09:42:59]MH_I2C_Read... [09:42:59]Read from MH i2c: D1 01 00 [09:42:59]MH_I2C_Read... [09:42:59]Read from MH i2c: D1 01 00 F3 24 00 E8 [09:42:59]Write to MH i2c: 01 00 00 F4 24 18 [09:42:59]Write i2c OK [09:42:59]MH_I2C_Read... [09:43:00]OFD Sender: No OFD packet to send [09:43:00]*** Cut start [09:43:00]*** Partial cut [09:43:00]*** CUTSNS_PIN = 1 [09:43:00]*** CUTSNS_PIN = 0 [09:43:00]*** Brake cut motor [09:43:01]Read from MH i2c: 01 [09:43:01]MH_I2C_Read... [09:43:01]*** Stop cut motor [09:43:01]*** Cut end [09:43:01]Read from MH i2c: 01 07 00 [09:43:01]MH_I2C_Read... [09:43:01]Read from MH i2c: 01 07 00 F4 24 00 00 00 00 00 FF 0F 2D [09:43:01]process_action close_receipt done [09:43:01]requested_data is exist [09:43:01]produce_requested_data [09:43:01]requested_item fm.sn is exist - process it [09:43:01]wFMCommunicate request_size=4 [09:43:01]MH_SAM_APDU [09:43:01]CAPDU: 80 11 00 00 [09:43:01]Write to MH i2c: E2 08 00 F5 24 80 11 00 00 00 00 00 00 93 [09:43:01]Write i2c OK [09:43:01]MH_I2C_Read... [09:43:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:01]Read from MH i2c: E2 [09:43:01]MH_I2C_Read... [09:43:01]Read from MH i2c: E2 17 00 [09:43:01]MH_I2C_Read... [09:43:01]Read from MH i2c: E2 17 00 F5 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 DE [09:43:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [09:43:01]wFMCommunicate OK [09:43:01]requested_item fd.num is exist - process it [09:43:01]SAM_PROTO_GetFieldsCounters [09:43:01]wFMCommunicate request_size=4 [09:43:01]MH_SAM_APDU [09:43:01]CAPDU: 80 13 00 00 [09:43:01]Write to MH i2c: E2 08 00 F6 24 80 13 00 00 00 00 00 00 96 [09:43:01]Write i2c OK [09:43:01]MH_I2C_Read... [09:43:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:43:01]Read from MH i2c: E2 [09:43:01]MH_I2C_Read... [09:43:01]Read from MH i2c: E2 62 00 [09:43:01]MH_I2C_Read... [09:43:01]Read from MH i2c: E2 62 00 F6 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 BE 0A 01 00 0E 04 04 00 44 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 24 [09:43:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 BE 0A 01 00 0E 04 04 00 44 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 [09:43:01]wFMCommunicate OK [09:43:01]SAM_PROTO_GetFieldsCounters done [09:43:01]requested_item shift.num is exist - process it [09:43:01]requested_item shift.opened is exist - process it [09:43:01]req_shift_opened [09:43:01]FM_GetShiftState [09:43:01]SAM_PROTO_GetShiftState [09:43:01]wFMCommunicate request_size=4 [09:43:01]MH_SAM_APDU [09:43:01]CAPDU: 80 13 01 00 [09:43:01]Write to MH i2c: E2 08 00 F7 24 80 13 01 00 00 00 00 00 98 [09:43:01]Write i2c OK [09:43:01]MH_I2C_Read... [09:43:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:01]Read from MH i2c: E2 [09:43:01]MH_I2C_Read... [09:43:01]Read from MH i2c: E2 0E 00 [09:43:01]MH_I2C_Read... [09:43:01]Read from MH i2c: E2 0E 00 F7 24 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 73 [09:43:01]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [09:43:01]wFMCommunicate OK [09:43:01]SAM_PROTO_GetShiftState done [09:43:01]FM_GetShiftState done [09:43:01]req_shift_opened done [09:43:01]requested_item shift.open_date is exist - process it [09:43:01]req_shift_open_date [09:43:01]req_shift_open_date done [09:43:01]produce_requested_data done [09:43:01]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68286,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [09:43:01]process_action_free close_receipt [09:43:01]json_value_free [09:43:01]json_value_free done [09:43:01]process_json_proto returns [09:43:01]Send response to host [09:43:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68286,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [09:43:01]free response buf [09:43:01]execute_script done [09:43:01]execute_script returns [09:43:01]free content buf [09:43:01]Sock 9.Close socket [09:43:01]Sock 9.Thread stoped [09:43:05]OFD Sender: No OFD packet to send [09:43:10]OFD Sender: No OFD packet to send [09:43:15]OFD Sender: No OFD packet to send [09:43:20]OFD Sender: No OFD packet to send [09:43:25]OFD Sender: No OFD packet to send [09:43:30]OFD Sender: No OFD packet to send [09:43:35]OFD Sender: No OFD packet to send [09:43:40]OFD Sender: No OFD packet to send [09:43:45]OFD Sender: No OFD packet to send [09:43:50]OFD Sender: No OFD packet to send [09:43:55]OFD Sender: No OFD packet to send [09:44:00]OFD Sender: No OFD packet to send [09:44:05]OFD Sender: No OFD packet to send [09:44:10]OFD Sender: No OFD packet to send [09:44:15]OFD Sender: No OFD packet to send [09:44:20]OFD Sender: No OFD packet to send [09:44:25]OFD Sender: No OFD packet to send [09:44:30]OFD Sender: No OFD packet to send [09:44:35]OFD Sender: No OFD packet to send [09:44:40]OFD Sender: No OFD packet to send [09:44:45]OFD Sender: No OFD packet to send [09:44:50]OFD Sender: No OFD packet to send [09:44:55]OFD Sender: No OFD packet to send [09:45:00]OFD Sender: No OFD packet to send [09:45:05]OFD Sender: No OFD packet to send [09:45:10]OFD Sender: No OFD packet to send [09:45:15]OFD Sender: No OFD packet to send [09:45:20]OFD Sender: No OFD packet to send [09:45:25]OFD Sender: No OFD packet to send [09:45:30]OFD Sender: No OFD packet to send [09:45:35]OFD Sender: No OFD packet to send [09:45:40]OFD Sender: No OFD packet to send [09:45:45]OFD Sender: No OFD packet to send [09:45:50]OFD Sender: No OFD packet to send [09:45:55]OFD Sender: No OFD packet to send [09:46:00]OFD Sender: No OFD packet to send [09:46:05]OFD Sender: No OFD packet to send [09:46:06]accept exits with 7 [09:46:06]New connection [09:46:06]New thread 3066543460 created [09:46:06]Thread 3066686820 joined [09:46:06]Waiting for new connection... [09:46:06] Sock 7.Parse request [09:46:06]Sock 7.Check first char [09:46:06]Sock 7.First char is OK [09:46:06]request: POST /json_proto HTTP/1.0 [09:46:06]Method: POST [09:46:06]URL: /json_proto [09:46:06]Method is POST - this is cgi request [09:46:06]url: /json_proto [09:46:06]query_string will be loaded in cgi processing [09:46:06]execute_cgi json_proto POST (null) [09:46:06]execute_cgi path=json_proto method=POST [09:46:06]POST find Content-Length [09:46:06]Host: 172.17.36.132:8080 [09:46:06]Content-Length: 675 [09:46:06]Content-Type: application/json [09:46:06] [09:46:06]POST finish read [09:46:06]Found Content-Length = 675 [09:46:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706358", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 14.730, "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" ] } } [09:46:06]execute_script... [09:46:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706358", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 14.730, "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" ] } } [09:46:06]POST & json_proto [09:46:06]process_json_proto [09:46:06]json parsed OK: [09:46:06]protocol is kg_v1.0 [09:46:06]action value=close_receipt [09:46:06]process_action close_receipt [09:46:06]cmd_close_receipt [09:46:06]MH_GetDate [09:46:06]Write to MH i2c: F0 00 00 F8 24 0B [09:46:06]Write i2c OK [09:46:06]MH_I2C_Read... [09:46:06]Read from MH i2c: F0 [09:46:06]MH_I2C_Read... [09:46:06]Read from MH i2c: F0 09 00 [09:46:06]MH_I2C_Read... [09:46:06]Read from MH i2c: F0 09 00 F8 24 00 E3 90 5D 66 B2 22 B0 64 32 [09:46:06]GetLastDocTimeStamp 1717407781 [09:46:06]current date 1717407971 [09:46:06]FM_GetShiftState [09:46:06]SAM_PROTO_GetShiftState [09:46:06]wFMCommunicate request_size=4 [09:46:06]MH_SAM_APDU [09:46:06]CAPDU: 80 13 01 00 [09:46:06]Write to MH i2c: E2 08 00 F9 24 80 13 01 00 00 00 00 00 9A [09:46:06]Write i2c OK [09:46:06]MH_I2C_Read... [09:46:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:06]Read from MH i2c: E2 [09:46:06]MH_I2C_Read... [09:46:06]Read from MH i2c: E2 0E 00 [09:46:06]MH_I2C_Read... [09:46:06]Read from MH i2c: E2 0E 00 F9 24 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 75 [09:46:06]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [09:46:06]wFMCommunicate OK [09:46:06]SAM_PROTO_GetShiftState done [09:46:06]FM_GetShiftState done [09:46:06]opened in 1717378033 [09:46:06]opened+sec_in_day 1717464433 [09:46:06]quantity*price = 100016 [09:46:06]sum+1 = 100018 [09:46:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 33 03.06.2024 09:46 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68287 ФПД: 151593899906469 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T094611&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68287&fm=151593899906469&tin=02508201610067®Number=0000000000098096&sum=100000 [09:46:07]StoreToDocumentArchive [09:46:07]shift 324 fd 68287 [09:46:07]save to /storage/0324/doc_00068287 [09:46:07]save last doc name /storage/0324/doc_00068287 to /storage/kkm_last_doc_name [09:46:07]save OK [09:46:07]Clear old archive folders... [09:46:07]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:46:07]tlvbuf is 00461A50 [09:46:07]SAM_PROTO_ClearQueue [09:46:07]wFMCommunicate request_size=4 [09:46:07]MH_SAM_APDU [09:46:07]CAPDU: 80 09 00 00 [09:46:07]Write to MH i2c: E2 08 00 06 25 80 09 00 00 00 00 00 00 9D [09:46:07]Write i2c OK [09:46:07]MH_I2C_Read... [09:46:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:46:07]Read from MH i2c: E2 [09:46:07]MH_I2C_Read... [09:46:07]Read from MH i2c: E2 03 00 [09:46:07]MH_I2C_Read... [09:46:07]Read from MH i2c: E2 03 00 06 25 00 90 00 9F [09:46:07]RAPDU: 90 00 [09:46:07]wFMCommunicate OK [09:46:07]SAM_PROTO_ClearQueue done [09:46:07]KKMCreateOFDPacket [09:46:07]OFDProtocolAddRootSTLVToBuf [09:46:07]FM_MakeSignedData [09:46:07]FM_MakeSignedData [09:46:07]SAM_PROTO_SignData [09:46:07]wFMCommunicate request_size=4 [09:46:07]MH_SAM_APDU [09:46:07]CAPDU: 80 0D 01 02 [09:46:07]Write to MH i2c: E2 08 00 07 25 80 0D 01 02 00 00 00 00 A5 [09:46:07]Write i2c OK [09:46:07]MH_I2C_Read... [09:46:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:46:07]Read from MH i2c: E2 [09:46:07]MH_I2C_Read... [09:46:07]Read from MH i2c: E2 03 00 [09:46:07]MH_I2C_Read... [09:46:07]Read from MH i2c: E2 03 00 07 25 00 90 00 A0 [09:46:07]RAPDU: 90 00 [09:46:07]wFMCommunicate OK [09:46:07]wFMCommunicate request_size=255 [09:46:07]MH_SAM_APDU [09:46:07]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 39 00 00 00 00 00 37 04 06 00 86 1A 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 21 00 00 00 F4 03 04 00 E3 90 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 BF 0A 01 00 35 04 06 00 [09:46:07]Write to MH i2c: E2 02 01 08 25 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 39 00 00 00 00 00 37 04 06 00 86 1A 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 21 00 00 00 F4 03 04 00 E3 90 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 BF 0A 01 00 35 04 06 00 00 00 45 [09:46:07]Write i2c OK [09:46:07]MH_I2C_Read... [09:46:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:08]Read from MH i2c: E2 [09:46:08]MH_I2C_Read... [09:46:08]Read from MH i2c: E2 03 00 [09:46:08]MH_I2C_Read... [09:46:08]Read from MH i2c: E2 03 00 08 25 00 90 00 A1 [09:46:08]RAPDU: 90 00 [09:46:08]wFMCommunicate OK [09:46:08]wFMCommunicate request_size=11 [09:46:08]MH_SAM_APDU [09:46:08]CAPDU: 80 0D 02 02 06 89 DF B4 8D D5 A5 [09:46:08]Write to MH i2c: E2 0E 00 09 25 80 0D 02 02 06 00 89 DF B4 8D D5 A5 00 00 D7 [09:46:08]Write i2c OK [09:46:08]MH_I2C_Read... [09:46:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:08]Read from MH i2c: E2 [09:46:08]MH_I2C_Read... [09:46:08]Read from MH i2c: E2 03 00 [09:46:08]MH_I2C_Read... [09:46:08]Read from MH i2c: E2 03 00 09 25 00 90 00 A2 [09:46:08]RAPDU: 90 00 [09:46:08]wFMCommunicate OK [09:46:08]wFMCommunicate request_size=4 [09:46:08]MH_SAM_APDU [09:46:08]CAPDU: 80 0D 03 02 [09:46:08]Write to MH i2c: E2 08 00 0A 25 80 0D 03 02 00 00 00 00 AA [09:46:08]Write i2c OK [09:46:08]MH_I2C_Read... [09:46:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:46:08]Read from MH i2c: E2 [09:46:08]MH_I2C_Read... [09:46:08]Read from MH i2c: E2 0B 00 [09:46:08]MH_I2C_Read... [09:46:08]Read from MH i2c: E2 0B 00 0A 25 00 E6 27 43 64 92 63 80 DF 90 00 B3 [09:46:08]RAPDU: E6 27 43 64 92 63 80 DF 90 00 [09:46:08]wFMCommunicate OK [09:46:08]SAM_PROTO_SignData done [09:46:08]FM_MakeSignedData done [09:46:08]CreateOFDProtocolMessage [09:46:08]wFMCommunicate request_size=4 [09:46:08]MH_SAM_APDU [09:46:08]CAPDU: 80 11 00 00 [09:46:08]Write to MH i2c: E2 08 00 0B 25 80 11 00 00 00 00 00 00 AA [09:46:08]Write i2c OK [09:46:08]MH_I2C_Read... [09:46:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:08]Read from MH i2c: E2 [09:46:08]MH_I2C_Read... [09:46:08]Read from MH i2c: E2 17 00 [09:46:08]MH_I2C_Read... [09:46:08]Read from MH i2c: E2 17 00 0B 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 F5 [09:46:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [09:46:08]wFMCommunicate OK [09:46:08]CreateOFDProtocolMessage done [09:46:08]OFDSenderStorePacket 68287 [09:46:08]StoreOFDPacket docnum=68287 [09:46:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 50 65 08 01 46 E8 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 39 00 00 00 00 00 37 04 06 00 86 1A 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 21 00 00 00 F4 03 04 00 E3 90 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 BF 0A 01 00 35 04 06 00 89 DF B4 8D D5 A5 E6 27 43 64 92 63 80 DF [09:46:08]CheckFolder [09:46:08]dirname=/storage/ofd_packets [09:46:08]CheckFolder done [09:46:08]ProducePacketName [09:46:08]name=ofd_packets/00068287 [09:46:08]NVStorageSaveData ofd_packets/00068287 [09:46:08]File name is /storage/ofd_packets/00068287 [09:46:08]Write 302 bytes [09:46:08]NVStorageSaveData done [09:46:08]OFDSenderStorePacket done [09:46:08]KKMCreateOFDPacket done [09:46:08]NVStorageSaveData kkm_last_timestamp [09:46:08]File name is /storage/kkm_last_timestamp [09:46:08]Write 4 bytes [09:46:08]NVStorageSaveData done [09:46:08]ExternCall_PrintAddStr [09:46:08]wPrintStart [09:46:08]Write to MH i2c: 01 00 00 0C 25 31 [09:46:08]Write i2c OK [09:46:08]MH_I2C_Read... [09:46:08]Read from MH i2c: 01 [09:46:08]MH_I2C_Read... [09:46:08]Read from MH i2c: 01 07 00 [09:46:08]MH_I2C_Read... [09:46:08]Read from MH i2c: 01 07 00 0C 25 00 00 00 00 00 FF 0F 46 [09:46:08]RasterBufferAndPrint [09:46:08]line Счет N : (1)706358 [09:46:08]line ИНН: 02508201610067 [09:46:08]line Контрольно-Кассовый Чек [09:46:08]line ПРОДАЖА [09:46:08]line ТРК (МРК, ГНК) : 41 [09:46:08]line Товар: 2710124130 [09:46:08]line Super-92-К-5 [09:46:08]line 14.730 * 67.90 [09:46:08]line = 1000.17 [09:46:08]line НДС 12% НСП 1% [09:46:08]line > о реализуемом товаре [09:46:08]line ОКРУГЛЕНИЕ: -0.17 [09:46:08]line ИТОГО: 1000.00 [09:46:08]line Внесено: 1000.00 [09:46:08]line СДАЧА: 0.00 [09:46:08]line НСП 1% : 8.85 [09:46:08]line НДС 12% : 106.21 [09:46:08]line Наличными: 1000.00 [09:46:08]line Безнал.: 0.00 [09:46:08]line Место: АЗС № 62 "Партнер Нефть" [09:46:08]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [09:46:08]line СНО: Общий режим [09:46:08]line Чек 33 03.06.2024 09:46 [09:46:08]line Смена: 324 ФФД: 1.0 [09:46:08]line ЗНМ: 0300000181 [09:46:08]line РНМ: 0000000000098096 [09:46:08]line Версия ККМ: 001 [09:46:08]line ФМ: 0000000000965400 [09:46:08]line ФД: 68287 [09:46:08]line ФПД: 151593899906469 [09:46:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T094611&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68287&fm=151593899906469&tin=02508201610067®Number=0000000000098096&sum=100000 [09:46:08]OFD Sender: Processing packet 68287 [packets to send 26, broken 25] [09:46:08]ProducePacketName [09:46:08]name=ofd_packets/00068287 [09:46:08]OFD Sender: To server: pG, [09:46:08]CommunicateWithHost lk.salyk.kg:30040 [09:46:08]ConnectInit lk.salyk.kg [09:46:08]written 0, free lines is 4095 [09:46:08]Connected sock=10 [09:46:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 50 65 08 01 46 E8 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 39 00 00 00 00 00 37 04 06 00 86 1A 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 21 00 00 00 F4 03 04 00 E3 90 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 BF 0A 01 00 35 04 06 00 89 DF B4 8D D5 A5 E6 27 43 64 92 63 80 DF [09:46:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 42 61 47 00 D7 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 BF 0A 01 00 F4 03 04 00 DF 37 5D 66 B6 04 01 00 00 AF 38 EA DC AD 71 E3 F5 [09:46:08]CommunicateWithHost err = 0 [09:46:08]CheckOFDResponse [09:46:08]1017 (14) - 77093643461234 [09:46:08]1041 (16) - 0000000000965400 [09:46:08]1040 (4) - 68287 [09:46:08]1012 (4) - 03.06.2024 03:26 [09:46:08]1206 (1) - 0 [09:46:08]OFD Sender: Remove packet 68287 [09:46:08]ProducePacketName [09:46:08]name=ofd_packets/00068287 [09:46:08]NVStorageDeleteData [09:46:09]Write to MH i2c: 01 00 00 37 25 5C [09:46:09]Write i2c OK [09:46:09]MH_I2C_Read... [09:46:09]Read from MH i2c: 01 [09:46:09]MH_I2C_Read... [09:46:09]Read from MH i2c: 01 07 00 [09:46:09]MH_I2C_Read... [09:46:09]Read from MH i2c: 01 07 00 37 25 00 00 00 00 00 E6 0C 55 [09:46:09]RasterBufferAndPrint [09:46:09]line [09:46:09]line [09:46:09]line [09:46:09]line [09:46:09]line [09:46:09]written 0, free lines is 3308 [09:46:09]MH_Cut [09:46:09]Write to MH i2c: D1 01 00 3E 25 01 35 [09:46:09]Write i2c OK [09:46:09]MH_I2C_Read... [09:46:09]Read from MH i2c: D1 [09:46:09]MH_I2C_Read... [09:46:09]Read from MH i2c: D1 01 00 [09:46:09]MH_I2C_Read... [09:46:09]Read from MH i2c: D1 01 00 3E 25 00 34 [09:46:09]Write to MH i2c: 01 00 00 3F 25 64 [09:46:09]Write i2c OK [09:46:09]MH_I2C_Read... [09:46:09]OFD Sender: No OFD packet to send [09:46:09]*** Cut start [09:46:09]*** Partial cut [09:46:09]*** CUTSNS_PIN = 1 [09:46:09]*** CUTSNS_PIN = 0 [09:46:10]*** Brake cut motor [09:46:10]Read from MH i2c: 01 [09:46:10]MH_I2C_Read... [09:46:10]*** Stop cut motor [09:46:10]*** Cut end [09:46:10]Read from MH i2c: 01 07 00 [09:46:10]MH_I2C_Read... [09:46:10]Read from MH i2c: 01 07 00 3F 25 00 00 00 00 00 FF 0F 79 [09:46:10]process_action close_receipt done [09:46:10]requested_data is exist [09:46:10]produce_requested_data [09:46:10]requested_item fm.sn is exist - process it [09:46:10]wFMCommunicate request_size=4 [09:46:10]MH_SAM_APDU [09:46:10]CAPDU: 80 11 00 00 [09:46:10]Write to MH i2c: E2 08 00 40 25 80 11 00 00 00 00 00 00 DF [09:46:10]Write i2c OK [09:46:10]MH_I2C_Read... [09:46:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:10]Read from MH i2c: E2 [09:46:10]MH_I2C_Read... [09:46:10]Read from MH i2c: E2 17 00 [09:46:10]MH_I2C_Read... [09:46:10]Read from MH i2c: E2 17 00 40 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 2A [09:46:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [09:46:10]wFMCommunicate OK [09:46:10]requested_item fd.num is exist - process it [09:46:10]SAM_PROTO_GetFieldsCounters [09:46:10]wFMCommunicate request_size=4 [09:46:10]MH_SAM_APDU [09:46:10]CAPDU: 80 13 00 00 [09:46:10]Write to MH i2c: E2 08 00 41 25 80 13 00 00 00 00 00 00 E2 [09:46:10]Write i2c OK [09:46:10]MH_I2C_Read... [09:46:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:46:10]Read from MH i2c: E2 [09:46:10]MH_I2C_Read... [09:46:10]Read from MH i2c: E2 62 00 [09:46:10]MH_I2C_Read... [09:46:10]Read from MH i2c: E2 62 00 41 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 BF 0A 01 00 0E 04 04 00 44 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 74 [09:46:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 BF 0A 01 00 0E 04 04 00 44 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 [09:46:10]wFMCommunicate OK [09:46:10]SAM_PROTO_GetFieldsCounters done [09:46:10]requested_item shift.num is exist - process it [09:46:10]requested_item shift.opened is exist - process it [09:46:10]req_shift_opened [09:46:10]FM_GetShiftState [09:46:10]SAM_PROTO_GetShiftState [09:46:10]wFMCommunicate request_size=4 [09:46:10]MH_SAM_APDU [09:46:10]CAPDU: 80 13 01 00 [09:46:10]Write to MH i2c: E2 08 00 42 25 80 13 01 00 00 00 00 00 E4 [09:46:10]Write i2c OK [09:46:10]MH_I2C_Read... [09:46:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:10]Read from MH i2c: E2 [09:46:10]MH_I2C_Read... [09:46:10]Read from MH i2c: E2 0E 00 [09:46:10]MH_I2C_Read... [09:46:10]Read from MH i2c: E2 0E 00 42 25 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 BF [09:46:10]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [09:46:10]wFMCommunicate OK [09:46:10]SAM_PROTO_GetShiftState done [09:46:10]FM_GetShiftState done [09:46:10]req_shift_opened done [09:46:10]requested_item shift.open_date is exist - process it [09:46:10]req_shift_open_date [09:46:10]req_shift_open_date done [09:46:10]produce_requested_data done [09:46:10]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68287,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [09:46:10]process_action_free close_receipt [09:46:10]json_value_free [09:46:10]json_value_free done [09:46:10]process_json_proto returns [09:46:10]Send response to host [09:46:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68287,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [09:46:10]free response buf [09:46:10]execute_script done [09:46:10]execute_script returns [09:46:10]free content buf [09:46:10]Sock 7.Close socket [09:46:10]Sock 7.Thread stoped [09:46:14]OFD Sender: No OFD packet to send [09:46:19]OFD Sender: No OFD packet to send [09:46:24]OFD Sender: No OFD packet to send [09:46:29]OFD Sender: No OFD packet to send [09:46:34]OFD Sender: No OFD packet to send [09:46:39]OFD Sender: No OFD packet to send [09:46:44]OFD Sender: No OFD packet to send [09:46:49]OFD Sender: No OFD packet to send [09:46:54]OFD Sender: No OFD packet to send [09:46:59]OFD Sender: No OFD packet to send [09:47:04]OFD Sender: No OFD packet to send [09:47:09]OFD Sender: No OFD packet to send [09:47:14]OFD Sender: No OFD packet to send [09:47:19]OFD Sender: No OFD packet to send [09:47:24]OFD Sender: No OFD packet to send [09:47:29]OFD Sender: No OFD packet to send [09:47:31]accept exits with 9 [09:47:31]New connection [09:47:31]New thread 3066686820 created [09:47:31]Thread 3066543460 joined [09:47:31]Waiting for new connection... [09:47:31] Sock 9.Parse request [09:47:31]Sock 9.Check first char [09:47:31]Sock 9.First char is OK [09:47:31]request: POST /json_proto HTTP/1.0 [09:47:31]Method: POST [09:47:31]URL: /json_proto [09:47:31]Method is POST - this is cgi request [09:47:31]url: /json_proto [09:47:31]query_string will be loaded in cgi processing [09:47:31]execute_cgi json_proto POST (null) [09:47:31]execute_cgi path=json_proto method=POST [09:47:31]POST find Content-Length [09:47:31]Host: 172.17.36.132:8080 [09:47:31]Content-Length: 677 [09:47:31]Content-Type: application/json [09:47:31] [09:47:31]POST finish read [09:47:31]Found Content-Length = 677 [09:47:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706359", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:47:31]execute_script... [09:47:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706359", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:47:31]POST & json_proto [09:47:31]process_json_proto [09:47:31]json parsed OK: [09:47:31]protocol is kg_v1.0 [09:47:31]action value=close_receipt [09:47:31]process_action close_receipt [09:47:31]cmd_close_receipt [09:47:31]MH_GetDate [09:47:31]Write to MH i2c: F0 00 00 43 25 57 [09:47:31]Write i2c OK [09:47:31]MH_I2C_Read... [09:47:31]Read from MH i2c: F0 [09:47:31]MH_I2C_Read... [09:47:31]Read from MH i2c: F0 09 00 [09:47:31]MH_I2C_Read... [09:47:31]Read from MH i2c: F0 09 00 43 25 00 38 91 5D 66 B2 22 B0 64 D4 [09:47:31]GetLastDocTimeStamp 1717407971 [09:47:31]current date 1717408056 [09:47:31]FM_GetShiftState [09:47:31]SAM_PROTO_GetShiftState [09:47:31]wFMCommunicate request_size=4 [09:47:31]MH_SAM_APDU [09:47:31]CAPDU: 80 13 01 00 [09:47:31]Write to MH i2c: E2 08 00 44 25 80 13 01 00 00 00 00 00 E6 [09:47:31]Write i2c OK [09:47:31]MH_I2C_Read... [09:47:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:31]Read from MH i2c: E2 [09:47:31]MH_I2C_Read... [09:47:31]Read from MH i2c: E2 0E 00 [09:47:31]MH_I2C_Read... [09:47:31]Read from MH i2c: E2 0E 00 44 25 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 C1 [09:47:31]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [09:47:31]wFMCommunicate OK [09:47:31]SAM_PROTO_GetShiftState done [09:47:31]FM_GetShiftState done [09:47:31]opened in 1717378033 [09:47:31]opened+sec_in_day 1717464433 [09:47:31]quantity*price = 50041 [09:47:31]sum+1 = 50042 [09:47:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 34 03.06.2024 09:47 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68288 ФПД: 256952624889737 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T094736&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68288&fm=256952624889737&tin=02508201610067®Number=0000000000098096&sum=50000 [09:47:33]StoreToDocumentArchive [09:47:33]shift 324 fd 68288 [09:47:33]save to /storage/0324/doc_00068288 [09:47:33]save last doc name /storage/0324/doc_00068288 to /storage/kkm_last_doc_name [09:47:33]save OK [09:47:33]Clear old archive folders... [09:47:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:47:33]tlvbuf is B6D67640 [09:47:33]SAM_PROTO_ClearQueue [09:47:33]wFMCommunicate request_size=4 [09:47:33]MH_SAM_APDU [09:47:33]CAPDU: 80 09 00 00 [09:47:33]Write to MH i2c: E2 08 00 51 25 80 09 00 00 00 00 00 00 E8 [09:47:33]Write i2c OK [09:47:33]MH_I2C_Read... [09:47:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:47:33]Read from MH i2c: E2 [09:47:33]MH_I2C_Read... [09:47:33]Read from MH i2c: E2 03 00 [09:47:33]MH_I2C_Read... [09:47:33]Read from MH i2c: E2 03 00 51 25 00 90 00 EA [09:47:33]RAPDU: 90 00 [09:47:33]wFMCommunicate OK [09:47:33]SAM_PROTO_ClearQueue done [09:47:33]KKMCreateOFDPacket [09:47:33]OFDProtocolAddRootSTLVToBuf [09:47:33]FM_MakeSignedData [09:47:33]FM_MakeSignedData [09:47:33]SAM_PROTO_SignData [09:47:33]wFMCommunicate request_size=4 [09:47:33]MH_SAM_APDU [09:47:33]CAPDU: 80 0D 01 02 [09:47:33]Write to MH i2c: E2 08 00 52 25 80 0D 01 02 00 00 00 00 F0 [09:47:33]Write i2c OK [09:47:33]MH_I2C_Read... [09:47:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:47:33]Read from MH i2c: E2 [09:47:33]MH_I2C_Read... [09:47:33]Read from MH i2c: E2 03 00 [09:47:33]MH_I2C_Read... [09:47:33]Read from MH i2c: E2 03 00 52 25 00 90 00 EB [09:47:33]RAPDU: 90 00 [09:47:33]wFMCommunicate OK [09:47:33]wFMCommunicate request_size=255 [09:47:33]MH_SAM_APDU [09:47:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 38 91 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C0 0A 01 00 35 04 06 00 E9 [09:47:33]Write to MH i2c: E2 02 01 53 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 38 91 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C0 0A 01 00 35 04 06 00 E9 00 00 24 [09:47:33]Write i2c OK [09:47:33]MH_I2C_Read... [09:47:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:33]Read from MH i2c: E2 [09:47:33]MH_I2C_Read... [09:47:33]Read from MH i2c: E2 03 00 [09:47:33]MH_I2C_Read... [09:47:33]Read from MH i2c: E2 03 00 53 25 00 90 00 EC [09:47:33]RAPDU: 90 00 [09:47:33]wFMCommunicate OK [09:47:33]wFMCommunicate request_size=10 [09:47:33]MH_SAM_APDU [09:47:33]CAPDU: 80 0D 02 02 05 B2 71 EE 3F 89 [09:47:33]Write to MH i2c: E2 0D 00 54 25 80 0D 02 02 05 00 B2 71 EE 3F 89 00 00 D6 [09:47:33]Write i2c OK [09:47:33]MH_I2C_Read... [09:47:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:33]Read from MH i2c: E2 [09:47:33]MH_I2C_Read... [09:47:33]Read from MH i2c: E2 03 00 [09:47:33]MH_I2C_Read... [09:47:33]Read from MH i2c: E2 03 00 54 25 00 90 00 ED [09:47:33]RAPDU: 90 00 [09:47:33]wFMCommunicate OK [09:47:33]wFMCommunicate request_size=4 [09:47:33]MH_SAM_APDU [09:47:33]CAPDU: 80 0D 03 02 [09:47:33]Write to MH i2c: E2 08 00 55 25 80 0D 03 02 00 00 00 00 F5 [09:47:33]Write i2c OK [09:47:33]MH_I2C_Read... [09:47:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:47:33]Read from MH i2c: E2 [09:47:33]MH_I2C_Read... [09:47:33]Read from MH i2c: E2 0B 00 [09:47:33]MH_I2C_Read... [09:47:33]Read from MH i2c: E2 0B 00 55 25 00 0F EC 89 EE C4 BC 82 E1 90 00 4B [09:47:33]RAPDU: 0F EC 89 EE C4 BC 82 E1 90 00 [09:47:33]wFMCommunicate OK [09:47:33]SAM_PROTO_SignData done [09:47:33]FM_MakeSignedData done [09:47:33]CreateOFDProtocolMessage [09:47:33]wFMCommunicate request_size=4 [09:47:33]MH_SAM_APDU [09:47:33]CAPDU: 80 11 00 00 [09:47:33]Write to MH i2c: E2 08 00 56 25 80 11 00 00 00 00 00 00 F5 [09:47:33]Write i2c OK [09:47:33]MH_I2C_Read... [09:47:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:33]Read from MH i2c: E2 [09:47:33]MH_I2C_Read... [09:47:33]Read from MH i2c: E2 17 00 [09:47:33]MH_I2C_Read... [09:47:33]Read from MH i2c: E2 17 00 56 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 40 [09:47:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [09:47:33]wFMCommunicate OK [09:47:33]CreateOFDProtocolMessage done [09:47:33]OFDSenderStorePacket 68288 [09:47:33]StoreOFDPacket docnum=68288 [09:47:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 1B DC 07 01 A8 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 38 91 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C0 0A 01 00 35 04 06 00 E9 B2 71 EE 3F 89 0F EC 89 EE C4 BC 82 E1 [09:47:33]CheckFolder [09:47:33]dirname=/storage/ofd_packets [09:47:33]CheckFolder done [09:47:33]ProducePacketName [09:47:33]name=ofd_packets/00068288 [09:47:33]NVStorageSaveData ofd_packets/00068288 [09:47:33]File name is /storage/ofd_packets/00068288 [09:47:33]Write 301 bytes [09:47:33]NVStorageSaveData done [09:47:33]OFDSenderStorePacket done [09:47:33]KKMCreateOFDPacket done [09:47:33]NVStorageSaveData kkm_last_timestamp [09:47:33]File name is /storage/kkm_last_timestamp [09:47:33]Write 4 bytes [09:47:33]NVStorageSaveData done [09:47:33]ExternCall_PrintAddStr [09:47:33]wPrintStart [09:47:33]Write to MH i2c: 01 00 00 57 25 7C [09:47:33]Write i2c OK [09:47:33]MH_I2C_Read... [09:47:33]Read from MH i2c: 01 [09:47:33]MH_I2C_Read... [09:47:33]Read from MH i2c: 01 07 00 [09:47:33]MH_I2C_Read... [09:47:33]Read from MH i2c: 01 07 00 57 25 00 00 00 00 00 FF 0F 91 [09:47:33]RasterBufferAndPrint [09:47:33]line Счет N : (1)706359 [09:47:33]line ИНН: 02508201610067 [09:47:33]line Контрольно-Кассовый Чек [09:47:33]line ПРОДАЖА [09:47:33]line ТРК (МРК, ГНК) : 23 [09:47:33]line Товар: 2710124130 [09:47:33]line Аи-92-К-4 [09:47:33]line 7.480 * 66.90 [09:47:33]line = 500.41 [09:47:33]line НДС 12% НСП 1% [09:47:33]line > о реализуемом товаре [09:47:33]line ОКРУГЛЕНИЕ: -0.41 [09:47:33]line ИТОГО: 500.00 [09:47:33]line Внесено: 500.00 [09:47:33]line СДАЧА: 0.00 [09:47:33]line НСП 1% : 4.43 [09:47:33]line НДС 12% : 53.14 [09:47:33]line Наличными: 500.00 [09:47:33]line Безнал.: 0.00 [09:47:33]line Место: АЗС № 62 "Партнер Нефть" [09:47:33]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [09:47:33]line СНО: Общий режим [09:47:33]line Чек 34 03.06.2024 09:47 [09:47:33]line Смена: 324 ФФД: 1.0 [09:47:33]line ЗНМ: 0300000181 [09:47:33]line РНМ: 0000000000098096 [09:47:33]line Версия ККМ: 001 [09:47:33]line ФМ: 0000000000965400 [09:47:33]line ФД: 68288 [09:47:33]line ФПД: 256952624889737 [09:47:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T094736&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68288&fm=256952624889737&tin=02508201610067®Number=0000000000098096&sum=50000 [09:47:33]OFD Sender: Processing packet 68288 [packets to send 26, broken 25] [09:47:33]ProducePacketName [09:47:33]name=ofd_packets/00068288 [09:47:33]OFD Sender: To server: pG, [09:47:33]CommunicateWithHost lk.salyk.kg:30040 [09:47:33]ConnectInit lk.salyk.kg [09:47:33]written 0, free lines is 4095 [09:47:34]Connected sock=11 [09:47:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 1B DC 07 01 A8 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 38 91 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C0 0A 01 00 35 04 06 00 E9 B2 71 EE 3F 89 0F EC 89 EE C4 BC 82 E1 [09:47:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 F1 65 47 00 68 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C0 0A 01 00 F4 03 04 00 34 38 5D 66 B6 04 01 00 00 7F 92 15 5C 4B E7 A6 2E [09:47:34]CommunicateWithHost err = 0 [09:47:34]CheckOFDResponse [09:47:34]1017 (14) - 77093643461234 [09:47:34]1041 (16) - 0000000000965400 [09:47:34]1040 (4) - 68288 [09:47:34]1012 (4) - 03.06.2024 03:27 [09:47:34]1206 (1) - 0 [09:47:34]OFD Sender: Remove packet 68288 [09:47:34]ProducePacketName [09:47:34]name=ofd_packets/00068288 [09:47:34]NVStorageDeleteData [09:47:34]Write to MH i2c: 01 00 00 82 25 A7 [09:47:34]Write i2c OK [09:47:34]MH_I2C_Read... [09:47:34]Read from MH i2c: 01 [09:47:34]MH_I2C_Read... [09:47:34]Read from MH i2c: 01 07 00 [09:47:34]MH_I2C_Read... [09:47:34]Read from MH i2c: 01 07 00 82 25 00 00 00 00 00 E1 0C 9B [09:47:34]RasterBufferAndPrint [09:47:34]line [09:47:34]line [09:47:34]line [09:47:34]line [09:47:34]line [09:47:34]written 0, free lines is 3303 [09:47:34]MH_Cut [09:47:34]Write to MH i2c: D1 01 00 89 25 01 80 [09:47:34]Write i2c OK [09:47:34]MH_I2C_Read... [09:47:34]Read from MH i2c: D1 [09:47:34]MH_I2C_Read... [09:47:34]Read from MH i2c: D1 01 00 [09:47:34]MH_I2C_Read... [09:47:34]Read from MH i2c: D1 01 00 89 25 00 7F [09:47:34]Write to MH i2c: 01 00 00 8A 25 AF [09:47:34]Write i2c OK [09:47:34]MH_I2C_Read... [09:47:34]OFD Sender: No OFD packet to send [09:47:35]*** Cut start [09:47:35]*** Partial cut [09:47:35]*** CUTSNS_PIN = 1 [09:47:35]*** CUTSNS_PIN = 0 [09:47:35]*** Brake cut motor [09:47:35]Read from MH i2c: 01 [09:47:35]MH_I2C_Read... [09:47:35]*** Stop cut motor [09:47:35]*** Cut end [09:47:35]Read from MH i2c: 01 07 00 [09:47:35]MH_I2C_Read... [09:47:35]Read from MH i2c: 01 07 00 8A 25 00 00 00 00 00 FF 0F C4 [09:47:35]process_action close_receipt done [09:47:35]requested_data is exist [09:47:35]produce_requested_data [09:47:35]requested_item fm.sn is exist - process it [09:47:35]wFMCommunicate request_size=4 [09:47:35]MH_SAM_APDU [09:47:35]CAPDU: 80 11 00 00 [09:47:35]Write to MH i2c: E2 08 00 8B 25 80 11 00 00 00 00 00 00 2A [09:47:35]Write i2c OK [09:47:35]MH_I2C_Read... [09:47:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:35]Read from MH i2c: E2 [09:47:35]MH_I2C_Read... [09:47:35]Read from MH i2c: E2 17 00 [09:47:35]MH_I2C_Read... [09:47:35]Read from MH i2c: E2 17 00 8B 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 75 [09:47:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [09:47:35]wFMCommunicate OK [09:47:35]requested_item fd.num is exist - process it [09:47:35]SAM_PROTO_GetFieldsCounters [09:47:35]wFMCommunicate request_size=4 [09:47:35]MH_SAM_APDU [09:47:35]CAPDU: 80 13 00 00 [09:47:35]Write to MH i2c: E2 08 00 8C 25 80 13 00 00 00 00 00 00 2D [09:47:35]Write i2c OK [09:47:35]MH_I2C_Read... [09:47:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:47:35]Read from MH i2c: E2 [09:47:35]MH_I2C_Read... [09:47:35]Read from MH i2c: E2 62 00 [09:47:35]MH_I2C_Read... [09:47:35]Read from MH i2c: E2 62 00 8C 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 C0 0A 01 00 0E 04 04 00 44 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 C3 [09:47:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 C0 0A 01 00 0E 04 04 00 44 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:47:35]wFMCommunicate OK [09:47:35]SAM_PROTO_GetFieldsCounters done [09:47:35]requested_item shift.num is exist - process it [09:47:35]requested_item shift.opened is exist - process it [09:47:35]req_shift_opened [09:47:35]FM_GetShiftState [09:47:35]SAM_PROTO_GetShiftState [09:47:35]wFMCommunicate request_size=4 [09:47:35]MH_SAM_APDU [09:47:35]CAPDU: 80 13 01 00 [09:47:35]Write to MH i2c: E2 08 00 8D 25 80 13 01 00 00 00 00 00 2F [09:47:35]Write i2c OK [09:47:35]MH_I2C_Read... [09:47:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:36]Read from MH i2c: E2 [09:47:36]MH_I2C_Read... [09:47:36]Read from MH i2c: E2 0E 00 [09:47:36]MH_I2C_Read... [09:47:36]Read from MH i2c: E2 0E 00 8D 25 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 0A [09:47:36]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [09:47:36]wFMCommunicate OK [09:47:36]SAM_PROTO_GetShiftState done [09:47:36]FM_GetShiftState done [09:47:36]req_shift_opened done [09:47:36]requested_item shift.open_date is exist - process it [09:47:36]req_shift_open_date [09:47:36]req_shift_open_date done [09:47:36]produce_requested_data done [09:47:36]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68288,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [09:47:36]process_action_free close_receipt [09:47:36]json_value_free [09:47:36]json_value_free done [09:47:36]process_json_proto returns [09:47:36]Send response to host [09:47:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68288,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [09:47:36]free response buf [09:47:36]execute_script done [09:47:36]execute_script returns [09:47:36]free content buf [09:47:36]Sock 9.Close socket [09:47:36]Sock 9.Thread stoped [09:47:39]OFD Sender: No OFD packet to send [09:47:44]OFD Sender: No OFD packet to send [09:47:49]OFD Sender: No OFD packet to send [09:47:54]OFD Sender: No OFD packet to send [09:47:59]OFD Sender: No OFD packet to send [09:48:04]OFD Sender: No OFD packet to send [09:48:09]OFD Sender: No OFD packet to send [09:48:14]OFD Sender: No OFD packet to send [09:48:19]OFD Sender: No OFD packet to send [09:48:24]OFD Sender: No OFD packet to send [09:48:29]OFD Sender: No OFD packet to send [09:48:34]OFD Sender: No OFD packet to send [09:48:39]OFD Sender: No OFD packet to send [09:48:44]OFD Sender: No OFD packet to send [09:48:49]OFD Sender: No OFD packet to send [09:48:54]OFD Sender: No OFD packet to send [09:48:59]OFD Sender: No OFD packet to send [09:49:04]OFD Sender: No OFD packet to send [09:49:09]OFD Sender: No OFD packet to send [09:49:14]OFD Sender: No OFD packet to send [09:49:19]OFD Sender: No OFD packet to send [09:49:24]OFD Sender: No OFD packet to send [09:49:29]OFD Sender: No OFD packet to send [09:49:34]OFD Sender: No OFD packet to send [09:49:39]OFD Sender: No OFD packet to send [09:49:44]OFD Sender: No OFD packet to send [09:49:49]OFD Sender: No OFD packet to send [09:49:51]accept exits with 7 [09:49:51]New connection [09:49:51]New thread 3066543460 created [09:49:51]Thread 3066686820 joined [09:49:51]Waiting for new connection... [09:49:51] Sock 7.Parse request [09:49:51]Sock 7.Check first char [09:49:51]Sock 7.First char is OK [09:49:51]request: POST /json_proto HTTP/1.0 [09:49:51]Method: POST [09:49:51]URL: /json_proto [09:49:51]Method is POST - this is cgi request [09:49:51]url: /json_proto [09:49:51]query_string will be loaded in cgi processing [09:49:51]execute_cgi json_proto POST (null) [09:49:51]execute_cgi path=json_proto method=POST [09:49:51]POST find Content-Length [09:49:51]Host: 172.17.36.132:8080 [09:49:51]Content-Length: 682 [09:49:51]Content-Type: application/json [09:49:51] [09:49:51]POST finish read [09:49:51]Found Content-Length = 682 [09:49:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706360", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:49:51]execute_script... [09:49:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706360", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:49:51]POST & json_proto [09:49:51]process_json_proto [09:49:51]json parsed OK: [09:49:51]protocol is kg_v1.0 [09:49:51]action value=close_receipt [09:49:51]process_action close_receipt [09:49:51]cmd_close_receipt [09:49:51]MH_GetDate [09:49:51]Write to MH i2c: F0 00 00 8E 25 A2 [09:49:51]Write i2c OK [09:49:51]MH_I2C_Read... [09:49:51]Read from MH i2c: F0 [09:49:51]MH_I2C_Read... [09:49:51]Read from MH i2c: F0 09 00 [09:49:51]MH_I2C_Read... [09:49:51]Read from MH i2c: F0 09 00 8E 25 00 C4 91 5D 66 B2 22 B0 64 AB [09:49:51]GetLastDocTimeStamp 1717408056 [09:49:51]current date 1717408196 [09:49:51]FM_GetShiftState [09:49:51]SAM_PROTO_GetShiftState [09:49:51]wFMCommunicate request_size=4 [09:49:51]MH_SAM_APDU [09:49:51]CAPDU: 80 13 01 00 [09:49:51]Write to MH i2c: E2 08 00 8F 25 80 13 01 00 00 00 00 00 31 [09:49:51]Write i2c OK [09:49:51]MH_I2C_Read... [09:49:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:49:51]Read from MH i2c: E2 [09:49:51]MH_I2C_Read... [09:49:51]Read from MH i2c: E2 0E 00 [09:49:51]MH_I2C_Read... [09:49:51]Read from MH i2c: E2 0E 00 8F 25 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 0C [09:49:51]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [09:49:51]wFMCommunicate OK [09:49:51]SAM_PROTO_GetShiftState done [09:49:51]FM_GetShiftState done [09:49:51]opened in 1717378033 [09:49:51]opened+sec_in_day 1717464433 [09:49:51]quantity*price = 100015 [09:49:51]sum+1 = 100017 [09:49:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 35 03.06.2024 09:49 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68289 ФПД: 207643990924466 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T094956&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68289&fm=207643990924466&tin=02508201610067®Number=0000000000098096&sum=100000 [09:49:52]StoreToDocumentArchive [09:49:52]shift 324 fd 68289 [09:49:52]save to /storage/0324/doc_00068289 [09:49:52]save last doc name /storage/0324/doc_00068289 to /storage/kkm_last_doc_name [09:49:52]save OK [09:49:52]Clear old archive folders... [09:49:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:49:52]tlvbuf is B6E80750 [09:49:52]SAM_PROTO_ClearQueue [09:49:52]wFMCommunicate request_size=4 [09:49:52]MH_SAM_APDU [09:49:52]CAPDU: 80 09 00 00 [09:49:52]Write to MH i2c: E2 08 00 9C 25 80 09 00 00 00 00 00 00 33 [09:49:52]Write i2c OK [09:49:52]MH_I2C_Read... [09:49:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:49:52]Read from MH i2c: E2 [09:49:52]MH_I2C_Read... [09:49:52]Read from MH i2c: E2 03 00 [09:49:52]MH_I2C_Read... [09:49:52]Read from MH i2c: E2 03 00 9C 25 00 90 00 35 [09:49:52]RAPDU: 90 00 [09:49:52]wFMCommunicate OK [09:49:52]SAM_PROTO_ClearQueue done [09:49:52]KKMCreateOFDPacket [09:49:52]OFDProtocolAddRootSTLVToBuf [09:49:52]FM_MakeSignedData [09:49:52]FM_MakeSignedData [09:49:52]SAM_PROTO_SignData [09:49:52]wFMCommunicate request_size=4 [09:49:52]MH_SAM_APDU [09:49:52]CAPDU: 80 0D 01 02 [09:49:52]Write to MH i2c: E2 08 00 9D 25 80 0D 01 02 00 00 00 00 3B [09:49:52]Write i2c OK [09:49:52]MH_I2C_Read... [09:49:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:49:52]Read from MH i2c: E2 [09:49:52]MH_I2C_Read... [09:49:52]Read from MH i2c: E2 03 00 [09:49:52]MH_I2C_Read... [09:49:52]Read from MH i2c: E2 03 00 9D 25 00 90 00 36 [09:49:52]RAPDU: 90 00 [09:49:52]wFMCommunicate OK [09:49:52]wFMCommunicate request_size=255 [09:49:52]MH_SAM_APDU [09:49:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 C4 91 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C1 0A 01 00 35 04 06 00 BC [09:49:52]Write to MH i2c: E2 02 01 9E 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 C4 91 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C1 0A 01 00 35 04 06 00 BC 00 00 CA [09:49:53]Write i2c OK [09:49:53]MH_I2C_Read... [09:49:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:49:53]Read from MH i2c: E2 [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: E2 03 00 [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: E2 03 00 9E 25 00 90 00 37 [09:49:53]RAPDU: 90 00 [09:49:53]wFMCommunicate OK [09:49:53]wFMCommunicate request_size=10 [09:49:53]MH_SAM_APDU [09:49:53]CAPDU: 80 0D 02 02 05 D9 E2 51 9C B2 [09:49:53]Write to MH i2c: E2 0D 00 9F 25 80 0D 02 02 05 00 D9 E2 51 9C B2 00 00 A2 [09:49:53]Write i2c OK [09:49:53]MH_I2C_Read... [09:49:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:49:53]Read from MH i2c: E2 [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: E2 03 00 [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: E2 03 00 9F 25 00 90 00 38 [09:49:53]RAPDU: 90 00 [09:49:53]wFMCommunicate OK [09:49:53]wFMCommunicate request_size=4 [09:49:53]MH_SAM_APDU [09:49:53]CAPDU: 80 0D 03 02 [09:49:53]Write to MH i2c: E2 08 00 A0 25 80 0D 03 02 00 00 00 00 40 [09:49:53]Write i2c OK [09:49:53]MH_I2C_Read... [09:49:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:49:53]Read from MH i2c: E2 [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: E2 0B 00 [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: E2 0B 00 A0 25 00 5E F9 7A 42 B7 67 71 E2 90 00 C5 [09:49:53]RAPDU: 5E F9 7A 42 B7 67 71 E2 90 00 [09:49:53]wFMCommunicate OK [09:49:53]SAM_PROTO_SignData done [09:49:53]FM_MakeSignedData done [09:49:53]CreateOFDProtocolMessage [09:49:53]wFMCommunicate request_size=4 [09:49:53]MH_SAM_APDU [09:49:53]CAPDU: 80 11 00 00 [09:49:53]Write to MH i2c: E2 08 00 A1 25 80 11 00 00 00 00 00 00 40 [09:49:53]Write i2c OK [09:49:53]MH_I2C_Read... [09:49:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:53]Read from MH i2c: E2 [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: E2 17 00 [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: E2 17 00 A1 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 8B [09:49:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [09:49:53]wFMCommunicate OK [09:49:53]CreateOFDProtocolMessage done [09:49:53]OFDSenderStorePacket 68289 [09:49:53]StoreOFDPacket docnum=68289 [09:49:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 4E 0E 07 01 36 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 C4 91 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C1 0A 01 00 35 04 06 00 BC D9 E2 51 9C B2 5E F9 7A 42 B7 67 71 E2 [09:49:53]CheckFolder [09:49:53]dirname=/storage/ofd_packets [09:49:53]CheckFolder done [09:49:53]ProducePacketName [09:49:53]name=ofd_packets/00068289 [09:49:53]NVStorageSaveData ofd_packets/00068289 [09:49:53]File name is /storage/ofd_packets/00068289 [09:49:53]Write 301 bytes [09:49:53]NVStorageSaveData done [09:49:53]OFDSenderStorePacket done [09:49:53]KKMCreateOFDPacket done [09:49:53]NVStorageSaveData kkm_last_timestamp [09:49:53]File name is /storage/kkm_last_timestamp [09:49:53]Write 4 bytes [09:49:53]NVStorageSaveData done [09:49:53]ExternCall_PrintAddStr [09:49:53]wPrintStart [09:49:53]Write to MH i2c: 01 00 00 A2 25 C7 [09:49:53]Write i2c OK [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: 01 [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: 01 07 00 [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: 01 07 00 A2 25 00 00 00 00 00 FF 0F DC [09:49:53]RasterBufferAndPrint [09:49:53]line Счет N : (1)706360 [09:49:53]line ИНН: 02508201610067 [09:49:53]line Контрольно-Кассовый Чек [09:49:53]line ПРОДАЖА [09:49:53]line ТРК (МРК, ГНК) : 53 [09:49:53]line Товар: 2710124130 [09:49:53]line Аи-92-К-4 [09:49:53]line 14.950 * 66.90 [09:49:53]line = 1000.16 [09:49:53]line НДС 12% НСП 1% [09:49:53]line > о реализуемом товаре [09:49:53]line ОКРУГЛЕНИЕ: -0.16 [09:49:53]line ИТОГО: 1000.00 [09:49:53]line Внесено: 1000.00 [09:49:53]line СДАЧА: 0.00 [09:49:53]line НСП 1% : 8.85 [09:49:53]line НДС 12% : 106.21 [09:49:53]line Наличными: 1000.00 [09:49:53]line Безнал.: 0.00 [09:49:53]line Место: АЗС № 62 "Партнер Нефть" [09:49:53]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [09:49:53]line СНО: Общий режим [09:49:53]line Чек 35 03.06.2024 09:49 [09:49:53]line Смена: 324 ФФД: 1.0 [09:49:53]line ЗНМ: 0300000181 [09:49:53]line РНМ: 0000000000098096 [09:49:53]line Версия ККМ: 001 [09:49:53]line ФМ: 0000000000965400 [09:49:53]line ФД: 68289 [09:49:53]line ФПД: 207643990924466 [09:49:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T094956&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68289&fm=207643990924466&tin=02508201610067®Number=0000000000098096&sum=100000 [09:49:53]OFD Sender: Processing packet 68289 [packets to send 26, broken 25] [09:49:53]ProducePacketName [09:49:53]name=ofd_packets/00068289 [09:49:53]OFD Sender: To server: pG, [09:49:53]CommunicateWithHost lk.salyk.kg:30040 [09:49:53]ConnectInit lk.salyk.kg [09:49:53]written 0, free lines is 4095 [09:49:53]Connected sock=10 [09:49:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 4E 0E 07 01 36 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 C4 91 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C1 0A 01 00 35 04 06 00 BC D9 E2 51 9C B2 5E F9 7A 42 B7 67 71 E2 [09:49:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 C6 34 47 00 9F 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C1 0A 01 00 F4 03 04 00 C0 38 5D 66 B6 04 01 00 00 2C 9A 6C 49 75 BE 22 F8 [09:49:54]CommunicateWithHost err = 0 [09:49:54]CheckOFDResponse [09:49:54]1017 (14) - 77093643461234 [09:49:54]1041 (16) - 0000000000965400 [09:49:54]1040 (4) - 68289 [09:49:54]1012 (4) - 03.06.2024 03:30 [09:49:54]1206 (1) - 0 [09:49:54]OFD Sender: Remove packet 68289 [09:49:54]ProducePacketName [09:49:54]name=ofd_packets/00068289 [09:49:54]NVStorageDeleteData [09:49:54]Write to MH i2c: 01 00 00 CD 25 F2 [09:49:54]Write i2c OK [09:49:54]MH_I2C_Read... [09:49:54]Read from MH i2c: 01 [09:49:54]MH_I2C_Read... [09:49:54]Read from MH i2c: 01 07 00 [09:49:54]MH_I2C_Read... [09:49:54]Read from MH i2c: 01 07 00 CD 25 00 00 00 00 00 D0 0C D5 [09:49:54]RasterBufferAndPrint [09:49:54]line [09:49:54]line [09:49:54]line [09:49:54]line [09:49:54]line [09:49:54]written 0, free lines is 3287 [09:49:54]MH_Cut [09:49:54]Write to MH i2c: D1 01 00 D4 25 01 CB [09:49:54]Write i2c OK [09:49:54]MH_I2C_Read... [09:49:54]Read from MH i2c: D1 [09:49:54]MH_I2C_Read... [09:49:54]Read from MH i2c: D1 01 00 [09:49:54]MH_I2C_Read... [09:49:54]Read from MH i2c: D1 01 00 D4 25 00 CA [09:49:54]Write to MH i2c: 01 00 00 D5 25 FA [09:49:54]Write i2c OK [09:49:54]MH_I2C_Read... [09:49:54]OFD Sender: No OFD packet to send [09:49:54]*** Cut start [09:49:54]*** Partial cut [09:49:54]*** CUTSNS_PIN = 1 [09:49:55]*** CUTSNS_PIN = 0 [09:49:55]*** Brake cut motor [09:49:55]Read from MH i2c: 01 [09:49:55]MH_I2C_Read... [09:49:55]*** Stop cut motor [09:49:55]*** Cut end [09:49:55]Read from MH i2c: 01 07 00 [09:49:55]MH_I2C_Read... [09:49:55]Read from MH i2c: 01 07 00 D5 25 00 00 00 00 00 FF 0F 0F [09:49:55]process_action close_receipt done [09:49:55]requested_data is exist [09:49:55]produce_requested_data [09:49:55]requested_item fm.sn is exist - process it [09:49:55]wFMCommunicate request_size=4 [09:49:55]MH_SAM_APDU [09:49:55]CAPDU: 80 11 00 00 [09:49:55]Write to MH i2c: E2 08 00 D6 25 80 11 00 00 00 00 00 00 75 [09:49:55]Write i2c OK [09:49:55]MH_I2C_Read... [09:49:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:55]Read from MH i2c: E2 [09:49:55]MH_I2C_Read... [09:49:55]Read from MH i2c: E2 17 00 [09:49:55]MH_I2C_Read... [09:49:55]Read from MH i2c: E2 17 00 D6 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 C0 [09:49:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [09:49:55]wFMCommunicate OK [09:49:55]requested_item fd.num is exist - process it [09:49:55]SAM_PROTO_GetFieldsCounters [09:49:55]wFMCommunicate request_size=4 [09:49:55]MH_SAM_APDU [09:49:55]CAPDU: 80 13 00 00 [09:49:55]Write to MH i2c: E2 08 00 D7 25 80 13 00 00 00 00 00 00 78 [09:49:55]Write i2c OK [09:49:55]MH_I2C_Read... [09:49:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:49:55]Read from MH i2c: E2 [09:49:55]MH_I2C_Read... [09:49:55]Read from MH i2c: E2 62 00 [09:49:55]MH_I2C_Read... [09:49:55]Read from MH i2c: E2 62 00 D7 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 C1 0A 01 00 0E 04 04 00 44 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 12 [09:49:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 C1 0A 01 00 0E 04 04 00 44 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 [09:49:55]wFMCommunicate OK [09:49:55]SAM_PROTO_GetFieldsCounters done [09:49:55]requested_item shift.num is exist - process it [09:49:55]requested_item shift.opened is exist - process it [09:49:55]req_shift_opened [09:49:55]FM_GetShiftState [09:49:55]SAM_PROTO_GetShiftState [09:49:55]wFMCommunicate request_size=4 [09:49:55]MH_SAM_APDU [09:49:55]CAPDU: 80 13 01 00 [09:49:55]Write to MH i2c: E2 08 00 D8 25 80 13 01 00 00 00 00 00 7A [09:49:55]Write i2c OK [09:49:55]MH_I2C_Read... [09:49:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:49:55]Read from MH i2c: E2 [09:49:55]MH_I2C_Read... [09:49:55]Read from MH i2c: E2 0E 00 [09:49:55]MH_I2C_Read... [09:49:55]Read from MH i2c: E2 0E 00 D8 25 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 55 [09:49:55]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [09:49:55]wFMCommunicate OK [09:49:55]SAM_PROTO_GetShiftState done [09:49:55]FM_GetShiftState done [09:49:55]req_shift_opened done [09:49:55]requested_item shift.open_date is exist - process it [09:49:55]req_shift_open_date [09:49:55]req_shift_open_date done [09:49:55]produce_requested_data done [09:49:55]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68289,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [09:49:55]process_action_free close_receipt [09:49:55]json_value_free [09:49:55]json_value_free done [09:49:55]process_json_proto returns [09:49:55]Send response to host [09:49:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68289,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [09:49:55]free response buf [09:49:55]execute_script done [09:49:55]execute_script returns [09:49:55]free content buf [09:49:55]Sock 7.Close socket [09:49:55]Sock 7.Thread stoped [09:49:59]OFD Sender: No OFD packet to send [09:50:04]OFD Sender: No OFD packet to send [09:50:09]OFD Sender: No OFD packet to send [09:50:14]OFD Sender: No OFD packet to send [09:50:19]OFD Sender: No OFD packet to send [09:50:24]OFD Sender: No OFD packet to send [09:50:29]OFD Sender: No OFD packet to send [09:50:34]OFD Sender: No OFD packet to send [09:50:39]OFD Sender: No OFD packet to send [09:50:44]OFD Sender: No OFD packet to send [09:50:49]OFD Sender: No OFD packet to send [09:50:54]OFD Sender: No OFD packet to send [09:50:59]OFD Sender: No OFD packet to send [09:51:04]OFD Sender: No OFD packet to send [09:51:09]OFD Sender: No OFD packet to send [09:51:14]OFD Sender: No OFD packet to send [09:51:19]OFD Sender: No OFD packet to send [09:51:24]OFD Sender: No OFD packet to send [09:51:29]OFD Sender: No OFD packet to send [09:51:34]OFD Sender: No OFD packet to send [09:51:39]OFD Sender: No OFD packet to send [09:51:44]OFD Sender: No OFD packet to send [09:51:49]OFD Sender: No OFD packet to send [09:51:54]OFD Sender: No OFD packet to send [09:51:59]OFD Sender: No OFD packet to send [09:52:04]OFD Sender: No OFD packet to send [09:52:09]OFD Sender: No OFD packet to send [09:52:14]OFD Sender: No OFD packet to send [09:52:19]OFD Sender: No OFD packet to send [09:52:24]OFD Sender: No OFD packet to send [09:52:29]OFD Sender: No OFD packet to send [09:52:34]OFD Sender: No OFD packet to send [09:52:39]OFD Sender: No OFD packet to send [09:52:44]OFD Sender: No OFD packet to send [09:52:49]OFD Sender: No OFD packet to send [09:52:54]OFD Sender: No OFD packet to send [09:52:59]OFD Sender: No OFD packet to send [09:53:04]OFD Sender: No OFD packet to send [09:53:09]OFD Sender: No OFD packet to send [09:53:14]OFD Sender: No OFD packet to send [09:53:19]OFD Sender: No OFD packet to send [09:53:24]OFD Sender: No OFD packet to send [09:53:29]OFD Sender: No OFD packet to send [09:53:34]OFD Sender: No OFD packet to send [09:53:39]OFD Sender: No OFD packet to send [09:53:44]OFD Sender: No OFD packet to send [09:53:49]OFD Sender: No OFD packet to send [09:53:54]OFD Sender: No OFD packet to send [09:53:59]OFD Sender: No OFD packet to send [09:54:04]OFD Sender: No OFD packet to send [09:54:09]OFD Sender: No OFD packet to send [09:54:14]OFD Sender: No OFD packet to send [09:54:19]OFD Sender: No OFD packet to send [09:54:24]OFD Sender: No OFD packet to send [09:54:29]OFD Sender: No OFD packet to send [09:54:34]OFD Sender: No OFD packet to send [09:54:39]OFD Sender: No OFD packet to send [09:54:44]OFD Sender: No OFD packet to send [09:54:49]OFD Sender: No OFD packet to send [09:54:54]OFD Sender: No OFD packet to send [09:54:59]OFD Sender: No OFD packet to send [09:55:04]OFD Sender: No OFD packet to send [09:55:09]OFD Sender: No OFD packet to send [09:55:14]OFD Sender: No OFD packet to send [09:55:19]OFD Sender: No OFD packet to send [09:55:24]OFD Sender: No OFD packet to send [09:55:29]OFD Sender: No OFD packet to send [09:55:34]OFD Sender: No OFD packet to send [09:55:39]OFD Sender: No OFD packet to send [09:55:44]OFD Sender: No OFD packet to send [09:55:49]OFD Sender: No OFD packet to send [09:55:54]OFD Sender: No OFD packet to send [09:55:59]OFD Sender: No OFD packet to send [09:56:04]OFD Sender: No OFD packet to send [09:56:09]OFD Sender: No OFD packet to send [09:56:14]OFD Sender: No OFD packet to send [09:56:19]OFD Sender: No OFD packet to send [09:56:24]OFD Sender: No OFD packet to send [09:56:29]OFD Sender: No OFD packet to send [09:56:34]OFD Sender: No OFD packet to send [09:56:39]OFD Sender: No OFD packet to send [09:56:44]OFD Sender: No OFD packet to send [09:56:49]OFD Sender: No OFD packet to send [09:56:54]OFD Sender: No OFD packet to send [09:56:59]OFD Sender: No OFD packet to send [09:57:04]OFD Sender: No OFD packet to send [09:57:09]OFD Sender: No OFD packet to send [09:57:14]OFD Sender: No OFD packet to send [09:57:19]OFD Sender: No OFD packet to send [09:57:24]OFD Sender: No OFD packet to send [09:57:29]OFD Sender: No OFD packet to send [09:57:34]OFD Sender: No OFD packet to send [09:57:39]OFD Sender: No OFD packet to send [09:57:44]OFD Sender: No OFD packet to send [09:57:49]OFD Sender: No OFD packet to send [09:57:54]OFD Sender: No OFD packet to send [09:57:59]OFD Sender: No OFD packet to send [09:58:04]OFD Sender: No OFD packet to send [09:58:09]OFD Sender: No OFD packet to send [09:58:14]OFD Sender: No OFD packet to send [09:58:19]OFD Sender: No OFD packet to send [09:58:24]OFD Sender: No OFD packet to send [09:58:29]OFD Sender: No OFD packet to send [09:58:34]OFD Sender: No OFD packet to send [09:58:39]OFD Sender: No OFD packet to send [09:58:44]OFD Sender: No OFD packet to send [09:58:49]OFD Sender: No OFD packet to send [09:58:54]OFD Sender: No OFD packet to send [09:58:59]OFD Sender: No OFD packet to send [09:59:04]OFD Sender: No OFD packet to send [09:59:10]OFD Sender: No OFD packet to send [09:59:15]OFD Sender: No OFD packet to send [09:59:20]OFD Sender: No OFD packet to send [09:59:25]OFD Sender: No OFD packet to send [09:59:30]OFD Sender: No OFD packet to send [09:59:35]OFD Sender: No OFD packet to send [09:59:40]OFD Sender: No OFD packet to send [09:59:45]OFD Sender: No OFD packet to send [09:59:50]OFD Sender: No OFD packet to send [09:59:55]OFD Sender: No OFD packet to send [10:00:00]OFD Sender: No OFD packet to send [10:00:05]OFD Sender: No OFD packet to send [10:00:10]OFD Sender: No OFD packet to send [10:00:15]OFD Sender: No OFD packet to send [10:00:20]OFD Sender: No OFD packet to send [10:00:25]OFD Sender: No OFD packet to send [10:00:30]OFD Sender: No OFD packet to send [10:00:35]OFD Sender: No OFD packet to send [10:00:40]OFD Sender: No OFD packet to send [10:00:45]OFD Sender: No OFD packet to send [10:00:50]OFD Sender: No OFD packet to send [10:00:55]OFD Sender: No OFD packet to send [10:01:00]OFD Sender: No OFD packet to send [10:01:05]OFD Sender: No OFD packet to send [10:01:10]OFD Sender: No OFD packet to send [10:01:15]OFD Sender: No OFD packet to send [10:01:20]OFD Sender: No OFD packet to send [10:01:25]OFD Sender: No OFD packet to send [10:01:30]OFD Sender: No OFD packet to send [10:01:35]OFD Sender: No OFD packet to send [10:01:40]OFD Sender: No OFD packet to send [10:01:45]OFD Sender: No OFD packet to send [10:01:50]OFD Sender: No OFD packet to send [10:01:55]OFD Sender: No OFD packet to send [10:02:00]OFD Sender: No OFD packet to send [10:02:05]OFD Sender: No OFD packet to send [10:02:10]OFD Sender: No OFD packet to send [10:02:15]OFD Sender: No OFD packet to send [10:02:20]OFD Sender: No OFD packet to send [10:02:25]OFD Sender: No OFD packet to send [10:02:30]OFD Sender: No OFD packet to send [10:02:35]OFD Sender: No OFD packet to send [10:02:40]OFD Sender: No OFD packet to send [10:02:45]OFD Sender: No OFD packet to send [10:02:50]OFD Sender: No OFD packet to send [10:02:55]OFD Sender: No OFD packet to send [10:03:00]OFD Sender: No OFD packet to send [10:03:05]OFD Sender: No OFD packet to send [10:03:10]OFD Sender: No OFD packet to send [10:03:15]OFD Sender: No OFD packet to send [10:03:17]accept exits with 9 [10:03:17]New connection [10:03:17]New thread 3066686820 created [10:03:17]Thread 3066543460 joined [10:03:17]Waiting for new connection... [10:03:17] Sock 9.Parse request [10:03:17]Sock 9.Check first char [10:03:17]Sock 9.First char is OK [10:03:17]request: POST /json_proto HTTP/1.0 [10:03:17]Method: POST [10:03:17]URL: /json_proto [10:03:17]Method is POST - this is cgi request [10:03:17]url: /json_proto [10:03:17]query_string will be loaded in cgi processing [10:03:17]execute_cgi json_proto POST (null) [10:03:17]execute_cgi path=json_proto method=POST [10:03:17]POST find Content-Length [10:03:17]Host: 172.17.36.132:8080 [10:03:17]Content-Length: 843 [10:03:17]Content-Type: application/json [10:03:17] [10:03:17]POST finish read [10:03:17]Found Content-Length = 843 [10:03:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706361", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 37.370, "sum" : 2500.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 2500.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:03:17]execute_script... [10:03:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706361", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 37.370, "sum" : 2500.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 2500.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:03:17]POST & json_proto [10:03:17]process_json_proto [10:03:17]json parsed OK: [10:03:17]protocol is kg_v1.0 [10:03:17]action value=close_receipt [10:03:17]process_action close_receipt [10:03:17]cmd_close_receipt [10:03:17]MH_GetDate [10:03:17]Write to MH i2c: F0 00 00 D9 25 ED [10:03:17]Write i2c OK [10:03:17]MH_I2C_Read... [10:03:17]Read from MH i2c: F0 [10:03:17]MH_I2C_Read... [10:03:17]Read from MH i2c: F0 09 00 [10:03:17]MH_I2C_Read... [10:03:17]Read from MH i2c: F0 09 00 D9 25 00 EA 94 5D 66 B2 22 B0 64 1F [10:03:17]GetLastDocTimeStamp 1717408196 [10:03:17]current date 1717409002 [10:03:17]FM_GetShiftState [10:03:17]SAM_PROTO_GetShiftState [10:03:17]wFMCommunicate request_size=4 [10:03:17]MH_SAM_APDU [10:03:17]CAPDU: 80 13 01 00 [10:03:17]Write to MH i2c: E2 08 00 DA 25 80 13 01 00 00 00 00 00 7C [10:03:17]Write i2c OK [10:03:17]MH_I2C_Read... [10:03:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:03:17]Read from MH i2c: E2 [10:03:17]MH_I2C_Read... [10:03:17]Read from MH i2c: E2 0E 00 [10:03:17]MH_I2C_Read... [10:03:17]Read from MH i2c: E2 0E 00 DA 25 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 57 [10:03:17]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [10:03:17]wFMCommunicate OK [10:03:17]SAM_PROTO_GetShiftState done [10:03:17]FM_GetShiftState done [10:03:17]opened in 1717378033 [10:03:17]opened+sec_in_day 1717464433 [10:03:17]quantity*price = 250005 [10:03:17]sum+1 = 250006 [10:03:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2500.05 НСП 1% : 22.12 НДС 12% : 265.49 Наличными: 0.00 Безнал.: 2500.05 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 36 03.06.2024 10:03 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68290 ФПД: 60654160285747 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T100322&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68290&fm=60654160285747&tin=02508201610067®Number=0000000000098096&sum=250005 [10:03:18]StoreToDocumentArchive [10:03:18]shift 324 fd 68290 [10:03:18]save to /storage/0324/doc_00068290 [10:03:18]save last doc name /storage/0324/doc_00068290 to /storage/kkm_last_doc_name [10:03:18]save OK [10:03:18]Clear old archive folders... [10:03:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:03:18]tlvbuf is B6D67630 [10:03:18]SAM_PROTO_ClearQueue [10:03:18]wFMCommunicate request_size=4 [10:03:18]MH_SAM_APDU [10:03:18]CAPDU: 80 09 00 00 [10:03:18]Write to MH i2c: E2 08 00 E7 25 80 09 00 00 00 00 00 00 7E [10:03:18]Write i2c OK [10:03:18]MH_I2C_Read... [10:03:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:03:18]Read from MH i2c: E2 [10:03:18]MH_I2C_Read... [10:03:18]Read from MH i2c: E2 03 00 [10:03:18]MH_I2C_Read... [10:03:18]Read from MH i2c: E2 03 00 E7 25 00 90 00 80 [10:03:18]RAPDU: 90 00 [10:03:18]wFMCommunicate OK [10:03:18]SAM_PROTO_ClearQueue done [10:03:18]KKMCreateOFDPacket [10:03:18]OFDProtocolAddRootSTLVToBuf [10:03:18]FM_MakeSignedData [10:03:18]FM_MakeSignedData [10:03:18]SAM_PROTO_SignData [10:03:18]wFMCommunicate request_size=4 [10:03:18]MH_SAM_APDU [10:03:18]CAPDU: 80 0D 01 02 [10:03:18]Write to MH i2c: E2 08 00 E8 25 80 0D 01 02 00 00 00 00 86 [10:03:18]Write i2c OK [10:03:18]MH_I2C_Read... [10:03:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:03:18]Read from MH i2c: E2 [10:03:18]MH_I2C_Read... [10:03:18]Read from MH i2c: E2 03 00 [10:03:18]MH_I2C_Read... [10:03:18]Read from MH i2c: E2 03 00 E8 25 00 90 00 81 [10:03:18]RAPDU: 90 00 [10:03:18]wFMCommunicate OK [10:03:18]wFMCommunicate request_size=255 [10:03:18]MH_SAM_APDU [10:03:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FA 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 95 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 95 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 EA 94 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C2 0A 01 00 35 04 06 00 37 [10:03:18]Write to MH i2c: E2 02 01 E9 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FA 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 95 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 95 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 EA 94 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C2 0A 01 00 35 04 06 00 37 00 00 03 [10:03:18]Write i2c OK [10:03:18]MH_I2C_Read... [10:03:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:03:19]Read from MH i2c: E2 [10:03:19]MH_I2C_Read... [10:03:19]Read from MH i2c: E2 03 00 [10:03:19]MH_I2C_Read... [10:03:19]Read from MH i2c: E2 03 00 E9 25 00 90 00 82 [10:03:19]RAPDU: 90 00 [10:03:19]wFMCommunicate OK [10:03:19]wFMCommunicate request_size=10 [10:03:19]MH_SAM_APDU [10:03:19]CAPDU: 80 0D 02 02 05 2A 25 AD 90 33 [10:03:19]Write to MH i2c: E2 0D 00 EA 25 80 0D 02 02 05 00 2A 25 AD 90 33 00 00 52 [10:03:19]Write i2c OK [10:03:19]MH_I2C_Read... [10:03:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:03:19]Read from MH i2c: E2 [10:03:19]MH_I2C_Read... [10:03:19]Read from MH i2c: E2 03 00 [10:03:19]MH_I2C_Read... [10:03:19]Read from MH i2c: E2 03 00 EA 25 00 90 00 83 [10:03:19]RAPDU: 90 00 [10:03:19]wFMCommunicate OK [10:03:19]wFMCommunicate request_size=4 [10:03:19]MH_SAM_APDU [10:03:19]CAPDU: 80 0D 03 02 [10:03:19]Write to MH i2c: E2 08 00 EB 25 80 0D 03 02 00 00 00 00 8B [10:03:19]Write i2c OK [10:03:19]MH_I2C_Read... [10:03:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:03:19]Read from MH i2c: E2 [10:03:19]MH_I2C_Read... [10:03:19]Read from MH i2c: E2 0B 00 [10:03:19]MH_I2C_Read... [10:03:19]Read from MH i2c: E2 0B 00 EB 25 00 BB 8E 86 7E 01 25 43 E4 90 00 26 [10:03:19]RAPDU: BB 8E 86 7E 01 25 43 E4 90 00 [10:03:19]wFMCommunicate OK [10:03:19]SAM_PROTO_SignData done [10:03:19]FM_MakeSignedData done [10:03:19]CreateOFDProtocolMessage [10:03:19]wFMCommunicate request_size=4 [10:03:19]MH_SAM_APDU [10:03:19]CAPDU: 80 11 00 00 [10:03:19]Write to MH i2c: E2 08 00 EC 25 80 11 00 00 00 00 00 00 8B [10:03:19]Write i2c OK [10:03:19]MH_I2C_Read... [10:03:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:19]Read from MH i2c: E2 [10:03:19]MH_I2C_Read... [10:03:19]Read from MH i2c: E2 17 00 [10:03:19]MH_I2C_Read... [10:03:19]Read from MH i2c: E2 17 00 EC 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 D6 [10:03:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [10:03:19]wFMCommunicate OK [10:03:19]CreateOFDProtocolMessage done [10:03:19]OFDSenderStorePacket 68290 [10:03:19]StoreOFDPacket docnum=68290 [10:03:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 50 91 07 01 F9 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FA 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 95 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 95 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 EA 94 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C2 0A 01 00 35 04 06 00 37 2A 25 AD 90 33 BB 8E 86 7E 01 25 43 E4 [10:03:19]CheckFolder [10:03:19]dirname=/storage/ofd_packets [10:03:19]CheckFolder done [10:03:19]ProducePacketName [10:03:19]name=ofd_packets/00068290 [10:03:19]NVStorageSaveData ofd_packets/00068290 [10:03:19]File name is /storage/ofd_packets/00068290 [10:03:19]Write 301 bytes [10:03:19]NVStorageSaveData done [10:03:19]OFDSenderStorePacket done [10:03:19]KKMCreateOFDPacket done [10:03:19]NVStorageSaveData kkm_last_timestamp [10:03:19]File name is /storage/kkm_last_timestamp [10:03:19]Write 4 bytes [10:03:19]NVStorageSaveData done [10:03:19]ExternCall_PrintAddStr [10:03:19]wPrintStart [10:03:19]Write to MH i2c: 01 00 00 ED 25 12 [10:03:19]Write i2c OK [10:03:19]MH_I2C_Read... [10:03:19]Read from MH i2c: 01 [10:03:19]MH_I2C_Read... [10:03:19]Read from MH i2c: 01 07 00 [10:03:19]MH_I2C_Read... [10:03:19]Read from MH i2c: 01 07 00 ED 25 00 00 00 00 00 FF 0F 27 [10:03:19]RasterBufferAndPrint [10:03:19]line Счет N : (1)706361 [10:03:19]line ИНН: 02508201610067 [10:03:19]line Контрольно-Кассовый Чек [10:03:19]line ПРОДАЖА [10:03:19]line ТРК (МРК, ГНК) : 23 [10:03:19]line Товар: 2710124130 [10:03:19]line Аи-92-К-4 [10:03:19]line 37.370 * 66.90 [10:03:19]line = 2500.05 [10:03:19]line НДС 12% НСП 1% [10:03:19]line > о реализуемом товаре [10:03:19]line ИТОГО: 2500.05 [10:03:19]line НСП 1% : 22.12 [10:03:19]line НДС 12% : 265.49 [10:03:19]line Наличными: 0.00 [10:03:19]line Безнал.: 2500.05 [10:03:19]line Место: АЗС № 62 "Партнер Нефть" [10:03:19]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [10:03:19]line СНО: Общий режим [10:03:19]line Чек 36 03.06.2024 10:03 [10:03:19]line Смена: 324 ФФД: 1.0 [10:03:19]line ЗНМ: 0300000181 [10:03:19]line РНМ: 0000000000098096 [10:03:19]line Версия ККМ: 001 [10:03:19]line Платежная система: АКБ Кыргызстан [10:03:19]line ФМ: 0000000000965400 [10:03:19]line ФД: 68290 [10:03:19]line ФПД: 60654160285747 [10:03:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T100322&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68290&fm=60654160285747&tin=02508201610067®Number=0000000000098096&sum=250005 [10:03:19]written 0, free lines is 4095 [10:03:19]OFD Sender: Processing packet 68290 [packets to send 26, broken 25] [10:03:19]ProducePacketName [10:03:19]name=ofd_packets/00068290 [10:03:19]OFD Sender: To server: pG, [10:03:19]CommunicateWithHost lk.salyk.kg:30040 [10:03:19]ConnectInit lk.salyk.kg [10:03:19]Connected sock=10 [10:03:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 50 91 07 01 F9 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FA 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 95 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 95 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 EA 94 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C2 0A 01 00 35 04 06 00 37 2A 25 AD 90 33 BB 8E 86 7E 01 25 43 E4 [10:03:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 A8 8B 47 00 D7 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C2 0A 01 00 F4 03 04 00 E6 3B 5D 66 B6 04 01 00 00 20 CF 1B A5 82 D1 F7 BE [10:03:19]CommunicateWithHost err = 0 [10:03:19]CheckOFDResponse [10:03:19]1017 (14) - 77093643461234 [10:03:19]1041 (16) - 0000000000965400 [10:03:19]1040 (4) - 68290 [10:03:19]1012 (4) - 03.06.2024 03:43 [10:03:19]1206 (1) - 0 [10:03:19]OFD Sender: Remove packet 68290 [10:03:19]ProducePacketName [10:03:19]name=ofd_packets/00068290 [10:03:19]NVStorageDeleteData [10:03:20]Write to MH i2c: 01 00 00 17 26 3D [10:03:20]Write i2c OK [10:03:20]MH_I2C_Read... [10:03:20]Read from MH i2c: 01 [10:03:20]MH_I2C_Read... [10:03:20]Read from MH i2c: 01 07 00 [10:03:20]MH_I2C_Read... [10:03:20]Read from MH i2c: 01 07 00 17 26 00 00 00 00 00 EE 0C 3E [10:03:20]RasterBufferAndPrint [10:03:20]line [10:03:20]line [10:03:20]line [10:03:20]line [10:03:20]line [10:03:20]written 0, free lines is 3317 [10:03:20]MH_Cut [10:03:20]Write to MH i2c: D1 01 00 1E 26 01 16 [10:03:20]Write i2c OK [10:03:20]MH_I2C_Read... [10:03:20]Read from MH i2c: D1 [10:03:20]MH_I2C_Read... [10:03:20]Read from MH i2c: D1 01 00 [10:03:20]MH_I2C_Read... [10:03:20]Read from MH i2c: D1 01 00 1E 26 00 15 [10:03:20]Write to MH i2c: 01 00 00 1F 26 45 [10:03:20]Write i2c OK [10:03:20]MH_I2C_Read... [10:03:20]OFD Sender: No OFD packet to send [10:03:20]*** Cut start [10:03:20]*** Partial cut [10:03:20]*** CUTSNS_PIN = 1 [10:03:20]*** CUTSNS_PIN = 0 [10:03:21]*** Brake cut motor [10:03:21]Read from MH i2c: 01 [10:03:21]MH_I2C_Read... [10:03:21]*** Stop cut motor [10:03:21]*** Cut end [10:03:21]Read from MH i2c: 01 07 00 [10:03:21]MH_I2C_Read... [10:03:21]Read from MH i2c: 01 07 00 1F 26 00 00 00 00 00 FF 0F 5A [10:03:21]process_action close_receipt done [10:03:21]requested_data is exist [10:03:21]produce_requested_data [10:03:21]requested_item fm.sn is exist - process it [10:03:21]wFMCommunicate request_size=4 [10:03:21]MH_SAM_APDU [10:03:21]CAPDU: 80 11 00 00 [10:03:21]Write to MH i2c: E2 08 00 20 26 80 11 00 00 00 00 00 00 C0 [10:03:21]Write i2c OK [10:03:21]MH_I2C_Read... [10:03:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:21]Read from MH i2c: E2 [10:03:21]MH_I2C_Read... [10:03:21]Read from MH i2c: E2 17 00 [10:03:21]MH_I2C_Read... [10:03:21]Read from MH i2c: E2 17 00 20 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 0B [10:03:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [10:03:21]wFMCommunicate OK [10:03:21]requested_item fd.num is exist - process it [10:03:21]SAM_PROTO_GetFieldsCounters [10:03:21]wFMCommunicate request_size=4 [10:03:21]MH_SAM_APDU [10:03:21]CAPDU: 80 13 00 00 [10:03:21]Write to MH i2c: E2 08 00 21 26 80 13 00 00 00 00 00 00 C3 [10:03:21]Write i2c OK [10:03:21]MH_I2C_Read... [10:03:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:03:21]Read from MH i2c: E2 [10:03:21]MH_I2C_Read... [10:03:21]Read from MH i2c: E2 62 00 [10:03:21]MH_I2C_Read... [10:03:21]Read from MH i2c: E2 62 00 21 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 C2 0A 01 00 0E 04 04 00 44 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 61 [10:03:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 C2 0A 01 00 0E 04 04 00 44 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 [10:03:21]wFMCommunicate OK [10:03:21]SAM_PROTO_GetFieldsCounters done [10:03:21]requested_item shift.num is exist - process it [10:03:21]requested_item shift.opened is exist - process it [10:03:21]req_shift_opened [10:03:21]FM_GetShiftState [10:03:21]SAM_PROTO_GetShiftState [10:03:21]wFMCommunicate request_size=4 [10:03:21]MH_SAM_APDU [10:03:21]CAPDU: 80 13 01 00 [10:03:21]Write to MH i2c: E2 08 00 22 26 80 13 01 00 00 00 00 00 C5 [10:03:21]Write i2c OK [10:03:21]MH_I2C_Read... [10:03:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:03:21]Read from MH i2c: E2 [10:03:21]MH_I2C_Read... [10:03:21]Read from MH i2c: E2 0E 00 [10:03:21]MH_I2C_Read... [10:03:21]Read from MH i2c: E2 0E 00 22 26 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 A0 [10:03:21]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [10:03:21]wFMCommunicate OK [10:03:21]SAM_PROTO_GetShiftState done [10:03:21]FM_GetShiftState done [10:03:21]req_shift_opened done [10:03:21]requested_item shift.open_date is exist - process it [10:03:21]req_shift_open_date [10:03:21]req_shift_open_date done [10:03:21]produce_requested_data done [10:03:21]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68290,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [10:03:21]process_action_free close_receipt [10:03:21]json_value_free [10:03:21]json_value_free done [10:03:21]process_json_proto returns [10:03:21]Send response to host [10:03:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68290,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [10:03:21]free response buf [10:03:21]execute_script done [10:03:21]execute_script returns [10:03:21]free content buf [10:03:21]Sock 9.Close socket [10:03:21]Sock 9.Thread stoped [10:03:25]OFD Sender: No OFD packet to send [10:03:26]accept exits with 7 [10:03:26]New connection [10:03:26]New thread 3066543460 created [10:03:26]Thread 3066686820 joined [10:03:26]Waiting for new connection... [10:03:26] Sock 7.Parse request [10:03:26]Sock 7.Check first char [10:03:26]Sock 7.First char is OK [10:03:26]request: POST /json_proto HTTP/1.0 [10:03:26]Method: POST [10:03:26]URL: /json_proto [10:03:26]Method is POST - this is cgi request [10:03:26]url: /json_proto [10:03:26]query_string will be loaded in cgi processing [10:03:26]execute_cgi json_proto POST (null) [10:03:26]execute_cgi path=json_proto method=POST [10:03:26]POST find Content-Length [10:03:26]Host: 172.17.36.132:8080 [10:03:26]Content-Length: 682 [10:03:26]Content-Type: application/json [10:03:26] [10:03:26]POST finish read [10:03:26]Found Content-Length = 682 [10:03:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706362", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:03:26]execute_script... [10:03:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706362", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:03:26]POST & json_proto [10:03:26]process_json_proto [10:03:26]json parsed OK: [10:03:26]protocol is kg_v1.0 [10:03:26]action value=close_receipt [10:03:26]process_action close_receipt [10:03:26]cmd_close_receipt [10:03:26]MH_GetDate [10:03:26]Write to MH i2c: F0 00 00 23 26 38 [10:03:26]Write i2c OK [10:03:26]MH_I2C_Read... [10:03:26]Read from MH i2c: F0 [10:03:26]MH_I2C_Read... [10:03:26]Read from MH i2c: F0 09 00 [10:03:26]MH_I2C_Read... [10:03:26]Read from MH i2c: F0 09 00 23 26 00 F2 94 5D 66 B2 22 B0 64 72 [10:03:26]GetLastDocTimeStamp 1717409002 [10:03:26]current date 1717409010 [10:03:26]FM_GetShiftState [10:03:26]SAM_PROTO_GetShiftState [10:03:26]wFMCommunicate request_size=4 [10:03:26]MH_SAM_APDU [10:03:26]CAPDU: 80 13 01 00 [10:03:26]Write to MH i2c: E2 08 00 24 26 80 13 01 00 00 00 00 00 C7 [10:03:26]Write i2c OK [10:03:26]MH_I2C_Read... [10:03:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:03:26]Read from MH i2c: E2 [10:03:26]MH_I2C_Read... [10:03:26]Read from MH i2c: E2 0E 00 [10:03:26]MH_I2C_Read... [10:03:26]Read from MH i2c: E2 0E 00 24 26 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 A2 [10:03:26]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [10:03:26]wFMCommunicate OK [10:03:26]SAM_PROTO_GetShiftState done [10:03:26]FM_GetShiftState done [10:03:26]opened in 1717378033 [10:03:26]opened+sec_in_day 1717464433 [10:03:26]quantity*price = 100015 [10:03:26]sum+1 = 100017 [10:03:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 37 03.06.2024 10:03 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68291 ФПД: 13541669345707 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T100330&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68291&fm=13541669345707&tin=02508201610067®Number=0000000000098096&sum=100000 [10:03:27]StoreToDocumentArchive [10:03:27]shift 324 fd 68291 [10:03:27]save to /storage/0324/doc_00068291 [10:03:27]save last doc name /storage/0324/doc_00068291 to /storage/kkm_last_doc_name [10:03:27]save OK [10:03:27]Clear old archive folders... [10:03:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:03:27]tlvbuf is 005BEBE0 [10:03:27]SAM_PROTO_ClearQueue [10:03:27]wFMCommunicate request_size=4 [10:03:27]MH_SAM_APDU [10:03:27]CAPDU: 80 09 00 00 [10:03:27]Write to MH i2c: E2 08 00 31 26 80 09 00 00 00 00 00 00 C9 [10:03:27]Write i2c OK [10:03:27]MH_I2C_Read... [10:03:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:03:27]Read from MH i2c: E2 [10:03:27]MH_I2C_Read... [10:03:27]Read from MH i2c: E2 03 00 [10:03:27]MH_I2C_Read... [10:03:27]Read from MH i2c: E2 03 00 31 26 00 90 00 CB [10:03:27]RAPDU: 90 00 [10:03:27]wFMCommunicate OK [10:03:27]SAM_PROTO_ClearQueue done [10:03:27]KKMCreateOFDPacket [10:03:27]OFDProtocolAddRootSTLVToBuf [10:03:27]FM_MakeSignedData [10:03:27]FM_MakeSignedData [10:03:27]SAM_PROTO_SignData [10:03:27]wFMCommunicate request_size=4 [10:03:27]MH_SAM_APDU [10:03:27]CAPDU: 80 0D 01 02 [10:03:27]Write to MH i2c: E2 08 00 32 26 80 0D 01 02 00 00 00 00 D1 [10:03:27]Write i2c OK [10:03:27]MH_I2C_Read... [10:03:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:03:27]Read from MH i2c: E2 [10:03:27]MH_I2C_Read... [10:03:27]Read from MH i2c: E2 03 00 [10:03:27]MH_I2C_Read... [10:03:27]Read from MH i2c: E2 03 00 32 26 00 90 00 CC [10:03:27]RAPDU: 90 00 [10:03:27]wFMCommunicate OK [10:03:27]wFMCommunicate request_size=255 [10:03:27]MH_SAM_APDU [10:03:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 F2 94 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C3 0A 01 00 35 04 06 00 0C [10:03:27]Write to MH i2c: E2 02 01 33 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 F2 94 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C3 0A 01 00 35 04 06 00 0C 00 00 E5 [10:03:27]Write i2c OK [10:03:27]MH_I2C_Read... [10:03:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:03:27]Read from MH i2c: E2 [10:03:27]MH_I2C_Read... [10:03:27]Read from MH i2c: E2 03 00 [10:03:27]MH_I2C_Read... [10:03:27]Read from MH i2c: E2 03 00 33 26 00 90 00 CD [10:03:27]RAPDU: 90 00 [10:03:27]wFMCommunicate OK [10:03:27]wFMCommunicate request_size=10 [10:03:27]MH_SAM_APDU [10:03:27]CAPDU: 80 0D 02 02 05 50 EA 64 19 AB [10:03:27]Write to MH i2c: E2 0D 00 34 26 80 0D 02 02 05 00 50 EA 64 19 AB 00 00 40 [10:03:27]Write i2c OK [10:03:27]MH_I2C_Read... [10:03:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:03:27]Read from MH i2c: E2 [10:03:27]MH_I2C_Read... [10:03:27]Read from MH i2c: E2 03 00 [10:03:27]MH_I2C_Read... [10:03:27]Read from MH i2c: E2 03 00 34 26 00 90 00 CE [10:03:27]RAPDU: 90 00 [10:03:27]wFMCommunicate OK [10:03:27]wFMCommunicate request_size=4 [10:03:27]MH_SAM_APDU [10:03:27]CAPDU: 80 0D 03 02 [10:03:27]Write to MH i2c: E2 08 00 35 26 80 0D 03 02 00 00 00 00 D6 [10:03:27]Write i2c OK [10:03:27]MH_I2C_Read... [10:03:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:03:27]Read from MH i2c: E2 [10:03:27]MH_I2C_Read... [10:03:27]Read from MH i2c: E2 0B 00 [10:03:27]MH_I2C_Read... [10:03:27]Read from MH i2c: E2 0B 00 35 26 00 08 D5 B6 6D 84 83 9D 12 90 00 8D [10:03:27]RAPDU: 08 D5 B6 6D 84 83 9D 12 90 00 [10:03:27]wFMCommunicate OK [10:03:27]SAM_PROTO_SignData done [10:03:27]FM_MakeSignedData done [10:03:27]CreateOFDProtocolMessage [10:03:27]wFMCommunicate request_size=4 [10:03:27]MH_SAM_APDU [10:03:27]CAPDU: 80 11 00 00 [10:03:27]Write to MH i2c: E2 08 00 36 26 80 11 00 00 00 00 00 00 D6 [10:03:27]Write i2c OK [10:03:27]MH_I2C_Read... [10:03:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:27]Read from MH i2c: E2 [10:03:27]MH_I2C_Read... [10:03:27]Read from MH i2c: E2 17 00 [10:03:27]MH_I2C_Read... [10:03:27]Read from MH i2c: E2 17 00 36 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 21 [10:03:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [10:03:27]wFMCommunicate OK [10:03:27]CreateOFDProtocolMessage done [10:03:27]OFDSenderStorePacket 68291 [10:03:27]StoreOFDPacket docnum=68291 [10:03:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 C4 F9 07 01 44 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 F2 94 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C3 0A 01 00 35 04 06 00 0C 50 EA 64 19 AB 08 D5 B6 6D 84 83 9D 12 [10:03:27]CheckFolder [10:03:27]dirname=/storage/ofd_packets [10:03:27]CheckFolder done [10:03:27]ProducePacketName [10:03:27]name=ofd_packets/00068291 [10:03:27]NVStorageSaveData ofd_packets/00068291 [10:03:27]File name is /storage/ofd_packets/00068291 [10:03:27]Write 301 bytes [10:03:27]NVStorageSaveData done [10:03:27]OFDSenderStorePacket done [10:03:27]KKMCreateOFDPacket done [10:03:27]NVStorageSaveData kkm_last_timestamp [10:03:27]File name is /storage/kkm_last_timestamp [10:03:27]Write 4 bytes [10:03:27]NVStorageSaveData done [10:03:27]ExternCall_PrintAddStr [10:03:27]wPrintStart [10:03:27]Write to MH i2c: 01 00 00 37 26 5D [10:03:27]Write i2c OK [10:03:27]MH_I2C_Read... [10:03:27]Read from MH i2c: 01 [10:03:27]MH_I2C_Read... [10:03:27]Read from MH i2c: 01 07 00 [10:03:27]MH_I2C_Read... [10:03:27]Read from MH i2c: 01 07 00 37 26 00 00 00 00 00 FF 0F 72 [10:03:27]RasterBufferAndPrint [10:03:27]line Счет N : (1)706362 [10:03:27]line ИНН: 02508201610067 [10:03:27]line Контрольно-Кассовый Чек [10:03:27]line ПРОДАЖА [10:03:27]line ТРК (МРК, ГНК) : 32 [10:03:27]line Товар: 2710124130 [10:03:27]line Аи-92-К-4 [10:03:27]line 14.950 * 66.90 [10:03:27]line = 1000.16 [10:03:27]line НДС 12% НСП 1% [10:03:27]line > о реализуемом товаре [10:03:27]line ОКРУГЛЕНИЕ: -0.16 [10:03:27]line ИТОГО: 1000.00 [10:03:27]line Внесено: 1000.00 [10:03:27]line СДАЧА: 0.00 [10:03:27]line НСП 1% : 8.85 [10:03:27]line НДС 12% : 106.21 [10:03:27]line Наличными: 1000.00 [10:03:27]line Безнал.: 0.00 [10:03:27]line Место: АЗС № 62 "Партнер Нефть" [10:03:27]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [10:03:27]line СНО: Общий режим [10:03:27]line Чек 37 03.06.2024 10:03 [10:03:27]line Смена: 324 ФФД: 1.0 [10:03:27]line ЗНМ: 0300000181 [10:03:27]line РНМ: 0000000000098096 [10:03:27]line Версия ККМ: 001 [10:03:27]line ФМ: 0000000000965400 [10:03:27]line ФД: 68291 [10:03:27]line ФПД: 13541669345707 [10:03:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T100330&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68291&fm=13541669345707&tin=02508201610067®Number=0000000000098096&sum=100000 [10:03:27]written 0, free lines is 4095 [10:03:27]OFD Sender: Processing packet 68291 [packets to send 26, broken 25] [10:03:27]ProducePacketName [10:03:27]name=ofd_packets/00068291 [10:03:27]OFD Sender: To server: pG, [10:03:27]CommunicateWithHost lk.salyk.kg:30040 [10:03:27]ConnectInit lk.salyk.kg [10:03:27]Connected sock=10 [10:03:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 C4 F9 07 01 44 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 F2 94 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C3 0A 01 00 35 04 06 00 0C 50 EA 64 19 AB 08 D5 B6 6D 84 83 9D 12 [10:03:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 FA 67 47 00 56 FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C3 0A 01 00 F4 03 04 00 EE 3B 5D 66 B6 04 01 00 00 9B 9C 0B D7 79 30 F5 8F [10:03:28]CommunicateWithHost err = 0 [10:03:28]CheckOFDResponse [10:03:28]1017 (14) - 77093643461234 [10:03:28]1041 (16) - 0000000000965400 [10:03:28]1040 (4) - 68291 [10:03:28]1012 (4) - 03.06.2024 03:43 [10:03:28]1206 (1) - 0 [10:03:28]OFD Sender: Remove packet 68291 [10:03:28]ProducePacketName [10:03:28]name=ofd_packets/00068291 [10:03:28]NVStorageDeleteData [10:03:28]Write to MH i2c: 01 00 00 62 26 88 [10:03:28]Write i2c OK [10:03:28]MH_I2C_Read... [10:03:28]Read from MH i2c: 01 [10:03:28]MH_I2C_Read... [10:03:28]Read from MH i2c: 01 07 00 [10:03:28]MH_I2C_Read... [10:03:28]Read from MH i2c: 01 07 00 62 26 00 00 00 00 00 E2 0C 7D [10:03:28]RasterBufferAndPrint [10:03:28]line [10:03:28]line [10:03:28]line [10:03:28]line [10:03:28]line [10:03:28]written 0, free lines is 3307 [10:03:28]MH_Cut [10:03:28]Write to MH i2c: D1 01 00 69 26 01 61 [10:03:28]Write i2c OK [10:03:28]MH_I2C_Read... [10:03:28]Read from MH i2c: D1 [10:03:28]MH_I2C_Read... [10:03:28]Read from MH i2c: D1 01 00 [10:03:28]MH_I2C_Read... [10:03:28]Read from MH i2c: D1 01 00 69 26 00 60 [10:03:28]Write to MH i2c: 01 00 00 6A 26 90 [10:03:28]Write i2c OK [10:03:28]MH_I2C_Read... [10:03:28]OFD Sender: No OFD packet to send [10:03:28]*** Cut start [10:03:28]*** Partial cut [10:03:28]*** CUTSNS_PIN = 1 [10:03:29]*** CUTSNS_PIN = 0 [10:03:29]*** Brake cut motor [10:03:29]Read from MH i2c: 01 [10:03:29]MH_I2C_Read... [10:03:29]*** Stop cut motor [10:03:29]*** Cut end [10:03:29]Read from MH i2c: 01 07 00 [10:03:29]MH_I2C_Read... [10:03:29]Read from MH i2c: 01 07 00 6A 26 00 00 00 00 00 FF 0F A5 [10:03:29]process_action close_receipt done [10:03:29]requested_data is exist [10:03:29]produce_requested_data [10:03:29]requested_item fm.sn is exist - process it [10:03:29]wFMCommunicate request_size=4 [10:03:29]MH_SAM_APDU [10:03:29]CAPDU: 80 11 00 00 [10:03:29]Write to MH i2c: E2 08 00 6B 26 80 11 00 00 00 00 00 00 0B [10:03:29]Write i2c OK [10:03:29]MH_I2C_Read... [10:03:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:29]Read from MH i2c: E2 [10:03:29]MH_I2C_Read... [10:03:29]Read from MH i2c: E2 17 00 [10:03:29]MH_I2C_Read... [10:03:29]Read from MH i2c: E2 17 00 6B 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 56 [10:03:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [10:03:29]wFMCommunicate OK [10:03:29]requested_item fd.num is exist - process it [10:03:29]SAM_PROTO_GetFieldsCounters [10:03:29]wFMCommunicate request_size=4 [10:03:29]MH_SAM_APDU [10:03:29]CAPDU: 80 13 00 00 [10:03:29]Write to MH i2c: E2 08 00 6C 26 80 13 00 00 00 00 00 00 0E [10:03:29]Write i2c OK [10:03:29]MH_I2C_Read... [10:03:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:03:29]Read from MH i2c: E2 [10:03:29]MH_I2C_Read... [10:03:29]Read from MH i2c: E2 62 00 [10:03:29]MH_I2C_Read... [10:03:29]Read from MH i2c: E2 62 00 6C 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 C3 0A 01 00 0E 04 04 00 44 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 B0 [10:03:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 C3 0A 01 00 0E 04 04 00 44 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 [10:03:29]wFMCommunicate OK [10:03:29]SAM_PROTO_GetFieldsCounters done [10:03:29]requested_item shift.num is exist - process it [10:03:29]requested_item shift.opened is exist - process it [10:03:29]req_shift_opened [10:03:29]FM_GetShiftState [10:03:29]SAM_PROTO_GetShiftState [10:03:29]wFMCommunicate request_size=4 [10:03:29]MH_SAM_APDU [10:03:29]CAPDU: 80 13 01 00 [10:03:29]Write to MH i2c: E2 08 00 6D 26 80 13 01 00 00 00 00 00 10 [10:03:29]Write i2c OK [10:03:29]MH_I2C_Read... [10:03:29]Read from MH i2c: E2 [10:03:29]MH_I2C_Read... [10:03:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:03:29]Read from MH i2c: E2 0E 00 [10:03:29]MH_I2C_Read... [10:03:29]Read from MH i2c: E2 0E 00 6D 26 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 EB [10:03:29]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [10:03:29]wFMCommunicate OK [10:03:29]SAM_PROTO_GetShiftState done [10:03:29]FM_GetShiftState done [10:03:29]req_shift_opened done [10:03:29]requested_item shift.open_date is exist - process it [10:03:29]req_shift_open_date [10:03:29]req_shift_open_date done [10:03:29]produce_requested_data done [10:03:29]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68291,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [10:03:29]process_action_free close_receipt [10:03:29]json_value_free [10:03:29]json_value_free done [10:03:29]process_json_proto returns [10:03:29]Send response to host [10:03:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68291,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [10:03:29]free response buf [10:03:29]execute_script done [10:03:29]execute_script returns [10:03:29]free content buf [10:03:29]Sock 7.Close socket [10:03:29]Sock 7.Thread stoped [10:03:33]OFD Sender: No OFD packet to send [10:03:38]OFD Sender: No OFD packet to send [10:03:43]OFD Sender: No OFD packet to send [10:03:48]OFD Sender: No OFD packet to send [10:03:53]OFD Sender: No OFD packet to send [10:03:58]OFD Sender: No OFD packet to send [10:04:03]OFD Sender: No OFD packet to send [10:04:08]OFD Sender: No OFD packet to send [10:04:13]OFD Sender: No OFD packet to send [10:04:14]accept exits with 9 [10:04:14]New connection [10:04:14]New thread 3066686820 created [10:04:14]Thread 3066543460 joined [10:04:14]Waiting for new connection... [10:04:14] Sock 9.Parse request [10:04:14]Sock 9.Check first char [10:04:14]Sock 9.First char is OK [10:04:14]request: POST /json_proto HTTP/1.0 [10:04:14]Method: POST [10:04:14]URL: /json_proto [10:04:14]Method is POST - this is cgi request [10:04:14]url: /json_proto [10:04:14]query_string will be loaded in cgi processing [10:04:14]execute_cgi json_proto POST (null) [10:04:14]execute_cgi path=json_proto method=POST [10:04:14]POST find Content-Length [10:04:14]Host: 172.17.36.132:8080 [10:04:14]Content-Length: 843 [10:04:14]Content-Type: application/json [10:04:14] [10:04:14]POST finish read [10:04:14]Found Content-Length = 843 [10:04:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706363", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:14]execute_script... [10:04: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)706363", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:14]POST & json_proto [10:04:14]process_json_proto [10:04:14]json parsed OK: [10:04:14]protocol is kg_v1.0 [10:04:14]action value=close_receipt [10:04:14]process_action close_receipt [10:04:14]cmd_close_receipt [10:04:14]MH_GetDate [10:04:14]Write to MH i2c: F0 00 00 6E 26 83 [10:04:14]Write i2c OK [10:04:14]MH_I2C_Read... [10:04:14]Read from MH i2c: F0 [10:04:14]MH_I2C_Read... [10:04:14]Read from MH i2c: F0 09 00 [10:04:14]MH_I2C_Read... [10:04:14]Read from MH i2c: F0 09 00 6E 26 00 22 95 5D 66 B2 22 B0 64 EE [10:04:14]GetLastDocTimeStamp 1717409010 [10:04:14]current date 1717409058 [10:04:14]FM_GetShiftState [10:04:14]SAM_PROTO_GetShiftState [10:04:14]wFMCommunicate request_size=4 [10:04:14]MH_SAM_APDU [10:04:14]CAPDU: 80 13 01 00 [10:04:14]Write to MH i2c: E2 08 00 6F 26 80 13 01 00 00 00 00 00 12 [10:04:14]Write i2c OK [10:04:14]MH_I2C_Read... [10:04:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:14]Read from MH i2c: E2 [10:04:14]MH_I2C_Read... [10:04:14]Read from MH i2c: E2 0E 00 [10:04:14]MH_I2C_Read... [10:04:14]Read from MH i2c: E2 0E 00 6F 26 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 ED [10:04:14]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [10:04:14]wFMCommunicate OK [10:04:14]SAM_PROTO_GetShiftState done [10:04:14]FM_GetShiftState done [10:04:14]opened in 1717378033 [10:04:14]opened+sec_in_day 1717464433 [10:04:14]quantity*price = 100015 [10:04:14]sum+1 = 100017 [10:04:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 38 03.06.2024 10:04 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68292 ФПД: 235653434956214 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T100418&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68292&fm=235653434956214&tin=02508201610067®Number=0000000000098096&sum=100016 [10:04:15]StoreToDocumentArchive [10:04:15]shift 324 fd 68292 [10:04:15]save to /storage/0324/doc_00068292 [10:04:15]save last doc name /storage/0324/doc_00068292 to /storage/kkm_last_doc_name [10:04:15]save OK [10:04:15]Clear old archive folders... [10:04:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:04:15]tlvbuf is 002780F0 [10:04:15]SAM_PROTO_ClearQueue [10:04:15]wFMCommunicate request_size=4 [10:04:15]MH_SAM_APDU [10:04:15]CAPDU: 80 09 00 00 [10:04:15]Write to MH i2c: E2 08 00 7C 26 80 09 00 00 00 00 00 00 14 [10:04:15]Write i2c OK [10:04:15]MH_I2C_Read... [10:04:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:04:15]Read from MH i2c: E2 [10:04:15]MH_I2C_Read... [10:04:15]Read from MH i2c: E2 03 00 [10:04:15]MH_I2C_Read... [10:04:15]Read from MH i2c: E2 03 00 7C 26 00 90 00 16 [10:04:15]RAPDU: 90 00 [10:04:15]wFMCommunicate OK [10:04:15]SAM_PROTO_ClearQueue done [10:04:15]KKMCreateOFDPacket [10:04:15]OFDProtocolAddRootSTLVToBuf [10:04:15]FM_MakeSignedData [10:04:15]FM_MakeSignedData [10:04:15]SAM_PROTO_SignData [10:04:15]wFMCommunicate request_size=4 [10:04:15]MH_SAM_APDU [10:04:15]CAPDU: 80 0D 01 02 [10:04:15]Write to MH i2c: E2 08 00 7D 26 80 0D 01 02 00 00 00 00 1C [10:04:15]Write i2c OK [10:04:15]MH_I2C_Read... [10:04:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:04:15]Read from MH i2c: E2 [10:04:15]MH_I2C_Read... [10:04:15]Read from MH i2c: E2 03 00 [10:04:15]MH_I2C_Read... [10:04:15]Read from MH i2c: E2 03 00 7D 26 00 90 00 17 [10:04:15]RAPDU: 90 00 [10:04:15]wFMCommunicate OK [10:04:15]wFMCommunicate request_size=255 [10:04:15]MH_SAM_APDU [10:04:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 22 95 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C4 0A 01 00 35 04 06 00 D6 [10:04:15]Write to MH i2c: E2 02 01 7E 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 22 95 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C4 0A 01 00 35 04 06 00 D6 00 00 4D [10:04:15]Write i2c OK [10:04:15]MH_I2C_Read... [10:04:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:15]Read from MH i2c: E2 [10:04:15]MH_I2C_Read... [10:04:15]Read from MH i2c: E2 03 00 [10:04:15]MH_I2C_Read... [10:04:15]Read from MH i2c: E2 03 00 7E 26 00 90 00 18 [10:04:15]RAPDU: 90 00 [10:04:15]wFMCommunicate OK [10:04:15]wFMCommunicate request_size=10 [10:04:15]MH_SAM_APDU [10:04:15]CAPDU: 80 0D 02 02 05 53 57 47 D9 B6 [10:04:15]Write to MH i2c: E2 0D 00 7F 26 80 0D 02 02 05 00 53 57 47 D9 B6 00 00 A9 [10:04:15]Write i2c OK [10:04:15]MH_I2C_Read... [10:04:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:15]Read from MH i2c: E2 [10:04:15]MH_I2C_Read... [10:04:15]Read from MH i2c: E2 03 00 [10:04:15]MH_I2C_Read... [10:04:15]Read from MH i2c: E2 03 00 7F 26 00 90 00 19 [10:04:15]RAPDU: 90 00 [10:04:15]wFMCommunicate OK [10:04:15]wFMCommunicate request_size=4 [10:04:15]MH_SAM_APDU [10:04:15]CAPDU: 80 0D 03 02 [10:04:15]Write to MH i2c: E2 08 00 80 26 80 0D 03 02 00 00 00 00 21 [10:04:15]Write i2c OK [10:04:15]MH_I2C_Read... [10:04:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:04:15]Read from MH i2c: E2 [10:04:15]MH_I2C_Read... [10:04:15]Read from MH i2c: E2 0B 00 [10:04:15]MH_I2C_Read... [10:04:15]Read from MH i2c: E2 0B 00 80 26 00 DB E8 07 3E D7 F2 2D B3 90 00 D3 [10:04:15]RAPDU: DB E8 07 3E D7 F2 2D B3 90 00 [10:04:15]wFMCommunicate OK [10:04:15]SAM_PROTO_SignData done [10:04:15]FM_MakeSignedData done [10:04:15]CreateOFDProtocolMessage [10:04:15]wFMCommunicate request_size=4 [10:04:15]MH_SAM_APDU [10:04:15]CAPDU: 80 11 00 00 [10:04:15]Write to MH i2c: E2 08 00 81 26 80 11 00 00 00 00 00 00 21 [10:04:15]Write i2c OK [10:04:15]MH_I2C_Read... [10:04:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:16]Read from MH i2c: E2 [10:04:16]MH_I2C_Read... [10:04:16]Read from MH i2c: E2 17 00 [10:04:16]MH_I2C_Read... [10:04:16]Read from MH i2c: E2 17 00 81 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 6C [10:04:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [10:04:16]wFMCommunicate OK [10:04:16]CreateOFDProtocolMessage done [10:04:16]OFDSenderStorePacket 68292 [10:04:16]StoreOFDPacket docnum=68292 [10:04:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 DC 36 07 01 C9 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 22 95 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C4 0A 01 00 35 04 06 00 D6 53 57 47 D9 B6 DB E8 07 3E D7 F2 2D B3 [10:04:16]CheckFolder [10:04:16]dirname=/storage/ofd_packets [10:04:16]CheckFolder done [10:04:16]ProducePacketName [10:04:16]name=ofd_packets/00068292 [10:04:16]NVStorageSaveData ofd_packets/00068292 [10:04:16]File name is /storage/ofd_packets/00068292 [10:04:16]Write 301 bytes [10:04:16]NVStorageSaveData done [10:04:16]OFDSenderStorePacket done [10:04:16]KKMCreateOFDPacket done [10:04:16]NVStorageSaveData kkm_last_timestamp [10:04:16]File name is /storage/kkm_last_timestamp [10:04:16]Write 4 bytes [10:04:16]NVStorageSaveData done [10:04:16]ExternCall_PrintAddStr [10:04:16]wPrintStart [10:04:16]Write to MH i2c: 01 00 00 82 26 A8 [10:04:16]Write i2c OK [10:04:16]MH_I2C_Read... [10:04:16]Read from MH i2c: 01 [10:04:16]MH_I2C_Read... [10:04:16]Read from MH i2c: 01 07 00 [10:04:16]MH_I2C_Read... [10:04:16]Read from MH i2c: 01 07 00 82 26 00 00 00 00 00 FF 0F BD [10:04:16]RasterBufferAndPrint [10:04:16]line Счет N : (1)706363 [10:04:16]line ИНН: 02508201610067 [10:04:16]line Контрольно-Кассовый Чек [10:04:16]line ПРОДАЖА [10:04:16]line ТРК (МРК, ГНК) : 42 [10:04:16]line Товар: 2710124130 [10:04:16]line Аи-92-К-4 [10:04:16]line 14.950 * 66.90 [10:04:16]line = 1000.16 [10:04:16]line НДС 12% НСП 1% [10:04:16]line > о реализуемом товаре [10:04:16]line ИТОГО: 1000.16 [10:04:16]line НСП 1% : 8.85 [10:04:16]line НДС 12% : 106.21 [10:04:16]line Наличными: 0.00 [10:04:16]line Безнал.: 1000.16 [10:04:16]line Место: АЗС № 62 "Партнер Нефть" [10:04:16]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [10:04:16]line СНО: Общий режим [10:04:16]line Чек 38 03.06.2024 10:04 [10:04:16]line Смена: 324 ФФД: 1.0 [10:04:16]line ЗНМ: 0300000181 [10:04:16]line РНМ: 0000000000098096 [10:04:16]line Версия ККМ: 001 [10:04:16]line Платежная система: АКБ Кыргызстан [10:04:16]line ФМ: 0000000000965400 [10:04:16]line ФД: 68292 [10:04:16]line ФПД: 235653434956214 [10:04:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T100418&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68292&fm=235653434956214&tin=02508201610067®Number=0000000000098096&sum=100016 [10:04:16]OFD Sender: Processing packet 68292 [packets to send 26, broken 25] [10:04:16]ProducePacketName [10:04:16]name=ofd_packets/00068292 [10:04:16]OFD Sender: To server: pG, [10:04:16]CommunicateWithHost lk.salyk.kg:30040 [10:04:16]ConnectInit lk.salyk.kg [10:04:16]written 0, free lines is 4095 [10:04:16]Connected sock=10 [10:04:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 DC 36 07 01 C9 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 22 95 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C4 0A 01 00 35 04 06 00 D6 53 57 47 D9 B6 DB E8 07 3E D7 F2 2D B3 [10:04:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 6E 0F 47 00 EE 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C4 0A 01 00 F4 03 04 00 1F 3C 5D 66 B6 04 01 00 00 89 2A E2 B8 17 F1 07 DD [10:04:16]CommunicateWithHost err = 0 [10:04:16]CheckOFDResponse [10:04:16]1017 (14) - 77093643461234 [10:04:16]1041 (16) - 0000000000965400 [10:04:16]1040 (4) - 68292 [10:04:16]1012 (4) - 03.06.2024 03:44 [10:04:16]1206 (1) - 0 [10:04:16]OFD Sender: Remove packet 68292 [10:04:16]ProducePacketName [10:04:16]name=ofd_packets/00068292 [10:04:16]NVStorageDeleteData [10:04:16]Write to MH i2c: 01 00 00 AC 26 D2 [10:04:16]Write i2c OK [10:04:16]MH_I2C_Read... [10:04:16]Read from MH i2c: 01 [10:04:16]MH_I2C_Read... [10:04:16]Read from MH i2c: 01 07 00 [10:04:16]MH_I2C_Read... [10:04:16]Read from MH i2c: 01 07 00 AC 26 00 00 00 00 00 EE 0C D3 [10:04:16]RasterBufferAndPrint [10:04:16]line [10:04:16]line [10:04:16]line [10:04:16]line [10:04:16]line [10:04:16]written 0, free lines is 3317 [10:04:16]MH_Cut [10:04:16]Write to MH i2c: D1 01 00 B3 26 01 AB [10:04:16]Write i2c OK [10:04:16]MH_I2C_Read... [10:04:16]Read from MH i2c: D1 [10:04:16]MH_I2C_Read... [10:04:16]Read from MH i2c: D1 01 00 [10:04:16]MH_I2C_Read... [10:04:16]Read from MH i2c: D1 01 00 B3 26 00 AA [10:04:16]Write to MH i2c: 01 00 00 B4 26 DA [10:04:16]Write i2c OK [10:04:16]MH_I2C_Read... [10:04:17]OFD Sender: No OFD packet to send [10:04:17]*** Cut start [10:04:17]*** Partial cut [10:04:17]*** CUTSNS_PIN = 1 [10:04:17]*** CUTSNS_PIN = 0 [10:04:17]*** Brake cut motor [10:04:18]Read from MH i2c: 01 [10:04:18]MH_I2C_Read... [10:04:18]*** Stop cut motor [10:04:18]*** Cut end [10:04:18]Read from MH i2c: 01 07 00 [10:04:18]MH_I2C_Read... [10:04:18]Read from MH i2c: 01 07 00 B4 26 00 00 00 00 00 FF 0F EF [10:04:18]process_action close_receipt done [10:04:18]requested_data is exist [10:04:18]produce_requested_data [10:04:18]requested_item fm.sn is exist - process it [10:04:18]wFMCommunicate request_size=4 [10:04:18]MH_SAM_APDU [10:04:18]CAPDU: 80 11 00 00 [10:04:18]Write to MH i2c: E2 08 00 B5 26 80 11 00 00 00 00 00 00 55 [10:04:18]Write i2c OK [10:04:18]MH_I2C_Read... [10:04:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:18]Read from MH i2c: E2 [10:04:18]MH_I2C_Read... [10:04:18]Read from MH i2c: E2 17 00 [10:04:18]MH_I2C_Read... [10:04:18]Read from MH i2c: E2 17 00 B5 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 A0 [10:04:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [10:04:18]wFMCommunicate OK [10:04:18]requested_item fd.num is exist - process it [10:04:18]SAM_PROTO_GetFieldsCounters [10:04:18]wFMCommunicate request_size=4 [10:04:18]MH_SAM_APDU [10:04:18]CAPDU: 80 13 00 00 [10:04:18]Write to MH i2c: E2 08 00 B6 26 80 13 00 00 00 00 00 00 58 [10:04:18]Write i2c OK [10:04:18]MH_I2C_Read... [10:04:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:04:18]Read from MH i2c: E2 [10:04:18]MH_I2C_Read... [10:04:18]Read from MH i2c: E2 62 00 [10:04:18]MH_I2C_Read... [10:04:18]Read from MH i2c: E2 62 00 B6 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 C4 0A 01 00 0E 04 04 00 44 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 FE [10:04:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 C4 0A 01 00 0E 04 04 00 44 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 [10:04:18]wFMCommunicate OK [10:04:18]SAM_PROTO_GetFieldsCounters done [10:04:18]requested_item shift.num is exist - process it [10:04:18]requested_item shift.opened is exist - process it [10:04:18]req_shift_opened [10:04:18]FM_GetShiftState [10:04:18]SAM_PROTO_GetShiftState [10:04:18]wFMCommunicate request_size=4 [10:04:18]MH_SAM_APDU [10:04:18]CAPDU: 80 13 01 00 [10:04:18]Write to MH i2c: E2 08 00 B7 26 80 13 01 00 00 00 00 00 5A [10:04:18]Write i2c OK [10:04:18]MH_I2C_Read... [10:04:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:18]Read from MH i2c: E2 [10:04:18]MH_I2C_Read... [10:04:18]Read from MH i2c: E2 0E 00 [10:04:18]MH_I2C_Read... [10:04:18]Read from MH i2c: E2 0E 00 B7 26 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 35 [10:04:18]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [10:04:18]wFMCommunicate OK [10:04:18]SAM_PROTO_GetShiftState done [10:04:18]FM_GetShiftState done [10:04:18]req_shift_opened done [10:04:18]requested_item shift.open_date is exist - process it [10:04:18]req_shift_open_date [10:04:18]req_shift_open_date done [10:04:18]produce_requested_data done [10:04:18]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68292,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [10:04:18]process_action_free close_receipt [10:04:18]json_value_free [10:04:18]json_value_free done [10:04:18]process_json_proto returns [10:04:18]Send response to host [10:04:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68292,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [10:04:18]free response buf [10:04:18]execute_script done [10:04:18]execute_script returns [10:04:18]free content buf [10:04:18]Sock 9.Close socket [10:04:18]Sock 9.Thread stoped [10:04:22]OFD Sender: No OFD packet to send [10:04:25]int [10:04:25]Write to MH i2c: 01 00 00 B8 26 DE [10:04:25]*** FLAG_PRN_PAP1 set [10:04:25]Write i2c OK [10:04:25]MH_I2C_Read... [10:04:25]Read from MH i2c: 01 [10:04:25]MH_I2C_Read... [10:04:25]Read from MH i2c: 01 07 00 [10:04:25]MH_I2C_Read... [10:04:25]Read from MH i2c: 01 07 00 B8 26 00 01 00 00 00 FF 0F F4 [10:04:25]state=0 [10:04:25]No paper [10:04:25]int [10:04:25]Write to MH i2c: 01 00 00 B9 26 DF [10:04:25]*** FLAG_PRN_PAP2 set [10:04:25]Write i2c OK [10:04:25]MH_I2C_Read... [10:04:25]Read from MH i2c: 01 [10:04:25]MH_I2C_Read... [10:04:25]Read from MH i2c: 01 07 00 [10:04:25]MH_I2C_Read... [10:04:25]Read from MH i2c: 01 07 00 B9 26 00 03 00 00 00 FF 0F F7 [10:04:25]state=0 [10:04:25]No paper [10:04:25]Cover opened [10:04:27]OFD Sender: No OFD packet to send [10:04:30]Write to MH i2c: 01 00 00 BA 26 E0 [10:04:30]Write i2c OK [10:04:30]MH_I2C_Read... [10:04:30]Read from MH i2c: 01 [10:04:30]MH_I2C_Read... [10:04:30]Read from MH i2c: 01 07 00 [10:04:30]MH_I2C_Read... [10:04:30]Read from MH i2c: 01 07 00 BA 26 00 03 00 00 00 FF 0F F8 [10:04:30]state=3 [10:04:30]No paper [10:04:30]Cover opened [10:04:32]OFD Sender: No OFD packet to send [10:04:33]int [10:04:33]Write to MH i2c: 01 00 00 BB 26 E1 [10:04:33]*** FLAG_PRN_PAP1 reset [10:04:33]Write i2c OK [10:04:33]MH_I2C_Read... [10:04:33]Read from MH i2c: 01 [10:04:33]MH_I2C_Read... [10:04:33]Read from MH i2c: 01 07 00 [10:04:33]MH_I2C_Read... [10:04:33]Read from MH i2c: 01 07 00 BB 26 00 02 00 00 00 FF 0F F8 [10:04:33]state=3 [10:04:33]Cover opened [10:04:33]int [10:04:33]Write to MH i2c: 01 00 00 BC 26 E2 [10:04:33]*** FLAG_PRN_PAP2 reset [10:04:33]Write i2c OK [10:04:33]MH_I2C_Read... [10:04:33]Read from MH i2c: 01 [10:04:33]MH_I2C_Read... [10:04:33]Read from MH i2c: 01 07 00 [10:04:33]MH_I2C_Read... [10:04:33]Read from MH i2c: 01 07 00 BC 26 00 00 00 00 00 FF 0F F7 [10:04:33]state=3 [10:04:33]Cover closed [10:04:37]OFD Sender: No OFD packet to send [10:04:38]accept exits with 7 [10:04:38]New connection [10:04:38]New thread 3066543460 created [10:04:38]Thread 3066686820 joined [10:04:38]Waiting for new connection... [10:04:38] Sock 7.Parse request [10:04:38]Sock 7.Check first char [10:04:38]Sock 7.First char is OK [10:04:38]request: POST /json_proto HTTP/1.0 [10:04:38]Method: POST [10:04:38]URL: /json_proto [10:04:38]Method is POST - this is cgi request [10:04:38]url: /json_proto [10:04:38]query_string will be loaded in cgi processing [10:04:38]execute_cgi json_proto POST (null) [10:04:38]execute_cgi path=json_proto method=POST [10:04:38]POST find Content-Length [10:04:38]Host: 172.17.36.132:8080 [10:04:38]Content-Length: 215 [10:04:38]Content-Type: application/json [10:04:38] [10:04:38]POST finish read [10:04:38]Found Content-Length = 215 [10:04:38]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:04:38]execute_script... [10:04:38]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:04:38]POST & json_proto [10:04:38]process_json_proto [10:04:38]json parsed OK: [10:04:38]protocol is kg_v1.0 [10:04:38]action value=get_value [10:04:38]process_action get_value [10:04:38]cmd_get_value [10:04:38]process_action get_value done [10:04:38]requested_data is exist [10:04:38]produce_requested_data [10:04:38]requested_item kkm.sn is exist - process it [10:04:38]requested_item kkm.ver is exist - process it [10:04:38]requested_item fm.sn is exist - process it [10:04:38]wFMCommunicate request_size=4 [10:04:38]MH_SAM_APDU [10:04:38]CAPDU: 80 11 00 00 [10:04:38]Write to MH i2c: E2 08 00 BD 26 80 11 00 00 00 00 00 00 5D [10:04:38]Write i2c OK [10:04:38]MH_I2C_Read... [10:04:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:38]Read from MH i2c: E2 [10:04:38]MH_I2C_Read... [10:04:38]Read from MH i2c: E2 17 00 [10:04:38]MH_I2C_Read... [10:04:38]Read from MH i2c: E2 17 00 BD 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 A8 [10:04:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [10:04:38]wFMCommunicate OK [10:04:38]requested_item fd.num is exist - process it [10:04:38]SAM_PROTO_GetFieldsCounters [10:04:38]wFMCommunicate request_size=4 [10:04:38]MH_SAM_APDU [10:04:38]CAPDU: 80 13 00 00 [10:04:38]Write to MH i2c: E2 08 00 BE 26 80 13 00 00 00 00 00 00 60 [10:04:38]Write i2c OK [10:04:38]MH_I2C_Read... [10:04:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:04:38]Read from MH i2c: E2 [10:04:38]MH_I2C_Read... [10:04:38]Read from MH i2c: E2 62 00 [10:04:38]MH_I2C_Read... [10:04:38]Read from MH i2c: E2 62 00 BE 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 C4 0A 01 00 0E 04 04 00 44 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 06 [10:04:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 C4 0A 01 00 0E 04 04 00 44 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 [10:04:38]wFMCommunicate OK [10:04:38]SAM_PROTO_GetFieldsCounters done [10:04:38]requested_item shift.num is exist - process it [10:04:38]requested_item shift.opened is exist - process it [10:04:38]req_shift_opened [10:04:38]FM_GetShiftState [10:04:38]SAM_PROTO_GetShiftState [10:04:38]wFMCommunicate request_size=4 [10:04:38]MH_SAM_APDU [10:04:38]CAPDU: 80 13 01 00 [10:04:38]Write to MH i2c: E2 08 00 BF 26 80 13 01 00 00 00 00 00 62 [10:04:38]Write i2c OK [10:04:38]MH_I2C_Read... [10:04:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:38]Read from MH i2c: E2 [10:04:38]MH_I2C_Read... [10:04:38]Read from MH i2c: E2 0E 00 [10:04:38]MH_I2C_Read... [10:04:38]Read from MH i2c: E2 0E 00 BF 26 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 3D [10:04:38]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [10:04:38]wFMCommunicate OK [10:04:38]SAM_PROTO_GetShiftState done [10:04:38]FM_GetShiftState done [10:04:38]req_shift_opened done [10:04:38]requested_item shift.open_date is exist - process it [10:04:38]req_shift_open_date [10:04:38]req_shift_open_date done [10:04:38]produce_requested_data done [10:04:38]produce_requested_data return {"kkm.sn":"0300000181","kkm.ver":"001","fm.sn":"0000000000965400","fd.num":68292,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [10:04:38]process_action_free get_value [10:04:38]json_value_free [10:04:38]json_value_free done [10:04:38]process_json_proto returns [10:04:38]Send response to host [10:04:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000181","kkm.ver":"001","fm.sn":"0000000000965400","fd.num":68292,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [10:04:38]free response buf [10:04:38]execute_script done [10:04:38]execute_script returns [10:04:38]free content buf [10:04:38]Sock 7.Close socket [10:04:38]Sock 7.Thread stoped [10:04:38]accept exits with 9 [10:04:38]New connection [10:04:38]New thread 3066686820 created [10:04:38]Thread 3066543460 joined [10:04:38]Waiting for new connection... [10:04:38] Sock 9.Parse request [10:04:38]Sock 9.Check first char [10:04:38]Sock 9.First char is OK [10:04:38]request: POST /json_proto HTTP/1.0 [10:04:38]Method: POST [10:04:38]URL: /json_proto [10:04:38]Method is POST - this is cgi request [10:04:38]url: /json_proto [10:04:38]query_string will be loaded in cgi processing [10:04:38]execute_cgi json_proto POST (null) [10:04:38]execute_cgi path=json_proto method=POST [10:04:38]POST find Content-Length [10:04:38]Host: 172.17.36.132:8080 [10:04:38]Content-Length: 331 [10:04:38]Content-Type: application/json [10:04:38] [10:04:38]POST finish read [10:04:38]Found Content-Length = 331 [10:04:38]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:04:38]execute_script... [10:04:39]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:04:39]POST & json_proto [10:04:39]process_json_proto [10:04:39]json parsed OK: [10:04:39]protocol is kg_v1.0 [10:04:39]action value=get_value [10:04:39]process_action get_value [10:04:39]cmd_get_value [10:04:39]process_action get_value done [10:04:39]requested_data is exist [10:04:39]produce_requested_data [10:04:39]requested_item fm.sale.total is exist - process it [10:04:39]SAM_PROTO_GetFMData [10:04:39]wFMCommunicate request_size=4 [10:04:39]MH_SAM_APDU [10:04:39]CAPDU: 80 13 03 00 [10:04:39]Write to MH i2c: E2 08 00 C0 26 80 13 03 00 00 00 00 00 65 [10:04:39]Write i2c OK [10:04:39]MH_I2C_Read... [10:04:39]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [10:04:39]Read from MH i2c: E2 [10:04:39]MH_I2C_Read... [10:04:39]Read from MH i2c: E2 FD 00 [10:04:39]MH_I2C_Read... [10:04:39]Read from MH i2c: E2 FD 00 C0 26 00 C5 04 85 04 C1 04 6E 04 04 00 3C 08 01 00 69 04 A3 00 6F 04 04 00 2F 03 01 00 B1 04 05 00 51 F3 81 38 01 70 04 05 00 E4 A8 10 0C 01 72 04 04 00 6D 4A 71 2C 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 C3 62 32 21 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 9F 19 C4 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 0D 05 00 00 B1 04 04 00 EC 77 BF 0E 70 04 04 00 EC 77 BF 0E 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 7F FD 90 01 EF 03 09 90 00 71 [10:04:39]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 3C 08 01 00 69 04 A3 00 6F 04 04 00 2F 03 01 00 B1 04 05 00 51 F3 81 38 01 70 04 05 00 E4 A8 10 0C 01 72 04 04 00 6D 4A 71 2C 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 C3 62 32 21 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 9F 19 C4 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 0D 05 00 00 B1 04 04 00 EC 77 BF 0E 70 04 04 00 EC 77 BF 0E 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 7F FD 90 01 EF 03 09 90 00 [10:04:39]wFMCommunicate OK [10:04:39]wFMCommunicate request_size=4 [10:04:39]MH_SAM_APDU [10:04:39]CAPDU: 80 17 00 00 [10:04:39]Write to MH i2c: E2 08 00 C1 26 80 17 00 00 00 00 00 00 67 [10:04:39]Write i2c OK [10:04:39]MH_I2C_Read... [10:04:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:04:39]Read from MH i2c: E2 [10:04:39]MH_I2C_Read... [10:04:39]Read from MH i2c: E2 FD 00 [10:04:39]MH_I2C_Read... [10:04:39]Read from MH i2c: E2 FD 00 C1 26 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 02 6A 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 AA [10:04:39]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 02 6A 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [10:04:39]wFMCommunicate OK [10:04:39]wFMCommunicate request_size=4 [10:04:39]MH_SAM_APDU [10:04:39]CAPDU: 80 17 00 00 [10:04:39]Write to MH i2c: E2 08 00 C2 26 80 17 00 00 00 00 00 00 68 [10:04:39]Write i2c OK [10:04:39]MH_I2C_Read... [10:04:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:04:40]Read from MH i2c: E2 [10:04:40]MH_I2C_Read... [10:04:40]Read from MH i2c: E2 FD 00 [10:04:40]MH_I2C_Read... [10:04:40]Read from MH i2c: E2 FD 00 C2 26 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 7A [10:04:40]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [10:04:40]wFMCommunicate OK [10:04:40]wFMCommunicate request_size=4 [10:04:40]MH_SAM_APDU [10:04:40]CAPDU: 80 17 00 00 [10:04:40]Write to MH i2c: E2 08 00 C3 26 80 17 00 00 00 00 00 00 69 [10:04:40]Write i2c OK [10:04:40]MH_I2C_Read... [10:04:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:04:40]Read from MH i2c: E2 [10:04:40]MH_I2C_Read... [10:04:40]Read from MH i2c: E2 FD 00 [10:04:40]MH_I2C_Read... [10:04:40]Read from MH i2c: E2 FD 00 C3 26 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 F5 [10:04:40]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [10:04:40]wFMCommunicate OK [10:04:40]wFMCommunicate request_size=4 [10:04:40]MH_SAM_APDU [10:04:40]CAPDU: 80 17 00 00 [10:04:40]Write to MH i2c: E2 08 00 C4 26 80 17 00 00 00 00 00 00 6A [10:04:40]Write i2c OK [10:04:40]MH_I2C_Read... [10:04:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [10:04:40]Read from MH i2c: E2 [10:04:40]MH_I2C_Read... [10:04:40]Read from MH i2c: E2 E2 00 [10:04:40]MH_I2C_Read... [10:04:40]Read from MH i2c: E2 E2 00 C4 26 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 48 [10:04:40]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [10:04:40]wFMCommunicate OK [10:04:40]SAM_PROTO_GetFMData done [10:04:40]requested_item fm.sale_refund.total is exist - process it [10:04:40]requested_item fm.buy.total is exist - process it [10:04:40]requested_item shift.sale.total is exist - process it [10:04:40]SAM_PROTO_GetShiftData [10:04:40]wFMCommunicate request_size=4 [10:04:40]MH_SAM_APDU [10:04:40]CAPDU: 80 13 02 00 [10:04:40]Write to MH i2c: E2 08 00 C5 26 80 13 02 00 00 00 00 00 69 [10:04:40]Write i2c OK [10:04:40]MH_I2C_Read... [10:04:41]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [10:04:41]Read from MH i2c: E2 [10:04:41]MH_I2C_Read... [10:04:41]Read from MH i2c: E2 FD 00 [10:04:41]MH_I2C_Read... [10:04:41]Read from MH i2c: E2 FD 00 C5 26 00 B8 04 AA 04 B4 04 6E 04 04 00 26 00 00 00 69 04 9B 00 6F 04 04 00 24 00 00 00 B1 04 03 00 9F C6 2F 70 04 03 00 A0 09 1A 72 04 03 00 FF BC 15 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 03 13 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 3D 6C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 FC 0F 03 70 04 03 00 FC 0F 03 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 41 53 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 42 [10:04:41]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 26 00 00 00 69 04 9B 00 6F 04 04 00 24 00 00 00 B1 04 03 00 9F C6 2F 70 04 03 00 A0 09 1A 72 04 03 00 FF BC 15 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 03 13 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 3D 6C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 FC 0F 03 70 04 03 00 FC 0F 03 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 41 53 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [10:04:41]wFMCommunicate OK [10:04:41]wFMCommunicate request_size=4 [10:04:41]MH_SAM_APDU [10:04:41]CAPDU: 80 17 00 00 [10:04:41]Write to MH i2c: E2 08 00 C6 26 80 17 00 00 00 00 00 00 6C [10:04:41]Write i2c OK [10:04:41]MH_I2C_Read... [10:04:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:04:41]Read from MH i2c: E2 [10:04:41]MH_I2C_Read... [10:04:41]Read from MH i2c: E2 FD 00 [10:04:41]MH_I2C_Read... [10:04:41]Read from MH i2c: E2 FD 00 C6 26 00 0B 00 F6 03 01 00 01 F7 03 02 00 F0 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 93 [10:04:41]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 F0 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 [10:04:41]wFMCommunicate OK [10:04:41]wFMCommunicate request_size=4 [10:04:41]MH_SAM_APDU [10:04:41]CAPDU: 80 17 00 00 [10:04:41]Write to MH i2c: E2 08 00 C7 26 80 17 00 00 00 00 00 00 6D [10:04:41]Write i2c OK [10:04:41]MH_I2C_Read... [10:04:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:04:41]Read from MH i2c: E2 [10:04:41]MH_I2C_Read... [10:04:41]Read from MH i2c: E2 FD 00 [10:04:41]MH_I2C_Read... [10:04:41]Read from MH i2c: E2 FD 00 C7 26 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 0F [10:04:41]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 [10:04:41]wFMCommunicate OK [10:04:41]wFMCommunicate request_size=4 [10:04:41]MH_SAM_APDU [10:04:41]CAPDU: 80 17 00 00 [10:04:41]Write to MH i2c: E2 08 00 C8 26 80 17 00 00 00 00 00 00 6E [10:04:41]Write i2c OK [10:04:41]MH_I2C_Read... [10:04:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:04:42]Read from MH i2c: E2 [10:04:42]MH_I2C_Read... [10:04:42]Read from MH i2c: E2 FD 00 [10:04:42]MH_I2C_Read... [10:04:42]Read from MH i2c: E2 FD 00 C8 26 00 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 F7 [10:04:42]RAPDU: 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 [10:04:42]wFMCommunicate OK [10:04:42]wFMCommunicate request_size=4 [10:04:42]MH_SAM_APDU [10:04:42]CAPDU: 80 17 00 00 [10:04:42]Write to MH i2c: E2 08 00 C9 26 80 17 00 00 00 00 00 00 6F [10:04:42]Write i2c OK [10:04:42]MH_I2C_Read... [10:04:42]OFD Sender: No OFD packet to send [10:04:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [10:04:42]Read from MH i2c: E2 [10:04:42]MH_I2C_Read... [10:04:42]Read from MH i2c: E2 D5 00 [10:04:42]MH_I2C_Read... [10:04:42]Read from MH i2c: E2 D5 00 C9 26 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 50 [10:04:42]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [10:04:42]wFMCommunicate OK [10:04:42]SAM_PROTO_GetShiftData done [10:04:42]requested_item shift.sale.total_cash is exist - process it [10:04:42]requested_item shift.sale_refund.total is exist - process it [10:04:42]requested_item shift.sale_refund.total_cash is exist - process it [10:04:42]requested_item shift.buy.total is exist - process it [10:04:42]requested_item shift.buy.total_cash is exist - process it [10:04:42]produce_requested_data done [10:04:42]produce_requested_data return {"fm.sale.total":52430078.25,"fm.sale_refund.total":2474291.00,"fm.buy.total":0.00,"shift.sale.total":31310.39,"shift.sale.total_cash":17064.00,"shift.sale_refund.total":2007.00,"shift.sale_refund.total_cash":2007.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [10:04:42]process_action_free get_value [10:04:42]json_value_free [10:04:42]json_value_free done [10:04:42]process_json_proto returns [10:04:42]Send response to host [10:04:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":52430078.25,"fm.sale_refund.total":2474291.00,"fm.buy.total":0.00,"shift.sale.total":31310.39,"shift.sale.total_cash":17064.00,"shift.sale_refund.total":2007.00,"shift.sale_refund.total_cash":2007.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [10:04:42]free response buf [10:04:42]execute_script done [10:04:42]execute_script returns [10:04:42]free content buf [10:04:42]Sock 9.Close socket [10:04:42]Sock 9.Thread stoped [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:24]accept exits with 7 [10:05:24]New connection [10:05:24]New thread 3066543460 created [10:05:24]Thread 3066686820 joined [10:05:24]Waiting for new connection... [10:05:24] Sock 7.Parse request [10:05:24]Sock 7.Check first char [10:05:24]Sock 7.First char is OK [10:05:24]request: POST /json_proto HTTP/1.0 [10:05:24]Method: POST [10:05:24]URL: /json_proto [10:05:24]Method is POST - this is cgi request [10:05:24]url: /json_proto [10:05:24]query_string will be loaded in cgi processing [10:05:24]execute_cgi json_proto POST (null) [10:05:24]execute_cgi path=json_proto method=POST [10:05:24]POST find Content-Length [10:05:24]Host: 172.17.36.132:8080 [10:05:24]Content-Length: 682 [10:05:24]Content-Type: application/json [10:05:24] [10:05:24]POST finish read [10:05:24]Found Content-Length = 682 [10:05:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706365", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 37.370, "sum" : 2500.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:05:24]execute_script... [10:05:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706365", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 37.370, "sum" : 2500.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:05:24]POST & json_proto [10:05:24]process_json_proto [10:05:24]json parsed OK: [10:05:24]protocol is kg_v1.0 [10:05:24]action value=close_receipt [10:05:24]process_action close_receipt [10:05:24]cmd_close_receipt [10:05:24]MH_GetDate [10:05:24]Write to MH i2c: F0 00 00 CA 26 DF [10:05:24]Write i2c OK [10:05:24]MH_I2C_Read... [10:05:24]Read from MH i2c: F0 [10:05:24]MH_I2C_Read... [10:05:24]Read from MH i2c: F0 09 00 [10:05:24]MH_I2C_Read... [10:05:24]Read from MH i2c: F0 09 00 CA 26 00 68 95 5D 66 B2 22 B0 64 90 [10:05:24]GetLastDocTimeStamp 1717409058 [10:05:24]current date 1717409128 [10:05:24]FM_GetShiftState [10:05:24]SAM_PROTO_GetShiftState [10:05:24]wFMCommunicate request_size=4 [10:05:24]MH_SAM_APDU [10:05:24]CAPDU: 80 13 01 00 [10:05:24]Write to MH i2c: E2 08 00 CB 26 80 13 01 00 00 00 00 00 6E [10:05:24]Write i2c OK [10:05:24]MH_I2C_Read... [10:05:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:24]Read from MH i2c: E2 [10:05:24]MH_I2C_Read... [10:05:24]Read from MH i2c: E2 0E 00 [10:05:24]MH_I2C_Read... [10:05:24]Read from MH i2c: E2 0E 00 CB 26 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 49 [10:05:24]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [10:05:24]wFMCommunicate OK [10:05:24]SAM_PROTO_GetShiftState done [10:05:24]FM_GetShiftState done [10:05:24]opened in 1717378033 [10:05:24]opened+sec_in_day 1717464433 [10:05:24]quantity*price = 250005 [10:05:24]sum+1 = 250006 [10:05:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.12 НДС 12% : 265.49 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 39 03.06.2024 10:05 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68293 ФПД: 105814683102755 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T100528&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68293&fm=105814683102755&tin=02508201610067®Number=0000000000098096&sum=250000 [10:05:25]StoreToDocumentArchive [10:05:25]shift 324 fd 68293 [10:05:25]save to /storage/0324/doc_00068293 [10:05:25]save last doc name /storage/0324/doc_00068293 to /storage/kkm_last_doc_name [10:05:25]save OK [10:05:25]Clear old archive folders... [10:05:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:05:25]tlvbuf is B6D67800 [10:05:25]SAM_PROTO_ClearQueue [10:05:25]wFMCommunicate request_size=4 [10:05:25]MH_SAM_APDU [10:05:25]CAPDU: 80 09 00 00 [10:05:25]Write to MH i2c: E2 08 00 D8 26 80 09 00 00 00 00 00 00 70 [10:05:25]Write i2c OK [10:05:25]MH_I2C_Read... [10:05:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:05:25]Read from MH i2c: E2 [10:05:25]MH_I2C_Read... [10:05:25]Read from MH i2c: E2 03 00 [10:05:25]MH_I2C_Read... [10:05:25]Read from MH i2c: E2 03 00 D8 26 00 90 00 72 [10:05:25]RAPDU: 90 00 [10:05:25]wFMCommunicate OK [10:05:25]SAM_PROTO_ClearQueue done [10:05:25]KKMCreateOFDPacket [10:05:25]OFDProtocolAddRootSTLVToBuf [10:05:25]FM_MakeSignedData [10:05:25]FM_MakeSignedData [10:05:25]SAM_PROTO_SignData [10:05:25]wFMCommunicate request_size=4 [10:05:25]MH_SAM_APDU [10:05:25]CAPDU: 80 0D 01 02 [10:05:25]Write to MH i2c: E2 08 00 D9 26 80 0D 01 02 00 00 00 00 78 [10:05:25]Write i2c OK [10:05:25]MH_I2C_Read... [10:05:25]Read from MH i2c: E2 [10:05:25]MH_I2C_Read... [10:05:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:05:25]Read from MH i2c: E2 03 00 [10:05:25]MH_I2C_Read... [10:05:25]Read from MH i2c: E2 03 00 D9 26 00 90 00 73 [10:05:25]RAPDU: 90 00 [10:05:25]wFMCommunicate OK [10:05:25]wFMCommunicate request_size=255 [10:05:25]MH_SAM_APDU [10:05:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FA 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 68 95 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C5 0A 01 00 35 04 06 00 60 [10:05:25]Write to MH i2c: E2 02 01 DA 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FA 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 68 95 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C5 0A 01 00 35 04 06 00 60 00 00 99 [10:05:25]Write i2c OK [10:05:25]MH_I2C_Read... [10:05:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:25]Read from MH i2c: E2 [10:05:25]MH_I2C_Read... [10:05:25]Read from MH i2c: E2 03 00 [10:05:25]MH_I2C_Read... [10:05:25]Read from MH i2c: E2 03 00 DA 26 00 90 00 74 [10:05:25]RAPDU: 90 00 [10:05:25]wFMCommunicate OK [10:05:25]wFMCommunicate request_size=10 [10:05:25]MH_SAM_APDU [10:05:25]CAPDU: 80 0D 02 02 05 3C E6 99 2E 23 [10:05:25]Write to MH i2c: E2 0D 00 DB 26 80 0D 02 02 05 00 3C E6 99 2E 23 00 00 91 [10:05:25]Write i2c OK [10:05:25]MH_I2C_Read... [10:05:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:25]Read from MH i2c: E2 [10:05:25]MH_I2C_Read... [10:05:25]Read from MH i2c: E2 03 00 [10:05:25]MH_I2C_Read... [10:05:25]Read from MH i2c: E2 03 00 DB 26 00 90 00 75 [10:05:25]RAPDU: 90 00 [10:05:25]wFMCommunicate OK [10:05:25]wFMCommunicate request_size=4 [10:05:25]MH_SAM_APDU [10:05:25]CAPDU: 80 0D 03 02 [10:05:25]Write to MH i2c: E2 08 00 DC 26 80 0D 03 02 00 00 00 00 7D [10:05:25]Write i2c OK [10:05:25]MH_I2C_Read... [10:05:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:05:25]Read from MH i2c: E2 [10:05:25]MH_I2C_Read... [10:05:25]Read from MH i2c: E2 0B 00 [10:05:25]MH_I2C_Read... [10:05:25]Read from MH i2c: E2 0B 00 DC 26 00 71 1C 90 5A A2 76 BD 5A 90 00 24 [10:05:25]RAPDU: 71 1C 90 5A A2 76 BD 5A 90 00 [10:05:25]wFMCommunicate OK [10:05:25]SAM_PROTO_SignData done [10:05:25]FM_MakeSignedData done [10:05:25]CreateOFDProtocolMessage [10:05:25]wFMCommunicate request_size=4 [10:05:25]MH_SAM_APDU [10:05:25]CAPDU: 80 11 00 00 [10:05:25]Write to MH i2c: E2 08 00 DD 26 80 11 00 00 00 00 00 00 7D [10:05:25]Write i2c OK [10:05:25]MH_I2C_Read... [10:05:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:25]Read from MH i2c: E2 [10:05:25]MH_I2C_Read... [10:05:25]Read from MH i2c: E2 17 00 [10:05:25]MH_I2C_Read... [10:05:25]Read from MH i2c: E2 17 00 DD 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 C8 [10:05:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [10:05:25]wFMCommunicate OK [10:05:25]CreateOFDProtocolMessage done [10:05:25]OFDSenderStorePacket 68293 [10:05:25]StoreOFDPacket docnum=68293 [10:05:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 84 73 07 01 A7 AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FA 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 68 95 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C5 0A 01 00 35 04 06 00 60 3C E6 99 2E 23 71 1C 90 5A A2 76 BD 5A [10:05:25]CheckFolder [10:05:25]dirname=/storage/ofd_packets [10:05:25]CheckFolder done [10:05:25]ProducePacketName [10:05:25]name=ofd_packets/00068293 [10:05:25]NVStorageSaveData ofd_packets/00068293 [10:05:25]File name is /storage/ofd_packets/00068293 [10:05:25]Write 301 bytes [10:05:25]NVStorageSaveData done [10:05:25]OFDSenderStorePacket done [10:05:25]KKMCreateOFDPacket done [10:05:25]NVStorageSaveData kkm_last_timestamp [10:05:25]File name is /storage/kkm_last_timestamp [10:05:25]Write 4 bytes [10:05:25]NVStorageSaveData done [10:05:25]ExternCall_PrintAddStr [10:05:25]wPrintStart [10:05:25]Write to MH i2c: 01 00 00 DE 26 04 [10:05:25]Write i2c OK [10:05:25]MH_I2C_Read... [10:05:25]Read from MH i2c: 01 [10:05:25]MH_I2C_Read... [10:05:25]Read from MH i2c: 01 07 00 [10:05:25]MH_I2C_Read... [10:05:25]Read from MH i2c: 01 07 00 DE 26 00 00 00 00 00 FF 0F 19 [10:05:25]RasterBufferAndPrint [10:05:25]line Счет N : (1)706365 [10:05:25]line ИНН: 02508201610067 [10:05:25]line Контрольно-Кассовый Чек [10:05:25]line ПРОДАЖА [10:05:25]line ТРК (МРК, ГНК) : 23 [10:05:25]line Товар: 2710124130 [10:05:25]line Аи-92-К-4 [10:05:25]line 37.370 * 66.90 [10:05:25]line = 2500.05 [10:05:25]line НДС 12% НСП 1% [10:05:25]line > о реализуемом товаре [10:05:25]line ОКРУГЛЕНИЕ: -0.05 [10:05:25]line ИТОГО: 2500.00 [10:05:25]line Внесено: 2500.00 [10:05:25]line СДАЧА: 0.00 [10:05:25]line НСП 1% : 22.12 [10:05:25]line НДС 12% : 265.49 [10:05:25]line Наличными: 2500.00 [10:05:25]line Безнал.: 0.00 [10:05:25]line Место: АЗС № 62 "Партнер Нефть" [10:05:25]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [10:05:25]line СНО: Общий режим [10:05:25]line Чек 39 03.06.2024 10:05 [10:05:26]line Смена: 324 ФФД: 1.0 [10:05:26]line ЗНМ: 0300000181 [10:05:26]line РНМ: 0000000000098096 [10:05:26]line Версия ККМ: 001 [10:05:26]line ФМ: 0000000000965400 [10:05:26]line ФД: 68293 [10:05:26]line ФПД: 105814683102755 [10:05:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T100528&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68293&fm=105814683102755&tin=02508201610067®Number=0000000000098096&sum=250000 [10:05:26]OFD Sender: Processing packet 68293 [packets to send 26, broken 25] [10:05:26]ProducePacketName [10:05:26]name=ofd_packets/00068293 [10:05:26]OFD Sender: To server: pG, [10:05:26]CommunicateWithHost lk.salyk.kg:30040 [10:05:26]ConnectInit lk.salyk.kg [10:05:26]written 0, free lines is 4095 [10:05:26]Connected sock=10 [10:05:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 84 73 07 01 A7 AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FA 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 68 95 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C5 0A 01 00 35 04 06 00 60 3C E6 99 2E 23 71 1C 90 5A A2 76 BD 5A [10:05:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 38 E4 47 00 3E D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C5 0A 01 00 F4 03 04 00 65 3C 5D 66 B6 04 01 00 00 AF 3E C3 6C 23 6A 7D 9E [10:05:26]CommunicateWithHost err = 0 [10:05:26]CheckOFDResponse [10:05:26]1017 (14) - 77093643461234 [10:05:26]1041 (16) - 0000000000965400 [10:05:26]1040 (4) - 68293 [10:05:26]1012 (4) - 03.06.2024 03:45 [10:05:26]1206 (1) - 0 [10:05:26]OFD Sender: Remove packet 68293 [10:05:26]ProducePacketName [10:05:26]name=ofd_packets/00068293 [10:05:26]NVStorageDeleteData [10:05:26]Write to MH i2c: 01 00 00 09 27 30 [10:05:26]Write i2c OK [10:05:26]MH_I2C_Read... [10:05:26]Read from MH i2c: 01 [10:05:26]MH_I2C_Read... [10:05:26]Read from MH i2c: 01 07 00 [10:05:26]MH_I2C_Read... [10:05:26]Read from MH i2c: 01 07 00 09 27 00 00 00 00 00 E6 0C 29 [10:05:26]RasterBufferAndPrint [10:05:26]line [10:05:26]line [10:05:26]line [10:05:26]line [10:05:26]line [10:05:26]written 0, free lines is 3308 [10:05:26]MH_Cut [10:05:26]Write to MH i2c: D1 01 00 10 27 01 09 [10:05:26]Write i2c OK [10:05:26]MH_I2C_Read... [10:05:26]Read from MH i2c: D1 [10:05:26]MH_I2C_Read... [10:05:26]Read from MH i2c: D1 01 00 [10:05:26]MH_I2C_Read... [10:05:26]Read from MH i2c: D1 01 00 10 27 00 08 [10:05:26]Write to MH i2c: 01 00 00 11 27 38 [10:05:26]Write i2c OK [10:05:26]MH_I2C_Read... [10:05:26]OFD Sender: No OFD packet to send [10:05:27]*** Cut start [10:05:27]*** Partial cut [10:05:27]*** CUTSNS_PIN = 1 [10:05:27]*** CUTSNS_PIN = 0 [10:05:27]*** Brake cut motor [10:05:27]Read from MH i2c: 01 [10:05:27]MH_I2C_Read... [10:05:27]*** Stop cut motor [10:05:27]*** Cut end [10:05:27]Read from MH i2c: 01 07 00 [10:05:27]MH_I2C_Read... [10:05:27]Read from MH i2c: 01 07 00 11 27 00 00 00 00 00 FF 0F 4D [10:05:27]process_action close_receipt done [10:05:27]requested_data is exist [10:05:27]produce_requested_data [10:05:27]requested_item fm.sn is exist - process it [10:05:27]wFMCommunicate request_size=4 [10:05:27]MH_SAM_APDU [10:05:27]CAPDU: 80 11 00 00 [10:05:27]Write to MH i2c: E2 08 00 12 27 80 11 00 00 00 00 00 00 B3 [10:05:27]Write i2c OK [10:05:27]MH_I2C_Read... [10:05:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:27]Read from MH i2c: E2 [10:05:27]MH_I2C_Read... [10:05:27]Read from MH i2c: E2 17 00 [10:05:27]MH_I2C_Read... [10:05:27]Read from MH i2c: E2 17 00 12 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 FE [10:05:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [10:05:27]wFMCommunicate OK [10:05:27]requested_item fd.num is exist - process it [10:05:27]SAM_PROTO_GetFieldsCounters [10:05:27]wFMCommunicate request_size=4 [10:05:27]MH_SAM_APDU [10:05:27]CAPDU: 80 13 00 00 [10:05:27]Write to MH i2c: E2 08 00 13 27 80 13 00 00 00 00 00 00 B6 [10:05:27]Write i2c OK [10:05:27]MH_I2C_Read... [10:05:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:05:28]Read from MH i2c: E2 [10:05:28]MH_I2C_Read... [10:05:28]Read from MH i2c: E2 62 00 [10:05:28]MH_I2C_Read... [10:05:28]Read from MH i2c: E2 62 00 13 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 C5 0A 01 00 0E 04 04 00 44 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 60 [10:05:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 C5 0A 01 00 0E 04 04 00 44 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 [10:05:28]wFMCommunicate OK [10:05:28]SAM_PROTO_GetFieldsCounters done [10:05:28]requested_item shift.num is exist - process it [10:05:28]requested_item shift.opened is exist - process it [10:05:28]req_shift_opened [10:05:28]FM_GetShiftState [10:05:28]SAM_PROTO_GetShiftState [10:05:28]wFMCommunicate request_size=4 [10:05:28]MH_SAM_APDU [10:05:28]CAPDU: 80 13 01 00 [10:05:28]Write to MH i2c: E2 08 00 14 27 80 13 01 00 00 00 00 00 B8 [10:05:28]Write i2c OK [10:05:28]MH_I2C_Read... [10:05:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:28]Read from MH i2c: E2 [10:05:28]MH_I2C_Read... [10:05:28]Read from MH i2c: E2 0E 00 [10:05:28]MH_I2C_Read... [10:05:28]Read from MH i2c: E2 0E 00 14 27 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 93 [10:05:28]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [10:05:28]wFMCommunicate OK [10:05:28]SAM_PROTO_GetShiftState done [10:05:28]FM_GetShiftState done [10:05:28]req_shift_opened done [10:05:28]requested_item shift.open_date is exist - process it [10:05:28]req_shift_open_date [10:05:28]req_shift_open_date done [10:05:28]produce_requested_data done [10:05:28]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68293,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [10:05:28]process_action_free close_receipt [10:05:28]json_value_free [10:05:28]json_value_free done [10:05:28]process_json_proto returns [10:05:28]Send response to host [10:05:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68293,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [10:05:28]free response buf [10:05:28]execute_script done [10:05:28]execute_script returns [10:05:28]free content buf [10:05:28]Sock 7.Close socket [10:05:28]Sock 7.Thread stoped [10:05:30]accept exits with 9 [10:05:30]New connection [10:05:30]New thread 3066686820 created [10:05:30]Thread 3066543460 joined [10:05:30]Waiting for new connection... [10:05:30] Sock 9.Parse request [10:05:30]Sock 9.Check first char [10:05:30]Sock 9.First char is OK [10:05:30]request: POST /json_proto HTTP/1.0 [10:05:30]Method: POST [10:05:30]URL: /json_proto [10:05:30]Method is POST - this is cgi request [10:05:30]url: /json_proto [10:05:30]query_string will be loaded in cgi processing [10:05:30]execute_cgi json_proto POST (null) [10:05:30]execute_cgi path=json_proto method=POST [10:05:30]POST find Content-Length [10:05:30]Host: 172.17.36.132:8080 [10:05:30]Content-Length: 738 [10:05:30]Content-Type: application/json [10:05:30] [10:05:30]POST finish read [10:05:30]Found Content-Length = 738 [10:05:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 68293, "base_FM": "0000000000965400", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706365", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 37.370, "sum" : 2500.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:05:30]execute_script... [10:05:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 68293, "base_FM": "0000000000965400", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706365", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 37.370, "sum" : 2500.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:05:30]POST & json_proto [10:05:30]process_json_proto [10:05:30]json parsed OK: [10:05:30]protocol is kg_v1.0 [10:05:30]action value=close_receipt [10:05:30]process_action close_receipt [10:05:30]cmd_close_receipt [10:05:30]MH_GetDate [10:05:30]Write to MH i2c: F0 00 00 15 27 2B [10:05:30]Write i2c OK [10:05:30]MH_I2C_Read... [10:05:30]Read from MH i2c: F0 [10:05:30]MH_I2C_Read... [10:05:30]Read from MH i2c: F0 09 00 [10:05:30]MH_I2C_Read... [10:05:30]Read from MH i2c: F0 09 00 15 27 00 6F 95 5D 66 B2 22 B0 64 E3 [10:05:30]GetLastDocTimeStamp 1717409128 [10:05:30]current date 1717409135 [10:05:30]FM_GetShiftState [10:05:30]SAM_PROTO_GetShiftState [10:05:30]wFMCommunicate request_size=4 [10:05:30]MH_SAM_APDU [10:05:30]CAPDU: 80 13 01 00 [10:05:30]Write to MH i2c: E2 08 00 16 27 80 13 01 00 00 00 00 00 BA [10:05:30]Write i2c OK [10:05:30]MH_I2C_Read... [10:05:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:31]Read from MH i2c: E2 [10:05:31]MH_I2C_Read... [10:05:31]Read from MH i2c: E2 0E 00 [10:05:31]MH_I2C_Read... [10:05:31]Read from MH i2c: E2 0E 00 16 27 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 95 [10:05:31]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [10:05:31]wFMCommunicate OK [10:05:31]SAM_PROTO_GetShiftState done [10:05:31]FM_GetShiftState done [10:05:31]opened in 1717378033 [10:05:31]opened+sec_in_day 1717464433 [10:05:31]quantity*price = 250005 [10:05:31]sum+1 = 250006 [10:05:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 2500.00 НСП 1% : 22.12 НДС 12% : 265.49 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 40 03.06.2024 10:05 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФД осн.: 68293 ФМ осн.: 0000000000965400 ФМ: 0000000000965400 ФД: 68294 ФПД: 65667161532762 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T100535&type=2&operation_type=1&fn_number=0000000000965400&fd_number=68294&fm=65667161532762&tin=02508201610067®Number=0000000000098096&sum=250000 [10:05:32]StoreToDocumentArchive [10:05:32]shift 324 fd 68294 [10:05:32]save to /storage/0324/doc_00068294 [10:05:32]save last doc name /storage/0324/doc_00068294 to /storage/kkm_last_doc_name [10:05:32]save OK [10:05:32]Clear old archive folders... [10:05:32]ProcessDocumentItem done err = 0, tmpTLVsize=279 [10:05:32]tlvbuf is 001F2480 [10:05:32]SAM_PROTO_ClearQueue [10:05:32]wFMCommunicate request_size=4 [10:05:32]MH_SAM_APDU [10:05:32]CAPDU: 80 09 00 00 [10:05:32]Write to MH i2c: E2 08 00 25 27 80 09 00 00 00 00 00 00 BE [10:05:32]Write i2c OK [10:05:32]MH_I2C_Read... [10:05:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:05:32]Read from MH i2c: E2 [10:05:32]MH_I2C_Read... [10:05:32]Read from MH i2c: E2 03 00 [10:05:32]MH_I2C_Read... [10:05:32]Read from MH i2c: E2 03 00 25 27 00 90 00 C0 [10:05:32]RAPDU: 90 00 [10:05:32]wFMCommunicate OK [10:05:32]SAM_PROTO_ClearQueue done [10:05:32]KKMCreateOFDPacket [10:05:32]OFDProtocolAddRootSTLVToBuf [10:05:32]FM_MakeSignedData [10:05:32]FM_MakeSignedData [10:05:32]SAM_PROTO_SignData [10:05:32]wFMCommunicate request_size=4 [10:05:32]MH_SAM_APDU [10:05:32]CAPDU: 80 0D 01 02 [10:05:32]Write to MH i2c: E2 08 00 26 27 80 0D 01 02 00 00 00 00 C6 [10:05:32]Write i2c OK [10:05:32]MH_I2C_Read... [10:05:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:05:32]Read from MH i2c: E2 [10:05:32]MH_I2C_Read... [10:05:32]Read from MH i2c: E2 03 00 [10:05:32]MH_I2C_Read... [10:05:32]Read from MH i2c: E2 03 00 26 27 00 90 00 C1 [10:05:32]RAPDU: 90 00 [10:05:32]wFMCommunicate OK [10:05:32]wFMCommunicate request_size=255 [10:05:32]MH_SAM_APDU [10:05:32]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FA 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 6F 95 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 27 04 04 00 C5 0A 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 11 04 10 00 30 [10:05:32]Write to MH i2c: E2 02 01 27 27 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FA 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 6F 95 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 27 04 04 00 C5 0A 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 11 04 10 00 30 00 00 F1 [10:05:32]Write i2c OK [10:05:32]MH_I2C_Read... [10:05:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:32]Read from MH i2c: E2 [10:05:32]MH_I2C_Read... [10:05:32]Read from MH i2c: E2 03 00 [10:05:32]MH_I2C_Read... [10:05:32]Read from MH i2c: E2 03 00 27 27 00 90 00 C2 [10:05:32]RAPDU: 90 00 [10:05:32]wFMCommunicate OK [10:05:32]wFMCommunicate request_size=38 [10:05:32]MH_SAM_APDU [10:05:32]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C6 0A 01 00 35 04 06 00 3B B9 53 D6 29 5A [10:05:32]Write to MH i2c: E2 29 00 28 27 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C6 0A 01 00 35 04 06 00 3B B9 53 D6 29 5A 00 00 BB [10:05:32]Write i2c OK [10:05:32]MH_I2C_Read... [10:05:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:32]Read from MH i2c: E2 [10:05:32]MH_I2C_Read... [10:05:32]Read from MH i2c: E2 03 00 [10:05:32]MH_I2C_Read... [10:05:32]Read from MH i2c: E2 03 00 28 27 00 90 00 C3 [10:05:32]RAPDU: 90 00 [10:05:32]wFMCommunicate OK [10:05:32]wFMCommunicate request_size=4 [10:05:32]MH_SAM_APDU [10:05:32]CAPDU: 80 0D 03 02 [10:05:32]Write to MH i2c: E2 08 00 29 27 80 0D 03 02 00 00 00 00 CB [10:05:32]Write i2c OK [10:05:32]MH_I2C_Read... [10:05:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:05:32]Read from MH i2c: E2 [10:05:32]MH_I2C_Read... [10:05:32]Read from MH i2c: E2 0B 00 [10:05:32]MH_I2C_Read... [10:05:32]Read from MH i2c: E2 0B 00 29 27 00 F2 1E 47 44 37 E1 B2 BD 90 00 EE [10:05:32]RAPDU: F2 1E 47 44 37 E1 B2 BD 90 00 [10:05:32]wFMCommunicate OK [10:05:32]SAM_PROTO_SignData done [10:05:32]FM_MakeSignedData done [10:05:32]CreateOFDProtocolMessage [10:05:32]wFMCommunicate request_size=4 [10:05:32]MH_SAM_APDU [10:05:32]CAPDU: 80 11 00 00 [10:05:32]Write to MH i2c: E2 08 00 2A 27 80 11 00 00 00 00 00 00 CB [10:05:32]Write i2c OK [10:05:32]MH_I2C_Read... [10:05:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:32]Read from MH i2c: E2 [10:05:32]MH_I2C_Read... [10:05:32]Read from MH i2c: E2 17 00 [10:05:32]MH_I2C_Read... [10:05:32]Read from MH i2c: E2 17 00 2A 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 16 [10:05:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [10:05:32]wFMCommunicate OK [10:05:32]CreateOFDProtocolMessage done [10:05:32]OFDSenderStorePacket 68294 [10:05:32]StoreOFDPacket docnum=68294 [10:05:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 2B 01 00 00 94 FA 23 01 44 07 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FA 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 6F 95 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 27 04 04 00 C5 0A 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C6 0A 01 00 35 04 06 00 3B B9 53 D6 29 5A F2 1E 47 44 37 E1 B2 BD [10:05:32]CheckFolder [10:05:32]dirname=/storage/ofd_packets [10:05:32]CheckFolder done [10:05:32]ProducePacketName [10:05:32]name=ofd_packets/00068294 [10:05:32]NVStorageSaveData ofd_packets/00068294 [10:05:32]File name is /storage/ofd_packets/00068294 [10:05:32]Write 329 bytes [10:05:32]NVStorageSaveData done [10:05:32]OFDSenderStorePacket done [10:05:32]KKMCreateOFDPacket done [10:05:32]NVStorageSaveData kkm_last_timestamp [10:05:32]File name is /storage/kkm_last_timestamp [10:05:32]Write 4 bytes [10:05:32]NVStorageSaveData done [10:05:32]ExternCall_PrintAddStr [10:05:32]wPrintStart [10:05:32]Write to MH i2c: 01 00 00 2B 27 52 [10:05:32]Write i2c OK [10:05:32]MH_I2C_Read... [10:05:32]Read from MH i2c: 01 [10:05:32]MH_I2C_Read... [10:05:32]Read from MH i2c: 01 07 00 [10:05:32]MH_I2C_Read... [10:05:32]Read from MH i2c: 01 07 00 2B 27 00 00 00 00 00 FF 0F 67 [10:05:32]RasterBufferAndPrint [10:05:32]line Счет N : (1)706365 [10:05:32]line ИНН: 02508201610067 [10:05:32]line Контрольно-Кассовый Чек [10:05:32]line ВОЗВРАТ ПРОДАЖИ [10:05:32]line ТРК (МРК, ГНК) : 23 [10:05:32]line Товар: 2710124130 [10:05:32]line Аи-92-К-4 [10:05:32]line 37.370 * 66.90 [10:05:32]line = 2500.05 [10:05:32]line НДС 12% НСП 1% [10:05:32]line > о реализуемом товаре [10:05:32]line ОКРУГЛЕНИЕ: -0.05 [10:05:32]line ИТОГО: 2500.00 [10:05:32]line НСП 1% : 22.12 [10:05:32]line НДС 12% : 265.49 [10:05:32]line Наличными: 2500.00 [10:05:32]line Безнал.: 0.00 [10:05:32]line Место: АЗС № 62 "Партнер Нефть" [10:05:32]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [10:05:32]line СНО: Общий режим [10:05:32]line Чек 40 03.06.2024 10:05 [10:05:32]line Смена: 324 ФФД: 1.0 [10:05:32]line ЗНМ: 0300000181 [10:05:32]line РНМ: 0000000000098096 [10:05:32]line Версия ККМ: 001 [10:05:32]line ФД осн.: 68293 [10:05:32]line ФМ осн.: 0000000000965400 [10:05:32]line ФМ: 0000000000965400 [10:05:32]line ФД: 68294 [10:05:32]line ФПД: 65667161532762 [10:05:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T100535&type=2&operation_type=1&fn_number=0000000000965400&fd_number=68294&fm=65667161532762&tin=02508201610067®Number=0000000000098096&sum=250000 [10:05:33]OFD Sender: Processing packet 68294 [packets to send 26, broken 25] [10:05:33]ProducePacketName [10:05:33]name=ofd_packets/00068294 [10:05:33]OFD Sender: To server: pG, [10:05:33]CommunicateWithHost lk.salyk.kg:30040 [10:05:33]ConnectInit lk.salyk.kg [10:05:33]written 0, free lines is 4095 [10:05:33]Connected sock=10 [10:05:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 2B 01 00 00 94 FA 23 01 44 07 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 FA 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 6F 95 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 27 04 04 00 C5 0A 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C6 0A 01 00 35 04 06 00 3B B9 53 D6 29 5A F2 1E 47 44 37 E1 B2 BD [10:05:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 9B C9 47 00 39 E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C6 0A 01 00 F4 03 04 00 6C 3C 5D 66 B6 04 01 00 00 74 0C FC 89 69 B1 C8 8C [10:05:33]CommunicateWithHost err = 0 [10:05:33]CheckOFDResponse [10:05:33]1017 (14) - 77093643461234 [10:05:33]1041 (16) - 0000000000965400 [10:05:33]1040 (4) - 68294 [10:05:33]1012 (4) - 03.06.2024 03:45 [10:05:33]1206 (1) - 0 [10:05:33]OFD Sender: Remove packet 68294 [10:05:33]ProducePacketName [10:05:33]name=ofd_packets/00068294 [10:05:33]NVStorageDeleteData [10:05:33]Write to MH i2c: 01 00 00 56 27 7D [10:05:33]Write i2c OK [10:05:33]MH_I2C_Read... [10:05:33]Read from MH i2c: 01 [10:05:33]MH_I2C_Read... [10:05:33]Read from MH i2c: 01 07 00 [10:05:33]MH_I2C_Read... [10:05:33]Read from MH i2c: 01 07 00 56 27 00 00 00 00 00 F0 0C 80 [10:05:33]RasterBufferAndPrint [10:05:33]line [10:05:33]line [10:05:33]line [10:05:33]line [10:05:33]line [10:05:33]written 0, free lines is 3323 [10:05:33]MH_Cut [10:05:33]Write to MH i2c: D1 01 00 5D 27 01 56 [10:05:33]Write i2c OK [10:05:33]MH_I2C_Read... [10:05:33]Read from MH i2c: D1 [10:05:33]MH_I2C_Read... [10:05:33]Read from MH i2c: D1 01 00 [10:05:33]MH_I2C_Read... [10:05:33]Read from MH i2c: D1 01 00 5D 27 00 55 [10:05:33]Write to MH i2c: 01 00 00 5E 27 85 [10:05:33]Write i2c OK [10:05:33]MH_I2C_Read... [10:05:33]OFD Sender: No OFD packet to send [10:05:34]*** Cut start [10:05:34]*** Partial cut [10:05:34]*** CUTSNS_PIN = 1 [10:05:34]*** CUTSNS_PIN = 0 [10:05:34]*** Brake cut motor [10:05:34]Read from MH i2c: 01 [10:05:34]MH_I2C_Read... [10:05:34]*** Stop cut motor [10:05:34]*** Cut end [10:05:34]Read from MH i2c: 01 07 00 [10:05:35]MH_I2C_Read... [10:05:35]Read from MH i2c: 01 07 00 5E 27 00 00 00 00 00 FF 0F 9A [10:05:35]process_action close_receipt done [10:05:35]requested_data is exist [10:05:35]produce_requested_data [10:05:35]requested_item fm.sn is exist - process it [10:05:35]wFMCommunicate request_size=4 [10:05:35]MH_SAM_APDU [10:05:35]CAPDU: 80 11 00 00 [10:05:35]Write to MH i2c: E2 08 00 5F 27 80 11 00 00 00 00 00 00 00 [10:05:35]Write i2c OK [10:05:35]MH_I2C_Read... [10:05:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:35]Read from MH i2c: E2 [10:05:35]MH_I2C_Read... [10:05:35]Read from MH i2c: E2 17 00 [10:05:35]MH_I2C_Read... [10:05:35]Read from MH i2c: E2 17 00 5F 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 4B [10:05:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [10:05:35]wFMCommunicate OK [10:05:35]requested_item fd.num is exist - process it [10:05:35]SAM_PROTO_GetFieldsCounters [10:05:35]wFMCommunicate request_size=4 [10:05:35]MH_SAM_APDU [10:05:35]CAPDU: 80 13 00 00 [10:05:35]Write to MH i2c: E2 08 00 60 27 80 13 00 00 00 00 00 00 03 [10:05:35]Write i2c OK [10:05:35]MH_I2C_Read... [10:05:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:05:35]Read from MH i2c: E2 [10:05:35]MH_I2C_Read... [10:05:35]Read from MH i2c: E2 62 00 [10:05:35]MH_I2C_Read... [10:05:35]Read from MH i2c: E2 62 00 60 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 C6 0A 01 00 0E 04 04 00 44 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 B1 [10:05:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 C6 0A 01 00 0E 04 04 00 44 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 [10:05:35]wFMCommunicate OK [10:05:35]SAM_PROTO_GetFieldsCounters done [10:05:35]requested_item shift.num is exist - process it [10:05:35]requested_item shift.opened is exist - process it [10:05:35]req_shift_opened [10:05:35]FM_GetShiftState [10:05:35]SAM_PROTO_GetShiftState [10:05:35]wFMCommunicate request_size=4 [10:05:35]MH_SAM_APDU [10:05:35]CAPDU: 80 13 01 00 [10:05:35]Write to MH i2c: E2 08 00 61 27 80 13 01 00 00 00 00 00 05 [10:05:35]Write i2c OK [10:05:35]MH_I2C_Read... [10:05:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:35]Read from MH i2c: E2 [10:05:35]MH_I2C_Read... [10:05:35]Read from MH i2c: E2 0E 00 [10:05:35]MH_I2C_Read... [10:05:35]Read from MH i2c: E2 0E 00 61 27 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 E0 [10:05:35]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [10:05:35]wFMCommunicate OK [10:05:35]SAM_PROTO_GetShiftState done [10:05:35]FM_GetShiftState done [10:05:35]req_shift_opened done [10:05:35]requested_item shift.open_date is exist - process it [10:05:35]req_shift_open_date [10:05:35]req_shift_open_date done [10:05:35]produce_requested_data done [10:05:35]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68294,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [10:05:35]process_action_free close_receipt [10:05:35]json_value_free [10:05:35]json_value_free done [10:05:35]process_json_proto returns [10:05:35]Send response to host [10:05:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68294,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [10:05:35]free response buf [10:05:35]execute_script done [10:05:35]execute_script returns [10:05:35]free content buf [10:05:35]Sock 9.Close socket [10:05:35]Sock 9.Thread stoped [10:05:38]OFD Sender: No OFD packet to send [10:05:43]OFD Sender: No OFD packet to send [10:05:44]accept exits with 7 [10:05:44]New connection [10:05:44]New thread 3066543460 created [10:05:44]Thread 3066686820 joined [10:05:44]Waiting for new connection... [10:05:44] Sock 7.Parse request [10:05:44]Sock 7.Check first char [10:05:44]Sock 7.First char is OK [10:05:44]request: POST /json_proto HTTP/1.0 [10:05:44]Method: POST [10:05:44]URL: /json_proto [10:05:44]Method is POST - this is cgi request [10:05:44]url: /json_proto [10:05:44]query_string will be loaded in cgi processing [10:05:44]execute_cgi json_proto POST (null) [10:05:44]execute_cgi path=json_proto method=POST [10:05:44]POST find Content-Length [10:05:44]Host: 172.17.36.132:8080 [10:05:44]Content-Length: 677 [10:05:44]Content-Type: application/json [10:05:44] [10:05:44]POST finish read [10:05:44]Found Content-Length = 677 [10:05:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706364", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:05:44]execute_script... [10:05:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706364", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:05:44]POST & json_proto [10:05:44]process_json_proto [10:05:44]json parsed OK: [10:05:44]protocol is kg_v1.0 [10:05:44]action value=close_receipt [10:05:44]process_action close_receipt [10:05:44]cmd_close_receipt [10:05:44]MH_GetDate [10:05:44]Write to MH i2c: F0 00 00 62 27 78 [10:05:44]Write i2c OK [10:05:44]MH_I2C_Read... [10:05:44]Read from MH i2c: F0 [10:05:44]MH_I2C_Read... [10:05:44]Read from MH i2c: F0 09 00 [10:05:44]MH_I2C_Read... [10:05:44]Read from MH i2c: F0 09 00 62 27 00 7C 95 5D 66 B2 22 B0 64 3D [10:05:44]GetLastDocTimeStamp 1717409135 [10:05:44]current date 1717409148 [10:05:44]FM_GetShiftState [10:05:44]SAM_PROTO_GetShiftState [10:05:44]wFMCommunicate request_size=4 [10:05:44]MH_SAM_APDU [10:05:44]CAPDU: 80 13 01 00 [10:05:44]Write to MH i2c: E2 08 00 63 27 80 13 01 00 00 00 00 00 07 [10:05:44]Write i2c OK [10:05:44]MH_I2C_Read... [10:05:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:44]Read from MH i2c: E2 [10:05:44]MH_I2C_Read... [10:05:44]Read from MH i2c: E2 0E 00 [10:05:44]MH_I2C_Read... [10:05:44]Read from MH i2c: E2 0E 00 63 27 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 E2 [10:05:44]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [10:05:44]wFMCommunicate OK [10:05:44]SAM_PROTO_GetShiftState done [10:05:44]FM_GetShiftState done [10:05:44]opened in 1717378033 [10:05:44]opened+sec_in_day 1717464433 [10:05:44]quantity*price = 30038 [10:05:44]sum+1 = 30039 [10:05:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 41 03.06.2024 10:05 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68295 ФПД: 119296246208376 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T100548&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68295&fm=119296246208376&tin=02508201610067®Number=0000000000098096&sum=30000 [10:05:45]StoreToDocumentArchive [10:05:45]shift 324 fd 68295 [10:05:45]save to /storage/0324/doc_00068295 [10:05:45]save last doc name /storage/0324/doc_00068295 to /storage/kkm_last_doc_name [10:05:45]save OK [10:05:45]Clear old archive folders... [10:05:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:05:45]tlvbuf is 00345770 [10:05:45]SAM_PROTO_ClearQueue [10:05:45]wFMCommunicate request_size=4 [10:05:45]MH_SAM_APDU [10:05:45]CAPDU: 80 09 00 00 [10:05:45]Write to MH i2c: E2 08 00 70 27 80 09 00 00 00 00 00 00 09 [10:05:45]Write i2c OK [10:05:45]MH_I2C_Read... [10:05:45]Read from MH i2c: E2 [10:05:45]MH_I2C_Read... [10:05:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:05:45]Read from MH i2c: E2 03 00 [10:05:45]MH_I2C_Read... [10:05:45]Read from MH i2c: E2 03 00 70 27 00 90 00 0B [10:05:45]RAPDU: 90 00 [10:05:45]wFMCommunicate OK [10:05:45]SAM_PROTO_ClearQueue done [10:05:45]KKMCreateOFDPacket [10:05:45]OFDProtocolAddRootSTLVToBuf [10:05:45]FM_MakeSignedData [10:05:45]FM_MakeSignedData [10:05:45]SAM_PROTO_SignData [10:05:45]wFMCommunicate request_size=4 [10:05:45]MH_SAM_APDU [10:05:45]CAPDU: 80 0D 01 02 [10:05:45]Write to MH i2c: E2 08 00 71 27 80 0D 01 02 00 00 00 00 11 [10:05:45]Write i2c OK [10:05:45]MH_I2C_Read... [10:05:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:05:45]Read from MH i2c: E2 [10:05:45]MH_I2C_Read... [10:05:45]Read from MH i2c: E2 03 00 [10:05:45]MH_I2C_Read... [10:05:45]Read from MH i2c: E2 03 00 71 27 00 90 00 0C [10:05:45]RAPDU: 90 00 [10:05:45]wFMCommunicate OK [10:05:45]wFMCommunicate request_size=255 [10:05:45]MH_SAM_APDU [10:05:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 7C 95 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C7 0A 01 00 35 04 06 00 6C [10:05:45]Write to MH i2c: E2 02 01 72 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 7C 95 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C7 0A 01 00 35 04 06 00 6C 00 00 12 [10:05:45]Write i2c OK [10:05:45]MH_I2C_Read... [10:05:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:46]Read from MH i2c: E2 [10:05:46]MH_I2C_Read... [10:05:46]Read from MH i2c: E2 03 00 [10:05:46]MH_I2C_Read... [10:05:46]Read from MH i2c: E2 03 00 72 27 00 90 00 0D [10:05:46]RAPDU: 90 00 [10:05:46]wFMCommunicate OK [10:05:46]wFMCommunicate request_size=10 [10:05:46]MH_SAM_APDU [10:05:46]CAPDU: 80 0D 02 02 05 7F D2 60 D7 78 [10:05:46]Write to MH i2c: E2 0D 00 73 27 80 0D 02 02 05 00 7F D2 60 D7 78 00 00 1E [10:05:46]Write i2c OK [10:05:46]MH_I2C_Read... [10:05:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:46]Read from MH i2c: E2 [10:05:46]MH_I2C_Read... [10:05:46]Read from MH i2c: E2 03 00 [10:05:46]MH_I2C_Read... [10:05:46]Read from MH i2c: E2 03 00 73 27 00 90 00 0E [10:05:46]RAPDU: 90 00 [10:05:46]wFMCommunicate OK [10:05:46]wFMCommunicate request_size=4 [10:05:46]MH_SAM_APDU [10:05:46]CAPDU: 80 0D 03 02 [10:05:46]Write to MH i2c: E2 08 00 74 27 80 0D 03 02 00 00 00 00 16 [10:05:46]Write i2c OK [10:05:46]MH_I2C_Read... [10:05:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:05:46]Read from MH i2c: E2 [10:05:46]MH_I2C_Read... [10:05:46]Read from MH i2c: E2 0B 00 [10:05:46]MH_I2C_Read... [10:05:46]Read from MH i2c: E2 0B 00 74 27 00 30 ED F0 C7 3C C5 0E 89 90 00 83 [10:05:46]RAPDU: 30 ED F0 C7 3C C5 0E 89 90 00 [10:05:46]wFMCommunicate OK [10:05:46]SAM_PROTO_SignData done [10:05:46]FM_MakeSignedData done [10:05:46]CreateOFDProtocolMessage [10:05:46]wFMCommunicate request_size=4 [10:05:46]MH_SAM_APDU [10:05:46]CAPDU: 80 11 00 00 [10:05:46]Write to MH i2c: E2 08 00 75 27 80 11 00 00 00 00 00 00 16 [10:05:46]Write i2c OK [10:05:46]MH_I2C_Read... [10:05:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:46]Read from MH i2c: E2 [10:05:46]MH_I2C_Read... [10:05:46]Read from MH i2c: E2 17 00 [10:05:46]MH_I2C_Read... [10:05:46]Read from MH i2c: E2 17 00 75 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 61 [10:05:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [10:05:46]wFMCommunicate OK [10:05:46]CreateOFDProtocolMessage done [10:05:46]OFDSenderStorePacket 68295 [10:05:46]StoreOFDPacket docnum=68295 [10:05:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 94 93 07 01 8C 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 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 7C 95 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C7 0A 01 00 35 04 06 00 6C 7F D2 60 D7 78 30 ED F0 C7 3C C5 0E 89 [10:05:46]CheckFolder [10:05:46]dirname=/storage/ofd_packets [10:05:46]CheckFolder done [10:05:46]ProducePacketName [10:05:46]name=ofd_packets/00068295 [10:05:46]NVStorageSaveData ofd_packets/00068295 [10:05:46]File name is /storage/ofd_packets/00068295 [10:05:46]Write 301 bytes [10:05:46]NVStorageSaveData done [10:05:46]OFDSenderStorePacket done [10:05:46]KKMCreateOFDPacket done [10:05:46]NVStorageSaveData kkm_last_timestamp [10:05:46]File name is /storage/kkm_last_timestamp [10:05:46]Write 4 bytes [10:05:46]NVStorageSaveData done [10:05:46]ExternCall_PrintAddStr [10:05:46]wPrintStart [10:05:46]Write to MH i2c: 01 00 00 76 27 9D [10:05:46]Write i2c OK [10:05:46]MH_I2C_Read... [10:05:46]Read from MH i2c: 01 [10:05:46]MH_I2C_Read... [10:05:46]Read from MH i2c: 01 07 00 [10:05:46]MH_I2C_Read... [10:05:46]Read from MH i2c: 01 07 00 76 27 00 00 00 00 00 FF 0F B2 [10:05:46]RasterBufferAndPrint [10:05:46]line Счет N : (1)706364 [10:05:46]line ИНН: 02508201610067 [10:05:46]line Контрольно-Кассовый Чек [10:05:46]line ПРОДАЖА [10:05:46]line ТРК (МРК, ГНК) : 42 [10:05:46]line Товар: 2710124130 [10:05:46]line Аи-92-К-4 [10:05:46]line 4.490 * 66.90 [10:05:46]line = 300.38 [10:05:46]line НДС 12% НСП 1% [10:05:46]line > о реализуемом товаре [10:05:46]line ОКРУГЛЕНИЕ: -0.38 [10:05:46]line ИТОГО: 300.00 [10:05:46]line Внесено: 300.00 [10:05:46]line СДАЧА: 0.00 [10:05:46]line НСП 1% : 2.66 [10:05:46]line НДС 12% : 31.90 [10:05:46]line Наличными: 300.00 [10:05:46]line Безнал.: 0.00 [10:05:46]line Место: АЗС № 62 "Партнер Нефть" [10:05:46]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [10:05:46]line СНО: Общий режим [10:05:46]line Чек 41 03.06.2024 10:05 [10:05:46]line Смена: 324 ФФД: 1.0 [10:05:46]line ЗНМ: 0300000181 [10:05:46]line РНМ: 0000000000098096 [10:05:46]line Версия ККМ: 001 [10:05:46]line ФМ: 0000000000965400 [10:05:46]line ФД: 68295 [10:05:46]line ФПД: 119296246208376 [10:05:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T100548&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68295&fm=119296246208376&tin=02508201610067®Number=0000000000098096&sum=30000 [10:05:46]written 0, free lines is 4095 [10:05:46]OFD Sender: Processing packet 68295 [packets to send 26, broken 25] [10:05:46]ProducePacketName [10:05:46]name=ofd_packets/00068295 [10:05:46]OFD Sender: To server: pG, [10:05:46]CommunicateWithHost lk.salyk.kg:30040 [10:05:46]ConnectInit lk.salyk.kg [10:05:46]Connected sock=10 [10:05:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 94 93 07 01 8C 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 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 7C 95 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C7 0A 01 00 35 04 06 00 6C 7F D2 60 D7 78 30 ED F0 C7 3C C5 0E 89 [10:05:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 84 DA 47 00 2B 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C7 0A 01 00 F4 03 04 00 79 3C 5D 66 B6 04 01 00 00 67 3C D6 E7 8A 0C 25 2F [10:05:46]CommunicateWithHost err = 0 [10:05:46]CheckOFDResponse [10:05:46]1017 (14) - 77093643461234 [10:05:46]1041 (16) - 0000000000965400 [10:05:46]1040 (4) - 68295 [10:05:46]1012 (4) - 03.06.2024 03:46 [10:05:46]1206 (1) - 0 [10:05:46]OFD Sender: Remove packet 68295 [10:05:46]ProducePacketName [10:05:46]name=ofd_packets/00068295 [10:05:46]NVStorageDeleteData [10:05:46]Write to MH i2c: 01 00 00 A1 27 C8 [10:05:46]Write i2c OK [10:05:46]MH_I2C_Read... [10:05:46]Read from MH i2c: 01 [10:05:46]MH_I2C_Read... [10:05:46]Read from MH i2c: 01 07 00 [10:05:46]MH_I2C_Read... [10:05:46]Read from MH i2c: 01 07 00 A1 27 00 00 00 00 00 EA 0C C5 [10:05:46]RasterBufferAndPrint [10:05:46]line [10:05:46]line [10:05:46]line [10:05:46]line [10:05:46]line [10:05:46]written 0, free lines is 3318 [10:05:46]MH_Cut [10:05:46]Write to MH i2c: D1 01 00 A8 27 01 A1 [10:05:46]Write i2c OK [10:05:46]MH_I2C_Read... [10:05:46]Read from MH i2c: D1 [10:05:46]MH_I2C_Read... [10:05:46]Read from MH i2c: D1 01 00 [10:05:46]MH_I2C_Read... [10:05:46]Read from MH i2c: D1 01 00 A8 27 00 A0 [10:05:46]Write to MH i2c: 01 00 00 A9 27 D0 [10:05:46]Write i2c OK [10:05:46]MH_I2C_Read... [10:05:47]OFD Sender: No OFD packet to send [10:05:47]*** Cut start [10:05:47]*** Partial cut [10:05:47]*** CUTSNS_PIN = 1 [10:05:47]*** CUTSNS_PIN = 0 [10:05:47]*** Brake cut motor [10:05:48]Read from MH i2c: 01 [10:05:48]MH_I2C_Read... [10:05:48]*** Stop cut motor [10:05:48]*** Cut end [10:05:48]Read from MH i2c: 01 07 00 [10:05:48]MH_I2C_Read... [10:05:48]Read from MH i2c: 01 07 00 A9 27 00 00 00 00 00 FF 0F E5 [10:05:48]process_action close_receipt done [10:05:48]requested_data is exist [10:05:48]produce_requested_data [10:05:48]requested_item fm.sn is exist - process it [10:05:48]wFMCommunicate request_size=4 [10:05:48]MH_SAM_APDU [10:05:48]CAPDU: 80 11 00 00 [10:05:48]Write to MH i2c: E2 08 00 AA 27 80 11 00 00 00 00 00 00 4B [10:05:48]Write i2c OK [10:05:48]MH_I2C_Read... [10:05:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:48]Read from MH i2c: E2 [10:05:48]MH_I2C_Read... [10:05:48]Read from MH i2c: E2 17 00 [10:05:48]MH_I2C_Read... [10:05:48]Read from MH i2c: E2 17 00 AA 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 96 [10:05:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [10:05:48]wFMCommunicate OK [10:05:48]requested_item fd.num is exist - process it [10:05:48]SAM_PROTO_GetFieldsCounters [10:05:48]wFMCommunicate request_size=4 [10:05:48]MH_SAM_APDU [10:05:48]CAPDU: 80 13 00 00 [10:05:48]Write to MH i2c: E2 08 00 AB 27 80 13 00 00 00 00 00 00 4E [10:05:48]Write i2c OK [10:05:48]MH_I2C_Read... [10:05:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:05:48]Read from MH i2c: E2 [10:05:48]MH_I2C_Read... [10:05:48]Read from MH i2c: E2 62 00 [10:05:48]MH_I2C_Read... [10:05:48]Read from MH i2c: E2 62 00 AB 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 C7 0A 01 00 0E 04 04 00 44 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 00 [10:05:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 C7 0A 01 00 0E 04 04 00 44 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 [10:05:48]wFMCommunicate OK [10:05:48]SAM_PROTO_GetFieldsCounters done [10:05:48]requested_item shift.num is exist - process it [10:05:48]requested_item shift.opened is exist - process it [10:05:48]req_shift_opened [10:05:48]FM_GetShiftState [10:05:48]SAM_PROTO_GetShiftState [10:05:48]wFMCommunicate request_size=4 [10:05:48]MH_SAM_APDU [10:05:48]CAPDU: 80 13 01 00 [10:05:48]Write to MH i2c: E2 08 00 AC 27 80 13 01 00 00 00 00 00 50 [10:05:48]Write i2c OK [10:05:48]MH_I2C_Read... [10:05:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:48]Read from MH i2c: E2 [10:05:48]MH_I2C_Read... [10:05:48]Read from MH i2c: E2 0E 00 [10:05:48]MH_I2C_Read... [10:05:48]Read from MH i2c: E2 0E 00 AC 27 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 2B [10:05:48]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [10:05:48]wFMCommunicate OK [10:05:48]SAM_PROTO_GetShiftState done [10:05:48]FM_GetShiftState done [10:05:48]req_shift_opened done [10:05:48]requested_item shift.open_date is exist - process it [10:05:48]req_shift_open_date [10:05:48]req_shift_open_date done [10:05:48]produce_requested_data done [10:05:48]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68295,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [10:05:48]process_action_free close_receipt [10:05:48]json_value_free [10:05:48]json_value_free done [10:05:48]process_json_proto returns [10:05:48]Send response to host [10:05:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68295,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [10:05:48]free response buf [10:05:48]execute_script done [10:05:48]execute_script returns [10:05:48]free content buf [10:05:48]Sock 7.Close socket [10:05:48]Sock 7.Thread stoped [10:05:52]OFD Sender: No OFD packet to send [10:05:57]OFD Sender: No OFD packet to send [10:06:02]OFD Sender: No OFD packet to send [10:06:07]OFD Sender: No OFD packet to send [10:06:12]OFD Sender: No OFD packet to send [10:06:17]OFD Sender: No OFD packet to send [10:06:22]OFD Sender: No OFD packet to send [10:06:27]OFD Sender: No OFD packet to send [10:06:32]OFD Sender: No OFD packet to send [10:06:37]OFD Sender: No OFD packet to send [10:06:42]OFD Sender: No OFD packet to send [10:06:47]OFD Sender: No OFD packet to send [10:06:52]OFD Sender: No OFD packet to send [10:06:57]OFD Sender: No OFD packet to send [10:07:02]OFD Sender: No OFD packet to send [10:07:07]OFD Sender: No OFD packet to send [10:07:12]OFD Sender: No OFD packet to send [10:07:17]OFD Sender: No OFD packet to send [10:07:22]OFD Sender: No OFD packet to send [10:07:27]OFD Sender: No OFD packet to send [10:07:32]OFD Sender: No OFD packet to send [10:07:37]OFD Sender: No OFD packet to send [10:07:42]OFD Sender: No OFD packet to send [10:07:47]OFD Sender: No OFD packet to send [10:07:52]OFD Sender: No OFD packet to send [10:07:57]OFD Sender: No OFD packet to send [10:08:02]OFD Sender: No OFD packet to send [10:08:07]OFD Sender: No OFD packet to send [10:08:12]OFD Sender: No OFD packet to send [10:08:17]OFD Sender: No OFD packet to send [10:08:22]OFD Sender: No OFD packet to send [10:08:27]OFD Sender: No OFD packet to send [10:08:32]OFD Sender: No OFD packet to send [10:08:37]OFD Sender: No OFD packet to send [10:08:42]OFD Sender: No OFD packet to send [10:08:47]OFD Sender: No OFD packet to send [10:08:52]OFD Sender: No OFD packet to send [10:08:57]OFD Sender: No OFD packet to send [10:09:02]OFD Sender: No OFD packet to send [10:09:07]OFD Sender: No OFD packet to send [10:09:12]OFD Sender: No OFD packet to send [10:09:17]OFD Sender: No OFD packet to send [10:09:22]OFD Sender: No OFD packet to send [10:09:27]OFD Sender: No OFD packet to send [10:09:32]OFD Sender: No OFD packet to send [10:09:37]OFD Sender: No OFD packet to send [10:09:42]OFD Sender: No OFD packet to send [10:09:47]OFD Sender: No OFD packet to send [10:09:52]OFD Sender: No OFD packet to send [10:09:57]OFD Sender: No OFD packet to send [10:10:02]OFD Sender: No OFD packet to send [10:10:07]OFD Sender: No OFD packet to send [10:10:12]OFD Sender: No OFD packet to send [10:10:17]OFD Sender: No OFD packet to send [10:10:22]OFD Sender: No OFD packet to send [10:10:27]OFD Sender: No OFD packet to send [10:10:32]OFD Sender: No OFD packet to send [10:10:37]OFD Sender: No OFD packet to send [10:10:42]OFD Sender: No OFD packet to send [10:10:47]OFD Sender: No OFD packet to send [10:10:52]OFD Sender: No OFD packet to send [10:10:57]OFD Sender: No OFD packet to send [10:11:02]OFD Sender: No OFD packet to send [10:11:07]OFD Sender: No OFD packet to send [10:11:12]OFD Sender: No OFD packet to send [10:11:17]OFD Sender: No OFD packet to send [10:11:22]OFD Sender: No OFD packet to send [10:11:27]OFD Sender: No OFD packet to send [10:11:32]OFD Sender: No OFD packet to send [10:11:37]OFD Sender: No OFD packet to send [10:11:42]OFD Sender: No OFD packet to send [10:11:47]OFD Sender: No OFD packet to send [10:11:52]OFD Sender: No OFD packet to send [10:11:57]OFD Sender: No OFD packet to send [10:12:02]OFD Sender: No OFD packet to send [10:12:07]OFD Sender: No OFD packet to send [10:12:12]OFD Sender: No OFD packet to send [10:12:17]OFD Sender: No OFD packet to send [10:12:22]OFD Sender: No OFD packet to send [10:12:27]OFD Sender: No OFD packet to send [10:12:32]OFD Sender: No OFD packet to send [10:12:37]OFD Sender: No OFD packet to send [10:12:42]OFD Sender: No OFD packet to send [10:12:47]OFD Sender: No OFD packet to send [10:12:52]OFD Sender: No OFD packet to send [10:12:57]OFD Sender: No OFD packet to send [10:13:02]OFD Sender: No OFD packet to send [10:13:07]OFD Sender: No OFD packet to send [10:13:12]OFD Sender: No OFD packet to send [10:13:17]OFD Sender: No OFD packet to send [10:13:21]accept exits with 9 [10:13:21]New connection [10:13:21]New thread 3066686820 created [10:13:21]Thread 3066543460 joined [10:13:21]Waiting for new connection... [10:13:21] Sock 9.Parse request [10:13:21]Sock 9.Check first char [10:13:21]Sock 9.First char is OK [10:13:21]request: POST /json_proto HTTP/1.0 [10:13:21]Method: POST [10:13:21]URL: /json_proto [10:13:21]Method is POST - this is cgi request [10:13:21]url: /json_proto [10:13:21]query_string will be loaded in cgi processing [10:13:21]execute_cgi json_proto POST (null) [10:13:21]execute_cgi path=json_proto method=POST [10:13:21]POST find Content-Length [10:13:21]Host: 172.17.36.132:8080 [10:13:21]Content-Length: 1183 [10:13:21]Content-Type: application/json [10:13:21] [10:13:21]POST finish read [10:13:21]Found Content-Length = 1183 [10:13:21]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706366\u000A03.06.2024 09:50\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 63\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 30.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 2007.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A32022\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:13:21]execute_script... [10:13:21]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706366\u000A03.06.2024 09:50\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 63\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 30.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 2007.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A32022\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:13:21]POST & json_proto [10:13:21]process_json_proto [10:13:21]json parsed OK: [10:13:21]protocol is kg_v1.0 [10:13:21]action value=print_text [10:13:21]process_action print_text [10:13:21]cmd_print_text [10:13:21]ExternCall_PrintAddStr [10:13:21]wPrintStart [10:13:21]Write to MH i2c: 01 00 00 AD 27 D4 [10:13:21]Write i2c OK [10:13:21]MH_I2C_Read... [10:13:21]Read from MH i2c: 01 [10:13:21]MH_I2C_Read... [10:13:21]Read from MH i2c: 01 07 00 [10:13:21]MH_I2C_Read... [10:13:21]Read from MH i2c: 01 07 00 AD 27 00 00 00 00 00 FF 0F E9 [10:13:21]RasterBufferAndPrint [10:13:21]line *****ТОВАРНЫЙ ЧЕК***** [10:13:21]line АЗС 62 [10:13:21]line Партнер нефть [10:13:21]line 02508201610067 [10:13:21]line Кассир : Балаев А. [10:13:21]line Счет N : (1)706366 [10:13:21]line 03.06.2024 09:50 [10:13:21]line ПРОДАЖА [10:13:21]line ТРК (МРК, ГНК): 63 [10:13:21]line Вид ГСМ : 2710124130 [10:13:21]line Аи-92-К-4 [10:13:21]line 30.000 x 66.90 [10:13:21]line ИТОГ: 2007.00 [10:13:21]line Тип оплаты: Талоны: Топливная Карта [10:13:21]line 32022 [10:13:21]line ______________________ [10:13:21]line (подпись) [10:13:21]written 0, free lines is 4095 [10:13:21]Write to MH i2c: 01 00 00 C1 27 E8 [10:13:21]Write i2c OK [10:13:21]MH_I2C_Read... [10:13:21]Read from MH i2c: 01 [10:13:21]MH_I2C_Read... [10:13:21]Read from MH i2c: 01 07 00 [10:13:21]MH_I2C_Read... [10:13:21]Read from MH i2c: 01 07 00 C1 27 00 00 00 00 00 11 0E 0E [10:13:21]RasterBufferAndPrint [10:13:21]line [10:13:21]line [10:13:21]line [10:13:21]line [10:13:21]line [10:13:21]written 0, free lines is 3602 [10:13:21]MH_Cut [10:13:21]Write to MH i2c: D1 01 00 C8 27 01 C1 [10:13:21]Write i2c OK [10:13:21]MH_I2C_Read... [10:13:21]Read from MH i2c: D1 [10:13:21]MH_I2C_Read... [10:13:21]Read from MH i2c: D1 01 00 [10:13:21]MH_I2C_Read... [10:13:21]Read from MH i2c: D1 01 00 C8 27 00 C0 [10:13:21]Write to MH i2c: 01 00 00 C9 27 F0 [10:13:21]Write i2c OK [10:13:21]MH_I2C_Read... [10:13:22]*** Cut start [10:13:22]*** Partial cut [10:13:22]*** CUTSNS_PIN = 1 [10:13:22]*** CUTSNS_PIN = 0 [10:13:22]OFD Sender: No OFD packet to send [10:13:22]*** Brake cut motor [10:13:22]Read from MH i2c: 01 [10:13:22]MH_I2C_Read... [10:13:22]Read from MH i2c: 01 07 00 [10:13:22]MH_I2C_Read... [10:13:22]*** Stop cut motor [10:13:22]*** Cut end [10:13:22]Read from MH i2c: 01 07 00 C9 27 00 00 00 00 00 FF 0F 05 [10:13:22]process_action print_text done [10:13:22]requested_data is exist [10:13:22]produce_requested_data [10:13:22]requested_item fm.sn is exist - process it [10:13:22]wFMCommunicate request_size=4 [10:13:22]MH_SAM_APDU [10:13:22]CAPDU: 80 11 00 00 [10:13:22]Write to MH i2c: E2 08 00 CA 27 80 11 00 00 00 00 00 00 6B [10:13:22]Write i2c OK [10:13:22]MH_I2C_Read... [10:13:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:22]Read from MH i2c: E2 [10:13:22]MH_I2C_Read... [10:13:22]Read from MH i2c: E2 17 00 [10:13:22]MH_I2C_Read... [10:13:22]Read from MH i2c: E2 17 00 CA 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 B6 [10:13:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [10:13:22]wFMCommunicate OK [10:13:22]requested_item fd.num is exist - process it [10:13:22]SAM_PROTO_GetFieldsCounters [10:13:22]wFMCommunicate request_size=4 [10:13:22]MH_SAM_APDU [10:13:22]CAPDU: 80 13 00 00 [10:13:22]Write to MH i2c: E2 08 00 CB 27 80 13 00 00 00 00 00 00 6E [10:13:22]Write i2c OK [10:13:22]MH_I2C_Read... [10:13:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:13:23]Read from MH i2c: E2 [10:13:23]MH_I2C_Read... [10:13:23]Read from MH i2c: E2 62 00 [10:13:23]MH_I2C_Read... [10:13:23]Read from MH i2c: E2 62 00 CB 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 C7 0A 01 00 0E 04 04 00 44 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 20 [10:13:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 C7 0A 01 00 0E 04 04 00 44 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 [10:13:23]wFMCommunicate OK [10:13:23]SAM_PROTO_GetFieldsCounters done [10:13:23]requested_item shift.num is exist - process it [10:13:23]requested_item shift.opened is exist - process it [10:13:23]req_shift_opened [10:13:23]FM_GetShiftState [10:13:23]SAM_PROTO_GetShiftState [10:13:23]wFMCommunicate request_size=4 [10:13:23]MH_SAM_APDU [10:13:23]CAPDU: 80 13 01 00 [10:13:23]Write to MH i2c: E2 08 00 CC 27 80 13 01 00 00 00 00 00 70 [10:13:23]Write i2c OK [10:13:23]MH_I2C_Read... [10:13:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:23]Read from MH i2c: E2 [10:13:23]MH_I2C_Read... [10:13:23]Read from MH i2c: E2 0E 00 [10:13:23]MH_I2C_Read... [10:13:23]Read from MH i2c: E2 0E 00 CC 27 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 4B [10:13:23]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [10:13:23]wFMCommunicate OK [10:13:23]SAM_PROTO_GetShiftState done [10:13:23]FM_GetShiftState done [10:13:23]req_shift_opened done [10:13:23]requested_item shift.open_date is exist - process it [10:13:23]req_shift_open_date [10:13:23]req_shift_open_date done [10:13:23]produce_requested_data done [10:13:23]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68295,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [10:13:23]process_action_free print_text [10:13:23]json_value_free [10:13:23]json_value_free done [10:13:23]process_json_proto returns [10:13:23]Send response to host [10:13:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68295,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [10:13:23]free response buf [10:13:23]execute_script done [10:13:23]execute_script returns [10:13:23]free content buf [10:13:23]Sock 9.Close socket [10:13:23]Sock 9.Thread stoped [10:13:27]OFD Sender: No OFD packet to send [10:13:32]OFD Sender: No OFD packet to send [10:13:37]OFD Sender: No OFD packet to send [10:13:42]OFD Sender: No OFD packet to send [10:13:47]OFD Sender: No OFD packet to send [10:13:52]OFD Sender: No OFD packet to send [10:13:57]OFD Sender: No OFD packet to send [10:14:02]OFD Sender: No OFD packet to send [10:14:07]OFD Sender: No OFD packet to send [10:14:12]OFD Sender: No OFD packet to send [10:14:17]OFD Sender: No OFD packet to send [10:14:22]OFD Sender: No OFD packet to send [10:14:24]accept exits with 7 [10:14:24]New connection [10:14:24]New thread 3066543460 created [10:14:24]Thread 3066686820 joined [10:14:24]Waiting for new connection... [10:14:24] Sock 7.Parse request [10:14:24]Sock 7.Check first char [10:14:24]Sock 7.First char is OK [10:14:24]request: POST /json_proto HTTP/1.0 [10:14:24]Method: POST [10:14:24]URL: /json_proto [10:14:24]Method is POST - this is cgi request [10:14:24]url: /json_proto [10:14:24]query_string will be loaded in cgi processing [10:14:24]execute_cgi json_proto POST (null) [10:14:24]execute_cgi path=json_proto method=POST [10:14:24]POST find Content-Length [10:14:24]Host: 172.17.36.132:8080 [10:14:24]Content-Length: 682 [10:14:24]Content-Type: application/json [10:14:24] [10:14:24]POST finish read [10:14:24]Found Content-Length = 682 [10:14:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706368", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:24]execute_script... [10:14:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706368", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:24]POST & json_proto [10:14:24]process_json_proto [10:14:24]json parsed OK: [10:14:24]protocol is kg_v1.0 [10:14:24]action value=close_receipt [10:14:24]process_action close_receipt [10:14:24]cmd_close_receipt [10:14:24]MH_GetDate [10:14:24]Write to MH i2c: F0 00 00 CD 27 E3 [10:14:24]Write i2c OK [10:14:24]MH_I2C_Read... [10:14:24]Read from MH i2c: F0 [10:14:24]MH_I2C_Read... [10:14:24]Read from MH i2c: F0 09 00 [10:14:24]MH_I2C_Read... [10:14:24]Read from MH i2c: F0 09 00 CD 27 00 84 97 5D 66 B2 22 B0 64 B2 [10:14:24]GetLastDocTimeStamp 1717409148 [10:14:24]current date 1717409668 [10:14:24]FM_GetShiftState [10:14:24]SAM_PROTO_GetShiftState [10:14:24]wFMCommunicate request_size=4 [10:14:24]MH_SAM_APDU [10:14:24]CAPDU: 80 13 01 00 [10:14:24]Write to MH i2c: E2 08 00 CE 27 80 13 01 00 00 00 00 00 72 [10:14:24]Write i2c OK [10:14:24]MH_I2C_Read... [10:14:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:24]Read from MH i2c: E2 [10:14:24]MH_I2C_Read... [10:14:24]Read from MH i2c: E2 0E 00 [10:14:24]MH_I2C_Read... [10:14:24]Read from MH i2c: E2 0E 00 CE 27 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 4D [10:14:24]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [10:14:24]wFMCommunicate OK [10:14:24]SAM_PROTO_GetShiftState done [10:14:24]FM_GetShiftState done [10:14:24]opened in 1717378033 [10:14:24]opened+sec_in_day 1717464433 [10:14:24]quantity*price = 100015 [10:14:24]sum+1 = 100017 [10:14:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 42 03.06.2024 10:14 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68296 ФПД: 70322774495313 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T101428&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68296&fm=70322774495313&tin=02508201610067®Number=0000000000098096&sum=100000 [10:14:25]StoreToDocumentArchive [10:14:25]shift 324 fd 68296 [10:14:25]save to /storage/0324/doc_00068296 [10:14:25]save last doc name /storage/0324/doc_00068296 to /storage/kkm_last_doc_name [10:14:25]save OK [10:14:25]Clear old archive folders... [10:14:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:14:25]tlvbuf is B6E99630 [10:14:25]SAM_PROTO_ClearQueue [10:14:25]wFMCommunicate request_size=4 [10:14:25]MH_SAM_APDU [10:14:25]CAPDU: 80 09 00 00 [10:14:25]Write to MH i2c: E2 08 00 DB 27 80 09 00 00 00 00 00 00 74 [10:14:25]Write i2c OK [10:14:25]MH_I2C_Read... [10:14:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:14:25]Read from MH i2c: E2 [10:14:25]MH_I2C_Read... [10:14:25]Read from MH i2c: E2 03 00 [10:14:25]MH_I2C_Read... [10:14:25]Read from MH i2c: E2 03 00 DB 27 00 90 00 76 [10:14:25]RAPDU: 90 00 [10:14:25]wFMCommunicate OK [10:14:25]SAM_PROTO_ClearQueue done [10:14:25]KKMCreateOFDPacket [10:14:25]OFDProtocolAddRootSTLVToBuf [10:14:25]FM_MakeSignedData [10:14:25]FM_MakeSignedData [10:14:25]SAM_PROTO_SignData [10:14:25]wFMCommunicate request_size=4 [10:14:25]MH_SAM_APDU [10:14:25]CAPDU: 80 0D 01 02 [10:14:25]Write to MH i2c: E2 08 00 DC 27 80 0D 01 02 00 00 00 00 7C [10:14:25]Write i2c OK [10:14:25]MH_I2C_Read... [10:14:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:14:25]Read from MH i2c: E2 [10:14:25]MH_I2C_Read... [10:14:25]Read from MH i2c: E2 03 00 [10:14:25]MH_I2C_Read... [10:14:25]Read from MH i2c: E2 03 00 DC 27 00 90 00 77 [10:14:25]RAPDU: 90 00 [10:14:25]wFMCommunicate OK [10:14:25]wFMCommunicate request_size=255 [10:14:25]MH_SAM_APDU [10:14:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 84 97 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C8 0A 01 00 35 04 06 00 3F [10:14:25]Write to MH i2c: E2 02 01 DD 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 84 97 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C8 0A 01 00 35 04 06 00 3F 00 00 62 [10:14:25]Write i2c OK [10:14:25]MH_I2C_Read... [10:14:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:25]Read from MH i2c: E2 [10:14:25]MH_I2C_Read... [10:14:25]Read from MH i2c: E2 03 00 [10:14:25]MH_I2C_Read... [10:14:25]Read from MH i2c: E2 03 00 DD 27 00 90 00 78 [10:14:25]RAPDU: 90 00 [10:14:25]wFMCommunicate OK [10:14:25]wFMCommunicate request_size=10 [10:14:25]MH_SAM_APDU [10:14:25]CAPDU: 80 0D 02 02 05 F5 4B FE 50 51 [10:14:25]Write to MH i2c: E2 0D 00 DE 27 80 0D 02 02 05 00 F5 4B FE 50 51 00 00 68 [10:14:25]Write i2c OK [10:14:25]MH_I2C_Read... [10:14:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:25]Read from MH i2c: E2 [10:14:25]MH_I2C_Read... [10:14:25]Read from MH i2c: E2 03 00 [10:14:25]MH_I2C_Read... [10:14:25]Read from MH i2c: E2 03 00 DE 27 00 90 00 79 [10:14:25]RAPDU: 90 00 [10:14:25]wFMCommunicate OK [10:14:25]wFMCommunicate request_size=4 [10:14:25]MH_SAM_APDU [10:14:25]CAPDU: 80 0D 03 02 [10:14:25]Write to MH i2c: E2 08 00 DF 27 80 0D 03 02 00 00 00 00 81 [10:14:25]Write i2c OK [10:14:25]MH_I2C_Read... [10:14:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:14:25]Read from MH i2c: E2 [10:14:25]MH_I2C_Read... [10:14:25]Read from MH i2c: E2 0B 00 [10:14:25]MH_I2C_Read... [10:14:25]Read from MH i2c: E2 0B 00 DF 27 00 72 1D 43 C9 AC FB 2D 30 90 00 21 [10:14:25]RAPDU: 72 1D 43 C9 AC FB 2D 30 90 00 [10:14:25]wFMCommunicate OK [10:14:25]SAM_PROTO_SignData done [10:14:25]FM_MakeSignedData done [10:14:25]CreateOFDProtocolMessage [10:14:25]wFMCommunicate request_size=4 [10:14:25]MH_SAM_APDU [10:14:25]CAPDU: 80 11 00 00 [10:14:25]Write to MH i2c: E2 08 00 E0 27 80 11 00 00 00 00 00 00 81 [10:14:25]Write i2c OK [10:14:25]MH_I2C_Read... [10:14:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:25]Read from MH i2c: E2 [10:14:25]MH_I2C_Read... [10:14:25]Read from MH i2c: E2 17 00 [10:14:25]MH_I2C_Read... [10:14:25]Read from MH i2c: E2 17 00 E0 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 CC [10:14:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [10:14:26]wFMCommunicate OK [10:14:26]CreateOFDProtocolMessage done [10:14:26]OFDSenderStorePacket 68296 [10:14:26]StoreOFDPacket docnum=68296 [10:14:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 8E 01 07 01 A9 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 84 97 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C8 0A 01 00 35 04 06 00 3F F5 4B FE 50 51 72 1D 43 C9 AC FB 2D 30 [10:14:26]CheckFolder [10:14:26]dirname=/storage/ofd_packets [10:14:26]CheckFolder done [10:14:26]ProducePacketName [10:14:26]name=ofd_packets/00068296 [10:14:26]NVStorageSaveData ofd_packets/00068296 [10:14:26]File name is /storage/ofd_packets/00068296 [10:14:26]Write 301 bytes [10:14:26]NVStorageSaveData done [10:14:26]OFDSenderStorePacket done [10:14:26]KKMCreateOFDPacket done [10:14:26]NVStorageSaveData kkm_last_timestamp [10:14:26]File name is /storage/kkm_last_timestamp [10:14:26]Write 4 bytes [10:14:26]NVStorageSaveData done [10:14:26]ExternCall_PrintAddStr [10:14:26]wPrintStart [10:14:26]Write to MH i2c: 01 00 00 E1 27 08 [10:14:26]Write i2c OK [10:14:26]MH_I2C_Read... [10:14:26]Read from MH i2c: 01 [10:14:26]MH_I2C_Read... [10:14:26]Read from MH i2c: 01 07 00 [10:14:26]MH_I2C_Read... [10:14:26]Read from MH i2c: 01 07 00 E1 27 00 00 00 00 00 FF 0F 1D [10:14:26]RasterBufferAndPrint [10:14:26]line Счет N : (1)706368 [10:14:26]line ИНН: 02508201610067 [10:14:26]line Контрольно-Кассовый Чек [10:14:26]line ПРОДАЖА [10:14:26]line ТРК (МРК, ГНК) : 53 [10:14:26]line Товар: 2710124130 [10:14:26]line Аи-92-К-4 [10:14:26]line 14.950 * 66.90 [10:14:26]line = 1000.16 [10:14:26]line НДС 12% НСП 1% [10:14:26]line > о реализуемом товаре [10:14:26]line ОКРУГЛЕНИЕ: -0.16 [10:14:26]line ИТОГО: 1000.00 [10:14:26]line Внесено: 1000.00 [10:14:26]line СДАЧА: 0.00 [10:14:26]line НСП 1% : 8.85 [10:14:26]line НДС 12% : 106.21 [10:14:26]line Наличными: 1000.00 [10:14:26]line Безнал.: 0.00 [10:14:26]line Место: АЗС № 62 "Партнер Нефть" [10:14:26]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [10:14:26]line СНО: Общий режим [10:14:26]line Чек 42 03.06.2024 10:14 [10:14:26]line Смена: 324 ФФД: 1.0 [10:14:26]line ЗНМ: 0300000181 [10:14:26]line РНМ: 0000000000098096 [10:14:26]line Версия ККМ: 001 [10:14:26]line ФМ: 0000000000965400 [10:14:26]line ФД: 68296 [10:14:26]line ФПД: 70322774495313 [10:14:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T101428&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68296&fm=70322774495313&tin=02508201610067®Number=0000000000098096&sum=100000 [10:14:26]OFD Sender: Processing packet 68296 [packets to send 26, broken 25] [10:14:26]ProducePacketName [10:14:26]name=ofd_packets/00068296 [10:14:26]OFD Sender: To server: pG, [10:14:26]CommunicateWithHost lk.salyk.kg:30040 [10:14:26]ConnectInit lk.salyk.kg [10:14:26]written 0, free lines is 4095 [10:14:26]Connected sock=10 [10:14:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 8E 01 07 01 A9 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 84 97 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C8 0A 01 00 35 04 06 00 3F F5 4B FE 50 51 72 1D 43 C9 AC FB 2D 30 [10:14:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 06 1F 47 00 4A 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C8 0A 01 00 F4 03 04 00 81 3E 5D 66 B6 04 01 00 00 64 6D C5 18 AA 7C A3 C9 [10:14:26]CommunicateWithHost err = 0 [10:14:26]CheckOFDResponse [10:14:26]1017 (14) - 77093643461234 [10:14:26]1041 (16) - 0000000000965400 [10:14:26]1040 (4) - 68296 [10:14:26]1012 (4) - 03.06.2024 03:54 [10:14:26]1206 (1) - 0 [10:14:26]OFD Sender: Remove packet 68296 [10:14:26]ProducePacketName [10:14:26]name=ofd_packets/00068296 [10:14:26]NVStorageDeleteData [10:14:26]Write to MH i2c: 01 00 00 0C 28 34 [10:14:26]Write i2c OK [10:14:26]MH_I2C_Read... [10:14:26]Read from MH i2c: 01 [10:14:26]MH_I2C_Read... [10:14:26]Read from MH i2c: 01 07 00 [10:14:26]MH_I2C_Read... [10:14:26]Read from MH i2c: 01 07 00 0C 28 00 00 00 00 00 D0 0C 17 [10:14:26]RasterBufferAndPrint [10:14:26]line [10:14:26]line [10:14:26]line [10:14:26]line [10:14:26]line [10:14:26]written 0, free lines is 3286 [10:14:26]MH_Cut [10:14:26]Write to MH i2c: D1 01 00 13 28 01 0D [10:14:26]Write i2c OK [10:14:26]MH_I2C_Read... [10:14:26]Read from MH i2c: D1 [10:14:26]MH_I2C_Read... [10:14:26]Read from MH i2c: D1 01 00 [10:14:26]MH_I2C_Read... [10:14:26]Read from MH i2c: D1 01 00 13 28 00 0C [10:14:26]Write to MH i2c: 01 00 00 14 28 3C [10:14:26]Write i2c OK [10:14:26]MH_I2C_Read... [10:14:27]OFD Sender: No OFD packet to send [10:14:27]*** Cut start [10:14:27]*** Partial cut [10:14:27]*** CUTSNS_PIN = 1 [10:14:27]*** CUTSNS_PIN = 0 [10:14:27]*** Brake cut motor [10:14:28]Read from MH i2c: 01 [10:14:28]MH_I2C_Read... [10:14:28]*** Stop cut motor [10:14:28]*** Cut end [10:14:28]Read from MH i2c: 01 07 00 [10:14:28]MH_I2C_Read... [10:14:28]Read from MH i2c: 01 07 00 14 28 00 00 00 00 00 FF 0F 51 [10:14:28]process_action close_receipt done [10:14:28]requested_data is exist [10:14:28]produce_requested_data [10:14:28]requested_item fm.sn is exist - process it [10:14:28]wFMCommunicate request_size=4 [10:14:28]MH_SAM_APDU [10:14:28]CAPDU: 80 11 00 00 [10:14:28]Write to MH i2c: E2 08 00 15 28 80 11 00 00 00 00 00 00 B7 [10:14:28]Write i2c OK [10:14:28]MH_I2C_Read... [10:14:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:28]Read from MH i2c: E2 [10:14:28]MH_I2C_Read... [10:14:28]Read from MH i2c: E2 17 00 [10:14:28]MH_I2C_Read... [10:14:28]Read from MH i2c: E2 17 00 15 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 02 [10:14:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [10:14:28]wFMCommunicate OK [10:14:28]requested_item fd.num is exist - process it [10:14:28]SAM_PROTO_GetFieldsCounters [10:14:28]wFMCommunicate request_size=4 [10:14:28]MH_SAM_APDU [10:14:28]CAPDU: 80 13 00 00 [10:14:28]Write to MH i2c: E2 08 00 16 28 80 13 00 00 00 00 00 00 BA [10:14:28]Write i2c OK [10:14:28]MH_I2C_Read... [10:14:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:14:28]Read from MH i2c: E2 [10:14:28]MH_I2C_Read... [10:14:28]Read from MH i2c: E2 62 00 [10:14:28]MH_I2C_Read... [10:14:28]Read from MH i2c: E2 62 00 16 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 C8 0A 01 00 0E 04 04 00 44 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 70 [10:14:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 C8 0A 01 00 0E 04 04 00 44 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 [10:14:28]wFMCommunicate OK [10:14:28]SAM_PROTO_GetFieldsCounters done [10:14:28]requested_item shift.num is exist - process it [10:14:28]requested_item shift.opened is exist - process it [10:14:28]req_shift_opened [10:14:28]FM_GetShiftState [10:14:28]SAM_PROTO_GetShiftState [10:14:28]wFMCommunicate request_size=4 [10:14:28]MH_SAM_APDU [10:14:28]CAPDU: 80 13 01 00 [10:14:28]Write to MH i2c: E2 08 00 17 28 80 13 01 00 00 00 00 00 BC [10:14:28]Write i2c OK [10:14:28]MH_I2C_Read... [10:14:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:28]Read from MH i2c: E2 [10:14:28]MH_I2C_Read... [10:14:28]Read from MH i2c: E2 0E 00 [10:14:28]MH_I2C_Read... [10:14:28]Read from MH i2c: E2 0E 00 17 28 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 97 [10:14:28]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [10:14:28]wFMCommunicate OK [10:14:28]SAM_PROTO_GetShiftState done [10:14:28]FM_GetShiftState done [10:14:28]req_shift_opened done [10:14:28]requested_item shift.open_date is exist - process it [10:14:28]req_shift_open_date [10:14:28]req_shift_open_date done [10:14:28]produce_requested_data done [10:14:28]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68296,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [10:14:28]process_action_free close_receipt [10:14:28]json_value_free [10:14:28]json_value_free done [10:14:28]process_json_proto returns [10:14:28]Send response to host [10:14:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68296,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [10:14:28]free response buf [10:14:28]execute_script done [10:14:28]execute_script returns [10:14:28]free content buf [10:14:28]Sock 7.Close socket [10:14:28]Sock 7.Thread stoped [10:14:28]accept exits with 9 [10:14:28]New connection [10:14:28]New thread 3066686820 created [10:14:28]Thread 3066543460 joined [10:14:28]Waiting for new connection... [10:14:28] Sock 9.Parse request [10:14:28]Sock 9.Check first char [10:14:28]Sock 9.First char is OK [10:14:28]request: POST /json_proto HTTP/1.0 [10:14:28]Method: POST [10:14:28]URL: /json_proto [10:14:28]Method is POST - this is cgi request [10:14:28]url: /json_proto [10:14:28]query_string will be loaded in cgi processing [10:14:28]execute_cgi json_proto POST (null) [10:14:28]execute_cgi path=json_proto method=POST [10:14:28]POST find Content-Length [10:14:28]Host: 172.17.36.132:8080 [10:14:28]Content-Length: 682 [10:14:28]Content-Type: application/json [10:14:28] [10:14:28]POST finish read [10:14:28]Found Content-Length = 682 [10:14:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706369", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:28]execute_script... [10:14:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706369", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:28]POST & json_proto [10:14:28]process_json_proto [10:14:28]json parsed OK: [10:14:28]protocol is kg_v1.0 [10:14:28]action value=close_receipt [10:14:28]process_action close_receipt [10:14:28]cmd_close_receipt [10:14:28]MH_GetDate [10:14:28]Write to MH i2c: F0 00 00 18 28 2F [10:14:28]Write i2c OK [10:14:28]MH_I2C_Read... [10:14:28]Read from MH i2c: F0 [10:14:28]MH_I2C_Read... [10:14:28]Read from MH i2c: F0 09 00 [10:14:28]MH_I2C_Read... [10:14:28]Read from MH i2c: F0 09 00 18 28 00 89 97 5D 66 B2 22 B0 64 03 [10:14:28]GetLastDocTimeStamp 1717409668 [10:14:28]current date 1717409673 [10:14:28]FM_GetShiftState [10:14:28]SAM_PROTO_GetShiftState [10:14:28]wFMCommunicate request_size=4 [10:14:28]MH_SAM_APDU [10:14:28]CAPDU: 80 13 01 00 [10:14:28]Write to MH i2c: E2 08 00 19 28 80 13 01 00 00 00 00 00 BE [10:14:28]Write i2c OK [10:14:28]MH_I2C_Read... [10:14:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:28]Read from MH i2c: E2 [10:14:28]MH_I2C_Read... [10:14:28]Read from MH i2c: E2 0E 00 [10:14:28]MH_I2C_Read... [10:14:28]Read from MH i2c: E2 0E 00 19 28 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 99 [10:14:28]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [10:14:28]wFMCommunicate OK [10:14:28]SAM_PROTO_GetShiftState done [10:14:28]FM_GetShiftState done [10:14:28]opened in 1717378033 [10:14:28]opened+sec_in_day 1717464433 [10:14:28]quantity*price = 100015 [10:14:28]sum+1 = 100017 [10:14:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 43 03.06.2024 10:14 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68297 ФПД: 183832717741390 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T101433&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68297&fm=183832717741390&tin=02508201610067®Number=0000000000098096&sum=100000 [10:14:29]StoreToDocumentArchive [10:14:29]shift 324 fd 68297 [10:14:29]save to /storage/0324/doc_00068297 [10:14:29]save last doc name /storage/0324/doc_00068297 to /storage/kkm_last_doc_name [10:14:29]save OK [10:14:29]Clear old archive folders... [10:14:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:14:29]tlvbuf is 00340460 [10:14:29]SAM_PROTO_ClearQueue [10:14:29]wFMCommunicate request_size=4 [10:14:29]MH_SAM_APDU [10:14:29]CAPDU: 80 09 00 00 [10:14:29]Write to MH i2c: E2 08 00 26 28 80 09 00 00 00 00 00 00 C0 [10:14:29]Write i2c OK [10:14:29]MH_I2C_Read... [10:14:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:14:29]Read from MH i2c: E2 [10:14:29]MH_I2C_Read... [10:14:29]Read from MH i2c: E2 03 00 [10:14:29]MH_I2C_Read... [10:14:29]Read from MH i2c: E2 03 00 26 28 00 90 00 C2 [10:14:29]RAPDU: 90 00 [10:14:29]wFMCommunicate OK [10:14:29]SAM_PROTO_ClearQueue done [10:14:29]KKMCreateOFDPacket [10:14:29]OFDProtocolAddRootSTLVToBuf [10:14:29]FM_MakeSignedData [10:14:29]FM_MakeSignedData [10:14:29]SAM_PROTO_SignData [10:14:29]wFMCommunicate request_size=4 [10:14:29]MH_SAM_APDU [10:14:29]CAPDU: 80 0D 01 02 [10:14:29]Write to MH i2c: E2 08 00 27 28 80 0D 01 02 00 00 00 00 C8 [10:14:29]Write i2c OK [10:14:29]MH_I2C_Read... [10:14:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:14:30]Read from MH i2c: E2 [10:14:30]MH_I2C_Read... [10:14:30]Read from MH i2c: E2 03 00 [10:14:30]MH_I2C_Read... [10:14:30]Read from MH i2c: E2 03 00 27 28 00 90 00 C3 [10:14:30]RAPDU: 90 00 [10:14:30]wFMCommunicate OK [10:14:30]wFMCommunicate request_size=255 [10:14:30]MH_SAM_APDU [10:14:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 89 97 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C9 0A 01 00 35 04 06 00 A7 [10:14:30]Write to MH i2c: E2 02 01 28 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 89 97 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C9 0A 01 00 35 04 06 00 A7 00 00 1D [10:14:30]Write i2c OK [10:14:30]MH_I2C_Read... [10:14:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:30]Read from MH i2c: E2 [10:14:30]MH_I2C_Read... [10:14:30]Read from MH i2c: E2 03 00 [10:14:30]MH_I2C_Read... [10:14:30]Read from MH i2c: E2 03 00 28 28 00 90 00 C4 [10:14:30]RAPDU: 90 00 [10:14:30]wFMCommunicate OK [10:14:30]wFMCommunicate request_size=10 [10:14:30]MH_SAM_APDU [10:14:30]CAPDU: 80 0D 02 02 05 31 E3 D6 CD 4E [10:14:30]Write to MH i2c: E2 0D 00 29 28 80 0D 02 02 05 00 31 E3 D6 CD 4E 00 00 DA [10:14:30]Write i2c OK [10:14:30]MH_I2C_Read... [10:14:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:30]Read from MH i2c: E2 [10:14:30]MH_I2C_Read... [10:14:30]Read from MH i2c: E2 03 00 [10:14:30]MH_I2C_Read... [10:14:30]Read from MH i2c: E2 03 00 29 28 00 90 00 C5 [10:14:30]RAPDU: 90 00 [10:14:30]wFMCommunicate OK [10:14:30]wFMCommunicate request_size=4 [10:14:30]MH_SAM_APDU [10:14:30]CAPDU: 80 0D 03 02 [10:14:30]Write to MH i2c: E2 08 00 2A 28 80 0D 03 02 00 00 00 00 CD [10:14:30]Write i2c OK [10:14:30]MH_I2C_Read... [10:14:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:14:30]Read from MH i2c: E2 [10:14:30]MH_I2C_Read... [10:14:30]Read from MH i2c: E2 0B 00 [10:14:30]MH_I2C_Read... [10:14:30]Read from MH i2c: E2 0B 00 2A 28 00 14 64 D5 CE E1 16 FD 9B 90 00 78 [10:14:30]RAPDU: 14 64 D5 CE E1 16 FD 9B 90 00 [10:14:30]wFMCommunicate OK [10:14:30]SAM_PROTO_SignData done [10:14:30]FM_MakeSignedData done [10:14:30]CreateOFDProtocolMessage [10:14:30]wFMCommunicate request_size=4 [10:14:30]MH_SAM_APDU [10:14:30]CAPDU: 80 11 00 00 [10:14:30]Write to MH i2c: E2 08 00 2B 28 80 11 00 00 00 00 00 00 CD [10:14:30]Write i2c OK [10:14:30]MH_I2C_Read... [10:14:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:30]Read from MH i2c: E2 [10:14:30]MH_I2C_Read... [10:14:30]Read from MH i2c: E2 17 00 [10:14:30]MH_I2C_Read... [10:14:30]Read from MH i2c: E2 17 00 2B 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 18 [10:14:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [10:14:30]wFMCommunicate OK [10:14:30]CreateOFDProtocolMessage done [10:14:30]OFDSenderStorePacket 68297 [10:14:30]StoreOFDPacket docnum=68297 [10:14:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 16 DD 07 01 6C 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 89 97 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C9 0A 01 00 35 04 06 00 A7 31 E3 D6 CD 4E 14 64 D5 CE E1 16 FD 9B [10:14:30]CheckFolder [10:14:30]dirname=/storage/ofd_packets [10:14:30]CheckFolder done [10:14:30]ProducePacketName [10:14:30]name=ofd_packets/00068297 [10:14:30]NVStorageSaveData ofd_packets/00068297 [10:14:30]File name is /storage/ofd_packets/00068297 [10:14:30]Write 301 bytes [10:14:30]NVStorageSaveData done [10:14:30]OFDSenderStorePacket done [10:14:30]KKMCreateOFDPacket done [10:14:30]NVStorageSaveData kkm_last_timestamp [10:14:30]File name is /storage/kkm_last_timestamp [10:14:30]Write 4 bytes [10:14:30]NVStorageSaveData done [10:14:30]ExternCall_PrintAddStr [10:14:30]wPrintStart [10:14:30]Write to MH i2c: 01 00 00 2C 28 54 [10:14:30]Write i2c OK [10:14:30]MH_I2C_Read... [10:14:30]Read from MH i2c: 01 [10:14:30]MH_I2C_Read... [10:14:30]Read from MH i2c: 01 07 00 [10:14:30]MH_I2C_Read... [10:14:30]Read from MH i2c: 01 07 00 2C 28 00 00 00 00 00 FF 0F 69 [10:14:30]RasterBufferAndPrint [10:14:30]line Счет N : (1)706369 [10:14:30]line ИНН: 02508201610067 [10:14:30]line Контрольно-Кассовый Чек [10:14:30]line ПРОДАЖА [10:14:30]line ТРК (МРК, ГНК) : 42 [10:14:30]line Товар: 2710124130 [10:14:30]line Аи-92-К-4 [10:14:30]line 14.950 * 66.90 [10:14:30]line = 1000.16 [10:14:30]line НДС 12% НСП 1% [10:14:30]line > о реализуемом товаре [10:14:30]line ОКРУГЛЕНИЕ: -0.16 [10:14:30]line ИТОГО: 1000.00 [10:14:31]line Внесено: 1000.00 [10:14:31]line СДАЧА: 0.00 [10:14:31]line НСП 1% : 8.85 [10:14:31]line НДС 12% : 106.21 [10:14:31]line Наличными: 1000.00 [10:14:31]line Безнал.: 0.00 [10:14:31]line Место: АЗС № 62 "Партнер Нефть" [10:14:31]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [10:14:31]line СНО: Общий режим [10:14:31]line Чек 43 03.06.2024 10:14 [10:14:31]line Смена: 324 ФФД: 1.0 [10:14:31]line ЗНМ: 0300000181 [10:14:31]line РНМ: 0000000000098096 [10:14:31]line Версия ККМ: 001 [10:14:31]line ФМ: 0000000000965400 [10:14:31]line ФД: 68297 [10:14:31]line ФПД: 183832717741390 [10:14:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T101433&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68297&fm=183832717741390&tin=02508201610067®Number=0000000000098096&sum=100000 [10:14:31]OFD Sender: Processing packet 68297 [packets to send 26, broken 25] [10:14:31]ProducePacketName [10:14:31]name=ofd_packets/00068297 [10:14:31]OFD Sender: To server: pG, [10:14:31]CommunicateWithHost lk.salyk.kg:30040 [10:14:31]ConnectInit lk.salyk.kg [10:14:31]written 0, free lines is 4095 [10:14:31]Connected sock=10 [10:14:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 16 DD 07 01 6C 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 89 97 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C9 0A 01 00 35 04 06 00 A7 31 E3 D6 CD 4E 14 64 D5 CE E1 16 FD 9B [10:14:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 A1 11 47 00 1B A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 C9 0A 01 00 F4 03 04 00 86 3E 5D 66 B6 04 01 00 00 54 73 6B 4E B3 B7 2A 83 [10:14:31]CommunicateWithHost err = 0 [10:14:31]CheckOFDResponse [10:14:31]1017 (14) - 77093643461234 [10:14:31]1041 (16) - 0000000000965400 [10:14:31]1040 (4) - 68297 [10:14:31]1012 (4) - 03.06.2024 03:54 [10:14:31]1206 (1) - 0 [10:14:31]OFD Sender: Remove packet 68297 [10:14:31]ProducePacketName [10:14:31]name=ofd_packets/00068297 [10:14:31]NVStorageDeleteData [10:14:31]Write to MH i2c: 01 00 00 57 28 7F [10:14:31]Write i2c OK [10:14:31]MH_I2C_Read... [10:14:31]Read from MH i2c: 01 [10:14:31]MH_I2C_Read... [10:14:31]Read from MH i2c: 01 07 00 [10:14:31]MH_I2C_Read... [10:14:31]Read from MH i2c: 01 07 00 57 28 00 00 00 00 00 E7 0C 79 [10:14:31]RasterBufferAndPrint [10:14:31]line [10:14:31]line [10:14:31]line [10:14:31]line [10:14:31]line [10:14:31]written 0, free lines is 3315 [10:14:31]MH_Cut [10:14:31]Write to MH i2c: D1 01 00 5E 28 01 58 [10:14:31]Write i2c OK [10:14:31]MH_I2C_Read... [10:14:31]Read from MH i2c: D1 [10:14:31]MH_I2C_Read... [10:14:31]Read from MH i2c: D1 01 00 [10:14:31]MH_I2C_Read... [10:14:31]Read from MH i2c: D1 01 00 5E 28 00 57 [10:14:31]Write to MH i2c: 01 00 00 5F 28 87 [10:14:31]Write i2c OK [10:14:31]MH_I2C_Read... [10:14:31]OFD Sender: No OFD packet to send [10:14:32]*** Cut start [10:14:32]*** Partial cut [10:14:32]*** CUTSNS_PIN = 1 [10:14:32]*** CUTSNS_PIN = 0 [10:14:32]*** Brake cut motor [10:14:33]Read from MH i2c: 01 [10:14:33]MH_I2C_Read... [10:14:33]*** Stop cut motor [10:14:33]*** Cut end [10:14:33]Read from MH i2c: 01 07 00 [10:14:33]MH_I2C_Read... [10:14:33]Read from MH i2c: 01 07 00 5F 28 00 00 00 00 00 FF 0F 9C [10:14:33]process_action close_receipt done [10:14:33]requested_data is exist [10:14:33]produce_requested_data [10:14:33]requested_item fm.sn is exist - process it [10:14:33]wFMCommunicate request_size=4 [10:14:33]MH_SAM_APDU [10:14:33]CAPDU: 80 11 00 00 [10:14:33]Write to MH i2c: E2 08 00 60 28 80 11 00 00 00 00 00 00 02 [10:14:33]Write i2c OK [10:14:33]MH_I2C_Read... [10:14:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:33]Read from MH i2c: E2 [10:14:33]MH_I2C_Read... [10:14:33]Read from MH i2c: E2 17 00 [10:14:33]MH_I2C_Read... [10:14:33]Read from MH i2c: E2 17 00 60 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 4D [10:14:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [10:14:33]wFMCommunicate OK [10:14:33]requested_item fd.num is exist - process it [10:14:33]SAM_PROTO_GetFieldsCounters [10:14:33]wFMCommunicate request_size=4 [10:14:33]MH_SAM_APDU [10:14:33]CAPDU: 80 13 00 00 [10:14:33]Write to MH i2c: E2 08 00 61 28 80 13 00 00 00 00 00 00 05 [10:14:33]Write i2c OK [10:14:33]MH_I2C_Read... [10:14:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:14:33]Read from MH i2c: E2 [10:14:33]MH_I2C_Read... [10:14:33]Read from MH i2c: E2 62 00 [10:14:33]MH_I2C_Read... [10:14:33]Read from MH i2c: E2 62 00 61 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 C9 0A 01 00 0E 04 04 00 44 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 BF [10:14:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 C9 0A 01 00 0E 04 04 00 44 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 [10:14:33]wFMCommunicate OK [10:14:33]SAM_PROTO_GetFieldsCounters done [10:14:33]requested_item shift.num is exist - process it [10:14:33]requested_item shift.opened is exist - process it [10:14:33]req_shift_opened [10:14:33]FM_GetShiftState [10:14:33]SAM_PROTO_GetShiftState [10:14:33]wFMCommunicate request_size=4 [10:14:33]MH_SAM_APDU [10:14:33]CAPDU: 80 13 01 00 [10:14:33]Write to MH i2c: E2 08 00 62 28 80 13 01 00 00 00 00 00 07 [10:14:33]Write i2c OK [10:14:33]MH_I2C_Read... [10:14:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:33]Read from MH i2c: E2 [10:14:33]MH_I2C_Read... [10:14:33]Read from MH i2c: E2 0E 00 [10:14:33]MH_I2C_Read... [10:14:33]Read from MH i2c: E2 0E 00 62 28 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 E2 [10:14:33]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [10:14:33]wFMCommunicate OK [10:14:33]SAM_PROTO_GetShiftState done [10:14:33]FM_GetShiftState done [10:14:33]req_shift_opened done [10:14:33]requested_item shift.open_date is exist - process it [10:14:33]req_shift_open_date [10:14:33]req_shift_open_date done [10:14:33]produce_requested_data done [10:14:33]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68297,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [10:14:33]process_action_free close_receipt [10:14:33]json_value_free [10:14:33]json_value_free done [10:14:33]process_json_proto returns [10:14:33]Send response to host [10:14:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68297,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [10:14:33]free response buf [10:14:33]execute_script done [10:14:33]execute_script returns [10:14:33]free content buf [10:14:33]Sock 9.Close socket [10:14:33]Sock 9.Thread stoped [10:14:36]OFD Sender: No OFD packet to send [10:14:41]OFD Sender: No OFD packet to send [10:14:46]accept exits with 7 [10:14:46]New connection [10:14:46]New thread 3066543460 created [10:14:46]Thread 3066686820 joined [10:14:46]Waiting for new connection... [10:14:46] Sock 7.Parse request [10:14:46]Sock 7.Check first char [10:14:46]Sock 7.First char is OK [10:14:46]request: POST /json_proto HTTP/1.0 [10:14:46]Method: POST [10:14:46]URL: /json_proto [10:14:46]Method is POST - this is cgi request [10:14:46]url: /json_proto [10:14:46]query_string will be loaded in cgi processing [10:14:46]execute_cgi json_proto POST (null) [10:14:46]execute_cgi path=json_proto method=POST [10:14:46]POST find Content-Length [10:14:46]Host: 172.17.36.132:8080 [10:14:46]Content-Length: 1183 [10:14:46]Content-Type: application/json [10:14:46] [10:14:46]POST finish read [10:14:46]Found Content-Length = 1183 [10:14:46]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706367\u000A03.06.2024 09:52\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 30.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 2007.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A32022\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:46]execute_script... [10:14:46]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706367\u000A03.06.2024 09:52\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 30.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 2007.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A32022\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:46]POST & json_proto [10:14:46]process_json_proto [10:14:46]json parsed OK: [10:14:46]protocol is kg_v1.0 [10:14:46]action value=print_text [10:14:46]process_action print_text [10:14:46]cmd_print_text [10:14:46]ExternCall_PrintAddStr [10:14:46]wPrintStart [10:14:46]Write to MH i2c: 01 00 00 63 28 8B [10:14:46]Write i2c OK [10:14:46]MH_I2C_Read... [10:14:46]Read from MH i2c: 01 [10:14:46]MH_I2C_Read... [10:14:46]Read from MH i2c: 01 07 00 [10:14:46]MH_I2C_Read... [10:14:46]Read from MH i2c: 01 07 00 63 28 00 00 00 00 00 FF 0F A0 [10:14:46]RasterBufferAndPrint [10:14:46]line *****ТОВАРНЫЙ ЧЕК***** [10:14:46]line АЗС 62 [10:14:46]line Партнер нефть [10:14:46]line 02508201610067 [10:14:46]line Кассир : Балаев А. [10:14:46]line Счет N : (1)706367 [10:14:46]line 03.06.2024 09:52 [10:14:46]line ПРОДАЖА [10:14:46]line ТРК (МРК, ГНК): 32 [10:14:46]line Вид ГСМ : 2710124130 [10:14:46]line Аи-92-К-4 [10:14:46]line 30.000 x 66.90 [10:14:46]line ИТОГ: 2007.00 [10:14:46]line Тип оплаты: Талоны: Топливная Карта [10:14:46]line 32022 [10:14:46]line ______________________ [10:14:46]line (подпись) [10:14:46]written 0, free lines is 4095 [10:14:46]Write to MH i2c: 01 00 00 77 28 9F [10:14:46]Write i2c OK [10:14:46]MH_I2C_Read... [10:14:46]Read from MH i2c: 01 [10:14:46]MH_I2C_Read... [10:14:46]Read from MH i2c: 01 07 00 [10:14:46]MH_I2C_Read... [10:14:46]Read from MH i2c: 01 07 00 77 28 00 00 00 00 00 11 0E C5 [10:14:46]RasterBufferAndPrint [10:14:46]line [10:14:46]line [10:14:46]line [10:14:46]line [10:14:46]line [10:14:46]written 0, free lines is 3604 [10:14:46]MH_Cut [10:14:46]Write to MH i2c: D1 01 00 7E 28 01 78 [10:14:46]Write i2c OK [10:14:46]MH_I2C_Read... [10:14:46]Read from MH i2c: D1 [10:14:46]MH_I2C_Read... [10:14:46]Read from MH i2c: D1 01 00 [10:14:46]MH_I2C_Read... [10:14:46]Read from MH i2c: D1 01 00 7E 28 00 77 [10:14:46]Write to MH i2c: 01 00 00 7F 28 A7 [10:14:46]Write i2c OK [10:14:46]MH_I2C_Read... [10:14:46]OFD Sender: No OFD packet to send [10:14:47]*** Cut start [10:14:47]*** Partial cut [10:14:47]*** CUTSNS_PIN = 1 [10:14:47]*** CUTSNS_PIN = 0 [10:14:47]*** Brake cut motor [10:14:47]Read from MH i2c: 01 [10:14:47]MH_I2C_Read... [10:14:47]*** Stop cut motor [10:14:47]*** Cut end [10:14:47]Read from MH i2c: 01 07 00 [10:14:47]MH_I2C_Read... [10:14:47]Read from MH i2c: 01 07 00 7F 28 00 00 00 00 00 FF 0F BC [10:14:47]process_action print_text done [10:14:47]requested_data is exist [10:14:47]produce_requested_data [10:14:47]requested_item fm.sn is exist - process it [10:14:47]wFMCommunicate request_size=4 [10:14:47]MH_SAM_APDU [10:14:47]CAPDU: 80 11 00 00 [10:14:47]Write to MH i2c: E2 08 00 80 28 80 11 00 00 00 00 00 00 22 [10:14:47]Write i2c OK [10:14:47]MH_I2C_Read... [10:14:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:47]Read from MH i2c: E2 [10:14:47]MH_I2C_Read... [10:14:47]Read from MH i2c: E2 17 00 [10:14:47]MH_I2C_Read... [10:14:47]Read from MH i2c: E2 17 00 80 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 6D [10:14:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [10:14:47]wFMCommunicate OK [10:14:47]requested_item fd.num is exist - process it [10:14:47]SAM_PROTO_GetFieldsCounters [10:14:47]wFMCommunicate request_size=4 [10:14:47]MH_SAM_APDU [10:14:47]CAPDU: 80 13 00 00 [10:14:47]Write to MH i2c: E2 08 00 81 28 80 13 00 00 00 00 00 00 25 [10:14:47]Write i2c OK [10:14:47]MH_I2C_Read... [10:14:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:14:47]Read from MH i2c: E2 [10:14:47]MH_I2C_Read... [10:14:47]Read from MH i2c: E2 62 00 [10:14:47]MH_I2C_Read... [10:14:47]Read from MH i2c: E2 62 00 81 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 C9 0A 01 00 0E 04 04 00 44 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 DF [10:14:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 C9 0A 01 00 0E 04 04 00 44 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 [10:14:47]wFMCommunicate OK [10:14:47]SAM_PROTO_GetFieldsCounters done [10:14:47]requested_item shift.num is exist - process it [10:14:47]requested_item shift.opened is exist - process it [10:14:47]req_shift_opened [10:14:47]FM_GetShiftState [10:14:47]SAM_PROTO_GetShiftState [10:14:47]wFMCommunicate request_size=4 [10:14:47]MH_SAM_APDU [10:14:47]CAPDU: 80 13 01 00 [10:14:47]Write to MH i2c: E2 08 00 82 28 80 13 01 00 00 00 00 00 27 [10:14:47]Write i2c OK [10:14:47]MH_I2C_Read... [10:14:47]Read from MH i2c: E2 [10:14:47]MH_I2C_Read... [10:14:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:47]Read from MH i2c: E2 0E 00 [10:14:47]MH_I2C_Read... [10:14:47]Read from MH i2c: E2 0E 00 82 28 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 02 [10:14:47]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [10:14:47]wFMCommunicate OK [10:14:47]SAM_PROTO_GetShiftState done [10:14:47]FM_GetShiftState done [10:14:47]req_shift_opened done [10:14:47]requested_item shift.open_date is exist - process it [10:14:47]req_shift_open_date [10:14:47]req_shift_open_date done [10:14:47]produce_requested_data done [10:14:47]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68297,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [10:14:47]process_action_free print_text [10:14:47]json_value_free [10:14:47]json_value_free done [10:14:47]process_json_proto returns [10:14:47]Send response to host [10:14:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68297,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [10:14:47]free response buf [10:14:47]execute_script done [10:14:47]execute_script returns [10:14:47]free content buf [10:14:47]Sock 7.Close socket [10:14:47]Sock 7.Thread stoped [10:14:51]OFD Sender: No OFD packet to send [10:14:56]OFD Sender: No OFD packet to send [10:15:01]OFD Sender: No OFD packet to send [10:15:07]OFD Sender: No OFD packet to send [10:15:12]OFD Sender: No OFD packet to send [10:15:17]OFD Sender: No OFD packet to send [10:15:22]OFD Sender: No OFD packet to send [10:15:27]OFD Sender: No OFD packet to send [10:15:32]OFD Sender: No OFD packet to send [10:15:37]OFD Sender: No OFD packet to send [10:15:42]OFD Sender: No OFD packet to send [10:15:47]OFD Sender: No OFD packet to send [10:15:52]OFD Sender: No OFD packet to send [10:15:57]OFD Sender: No OFD packet to send [10:16:02]OFD Sender: No OFD packet to send [10:16:07]OFD Sender: No OFD packet to send [10:16:12]OFD Sender: No OFD packet to send [10:16:17]OFD Sender: No OFD packet to send [10:16:22]OFD Sender: No OFD packet to send [10:16:27]OFD Sender: No OFD packet to send [10:16:32]OFD Sender: No OFD packet to send [10:16:35]accept exits with 9 [10:16:35]New connection [10:16:35]New thread 3066686820 created [10:16:35]Thread 3066543460 joined [10:16:35]Waiting for new connection... [10:16:35] Sock 9.Parse request [10:16:35]Sock 9.Check first char [10:16:35]Sock 9.First char is OK [10:16:35]request: POST /json_proto HTTP/1.0 [10:16:35]Method: POST [10:16:35]URL: /json_proto [10:16:35]Method is POST - this is cgi request [10:16:35]url: /json_proto [10:16:35]query_string will be loaded in cgi processing [10:16:35]execute_cgi json_proto POST (null) [10:16:35]execute_cgi path=json_proto method=POST [10:16:35]POST find Content-Length [10:16:35]Host: 172.17.36.132:8080 [10:16:35]Content-Length: 678 [10:16:35]Content-Type: application/json [10:16:35] [10:16:35]POST finish read [10:16:35]Found Content-Length = 678 [10:16:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706370", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.060, "sum" : 940.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 940.00, "total" : 940.00, "payments": [ { "type": 0, "sum" : 940.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:16:35]execute_script... [10:16:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706370", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.060, "sum" : 940.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 940.00, "total" : 940.00, "payments": [ { "type": 0, "sum" : 940.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:16:35]POST & json_proto [10:16:35]process_json_proto [10:16:35]json parsed OK: [10:16:35]protocol is kg_v1.0 [10:16:35]action value=close_receipt [10:16:35]process_action close_receipt [10:16:35]cmd_close_receipt [10:16:35]MH_GetDate [10:16:35]Write to MH i2c: F0 00 00 83 28 9A [10:16:35]Write i2c OK [10:16:35]MH_I2C_Read... [10:16:35]Read from MH i2c: F0 [10:16:35]MH_I2C_Read... [10:16:35]Read from MH i2c: F0 09 00 [10:16:35]MH_I2C_Read... [10:16:35]Read from MH i2c: F0 09 00 83 28 00 08 98 5D 66 B2 22 B0 64 EE [10:16:35]GetLastDocTimeStamp 1717409673 [10:16:35]current date 1717409800 [10:16:35]FM_GetShiftState [10:16:35]SAM_PROTO_GetShiftState [10:16:35]wFMCommunicate request_size=4 [10:16:35]MH_SAM_APDU [10:16:35]CAPDU: 80 13 01 00 [10:16:35]Write to MH i2c: E2 08 00 84 28 80 13 01 00 00 00 00 00 29 [10:16:35]Write i2c OK [10:16:35]MH_I2C_Read... [10:16:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:35]Read from MH i2c: E2 [10:16:35]MH_I2C_Read... [10:16:35]Read from MH i2c: E2 0E 00 [10:16:35]MH_I2C_Read... [10:16:35]Read from MH i2c: E2 0E 00 84 28 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 04 [10:16:35]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [10:16:35]wFMCommunicate OK [10:16:35]SAM_PROTO_GetShiftState done [10:16:35]FM_GetShiftState done [10:16:35]opened in 1717378033 [10:16:35]opened+sec_in_day 1717464433 [10:16:35]quantity*price = 94061 [10:16:35]sum+1 = 94062 [10:16:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 940.00 Внесено: 940.00 СДАЧА: 0.00 НСП 1% : 8.32 НДС 12% : 99.89 Наличными: 940.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 44 03.06.2024 10:16 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68298 ФПД: 90204825826470 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T101640&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68298&fm=90204825826470&tin=02508201610067®Number=0000000000098096&sum=94000 [10:16:36]StoreToDocumentArchive [10:16:36]shift 324 fd 68298 [10:16:36]save to /storage/0324/doc_00068298 [10:16:36]save last doc name /storage/0324/doc_00068298 to /storage/kkm_last_doc_name [10:16:36]save OK [10:16:36]Clear old archive folders... [10:16:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:16:36]tlvbuf is B6E809E0 [10:16:36]SAM_PROTO_ClearQueue [10:16:36]wFMCommunicate request_size=4 [10:16:36]MH_SAM_APDU [10:16:36]CAPDU: 80 09 00 00 [10:16:36]Write to MH i2c: E2 08 00 91 28 80 09 00 00 00 00 00 00 2B [10:16:36]Write i2c OK [10:16:36]MH_I2C_Read... [10:16:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:16:36]Read from MH i2c: E2 [10:16:36]MH_I2C_Read... [10:16:36]Read from MH i2c: E2 03 00 [10:16:36]MH_I2C_Read... [10:16:36]Read from MH i2c: E2 03 00 91 28 00 90 00 2D [10:16:36]RAPDU: 90 00 [10:16:36]wFMCommunicate OK [10:16:36]SAM_PROTO_ClearQueue done [10:16:36]KKMCreateOFDPacket [10:16:36]OFDProtocolAddRootSTLVToBuf [10:16:36]FM_MakeSignedData [10:16:36]FM_MakeSignedData [10:16:36]SAM_PROTO_SignData [10:16:36]wFMCommunicate request_size=4 [10:16:36]MH_SAM_APDU [10:16:36]CAPDU: 80 0D 01 02 [10:16:36]Write to MH i2c: E2 08 00 92 28 80 0D 01 02 00 00 00 00 33 [10:16:36]Write i2c OK [10:16:36]MH_I2C_Read... [10:16:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:16:37]Read from MH i2c: E2 [10:16:37]MH_I2C_Read... [10:16:37]Read from MH i2c: E2 03 00 [10:16:37]MH_I2C_Read... [10:16:37]Read from MH i2c: E2 03 00 92 28 00 90 00 2E [10:16:37]RAPDU: 90 00 [10:16:37]wFMCommunicate OK [10:16:37]wFMCommunicate request_size=255 [10:16:37]MH_SAM_APDU [10:16:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 EC 36 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6D 6F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 6F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 05 27 00 00 00 00 07 04 06 00 30 6F 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 08 98 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 CA 0A 01 00 35 04 06 00 52 [10:16:37]Write to MH i2c: E2 02 01 93 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 EC 36 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6D 6F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 6F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 05 27 00 00 00 00 07 04 06 00 30 6F 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 08 98 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 CA 0A 01 00 35 04 06 00 52 00 00 20 [10:16:37]Write i2c OK [10:16:37]MH_I2C_Read... [10:16:37]OFD Sender: No OFD packet to send [10:16:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:37]Read from MH i2c: E2 [10:16:37]MH_I2C_Read... [10:16:37]Read from MH i2c: E2 03 00 [10:16:37]MH_I2C_Read... [10:16:37]Read from MH i2c: E2 03 00 93 28 00 90 00 2F [10:16:37]RAPDU: 90 00 [10:16:37]wFMCommunicate OK [10:16:37]wFMCommunicate request_size=10 [10:16:37]MH_SAM_APDU [10:16:37]CAPDU: 80 0D 02 02 05 0A 72 99 B4 A6 [10:16:37]Write to MH i2c: E2 0D 00 94 28 80 0D 02 02 05 00 0A 72 99 B4 A6 00 00 AF [10:16:37]Write i2c OK [10:16:37]MH_I2C_Read... [10:16:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:37]Read from MH i2c: E2 [10:16:37]MH_I2C_Read... [10:16:37]Read from MH i2c: E2 03 00 [10:16:37]MH_I2C_Read... [10:16:37]Read from MH i2c: E2 03 00 94 28 00 90 00 30 [10:16:37]RAPDU: 90 00 [10:16:37]wFMCommunicate OK [10:16:37]wFMCommunicate request_size=4 [10:16:37]MH_SAM_APDU [10:16:37]CAPDU: 80 0D 03 02 [10:16:37]Write to MH i2c: E2 08 00 95 28 80 0D 03 02 00 00 00 00 38 [10:16:37]Write i2c OK [10:16:37]MH_I2C_Read... [10:16:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:16:37]Read from MH i2c: E2 [10:16:37]MH_I2C_Read... [10:16:37]Read from MH i2c: E2 0B 00 [10:16:37]MH_I2C_Read... [10:16:37]Read from MH i2c: E2 0B 00 95 28 00 93 A1 24 25 37 9A 55 96 90 00 72 [10:16:37]RAPDU: 93 A1 24 25 37 9A 55 96 90 00 [10:16:37]wFMCommunicate OK [10:16:37]SAM_PROTO_SignData done [10:16:37]FM_MakeSignedData done [10:16:37]CreateOFDProtocolMessage [10:16:37]wFMCommunicate request_size=4 [10:16:37]MH_SAM_APDU [10:16:37]CAPDU: 80 11 00 00 [10:16:37]Write to MH i2c: E2 08 00 96 28 80 11 00 00 00 00 00 00 38 [10:16:37]Write i2c OK [10:16:37]MH_I2C_Read... [10:16:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:37]Read from MH i2c: E2 [10:16:37]MH_I2C_Read... [10:16:37]Read from MH i2c: E2 17 00 [10:16:37]MH_I2C_Read... [10:16:37]Read from MH i2c: E2 17 00 96 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 83 [10:16:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [10:16:37]wFMCommunicate OK [10:16:37]CreateOFDProtocolMessage done [10:16:37]OFDSenderStorePacket 68298 [10:16:37]StoreOFDPacket docnum=68298 [10:16:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 34 E4 07 01 5A 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 EC 36 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6D 6F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 6F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 05 27 00 00 00 00 07 04 06 00 30 6F 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 08 98 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 CA 0A 01 00 35 04 06 00 52 0A 72 99 B4 A6 93 A1 24 25 37 9A 55 96 [10:16:37]CheckFolder [10:16:37]dirname=/storage/ofd_packets [10:16:37]CheckFolder done [10:16:37]ProducePacketName [10:16:37]name=ofd_packets/00068298 [10:16:37]NVStorageSaveData ofd_packets/00068298 [10:16:37]File name is /storage/ofd_packets/00068298 [10:16:37]Write 301 bytes [10:16:37]NVStorageSaveData done [10:16:37]OFDSenderStorePacket done [10:16:37]KKMCreateOFDPacket done [10:16:37]NVStorageSaveData kkm_last_timestamp [10:16:37]File name is /storage/kkm_last_timestamp [10:16:37]Write 4 bytes [10:16:37]NVStorageSaveData done [10:16:37]ExternCall_PrintAddStr [10:16:37]wPrintStart [10:16:37]Write to MH i2c: 01 00 00 97 28 BF [10:16:37]Write i2c OK [10:16:37]MH_I2C_Read... [10:16:37]Read from MH i2c: 01 [10:16:37]MH_I2C_Read... [10:16:37]Read from MH i2c: 01 07 00 [10:16:37]MH_I2C_Read... [10:16:37]Read from MH i2c: 01 07 00 97 28 00 00 00 00 00 FF 0F D4 [10:16:37]RasterBufferAndPrint [10:16:37]line Счет N : (1)706370 [10:16:37]line ИНН: 02508201610067 [10:16:37]line Контрольно-Кассовый Чек [10:16:37]line ПРОДАЖА [10:16:37]line ТРК (МРК, ГНК) : 63 [10:16:37]line Товар: 2710124130 [10:16:37]line Аи-92-К-4 [10:16:37]line 14.060 * 66.90 [10:16:37]line = 940.61 [10:16:37]line НДС 12% НСП 1% [10:16:37]line > о реализуемом товаре [10:16:37]line ОКРУГЛЕНИЕ: -0.61 [10:16:37]line ИТОГО: 940.00 [10:16:37]line Внесено: 940.00 [10:16:37]line СДАЧА: 0.00 [10:16:37]line НСП 1% : 8.32 [10:16:37]line НДС 12% : 99.89 [10:16:37]line Наличными: 940.00 [10:16:37]line Безнал.: 0.00 [10:16:37]line Место: АЗС № 62 "Партнер Нефть" [10:16:37]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [10:16:37]line СНО: Общий режим [10:16:37]line Чек 44 03.06.2024 10:16 [10:16:37]line Смена: 324 ФФД: 1.0 [10:16:37]line ЗНМ: 0300000181 [10:16:37]line РНМ: 0000000000098096 [10:16:37]line Версия ККМ: 001 [10:16:37]line ФМ: 0000000000965400 [10:16:37]line ФД: 68298 [10:16:37]line ФПД: 90204825826470 [10:16:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T101640&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68298&fm=90204825826470&tin=02508201610067®Number=0000000000098096&sum=94000 [10:16:37]OFD Sender: Processing packet 68298 [packets to send 26, broken 25] [10:16:37]ProducePacketName [10:16:37]name=ofd_packets/00068298 [10:16:37]OFD Sender: To server: pG, [10:16:37]CommunicateWithHost lk.salyk.kg:30040 [10:16:37]ConnectInit lk.salyk.kg [10:16:37]written 0, free lines is 4095 [10:16:37]Connected sock=10 [10:16:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 34 E4 07 01 5A 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 EC 36 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6D 6F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 6F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 05 27 00 00 00 00 07 04 06 00 30 6F 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 08 98 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 CA 0A 01 00 35 04 06 00 52 0A 72 99 B4 A6 93 A1 24 25 37 9A 55 96 [10:16:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 F6 51 47 00 26 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 CA 0A 01 00 F4 03 04 00 04 3F 5D 66 B6 04 01 00 00 99 DC FC 72 04 58 FF D2 [10:16:38]CommunicateWithHost err = 0 [10:16:38]CheckOFDResponse [10:16:38]1017 (14) - 77093643461234 [10:16:38]1041 (16) - 0000000000965400 [10:16:38]1040 (4) - 68298 [10:16:38]1012 (4) - 03.06.2024 03:56 [10:16:38]1206 (1) - 0 [10:16:38]OFD Sender: Remove packet 68298 [10:16:38]ProducePacketName [10:16:38]name=ofd_packets/00068298 [10:16:38]NVStorageDeleteData [10:16:38]Write to MH i2c: 01 00 00 C2 28 EA [10:16:38]Write i2c OK [10:16:38]MH_I2C_Read... [10:16:38]Read from MH i2c: 01 [10:16:38]MH_I2C_Read... [10:16:38]Read from MH i2c: 01 07 00 [10:16:38]MH_I2C_Read... [10:16:38]Read from MH i2c: 01 07 00 C2 28 00 00 00 00 00 DA 0C D7 [10:16:38]RasterBufferAndPrint [10:16:38]line [10:16:38]line [10:16:38]line [10:16:38]line [10:16:38]line [10:16:38]written 0, free lines is 3297 [10:16:38]MH_Cut [10:16:38]Write to MH i2c: D1 01 00 C9 28 01 C3 [10:16:38]Write i2c OK [10:16:38]MH_I2C_Read... [10:16:38]Read from MH i2c: D1 [10:16:38]MH_I2C_Read... [10:16:38]Read from MH i2c: D1 01 00 [10:16:38]MH_I2C_Read... [10:16:38]Read from MH i2c: D1 01 00 C9 28 00 C2 [10:16:38]Write to MH i2c: 01 00 00 CA 28 F2 [10:16:38]Write i2c OK [10:16:38]MH_I2C_Read... [10:16:38]OFD Sender: No OFD packet to send [10:16:39]*** Cut start [10:16:39]*** Partial cut [10:16:39]*** CUTSNS_PIN = 1 [10:16:39]*** CUTSNS_PIN = 0 [10:16:39]*** Brake cut motor [10:16:39]Read from MH i2c: 01 [10:16:39]MH_I2C_Read... [10:16:39]*** Stop cut motor [10:16:39]*** Cut end [10:16:39]Read from MH i2c: 01 07 00 [10:16:39]MH_I2C_Read... [10:16:39]Read from MH i2c: 01 07 00 CA 28 00 00 00 00 00 FF 0F 07 [10:16:39]process_action close_receipt done [10:16:39]requested_data is exist [10:16:39]produce_requested_data [10:16:39]requested_item fm.sn is exist - process it [10:16:39]wFMCommunicate request_size=4 [10:16:39]MH_SAM_APDU [10:16:39]CAPDU: 80 11 00 00 [10:16:39]Write to MH i2c: E2 08 00 CB 28 80 11 00 00 00 00 00 00 6D [10:16:39]Write i2c OK [10:16:39]MH_I2C_Read... [10:16:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:39]Read from MH i2c: E2 [10:16:39]MH_I2C_Read... [10:16:39]Read from MH i2c: E2 17 00 [10:16:39]MH_I2C_Read... [10:16:39]Read from MH i2c: E2 17 00 CB 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 B8 [10:16:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [10:16:39]wFMCommunicate OK [10:16:39]requested_item fd.num is exist - process it [10:16:39]SAM_PROTO_GetFieldsCounters [10:16:39]wFMCommunicate request_size=4 [10:16:39]MH_SAM_APDU [10:16:39]CAPDU: 80 13 00 00 [10:16:39]Write to MH i2c: E2 08 00 CC 28 80 13 00 00 00 00 00 00 70 [10:16:39]Write i2c OK [10:16:39]MH_I2C_Read... [10:16:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:16:39]Read from MH i2c: E2 [10:16:39]MH_I2C_Read... [10:16:39]Read from MH i2c: E2 62 00 [10:16:39]MH_I2C_Read... [10:16:39]Read from MH i2c: E2 62 00 CC 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 CA 0A 01 00 0E 04 04 00 44 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 2E [10:16:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 CA 0A 01 00 0E 04 04 00 44 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 [10:16:39]wFMCommunicate OK [10:16:39]SAM_PROTO_GetFieldsCounters done [10:16:39]requested_item shift.num is exist - process it [10:16:39]requested_item shift.opened is exist - process it [10:16:39]req_shift_opened [10:16:39]FM_GetShiftState [10:16:39]SAM_PROTO_GetShiftState [10:16:39]wFMCommunicate request_size=4 [10:16:39]MH_SAM_APDU [10:16:39]CAPDU: 80 13 01 00 [10:16:39]Write to MH i2c: E2 08 00 CD 28 80 13 01 00 00 00 00 00 72 [10:16:39]Write i2c OK [10:16:39]MH_I2C_Read... [10:16:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:39]Read from MH i2c: E2 [10:16:39]MH_I2C_Read... [10:16:39]Read from MH i2c: E2 0E 00 [10:16:39]MH_I2C_Read... [10:16:39]Read from MH i2c: E2 0E 00 CD 28 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 4D [10:16:39]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [10:16:39]wFMCommunicate OK [10:16:39]SAM_PROTO_GetShiftState done [10:16:39]FM_GetShiftState done [10:16:39]req_shift_opened done [10:16:39]requested_item shift.open_date is exist - process it [10:16:39]req_shift_open_date [10:16:39]req_shift_open_date done [10:16:39]produce_requested_data done [10:16:39]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68298,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [10:16:39]process_action_free close_receipt [10:16:39]json_value_free [10:16:39]json_value_free done [10:16:39]process_json_proto returns [10:16:39]Send response to host [10:16:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68298,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [10:16:39]free response buf [10:16:39]execute_script done [10:16:39]execute_script returns [10:16:39]free content buf [10:16:39]Sock 9.Close socket [10:16:39]Sock 9.Thread stoped [10:16:43]OFD Sender: No OFD packet to send [10:16:48]OFD Sender: No OFD packet to send [10:16:53]OFD Sender: No OFD packet to send [10:16:58]OFD Sender: No OFD packet to send [10:17:03]OFD Sender: No OFD packet to send [10:17:08]OFD Sender: No OFD packet to send [10:17:13]OFD Sender: No OFD packet to send [10:17:18]OFD Sender: No OFD packet to send [10:17:23]OFD Sender: No OFD packet to send [10:17:28]OFD Sender: No OFD packet to send [10:17:33]OFD Sender: No OFD packet to send [10:17:38]OFD Sender: No OFD packet to send [10:17:43]OFD Sender: No OFD packet to send [10:17:48]OFD Sender: No OFD packet to send [10:17:53]OFD Sender: No OFD packet to send [10:17:58]OFD Sender: No OFD packet to send [10:18:03]OFD Sender: No OFD packet to send [10:18:08]OFD Sender: No OFD packet to send [10:18:13]OFD Sender: No OFD packet to send [10:18:18]OFD Sender: No OFD packet to send [10:18:23]OFD Sender: No OFD packet to send [10:18:28]OFD Sender: No OFD packet to send [10:18:33]OFD Sender: No OFD packet to send [10:18:38]OFD Sender: No OFD packet to send [10:18:43]OFD Sender: No OFD packet to send [10:18:48]OFD Sender: No OFD packet to send [10:18:53]OFD Sender: No OFD packet to send [10:18:58]OFD Sender: No OFD packet to send [10:19:03]OFD Sender: No OFD packet to send [10:19:08]OFD Sender: No OFD packet to send [10:19:13]OFD Sender: No OFD packet to send [10:19:18]OFD Sender: No OFD packet to send [10:19:23]OFD Sender: No OFD packet to send [10:19:25]accept exits with 7 [10:19:25]New connection [10:19:25]New thread 3066543460 created [10:19:25]Thread 3066686820 joined [10:19:25]Waiting for new connection... [10:19:25] Sock 7.Parse request [10:19:25]Sock 7.Check first char [10:19:25]Sock 7.First char is OK [10:19:25]request: POST /json_proto HTTP/1.0 [10:19:25]Method: POST [10:19:25]URL: /json_proto [10:19:25]Method is POST - this is cgi request [10:19:25]url: /json_proto [10:19:25]query_string will be loaded in cgi processing [10:19:25]execute_cgi json_proto POST (null) [10:19:25]execute_cgi path=json_proto method=POST [10:19:25]POST find Content-Length [10:19:25]Host: 172.17.36.132:8080 [10:19:25]Content-Length: 677 [10:19:25]Content-Type: application/json [10:19:25] [10:19:25]POST finish read [10:19:25]Found Content-Length = 677 [10:19:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706371", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:19:25]execute_script... [10:19: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)706371", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:19:25]POST & json_proto [10:19:25]process_json_proto [10:19:25]json parsed OK: [10:19:25]protocol is kg_v1.0 [10:19:25]action value=close_receipt [10:19:25]process_action close_receipt [10:19:25]cmd_close_receipt [10:19:25]MH_GetDate [10:19:25]Write to MH i2c: F0 00 00 CE 28 E5 [10:19:25]Write i2c OK [10:19:25]MH_I2C_Read... [10:19:25]Read from MH i2c: F0 [10:19:25]MH_I2C_Read... [10:19:25]Read from MH i2c: F0 09 00 [10:19:25]MH_I2C_Read... [10:19:25]Read from MH i2c: F0 09 00 CE 28 00 B1 98 5D 66 B2 22 B0 64 E2 [10:19:25]GetLastDocTimeStamp 1717409800 [10:19:25]current date 1717409969 [10:19:25]FM_GetShiftState [10:19:25]SAM_PROTO_GetShiftState [10:19:25]wFMCommunicate request_size=4 [10:19:25]MH_SAM_APDU [10:19:25]CAPDU: 80 13 01 00 [10:19:25]Write to MH i2c: E2 08 00 CF 28 80 13 01 00 00 00 00 00 74 [10:19:25]Write i2c OK [10:19:25]MH_I2C_Read... [10:19:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:25]Read from MH i2c: E2 [10:19:25]MH_I2C_Read... [10:19:25]Read from MH i2c: E2 0E 00 [10:19:25]MH_I2C_Read... [10:19:25]Read from MH i2c: E2 0E 00 CF 28 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 4F [10:19:25]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [10:19:25]wFMCommunicate OK [10:19:25]SAM_PROTO_GetShiftState done [10:19:25]FM_GetShiftState done [10:19:25]opened in 1717378033 [10:19:25]opened+sec_in_day 1717464433 [10:19:25]quantity*price = 50041 [10:19:25]sum+1 = 50042 [10:19:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 45 03.06.2024 10:19 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68299 ФПД: 37352592178544 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T101929&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68299&fm=37352592178544&tin=02508201610067®Number=0000000000098096&sum=50000 [10:19:26]StoreToDocumentArchive [10:19:26]shift 324 fd 68299 [10:19:26]save to /storage/0324/doc_00068299 [10:19:26]save last doc name /storage/0324/doc_00068299 to /storage/kkm_last_doc_name [10:19:26]save OK [10:19:26]Clear old archive folders... [10:19:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:19:26]tlvbuf is B6E67A10 [10:19:26]SAM_PROTO_ClearQueue [10:19:26]wFMCommunicate request_size=4 [10:19:26]MH_SAM_APDU [10:19:26]CAPDU: 80 09 00 00 [10:19:26]Write to MH i2c: E2 08 00 DC 28 80 09 00 00 00 00 00 00 76 [10:19:26]Write i2c OK [10:19:26]MH_I2C_Read... [10:19:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:19:26]Read from MH i2c: E2 [10:19:26]MH_I2C_Read... [10:19:26]Read from MH i2c: E2 03 00 [10:19:26]MH_I2C_Read... [10:19:26]Read from MH i2c: E2 03 00 DC 28 00 90 00 78 [10:19:26]RAPDU: 90 00 [10:19:26]wFMCommunicate OK [10:19:26]SAM_PROTO_ClearQueue done [10:19:26]KKMCreateOFDPacket [10:19:26]OFDProtocolAddRootSTLVToBuf [10:19:26]FM_MakeSignedData [10:19:26]FM_MakeSignedData [10:19:26]SAM_PROTO_SignData [10:19:26]wFMCommunicate request_size=4 [10:19:26]MH_SAM_APDU [10:19:26]CAPDU: 80 0D 01 02 [10:19:26]Write to MH i2c: E2 08 00 DD 28 80 0D 01 02 00 00 00 00 7E [10:19:26]Write i2c OK [10:19:26]MH_I2C_Read... [10:19:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:19:26]Read from MH i2c: E2 [10:19:26]MH_I2C_Read... [10:19:26]Read from MH i2c: E2 03 00 [10:19:26]MH_I2C_Read... [10:19:26]Read from MH i2c: E2 03 00 DD 28 00 90 00 79 [10:19:26]RAPDU: 90 00 [10:19:26]wFMCommunicate OK [10:19:26]wFMCommunicate request_size=255 [10:19:26]MH_SAM_APDU [10:19:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 B1 98 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 CB 0A 01 00 35 04 06 00 21 [10:19:26]Write to MH i2c: E2 02 01 DE 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 B1 98 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 CB 0A 01 00 35 04 06 00 21 00 00 80 [10:19:26]Write i2c OK [10:19:26]MH_I2C_Read... [10:19:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:26]Read from MH i2c: E2 [10:19:26]MH_I2C_Read... [10:19:26]Read from MH i2c: E2 03 00 [10:19:26]MH_I2C_Read... [10:19:26]Read from MH i2c: E2 03 00 DE 28 00 90 00 7A [10:19:26]RAPDU: 90 00 [10:19:26]wFMCommunicate OK [10:19:26]wFMCommunicate request_size=10 [10:19:26]MH_SAM_APDU [10:19:26]CAPDU: 80 0D 02 02 05 F8 D3 FC FD 70 [10:19:26]Write to MH i2c: E2 0D 00 DF 28 80 0D 02 02 05 00 F8 D3 FC FD 70 00 00 BF [10:19:26]Write i2c OK [10:19:26]MH_I2C_Read... [10:19:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:26]Read from MH i2c: E2 [10:19:26]MH_I2C_Read... [10:19:26]Read from MH i2c: E2 03 00 [10:19:26]MH_I2C_Read... [10:19:26]Read from MH i2c: E2 03 00 DF 28 00 90 00 7B [10:19:26]RAPDU: 90 00 [10:19:26]wFMCommunicate OK [10:19:26]wFMCommunicate request_size=4 [10:19:26]MH_SAM_APDU [10:19:26]CAPDU: 80 0D 03 02 [10:19:26]Write to MH i2c: E2 08 00 E0 28 80 0D 03 02 00 00 00 00 83 [10:19:26]Write i2c OK [10:19:26]MH_I2C_Read... [10:19:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:19:26]Read from MH i2c: E2 [10:19:26]MH_I2C_Read... [10:19:26]Read from MH i2c: E2 0B 00 [10:19:26]MH_I2C_Read... [10:19:26]Read from MH i2c: E2 0B 00 E0 28 00 59 2A CF A3 9C 9A 9E 4D 90 00 9A [10:19:26]RAPDU: 59 2A CF A3 9C 9A 9E 4D 90 00 [10:19:26]wFMCommunicate OK [10:19:26]SAM_PROTO_SignData done [10:19:26]FM_MakeSignedData done [10:19:26]CreateOFDProtocolMessage [10:19:26]wFMCommunicate request_size=4 [10:19:26]MH_SAM_APDU [10:19:26]CAPDU: 80 11 00 00 [10:19:26]Write to MH i2c: E2 08 00 E1 28 80 11 00 00 00 00 00 00 83 [10:19:26]Write i2c OK [10:19:26]MH_I2C_Read... [10:19:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:26]Read from MH i2c: E2 [10:19:26]MH_I2C_Read... [10:19:26]Read from MH i2c: E2 17 00 [10:19:26]MH_I2C_Read... [10:19:26]Read from MH i2c: E2 17 00 E1 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 CE [10:19:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [10:19:26]wFMCommunicate OK [10:19:26]CreateOFDProtocolMessage done [10:19:26]OFDSenderStorePacket 68299 [10:19:26]StoreOFDPacket docnum=68299 [10:19:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 68 93 07 01 61 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 B1 98 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 CB 0A 01 00 35 04 06 00 21 F8 D3 FC FD 70 59 2A CF A3 9C 9A 9E 4D [10:19:26]CheckFolder [10:19:26]dirname=/storage/ofd_packets [10:19:26]CheckFolder done [10:19:26]ProducePacketName [10:19:26]name=ofd_packets/00068299 [10:19:26]NVStorageSaveData ofd_packets/00068299 [10:19:26]File name is /storage/ofd_packets/00068299 [10:19:26]Write 301 bytes [10:19:26]NVStorageSaveData done [10:19:26]OFDSenderStorePacket done [10:19:26]KKMCreateOFDPacket done [10:19:26]NVStorageSaveData kkm_last_timestamp [10:19:26]File name is /storage/kkm_last_timestamp [10:19:26]Write 4 bytes [10:19:26]NVStorageSaveData done [10:19:26]ExternCall_PrintAddStr [10:19:26]wPrintStart [10:19:26]Write to MH i2c: 01 00 00 E2 28 0A [10:19:26]Write i2c OK [10:19:26]MH_I2C_Read... [10:19:26]Read from MH i2c: 01 [10:19:26]MH_I2C_Read... [10:19:26]Read from MH i2c: 01 07 00 [10:19:26]MH_I2C_Read... [10:19:26]Read from MH i2c: 01 07 00 E2 28 00 00 00 00 00 FF 0F 1F [10:19:26]RasterBufferAndPrint [10:19:26]line Счет N : (1)706371 [10:19:26]line ИНН: 02508201610067 [10:19:26]line Контрольно-Кассовый Чек [10:19:26]line ПРОДАЖА [10:19:26]line ТРК (МРК, ГНК) : 32 [10:19:26]line Товар: 2710124130 [10:19:26]line Аи-92-К-4 [10:19:26]line 7.480 * 66.90 [10:19:26]line = 500.41 [10:19:26]line НДС 12% НСП 1% [10:19:26]line > о реализуемом товаре [10:19:26]line ОКРУГЛЕНИЕ: -0.41 [10:19:26]line ИТОГО: 500.00 [10:19:26]line Внесено: 500.00 [10:19:26]line СДАЧА: 0.00 [10:19:26]line НСП 1% : 4.43 [10:19:26]line НДС 12% : 53.14 [10:19:26]line Наличными: 500.00 [10:19:26]line Безнал.: 0.00 [10:19:26]line Место: АЗС № 62 "Партнер Нефть" [10:19:26]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [10:19:26]line СНО: Общий режим [10:19:26]line Чек 45 03.06.2024 10:19 [10:19:26]line Смена: 324 ФФД: 1.0 [10:19:26]line ЗНМ: 0300000181 [10:19:26]line РНМ: 0000000000098096 [10:19:26]line Версия ККМ: 001 [10:19:26]line ФМ: 0000000000965400 [10:19:26]line ФД: 68299 [10:19:26]line ФПД: 37352592178544 [10:19:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T101929&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68299&fm=37352592178544&tin=02508201610067®Number=0000000000098096&sum=50000 [10:19:27]OFD Sender: Processing packet 68299 [packets to send 26, broken 25] [10:19:27]ProducePacketName [10:19:27]name=ofd_packets/00068299 [10:19:27]OFD Sender: To server: pG, [10:19:27]CommunicateWithHost lk.salyk.kg:30040 [10:19:27]ConnectInit lk.salyk.kg [10:19:27]written 0, free lines is 4095 [10:19:27]Connected sock=10 [10:19:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 68 93 07 01 61 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 B1 98 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 CB 0A 01 00 35 04 06 00 21 F8 D3 FC FD 70 59 2A CF A3 9C 9A 9E 4D [10:19:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 9E 21 47 00 5A CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 CB 0A 01 00 F4 03 04 00 AE 3F 5D 66 B6 04 01 00 00 0B D1 A6 C8 5E 6D E7 81 [10:19:27]CommunicateWithHost err = 0 [10:19:27]CheckOFDResponse [10:19:27]1017 (14) - 77093643461234 [10:19:27]1041 (16) - 0000000000965400 [10:19:27]1040 (4) - 68299 [10:19:27]1012 (4) - 03.06.2024 03:59 [10:19:27]1206 (1) - 0 [10:19:27]OFD Sender: Remove packet 68299 [10:19:27]ProducePacketName [10:19:27]name=ofd_packets/00068299 [10:19:27]NVStorageDeleteData [10:19:27]Write to MH i2c: 01 00 00 0D 29 36 [10:19:27]Write i2c OK [10:19:27]MH_I2C_Read... [10:19:27]Read from MH i2c: 01 [10:19:27]MH_I2C_Read... [10:19:27]Read from MH i2c: 01 07 00 [10:19:27]MH_I2C_Read... [10:19:27]Read from MH i2c: 01 07 00 0D 29 00 00 00 00 00 D7 0C 20 [10:19:27]RasterBufferAndPrint [10:19:27]line [10:19:27]line [10:19:27]line [10:19:27]line [10:19:27]line [10:19:27]written 0, free lines is 3290 [10:19:27]MH_Cut [10:19:27]Write to MH i2c: D1 01 00 14 29 01 0F [10:19:27]Write i2c OK [10:19:27]MH_I2C_Read... [10:19:27]Read from MH i2c: D1 [10:19:27]MH_I2C_Read... [10:19:27]Read from MH i2c: D1 01 00 [10:19:27]MH_I2C_Read... [10:19:27]Read from MH i2c: D1 01 00 14 29 00 0E [10:19:27]Write to MH i2c: 01 00 00 15 29 3E [10:19:27]Write i2c OK [10:19:27]MH_I2C_Read... [10:19:28]OFD Sender: No OFD packet to send [10:19:28]*** Cut start [10:19:28]*** Partial cut [10:19:28]*** CUTSNS_PIN = 1 [10:19:28]*** CUTSNS_PIN = 0 [10:19:28]*** Brake cut motor [10:19:29]Read from MH i2c: 01 [10:19:29]MH_I2C_Read... [10:19:29]*** Stop cut motor [10:19:29]*** Cut end [10:19:29]Read from MH i2c: 01 07 00 [10:19:29]MH_I2C_Read... [10:19:29]Read from MH i2c: 01 07 00 15 29 00 00 00 00 00 FF 0F 53 [10:19:29]process_action close_receipt done [10:19:29]requested_data is exist [10:19:29]produce_requested_data [10:19:29]requested_item fm.sn is exist - process it [10:19:29]wFMCommunicate request_size=4 [10:19:29]MH_SAM_APDU [10:19:29]CAPDU: 80 11 00 00 [10:19:29]Write to MH i2c: E2 08 00 16 29 80 11 00 00 00 00 00 00 B9 [10:19:29]Write i2c OK [10:19:29]MH_I2C_Read... [10:19:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:29]Read from MH i2c: E2 [10:19:29]MH_I2C_Read... [10:19:29]Read from MH i2c: E2 17 00 [10:19:29]MH_I2C_Read... [10:19:29]Read from MH i2c: E2 17 00 16 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 04 [10:19:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [10:19:29]wFMCommunicate OK [10:19:29]requested_item fd.num is exist - process it [10:19:29]SAM_PROTO_GetFieldsCounters [10:19:29]wFMCommunicate request_size=4 [10:19:29]MH_SAM_APDU [10:19:29]CAPDU: 80 13 00 00 [10:19:29]Write to MH i2c: E2 08 00 17 29 80 13 00 00 00 00 00 00 BC [10:19:29]Write i2c OK [10:19:29]MH_I2C_Read... [10:19:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:19:29]Read from MH i2c: E2 [10:19:29]MH_I2C_Read... [10:19:29]Read from MH i2c: E2 62 00 [10:19:29]MH_I2C_Read... [10:19:29]Read from MH i2c: E2 62 00 17 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 CB 0A 01 00 0E 04 04 00 44 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 7E [10:19:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 CB 0A 01 00 0E 04 04 00 44 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 [10:19:29]wFMCommunicate OK [10:19:29]SAM_PROTO_GetFieldsCounters done [10:19:29]requested_item shift.num is exist - process it [10:19:29]requested_item shift.opened is exist - process it [10:19:29]req_shift_opened [10:19:29]FM_GetShiftState [10:19:29]SAM_PROTO_GetShiftState [10:19:29]wFMCommunicate request_size=4 [10:19:29]MH_SAM_APDU [10:19:29]CAPDU: 80 13 01 00 [10:19:29]Write to MH i2c: E2 08 00 18 29 80 13 01 00 00 00 00 00 BE [10:19:29]Write i2c OK [10:19:29]MH_I2C_Read... [10:19:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:29]Read from MH i2c: E2 [10:19:29]MH_I2C_Read... [10:19:29]Read from MH i2c: E2 0E 00 [10:19:29]MH_I2C_Read... [10:19:29]Read from MH i2c: E2 0E 00 18 29 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 99 [10:19:29]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [10:19:29]wFMCommunicate OK [10:19:29]SAM_PROTO_GetShiftState done [10:19:29]FM_GetShiftState done [10:19:29]req_shift_opened done [10:19:29]requested_item shift.open_date is exist - process it [10:19:29]req_shift_open_date [10:19:29]req_shift_open_date done [10:19:29]produce_requested_data done [10:19:29]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68299,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [10:19:29]process_action_free close_receipt [10:19:29]json_value_free [10:19:29]json_value_free done [10:19:29]process_json_proto returns [10:19:29]Send response to host [10:19:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68299,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [10:19:29]free response buf [10:19:29]execute_script done [10:19:29]execute_script returns [10:19:29]free content buf [10:19:29]Sock 7.Close socket [10:19:29]Sock 7.Thread stoped [10:19:33]OFD Sender: No OFD packet to send [10:19:38]OFD Sender: No OFD packet to send [10:19:43]OFD Sender: No OFD packet to send [10:19:48]OFD Sender: No OFD packet to send [10:19:53]OFD Sender: No OFD packet to send [10:19:58]OFD Sender: No OFD packet to send [10:20:03]OFD Sender: No OFD packet to send [10:20:08]OFD Sender: No OFD packet to send [10:20:13]OFD Sender: No OFD packet to send [10:20:18]OFD Sender: No OFD packet to send [10:20:23]OFD Sender: No OFD packet to send [10:20:28]OFD Sender: No OFD packet to send [10:20:33]OFD Sender: No OFD packet to send [10:20:38]OFD Sender: No OFD packet to send [10:20:43]OFD Sender: No OFD packet to send [10:20:48]OFD Sender: No OFD packet to send [10:20:53]OFD Sender: No OFD packet to send [10:20:58]OFD Sender: No OFD packet to send [10:21:03]OFD Sender: No OFD packet to send [10:21:08]OFD Sender: No OFD packet to send [10:21:13]OFD Sender: No OFD packet to send [10:21:18]OFD Sender: No OFD packet to send [10:21:23]OFD Sender: No OFD packet to send [10:21:28]OFD Sender: No OFD packet to send [10:21:33]OFD Sender: No OFD packet to send [10:21:38]OFD Sender: No OFD packet to send [10:21:43]OFD Sender: No OFD packet to send [10:21:48]OFD Sender: No OFD packet to send [10:21:48]accept exits with 9 [10:21:48]New connection [10:21:48]New thread 3066686820 created [10:21:48]Thread 3066543460 joined [10:21:48]Waiting for new connection... [10:21:48] Sock 9.Parse request [10:21:48]Sock 9.Check first char [10:21:48]Sock 9.First char is OK [10:21:48]request: POST /json_proto HTTP/1.0 [10:21:48]Method: POST [10:21:48]URL: /json_proto [10:21:48]Method is POST - this is cgi request [10:21:48]url: /json_proto [10:21:48]query_string will be loaded in cgi processing [10:21:48]execute_cgi json_proto POST (null) [10:21:48]execute_cgi path=json_proto method=POST [10:21:48]POST find Content-Length [10:21:48]Host: 172.17.36.132:8080 [10:21:48]Content-Length: 843 [10:21:48]Content-Type: application/json [10:21:48] [10:21:48]POST finish read [10:21:48]Found Content-Length = 843 [10:21:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706372", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 20.000, "sum" : 1338.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1338.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:21:48]execute_script... [10:21:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706372", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 20.000, "sum" : 1338.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1338.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:21:48]POST & json_proto [10:21:48]process_json_proto [10:21:48]json parsed OK: [10:21:48]protocol is kg_v1.0 [10:21:48]action value=close_receipt [10:21:48]process_action close_receipt [10:21:48]cmd_close_receipt [10:21:48]MH_GetDate [10:21:48]Write to MH i2c: F0 00 00 19 29 31 [10:21:48]Write i2c OK [10:21:48]MH_I2C_Read... [10:21:48]Read from MH i2c: F0 [10:21:48]MH_I2C_Read... [10:21:48]Read from MH i2c: F0 09 00 [10:21:48]MH_I2C_Read... [10:21:48]Read from MH i2c: F0 09 00 19 29 00 41 99 5D 66 B2 22 B0 64 BF [10:21:48]GetLastDocTimeStamp 1717409969 [10:21:48]current date 1717410113 [10:21:48]FM_GetShiftState [10:21:48]SAM_PROTO_GetShiftState [10:21:48]wFMCommunicate request_size=4 [10:21:48]MH_SAM_APDU [10:21:48]CAPDU: 80 13 01 00 [10:21:48]Write to MH i2c: E2 08 00 1A 29 80 13 01 00 00 00 00 00 C0 [10:21:48]Write i2c OK [10:21:48]MH_I2C_Read... [10:21:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:48]Read from MH i2c: E2 [10:21:48]MH_I2C_Read... [10:21:48]Read from MH i2c: E2 0E 00 [10:21:48]MH_I2C_Read... [10:21:48]Read from MH i2c: E2 0E 00 1A 29 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 9B [10:21:48]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [10:21:48]wFMCommunicate OK [10:21:48]SAM_PROTO_GetShiftState done [10:21:48]FM_GetShiftState done [10:21:48]opened in 1717378033 [10:21:48]opened+sec_in_day 1717464433 [10:21:48]quantity*price = 133800 [10:21:48]sum+1 = 133801 [10:21:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1338.00 НСП 1% : 11.84 НДС 12% : 142.09 Наличными: 0.00 Безнал.: 1338.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 46 03.06.2024 10:21 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68300 ФПД: 37928770508363 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T102153&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68300&fm=37928770508363&tin=02508201610067®Number=0000000000098096&sum=133800 [10:21:49]StoreToDocumentArchive [10:21:49]shift 324 fd 68300 [10:21:49]save to /storage/0324/doc_00068300 [10:21:49]save last doc name /storage/0324/doc_00068300 to /storage/kkm_last_doc_name [10:21:49]save OK [10:21:49]Clear old archive folders... [10:21:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:21:49]tlvbuf is 00259810 [10:21:49]SAM_PROTO_ClearQueue [10:21:49]wFMCommunicate request_size=4 [10:21:49]MH_SAM_APDU [10:21:49]CAPDU: 80 09 00 00 [10:21:49]Write to MH i2c: E2 08 00 27 29 80 09 00 00 00 00 00 00 C2 [10:21:49]Write i2c OK [10:21:49]MH_I2C_Read... [10:21:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:21:49]Read from MH i2c: E2 [10:21:49]MH_I2C_Read... [10:21:49]Read from MH i2c: E2 03 00 [10:21:49]MH_I2C_Read... [10:21:49]Read from MH i2c: E2 03 00 27 29 00 90 00 C4 [10:21:49]RAPDU: 90 00 [10:21:49]wFMCommunicate OK [10:21:49]SAM_PROTO_ClearQueue done [10:21:49]KKMCreateOFDPacket [10:21:49]OFDProtocolAddRootSTLVToBuf [10:21:49]FM_MakeSignedData [10:21:49]FM_MakeSignedData [10:21:49]SAM_PROTO_SignData [10:21:49]wFMCommunicate request_size=4 [10:21:49]MH_SAM_APDU [10:21:49]CAPDU: 80 0D 01 02 [10:21:49]Write to MH i2c: E2 08 00 28 29 80 0D 01 02 00 00 00 00 CA [10:21:49]Write i2c OK [10:21:49]MH_I2C_Read... [10:21:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:21:49]Read from MH i2c: E2 [10:21:49]MH_I2C_Read... [10:21:49]Read from MH i2c: E2 03 00 [10:21:49]MH_I2C_Read... [10:21:49]Read from MH i2c: E2 03 00 28 29 00 90 00 C5 [10:21:49]RAPDU: 90 00 [10:21:49]wFMCommunicate OK [10:21:49]wFMCommunicate request_size=255 [10:21:49]MH_SAM_APDU [10:21:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 0A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 0A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 37 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 0A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 41 99 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 CC 0A 01 00 35 04 06 00 22 [10:21:49]Write to MH i2c: E2 02 01 29 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 0A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 0A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 37 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 0A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 41 99 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 CC 0A 01 00 35 04 06 00 22 00 00 FD [10:21:49]Write i2c OK [10:21:49]MH_I2C_Read... [10:21:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:50]Read from MH i2c: E2 [10:21:50]MH_I2C_Read... [10:21:50]Read from MH i2c: E2 03 00 [10:21:50]MH_I2C_Read... [10:21:50]Read from MH i2c: E2 03 00 29 29 00 90 00 C6 [10:21:50]RAPDU: 90 00 [10:21:50]wFMCommunicate OK [10:21:50]wFMCommunicate request_size=10 [10:21:50]MH_SAM_APDU [10:21:50]CAPDU: 80 0D 02 02 05 7E FA E4 96 4B [10:21:50]Write to MH i2c: E2 0D 00 2A 29 80 0D 02 02 05 00 7E FA E4 96 4B 00 00 14 [10:21:50]Write i2c OK [10:21:50]MH_I2C_Read... [10:21:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:50]Read from MH i2c: E2 [10:21:50]MH_I2C_Read... [10:21:50]Read from MH i2c: E2 03 00 [10:21:50]MH_I2C_Read... [10:21:50]Read from MH i2c: E2 03 00 2A 29 00 90 00 C7 [10:21:50]RAPDU: 90 00 [10:21:50]wFMCommunicate OK [10:21:50]wFMCommunicate request_size=4 [10:21:50]MH_SAM_APDU [10:21:50]CAPDU: 80 0D 03 02 [10:21:50]Write to MH i2c: E2 08 00 2B 29 80 0D 03 02 00 00 00 00 CF [10:21:50]Write i2c OK [10:21:50]MH_I2C_Read... [10:21:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:21:50]Read from MH i2c: E2 [10:21:50]MH_I2C_Read... [10:21:50]Read from MH i2c: E2 0B 00 [10:21:50]MH_I2C_Read... [10:21:50]Read from MH i2c: E2 0B 00 2B 29 00 25 A7 C4 BD FA 89 77 35 90 00 4C [10:21:50]RAPDU: 25 A7 C4 BD FA 89 77 35 90 00 [10:21:50]wFMCommunicate OK [10:21:50]SAM_PROTO_SignData done [10:21:50]FM_MakeSignedData done [10:21:50]CreateOFDProtocolMessage [10:21:50]wFMCommunicate request_size=4 [10:21:50]MH_SAM_APDU [10:21:50]CAPDU: 80 11 00 00 [10:21:50]Write to MH i2c: E2 08 00 2C 29 80 11 00 00 00 00 00 00 CF [10:21:50]Write i2c OK [10:21:50]MH_I2C_Read... [10:21:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:50]Read from MH i2c: E2 [10:21:50]MH_I2C_Read... [10:21:50]Read from MH i2c: E2 17 00 [10:21:50]MH_I2C_Read... [10:21:50]Read from MH i2c: E2 17 00 2C 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 1A [10:21:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [10:21:50]wFMCommunicate OK [10:21:50]CreateOFDProtocolMessage done [10:21:50]OFDSenderStorePacket 68300 [10:21:50]StoreOFDPacket docnum=68300 [10:21:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 52 4D 07 01 00 DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 0A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 0A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 37 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 0A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 41 99 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 CC 0A 01 00 35 04 06 00 22 7E FA E4 96 4B 25 A7 C4 BD FA 89 77 35 [10:21:50]CheckFolder [10:21:50]dirname=/storage/ofd_packets [10:21:50]CheckFolder done [10:21:50]ProducePacketName [10:21:50]name=ofd_packets/00068300 [10:21:50]NVStorageSaveData ofd_packets/00068300 [10:21:50]File name is /storage/ofd_packets/00068300 [10:21:50]Write 301 bytes [10:21:50]NVStorageSaveData done [10:21:50]OFDSenderStorePacket done [10:21:50]KKMCreateOFDPacket done [10:21:50]NVStorageSaveData kkm_last_timestamp [10:21:50]File name is /storage/kkm_last_timestamp [10:21:50]Write 4 bytes [10:21:50]NVStorageSaveData done [10:21:50]ExternCall_PrintAddStr [10:21:50]wPrintStart [10:21:50]Write to MH i2c: 01 00 00 2D 29 56 [10:21:50]Write i2c OK [10:21:50]MH_I2C_Read... [10:21:50]Read from MH i2c: 01 [10:21:50]MH_I2C_Read... [10:21:50]Read from MH i2c: 01 07 00 [10:21:50]MH_I2C_Read... [10:21:50]Read from MH i2c: 01 07 00 2D 29 00 00 00 00 00 FF 0F 6B [10:21:50]RasterBufferAndPrint [10:21:50]line Счет N : (1)706372 [10:21:50]line ИНН: 02508201610067 [10:21:50]line Контрольно-Кассовый Чек [10:21:50]line ПРОДАЖА [10:21:50]line ТРК (МРК, ГНК) : 53 [10:21:50]line Товар: 2710124130 [10:21:50]line Аи-92-К-4 [10:21:50]line 20.000 * 66.90 [10:21:50]line = 1338.00 [10:21:50]line НДС 12% НСП 1% [10:21:50]line > о реализуемом товаре [10:21:50]line ИТОГО: 1338.00 [10:21:50]line НСП 1% : 11.84 [10:21:50]line НДС 12% : 142.09 [10:21:50]line Наличными: 0.00 [10:21:50]line Безнал.: 1338.00 [10:21:50]line Место: АЗС № 62 "Партнер Нефть" [10:21:50]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [10:21:50]line СНО: Общий режим [10:21:50]line Чек 46 03.06.2024 10:21 [10:21:50]line Смена: 324 ФФД: 1.0 [10:21:50]line ЗНМ: 0300000181 [10:21:50]line РНМ: 0000000000098096 [10:21:50]line Версия ККМ: 001 [10:21:50]line Платежная система: АКБ Кыргызстан [10:21:50]line ФМ: 0000000000965400 [10:21:50]line ФД: 68300 [10:21:50]line ФПД: 37928770508363 [10:21:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T102153&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68300&fm=37928770508363&tin=02508201610067®Number=0000000000098096&sum=133800 [10:21:50]OFD Sender: Processing packet 68300 [packets to send 26, broken 25] [10:21:50]ProducePacketName [10:21:50]name=ofd_packets/00068300 [10:21:50]OFD Sender: To server: pG, [10:21:50]CommunicateWithHost lk.salyk.kg:30040 [10:21:50]ConnectInit lk.salyk.kg [10:21:50]written 0, free lines is 4095 [10:21:50]Connected sock=10 [10:21:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 52 4D 07 01 00 DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 0A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 0A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 37 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 0A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 41 99 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 CC 0A 01 00 35 04 06 00 22 7E FA E4 96 4B 25 A7 C4 BD FA 89 77 35 [10:21:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 68 06 47 00 82 A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 CC 0A 01 00 F4 03 04 00 3D 40 5D 66 B6 04 01 00 00 14 D0 5B 70 98 34 B7 5C [10:21:50]CommunicateWithHost err = 0 [10:21:50]CheckOFDResponse [10:21:50]1017 (14) - 77093643461234 [10:21:50]1041 (16) - 0000000000965400 [10:21:50]1040 (4) - 68300 [10:21:50]1012 (4) - 03.06.2024 04:02 [10:21:50]1206 (1) - 0 [10:21:50]OFD Sender: Remove packet 68300 [10:21:50]ProducePacketName [10:21:50]name=ofd_packets/00068300 [10:21:50]NVStorageDeleteData [10:21:51]Write to MH i2c: 01 00 00 57 29 80 [10:21:51]Write i2c OK [10:21:51]MH_I2C_Read... [10:21:51]Read from MH i2c: 01 [10:21:51]MH_I2C_Read... [10:21:51]Read from MH i2c: 01 07 00 [10:21:51]MH_I2C_Read... [10:21:51]Read from MH i2c: 01 07 00 57 29 00 00 00 00 00 E8 0C 7B [10:21:51]RasterBufferAndPrint [10:21:51]line [10:21:51]line [10:21:51]line [10:21:51]line [10:21:51]line [10:21:51]written 0, free lines is 3311 [10:21:51]MH_Cut [10:21:51]Write to MH i2c: D1 01 00 5E 29 01 59 [10:21:51]Write i2c OK [10:21:51]MH_I2C_Read... [10:21:51]Read from MH i2c: D1 [10:21:51]MH_I2C_Read... [10:21:51]Read from MH i2c: D1 01 00 [10:21:51]MH_I2C_Read... [10:21:51]Read from MH i2c: D1 01 00 5E 29 00 58 [10:21:51]Write to MH i2c: 01 00 00 5F 29 88 [10:21:51]Write i2c OK [10:21:51]MH_I2C_Read... [10:21:51]OFD Sender: No OFD packet to send [10:21:51]*** Cut start [10:21:51]*** Partial cut [10:21:51]*** CUTSNS_PIN = 1 [10:21:51]*** CUTSNS_PIN = 0 [10:21:52]*** Brake cut motor [10:21:52]Read from MH i2c: 01 [10:21:52]MH_I2C_Read... [10:21:52]*** Stop cut motor [10:21:52]*** Cut end [10:21:52]Read from MH i2c: 01 07 00 [10:21:52]MH_I2C_Read... [10:21:52]Read from MH i2c: 01 07 00 5F 29 00 00 00 00 00 FF 0F 9D [10:21:52]process_action close_receipt done [10:21:52]requested_data is exist [10:21:52]produce_requested_data [10:21:52]requested_item fm.sn is exist - process it [10:21:52]wFMCommunicate request_size=4 [10:21:52]MH_SAM_APDU [10:21:52]CAPDU: 80 11 00 00 [10:21:52]Write to MH i2c: E2 08 00 60 29 80 11 00 00 00 00 00 00 03 [10:21:52]Write i2c OK [10:21:52]MH_I2C_Read... [10:21:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:52]Read from MH i2c: E2 [10:21:52]MH_I2C_Read... [10:21:52]Read from MH i2c: E2 17 00 [10:21:52]MH_I2C_Read... [10:21:52]Read from MH i2c: E2 17 00 60 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 4E [10:21:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [10:21:52]wFMCommunicate OK [10:21:52]requested_item fd.num is exist - process it [10:21:52]SAM_PROTO_GetFieldsCounters [10:21:52]wFMCommunicate request_size=4 [10:21:52]MH_SAM_APDU [10:21:52]CAPDU: 80 13 00 00 [10:21:52]Write to MH i2c: E2 08 00 61 29 80 13 00 00 00 00 00 00 06 [10:21:52]Write i2c OK [10:21:52]MH_I2C_Read... [10:21:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:21:52]Read from MH i2c: E2 [10:21:52]MH_I2C_Read... [10:21:52]Read from MH i2c: E2 62 00 [10:21:52]MH_I2C_Read... [10:21:52]Read from MH i2c: E2 62 00 61 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 CC 0A 01 00 0E 04 04 00 44 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 CC [10:21:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 CC 0A 01 00 0E 04 04 00 44 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 [10:21:52]wFMCommunicate OK [10:21:52]SAM_PROTO_GetFieldsCounters done [10:21:52]requested_item shift.num is exist - process it [10:21:52]requested_item shift.opened is exist - process it [10:21:52]req_shift_opened [10:21:52]FM_GetShiftState [10:21:52]SAM_PROTO_GetShiftState [10:21:52]wFMCommunicate request_size=4 [10:21:52]MH_SAM_APDU [10:21:52]CAPDU: 80 13 01 00 [10:21:52]Write to MH i2c: E2 08 00 62 29 80 13 01 00 00 00 00 00 08 [10:21:52]Write i2c OK [10:21:52]MH_I2C_Read... [10:21:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:52]Read from MH i2c: E2 [10:21:52]MH_I2C_Read... [10:21:52]Read from MH i2c: E2 0E 00 [10:21:52]MH_I2C_Read... [10:21:52]Read from MH i2c: E2 0E 00 62 29 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 E3 [10:21:52]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [10:21:52]wFMCommunicate OK [10:21:52]SAM_PROTO_GetShiftState done [10:21:52]FM_GetShiftState done [10:21:52]req_shift_opened done [10:21:52]requested_item shift.open_date is exist - process it [10:21:52]req_shift_open_date [10:21:52]req_shift_open_date done [10:21:52]produce_requested_data done [10:21:52]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68300,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [10:21:52]process_action_free close_receipt [10:21:52]json_value_free [10:21:52]json_value_free done [10:21:52]process_json_proto returns [10:21:52]Send response to host [10:21:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68300,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [10:21:52]free response buf [10:21:52]execute_script done [10:21:52]execute_script returns [10:21:52]free content buf [10:21:52]Sock 9.Close socket [10:21:52]Sock 9.Thread stoped [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: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:52]accept exits with 7 [10:24:52]New connection [10:24:52]New thread 3066543460 created [10:24:52]Thread 3066686820 joined [10:24:52]Waiting for new connection... [10:24:52] Sock 7.Parse request [10:24:52]Sock 7.Check first char [10:24:52]Sock 7.First char is OK [10:24:52]request: POST /json_proto HTTP/1.0 [10:24:52]Method: POST [10:24:52]URL: /json_proto [10:24:52]Method is POST - this is cgi request [10:24:52]url: /json_proto [10:24:52]query_string will be loaded in cgi processing [10:24:52]execute_cgi json_proto POST (null) [10:24:52]execute_cgi path=json_proto method=POST [10:24:52]POST find Content-Length [10:24:52]Host: 172.17.36.132:8080 [10:24:52]Content-Length: 843 [10:24:52]Content-Type: application/json [10:24:52] [10:24:52]POST finish read [10:24:52]Found Content-Length = 843 [10:24:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706373", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:24:52]execute_script... [10:24:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706373", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:24:52]POST & json_proto [10:24:52]process_json_proto [10:24:52]json parsed OK: [10:24:52]protocol is kg_v1.0 [10:24:52]action value=close_receipt [10:24:52]process_action close_receipt [10:24:52]cmd_close_receipt [10:24:52]MH_GetDate [10:24:52]Write to MH i2c: F0 00 00 63 29 7B [10:24:52]Write i2c OK [10:24:52]MH_I2C_Read... [10:24:52]Read from MH i2c: F0 [10:24:52]MH_I2C_Read... [10:24:52]Read from MH i2c: F0 09 00 [10:24:52]MH_I2C_Read... [10:24:52]Read from MH i2c: F0 09 00 63 29 00 F9 99 5D 66 B2 22 B0 64 C1 [10:24:52]GetLastDocTimeStamp 1717410113 [10:24:52]current date 1717410297 [10:24:52]FM_GetShiftState [10:24:52]SAM_PROTO_GetShiftState [10:24:52]wFMCommunicate request_size=4 [10:24:52]MH_SAM_APDU [10:24:52]CAPDU: 80 13 01 00 [10:24:52]Write to MH i2c: E2 08 00 64 29 80 13 01 00 00 00 00 00 0A [10:24:52]Write i2c OK [10:24:52]MH_I2C_Read... [10:24:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:52]Read from MH i2c: E2 [10:24:52]MH_I2C_Read... [10:24:52]Read from MH i2c: E2 0E 00 [10:24:52]MH_I2C_Read... [10:24:52]Read from MH i2c: E2 0E 00 64 29 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 E5 [10:24:52]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [10:24:52]wFMCommunicate OK [10:24:52]SAM_PROTO_GetShiftState done [10:24:52]FM_GetShiftState done [10:24:52]opened in 1717378033 [10:24:52]opened+sec_in_day 1717464433 [10:24:52]quantity*price = 100015 [10:24:52]sum+1 = 100017 [10:24:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 47 03.06.2024 10:24 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68301 ФПД: 271140307264295 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T102457&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68301&fm=271140307264295&tin=02508201610067®Number=0000000000098096&sum=100016 [10:24:53]StoreToDocumentArchive [10:24:53]shift 324 fd 68301 [10:24:53]save to /storage/0324/doc_00068301 [10:24:53]save last doc name /storage/0324/doc_00068301 to /storage/kkm_last_doc_name [10:24:53]save OK [10:24:53]Clear old archive folders... [10:24:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:24:53]tlvbuf is 00349010 [10:24:53]SAM_PROTO_ClearQueue [10:24:53]wFMCommunicate request_size=4 [10:24:53]MH_SAM_APDU [10:24:53]CAPDU: 80 09 00 00 [10:24:53]Write to MH i2c: E2 08 00 71 29 80 09 00 00 00 00 00 00 0C [10:24:53]Write i2c OK [10:24:53]MH_I2C_Read... [10:24:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:24:54]Read from MH i2c: E2 [10:24:54]MH_I2C_Read... [10:24:54]Read from MH i2c: E2 03 00 [10:24:54]MH_I2C_Read... [10:24:54]Read from MH i2c: E2 03 00 71 29 00 90 00 0E [10:24:54]RAPDU: 90 00 [10:24:54]wFMCommunicate OK [10:24:54]SAM_PROTO_ClearQueue done [10:24:54]KKMCreateOFDPacket [10:24:54]OFDProtocolAddRootSTLVToBuf [10:24:54]FM_MakeSignedData [10:24:54]FM_MakeSignedData [10:24:54]SAM_PROTO_SignData [10:24:54]wFMCommunicate request_size=4 [10:24:54]MH_SAM_APDU [10:24:54]CAPDU: 80 0D 01 02 [10:24:54]Write to MH i2c: E2 08 00 72 29 80 0D 01 02 00 00 00 00 14 [10:24:54]Write i2c OK [10:24:54]MH_I2C_Read... [10:24:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:24:54]Read from MH i2c: E2 [10:24:54]MH_I2C_Read... [10:24:54]Read from MH i2c: E2 03 00 [10:24:54]MH_I2C_Read... [10:24:54]Read from MH i2c: E2 03 00 72 29 00 90 00 0F [10:24:54]RAPDU: 90 00 [10:24:54]wFMCommunicate OK [10:24:54]wFMCommunicate request_size=255 [10:24:54]MH_SAM_APDU [10:24:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 F9 99 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 CD 0A 01 00 35 04 06 00 F6 [10:24:54]Write to MH i2c: E2 02 01 73 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 F9 99 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 CD 0A 01 00 35 04 06 00 F6 00 00 52 [10:24:54]Write i2c OK [10:24:54]MH_I2C_Read... [10:24:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:54]Read from MH i2c: E2 [10:24:54]MH_I2C_Read... [10:24:54]Read from MH i2c: E2 03 00 [10:24:54]MH_I2C_Read... [10:24:54]Read from MH i2c: E2 03 00 73 29 00 90 00 10 [10:24:54]RAPDU: 90 00 [10:24:54]wFMCommunicate OK [10:24:54]wFMCommunicate request_size=10 [10:24:54]MH_SAM_APDU [10:24:54]CAPDU: 80 0D 02 02 05 99 C5 B2 E3 27 [10:24:54]Write to MH i2c: E2 0D 00 74 29 80 0D 02 02 05 00 99 C5 B2 E3 27 00 00 3B [10:24:54]Write i2c OK [10:24:54]MH_I2C_Read... [10:24:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:54]Read from MH i2c: E2 [10:24:54]MH_I2C_Read... [10:24:54]Read from MH i2c: E2 03 00 [10:24:54]MH_I2C_Read... [10:24:54]Read from MH i2c: E2 03 00 74 29 00 90 00 11 [10:24:54]RAPDU: 90 00 [10:24:54]wFMCommunicate OK [10:24:54]wFMCommunicate request_size=4 [10:24:54]MH_SAM_APDU [10:24:54]CAPDU: 80 0D 03 02 [10:24:54]Write to MH i2c: E2 08 00 75 29 80 0D 03 02 00 00 00 00 19 [10:24:54]Write i2c OK [10:24:54]MH_I2C_Read... [10:24:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:24:54]Read from MH i2c: E2 [10:24:54]MH_I2C_Read... [10:24:54]Read from MH i2c: E2 0B 00 [10:24:54]MH_I2C_Read... [10:24:54]Read from MH i2c: E2 0B 00 75 29 00 57 8C AE 92 F8 4D FE 22 90 00 A2 [10:24:54]RAPDU: 57 8C AE 92 F8 4D FE 22 90 00 [10:24:54]wFMCommunicate OK [10:24:54]SAM_PROTO_SignData done [10:24:54]FM_MakeSignedData done [10:24:54]CreateOFDProtocolMessage [10:24:54]wFMCommunicate request_size=4 [10:24:54]MH_SAM_APDU [10:24:54]CAPDU: 80 11 00 00 [10:24:54]Write to MH i2c: E2 08 00 76 29 80 11 00 00 00 00 00 00 19 [10:24:54]Write i2c OK [10:24:54]MH_I2C_Read... [10:24:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:54]Read from MH i2c: E2 [10:24:54]MH_I2C_Read... [10:24:54]Read from MH i2c: E2 17 00 [10:24:54]MH_I2C_Read... [10:24:54]Read from MH i2c: E2 17 00 76 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 64 [10:24:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [10:24:54]wFMCommunicate OK [10:24:54]CreateOFDProtocolMessage done [10:24:54]OFDSenderStorePacket 68301 [10:24:54]StoreOFDPacket docnum=68301 [10:24:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 E4 25 07 01 8F 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 F9 99 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 CD 0A 01 00 35 04 06 00 F6 99 C5 B2 E3 27 57 8C AE 92 F8 4D FE 22 [10:24:54]CheckFolder [10:24:54]dirname=/storage/ofd_packets [10:24:54]CheckFolder done [10:24:54]ProducePacketName [10:24:54]name=ofd_packets/00068301 [10:24:54]NVStorageSaveData ofd_packets/00068301 [10:24:54]File name is /storage/ofd_packets/00068301 [10:24:54]Write 301 bytes [10:24:54]NVStorageSaveData done [10:24:54]OFDSenderStorePacket done [10:24:54]KKMCreateOFDPacket done [10:24:54]NVStorageSaveData kkm_last_timestamp [10:24:54]File name is /storage/kkm_last_timestamp [10:24:54]Write 4 bytes [10:24:54]NVStorageSaveData done [10:24:54]ExternCall_PrintAddStr [10:24:54]wPrintStart [10:24:54]Write to MH i2c: 01 00 00 77 29 A0 [10:24:54]Write i2c OK [10:24:54]MH_I2C_Read... [10:24:54]Read from MH i2c: 01 [10:24:54]MH_I2C_Read... [10:24:54]Read from MH i2c: 01 07 00 [10:24:54]MH_I2C_Read... [10:24:54]Read from MH i2c: 01 07 00 77 29 00 00 00 00 00 FF 0F B5 [10:24:54]RasterBufferAndPrint [10:24:54]line Счет N : (1)706373 [10:24:54]line ИНН: 02508201610067 [10:24:54]line Контрольно-Кассовый Чек [10:24:54]line ПРОДАЖА [10:24:54]line ТРК (МРК, ГНК) : 42 [10:24:54]line Товар: 2710124130 [10:24:54]line Аи-92-К-4 [10:24:54]line 14.950 * 66.90 [10:24:54]line = 1000.16 [10:24:54]line НДС 12% НСП 1% [10:24:54]line > о реализуемом товаре [10:24:54]line ИТОГО: 1000.16 [10:24:54]line НСП 1% : 8.85 [10:24:54]line НДС 12% : 106.21 [10:24:54]line Наличными: 0.00 [10:24:54]line Безнал.: 1000.16 [10:24:54]line Место: АЗС № 62 "Партнер Нефть" [10:24:54]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [10:24:54]line СНО: Общий режим [10:24:54]line Чек 47 03.06.2024 10:24 [10:24:54]line Смена: 324 ФФД: 1.0 [10:24:54]line ЗНМ: 0300000181 [10:24:54]line РНМ: 0000000000098096 [10:24:54]line Версия ККМ: 001 [10:24:54]line Платежная система: АКБ Кыргызстан [10:24:54]line ФМ: 0000000000965400 [10:24:54]line ФД: 68301 [10:24:54]line ФПД: 271140307264295 [10:24:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T102457&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68301&fm=271140307264295&tin=02508201610067®Number=0000000000098096&sum=100016 [10:24:54]OFD Sender: Processing packet 68301 [packets to send 26, broken 25] [10:24:54]ProducePacketName [10:24:54]name=ofd_packets/00068301 [10:24:54]OFD Sender: To server: pG, [10:24:54]CommunicateWithHost lk.salyk.kg:30040 [10:24:54]ConnectInit lk.salyk.kg [10:24:54]written 0, free lines is 4095 [10:24:54]Connected sock=10 [10:24:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 E4 25 07 01 8F 1D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 F9 99 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 CD 0A 01 00 35 04 06 00 F6 99 C5 B2 E3 27 57 8C AE 92 F8 4D FE 22 [10:24:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 5A 62 47 00 CA 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 CD 0A 01 00 F4 03 04 00 F5 40 5D 66 B6 04 01 00 00 06 51 81 30 09 18 9D E2 [10:24:55]CommunicateWithHost err = 0 [10:24:55]CheckOFDResponse [10:24:55]1017 (14) - 77093643461234 [10:24:55]1041 (16) - 0000000000965400 [10:24:55]1040 (4) - 68301 [10:24:55]1012 (4) - 03.06.2024 04:05 [10:24:55]1206 (1) - 0 [10:24:55]OFD Sender: Remove packet 68301 [10:24:55]ProducePacketName [10:24:55]name=ofd_packets/00068301 [10:24:55]NVStorageDeleteData [10:24:55]Write to MH i2c: 01 00 00 A1 29 CA [10:24:55]Write i2c OK [10:24:55]MH_I2C_Read... [10:24:55]Read from MH i2c: 01 [10:24:55]MH_I2C_Read... [10:24:55]Read from MH i2c: 01 07 00 [10:24:55]MH_I2C_Read... [10:24:55]Read from MH i2c: 01 07 00 A1 29 00 00 00 00 00 EA 0C C7 [10:24:55]RasterBufferAndPrint [10:24:55]line [10:24:55]line [10:24:55]line [10:24:55]line [10:24:55]line [10:24:55]written 0, free lines is 3312 [10:24:55]MH_Cut [10:24:55]Write to MH i2c: D1 01 00 A8 29 01 A3 [10:24:55]Write i2c OK [10:24:55]MH_I2C_Read... [10:24:55]Read from MH i2c: D1 [10:24:55]MH_I2C_Read... [10:24:55]Read from MH i2c: D1 01 00 [10:24:55]MH_I2C_Read... [10:24:55]Read from MH i2c: D1 01 00 A8 29 00 A2 [10:24:55]Write to MH i2c: 01 00 00 A9 29 D2 [10:24:55]Write i2c OK [10:24:55]MH_I2C_Read... [10:24:55]OFD Sender: No OFD packet to send [10:24:56]*** Cut start [10:24:56]*** Partial cut [10:24:56]*** CUTSNS_PIN = 1 [10:24:56]*** CUTSNS_PIN = 0 [10:24:56]*** Brake cut motor [10:24:56]Read from MH i2c: 01 [10:24:56]MH_I2C_Read... [10:24:56]*** Stop cut motor [10:24:56]*** Cut end [10:24:56]Read from MH i2c: 01 07 00 [10:24:56]MH_I2C_Read... [10:24:56]Read from MH i2c: 01 07 00 A9 29 00 00 00 00 00 FF 0F E7 [10:24:56]process_action close_receipt done [10:24:56]requested_data is exist [10:24:56]produce_requested_data [10:24:56]requested_item fm.sn is exist - process it [10:24:56]wFMCommunicate request_size=4 [10:24:56]MH_SAM_APDU [10:24:56]CAPDU: 80 11 00 00 [10:24:56]Write to MH i2c: E2 08 00 AA 29 80 11 00 00 00 00 00 00 4D [10:24:56]Write i2c OK [10:24:56]MH_I2C_Read... [10:24:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:56]Read from MH i2c: E2 [10:24:56]MH_I2C_Read... [10:24:56]Read from MH i2c: E2 17 00 [10:24:56]MH_I2C_Read... [10:24:56]Read from MH i2c: E2 17 00 AA 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 98 [10:24:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [10:24:56]wFMCommunicate OK [10:24:56]requested_item fd.num is exist - process it [10:24:56]SAM_PROTO_GetFieldsCounters [10:24:56]wFMCommunicate request_size=4 [10:24:56]MH_SAM_APDU [10:24:56]CAPDU: 80 13 00 00 [10:24:56]Write to MH i2c: E2 08 00 AB 29 80 13 00 00 00 00 00 00 50 [10:24:56]Write i2c OK [10:24:56]MH_I2C_Read... [10:24:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:24:56]Read from MH i2c: E2 [10:24:56]MH_I2C_Read... [10:24:56]Read from MH i2c: E2 62 00 [10:24:56]MH_I2C_Read... [10:24:56]Read from MH i2c: E2 62 00 AB 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 CD 0A 01 00 0E 04 04 00 44 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 1A [10:24:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 CD 0A 01 00 0E 04 04 00 44 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 [10:24:56]wFMCommunicate OK [10:24:56]SAM_PROTO_GetFieldsCounters done [10:24:56]requested_item shift.num is exist - process it [10:24:56]requested_item shift.opened is exist - process it [10:24:56]req_shift_opened [10:24:56]FM_GetShiftState [10:24:56]SAM_PROTO_GetShiftState [10:24:56]wFMCommunicate request_size=4 [10:24:56]MH_SAM_APDU [10:24:56]CAPDU: 80 13 01 00 [10:24:56]Write to MH i2c: E2 08 00 AC 29 80 13 01 00 00 00 00 00 52 [10:24:56]Write i2c OK [10:24:56]MH_I2C_Read... [10:24:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:56]Read from MH i2c: E2 [10:24:56]MH_I2C_Read... [10:24:56]Read from MH i2c: E2 0E 00 [10:24:56]MH_I2C_Read... [10:24:56]Read from MH i2c: E2 0E 00 AC 29 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 2D [10:24:56]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [10:24:56]wFMCommunicate OK [10:24:56]SAM_PROTO_GetShiftState done [10:24:56]FM_GetShiftState done [10:24:56]req_shift_opened done [10:24:56]requested_item shift.open_date is exist - process it [10:24:56]req_shift_open_date [10:24:56]req_shift_open_date done [10:24:56]produce_requested_data done [10:24:56]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68301,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [10:24:56]process_action_free close_receipt [10:24:56]json_value_free [10:24:56]json_value_free done [10:24:56]process_json_proto returns [10:24:56]Send response to host [10:24:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68301,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [10:24:56]free response buf [10:24:56]execute_script done [10:24:56]execute_script returns [10:24:56]free content buf [10:24:56]Sock 7.Close socket [10:24:56]Sock 7.Thread stoped [10:25:00]OFD Sender: No OFD packet to send [10:25:05]OFD Sender: No OFD packet to send [10:25:10]OFD Sender: No OFD packet to send [10:25:15]OFD Sender: No OFD packet to send [10:25:20]OFD Sender: No OFD packet to send [10:25:25]OFD Sender: No OFD packet to send [10:25:30]OFD Sender: No OFD packet to send [10:25:35]OFD Sender: No OFD packet to send [10:25:40]OFD Sender: No OFD packet to send [10:25:45]OFD Sender: No OFD packet to send [10:25:50]OFD Sender: No OFD packet to send [10:25:55]OFD Sender: No OFD packet to send [10:26:00]OFD Sender: No OFD packet to send [10:26:05]OFD Sender: No OFD packet to send [10:26:10]OFD Sender: No OFD packet to send [10:26:15]OFD Sender: No OFD packet to send [10:26:20]OFD Sender: No OFD packet to send [10:26:25]OFD Sender: No OFD packet to send [10:26:30]OFD Sender: No OFD packet to send [10:26:35]OFD Sender: No OFD packet to send [10:26:40]OFD Sender: No OFD packet to send [10:26:45]OFD Sender: No OFD packet to send [10:26:50]OFD Sender: No OFD packet to send [10:26:55]OFD Sender: No OFD packet to send [10:27:00]OFD Sender: No OFD packet to send [10:27:05]OFD Sender: No OFD packet to send [10:27:10]OFD Sender: No OFD packet to send [10:27:15]OFD Sender: No OFD packet to send [10:27:20]OFD Sender: No OFD packet to send [10:27:25]OFD Sender: No OFD packet to send [10:27:30]OFD Sender: No OFD packet to send [10:27:35]OFD Sender: No OFD packet to send [10:27:40]OFD Sender: No OFD packet to send [10:27:45]OFD Sender: No OFD packet to send [10:27:50]OFD Sender: No OFD packet to send [10:27:55]OFD Sender: No OFD packet to send [10:28:00]OFD Sender: No OFD packet to send [10:28:05]OFD Sender: No OFD packet to send [10:28:10]OFD Sender: No OFD packet to send [10:28:15]OFD Sender: No OFD packet to send [10:28:20]OFD Sender: No OFD packet to send [10:28:25]OFD Sender: No OFD packet to send [10:28:30]OFD Sender: No OFD packet to send [10:28:35]OFD Sender: No OFD packet to send [10:28:40]OFD Sender: No OFD packet to send [10:28:45]OFD Sender: No OFD packet to send [10:28:50]OFD Sender: No OFD packet to send [10:28:55]OFD Sender: No OFD packet to send [10:29:00]OFD Sender: No OFD packet to send [10:29:05]OFD Sender: No OFD packet to send [10:29:10]OFD Sender: No OFD packet to send [10:29:15]OFD Sender: No OFD packet to send [10:29:20]OFD Sender: No OFD packet to send [10:29:25]OFD Sender: No OFD packet to send [10:29:30]OFD Sender: No OFD packet to send [10:29:35]OFD Sender: No OFD packet to send [10:29:40]OFD Sender: No OFD packet to send [10:29:45]OFD Sender: No OFD packet to send [10:29:50]OFD Sender: No OFD packet to send [10:29:55]OFD Sender: No OFD packet to send [10:30:00]OFD Sender: No OFD packet to send [10:30:05]OFD Sender: No OFD packet to send [10:30:10]OFD Sender: No OFD packet to send [10:30:15]OFD Sender: No OFD packet to send [10:30:20]OFD Sender: No OFD packet to send [10:30:25]OFD Sender: No OFD packet to send [10:30:30]OFD Sender: No OFD packet to send [10:30:35]OFD Sender: No OFD packet to send [10:30:40]accept exits with 9 [10:30:40]New connection [10:30:40]New thread 3066686820 created [10:30:40]Thread 3066543460 joined [10:30:40]Waiting for new connection... [10:30:40] Sock 9.Parse request [10:30:40]Sock 9.Check first char [10:30:40]Sock 9.First char is OK [10:30:40]request: POST /json_proto HTTP/1.0 [10:30:40]Method: POST [10:30:40]URL: /json_proto [10:30:40]Method is POST - this is cgi request [10:30:40]url: /json_proto [10:30:40]query_string will be loaded in cgi processing [10:30:40]execute_cgi json_proto POST (null) [10:30:40]execute_cgi path=json_proto method=POST [10:30:40]POST find Content-Length [10:30:40]Host: 172.17.36.132:8080 [10:30:40]Content-Length: 833 [10:30:40]Content-Type: application/json [10:30:40] [10:30:40]POST finish read [10:30:40]Found Content-Length = 833 [10:30:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706374", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 7.370, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:30:40]execute_script... [10:30: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)706374", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 7.370, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:30:40]POST & json_proto [10:30:40]process_json_proto [10:30:40]json parsed OK: [10:30:40]protocol is kg_v1.0 [10:30:40]action value=close_receipt [10:30:40]process_action close_receipt [10:30:40]cmd_close_receipt [10:30:40]MH_GetDate [10:30:40]Write to MH i2c: F0 00 00 AD 29 C5 [10:30:40]Write i2c OK [10:30:40]MH_I2C_Read... [10:30:40]Read from MH i2c: F0 [10:30:40]MH_I2C_Read... [10:30:40]Read from MH i2c: F0 09 00 [10:30:40]MH_I2C_Read... [10:30:40]Read from MH i2c: F0 09 00 AD 29 00 54 9B 5D 66 B2 22 B0 64 68 [10:30:40]GetLastDocTimeStamp 1717410297 [10:30:40]current date 1717410644 [10:30:40]FM_GetShiftState [10:30:40]SAM_PROTO_GetShiftState [10:30:40]wFMCommunicate request_size=4 [10:30:40]MH_SAM_APDU [10:30:40]CAPDU: 80 13 01 00 [10:30:40]Write to MH i2c: E2 08 00 AE 29 80 13 01 00 00 00 00 00 54 [10:30:40]Write i2c OK [10:30:40]MH_I2C_Read... [10:30:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:40]Read from MH i2c: E2 [10:30:40]MH_I2C_Read... [10:30:40]Read from MH i2c: E2 0E 00 [10:30:40]MH_I2C_Read... [10:30:40]Read from MH i2c: E2 0E 00 AE 29 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 2F [10:30:40]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [10:30:40]wFMCommunicate OK [10:30:40]SAM_PROTO_GetShiftState done [10:30:40]FM_GetShiftState done [10:30:40]opened in 1717378033 [10:30:40]opened+sec_in_day 1717464433 [10:30:40]quantity*price = 50042 [10:30:40]sum+1 = 50043 [10:30:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.42 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.42 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 48 03.06.2024 10:30 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68302 ФПД: 206450346399018 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T103044&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68302&fm=206450346399018&tin=02508201610067®Number=0000000000098096&sum=50042 [10:30:41]StoreToDocumentArchive [10:30:41]shift 324 fd 68302 [10:30:41]save to /storage/0324/doc_00068302 [10:30:41]save last doc name /storage/0324/doc_00068302 to /storage/kkm_last_doc_name [10:30:41]save OK [10:30:41]Clear old archive folders... [10:30:41]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:30:41]tlvbuf is 001CC7D0 [10:30:41]SAM_PROTO_ClearQueue [10:30:41]wFMCommunicate request_size=4 [10:30:41]MH_SAM_APDU [10:30:41]CAPDU: 80 09 00 00 [10:30:41]Write to MH i2c: E2 08 00 BB 29 80 09 00 00 00 00 00 00 56 [10:30:41]Write i2c OK [10:30:41]MH_I2C_Read... [10:30:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:30:41]Read from MH i2c: E2 [10:30:41]MH_I2C_Read... [10:30:41]Read from MH i2c: E2 03 00 [10:30:41]MH_I2C_Read... [10:30:41]Read from MH i2c: E2 03 00 BB 29 00 90 00 58 [10:30:41]RAPDU: 90 00 [10:30:41]wFMCommunicate OK [10:30:41]SAM_PROTO_ClearQueue done [10:30:41]KKMCreateOFDPacket [10:30:41]OFDProtocolAddRootSTLVToBuf [10:30:41]FM_MakeSignedData [10:30:41]FM_MakeSignedData [10:30:41]SAM_PROTO_SignData [10:30:41]wFMCommunicate request_size=4 [10:30:41]MH_SAM_APDU [10:30:41]CAPDU: 80 0D 01 02 [10:30:41]Write to MH i2c: E2 08 00 BC 29 80 0D 01 02 00 00 00 00 5E [10:30:41]Write i2c OK [10:30:41]MH_I2C_Read... [10:30:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:30:41]Read from MH i2c: E2 [10:30:41]MH_I2C_Read... [10:30:41]Read from MH i2c: E2 03 00 [10:30:41]MH_I2C_Read... [10:30:41]Read from MH i2c: E2 03 00 BC 29 00 90 00 59 [10:30:41]RAPDU: 90 00 [10:30:41]wFMCommunicate OK [10:30:41]wFMCommunicate request_size=255 [10:30:41]MH_SAM_APDU [10:30:41]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 1C 00 00 00 00 00 37 04 06 00 86 1A 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 7A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 54 9B 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 CE 0A 01 00 35 04 06 00 [10:30:41]Write to MH i2c: E2 02 01 BD 29 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 1C 00 00 00 00 00 37 04 06 00 86 1A 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 7A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 54 9B 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 CE 0A 01 00 35 04 06 00 00 00 60 [10:30:41]Write i2c OK [10:30:41]MH_I2C_Read... [10:30:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:41]Read from MH i2c: E2 [10:30:41]MH_I2C_Read... [10:30:41]Read from MH i2c: E2 03 00 [10:30:41]MH_I2C_Read... [10:30:41]Read from MH i2c: E2 03 00 BD 29 00 90 00 5A [10:30:41]RAPDU: 90 00 [10:30:41]wFMCommunicate OK [10:30:41]wFMCommunicate request_size=11 [10:30:41]MH_SAM_APDU [10:30:41]CAPDU: 80 0D 02 02 06 BB C3 F7 8F 95 2A [10:30:41]Write to MH i2c: E2 0E 00 BE 29 80 0D 02 02 06 00 BB C3 F7 8F 95 2A 00 00 30 [10:30:41]Write i2c OK [10:30:41]MH_I2C_Read... [10:30:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:41]Read from MH i2c: E2 [10:30:41]MH_I2C_Read... [10:30:41]Read from MH i2c: E2 03 00 [10:30:41]MH_I2C_Read... [10:30:41]Read from MH i2c: E2 03 00 BE 29 00 90 00 5B [10:30:41]RAPDU: 90 00 [10:30:41]wFMCommunicate OK [10:30:41]wFMCommunicate request_size=4 [10:30:41]MH_SAM_APDU [10:30:41]CAPDU: 80 0D 03 02 [10:30:41]Write to MH i2c: E2 08 00 BF 29 80 0D 03 02 00 00 00 00 63 [10:30:41]Write i2c OK [10:30:41]MH_I2C_Read... [10:30:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:30:41]Read from MH i2c: E2 [10:30:41]MH_I2C_Read... [10:30:41]Read from MH i2c: E2 0B 00 [10:30:41]MH_I2C_Read... [10:30:41]Read from MH i2c: E2 0B 00 BF 29 00 AD 9E 0B 63 8A E5 98 B6 90 00 DA [10:30:41]RAPDU: AD 9E 0B 63 8A E5 98 B6 90 00 [10:30:41]wFMCommunicate OK [10:30:41]SAM_PROTO_SignData done [10:30:41]FM_MakeSignedData done [10:30:41]CreateOFDProtocolMessage [10:30:41]wFMCommunicate request_size=4 [10:30:41]MH_SAM_APDU [10:30:41]CAPDU: 80 11 00 00 [10:30:41]Write to MH i2c: E2 08 00 C0 29 80 11 00 00 00 00 00 00 63 [10:30:41]Write i2c OK [10:30:41]MH_I2C_Read... [10:30:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:41]Read from MH i2c: E2 [10:30:41]MH_I2C_Read... [10:30:41]Read from MH i2c: E2 17 00 [10:30:41]MH_I2C_Read... [10:30:41]Read from MH i2c: E2 17 00 C0 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 AE [10:30:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [10:30:41]wFMCommunicate OK [10:30:41]CreateOFDProtocolMessage done [10:30:41]OFDSenderStorePacket 68302 [10:30:41]StoreOFDPacket docnum=68302 [10:30:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 35 39 08 01 E9 2C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 1C 00 00 00 00 00 37 04 06 00 86 1A 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 7A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 54 9B 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 CE 0A 01 00 35 04 06 00 BB C3 F7 8F 95 2A AD 9E 0B 63 8A E5 98 B6 [10:30:41]CheckFolder [10:30:41]dirname=/storage/ofd_packets [10:30:41]CheckFolder done [10:30:41]ProducePacketName [10:30:41]name=ofd_packets/00068302 [10:30:41]NVStorageSaveData ofd_packets/00068302 [10:30:41]File name is /storage/ofd_packets/00068302 [10:30:41]Write 302 bytes [10:30:41]NVStorageSaveData done [10:30:41]OFDSenderStorePacket done [10:30:41]KKMCreateOFDPacket done [10:30:41]NVStorageSaveData kkm_last_timestamp [10:30:41]File name is /storage/kkm_last_timestamp [10:30:41]Write 4 bytes [10:30:41]NVStorageSaveData done [10:30:41]ExternCall_PrintAddStr [10:30:41]wPrintStart [10:30:41]Write to MH i2c: 01 00 00 C1 29 EA [10:30:41]Write i2c OK [10:30:41]MH_I2C_Read... [10:30:41]Read from MH i2c: 01 [10:30:41]MH_I2C_Read... [10:30:41]Read from MH i2c: 01 07 00 [10:30:41]MH_I2C_Read... [10:30:41]Read from MH i2c: 01 07 00 C1 29 00 00 00 00 00 FF 0F FF [10:30:41]RasterBufferAndPrint [10:30:41]line Счет N : (1)706374 [10:30:41]line ИНН: 02508201610067 [10:30:41]line Контрольно-Кассовый Чек [10:30:41]line ПРОДАЖА [10:30:41]line ТРК (МРК, ГНК) : 22 [10:30:41]line Товар: 2710124130 [10:30:41]line Super-92-К-5 [10:30:41]line 7.370 * 67.90 [10:30:41]line = 500.42 [10:30:41]line НДС 12% НСП 1% [10:30:41]line > о реализуемом товаре [10:30:41]line ИТОГО: 500.42 [10:30:41]line НСП 1% : 4.43 [10:30:41]line НДС 12% : 53.14 [10:30:41]line Наличными: 0.00 [10:30:41]line Безнал.: 500.42 [10:30:41]line Место: АЗС № 62 "Партнер Нефть" [10:30:41]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [10:30:41]line СНО: Общий режим [10:30:41]line Чек 48 03.06.2024 10:30 [10:30:41]line Смена: 324 ФФД: 1.0 [10:30:41]line ЗНМ: 0300000181 [10:30:41]line РНМ: 0000000000098096 [10:30:41]line Версия ККМ: 001 [10:30:41]line Платежная система: АКБ Кыргызстан [10:30:41]line ФМ: 0000000000965400 [10:30:41]line ФД: 68302 [10:30:41]line ФПД: 206450346399018 [10:30:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T103044&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68302&fm=206450346399018&tin=02508201610067®Number=0000000000098096&sum=50042 [10:30:42]OFD Sender: Processing packet 68302 [packets to send 26, broken 25] [10:30:42]ProducePacketName [10:30:42]name=ofd_packets/00068302 [10:30:42]OFD Sender: To server: pG, [10:30:42]CommunicateWithHost lk.salyk.kg:30040 [10:30:42]ConnectInit lk.salyk.kg [10:30:42]written 0, free lines is 4095 [10:30:42]Connected sock=10 [10:30:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 35 39 08 01 E9 2C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 1C 00 00 00 00 00 37 04 06 00 86 1A 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 7A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 54 9B 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 CE 0A 01 00 35 04 06 00 BB C3 F7 8F 95 2A AD 9E 0B 63 8A E5 98 B6 [10:30:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 21 86 47 00 CB 88 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 CE 0A 01 00 F4 03 04 00 51 42 5D 66 B6 04 01 00 00 D0 7B 9C 56 BC A9 0B C8 [10:30:42]CommunicateWithHost err = 0 [10:30:42]CheckOFDResponse [10:30:42]1017 (14) - 77093643461234 [10:30:42]1041 (16) - 0000000000965400 [10:30:42]1040 (4) - 68302 [10:30:42]1012 (4) - 03.06.2024 04:10 [10:30:42]1206 (1) - 0 [10:30:42]OFD Sender: Remove packet 68302 [10:30:42]ProducePacketName [10:30:42]name=ofd_packets/00068302 [10:30:42]NVStorageDeleteData [10:30:42]Write to MH i2c: 01 00 00 EB 29 14 [10:30:42]Write i2c OK [10:30:42]MH_I2C_Read... [10:30:42]Read from MH i2c: 01 [10:30:42]MH_I2C_Read... [10:30:42]Read from MH i2c: 01 07 00 [10:30:42]MH_I2C_Read... [10:30:42]Read from MH i2c: 01 07 00 EB 29 00 00 00 00 00 E3 0C 0A [10:30:42]RasterBufferAndPrint [10:30:42]line [10:30:42]line [10:30:42]line [10:30:42]line [10:30:42]line [10:30:42]written 0, free lines is 3306 [10:30:42]MH_Cut [10:30:42]Write to MH i2c: D1 01 00 F2 29 01 ED [10:30:42]Write i2c OK [10:30:42]MH_I2C_Read... [10:30:42]Read from MH i2c: D1 [10:30:42]MH_I2C_Read... [10:30:42]Read from MH i2c: D1 01 00 [10:30:42]MH_I2C_Read... [10:30:42]Read from MH i2c: D1 01 00 F2 29 00 EC [10:30:42]Write to MH i2c: 01 00 00 F3 29 1C [10:30:42]Write i2c OK [10:30:42]MH_I2C_Read... [10:30:42]OFD Sender: No OFD packet to send [10:30:43]*** Cut start [10:30:43]*** Partial cut [10:30:43]*** CUTSNS_PIN = 1 [10:30:43]*** CUTSNS_PIN = 0 [10:30:43]*** Brake cut motor [10:30:43]Read from MH i2c: 01 [10:30:43]MH_I2C_Read... [10:30:43]*** Stop cut motor [10:30:43]*** Cut end [10:30:43]Read from MH i2c: 01 07 00 [10:30:43]MH_I2C_Read... [10:30:43]Read from MH i2c: 01 07 00 F3 29 00 00 00 00 00 FF 0F 31 [10:30:43]process_action close_receipt done [10:30:43]requested_data is exist [10:30:43]produce_requested_data [10:30:43]requested_item fm.sn is exist - process it [10:30:43]wFMCommunicate request_size=4 [10:30:43]MH_SAM_APDU [10:30:43]CAPDU: 80 11 00 00 [10:30:43]Write to MH i2c: E2 08 00 F4 29 80 11 00 00 00 00 00 00 97 [10:30:43]Write i2c OK [10:30:43]MH_I2C_Read... [10:30:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:44]Read from MH i2c: E2 [10:30:44]MH_I2C_Read... [10:30:44]Read from MH i2c: E2 17 00 [10:30:44]MH_I2C_Read... [10:30:44]Read from MH i2c: E2 17 00 F4 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 E2 [10:30:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [10:30:44]wFMCommunicate OK [10:30:44]requested_item fd.num is exist - process it [10:30:44]SAM_PROTO_GetFieldsCounters [10:30:44]wFMCommunicate request_size=4 [10:30:44]MH_SAM_APDU [10:30:44]CAPDU: 80 13 00 00 [10:30:44]Write to MH i2c: E2 08 00 F5 29 80 13 00 00 00 00 00 00 9A [10:30:44]Write i2c OK [10:30:44]MH_I2C_Read... [10:30:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:30:44]Read from MH i2c: E2 [10:30:44]MH_I2C_Read... [10:30:44]Read from MH i2c: E2 62 00 [10:30:44]MH_I2C_Read... [10:30:44]Read from MH i2c: E2 62 00 F5 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 CE 0A 01 00 0E 04 04 00 44 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 68 [10:30:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 CE 0A 01 00 0E 04 04 00 44 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 [10:30:44]wFMCommunicate OK [10:30:44]SAM_PROTO_GetFieldsCounters done [10:30:44]requested_item shift.num is exist - process it [10:30:44]requested_item shift.opened is exist - process it [10:30:44]req_shift_opened [10:30:44]FM_GetShiftState [10:30:44]SAM_PROTO_GetShiftState [10:30:44]wFMCommunicate request_size=4 [10:30:44]MH_SAM_APDU [10:30:44]CAPDU: 80 13 01 00 [10:30:44]Write to MH i2c: E2 08 00 F6 29 80 13 01 00 00 00 00 00 9C [10:30:44]Write i2c OK [10:30:44]MH_I2C_Read... [10:30:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:44]Read from MH i2c: E2 [10:30:44]MH_I2C_Read... [10:30:44]Read from MH i2c: E2 0E 00 [10:30:44]MH_I2C_Read... [10:30:44]Read from MH i2c: E2 0E 00 F6 29 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 77 [10:30:44]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [10:30:44]wFMCommunicate OK [10:30:44]SAM_PROTO_GetShiftState done [10:30:44]FM_GetShiftState done [10:30:44]req_shift_opened done [10:30:44]requested_item shift.open_date is exist - process it [10:30:44]req_shift_open_date [10:30:44]req_shift_open_date done [10:30:44]produce_requested_data done [10:30:44]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68302,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [10:30:44]process_action_free close_receipt [10:30:44]json_value_free [10:30:44]json_value_free done [10:30:44]process_json_proto returns [10:30:44]Send response to host [10:30:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68302,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [10:30:44]free response buf [10:30:44]execute_script done [10:30:44]execute_script returns [10:30:44]free content buf [10:30:44]Sock 9.Close socket [10:30:44]Sock 9.Thread stoped [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]accept exits with 7 [10:31:22]New connection [10:31:22]New thread 3066543460 created [10:31:22]Thread 3066686820 joined [10:31:22]Waiting for new connection... [10:31:22] Sock 7.Parse request [10:31:22]Sock 7.Check first char [10:31:22]Sock 7.First char is OK [10:31:22]request: POST /json_proto HTTP/1.0 [10:31:22]Method: POST [10:31:22]URL: /json_proto [10:31:22]Method is POST - this is cgi request [10:31:22]url: /json_proto [10:31:22]query_string will be loaded in cgi processing [10:31:22]execute_cgi json_proto POST (null) [10:31:22]execute_cgi path=json_proto method=POST [10:31:22]POST find Content-Length [10:31:22]Host: 172.17.36.132:8080 [10:31:22]Content-Length: 677 [10:31:22]Content-Type: application/json [10:31:22] [10:31:22]POST finish read [10:31:22]Found Content-Length = 677 [10:31:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706375", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:22]execute_script... [10:31:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706375", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:22]POST & json_proto [10:31:22]process_json_proto [10:31:22]json parsed OK: [10:31:22]protocol is kg_v1.0 [10:31:22]action value=close_receipt [10:31:22]process_action close_receipt [10:31:22]cmd_close_receipt [10:31:22]MH_GetDate [10:31:22]Write to MH i2c: F0 00 00 F7 29 0F [10:31:22]Write i2c OK [10:31:22]MH_I2C_Read... [10:31:22]Read from MH i2c: F0 [10:31:22]MH_I2C_Read... [10:31:22]Read from MH i2c: F0 09 00 [10:31:22]MH_I2C_Read... [10:31:22]Read from MH i2c: F0 09 00 F7 29 00 7F 9B 5D 66 B2 22 B0 64 DD [10:31:22]GetLastDocTimeStamp 1717410644 [10:31:22]current date 1717410687 [10:31:22]FM_GetShiftState [10:31:22]SAM_PROTO_GetShiftState [10:31:22]wFMCommunicate request_size=4 [10:31:22]MH_SAM_APDU [10:31:22]CAPDU: 80 13 01 00 [10:31:22]Write to MH i2c: E2 08 00 F8 29 80 13 01 00 00 00 00 00 9E [10:31:22]Write i2c OK [10:31:22]MH_I2C_Read... [10:31:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:22]Read from MH i2c: E2 [10:31:22]MH_I2C_Read... [10:31:22]Read from MH i2c: E2 0E 00 [10:31:22]MH_I2C_Read... [10:31:22]Read from MH i2c: E2 0E 00 F8 29 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 79 [10:31:22]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [10:31:22]wFMCommunicate OK [10:31:22]SAM_PROTO_GetShiftState done [10:31:22]FM_GetShiftState done [10:31:22]opened in 1717378033 [10:31:22]opened+sec_in_day 1717464433 [10:31:22]quantity*price = 50041 [10:31:22]sum+1 = 50042 [10:31:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 49 03.06.2024 10:31 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68303 ФПД: 114549205909581 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T103127&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68303&fm=114549205909581&tin=02508201610067®Number=0000000000098096&sum=50000 [10:31:23]StoreToDocumentArchive [10:31:23]shift 324 fd 68303 [10:31:23]save to /storage/0324/doc_00068303 [10:31:23]save last doc name /storage/0324/doc_00068303 to /storage/kkm_last_doc_name [10:31:23]save OK [10:31:23]Clear old archive folders... [10:31:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:31:23]tlvbuf is 004641D0 [10:31:23]SAM_PROTO_ClearQueue [10:31:23]wFMCommunicate request_size=4 [10:31:23]MH_SAM_APDU [10:31:23]CAPDU: 80 09 00 00 [10:31:23]Write to MH i2c: E2 08 00 05 2A 80 09 00 00 00 00 00 00 A1 [10:31:23]Write i2c OK [10:31:23]MH_I2C_Read... [10:31:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:31:23]Read from MH i2c: E2 [10:31:23]MH_I2C_Read... [10:31:23]Read from MH i2c: E2 03 00 [10:31:23]MH_I2C_Read... [10:31:23]Read from MH i2c: E2 03 00 05 2A 00 90 00 A3 [10:31:23]RAPDU: 90 00 [10:31:23]wFMCommunicate OK [10:31:23]SAM_PROTO_ClearQueue done [10:31:23]KKMCreateOFDPacket [10:31:23]OFDProtocolAddRootSTLVToBuf [10:31:23]FM_MakeSignedData [10:31:23]FM_MakeSignedData [10:31:23]SAM_PROTO_SignData [10:31:23]wFMCommunicate request_size=4 [10:31:23]MH_SAM_APDU [10:31:23]CAPDU: 80 0D 01 02 [10:31:23]Write to MH i2c: E2 08 00 06 2A 80 0D 01 02 00 00 00 00 A9 [10:31:23]Write i2c OK [10:31:23]MH_I2C_Read... [10:31:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:31:23]Read from MH i2c: E2 [10:31:23]MH_I2C_Read... [10:31:23]Read from MH i2c: E2 03 00 [10:31:23]MH_I2C_Read... [10:31:23]Read from MH i2c: E2 03 00 06 2A 00 90 00 A4 [10:31:23]RAPDU: 90 00 [10:31:23]wFMCommunicate OK [10:31:23]wFMCommunicate request_size=255 [10:31:23]MH_SAM_APDU [10:31:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 7F 9B 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 CF 0A 01 00 35 04 06 00 68 [10:31:23]Write to MH i2c: E2 02 01 07 2A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 7F 9B 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 CF 0A 01 00 35 04 06 00 68 00 00 CB [10:31:23]Write i2c OK [10:31:23]MH_I2C_Read... [10:31:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:24]Read from MH i2c: E2 [10:31:24]MH_I2C_Read... [10:31:24]Read from MH i2c: E2 03 00 [10:31:24]MH_I2C_Read... [10:31:24]Read from MH i2c: E2 03 00 07 2A 00 90 00 A5 [10:31:24]RAPDU: 90 00 [10:31:24]wFMCommunicate OK [10:31:24]wFMCommunicate request_size=10 [10:31:24]MH_SAM_APDU [10:31:24]CAPDU: 80 0D 02 02 05 2E 90 BA 40 4D [10:31:24]Write to MH i2c: E2 0D 00 08 2A 80 0D 02 02 05 00 2E 90 BA 40 4D 00 00 BB [10:31:24]Write i2c OK [10:31:24]MH_I2C_Read... [10:31:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:24]Read from MH i2c: E2 [10:31:24]MH_I2C_Read... [10:31:24]Read from MH i2c: E2 03 00 [10:31:24]MH_I2C_Read... [10:31:24]Read from MH i2c: E2 03 00 08 2A 00 90 00 A6 [10:31:24]RAPDU: 90 00 [10:31:24]wFMCommunicate OK [10:31:24]wFMCommunicate request_size=4 [10:31:24]MH_SAM_APDU [10:31:24]CAPDU: 80 0D 03 02 [10:31:24]Write to MH i2c: E2 08 00 09 2A 80 0D 03 02 00 00 00 00 AE [10:31:24]Write i2c OK [10:31:24]MH_I2C_Read... [10:31:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:31:24]Read from MH i2c: E2 [10:31:24]MH_I2C_Read... [10:31:24]Read from MH i2c: E2 0B 00 [10:31:24]MH_I2C_Read... [10:31:24]Read from MH i2c: E2 0B 00 09 2A 00 BC B6 4A 59 18 B1 05 D7 90 00 69 [10:31:24]RAPDU: BC B6 4A 59 18 B1 05 D7 90 00 [10:31:24]wFMCommunicate OK [10:31:24]SAM_PROTO_SignData done [10:31:24]FM_MakeSignedData done [10:31:24]CreateOFDProtocolMessage [10:31:24]wFMCommunicate request_size=4 [10:31:24]MH_SAM_APDU [10:31:24]CAPDU: 80 11 00 00 [10:31:24]Write to MH i2c: E2 08 00 0A 2A 80 11 00 00 00 00 00 00 AE [10:31:24]Write i2c OK [10:31:24]MH_I2C_Read... [10:31:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:24]Read from MH i2c: E2 [10:31:24]MH_I2C_Read... [10:31:24]Read from MH i2c: E2 17 00 [10:31:24]MH_I2C_Read... [10:31:24]Read from MH i2c: E2 17 00 0A 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 F9 [10:31:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [10:31:24]wFMCommunicate OK [10:31:24]CreateOFDProtocolMessage done [10:31:24]OFDSenderStorePacket 68303 [10:31:24]StoreOFDPacket docnum=68303 [10:31:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 87 EA 07 01 A5 EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 7F 9B 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 CF 0A 01 00 35 04 06 00 68 2E 90 BA 40 4D BC B6 4A 59 18 B1 05 D7 [10:31:24]CheckFolder [10:31:24]dirname=/storage/ofd_packets [10:31:24]CheckFolder done [10:31:24]ProducePacketName [10:31:24]name=ofd_packets/00068303 [10:31:24]NVStorageSaveData ofd_packets/00068303 [10:31:24]File name is /storage/ofd_packets/00068303 [10:31:24]Write 301 bytes [10:31:24]NVStorageSaveData done [10:31:24]OFDSenderStorePacket done [10:31:24]KKMCreateOFDPacket done [10:31:24]NVStorageSaveData kkm_last_timestamp [10:31:24]File name is /storage/kkm_last_timestamp [10:31:24]Write 4 bytes [10:31:24]NVStorageSaveData done [10:31:24]ExternCall_PrintAddStr [10:31:24]wPrintStart [10:31:24]Write to MH i2c: 01 00 00 0B 2A 35 [10:31:24]Write i2c OK [10:31:24]MH_I2C_Read... [10:31:24]Read from MH i2c: 01 [10:31:24]MH_I2C_Read... [10:31:24]Read from MH i2c: 01 07 00 [10:31:24]MH_I2C_Read... [10:31:24]Read from MH i2c: 01 07 00 0B 2A 00 00 00 00 00 FF 0F 4A [10:31:24]RasterBufferAndPrint [10:31:24]line Счет N : (1)706375 [10:31:24]line ИНН: 02508201610067 [10:31:24]line Контрольно-Кассовый Чек [10:31:24]line ПРОДАЖА [10:31:24]line ТРК (МРК, ГНК) : 32 [10:31:24]line Товар: 2710124130 [10:31:24]line Аи-92-К-4 [10:31:24]line 7.480 * 66.90 [10:31:24]line = 500.41 [10:31:24]line НДС 12% НСП 1% [10:31:24]line > о реализуемом товаре [10:31:24]line ОКРУГЛЕНИЕ: -0.41 [10:31:24]line ИТОГО: 500.00 [10:31:24]line Внесено: 500.00 [10:31:24]line СДАЧА: 0.00 [10:31:24]line НСП 1% : 4.43 [10:31:24]line НДС 12% : 53.14 [10:31:24]line Наличными: 500.00 [10:31:24]line Безнал.: 0.00 [10:31:24]line Место: АЗС № 62 "Партнер Нефть" [10:31:24]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [10:31:24]line СНО: Общий режим [10:31:24]line Чек 49 03.06.2024 10:31 [10:31:24]line Смена: 324 ФФД: 1.0 [10:31:24]line ЗНМ: 0300000181 [10:31:24]line РНМ: 0000000000098096 [10:31:24]line Версия ККМ: 001 [10:31:24]line ФМ: 0000000000965400 [10:31:24]line ФД: 68303 [10:31:24]line ФПД: 114549205909581 [10:31:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T103127&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68303&fm=114549205909581&tin=02508201610067®Number=0000000000098096&sum=50000 [10:31:24]OFD Sender: Processing packet 68303 [packets to send 26, broken 25] [10:31:24]ProducePacketName [10:31:24]name=ofd_packets/00068303 [10:31:24]OFD Sender: To server: pG, [10:31:24]CommunicateWithHost lk.salyk.kg:30040 [10:31:24]ConnectInit lk.salyk.kg [10:31:24]written 0, free lines is 4095 [10:31:24]Connected sock=10 [10:31:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 87 EA 07 01 A5 EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 7F 9B 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 CF 0A 01 00 35 04 06 00 68 2E 90 BA 40 4D BC B6 4A 59 18 B1 05 D7 [10:31:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 7C 0F 47 00 BB A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 CF 0A 01 00 F4 03 04 00 7B 42 5D 66 B6 04 01 00 00 00 6C A2 57 28 D1 0F DC [10:31:24]CommunicateWithHost err = 0 [10:31:24]CheckOFDResponse [10:31:24]1017 (14) - 77093643461234 [10:31:24]1041 (16) - 0000000000965400 [10:31:24]1040 (4) - 68303 [10:31:24]1012 (4) - 03.06.2024 04:11 [10:31:24]1206 (1) - 0 [10:31:24]OFD Sender: Remove packet 68303 [10:31:24]ProducePacketName [10:31:24]name=ofd_packets/00068303 [10:31:24]NVStorageDeleteData [10:31:24]Write to MH i2c: 01 00 00 36 2A 60 [10:31:24]Write i2c OK [10:31:24]MH_I2C_Read... [10:31:24]Read from MH i2c: 01 [10:31:24]MH_I2C_Read... [10:31:24]Read from MH i2c: 01 07 00 [10:31:24]MH_I2C_Read... [10:31:24]Read from MH i2c: 01 07 00 36 2A 00 00 00 00 00 D8 0C 4B [10:31:24]RasterBufferAndPrint [10:31:24]line [10:31:24]line [10:31:24]line [10:31:24]line [10:31:24]line [10:31:24]written 0, free lines is 3295 [10:31:25]MH_Cut [10:31:25]Write to MH i2c: D1 01 00 3D 2A 01 39 [10:31:25]Write i2c OK [10:31:25]MH_I2C_Read... [10:31:25]Read from MH i2c: D1 [10:31:25]MH_I2C_Read... [10:31:25]Read from MH i2c: D1 01 00 [10:31:25]MH_I2C_Read... [10:31:25]Read from MH i2c: D1 01 00 3D 2A 00 38 [10:31:25]Write to MH i2c: 01 00 00 3E 2A 68 [10:31:25]Write i2c OK [10:31:25]MH_I2C_Read... [10:31:25]OFD Sender: No OFD packet to send [10:31:25]*** Cut start [10:31:25]*** Partial cut [10:31:25]*** CUTSNS_PIN = 1 [10:31:25]*** CUTSNS_PIN = 0 [10:31:26]*** Brake cut motor [10:31:26]Read from MH i2c: 01 [10:31:26]MH_I2C_Read... [10:31:26]*** Stop cut motor [10:31:26]*** Cut end [10:31:26]Read from MH i2c: 01 07 00 [10:31:26]MH_I2C_Read... [10:31:26]Read from MH i2c: 01 07 00 3E 2A 00 00 00 00 00 FF 0F 7D [10:31:26]process_action close_receipt done [10:31:26]requested_data is exist [10:31:26]produce_requested_data [10:31:26]requested_item fm.sn is exist - process it [10:31:26]wFMCommunicate request_size=4 [10:31:26]MH_SAM_APDU [10:31:26]CAPDU: 80 11 00 00 [10:31:26]Write to MH i2c: E2 08 00 3F 2A 80 11 00 00 00 00 00 00 E3 [10:31:26]Write i2c OK [10:31:26]MH_I2C_Read... [10:31:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:26]Read from MH i2c: E2 [10:31:26]MH_I2C_Read... [10:31:26]Read from MH i2c: E2 17 00 [10:31:26]MH_I2C_Read... [10:31:26]Read from MH i2c: E2 17 00 3F 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 2E [10:31:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [10:31:26]wFMCommunicate OK [10:31:26]requested_item fd.num is exist - process it [10:31:26]SAM_PROTO_GetFieldsCounters [10:31:26]wFMCommunicate request_size=4 [10:31:26]MH_SAM_APDU [10:31:26]CAPDU: 80 13 00 00 [10:31:26]Write to MH i2c: E2 08 00 40 2A 80 13 00 00 00 00 00 00 E6 [10:31:26]Write i2c OK [10:31:26]MH_I2C_Read... [10:31:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:31:26]Read from MH i2c: E2 [10:31:26]MH_I2C_Read... [10:31:26]Read from MH i2c: E2 62 00 [10:31:26]MH_I2C_Read... [10:31:26]Read from MH i2c: E2 62 00 40 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 CF 0A 01 00 0E 04 04 00 44 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 B8 [10:31:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 CF 0A 01 00 0E 04 04 00 44 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 [10:31:26]wFMCommunicate OK [10:31:26]SAM_PROTO_GetFieldsCounters done [10:31:26]requested_item shift.num is exist - process it [10:31:26]requested_item shift.opened is exist - process it [10:31:26]req_shift_opened [10:31:26]FM_GetShiftState [10:31:26]SAM_PROTO_GetShiftState [10:31:26]wFMCommunicate request_size=4 [10:31:26]MH_SAM_APDU [10:31:26]CAPDU: 80 13 01 00 [10:31:26]Write to MH i2c: E2 08 00 41 2A 80 13 01 00 00 00 00 00 E8 [10:31:26]Write i2c OK [10:31:26]MH_I2C_Read... [10:31:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:26]Read from MH i2c: E2 [10:31:26]MH_I2C_Read... [10:31:26]Read from MH i2c: E2 0E 00 [10:31:26]MH_I2C_Read... [10:31:26]Read from MH i2c: E2 0E 00 41 2A 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 C3 [10:31:26]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [10:31:26]wFMCommunicate OK [10:31:26]SAM_PROTO_GetShiftState done [10:31:26]FM_GetShiftState done [10:31:26]req_shift_opened done [10:31:26]requested_item shift.open_date is exist - process it [10:31:26]req_shift_open_date [10:31:26]req_shift_open_date done [10:31:26]produce_requested_data done [10:31:26]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68303,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [10:31:26]process_action_free close_receipt [10:31:26]json_value_free [10:31:26]json_value_free done [10:31:26]process_json_proto returns [10:31:26]Send response to host [10:31:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68303,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [10:31:26]free response buf [10:31:26]execute_script done [10:31:26]execute_script returns [10:31:26]free content buf [10:31:26]Sock 7.Close socket [10:31:26]Sock 7.Thread stoped [10:31:30]OFD Sender: No OFD packet to send [10:31:35]OFD Sender: No OFD packet to send [10:31:40]OFD Sender: No OFD packet to send [10:31:45]OFD Sender: No OFD packet to send [10:31:50]OFD Sender: No OFD packet to send [10:31:55]OFD Sender: No OFD packet to send [10:32:00]OFD Sender: No OFD packet to send [10:32:05]OFD Sender: No OFD packet to send [10:32:10]OFD Sender: No OFD packet to send [10:32:15]OFD Sender: No OFD packet to send [10:32:20]OFD Sender: No OFD packet to send [10:32:25]OFD Sender: No OFD packet to send [10:32:30]OFD Sender: No OFD packet to send [10:32:35]OFD Sender: No OFD packet to send [10:32:40]OFD Sender: No OFD packet to send [10:32:45]OFD Sender: No OFD packet to send [10:32:50]OFD Sender: No OFD packet to send [10:32:55]OFD Sender: No OFD packet to send [10:33:00]OFD Sender: No OFD packet to send [10:33:05]OFD Sender: No OFD packet to send [10:33:10]OFD Sender: No OFD packet to send [10:33:15]OFD Sender: No OFD packet to send [10:33:20]OFD Sender: No OFD packet to send [10:33:25]OFD Sender: No OFD packet to send [10:33:30]OFD Sender: No OFD packet to send [10:33:35]OFD Sender: No OFD packet to send [10:33:40]OFD Sender: No OFD packet to send [10:33:45]OFD Sender: No OFD packet to send [10:33:50]OFD Sender: No OFD packet to send [10:33:55]OFD Sender: No OFD packet to send [10:34:00]OFD Sender: No OFD packet to send [10:34:03]accept exits with 9 [10:34:03]New connection [10:34:03]New thread 3066686820 created [10:34:03]Thread 3066543460 joined [10:34:03]Waiting for new connection... [10:34:03] Sock 9.Parse request [10:34:03]Sock 9.Check first char [10:34:03]Sock 9.First char is OK [10:34:03]request: POST /json_proto HTTP/1.0 [10:34:03]Method: POST [10:34:03]URL: /json_proto [10:34:03]Method is POST - this is cgi request [10:34:03]url: /json_proto [10:34:03]query_string will be loaded in cgi processing [10:34:03]execute_cgi json_proto POST (null) [10:34:03]execute_cgi path=json_proto method=POST [10:34:03]POST find Content-Length [10:34:03]Host: 172.17.36.132:8080 [10:34:03]Content-Length: 677 [10:34:03]Content-Type: application/json [10:34:03] [10:34:03]POST finish read [10:34:03]Found Content-Length = 677 [10:34:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706376", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 1.500, "sum" : 100.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:34:03]execute_script... [10:34:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706376", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 1.500, "sum" : 100.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:34:03]POST & json_proto [10:34:03]process_json_proto [10:34:03]json parsed OK: [10:34:03]protocol is kg_v1.0 [10:34:03]action value=close_receipt [10:34:03]process_action close_receipt [10:34:03]cmd_close_receipt [10:34:03]MH_GetDate [10:34:03]Write to MH i2c: F0 00 00 42 2A 5B [10:34:03]Write i2c OK [10:34:03]MH_I2C_Read... [10:34:03]Read from MH i2c: F0 [10:34:03]MH_I2C_Read... [10:34:03]Read from MH i2c: F0 09 00 [10:34:03]MH_I2C_Read... [10:34:03]Read from MH i2c: F0 09 00 42 2A 00 1F 9C 5D 66 B2 22 B0 64 CA [10:34:03]GetLastDocTimeStamp 1717410687 [10:34:03]current date 1717410847 [10:34:03]FM_GetShiftState [10:34:03]SAM_PROTO_GetShiftState [10:34:03]wFMCommunicate request_size=4 [10:34:03]MH_SAM_APDU [10:34:03]CAPDU: 80 13 01 00 [10:34:03]Write to MH i2c: E2 08 00 43 2A 80 13 01 00 00 00 00 00 EA [10:34:03]Write i2c OK [10:34:03]MH_I2C_Read... [10:34:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:03]Read from MH i2c: E2 [10:34:03]MH_I2C_Read... [10:34:03]Read from MH i2c: E2 0E 00 [10:34:03]MH_I2C_Read... [10:34:03]Read from MH i2c: E2 0E 00 43 2A 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 C5 [10:34:03]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [10:34:03]wFMCommunicate OK [10:34:03]SAM_PROTO_GetShiftState done [10:34:03]FM_GetShiftState done [10:34:03]opened in 1717378033 [10:34:03]opened+sec_in_day 1717464433 [10:34:03]quantity*price = 10035 [10:34:03]sum+1 = 10036 [10:34:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.66 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 50 03.06.2024 10:34 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68304 ФПД: 259240348900448 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T103407&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68304&fm=259240348900448&tin=02508201610067®Number=0000000000098096&sum=10000 [10:34:04]StoreToDocumentArchive [10:34:04]shift 324 fd 68304 [10:34:04]save to /storage/0324/doc_00068304 [10:34:04]save last doc name /storage/0324/doc_00068304 to /storage/kkm_last_doc_name [10:34:04]save OK [10:34:04]Clear old archive folders... [10:34:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:34:04]tlvbuf is 00464A50 [10:34:04]SAM_PROTO_ClearQueue [10:34:04]wFMCommunicate request_size=4 [10:34:04]MH_SAM_APDU [10:34:04]CAPDU: 80 09 00 00 [10:34:04]Write to MH i2c: E2 08 00 50 2A 80 09 00 00 00 00 00 00 EC [10:34:04]Write i2c OK [10:34:04]MH_I2C_Read... [10:34:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:34:04]Read from MH i2c: E2 [10:34:04]MH_I2C_Read... [10:34:04]Read from MH i2c: E2 03 00 [10:34:04]MH_I2C_Read... [10:34:04]Read from MH i2c: E2 03 00 50 2A 00 90 00 EE [10:34:04]RAPDU: 90 00 [10:34:04]wFMCommunicate OK [10:34:04]SAM_PROTO_ClearQueue done [10:34:04]KKMCreateOFDPacket [10:34:04]OFDProtocolAddRootSTLVToBuf [10:34:04]FM_MakeSignedData [10:34:04]FM_MakeSignedData [10:34:04]SAM_PROTO_SignData [10:34:04]wFMCommunicate request_size=4 [10:34:04]MH_SAM_APDU [10:34:04]CAPDU: 80 0D 01 02 [10:34:04]Write to MH i2c: E2 08 00 51 2A 80 0D 01 02 00 00 00 00 F4 [10:34:04]Write i2c OK [10:34:04]MH_I2C_Read... [10:34:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:34:04]Read from MH i2c: E2 [10:34:04]MH_I2C_Read... [10:34:04]Read from MH i2c: E2 03 00 [10:34:04]MH_I2C_Read... [10:34:04]Read from MH i2c: E2 03 00 51 2A 00 90 00 EF [10:34:04]RAPDU: 90 00 [10:34:04]wFMCommunicate OK [10:34:04]wFMCommunicate request_size=255 [10:34:04]MH_SAM_APDU [10:34:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 1F 9C 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D0 0A 01 00 35 04 06 00 EB [10:34:04]Write to MH i2c: E2 02 01 52 2A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 1F 9C 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D0 0A 01 00 35 04 06 00 EB 00 00 23 [10:34:04]Write i2c OK [10:34:04]MH_I2C_Read... [10:34:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:04]Read from MH i2c: E2 [10:34:04]MH_I2C_Read... [10:34:04]Read from MH i2c: E2 03 00 [10:34:04]MH_I2C_Read... [10:34:04]Read from MH i2c: E2 03 00 52 2A 00 90 00 F0 [10:34:04]RAPDU: 90 00 [10:34:04]wFMCommunicate OK [10:34:04]wFMCommunicate request_size=10 [10:34:04]MH_SAM_APDU [10:34:04]CAPDU: 80 0D 02 02 05 C7 18 E8 5C 60 [10:34:04]Write to MH i2c: E2 0D 00 53 2A 80 0D 02 02 05 00 C7 18 E8 5C 60 00 00 84 [10:34:04]Write i2c OK [10:34:04]MH_I2C_Read... [10:34:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:04]Read from MH i2c: E2 [10:34:04]MH_I2C_Read... [10:34:04]Read from MH i2c: E2 03 00 [10:34:04]MH_I2C_Read... [10:34:04]Read from MH i2c: E2 03 00 53 2A 00 90 00 F1 [10:34:04]RAPDU: 90 00 [10:34:04]wFMCommunicate OK [10:34:04]wFMCommunicate request_size=4 [10:34:04]MH_SAM_APDU [10:34:04]CAPDU: 80 0D 03 02 [10:34:04]Write to MH i2c: E2 08 00 54 2A 80 0D 03 02 00 00 00 00 F9 [10:34:04]Write i2c OK [10:34:04]MH_I2C_Read... [10:34:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:34:04]Read from MH i2c: E2 [10:34:04]MH_I2C_Read... [10:34:04]Read from MH i2c: E2 0B 00 [10:34:04]MH_I2C_Read... [10:34:04]Read from MH i2c: E2 0B 00 54 2A 00 C2 25 20 04 B1 7D 39 9E 90 00 0A [10:34:04]RAPDU: C2 25 20 04 B1 7D 39 9E 90 00 [10:34:04]wFMCommunicate OK [10:34:04]SAM_PROTO_SignData done [10:34:04]FM_MakeSignedData done [10:34:04]CreateOFDProtocolMessage [10:34:04]wFMCommunicate request_size=4 [10:34:04]MH_SAM_APDU [10:34:04]CAPDU: 80 11 00 00 [10:34:04]Write to MH i2c: E2 08 00 55 2A 80 11 00 00 00 00 00 00 F9 [10:34:04]Write i2c OK [10:34:04]MH_I2C_Read... [10:34:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:04]Read from MH i2c: E2 [10:34:04]MH_I2C_Read... [10:34:04]Read from MH i2c: E2 17 00 [10:34:04]MH_I2C_Read... [10:34:04]Read from MH i2c: E2 17 00 55 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 44 [10:34:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [10:34:04]wFMCommunicate OK [10:34:04]CreateOFDProtocolMessage done [10:34:04]OFDSenderStorePacket 68304 [10:34:04]StoreOFDPacket docnum=68304 [10:34:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 A4 35 07 01 8B 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 1F 9C 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D0 0A 01 00 35 04 06 00 EB C7 18 E8 5C 60 C2 25 20 04 B1 7D 39 9E [10:34:04]CheckFolder [10:34:04]dirname=/storage/ofd_packets [10:34:04]CheckFolder done [10:34:04]ProducePacketName [10:34:04]name=ofd_packets/00068304 [10:34:04]NVStorageSaveData ofd_packets/00068304 [10:34:04]File name is /storage/ofd_packets/00068304 [10:34:04]Write 301 bytes [10:34:04]NVStorageSaveData done [10:34:04]OFDSenderStorePacket done [10:34:04]KKMCreateOFDPacket done [10:34:04]NVStorageSaveData kkm_last_timestamp [10:34:04]File name is /storage/kkm_last_timestamp [10:34:04]Write 4 bytes [10:34:04]NVStorageSaveData done [10:34:04]ExternCall_PrintAddStr [10:34:04]wPrintStart [10:34:04]Write to MH i2c: 01 00 00 56 2A 80 [10:34:04]Write i2c OK [10:34:04]MH_I2C_Read... [10:34:04]Read from MH i2c: 01 [10:34:04]MH_I2C_Read... [10:34:04]Read from MH i2c: 01 07 00 [10:34:04]MH_I2C_Read... [10:34:04]Read from MH i2c: 01 07 00 56 2A 00 00 00 00 00 FF 0F 95 [10:34:04]RasterBufferAndPrint [10:34:04]line Счет N : (1)706376 [10:34:04]line ИНН: 02508201610067 [10:34:04]line Контрольно-Кассовый Чек [10:34:04]line ПРОДАЖА [10:34:04]line ТРК (МРК, ГНК) : 13 [10:34:04]line Товар: 2710124130 [10:34:04]line Аи-92-К-4 [10:34:04]line 1.500 * 66.90 [10:34:04]line = 100.35 [10:34:04]line НДС 12% НСП 1% [10:34:04]line > о реализуемом товаре [10:34:04]line ОКРУГЛЕНИЕ: -0.35 [10:34:04]line ИТОГО: 100.00 [10:34:04]line Внесено: 100.00 [10:34:04]line СДАЧА: 0.00 [10:34:04]line НСП 1% : 0.89 [10:34:04]line НДС 12% : 10.66 [10:34:04]line Наличными: 100.00 [10:34:04]line Безнал.: 0.00 [10:34:04]line Место: АЗС № 62 "Партнер Нефть" [10:34:04]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [10:34:04]line СНО: Общий режим [10:34:04]line Чек 50 03.06.2024 10:34 [10:34:04]line Смена: 324 ФФД: 1.0 [10:34:04]line ЗНМ: 0300000181 [10:34:04]line РНМ: 0000000000098096 [10:34:04]line Версия ККМ: 001 [10:34:04]line ФМ: 0000000000965400 [10:34:04]line ФД: 68304 [10:34:04]line ФПД: 259240348900448 [10:34:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T103407&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68304&fm=259240348900448&tin=02508201610067®Number=0000000000098096&sum=10000 [10:34:05]OFD Sender: Processing packet 68304 [packets to send 26, broken 25] [10:34:05]ProducePacketName [10:34:05]name=ofd_packets/00068304 [10:34:05]OFD Sender: To server: pG, [10:34:05]CommunicateWithHost lk.salyk.kg:30040 [10:34:05]ConnectInit lk.salyk.kg [10:34:05]written 0, free lines is 4095 [10:34:05]Connected sock=10 [10:34:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 A4 35 07 01 8B 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 1F 9C 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D0 0A 01 00 35 04 06 00 EB C7 18 E8 5C 60 C2 25 20 04 B1 7D 39 9E [10:34:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 F6 49 47 00 10 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D0 0A 01 00 F4 03 04 00 1C 43 5D 66 B6 04 01 00 00 FB CC 90 FC 9F B5 8B 2E [10:34:05]CommunicateWithHost err = 0 [10:34:05]CheckOFDResponse [10:34:05]1017 (14) - 77093643461234 [10:34:05]1041 (16) - 0000000000965400 [10:34:05]1040 (4) - 68304 [10:34:05]1012 (4) - 03.06.2024 04:14 [10:34:05]1206 (1) - 0 [10:34:05]OFD Sender: Remove packet 68304 [10:34:05]ProducePacketName [10:34:05]name=ofd_packets/00068304 [10:34:05]NVStorageDeleteData [10:34:05]Write to MH i2c: 01 00 00 81 2A AB [10:34:05]Write i2c OK [10:34:05]MH_I2C_Read... [10:34:05]Read from MH i2c: 01 [10:34:05]MH_I2C_Read... [10:34:05]Read from MH i2c: 01 07 00 [10:34:05]MH_I2C_Read... [10:34:05]Read from MH i2c: 01 07 00 81 2A 00 00 00 00 00 D0 0C 8E [10:34:05]RasterBufferAndPrint [10:34:05]line [10:34:05]line [10:34:05]line [10:34:05]line [10:34:05]line [10:34:05]written 0, free lines is 3285 [10:34:05]MH_Cut [10:34:05]Write to MH i2c: D1 01 00 88 2A 01 84 [10:34:05]Write i2c OK [10:34:05]MH_I2C_Read... [10:34:05]Read from MH i2c: D1 [10:34:05]MH_I2C_Read... [10:34:05]Read from MH i2c: D1 01 00 [10:34:05]MH_I2C_Read... [10:34:05]Read from MH i2c: D1 01 00 88 2A 00 83 [10:34:05]Write to MH i2c: 01 00 00 89 2A B3 [10:34:05]Write i2c OK [10:34:05]MH_I2C_Read... [10:34:05]OFD Sender: No OFD packet to send [10:34:06]*** Cut start [10:34:06]*** Partial cut [10:34:06]*** CUTSNS_PIN = 1 [10:34:06]*** CUTSNS_PIN = 0 [10:34:06]*** Brake cut motor [10:34:07]Read from MH i2c: 01 [10:34:07]MH_I2C_Read... [10:34:07]*** Stop cut motor [10:34:07]*** Cut end [10:34:07]Read from MH i2c: 01 07 00 [10:34:07]MH_I2C_Read... [10:34:07]Read from MH i2c: 01 07 00 89 2A 00 00 00 00 00 FF 0F C8 [10:34:07]process_action close_receipt done [10:34:07]requested_data is exist [10:34:07]produce_requested_data [10:34:07]requested_item fm.sn is exist - process it [10:34:07]wFMCommunicate request_size=4 [10:34:07]MH_SAM_APDU [10:34:07]CAPDU: 80 11 00 00 [10:34:07]Write to MH i2c: E2 08 00 8A 2A 80 11 00 00 00 00 00 00 2E [10:34:07]Write i2c OK [10:34:07]MH_I2C_Read... [10:34:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:07]Read from MH i2c: E2 [10:34:07]MH_I2C_Read... [10:34:07]Read from MH i2c: E2 17 00 [10:34:07]MH_I2C_Read... [10:34:07]Read from MH i2c: E2 17 00 8A 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 79 [10:34:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [10:34:07]wFMCommunicate OK [10:34:07]requested_item fd.num is exist - process it [10:34:07]SAM_PROTO_GetFieldsCounters [10:34:07]wFMCommunicate request_size=4 [10:34:07]MH_SAM_APDU [10:34:07]CAPDU: 80 13 00 00 [10:34:07]Write to MH i2c: E2 08 00 8B 2A 80 13 00 00 00 00 00 00 31 [10:34:07]Write i2c OK [10:34:07]MH_I2C_Read... [10:34:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:34:07]Read from MH i2c: E2 [10:34:07]MH_I2C_Read... [10:34:07]Read from MH i2c: E2 62 00 [10:34:07]MH_I2C_Read... [10:34:07]Read from MH i2c: E2 62 00 8B 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 D0 0A 01 00 0E 04 04 00 44 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 07 [10:34:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 D0 0A 01 00 0E 04 04 00 44 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 [10:34:07]wFMCommunicate OK [10:34:07]SAM_PROTO_GetFieldsCounters done [10:34:07]requested_item shift.num is exist - process it [10:34:07]requested_item shift.opened is exist - process it [10:34:07]req_shift_opened [10:34:07]FM_GetShiftState [10:34:07]SAM_PROTO_GetShiftState [10:34:07]wFMCommunicate request_size=4 [10:34:07]MH_SAM_APDU [10:34:07]CAPDU: 80 13 01 00 [10:34:07]Write to MH i2c: E2 08 00 8C 2A 80 13 01 00 00 00 00 00 33 [10:34:07]Write i2c OK [10:34:07]MH_I2C_Read... [10:34:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:07]Read from MH i2c: E2 [10:34:07]MH_I2C_Read... [10:34:07]Read from MH i2c: E2 0E 00 [10:34:07]MH_I2C_Read... [10:34:07]Read from MH i2c: E2 0E 00 8C 2A 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 0E [10:34:07]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [10:34:07]wFMCommunicate OK [10:34:07]SAM_PROTO_GetShiftState done [10:34:07]FM_GetShiftState done [10:34:07]req_shift_opened done [10:34:07]requested_item shift.open_date is exist - process it [10:34:07]req_shift_open_date [10:34:07]req_shift_open_date done [10:34:07]produce_requested_data done [10:34:07]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68304,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [10:34:07]process_action_free close_receipt [10:34:07]json_value_free [10:34:07]json_value_free done [10:34:07]process_json_proto returns [10:34:07]Send response to host [10:34:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68304,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [10:34:07]free response buf [10:34:07]execute_script done [10:34:07]execute_script returns [10:34:07]free content buf [10:34:07]Sock 9.Close socket [10:34:07]Sock 9.Thread stoped [10:34:10]OFD Sender: No OFD packet to send [10:34:15]OFD Sender: No OFD packet to send [10:34:20]OFD Sender: No OFD packet to send [10:34:25]OFD Sender: No OFD packet to send [10:34:30]OFD Sender: No OFD packet to send [10:34:35]OFD Sender: No OFD packet to send [10:34:40]OFD Sender: No OFD packet to send [10:34:46]OFD Sender: No OFD packet to send [10:34:51]OFD Sender: No OFD packet to send [10:34:54]accept exits with 7 [10:34:54]New connection [10:34:54]New thread 3066543460 created [10:34:54]Thread 3066686820 joined [10:34:54]Waiting for new connection... [10:34:54] Sock 7.Parse request [10:34:54]Sock 7.Check first char [10:34:54]Sock 7.First char is OK [10:34:54]request: POST /json_proto HTTP/1.0 [10:34:54]Method: POST [10:34:54]URL: /json_proto [10:34:54]Method is POST - this is cgi request [10:34:54]url: /json_proto [10:34:54]query_string will be loaded in cgi processing [10:34:54]execute_cgi json_proto POST (null) [10:34:54]execute_cgi path=json_proto method=POST [10:34:54]POST find Content-Length [10:34:54]Host: 172.17.36.132:8080 [10:34:54]Content-Length: 675 [10:34:54]Content-Type: application/json [10:34:54] [10:34:54]POST finish read [10:34:54]Found Content-Length = 675 [10:34:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706377", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 14.730, "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" ] } } [10:34:54]execute_script... [10:34:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706377", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 14.730, "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" ] } } [10:34:54]POST & json_proto [10:34:54]process_json_proto [10:34:54]json parsed OK: [10:34:54]protocol is kg_v1.0 [10:34:54]action value=close_receipt [10:34:54]process_action close_receipt [10:34:54]cmd_close_receipt [10:34:54]MH_GetDate [10:34:54]Write to MH i2c: F0 00 00 8D 2A A6 [10:34:54]Write i2c OK [10:34:54]MH_I2C_Read... [10:34:54]Read from MH i2c: F0 [10:34:54]MH_I2C_Read... [10:34:54]Read from MH i2c: F0 09 00 [10:34:54]MH_I2C_Read... [10:34:54]Read from MH i2c: F0 09 00 8D 2A 00 53 9C 5D 66 B2 22 B0 64 49 [10:34:54]GetLastDocTimeStamp 1717410847 [10:34:54]current date 1717410899 [10:34:54]FM_GetShiftState [10:34:54]SAM_PROTO_GetShiftState [10:34:54]wFMCommunicate request_size=4 [10:34:54]MH_SAM_APDU [10:34:54]CAPDU: 80 13 01 00 [10:34:54]Write to MH i2c: E2 08 00 8E 2A 80 13 01 00 00 00 00 00 35 [10:34:54]Write i2c OK [10:34:54]MH_I2C_Read... [10:34:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:54]Read from MH i2c: E2 [10:34:54]MH_I2C_Read... [10:34:54]Read from MH i2c: E2 0E 00 [10:34:54]MH_I2C_Read... [10:34:54]Read from MH i2c: E2 0E 00 8E 2A 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 10 [10:34:54]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [10:34:54]wFMCommunicate OK [10:34:54]SAM_PROTO_GetShiftState done [10:34:54]FM_GetShiftState done [10:34:54]opened in 1717378033 [10:34:54]opened+sec_in_day 1717464433 [10:34:54]quantity*price = 100016 [10:34:54]sum+1 = 100018 [10:34:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 51 03.06.2024 10:34 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68305 ФПД: 269889420868120 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T103459&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68305&fm=269889420868120&tin=02508201610067®Number=0000000000098096&sum=100000 [10:34:55]StoreToDocumentArchive [10:34:55]shift 324 fd 68305 [10:34:55]save to /storage/0324/doc_00068305 [10:34:55]save last doc name /storage/0324/doc_00068305 to /storage/kkm_last_doc_name [10:34:55]save OK [10:34:55]Clear old archive folders... [10:34:55]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:34:55]tlvbuf is 0023ADF0 [10:34:55]SAM_PROTO_ClearQueue [10:34:55]wFMCommunicate request_size=4 [10:34:55]MH_SAM_APDU [10:34:55]CAPDU: 80 09 00 00 [10:34:55]Write to MH i2c: E2 08 00 9B 2A 80 09 00 00 00 00 00 00 37 [10:34:55]Write i2c OK [10:34:55]MH_I2C_Read... [10:34:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:34:56]Read from MH i2c: E2 [10:34:56]MH_I2C_Read... [10:34:56]Read from MH i2c: E2 03 00 [10:34:56]MH_I2C_Read... [10:34:56]Read from MH i2c: E2 03 00 9B 2A 00 90 00 39 [10:34:56]RAPDU: 90 00 [10:34:56]wFMCommunicate OK [10:34:56]SAM_PROTO_ClearQueue done [10:34:56]KKMCreateOFDPacket [10:34:56]OFDProtocolAddRootSTLVToBuf [10:34:56]FM_MakeSignedData [10:34:56]FM_MakeSignedData [10:34:56]SAM_PROTO_SignData [10:34:56]wFMCommunicate request_size=4 [10:34:56]MH_SAM_APDU [10:34:56]CAPDU: 80 0D 01 02 [10:34:56]Write to MH i2c: E2 08 00 9C 2A 80 0D 01 02 00 00 00 00 3F [10:34:56]Write i2c OK [10:34:56]MH_I2C_Read... [10:34:56]OFD Sender: No OFD packet to send [10:34:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:34:56]Read from MH i2c: E2 [10:34:56]MH_I2C_Read... [10:34:56]Read from MH i2c: E2 03 00 [10:34:56]MH_I2C_Read... [10:34:56]Read from MH i2c: E2 03 00 9C 2A 00 90 00 3A [10:34:56]RAPDU: 90 00 [10:34:56]wFMCommunicate OK [10:34:56]wFMCommunicate request_size=255 [10:34:56]MH_SAM_APDU [10:34:56]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 39 00 00 00 00 00 37 04 06 00 86 1A 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 33 00 00 00 F4 03 04 00 53 9C 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D1 0A 01 00 35 04 06 00 [10:34:56]Write to MH i2c: E2 02 01 9D 2A 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 39 00 00 00 00 00 37 04 06 00 86 1A 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 33 00 00 00 F4 03 04 00 53 9C 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D1 0A 01 00 35 04 06 00 00 00 7F [10:34:56]Write i2c OK [10:34:56]MH_I2C_Read... [10:34:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:56]Read from MH i2c: E2 [10:34:56]MH_I2C_Read... [10:34:56]Read from MH i2c: E2 03 00 [10:34:56]MH_I2C_Read... [10:34:56]Read from MH i2c: E2 03 00 9D 2A 00 90 00 3B [10:34:56]RAPDU: 90 00 [10:34:56]wFMCommunicate OK [10:34:56]wFMCommunicate request_size=11 [10:34:56]MH_SAM_APDU [10:34:56]CAPDU: 80 0D 02 02 06 F5 76 87 0F 3A 18 [10:34:56]Write to MH i2c: E2 0E 00 9E 2A 80 0D 02 02 06 00 F5 76 87 0F 3A 18 00 00 A1 [10:34:56]Write i2c OK [10:34:56]MH_I2C_Read... [10:34:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:56]Read from MH i2c: E2 [10:34:56]MH_I2C_Read... [10:34:56]Read from MH i2c: E2 03 00 [10:34:56]MH_I2C_Read... [10:34:56]Read from MH i2c: E2 03 00 9E 2A 00 90 00 3C [10:34:56]RAPDU: 90 00 [10:34:56]wFMCommunicate OK [10:34:56]wFMCommunicate request_size=4 [10:34:56]MH_SAM_APDU [10:34:56]CAPDU: 80 0D 03 02 [10:34:56]Write to MH i2c: E2 08 00 9F 2A 80 0D 03 02 00 00 00 00 44 [10:34:56]Write i2c OK [10:34:56]MH_I2C_Read... [10:34:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:34:56]Read from MH i2c: E2 [10:34:56]MH_I2C_Read... [10:34:56]Read from MH i2c: E2 0B 00 [10:34:56]MH_I2C_Read... [10:34:56]Read from MH i2c: E2 0B 00 9F 2A 00 1E FB 6D DC 1B 6E 01 96 90 00 C7 [10:34:56]RAPDU: 1E FB 6D DC 1B 6E 01 96 90 00 [10:34:56]wFMCommunicate OK [10:34:56]SAM_PROTO_SignData done [10:34:56]FM_MakeSignedData done [10:34:56]CreateOFDProtocolMessage [10:34:56]wFMCommunicate request_size=4 [10:34:56]MH_SAM_APDU [10:34:56]CAPDU: 80 11 00 00 [10:34:56]Write to MH i2c: E2 08 00 A0 2A 80 11 00 00 00 00 00 00 44 [10:34:56]Write i2c OK [10:34:56]MH_I2C_Read... [10:34:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:56]Read from MH i2c: E2 [10:34:56]MH_I2C_Read... [10:34:56]Read from MH i2c: E2 17 00 [10:34:56]MH_I2C_Read... [10:34:56]Read from MH i2c: E2 17 00 A0 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 8F [10:34:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [10:34:56]wFMCommunicate OK [10:34:56]CreateOFDProtocolMessage done [10:34:56]OFDSenderStorePacket 68305 [10:34:56]StoreOFDPacket docnum=68305 [10:34:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 45 C4 08 01 D7 27 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 39 00 00 00 00 00 37 04 06 00 86 1A 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 33 00 00 00 F4 03 04 00 53 9C 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D1 0A 01 00 35 04 06 00 F5 76 87 0F 3A 18 1E FB 6D DC 1B 6E 01 96 [10:34:56]CheckFolder [10:34:56]dirname=/storage/ofd_packets [10:34:56]CheckFolder done [10:34:56]ProducePacketName [10:34:56]name=ofd_packets/00068305 [10:34:56]NVStorageSaveData ofd_packets/00068305 [10:34:56]File name is /storage/ofd_packets/00068305 [10:34:56]Write 302 bytes [10:34:56]NVStorageSaveData done [10:34:56]OFDSenderStorePacket done [10:34:56]KKMCreateOFDPacket done [10:34:56]NVStorageSaveData kkm_last_timestamp [10:34:56]File name is /storage/kkm_last_timestamp [10:34:56]Write 4 bytes [10:34:56]NVStorageSaveData done [10:34:56]ExternCall_PrintAddStr [10:34:56]wPrintStart [10:34:56]Write to MH i2c: 01 00 00 A1 2A CB [10:34:56]Write i2c OK [10:34:56]MH_I2C_Read... [10:34:56]Read from MH i2c: 01 [10:34:56]MH_I2C_Read... [10:34:56]Read from MH i2c: 01 07 00 [10:34:56]MH_I2C_Read... [10:34:56]Read from MH i2c: 01 07 00 A1 2A 00 00 00 00 00 FF 0F E0 [10:34:56]RasterBufferAndPrint [10:34:56]line Счет N : (1)706377 [10:34:56]line ИНН: 02508201610067 [10:34:56]line Контрольно-Кассовый Чек [10:34:56]line ПРОДАЖА [10:34:56]line ТРК (МРК, ГНК) : 22 [10:34:56]line Товар: 2710124130 [10:34:56]line Super-92-К-5 [10:34:56]line 14.730 * 67.90 [10:34:56]line = 1000.17 [10:34:56]line НДС 12% НСП 1% [10:34:56]line > о реализуемом товаре [10:34:56]line ОКРУГЛЕНИЕ: -0.17 [10:34:56]line ИТОГО: 1000.00 [10:34:56]line Внесено: 1000.00 [10:34:56]line СДАЧА: 0.00 [10:34:56]line НСП 1% : 8.85 [10:34:56]line НДС 12% : 106.21 [10:34:56]line Наличными: 1000.00 [10:34:56]line Безнал.: 0.00 [10:34:56]line Место: АЗС № 62 "Партнер Нефть" [10:34:56]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [10:34:56]line СНО: Общий режим [10:34:56]line Чек 51 03.06.2024 10:34 [10:34:56]line Смена: 324 ФФД: 1.0 [10:34:56]line ЗНМ: 0300000181 [10:34:56]line РНМ: 0000000000098096 [10:34:56]line Версия ККМ: 001 [10:34:56]line ФМ: 0000000000965400 [10:34:56]line ФД: 68305 [10:34:56]line ФПД: 269889420868120 [10:34:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T103459&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68305&fm=269889420868120&tin=02508201610067®Number=0000000000098096&sum=100000 [10:34:56]OFD Sender: Processing packet 68305 [packets to send 26, broken 25] [10:34:56]ProducePacketName [10:34:56]name=ofd_packets/00068305 [10:34:56]OFD Sender: To server: pG, [10:34:56]CommunicateWithHost lk.salyk.kg:30040 [10:34:56]ConnectInit lk.salyk.kg [10:34:56]written 0, free lines is 4095 [10:34:56]Connected sock=10 [10:34:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 45 C4 08 01 D7 27 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 39 00 00 00 00 00 37 04 06 00 86 1A 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 33 00 00 00 F4 03 04 00 53 9C 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D1 0A 01 00 35 04 06 00 F5 76 87 0F 3A 18 1E FB 6D DC 1B 6E 01 96 [10:34:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 2E 97 47 00 EC EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D1 0A 01 00 F4 03 04 00 4F 43 5D 66 B6 04 01 00 00 F4 7C 32 9A 91 F4 FC 6F [10:34:57]CommunicateWithHost err = 0 [10:34:57]CheckOFDResponse [10:34:57]1017 (14) - 77093643461234 [10:34:57]1041 (16) - 0000000000965400 [10:34:57]1040 (4) - 68305 [10:34:57]1012 (4) - 03.06.2024 04:15 [10:34:57]1206 (1) - 0 [10:34:57]OFD Sender: Remove packet 68305 [10:34:57]ProducePacketName [10:34:57]name=ofd_packets/00068305 [10:34:57]NVStorageDeleteData [10:34:57]Write to MH i2c: 01 00 00 CC 2A F6 [10:34:57]Write i2c OK [10:34:57]MH_I2C_Read... [10:34:57]Read from MH i2c: 01 [10:34:57]MH_I2C_Read... [10:34:57]Read from MH i2c: 01 07 00 [10:34:57]MH_I2C_Read... [10:34:57]Read from MH i2c: 01 07 00 CC 2A 00 00 00 00 00 CE 0C D7 [10:34:57]RasterBufferAndPrint [10:34:57]line [10:34:57]line [10:34:57]line [10:34:57]line [10:34:57]line [10:34:57]written 0, free lines is 3287 [10:34:57]MH_Cut [10:34:57]Write to MH i2c: D1 01 00 D3 2A 01 CF [10:34:57]Write i2c OK [10:34:57]MH_I2C_Read... [10:34:57]Read from MH i2c: D1 [10:34:57]MH_I2C_Read... [10:34:57]Read from MH i2c: D1 01 00 [10:34:57]MH_I2C_Read... [10:34:57]Read from MH i2c: D1 01 00 D3 2A 00 CE [10:34:57]Write to MH i2c: 01 00 00 D4 2A FE [10:34:57]Write i2c OK [10:34:57]MH_I2C_Read... [10:34:57]OFD Sender: No OFD packet to send [10:34:58]*** Cut start [10:34:58]*** Partial cut [10:34:58]*** CUTSNS_PIN = 1 [10:34:58]*** CUTSNS_PIN = 0 [10:34:58]*** Brake cut motor [10:34:58]Read from MH i2c: 01 [10:34:58]MH_I2C_Read... [10:34:58]*** Stop cut motor [10:34:58]*** Cut end [10:34:58]Read from MH i2c: 01 07 00 [10:34:58]MH_I2C_Read... [10:34:58]Read from MH i2c: 01 07 00 D4 2A 00 00 00 00 00 FF 0F 13 [10:34:58]process_action close_receipt done [10:34:58]requested_data is exist [10:34:58]produce_requested_data [10:34:58]requested_item fm.sn is exist - process it [10:34:58]wFMCommunicate request_size=4 [10:34:58]MH_SAM_APDU [10:34:58]CAPDU: 80 11 00 00 [10:34:58]Write to MH i2c: E2 08 00 D5 2A 80 11 00 00 00 00 00 00 79 [10:34:58]Write i2c OK [10:34:58]MH_I2C_Read... [10:34:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:58]Read from MH i2c: E2 [10:34:58]MH_I2C_Read... [10:34:58]Read from MH i2c: E2 17 00 [10:34:58]MH_I2C_Read... [10:34:58]Read from MH i2c: E2 17 00 D5 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 C4 [10:34:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [10:34:58]wFMCommunicate OK [10:34:58]requested_item fd.num is exist - process it [10:34:58]SAM_PROTO_GetFieldsCounters [10:34:58]wFMCommunicate request_size=4 [10:34:58]MH_SAM_APDU [10:34:58]CAPDU: 80 13 00 00 [10:34:58]Write to MH i2c: E2 08 00 D6 2A 80 13 00 00 00 00 00 00 7C [10:34:58]Write i2c OK [10:34:58]MH_I2C_Read... [10:34:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:34:58]Read from MH i2c: E2 [10:34:58]MH_I2C_Read... [10:34:58]Read from MH i2c: E2 62 00 [10:34:58]MH_I2C_Read... [10:34:58]Read from MH i2c: E2 62 00 D6 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 D1 0A 01 00 0E 04 04 00 44 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 56 [10:34:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 D1 0A 01 00 0E 04 04 00 44 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 [10:34:58]wFMCommunicate OK [10:34:58]SAM_PROTO_GetFieldsCounters done [10:34:58]requested_item shift.num is exist - process it [10:34:58]requested_item shift.opened is exist - process it [10:34:58]req_shift_opened [10:34:58]FM_GetShiftState [10:34:58]SAM_PROTO_GetShiftState [10:34:58]wFMCommunicate request_size=4 [10:34:58]MH_SAM_APDU [10:34:58]CAPDU: 80 13 01 00 [10:34:58]Write to MH i2c: E2 08 00 D7 2A 80 13 01 00 00 00 00 00 7E [10:34:58]Write i2c OK [10:34:58]MH_I2C_Read... [10:34:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:58]Read from MH i2c: E2 [10:34:58]MH_I2C_Read... [10:34:58]Read from MH i2c: E2 0E 00 [10:34:58]MH_I2C_Read... [10:34:58]Read from MH i2c: E2 0E 00 D7 2A 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 59 [10:34:58]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [10:34:58]wFMCommunicate OK [10:34:58]SAM_PROTO_GetShiftState done [10:34:58]FM_GetShiftState done [10:34:58]req_shift_opened done [10:34:58]requested_item shift.open_date is exist - process it [10:34:58]req_shift_open_date [10:34:58]req_shift_open_date done [10:34:58]produce_requested_data done [10:34:58]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68305,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [10:34:58]process_action_free close_receipt [10:34:58]json_value_free [10:34:58]json_value_free done [10:34:58]process_json_proto returns [10:34:58]Send response to host [10:34:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68305,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [10:34:58]free response buf [10:34:58]execute_script done [10:34:58]execute_script returns [10:34:58]free content buf [10:34:58]Sock 7.Close socket [10:34:58]Sock 7.Thread stoped [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:13]OFD Sender: No OFD packet to send [10:42:18]OFD Sender: No OFD packet to send [10:42:23]OFD Sender: No OFD packet to send [10:42:28]OFD Sender: No OFD packet to send [10:42:33]OFD Sender: No OFD packet to send [10:42:38]OFD Sender: No OFD packet to send [10:42:43]OFD Sender: No OFD packet to send [10:42:48]OFD Sender: No OFD packet to send [10:42:53]OFD Sender: No OFD packet to send [10:42:58]OFD Sender: No OFD packet to send [10:43:03]OFD Sender: No OFD packet to send [10:43:08]OFD Sender: No OFD packet to send [10:43:13]OFD Sender: No OFD packet to send [10:43:18]OFD Sender: No OFD packet to send [10:43:23]OFD Sender: No OFD packet to send [10:43:28]OFD Sender: No OFD packet to send [10:43:33]OFD Sender: No OFD packet to send [10:43:38]OFD Sender: No OFD packet to send [10:43:43]OFD Sender: No OFD packet to send [10:43:48]OFD Sender: No OFD packet to send [10:43:53]OFD Sender: No OFD packet to send [10:43:58]OFD Sender: No OFD packet to send [10:44:03]OFD Sender: No OFD packet to send [10:44:08]OFD Sender: No OFD packet to send [10:44:13]OFD Sender: No OFD packet to send [10:44:18]OFD Sender: No OFD packet to send [10:44:23]OFD Sender: No OFD packet to send [10:44:28]OFD Sender: No OFD packet to send [10:44:33]OFD Sender: No OFD packet to send [10:44:38]OFD Sender: No OFD packet to send [10:44:43]OFD Sender: No OFD packet to send [10:44:48]OFD Sender: No OFD packet to send [10:44:53]OFD Sender: No OFD packet to send [10:44:58]OFD Sender: No OFD packet to send [10:45:03]OFD Sender: No OFD packet to send [10:45:08]OFD Sender: No OFD packet to send [10:45:13]OFD Sender: No OFD packet to send [10:45:18]OFD Sender: No OFD packet to send [10:45:23]OFD Sender: No OFD packet to send [10:45:28]OFD Sender: No OFD packet to send [10:45:33]OFD Sender: No OFD packet to send [10:45:38]OFD Sender: No OFD packet to send [10:45:43]OFD Sender: No OFD packet to send [10:45:48]OFD Sender: No OFD packet to send [10:45:53]OFD Sender: No OFD packet to send [10:45:58]OFD Sender: No OFD packet to send [10:46:03]OFD Sender: No OFD packet to send [10:46:08]OFD Sender: No OFD packet to send [10:46:13]OFD Sender: No OFD packet to send [10:46:18]OFD Sender: No OFD packet to send [10:46:23]OFD Sender: No OFD packet to send [10:46:28]OFD Sender: No OFD packet to send [10:46:33]OFD Sender: No OFD packet to send [10:46:38]OFD Sender: No OFD packet to send [10:46:43]OFD Sender: No OFD packet to send [10:46:48]OFD Sender: No OFD packet to send [10:46:53]OFD Sender: No OFD packet to send [10:46:58]OFD Sender: No OFD packet to send [10:47:03]OFD Sender: No OFD packet to send [10:47:08]OFD Sender: No OFD packet to send [10:47:13]OFD Sender: No OFD packet to send [10:47:18]OFD Sender: No OFD packet to send [10:47:23]OFD Sender: No OFD packet to send [10:47:28]OFD Sender: No OFD packet to send [10:47:33]OFD Sender: No OFD packet to send [10:47:38]OFD Sender: No OFD packet to send [10:47:43]OFD Sender: No OFD packet to send [10:47:48]OFD Sender: No OFD packet to send [10:47:53]OFD Sender: No OFD packet to send [10:47:58]OFD Sender: No OFD packet to send [10:48:03]OFD Sender: No OFD packet to send [10:48:08]OFD Sender: No OFD packet to send [10:48:13]OFD Sender: No OFD packet to send [10:48:18]OFD Sender: No OFD packet to send [10:48:23]OFD Sender: No OFD packet to send [10:48:28]OFD Sender: No OFD packet to send [10:48:33]OFD Sender: No OFD packet to send [10:48:38]OFD Sender: No OFD packet to send [10:48:43]OFD Sender: No OFD packet to send [10:48:48]OFD Sender: No OFD packet to send [10:48:53]OFD Sender: No OFD packet to send [10:48:58]OFD Sender: No OFD packet to send [10:48:59]accept exits with 6 [10:48:59]New connection [10:48:59]New thread 3066686820 created [10:48:59]Thread 3066543460 joined [10:48:59]Waiting for new connection... [10:48:59] Sock 6.Parse request [10:48:59]Sock 6.Check first char [10:48:59]Sock 6.First char is OK [10:48:59]request: POST /json_proto HTTP/1.0 [10:48:59]Method: POST [10:48:59]URL: /json_proto [10:48:59]Method is POST - this is cgi request [10:48:59]url: /json_proto [10:48:59]query_string will be loaded in cgi processing [10:48:59]execute_cgi json_proto POST (null) [10:48:59]execute_cgi path=json_proto method=POST [10:48:59]POST find Content-Length [10:48:59]Host: 172.17.36.132:8080 [10:48:59]Content-Length: 1144 [10:48:59]Content-Type: application/json [10:48:59] [10:48:59]POST finish read [10:48:59]Found Content-Length = 1144 [10:48:59]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706378\u000A03.06.2024 10:26\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 63\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 10.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 669.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30111837\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:48:59]execute_script... [10:48:59]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706378\u000A03.06.2024 10:26\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 63\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 10.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 669.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30111837\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:48:59]POST & json_proto [10:48:59]process_json_proto [10:48:59]json parsed OK: [10:48:59]protocol is kg_v1.0 [10:48:59]action value=print_text [10:48:59]process_action print_text [10:48:59]cmd_print_text [10:48:59]ExternCall_PrintAddStr [10:48:59]wPrintStart [10:48:59]Write to MH i2c: 01 00 00 D8 2A 02 [10:48:59]Write i2c OK [10:48:59]MH_I2C_Read... [10:48:59]Read from MH i2c: 01 [10:48:59]MH_I2C_Read... [10:48:59]Read from MH i2c: 01 07 00 [10:48:59]MH_I2C_Read... [10:48:59]Read from MH i2c: 01 07 00 D8 2A 00 00 00 00 00 FF 0F 17 [10:48:59]RasterBufferAndPrint [10:48:59]line *****ТОВАРНЫЙ ЧЕК***** [10:48:59]line АЗС 62 [10:48:59]line Партнер нефть [10:48:59]line 02508201610067 [10:48:59]line Кассир : Балаев А. [10:48:59]line Счет N : (1)706378 [10:48:59]line 03.06.2024 10:26 [10:48:59]line ПРОДАЖА [10:48:59]line ТРК (МРК, ГНК): 63 [10:48:59]line Вид ГСМ : 2710124130 [10:48:59]line Аи-92-К-4 [10:48:59]line 10.000 x 66.90 [10:48:59]line ИТОГ: 669.00 [10:48:59]line Тип оплаты: Талоны: ТК ГПНА Online [10:48:59]line 30111837 [10:48:59]line ______________________ [10:48:59]line (подпись) [10:48:59]written 0, free lines is 4095 [10:49:00]Write to MH i2c: 01 00 00 EC 2A 16 [10:49:00]Write i2c OK [10:49:00]MH_I2C_Read... [10:49:00]Read from MH i2c: 01 [10:49:00]MH_I2C_Read... [10:49:00]Read from MH i2c: 01 07 00 [10:49:00]MH_I2C_Read... [10:49:00]Read from MH i2c: 01 07 00 EC 2A 00 00 00 00 00 0F 0E 3A [10:49:00]RasterBufferAndPrint [10:49:00]line [10:49:00]line [10:49:00]line [10:49:00]line [10:49:00]line [10:49:00]written 0, free lines is 3601 [10:49:00]MH_Cut [10:49:00]Write to MH i2c: D1 01 00 F3 2A 01 EF [10:49:00]Write i2c OK [10:49:00]MH_I2C_Read... [10:49:00]Read from MH i2c: D1 [10:49:00]MH_I2C_Read... [10:49:00]Read from MH i2c: D1 01 00 [10:49:00]MH_I2C_Read... [10:49:00]Read from MH i2c: D1 01 00 F3 2A 00 EE [10:49:00]Write to MH i2c: 01 00 00 F4 2A 1E [10:49:00]Write i2c OK [10:49:00]MH_I2C_Read... [10:49:00]*** Cut start [10:49:00]*** Partial cut [10:49:00]*** CUTSNS_PIN = 1 [10:49:00]*** CUTSNS_PIN = 0 [10:49:00]*** Brake cut motor [10:49:01]Read from MH i2c: 01 [10:49:01]MH_I2C_Read... [10:49:01]Read from MH i2c: 01 07 00 [10:49:01]MH_I2C_Read... [10:49:01]*** Stop cut motor [10:49:01]*** Cut end [10:49:01]Read from MH i2c: 01 07 00 F4 2A 00 00 00 00 00 FF 0F 33 [10:49:01]process_action print_text done [10:49:01]requested_data is exist [10:49:01]produce_requested_data [10:49:01]requested_item fm.sn is exist - process it [10:49:01]wFMCommunicate request_size=4 [10:49:01]MH_SAM_APDU [10:49:01]CAPDU: 80 11 00 00 [10:49:01]Write to MH i2c: E2 08 00 F5 2A 80 11 00 00 00 00 00 00 99 [10:49:01]Write i2c OK [10:49:01]MH_I2C_Read... [10:49:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:01]Read from MH i2c: E2 [10:49:01]MH_I2C_Read... [10:49:01]Read from MH i2c: E2 17 00 [10:49:01]MH_I2C_Read... [10:49:01]Read from MH i2c: E2 17 00 F5 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 E4 [10:49:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [10:49:01]wFMCommunicate OK [10:49:01]requested_item fd.num is exist - process it [10:49:01]SAM_PROTO_GetFieldsCounters [10:49:01]wFMCommunicate request_size=4 [10:49:01]MH_SAM_APDU [10:49:01]CAPDU: 80 13 00 00 [10:49:01]Write to MH i2c: E2 08 00 F6 2A 80 13 00 00 00 00 00 00 9C [10:49:01]Write i2c OK [10:49:01]MH_I2C_Read... [10:49:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:49:01]Read from MH i2c: E2 [10:49:01]MH_I2C_Read... [10:49:01]Read from MH i2c: E2 62 00 [10:49:01]MH_I2C_Read... [10:49:01]Read from MH i2c: E2 62 00 F6 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 D1 0A 01 00 0E 04 04 00 44 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 76 [10:49:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 D1 0A 01 00 0E 04 04 00 44 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 [10:49:01]wFMCommunicate OK [10:49:01]SAM_PROTO_GetFieldsCounters done [10:49:01]requested_item shift.num is exist - process it [10:49:01]requested_item shift.opened is exist - process it [10:49:01]req_shift_opened [10:49:01]FM_GetShiftState [10:49:01]SAM_PROTO_GetShiftState [10:49:01]wFMCommunicate request_size=4 [10:49:01]MH_SAM_APDU [10:49:01]CAPDU: 80 13 01 00 [10:49:01]Write to MH i2c: E2 08 00 F7 2A 80 13 01 00 00 00 00 00 9E [10:49:01]Write i2c OK [10:49:01]MH_I2C_Read... [10:49:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:01]Read from MH i2c: E2 [10:49:01]MH_I2C_Read... [10:49:01]Read from MH i2c: E2 0E 00 [10:49:01]MH_I2C_Read... [10:49:01]Read from MH i2c: E2 0E 00 F7 2A 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 79 [10:49:01]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [10:49:01]wFMCommunicate OK [10:49:01]SAM_PROTO_GetShiftState done [10:49:01]FM_GetShiftState done [10:49:01]req_shift_opened done [10:49:01]requested_item shift.open_date is exist - process it [10:49:01]req_shift_open_date [10:49:01]req_shift_open_date done [10:49:01]produce_requested_data done [10:49:01]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68305,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [10:49:01]process_action_free print_text [10:49:01]json_value_free [10:49:01]json_value_free done [10:49:01]process_json_proto returns [10:49:01]Send response to host [10:49:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68305,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [10:49:01]free response buf [10:49:01]execute_script done [10:49:01]execute_script returns [10:49:01]free content buf [10:49:01]Sock 6.Close socket [10:49:01]Sock 6.Thread stoped [10:49:03]OFD Sender: No OFD packet to send [10:49:08]OFD Sender: No OFD packet to send [10:49:13]OFD Sender: No OFD packet to send [10:49:18]OFD Sender: No OFD packet to send [10:49:23]OFD Sender: No OFD packet to send [10:49:28]OFD Sender: No OFD packet to send [10:49:33]OFD Sender: No OFD packet to send [10:49:38]OFD Sender: No OFD packet to send [10:49:43]OFD Sender: No OFD packet to send [10:49:48]OFD Sender: No OFD packet to send [10:49:53]OFD Sender: No OFD packet to send [10:49:58]OFD Sender: No OFD packet to send [10:50:03]OFD Sender: No OFD packet to send [10:50:08]OFD Sender: No OFD packet to send [10:50:13]OFD Sender: No OFD packet to send [10:50:18]OFD Sender: No OFD packet to send [10:50:23]OFD Sender: No OFD packet to send [10:50:28]OFD Sender: No OFD packet to send [10:50:33]OFD Sender: No OFD packet to send [10:50:38]OFD Sender: No OFD packet to send [10:50:43]OFD Sender: No OFD packet to send [10:50:46]int [10:50:46]Write to MH i2c: 01 00 00 F8 2A 22 [10:50:46]*** FLAG_PRN_KEY set [10:50:46]Write i2c OK [10:50:46]MH_I2C_Read... [10:50:46]Read from MH i2c: 01 [10:50:46]MH_I2C_Read... [10:50:46]Read from MH i2c: 01 07 00 [10:50:46]MH_I2C_Read... [10:50:46]Read from MH i2c: 01 07 00 F8 2A 00 08 00 00 00 FF 0F 3F [10:50:46]state=0 [10:50:46]Key pressed [10:50:46]Feed [10:50:46]Write to MH i2c: D8 00 00 F9 2A FA [10:50:46]Write i2c OK [10:50:46]MH_I2C_Read... [10:50:46]Read from MH i2c: D8 [10:50:46]MH_I2C_Read... [10:50:46]Read from MH i2c: D8 01 00 [10:50:46]MH_I2C_Read... [10:50:46]Read from MH i2c: D8 01 00 F9 2A 00 FB [10:50:46]int [10:50:46]Write to MH i2c: 01 00 00 FA 2A 24 [10:50:46]Write i2c OK [10:50:46]MH_I2C_Read... [10:50:46]Read from MH i2c: 01 [10:50:46]MH_I2C_Read... [10:50:46]Read from MH i2c: 01 07 00 [10:50:46]MH_I2C_Read... [10:50:46]Read from MH i2c: 01 07 00 FA 2A 00 48 00 00 00 3C 00 AF [10:50:46]state=2 [10:50:46]Key pressed [10:50:47]accept exits with 9 [10:50:47]New connection [10:50:47]New thread 3066543460 created [10:50:47]Thread 3066686820 joined [10:50:47]Waiting for new connection... [10:50:47] Sock 9.Parse request [10:50:47]Sock 9.Check first char [10:50:47]Sock 9.First char is OK [10:50:47]request: POST /json_proto HTTP/1.0 [10:50:47]Method: POST [10:50:47]URL: /json_proto [10:50:47]Method is POST - this is cgi request [10:50:47]url: /json_proto [10:50:47]query_string will be loaded in cgi processing [10:50:47]execute_cgi json_proto POST (null) [10:50:47]execute_cgi path=json_proto method=POST [10:50:47]POST find Content-Length [10:50:47]Host: 172.17.36.132:8080 [10:50:47]Content-Length: 677 [10:50:47]Content-Type: application/json [10:50:47] [10:50:47]POST finish read [10:50:47]Found Content-Length = 677 [10:50:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706379", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:50:47]execute_script... [10:50: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)706379", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:50:47]POST & json_proto [10:50:47]process_json_proto [10:50:47]json parsed OK: [10:50:47]protocol is kg_v1.0 [10:50:47]action value=close_receipt [10:50:47]process_action close_receipt [10:50:47]cmd_close_receipt [10:50:47]MH_GetDate [10:50:47]Write to MH i2c: F0 00 00 FB 2A 14 [10:50:47]Write i2c OK [10:50:47]MH_I2C_Read... [10:50:47]Read from MH i2c: F0 [10:50:47]MH_I2C_Read... [10:50:47]Read from MH i2c: F0 09 00 [10:50:47]MH_I2C_Read... [10:50:47]Read from MH i2c: F0 09 00 FB 2A 00 0B A0 5D 66 B2 22 B0 64 73 [10:50:47]GetLastDocTimeStamp 1717410899 [10:50:47]current date 1717411851 [10:50:47]FM_GetShiftState [10:50:47]SAM_PROTO_GetShiftState [10:50:47]wFMCommunicate request_size=4 [10:50:47]MH_SAM_APDU [10:50:47]CAPDU: 80 13 01 00 [10:50:47]Write to MH i2c: E2 08 00 FC 2A 80 13 01 00 00 00 00 00 A3 [10:50:47]Write i2c OK [10:50:47]MH_I2C_Read... [10:50:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:47]Read from MH i2c: E2 [10:50:47]MH_I2C_Read... [10:50:47]Read from MH i2c: E2 0E 00 [10:50:47]MH_I2C_Read... [10:50:47]Read from MH i2c: E2 0E 00 FC 2A 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 7E [10:50:47]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [10:50:47]wFMCommunicate OK [10:50:47]SAM_PROTO_GetShiftState done [10:50:47]FM_GetShiftState done [10:50:47]opened in 1717378033 [10:50:47]opened+sec_in_day 1717464433 [10:50:47]quantity*price = 50041 [10:50:47]sum+1 = 50042 [10:50:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 52 03.06.2024 10:50 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68306 ФПД: 25921078508364 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T105052&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68306&fm=25921078508364&tin=02508201610067®Number=0000000000098096&sum=50000 [10:50:48]StoreToDocumentArchive [10:50:48]shift 324 fd 68306 [10:50:48]save to /storage/0324/doc_00068306 [10:50:48]save last doc name /storage/0324/doc_00068306 to /storage/kkm_last_doc_name [10:50:48]Write to MH i2c: 01 00 00 0A 2B 35 [10:50:48]save OK [10:50:48]Clear old archive folders... [10:50:48]Write i2c OK [10:50:48]MH_I2C_Read... [10:50:48]Read from MH i2c: 01 [10:50:48]MH_I2C_Read... [10:50:48]Read from MH i2c: 01 07 00 [10:50:48]MH_I2C_Read... [10:50:48]Read from MH i2c: 01 07 00 0A 2B 00 08 00 00 00 FF 0F 52 [10:50:48]state=0 [10:50:48]Key pressed [10:50:48]Feed [10:50:48]Write to MH i2c: D8 00 00 0B 2B 0D [10:50:48]Write i2c OK [10:50:48]MH_I2C_Read... [10:50:48]Read from MH i2c: D8 [10:50:48]MH_I2C_Read... [10:50:48]Read from MH i2c: D8 01 00 [10:50:48]MH_I2C_Read... [10:50:48]Read from MH i2c: D8 01 00 0B 2B 00 0E [10:50:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:50:48]tlvbuf is 004DA440 [10:50:48]SAM_PROTO_ClearQueue [10:50:48]wFMCommunicate request_size=4 [10:50:48]MH_SAM_APDU [10:50:48]CAPDU: 80 09 00 00 [10:50:48]Write to MH i2c: E2 08 00 0C 2B 80 09 00 00 00 00 00 00 A9 [10:50:48]Write i2c OK [10:50:48]MH_I2C_Read... [10:50:48]int [10:50:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:50:48]Read from MH i2c: E2 [10:50:48]MH_I2C_Read... [10:50:48]Read from MH i2c: E2 03 00 [10:50:48]MH_I2C_Read... [10:50:48]Read from MH i2c: E2 03 00 0C 2B 00 90 00 AB [10:50:48]RAPDU: 90 00 [10:50:48]wFMCommunicate OK [10:50:48]SAM_PROTO_ClearQueue done [10:50:48]KKMCreateOFDPacket [10:50:48]OFDProtocolAddRootSTLVToBuf [10:50:48]FM_MakeSignedData [10:50:48]FM_MakeSignedData [10:50:48]SAM_PROTO_SignData [10:50:48]wFMCommunicate request_size=4 [10:50:48]MH_SAM_APDU [10:50:48]CAPDU: 80 0D 01 02 [10:50:48]Write to MH i2c: E2 08 00 0D 2B 80 0D 01 02 00 00 00 00 B1 [10:50:48]Write i2c OK [10:50:48]MH_I2C_Read... [10:50:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:50:48]*** FLAG_PRN_KEY reset [10:50:48]Read from MH i2c: E2 [10:50:48]MH_I2C_Read... [10:50:48]Read from MH i2c: E2 03 00 [10:50:48]MH_I2C_Read... [10:50:48]Read from MH i2c: E2 03 00 0D 2B 00 90 00 AC [10:50:48]RAPDU: 90 00 [10:50:48]wFMCommunicate OK [10:50:48]wFMCommunicate request_size=255 [10:50:48]MH_SAM_APDU [10:50:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 0C A0 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D2 0A 01 00 35 04 06 00 17 [10:50:48]OFD Sender: No OFD packet to send [10:50:48]Write to MH i2c: 01 00 00 0E 2B 39 [10:50:48]Write i2c OK [10:50:48]MH_I2C_Read... [10:50:48]Read from MH i2c: 01 [10:50:48]MH_I2C_Read... [10:50:48]Read from MH i2c: 01 07 00 [10:50:48]MH_I2C_Read... [10:50:48]Read from MH i2c: 01 07 00 0E 2B 00 00 00 00 00 FF 0F 4E [10:50:48]state=2 [10:50:48]Stop feed [10:50:48]Write to MH i2c: E2 02 01 0F 2B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 0C A0 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D2 0A 01 00 35 04 06 00 17 00 00 1B [10:50:48]Write i2c OK [10:50:48]MH_I2C_Read... [10:50:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:48]*** FLAG_PRN_KEY set [10:50:48]int [10:50:48]Read from MH i2c: E2 [10:50:48]MH_I2C_Read... [10:50:48]Read from MH i2c: E2 03 00 [10:50:48]MH_I2C_Read... [10:50:48]Read from MH i2c: E2 03 00 0F 2B 00 90 00 AE [10:50:48]RAPDU: 90 00 [10:50:48]wFMCommunicate OK [10:50:48]wFMCommunicate request_size=10 [10:50:48]MH_SAM_APDU [10:50:48]CAPDU: 80 0D 02 02 05 93 38 AD 3B 4C [10:50:48]Write to MH i2c: E2 0D 00 10 2B 80 0D 02 02 05 00 93 38 AD 3B 4C 00 00 BE [10:50:48]Write i2c OK [10:50:48]MH_I2C_Read... [10:50:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:49]Read from MH i2c: E2 [10:50:49]MH_I2C_Read... [10:50:49]Read from MH i2c: E2 03 00 [10:50:49]MH_I2C_Read... [10:50:49]Read from MH i2c: E2 03 00 10 2B 00 90 00 AF [10:50:49]RAPDU: 90 00 [10:50:49]wFMCommunicate OK [10:50:49]wFMCommunicate request_size=4 [10:50:49]MH_SAM_APDU [10:50:49]CAPDU: 80 0D 03 02 [10:50:49]Write to MH i2c: E2 08 00 11 2B 80 0D 03 02 00 00 00 00 B7 [10:50:49]Write i2c OK [10:50:49]MH_I2C_Read... [10:50:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:50:49]Read from MH i2c: E2 [10:50:49]MH_I2C_Read... [10:50:49]Read from MH i2c: E2 0B 00 [10:50:49]MH_I2C_Read... [10:50:49]Read from MH i2c: E2 0B 00 11 2B 00 98 87 3C F0 D4 59 C3 4F 90 00 42 [10:50:49]RAPDU: 98 87 3C F0 D4 59 C3 4F 90 00 [10:50:49]wFMCommunicate OK [10:50:49]SAM_PROTO_SignData done [10:50:49]FM_MakeSignedData done [10:50:49]CreateOFDProtocolMessage [10:50:49]wFMCommunicate request_size=4 [10:50:49]MH_SAM_APDU [10:50:49]CAPDU: 80 11 00 00 [10:50:49]Write to MH i2c: E2 08 00 12 2B 80 11 00 00 00 00 00 00 B7 [10:50:49]Write i2c OK [10:50:49]MH_I2C_Read... [10:50:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:49]*** FLAG_PRN_KEY reset [10:50:49]Read from MH i2c: E2 [10:50:49]MH_I2C_Read... [10:50:49]Read from MH i2c: E2 17 00 [10:50:49]MH_I2C_Read... [10:50:49]Read from MH i2c: E2 17 00 12 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 02 [10:50:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [10:50:49]wFMCommunicate OK [10:50:49]CreateOFDProtocolMessage done [10:50:49]OFDSenderStorePacket 68306 [10:50:49]StoreOFDPacket docnum=68306 [10:50:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 45 2D 07 01 B8 F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 0C A0 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D2 0A 01 00 35 04 06 00 17 93 38 AD 3B 4C 98 87 3C F0 D4 59 C3 4F [10:50:49]CheckFolder [10:50:49]dirname=/storage/ofd_packets [10:50:49]CheckFolder done [10:50:49]ProducePacketName [10:50:49]name=ofd_packets/00068306 [10:50:49]NVStorageSaveData ofd_packets/00068306 [10:50:49]File name is /storage/ofd_packets/00068306 [10:50:49]Write 301 bytes [10:50:49]NVStorageSaveData done [10:50:49]OFDSenderStorePacket done [10:50:49]KKMCreateOFDPacket done [10:50:49]NVStorageSaveData kkm_last_timestamp [10:50:49]File name is /storage/kkm_last_timestamp [10:50:49]Write 4 bytes [10:50:49]NVStorageSaveData done [10:50:49]ExternCall_PrintAddStr [10:50:49]wPrintStart [10:50:49]Write to MH i2c: 01 00 00 13 2B 3E [10:50:49]Write i2c OK [10:50:49]MH_I2C_Read... [10:50:49]Read from MH i2c: 01 [10:50:49]MH_I2C_Read... [10:50:49]Read from MH i2c: 01 07 00 [10:50:49]MH_I2C_Read... [10:50:49]Read from MH i2c: 01 07 00 13 2B 00 00 00 00 00 FF 0F 53 [10:50:49]RasterBufferAndPrint [10:50:49]line Счет N : (1)706379 [10:50:49]line ИНН: 02508201610067 [10:50:49]line Контрольно-Кассовый Чек [10:50:49]line ПРОДАЖА [10:50:49]line ТРК (МРК, ГНК) : 53 [10:50:49]line Товар: 2710124130 [10:50:49]line Аи-92-К-4 [10:50:49]line 7.480 * 66.90 [10:50:49]line = 500.41 [10:50:49]line НДС 12% НСП 1% [10:50:49]line > о реализуемом товаре [10:50:49]line ОКРУГЛЕНИЕ: -0.41 [10:50:49]line ИТОГО: 500.00 [10:50:49]line Внесено: 500.00 [10:50:49]line СДАЧА: 0.00 [10:50:49]line НСП 1% : 4.43 [10:50:49]line НДС 12% : 53.14 [10:50:49]line Наличными: 500.00 [10:50:49]line Безнал.: 0.00 [10:50:49]line Место: АЗС № 62 "Партнер Нефть" [10:50:49]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [10:50:49]line СНО: Общий режим [10:50:49]line Чек 52 03.06.2024 10:50 [10:50:49]line Смена: 324 ФФД: 1.0 [10:50:49]line ЗНМ: 0300000181 [10:50:49]line РНМ: 0000000000098096 [10:50:49]line Версия ККМ: 001 [10:50:49]line ФМ: 0000000000965400 [10:50:49]line ФД: 68306 [10:50:49]line ФПД: 25921078508364 [10:50:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T105052&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68306&fm=25921078508364&tin=02508201610067®Number=0000000000098096&sum=50000 [10:50:49]written 0, free lines is 4095 [10:50:49]answer for other command [DD] [10:50:49]MH Int Process stopped [10:50:49]answer with wrong packet_num 2B16 - expected 2B17 [10:50:49]process_action_free close_receipt [10:50:49]json_value_free [10:50:49]json_value_free done [10:50:49]process_json_proto returns [10:50:49]Send response to host [10:50:49]{"protocol":"kg_v1.0","response":{"error":1039,"error_desc":"CoCPU protocol format"}} [10:50:49]free response buf [10:50:49]execute_script done [10:50:49]execute_script returns [10:50:49]free content buf [10:50:49]Sock 9.Close socket [10:50:49]Sock 9.Thread stoped [10:50:49]OFD Sender: Processing packet 68306 [packets to send 26, broken 25] [10:50:49]ProducePacketName [10:50:49]name=ofd_packets/00068306 [10:50:49]OFD Sender: To server: pG, [10:50:49]CommunicateWithHost lk.salyk.kg:30040 [10:50:49]ConnectInit lk.salyk.kg [10:50:49]Connected sock=5 [10:50:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 45 2D 07 01 B8 F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 0C A0 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D2 0A 01 00 35 04 06 00 17 93 38 AD 3B 4C 98 87 3C F0 D4 59 C3 4F [10:50:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 DD 1F 47 00 19 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D2 0A 01 00 F4 03 04 00 08 47 5D 66 B6 04 01 00 00 A8 71 BE AA 4A 3F CC 03 [10:50:49]CommunicateWithHost err = 0 [10:50:49]CheckOFDResponse [10:50:49]1017 (14) - 77093643461234 [10:50:49]1041 (16) - 0000000000965400 [10:50:49]1040 (4) - 68306 [10:50:49]1012 (4) - 03.06.2024 04:31 [10:50:49]1206 (1) - 0 [10:50:49]OFD Sender: Remove packet 68306 [10:50:49]ProducePacketName [10:50:49]name=ofd_packets/00068306 [10:50:49]NVStorageDeleteData [10:50:49]OFD Sender: No OFD packet to send [10:50:50]*** FLAG_PRN_KEY set [10:50:50]*** FLAG_PRN_KEY reset [10:50:54]accept exits with 7 [10:50:54]New connection [10:50:54]New thread 3066686820 created [10:50:54]Thread 3066543460 joined [10:50:54]Waiting for new connection... [10:50:54] Sock 7.Parse request [10:50:54]Sock 7.Check first char [10:50:54]Sock 7.First char is OK [10:50:54]request: POST /json_proto HTTP/1.0 [10:50:54]Method: POST [10:50:54]URL: /json_proto [10:50:54]Method is POST - this is cgi request [10:50:54]url: /json_proto [10:50:54]query_string will be loaded in cgi processing [10:50:54]execute_cgi json_proto POST (null) [10:50:54]execute_cgi path=json_proto method=POST [10:50:54]POST find Content-Length [10:50:54]Host: 172.17.36.132:8080 [10:50:54]Content-Length: 215 [10:50:54]Content-Type: application/json [10:50:54] [10:50:54]POST finish read [10:50:54]Found Content-Length = 215 [10:50:54]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:50:54]execute_script... [10:50:54]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:50:54]POST & json_proto [10:50:54]process_json_proto [10:50:54]json parsed OK: [10:50:54]protocol is kg_v1.0 [10:50:54]action value=get_value [10:50:54]process_action get_value [10:50:54]cmd_get_value [10:50:54]process_action get_value done [10:50:54]requested_data is exist [10:50:54]produce_requested_data [10:50:54]requested_item kkm.sn is exist - process it [10:50:54]requested_item kkm.ver is exist - process it [10:50:54]requested_item fm.sn is exist - process it [10:50:54]wFMCommunicate request_size=4 [10:50:54]MH_SAM_APDU [10:50:54]CAPDU: 80 11 00 00 [10:50:54]Write to MH i2c: E2 08 00 18 2B 80 11 00 00 00 00 00 00 BD [10:50:54]Write i2c OK [10:50:54]MH_I2C_Read... [10:50:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:54]Read from MH i2c: E2 [10:50:54]MH_I2C_Read... [10:50:54]Read from MH i2c: E2 17 00 [10:50:54]MH_I2C_Read... [10:50:54]Read from MH i2c: E2 17 00 18 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 08 [10:50:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [10:50:54]wFMCommunicate OK [10:50:54]requested_item fd.num is exist - process it [10:50:54]SAM_PROTO_GetFieldsCounters [10:50:54]wFMCommunicate request_size=4 [10:50:54]MH_SAM_APDU [10:50:54]CAPDU: 80 13 00 00 [10:50:54]Write to MH i2c: E2 08 00 19 2B 80 13 00 00 00 00 00 00 C0 [10:50:54]Write i2c OK [10:50:54]MH_I2C_Read... [10:50:54]Read from MH i2c: E2 [10:50:54]MH_I2C_Read... [10:50:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:50:54]Read from MH i2c: E2 62 00 [10:50:54]MH_I2C_Read... [10:50:54]Read from MH i2c: E2 62 00 19 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 D2 0A 01 00 0E 04 04 00 44 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 9E [10:50:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 D2 0A 01 00 0E 04 04 00 44 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 [10:50:54]wFMCommunicate OK [10:50:54]SAM_PROTO_GetFieldsCounters done [10:50:54]requested_item shift.num is exist - process it [10:50:54]requested_item shift.opened is exist - process it [10:50:54]req_shift_opened [10:50:54]FM_GetShiftState [10:50:54]SAM_PROTO_GetShiftState [10:50:54]wFMCommunicate request_size=4 [10:50:54]MH_SAM_APDU [10:50:54]CAPDU: 80 13 01 00 [10:50:54]Write to MH i2c: E2 08 00 1A 2B 80 13 01 00 00 00 00 00 C2 [10:50:54]Write i2c OK [10:50:54]MH_I2C_Read... [10:50:54]Read from MH i2c: E2 [10:50:54]MH_I2C_Read... [10:50:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:54]Read from MH i2c: E2 0E 00 [10:50:54]MH_I2C_Read... [10:50:54]Read from MH i2c: E2 0E 00 1A 2B 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 9D [10:50:54]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [10:50:54]wFMCommunicate OK [10:50:54]SAM_PROTO_GetShiftState done [10:50:54]FM_GetShiftState done [10:50:54]req_shift_opened done [10:50:54]requested_item shift.open_date is exist - process it [10:50:54]req_shift_open_date [10:50:54]req_shift_open_date done [10:50:54]produce_requested_data done [10:50:54]produce_requested_data return {"kkm.sn":"0300000181","kkm.ver":"001","fm.sn":"0000000000965400","fd.num":68306,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [10:50:54]process_action_free get_value [10:50:54]json_value_free [10:50:54]json_value_free done [10:50:54]process_json_proto returns [10:50:54]Send response to host [10:50:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000181","kkm.ver":"001","fm.sn":"0000000000965400","fd.num":68306,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [10:50:54]free response buf [10:50:54]execute_script done [10:50:54]execute_script returns [10:50:54]free content buf [10:50:54]Sock 7.Close socket [10:50:54]Sock 7.Thread stoped [10:50:54]accept exits with 5 [10:50:54]New connection [10:50:54]New thread 3066543460 created [10:50:54]Thread 3066686820 joined [10:50:54]Waiting for new connection... [10:50:54] Sock 5.Parse request [10:50:54]Sock 5.Check first char [10:50:54]Sock 5.First char is OK [10:50:54]request: POST /json_proto HTTP/1.0 [10:50:54]Method: POST [10:50:54]URL: /json_proto [10:50:54]Method is POST - this is cgi request [10:50:54]url: /json_proto [10:50:54]query_string will be loaded in cgi processing [10:50:54]execute_cgi json_proto POST (null) [10:50:54]execute_cgi path=json_proto method=POST [10:50:54]POST find Content-Length [10:50:54]Host: 172.17.36.132:8080 [10:50:54]Content-Length: 331 [10:50:54]Content-Type: application/json [10:50:54] [10:50:54]POST finish read [10:50:54]Found Content-Length = 331 [10:50:54]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:50:54]execute_script... [10:50:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [10:50:54]POST & json_proto [10:50:54]process_json_proto [10:50:54]json parsed OK: [10:50:54]protocol is kg_v1.0 [10:50:54]action value=get_value [10:50:54]process_action get_value [10:50:54]cmd_get_value [10:50:54]process_action get_value done [10:50:54]requested_data is exist [10:50:54]produce_requested_data [10:50:54]requested_item fm.sale.total is exist - process it [10:50:54]SAM_PROTO_GetFMData [10:50:54]wFMCommunicate request_size=4 [10:50:54]MH_SAM_APDU [10:50:54]CAPDU: 80 13 03 00 [10:50:54]Write to MH i2c: E2 08 00 1B 2B 80 13 03 00 00 00 00 00 C5 [10:50:54]Write i2c OK [10:50:54]MH_I2C_Read... [10:50:54]OFD Sender: No OFD packet to send [10:50:55]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [10:50:55]Read from MH i2c: E2 [10:50:55]MH_I2C_Read... [10:50:55]Read from MH i2c: E2 FD 00 [10:50:55]MH_I2C_Read... [10:50:55]Read from MH i2c: E2 FD 00 1B 2B 00 C5 04 85 04 C1 04 6E 04 04 00 4A 08 01 00 69 04 A3 00 6F 04 04 00 3C 03 01 00 B1 04 05 00 F3 01 93 38 01 70 04 05 00 B4 62 1D 0C 01 72 04 04 00 3F 9F 75 2C 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 9A 32 34 21 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 46 40 C4 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 0E 05 00 00 B1 04 04 00 7C 48 C3 0E 70 04 04 00 7C 48 C3 0E 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 34 65 91 01 EF 03 09 90 00 D0 [10:50:55]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 4A 08 01 00 69 04 A3 00 6F 04 04 00 3C 03 01 00 B1 04 05 00 F3 01 93 38 01 70 04 05 00 B4 62 1D 0C 01 72 04 04 00 3F 9F 75 2C 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 9A 32 34 21 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 46 40 C4 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 0E 05 00 00 B1 04 04 00 7C 48 C3 0E 70 04 04 00 7C 48 C3 0E 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 34 65 91 01 EF 03 09 90 00 [10:50:55]wFMCommunicate OK [10:50:55]wFMCommunicate request_size=4 [10:50:55]MH_SAM_APDU [10:50:55]CAPDU: 80 17 00 00 [10:50:55]Write to MH i2c: E2 08 00 1C 2B 80 17 00 00 00 00 00 00 C7 [10:50:55]Write i2c OK [10:50:55]MH_I2C_Read... [10:50:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:50:55]Read from MH i2c: E2 [10:50:55]MH_I2C_Read... [10:50:55]Read from MH i2c: E2 FD 00 [10:50:55]MH_I2C_Read... [10:50:55]Read from MH i2c: E2 FD 00 1C 2B 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A6 72 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 B6 [10:50:55]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A6 72 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [10:50:55]wFMCommunicate OK [10:50:55]wFMCommunicate request_size=4 [10:50:55]MH_SAM_APDU [10:50:55]CAPDU: 80 17 00 00 [10:50:55]Write to MH i2c: E2 08 00 1D 2B 80 17 00 00 00 00 00 00 C8 [10:50:55]Write i2c OK [10:50:55]MH_I2C_Read... [10:50:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:50:55]Read from MH i2c: E2 [10:50:55]MH_I2C_Read... [10:50:55]Read from MH i2c: E2 FD 00 [10:50:55]MH_I2C_Read... [10:50:55]Read from MH i2c: E2 FD 00 1D 2B 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 DA [10:50:55]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [10:50:55]wFMCommunicate OK [10:50:55]wFMCommunicate request_size=4 [10:50:55]MH_SAM_APDU [10:50:55]CAPDU: 80 17 00 00 [10:50:55]Write to MH i2c: E2 08 00 1E 2B 80 17 00 00 00 00 00 00 C9 [10:50:55]Write i2c OK [10:50:55]MH_I2C_Read... [10:50:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:50:55]Read from MH i2c: E2 [10:50:55]MH_I2C_Read... [10:50:55]Read from MH i2c: E2 FD 00 [10:50:55]MH_I2C_Read... [10:50:55]Read from MH i2c: E2 FD 00 1E 2B 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 55 [10:50:55]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [10:50:56]wFMCommunicate OK [10:50:56]wFMCommunicate request_size=4 [10:50:56]MH_SAM_APDU [10:50:56]CAPDU: 80 17 00 00 [10:50:56]Write to MH i2c: E2 08 00 1F 2B 80 17 00 00 00 00 00 00 CA [10:50:56]Write i2c OK [10:50:56]MH_I2C_Read... [10:50:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [10:50:56]Read from MH i2c: E2 [10:50:56]MH_I2C_Read... [10:50:56]Read from MH i2c: E2 E2 00 [10:50:56]MH_I2C_Read... [10:50:56]Read from MH i2c: E2 E2 00 1F 2B 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:50:56]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [10:50:56]wFMCommunicate OK [10:50:56]SAM_PROTO_GetFMData done [10:50:56]requested_item fm.sale_refund.total is exist - process it [10:50:56]requested_item fm.buy.total is exist - process it [10:50:56]requested_item shift.sale.total is exist - process it [10:50:56]SAM_PROTO_GetShiftData [10:50:56]wFMCommunicate request_size=4 [10:50:56]MH_SAM_APDU [10:50:56]CAPDU: 80 13 02 00 [10:50:56]Write to MH i2c: E2 08 00 20 2B 80 13 02 00 00 00 00 00 C9 [10:50:56]Write i2c OK [10:50:56]MH_I2C_Read... [10:50:56]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [10:50:56]Read from MH i2c: E2 [10:50:56]MH_I2C_Read... [10:50:56]Read from MH i2c: E2 FD 00 [10:50:56]MH_I2C_Read... [10:50:56]Read from MH i2c: E2 FD 00 20 2B 00 B8 04 AA 04 B4 04 6E 04 04 00 34 00 00 00 69 04 9B 00 6F 04 04 00 31 00 00 00 B1 04 03 00 41 D5 40 70 04 03 00 70 C3 26 72 04 03 00 D1 11 1A 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 DA E2 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E4 92 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 8C E0 06 70 04 03 00 8C E0 06 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 F6 BA EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 9A [10:50:56]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 34 00 00 00 69 04 9B 00 6F 04 04 00 31 00 00 00 B1 04 03 00 41 D5 40 70 04 03 00 70 C3 26 72 04 03 00 D1 11 1A 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 DA E2 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E4 92 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 8C E0 06 70 04 03 00 8C E0 06 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 F6 BA EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [10:50:56]wFMCommunicate OK [10:50:56]wFMCommunicate request_size=4 [10:50:56]MH_SAM_APDU [10:50:56]CAPDU: 80 17 00 00 [10:50:56]Write to MH i2c: E2 08 00 21 2B 80 17 00 00 00 00 00 00 CC [10:50:56]Write i2c OK [10:50:56]MH_I2C_Read... [10:50:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:50:57]Read from MH i2c: E2 [10:50:57]MH_I2C_Read... [10:50:57]Read from MH i2c: E2 FD 00 [10:50:57]MH_I2C_Read... [10:50:57]Read from MH i2c: E2 FD 00 21 2B 00 0B 00 F6 03 01 00 01 F7 03 02 00 94 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 A0 [10:50:57]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 94 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 [10:50:57]wFMCommunicate OK [10:50:57]wFMCommunicate request_size=4 [10:50:57]MH_SAM_APDU [10:50:57]CAPDU: 80 17 00 00 [10:50:57]Write to MH i2c: E2 08 00 22 2B 80 17 00 00 00 00 00 00 CD [10:50:57]Write i2c OK [10:50:57]MH_I2C_Read... [10:50:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:50:57]Read from MH i2c: E2 [10:50:57]MH_I2C_Read... [10:50:57]Read from MH i2c: E2 FD 00 [10:50:57]MH_I2C_Read... [10:50:57]Read from MH i2c: E2 FD 00 22 2B 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 6F [10:50:57]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 [10:50:57]wFMCommunicate OK [10:50:57]wFMCommunicate request_size=4 [10:50:57]MH_SAM_APDU [10:50:57]CAPDU: 80 17 00 00 [10:50:57]Write to MH i2c: E2 08 00 23 2B 80 17 00 00 00 00 00 00 CE [10:50:57]Write i2c OK [10:50:57]MH_I2C_Read... [10:50:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:50:57]Read from MH i2c: E2 [10:50:57]MH_I2C_Read... [10:50:57]Read from MH i2c: E2 FD 00 [10:50:57]MH_I2C_Read... [10:50:57]Read from MH i2c: E2 FD 00 23 2B 00 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 57 [10:50:57]RAPDU: 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 [10:50:57]wFMCommunicate OK [10:50:57]wFMCommunicate request_size=4 [10:50:57]MH_SAM_APDU [10:50:57]CAPDU: 80 17 00 00 [10:50:57]Write to MH i2c: E2 08 00 24 2B 80 17 00 00 00 00 00 00 CF [10:50:57]Write i2c OK [10:50:57]MH_I2C_Read... [10:50:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [10:50:57]Read from MH i2c: E2 [10:50:57]MH_I2C_Read... [10:50:57]Read from MH i2c: E2 D5 00 [10:50:57]MH_I2C_Read... [10:50:58]Read from MH i2c: E2 D5 00 24 2B 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 B0 [10:50:58]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [10:50:58]wFMCommunicate OK [10:50:58]SAM_PROTO_GetShiftData done [10:50:58]requested_item shift.sale.total_cash is exist - process it [10:50:58]requested_item shift.sale_refund.total is exist - process it [10:50:58]requested_item shift.sale_refund.total_cash is exist - process it [10:50:58]requested_item shift.buy.total is exist - process it [10:50:58]requested_item shift.buy.total_cash is exist - process it [10:50:58]produce_requested_data done [10:50:58]produce_requested_data return {"fm.sale.total":52441256.83,"fm.sale_refund.total":2476791.00,"fm.buy.total":0.00,"shift.sale.total":42488.97,"shift.sale.total_cash":25404.00,"shift.sale_refund.total":4507.00,"shift.sale_refund.total_cash":4507.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [10:50:58]process_action_free get_value [10:50:58]json_value_free [10:50:58]json_value_free done [10:50:58]process_json_proto returns [10:50:58]Send response to host [10:50:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":52441256.83,"fm.sale_refund.total":2476791.00,"fm.buy.total":0.00,"shift.sale.total":42488.97,"shift.sale.total_cash":25404.00,"shift.sale_refund.total":4507.00,"shift.sale_refund.total_cash":4507.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [10:50:58]free response buf [10:50:58]execute_script done [10:50:58]execute_script returns [10:50:58]free content buf [10:50:58]Sock 5.Close socket [10:50:58]Sock 5.Thread stoped [10:50:58]accept exits with 6 [10:50:58]New connection [10:50:58]New thread 3066686820 created [10:50:58]Thread 3066543460 joined [10:50:58]Waiting for new connection... [10:50:58] Sock 6.Parse request [10:50:58]Sock 6.Check first char [10:50:58]Sock 6.First char is OK [10:50:58]request: POST /json_proto HTTP/1.0 [10:50:58]Method: POST [10:50:58]URL: /json_proto [10:50:58]Method is POST - this is cgi request [10:50:58]url: /json_proto [10:50:58]query_string will be loaded in cgi processing [10:50:58]execute_cgi json_proto POST (null) [10:50:58]execute_cgi path=json_proto method=POST [10:50:58]POST find Content-Length [10:50:58]Host: 172.17.36.132:8080 [10:50:58]Content-Length: 144 [10:50:58]Content-Type: application/json [10:50:58] [10:50:58]POST finish read [10:50:58]Found Content-Length = 144 [10:50:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [10:50:58]execute_script... [10:50:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [10:50:58]POST & json_proto [10:50:58]process_json_proto [10:50:58]json parsed OK: [10:50:58]protocol is kg_v1.0 [10:50:58]action value=print_doc [10:50:58]process_action print_doc [10:50:58]ExternCall_PrintAddStr [10:50:58]wPrintStart [10:50:58]Write to MH i2c: 01 00 00 25 2B 50 [10:50:58]Write i2c OK [10:50:58]MH_I2C_Read... [10:50:58]Read from MH i2c: 01 [10:50:58]MH_I2C_Read... [10:50:58]Read from MH i2c: 01 07 00 [10:50:58]MH_I2C_Read... [10:50:58]Read from MH i2c: 01 07 00 25 2B 00 00 00 00 00 FF 0F 65 [10:50:58]RasterBufferAndPrint [10:50:58]line Счет N : (1)706379 [10:50:58]line ИНН: 02508201610067 [10:50:58]line Контрольно-Кассовый Чек [10:50:58]line ПРОДАЖА [10:50:58]line ТРК (МРК, ГНК) : 53 [10:50:58]line Товар: 2710124130 [10:50:58]line Аи-92-К-4 [10:50:58]line 7.480 * 66.90 [10:50:58]line = 500.41 [10:50:58]line НДС 12% НСП 1% [10:50:58]line > о реализуемом товаре [10:50:58]line ОКРУГЛЕНИЕ: -0.41 [10:50:58]line ИТОГО: 500.00 [10:50:58]line Внесено: 500.00 [10:50:58]line СДАЧА: 0.00 [10:50:58]line НСП 1% : 4.43 [10:50:58]line НДС 12% : 53.14 [10:50:58]line Наличными: 500.00 [10:50:58]line Безнал.: 0.00 [10:50:58]line Место: АЗС № 62 "Партнер Нефть" [10:50:58]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [10:50:58]line СНО: Общий режим [10:50:58]line Чек 52 03.06.2024 10:50 [10:50:58]line Смена: 324 ФФД: 1.0 [10:50:58]line ЗНМ: 0300000181 [10:50:58]line РНМ: 0000000000098096 [10:50:58]line Версия ККМ: 001 [10:50:58]line ФМ: 0000000000965400 [10:50:58]line ФД: 68306 [10:50:58]line ФПД: 25921078508364 [10:50:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T105052&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68306&fm=25921078508364&tin=02508201610067®Number=0000000000098096&sum=50000 [10:50:58]written 0, free lines is 4095 [10:50:58]Write to MH i2c: 01 00 00 50 2B 7B [10:50:58]Write i2c OK [10:50:58]MH_I2C_Read... [10:50:58]Read from MH i2c: 01 [10:50:58]MH_I2C_Read... [10:50:58]Read from MH i2c: 01 07 00 [10:50:58]MH_I2C_Read... [10:50:58]Read from MH i2c: 01 07 00 50 2B 00 00 00 00 00 DA 0C 68 [10:50:58]RasterBufferAndPrint [10:50:58]line [10:50:58]line [10:50:58]line [10:50:58]line [10:50:58]line [10:50:58]written 0, free lines is 3309 [10:50:58]MH_Cut [10:50:58]Write to MH i2c: D1 01 00 57 2B 01 54 [10:50:58]Write i2c OK [10:50:58]MH_I2C_Read... [10:50:58]Read from MH i2c: D1 [10:50:58]MH_I2C_Read... [10:50:58]Read from MH i2c: D1 01 00 [10:50:58]MH_I2C_Read... [10:50:58]Read from MH i2c: D1 01 00 57 2B 00 53 [10:50:58]Write to MH i2c: 01 00 00 58 2B 83 [10:50:58]Write i2c OK [10:50:58]MH_I2C_Read... [10:50:59]*** Cut start [10:50:59]*** Partial cut [10:50:59]*** CUTSNS_PIN = 1 [10:50:59]*** CUTSNS_PIN = 0 [10:50:59]*** Brake cut motor [10:51:00]OFD Sender: No OFD packet to send [10:51:00]Read from MH i2c: 01 [10:51:00]MH_I2C_Read... [10:51:00]*** Stop cut motor [10:51:00]*** Cut end [10:51:00]Read from MH i2c: 01 07 00 [10:51:00]MH_I2C_Read... [10:51:00]Read from MH i2c: 01 07 00 58 2B 00 00 00 00 00 FF 0F 98 [10:51:00]process_action print_doc done [10:51:00]requested_data is exist [10:51:00]produce_requested_data [10:51:00]produce_requested_data return (null) [10:51:00]process_action_free print_doc [10:51:00]json_value_free [10:51:00]json_value_free done [10:51:00]process_json_proto returns [10:51:00]Send response to host [10:51:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [10:51:00]free response buf [10:51:00]execute_script done [10:51:00]execute_script returns [10:51:00]free content buf [10:51:00]Sock 6.Close socket [10:51:00]Sock 6.Thread stoped [10:51:05]OFD Sender: No OFD packet to send [10:51:10]OFD Sender: No OFD packet to send [10:51:15]OFD Sender: No OFD packet to send [10:51:20]OFD Sender: No OFD packet to send [10:51:25]OFD Sender: No OFD packet to send [10:51:30]OFD Sender: No OFD packet to send [10:51:35]OFD Sender: No OFD packet to send [10:51:40]OFD Sender: No OFD packet to send [10:51:45]OFD Sender: No OFD packet to send [10:51:50]OFD Sender: No OFD packet to send [10:51:55]OFD Sender: No OFD packet to send [10:52:00]OFD Sender: No OFD packet to send [10:52:05]OFD Sender: No OFD packet to send [10:52:10]OFD Sender: No OFD packet to send [10:52:15]OFD Sender: No OFD packet to send [10:52:20]OFD Sender: No OFD packet to send [10:52:25]OFD Sender: No OFD packet to send [10:52:30]OFD Sender: No OFD packet to send [10:52:35]OFD Sender: No OFD packet to send [10:52:40]OFD Sender: No OFD packet to send [10:52:45]OFD Sender: No OFD packet to send [10:52:50]OFD Sender: No OFD packet to send [10:52:55]OFD Sender: No OFD packet to send [10:53:00]OFD Sender: No OFD packet to send [10:53:05]OFD Sender: No OFD packet to send [10:53:10]OFD Sender: No OFD packet to send [10:53:15]OFD Sender: No OFD packet to send [10:53:20]OFD Sender: No OFD packet to send [10:53:25]OFD Sender: No OFD packet to send [10:53:30]OFD Sender: No OFD packet to send [10:53:35]OFD Sender: No OFD packet to send [10:53:40]OFD Sender: No OFD packet to send [10:53:45]OFD Sender: No OFD packet to send [10:53:50]OFD Sender: No OFD packet to send [10:53:55]OFD Sender: No OFD packet to send [10:54:00]OFD Sender: No OFD packet to send [10:54:05]OFD Sender: No OFD packet to send [10:54:10]OFD Sender: No OFD packet to send [10:54:15]OFD Sender: No OFD packet to send [10:54:20]OFD Sender: No OFD packet to send [10:54:25]OFD Sender: No OFD packet to send [10:54:26]accept exits with 5 [10:54:26]New connection [10:54:26]New thread 3066543460 created [10:54:26]Thread 3066686820 joined [10:54:26]Waiting for new connection... [10:54:26] Sock 5.Parse request [10:54:26]Sock 5.Check first char [10:54:26]Sock 5.First char is OK [10:54:26]request: POST /json_proto HTTP/1.0 [10:54:26]Method: POST [10:54:26]URL: /json_proto [10:54:26]Method is POST - this is cgi request [10:54:26]url: /json_proto [10:54:26]query_string will be loaded in cgi processing [10:54:26]execute_cgi json_proto POST (null) [10:54:26]execute_cgi path=json_proto method=POST [10:54:26]POST find Content-Length [10:54:26]Host: 172.17.36.132:8080 [10:54:26]Content-Length: 678 [10:54:26]Content-Type: application/json [10:54:26] [10:54:26]POST finish read [10:54:26]Found Content-Length = 678 [10:54:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706380", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:26]execute_script... [10:54:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706380", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:26]POST & json_proto [10:54:26]process_json_proto [10:54:26]json parsed OK: [10:54:26]protocol is kg_v1.0 [10:54:26]action value=close_receipt [10:54:26]process_action close_receipt [10:54:26]cmd_close_receipt [10:54:26]MH_GetDate [10:54:26]Write to MH i2c: F0 00 00 59 2B 73 [10:54:26]Write i2c OK [10:54:26]MH_I2C_Read... [10:54:26]Read from MH i2c: F0 [10:54:26]MH_I2C_Read... [10:54:26]Read from MH i2c: F0 09 00 [10:54:26]MH_I2C_Read... [10:54:26]Read from MH i2c: F0 09 00 59 2B 00 E6 A0 5D 66 B2 22 B0 64 AD [10:54:26]GetLastDocTimeStamp 1717411852 [10:54:26]current date 1717412070 [10:54:26]FM_GetShiftState [10:54:26]SAM_PROTO_GetShiftState [10:54:26]wFMCommunicate request_size=4 [10:54:26]MH_SAM_APDU [10:54:26]CAPDU: 80 13 01 00 [10:54:26]Write to MH i2c: E2 08 00 5A 2B 80 13 01 00 00 00 00 00 02 [10:54:26]Write i2c OK [10:54:26]MH_I2C_Read... [10:54:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:26]Read from MH i2c: E2 [10:54:26]MH_I2C_Read... [10:54:26]Read from MH i2c: E2 0E 00 [10:54:26]MH_I2C_Read... [10:54:26]Read from MH i2c: E2 0E 00 5A 2B 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 DD [10:54:26]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [10:54:26]wFMCommunicate OK [10:54:26]SAM_PROTO_GetShiftState done [10:54:26]FM_GetShiftState done [10:54:26]opened in 1717378033 [10:54:26]opened+sec_in_day 1717464433 [10:54:26]quantity*price = 80012 [10:54:26]sum+1 = 80013 [10:54:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 53 03.06.2024 10:54 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68307 ФПД: 24497461043711 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T105430&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68307&fm=24497461043711&tin=02508201610067®Number=0000000000098096&sum=80000 [10:54:27]StoreToDocumentArchive [10:54:27]shift 324 fd 68307 [10:54:27]save to /storage/0324/doc_00068307 [10:54:27]save last doc name /storage/0324/doc_00068307 to /storage/kkm_last_doc_name [10:54:27]save OK [10:54:27]Clear old archive folders... [10:54:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:54:27]tlvbuf is 00265AA0 [10:54:27]SAM_PROTO_ClearQueue [10:54:27]wFMCommunicate request_size=4 [10:54:27]MH_SAM_APDU [10:54:27]CAPDU: 80 09 00 00 [10:54:27]Write to MH i2c: E2 08 00 67 2B 80 09 00 00 00 00 00 00 04 [10:54:27]Write i2c OK [10:54:27]MH_I2C_Read... [10:54:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:54:27]Read from MH i2c: E2 [10:54:27]MH_I2C_Read... [10:54:27]Read from MH i2c: E2 03 00 [10:54:27]MH_I2C_Read... [10:54:27]Read from MH i2c: E2 03 00 67 2B 00 90 00 06 [10:54:27]RAPDU: 90 00 [10:54:27]wFMCommunicate OK [10:54:27]SAM_PROTO_ClearQueue done [10:54:27]KKMCreateOFDPacket [10:54:27]OFDProtocolAddRootSTLVToBuf [10:54:27]FM_MakeSignedData [10:54:27]FM_MakeSignedData [10:54:27]SAM_PROTO_SignData [10:54:27]wFMCommunicate request_size=4 [10:54:27]MH_SAM_APDU [10:54:27]CAPDU: 80 0D 01 02 [10:54:27]Write to MH i2c: E2 08 00 68 2B 80 0D 01 02 00 00 00 00 0C [10:54:27]Write i2c OK [10:54:27]MH_I2C_Read... [10:54:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:54:27]Read from MH i2c: E2 [10:54:27]MH_I2C_Read... [10:54:27]Read from MH i2c: E2 03 00 [10:54:27]MH_I2C_Read... [10:54:27]Read from MH i2c: E2 03 00 68 2B 00 90 00 07 [10:54:27]RAPDU: 90 00 [10:54:27]wFMCommunicate OK [10:54:27]wFMCommunicate request_size=255 [10:54:27]MH_SAM_APDU [10:54:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 E6 A0 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D3 0A 01 00 35 04 06 00 16 [10:54:27]Write to MH i2c: E2 02 01 69 2B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 E6 A0 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D3 0A 01 00 35 04 06 00 16 00 00 3C [10:54:27]Write i2c OK [10:54:27]MH_I2C_Read... [10:54:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:27]Read from MH i2c: E2 [10:54:27]MH_I2C_Read... [10:54:27]Read from MH i2c: E2 03 00 [10:54:27]MH_I2C_Read... [10:54:27]Read from MH i2c: E2 03 00 69 2B 00 90 00 08 [10:54:27]RAPDU: 90 00 [10:54:27]wFMCommunicate OK [10:54:27]wFMCommunicate request_size=10 [10:54:27]MH_SAM_APDU [10:54:27]CAPDU: 80 0D 02 02 05 47 C2 76 A1 FF [10:54:27]Write to MH i2c: E2 0D 00 6A 2B 80 0D 02 02 05 00 47 C2 76 A1 FF 00 00 38 [10:54:27]Write i2c OK [10:54:27]MH_I2C_Read... [10:54:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:27]Read from MH i2c: E2 [10:54:27]MH_I2C_Read... [10:54:27]Read from MH i2c: E2 03 00 [10:54:27]MH_I2C_Read... [10:54:27]Read from MH i2c: E2 03 00 6A 2B 00 90 00 09 [10:54:27]RAPDU: 90 00 [10:54:27]wFMCommunicate OK [10:54:27]wFMCommunicate request_size=4 [10:54:27]MH_SAM_APDU [10:54:27]CAPDU: 80 0D 03 02 [10:54:27]Write to MH i2c: E2 08 00 6B 2B 80 0D 03 02 00 00 00 00 11 [10:54:27]Write i2c OK [10:54:27]MH_I2C_Read... [10:54:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:54:27]Read from MH i2c: E2 [10:54:27]MH_I2C_Read... [10:54:27]Read from MH i2c: E2 0B 00 [10:54:27]MH_I2C_Read... [10:54:27]Read from MH i2c: E2 0B 00 6B 2B 00 55 2F FE 05 DC 05 FA DA 90 00 4E [10:54:27]RAPDU: 55 2F FE 05 DC 05 FA DA 90 00 [10:54:27]wFMCommunicate OK [10:54:27]SAM_PROTO_SignData done [10:54:27]FM_MakeSignedData done [10:54:27]CreateOFDProtocolMessage [10:54:27]wFMCommunicate request_size=4 [10:54:27]MH_SAM_APDU [10:54:27]CAPDU: 80 11 00 00 [10:54:27]Write to MH i2c: E2 08 00 6C 2B 80 11 00 00 00 00 00 00 11 [10:54:27]Write i2c OK [10:54:27]MH_I2C_Read... [10:54:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:27]Read from MH i2c: E2 [10:54:27]MH_I2C_Read... [10:54:27]Read from MH i2c: E2 17 00 [10:54:27]MH_I2C_Read... [10:54:27]Read from MH i2c: E2 17 00 6C 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 5C [10:54:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [10:54:27]wFMCommunicate OK [10:54:27]CreateOFDProtocolMessage done [10:54:27]OFDSenderStorePacket 68307 [10:54:27]StoreOFDPacket docnum=68307 [10:54:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 FE 74 07 01 81 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 E6 A0 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D3 0A 01 00 35 04 06 00 16 47 C2 76 A1 FF 55 2F FE 05 DC 05 FA DA [10:54:27]CheckFolder [10:54:27]dirname=/storage/ofd_packets [10:54:27]CheckFolder done [10:54:27]ProducePacketName [10:54:27]name=ofd_packets/00068307 [10:54:27]NVStorageSaveData ofd_packets/00068307 [10:54:27]File name is /storage/ofd_packets/00068307 [10:54:27]Write 301 bytes [10:54:27]NVStorageSaveData done [10:54:27]OFDSenderStorePacket done [10:54:27]KKMCreateOFDPacket done [10:54:27]NVStorageSaveData kkm_last_timestamp [10:54:27]File name is /storage/kkm_last_timestamp [10:54:27]Write 4 bytes [10:54:27]NVStorageSaveData done [10:54:27]ExternCall_PrintAddStr [10:54:27]wPrintStart [10:54:27]Write to MH i2c: 01 00 00 6D 2B 98 [10:54:27]Write i2c OK [10:54:27]MH_I2C_Read... [10:54:27]Read from MH i2c: 01 [10:54:27]MH_I2C_Read... [10:54:27]Read from MH i2c: 01 07 00 [10:54:27]MH_I2C_Read... [10:54:27]Read from MH i2c: 01 07 00 6D 2B 00 00 00 00 00 FF 0F AD [10:54:27]RasterBufferAndPrint [10:54:27]line Счет N : (1)706380 [10:54:27]line ИНН: 02508201610067 [10:54:27]line Контрольно-Кассовый Чек [10:54:27]line ПРОДАЖА [10:54:27]line ТРК (МРК, ГНК) : 13 [10:54:27]line Товар: 2710124130 [10:54:27]line Аи-92-К-4 [10:54:27]line 11.960 * 66.90 [10:54:27]line = 800.12 [10:54:27]line НДС 12% НСП 1% [10:54:27]line > о реализуемом товаре [10:54:27]line ОКРУГЛЕНИЕ: -0.12 [10:54:27]line ИТОГО: 800.00 [10:54:27]line Внесено: 800.00 [10:54:27]line СДАЧА: 0.00 [10:54:27]line НСП 1% : 7.08 [10:54:27]line НДС 12% : 84.97 [10:54:27]line Наличными: 800.00 [10:54:27]line Безнал.: 0.00 [10:54:27]line Место: АЗС № 62 "Партнер Нефть" [10:54:27]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [10:54:27]line СНО: Общий режим [10:54:27]line Чек 53 03.06.2024 10:54 [10:54:27]line Смена: 324 ФФД: 1.0 [10:54:27]line ЗНМ: 0300000181 [10:54:27]line РНМ: 0000000000098096 [10:54:27]line Версия ККМ: 001 [10:54:27]line ФМ: 0000000000965400 [10:54:27]line ФД: 68307 [10:54:27]line ФПД: 24497461043711 [10:54:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T105430&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68307&fm=24497461043711&tin=02508201610067®Number=0000000000098096&sum=80000 [10:54:28]OFD Sender: Processing packet 68307 [packets to send 26, broken 25] [10:54:28]ProducePacketName [10:54:28]name=ofd_packets/00068307 [10:54:28]OFD Sender: To server: pG, [10:54:28]CommunicateWithHost lk.salyk.kg:30040 [10:54:28]ConnectInit lk.salyk.kg [10:54:28]written 0, free lines is 4095 [10:54:28]Connected sock=7 [10:54:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 FE 74 07 01 81 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 E6 A0 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D3 0A 01 00 35 04 06 00 16 47 C2 76 A1 FF 55 2F FE 05 DC 05 FA DA [10:54:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 73 88 47 00 53 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D3 0A 01 00 F4 03 04 00 E3 47 5D 66 B6 04 01 00 00 D7 64 F3 73 F2 68 6F 7C [10:54:28]CommunicateWithHost err = 0 [10:54:28]CheckOFDResponse [10:54:28]1017 (14) - 77093643461234 [10:54:28]1041 (16) - 0000000000965400 [10:54:28]1040 (4) - 68307 [10:54:28]1012 (4) - 03.06.2024 04:34 [10:54:28]1206 (1) - 0 [10:54:28]OFD Sender: Remove packet 68307 [10:54:28]ProducePacketName [10:54:28]name=ofd_packets/00068307 [10:54:28]NVStorageDeleteData [10:54:28]Write to MH i2c: 01 00 00 98 2B C3 [10:54:28]Write i2c OK [10:54:28]MH_I2C_Read... [10:54:28]Read from MH i2c: 01 [10:54:28]MH_I2C_Read... [10:54:28]Read from MH i2c: 01 07 00 [10:54:28]MH_I2C_Read... [10:54:28]Read from MH i2c: 01 07 00 98 2B 00 00 00 00 00 E4 0C BA [10:54:28]RasterBufferAndPrint [10:54:28]line [10:54:28]line [10:54:28]line [10:54:28]line [10:54:28]line [10:54:28]written 0, free lines is 3306 [10:54:28]MH_Cut [10:54:28]Write to MH i2c: D1 01 00 9F 2B 01 9C [10:54:28]Write i2c OK [10:54:28]MH_I2C_Read... [10:54:28]Read from MH i2c: D1 [10:54:28]MH_I2C_Read... [10:54:28]Read from MH i2c: D1 01 00 [10:54:28]MH_I2C_Read... [10:54:28]Read from MH i2c: D1 01 00 9F 2B 00 9B [10:54:28]Write to MH i2c: 01 00 00 A0 2B CB [10:54:28]Write i2c OK [10:54:28]MH_I2C_Read... [10:54:28]OFD Sender: No OFD packet to send [10:54:29]*** Cut start [10:54:29]*** Partial cut [10:54:29]*** CUTSNS_PIN = 1 [10:54:29]*** CUTSNS_PIN = 0 [10:54:29]*** Brake cut motor [10:54:30]Read from MH i2c: 01 [10:54:30]MH_I2C_Read... [10:54:30]*** Stop cut motor [10:54:30]*** Cut end [10:54:30]Read from MH i2c: 01 07 00 [10:54:30]MH_I2C_Read... [10:54:30]Read from MH i2c: 01 07 00 A0 2B 00 00 00 00 00 FF 0F E0 [10:54:30]process_action close_receipt done [10:54:30]requested_data is exist [10:54:30]produce_requested_data [10:54:30]requested_item fm.sn is exist - process it [10:54:30]wFMCommunicate request_size=4 [10:54:30]MH_SAM_APDU [10:54:30]CAPDU: 80 11 00 00 [10:54:30]Write to MH i2c: E2 08 00 A1 2B 80 11 00 00 00 00 00 00 46 [10:54:30]Write i2c OK [10:54:30]MH_I2C_Read... [10:54:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:30]Read from MH i2c: E2 [10:54:30]MH_I2C_Read... [10:54:30]Read from MH i2c: E2 17 00 [10:54:30]MH_I2C_Read... [10:54:30]Read from MH i2c: E2 17 00 A1 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 91 [10:54:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [10:54:30]wFMCommunicate OK [10:54:30]requested_item fd.num is exist - process it [10:54:30]SAM_PROTO_GetFieldsCounters [10:54:30]wFMCommunicate request_size=4 [10:54:30]MH_SAM_APDU [10:54:30]CAPDU: 80 13 00 00 [10:54:30]Write to MH i2c: E2 08 00 A2 2B 80 13 00 00 00 00 00 00 49 [10:54:30]Write i2c OK [10:54:30]MH_I2C_Read... [10:54:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:54:30]Read from MH i2c: E2 [10:54:30]MH_I2C_Read... [10:54:30]Read from MH i2c: E2 62 00 [10:54:30]MH_I2C_Read... [10:54:30]Read from MH i2c: E2 62 00 A2 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 D3 0A 01 00 0E 04 04 00 44 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 2B [10:54:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 D3 0A 01 00 0E 04 04 00 44 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 [10:54:30]wFMCommunicate OK [10:54:30]SAM_PROTO_GetFieldsCounters done [10:54:30]requested_item shift.num is exist - process it [10:54:30]requested_item shift.opened is exist - process it [10:54:30]req_shift_opened [10:54:30]FM_GetShiftState [10:54:30]SAM_PROTO_GetShiftState [10:54:30]wFMCommunicate request_size=4 [10:54:30]MH_SAM_APDU [10:54:30]CAPDU: 80 13 01 00 [10:54:30]Write to MH i2c: E2 08 00 A3 2B 80 13 01 00 00 00 00 00 4B [10:54:30]Write i2c OK [10:54:30]MH_I2C_Read... [10:54:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:30]Read from MH i2c: E2 [10:54:30]MH_I2C_Read... [10:54:30]Read from MH i2c: E2 0E 00 [10:54:30]MH_I2C_Read... [10:54:30]Read from MH i2c: E2 0E 00 A3 2B 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 26 [10:54:30]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [10:54:30]wFMCommunicate OK [10:54:30]SAM_PROTO_GetShiftState done [10:54:30]FM_GetShiftState done [10:54:30]req_shift_opened done [10:54:30]requested_item shift.open_date is exist - process it [10:54:30]req_shift_open_date [10:54:30]req_shift_open_date done [10:54:30]produce_requested_data done [10:54:30]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68307,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [10:54:30]process_action_free close_receipt [10:54:30]json_value_free [10:54:30]json_value_free done [10:54:30]process_json_proto returns [10:54:30]Send response to host [10:54:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68307,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [10:54:30]free response buf [10:54:30]execute_script done [10:54:30]execute_script returns [10:54:30]free content buf [10:54:30]Sock 5.Close socket [10:54:30]Sock 5.Thread stoped [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:29]OFD Sender: No OFD packet to send [10:55:34]OFD Sender: No OFD packet to send [10:55:39]OFD Sender: No OFD packet to send [10:55:44]OFD Sender: No OFD packet to send [10:55:49]OFD Sender: No OFD packet to send [10:55:54]OFD Sender: No OFD packet to send [10:55:59]OFD Sender: No OFD packet to send [10:56:04]OFD Sender: No OFD packet to send [10:56:09]OFD Sender: No OFD packet to send [10:56:14]OFD Sender: No OFD packet to send [10:56:19]OFD Sender: No OFD packet to send [10:56:24]OFD Sender: No OFD packet to send [10:56:29]OFD Sender: No OFD packet to send [10:56:34]OFD Sender: No OFD packet to send [10:56:39]OFD Sender: No OFD packet to send [10:56:44]OFD Sender: No OFD packet to send [10:56:49]OFD Sender: No OFD packet to send [10:56:54]OFD Sender: No OFD packet to send [10:56:59]OFD Sender: No OFD packet to send [10:57:04]OFD Sender: No OFD packet to send [10:57:09]OFD Sender: No OFD packet to send [10:57:14]OFD Sender: No OFD packet to send [10:57:19]OFD Sender: No OFD packet to send [10:57:24]OFD Sender: No OFD packet to send [10:57:29]OFD Sender: No OFD packet to send [10:57:34]OFD Sender: No OFD packet to send [10:57:39]OFD Sender: No OFD packet to send [10:57:44]OFD Sender: No OFD packet to send [10:57:49]OFD Sender: No OFD packet to send [10:57:54]OFD Sender: No OFD packet to send [10:57:59]OFD Sender: No OFD packet to send [10:58:04]OFD Sender: No OFD packet to send [10:58:09]OFD Sender: No OFD packet to send [10:58:14]OFD Sender: No OFD packet to send [10:58:19]OFD Sender: No OFD packet to send [10:58:24]OFD Sender: No OFD packet to send [10:58:29]OFD Sender: No OFD packet to send [10:58:34]OFD Sender: No OFD packet to send [10:58:39]OFD Sender: No OFD packet to send [10:58:44]OFD Sender: No OFD packet to send [10:58:49]OFD Sender: No OFD packet to send [10:58:54]OFD Sender: No OFD packet to send [10:58:59]OFD Sender: No OFD packet to send [10:59:04]OFD Sender: No OFD packet to send [10:59:09]OFD Sender: No OFD packet to send [10:59:14]OFD Sender: No OFD packet to send [10:59:19]OFD Sender: No OFD packet to send [10:59:24]OFD Sender: No OFD packet to send [10:59:29]OFD Sender: No OFD packet to send [10:59:34]OFD Sender: No OFD packet to send [10:59:39]OFD Sender: No OFD packet to send [10:59:44]OFD Sender: No OFD packet to send [10:59:49]OFD Sender: No OFD packet to send [10:59:54]OFD Sender: No OFD packet to send [10:59:59]OFD Sender: No OFD packet to send [11:00:04]OFD Sender: No OFD packet to send [11:00:09]OFD Sender: No OFD packet to send [11:00:14]OFD Sender: No OFD packet to send [11:00:19]OFD Sender: No OFD packet to send [11:00:24]OFD Sender: No OFD packet to send [11:00:29]OFD Sender: No OFD packet to send [11:00:34]OFD Sender: No OFD packet to send [11:00:39]OFD Sender: No OFD packet to send [11:00:44]OFD Sender: No OFD packet to send [11:00:49]OFD Sender: No OFD packet to send [11:00:54]OFD Sender: No OFD packet to send [11:00:59]OFD Sender: No OFD packet to send [11:01:04]OFD Sender: No OFD packet to send [11:01:09]OFD Sender: No OFD packet to send [11:01:14]OFD Sender: No OFD packet to send [11:01:19]OFD Sender: No OFD packet to send [11:01:24]OFD Sender: No OFD packet to send [11:01:29]OFD Sender: No OFD packet to send [11:01:34]OFD Sender: No OFD packet to send [11:01:39]OFD Sender: No OFD packet to send [11:01:44]OFD Sender: No OFD packet to send [11:01:49]OFD Sender: No OFD packet to send [11:01:54]OFD Sender: No OFD packet to send [11:01:59]OFD Sender: No OFD packet to send [11:02:04]OFD Sender: No OFD packet to send [11:02:09]OFD Sender: No OFD packet to send [11:02:14]OFD Sender: No OFD packet to send [11:02:19]OFD Sender: No OFD packet to send [11:02:24]OFD Sender: No OFD packet to send [11:02:29]OFD Sender: No OFD packet to send [11:02:34]OFD Sender: No OFD packet to send [11:02:39]OFD Sender: No OFD packet to send [11:02:44]OFD Sender: No OFD packet to send [11:02:49]OFD Sender: No OFD packet to send [11:02:54]OFD Sender: No OFD packet to send [11:02:58]accept exits with 6 [11:02:58]New connection [11:02:58]New thread 3066686820 created [11:02:58]Thread 3066543460 joined [11:02:58]Waiting for new connection... [11:02:58] Sock 6.Parse request [11:02:58]Sock 6.Check first char [11:02:58]Sock 6.First char is OK [11:02:58]request: POST /json_proto HTTP/1.0 [11:02:58]Method: POST [11:02:58]URL: /json_proto [11:02:58]Method is POST - this is cgi request [11:02:58]url: /json_proto [11:02:58]query_string will be loaded in cgi processing [11:02:58]execute_cgi json_proto POST (null) [11:02:58]execute_cgi path=json_proto method=POST [11:02:58]POST find Content-Length [11:02:58]Host: 172.17.36.132:8080 [11:02:58]Content-Length: 677 [11:02:58]Content-Type: application/json [11:02:58] [11:02:58]POST finish read [11:02:58]Found Content-Length = 677 [11:02:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706381", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:58]execute_script... [11:02: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)706381", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:58]POST & json_proto [11:02:58]process_json_proto [11:02:58]json parsed OK: [11:02:58]protocol is kg_v1.0 [11:02:58]action value=close_receipt [11:02:58]process_action close_receipt [11:02:58]cmd_close_receipt [11:02:58]MH_GetDate [11:02:58]Write to MH i2c: F0 00 00 A4 2B BE [11:02:58]Write i2c OK [11:02:58]MH_I2C_Read... [11:02:58]Read from MH i2c: F0 [11:02:58]MH_I2C_Read... [11:02:58]Read from MH i2c: F0 09 00 [11:02:58]MH_I2C_Read... [11:02:58]Read from MH i2c: F0 09 00 A4 2B 00 E6 A2 5D 66 B2 22 B0 64 FA [11:02:58]GetLastDocTimeStamp 1717412070 [11:02:58]current date 1717412582 [11:02:58]FM_GetShiftState [11:02:58]SAM_PROTO_GetShiftState [11:02:58]wFMCommunicate request_size=4 [11:02:58]MH_SAM_APDU [11:02:58]CAPDU: 80 13 01 00 [11:02:58]Write to MH i2c: E2 08 00 A5 2B 80 13 01 00 00 00 00 00 4D [11:02:58]Write i2c OK [11:02:58]MH_I2C_Read... [11:02:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:58]Read from MH i2c: E2 [11:02:58]MH_I2C_Read... [11:02:58]Read from MH i2c: E2 0E 00 [11:02:58]MH_I2C_Read... [11:02:58]Read from MH i2c: E2 0E 00 A5 2B 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 28 [11:02:58]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [11:02:58]wFMCommunicate OK [11:02:58]SAM_PROTO_GetShiftState done [11:02:58]FM_GetShiftState done [11:02:58]opened in 1717378033 [11:02:58]opened+sec_in_day 1717464433 [11:02:58]quantity*price = 60009 [11:02:58]sum+1 = 60010 [11:02:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 54 03.06.2024 11:03 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68308 ФПД: 138814541382448 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T110302&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68308&fm=138814541382448&tin=02508201610067®Number=0000000000098096&sum=60000 [11:02:59]StoreToDocumentArchive [11:02:59]shift 324 fd 68308 [11:02:59]save to /storage/0324/doc_00068308 [11:02:59]save last doc name /storage/0324/doc_00068308 to /storage/kkm_last_doc_name [11:02:59]save OK [11:02:59]Clear old archive folders... [11:02:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:02:59]tlvbuf is 0023A5B0 [11:02:59]SAM_PROTO_ClearQueue [11:02:59]wFMCommunicate request_size=4 [11:02:59]MH_SAM_APDU [11:02:59]CAPDU: 80 09 00 00 [11:02:59]Write to MH i2c: E2 08 00 B2 2B 80 09 00 00 00 00 00 00 4F [11:02:59]Write i2c OK [11:02:59]MH_I2C_Read... [11:02:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:02:59]Read from MH i2c: E2 [11:02:59]MH_I2C_Read... [11:02:59]Read from MH i2c: E2 03 00 [11:02:59]MH_I2C_Read... [11:02:59]Read from MH i2c: E2 03 00 B2 2B 00 90 00 51 [11:02:59]RAPDU: 90 00 [11:02:59]wFMCommunicate OK [11:02:59]SAM_PROTO_ClearQueue done [11:02:59]KKMCreateOFDPacket [11:02:59]OFDProtocolAddRootSTLVToBuf [11:02:59]FM_MakeSignedData [11:02:59]FM_MakeSignedData [11:02:59]SAM_PROTO_SignData [11:02:59]wFMCommunicate request_size=4 [11:02:59]MH_SAM_APDU [11:02:59]CAPDU: 80 0D 01 02 [11:02:59]Write to MH i2c: E2 08 00 B3 2B 80 0D 01 02 00 00 00 00 57 [11:02:59]Write i2c OK [11:02:59]MH_I2C_Read... [11:02:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:02:59]Read from MH i2c: E2 [11:02:59]MH_I2C_Read... [11:02:59]Read from MH i2c: E2 03 00 [11:02:59]MH_I2C_Read... [11:02:59]Read from MH i2c: E2 03 00 B3 2B 00 90 00 52 [11:02:59]RAPDU: 90 00 [11:02:59]wFMCommunicate OK [11:02:59]wFMCommunicate request_size=255 [11:02:59]MH_SAM_APDU [11:02:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 E6 A2 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D4 0A 01 00 35 04 06 00 7E [11:02:59]Write to MH i2c: E2 02 01 B4 2B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 E6 A2 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D4 0A 01 00 35 04 06 00 7E 00 00 E4 [11:02:59]Write i2c OK [11:02:59]MH_I2C_Read... [11:02:59]OFD Sender: No OFD packet to send [11:02:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:59]Read from MH i2c: E2 [11:02:59]MH_I2C_Read... [11:02:59]Read from MH i2c: E2 03 00 [11:02:59]MH_I2C_Read... [11:02:59]Read from MH i2c: E2 03 00 B4 2B 00 90 00 53 [11:02:59]RAPDU: 90 00 [11:02:59]wFMCommunicate OK [11:02:59]wFMCommunicate request_size=10 [11:02:59]MH_SAM_APDU [11:02:59]CAPDU: 80 0D 02 02 05 40 47 6D C3 30 [11:02:59]Write to MH i2c: E2 0D 00 B5 2B 80 0D 02 02 05 00 40 47 6D C3 30 00 00 4B [11:02:59]Write i2c OK [11:02:59]MH_I2C_Read... [11:02:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:59]Read from MH i2c: E2 [11:02:59]MH_I2C_Read... [11:02:59]Read from MH i2c: E2 03 00 [11:02:59]MH_I2C_Read... [11:02:59]Read from MH i2c: E2 03 00 B5 2B 00 90 00 54 [11:02:59]RAPDU: 90 00 [11:02:59]wFMCommunicate OK [11:02:59]wFMCommunicate request_size=4 [11:02:59]MH_SAM_APDU [11:02:59]CAPDU: 80 0D 03 02 [11:02:59]Write to MH i2c: E2 08 00 B6 2B 80 0D 03 02 00 00 00 00 5C [11:02:59]Write i2c OK [11:02:59]MH_I2C_Read... [11:02:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:02:59]Read from MH i2c: E2 [11:02:59]MH_I2C_Read... [11:02:59]Read from MH i2c: E2 0B 00 [11:02:59]MH_I2C_Read... [11:02:59]Read from MH i2c: E2 0B 00 B6 2B 00 FD 2D 87 D0 01 24 E3 86 90 00 6C [11:02:59]RAPDU: FD 2D 87 D0 01 24 E3 86 90 00 [11:02:59]wFMCommunicate OK [11:02:59]SAM_PROTO_SignData done [11:02:59]FM_MakeSignedData done [11:02:59]CreateOFDProtocolMessage [11:02:59]wFMCommunicate request_size=4 [11:02:59]MH_SAM_APDU [11:02:59]CAPDU: 80 11 00 00 [11:02:59]Write to MH i2c: E2 08 00 B7 2B 80 11 00 00 00 00 00 00 5C [11:02:59]Write i2c OK [11:02:59]MH_I2C_Read... [11:02:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:59]Read from MH i2c: E2 [11:02:59]MH_I2C_Read... [11:02:59]Read from MH i2c: E2 17 00 [11:02:59]MH_I2C_Read... [11:02:59]Read from MH i2c: E2 17 00 B7 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 A7 [11:02:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [11:02:59]wFMCommunicate OK [11:02:59]CreateOFDProtocolMessage done [11:02:59]OFDSenderStorePacket 68308 [11:02:59]StoreOFDPacket docnum=68308 [11:02:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 98 DD 07 01 DB 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 E6 A2 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D4 0A 01 00 35 04 06 00 7E 40 47 6D C3 30 FD 2D 87 D0 01 24 E3 86 [11:02:59]CheckFolder [11:02:59]dirname=/storage/ofd_packets [11:02:59]CheckFolder done [11:02:59]ProducePacketName [11:02:59]name=ofd_packets/00068308 [11:02:59]NVStorageSaveData ofd_packets/00068308 [11:02:59]File name is /storage/ofd_packets/00068308 [11:02:59]Write 301 bytes [11:02:59]NVStorageSaveData done [11:02:59]OFDSenderStorePacket done [11:02:59]KKMCreateOFDPacket done [11:02:59]NVStorageSaveData kkm_last_timestamp [11:02:59]File name is /storage/kkm_last_timestamp [11:02:59]Write 4 bytes [11:02:59]NVStorageSaveData done [11:02:59]ExternCall_PrintAddStr [11:02:59]wPrintStart [11:02:59]Write to MH i2c: 01 00 00 B8 2B E3 [11:02:59]Write i2c OK [11:02:59]MH_I2C_Read... [11:02:59]Read from MH i2c: 01 [11:02:59]MH_I2C_Read... [11:02:59]Read from MH i2c: 01 07 00 [11:02:59]MH_I2C_Read... [11:02:59]Read from MH i2c: 01 07 00 B8 2B 00 00 00 00 00 FF 0F F8 [11:02:59]RasterBufferAndPrint [11:02:59]line Счет N : (1)706381 [11:02:59]line ИНН: 02508201610067 [11:02:59]line Контрольно-Кассовый Чек [11:02:59]line ПРОДАЖА [11:02:59]line ТРК (МРК, ГНК) : 63 [11:02:59]line Товар: 2710124130 [11:02:59]line Аи-92-К-4 [11:02:59]line 8.970 * 66.90 [11:02:59]line = 600.09 [11:02:59]line НДС 12% НСП 1% [11:02:59]line > о реализуемом товаре [11:02:59]line ОКРУГЛЕНИЕ: -0.09 [11:02:59]line ИТОГО: 600.00 [11:02:59]line Внесено: 600.00 [11:02:59]line СДАЧА: 0.00 [11:02:59]line НСП 1% : 5.31 [11:02:59]line НДС 12% : 63.73 [11:02:59]line Наличными: 600.00 [11:02:59]line Безнал.: 0.00 [11:02:59]line Место: АЗС № 62 "Партнер Нефть" [11:02:59]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [11:02:59]line СНО: Общий режим [11:02:59]line Чек 54 03.06.2024 11:03 [11:02:59]line Смена: 324 ФФД: 1.0 [11:02:59]line ЗНМ: 0300000181 [11:02:59]line РНМ: 0000000000098096 [11:02:59]line Версия ККМ: 001 [11:02:59]line ФМ: 0000000000965400 [11:02:59]line ФД: 68308 [11:02:59]line ФПД: 138814541382448 [11:03:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T110302&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68308&fm=138814541382448&tin=02508201610067®Number=0000000000098096&sum=60000 [11:03:00]OFD Sender: Processing packet 68308 [packets to send 26, broken 25] [11:03:00]ProducePacketName [11:03:00]name=ofd_packets/00068308 [11:03:00]OFD Sender: To server: pG, [11:03:00]CommunicateWithHost lk.salyk.kg:30040 [11:03:00]ConnectInit lk.salyk.kg [11:03:00]written 0, free lines is 4095 [11:03:00]Connected sock=9 [11:03:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 98 DD 07 01 DB 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 E6 A2 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D4 0A 01 00 35 04 06 00 7E 40 47 6D C3 30 FD 2D 87 D0 01 24 E3 86 [11:03:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 0F 7F 47 00 CC 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D4 0A 01 00 F4 03 04 00 E3 49 5D 66 B6 04 01 00 00 42 DA 53 09 9F 54 A2 7F [11:03:00]CommunicateWithHost err = 0 [11:03:00]CheckOFDResponse [11:03:00]1017 (14) - 77093643461234 [11:03:00]1041 (16) - 0000000000965400 [11:03:00]1040 (4) - 68308 [11:03:00]1012 (4) - 03.06.2024 04:43 [11:03:00]1206 (1) - 0 [11:03:00]OFD Sender: Remove packet 68308 [11:03:00]ProducePacketName [11:03:00]name=ofd_packets/00068308 [11:03:00]NVStorageDeleteData [11:03:00]Write to MH i2c: 01 00 00 E3 2B 0E [11:03:00]Write i2c OK [11:03:00]MH_I2C_Read... [11:03:00]Read from MH i2c: 01 [11:03:00]MH_I2C_Read... [11:03:00]Read from MH i2c: 01 07 00 [11:03:00]MH_I2C_Read... [11:03:00]Read from MH i2c: 01 07 00 E3 2B 00 00 00 00 00 DF 0C 00 [11:03:00]RasterBufferAndPrint [11:03:00]line [11:03:00]line [11:03:00]line [11:03:00]line [11:03:00]line [11:03:00]written 0, free lines is 3302 [11:03:00]MH_Cut [11:03:00]Write to MH i2c: D1 01 00 EA 2B 01 E7 [11:03:00]Write i2c OK [11:03:00]MH_I2C_Read... [11:03:00]Read from MH i2c: D1 [11:03:00]MH_I2C_Read... [11:03:00]Read from MH i2c: D1 01 00 [11:03:00]MH_I2C_Read... [11:03:00]Read from MH i2c: D1 01 00 EA 2B 00 E6 [11:03:00]Write to MH i2c: 01 00 00 EB 2B 16 [11:03:00]Write i2c OK [11:03:00]MH_I2C_Read... [11:03:00]OFD Sender: No OFD packet to send [11:03:01]*** Cut start [11:03:01]*** Partial cut [11:03:01]*** CUTSNS_PIN = 1 [11:03:01]*** CUTSNS_PIN = 0 [11:03:01]*** Brake cut motor [11:03:01]Read from MH i2c: 01 [11:03:01]MH_I2C_Read... [11:03:01]*** Stop cut motor [11:03:01]*** Cut end [11:03:01]Read from MH i2c: 01 07 00 [11:03:01]MH_I2C_Read... [11:03:01]Read from MH i2c: 01 07 00 EB 2B 00 00 00 00 00 FF 0F 2B [11:03:01]process_action close_receipt done [11:03:01]requested_data is exist [11:03:01]produce_requested_data [11:03:01]requested_item fm.sn is exist - process it [11:03:01]wFMCommunicate request_size=4 [11:03:01]MH_SAM_APDU [11:03:01]CAPDU: 80 11 00 00 [11:03:01]Write to MH i2c: E2 08 00 EC 2B 80 11 00 00 00 00 00 00 91 [11:03:01]Write i2c OK [11:03:01]MH_I2C_Read... [11:03:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:02]Read from MH i2c: E2 [11:03:02]MH_I2C_Read... [11:03:02]Read from MH i2c: E2 17 00 [11:03:02]MH_I2C_Read... [11:03:02]Read from MH i2c: E2 17 00 EC 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 DC [11:03:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [11:03:02]wFMCommunicate OK [11:03:02]requested_item fd.num is exist - process it [11:03:02]SAM_PROTO_GetFieldsCounters [11:03:02]wFMCommunicate request_size=4 [11:03:02]MH_SAM_APDU [11:03:02]CAPDU: 80 13 00 00 [11:03:02]Write to MH i2c: E2 08 00 ED 2B 80 13 00 00 00 00 00 00 94 [11:03:02]Write i2c OK [11:03:02]MH_I2C_Read... [11:03:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:03:02]Read from MH i2c: E2 [11:03:02]MH_I2C_Read... [11:03:02]Read from MH i2c: E2 62 00 [11:03:02]MH_I2C_Read... [11:03:02]Read from MH i2c: E2 62 00 ED 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 D4 0A 01 00 0E 04 04 00 44 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 7A [11:03:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 D4 0A 01 00 0E 04 04 00 44 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 [11:03:02]wFMCommunicate OK [11:03:02]SAM_PROTO_GetFieldsCounters done [11:03:02]requested_item shift.num is exist - process it [11:03:02]requested_item shift.opened is exist - process it [11:03:02]req_shift_opened [11:03:02]FM_GetShiftState [11:03:02]SAM_PROTO_GetShiftState [11:03:02]wFMCommunicate request_size=4 [11:03:02]MH_SAM_APDU [11:03:02]CAPDU: 80 13 01 00 [11:03:02]Write to MH i2c: E2 08 00 EE 2B 80 13 01 00 00 00 00 00 96 [11:03:02]Write i2c OK [11:03:02]MH_I2C_Read... [11:03:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:02]Read from MH i2c: E2 [11:03:02]MH_I2C_Read... [11:03:02]Read from MH i2c: E2 0E 00 [11:03:02]MH_I2C_Read... [11:03:02]Read from MH i2c: E2 0E 00 EE 2B 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 71 [11:03:02]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [11:03:02]wFMCommunicate OK [11:03:02]SAM_PROTO_GetShiftState done [11:03:02]FM_GetShiftState done [11:03:02]req_shift_opened done [11:03:02]requested_item shift.open_date is exist - process it [11:03:02]req_shift_open_date [11:03:02]req_shift_open_date done [11:03:02]produce_requested_data done [11:03:02]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68308,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [11:03:02]process_action_free close_receipt [11:03:02]json_value_free [11:03:02]json_value_free done [11:03:02]process_json_proto returns [11:03:02]Send response to host [11:03:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68308,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [11:03:02]free response buf [11:03:02]execute_script done [11:03:02]execute_script returns [11:03:02]free content buf [11:03:02]Sock 6.Close socket [11:03:02]Sock 6.Thread stoped [11:03:05]OFD Sender: No OFD packet to send [11:03:10]OFD Sender: No OFD packet to send [11:03:15]OFD Sender: No OFD packet to send [11:03:20]OFD Sender: No OFD packet to send [11:03:25]OFD Sender: No OFD packet to send [11:03:30]OFD Sender: No OFD packet to send [11:03:35]OFD Sender: No OFD packet to send [11:03:40]OFD Sender: No OFD packet to send [11:03:45]OFD Sender: No OFD packet to send [11:03:50]OFD Sender: No OFD packet to send [11:03:55]OFD Sender: No OFD packet to send [11:04:00]OFD Sender: No OFD packet to send [11:04:05]OFD Sender: No OFD packet to send [11:04:10]OFD Sender: No OFD packet to send [11:04:15]OFD Sender: No OFD packet to send [11:04:20]OFD Sender: No OFD packet to send [11:04:25]OFD Sender: No OFD packet to send [11:04:30]OFD Sender: No OFD packet to send [11:04:35]OFD Sender: No OFD packet to send [11:04:40]OFD Sender: No OFD packet to send [11:04:45]OFD Sender: No OFD packet to send [11:04:50]OFD Sender: No OFD packet to send [11:04:55]OFD Sender: No OFD packet to send [11:05:00]OFD Sender: No OFD packet to send [11:05:05]OFD Sender: No OFD packet to send [11:05:10]OFD Sender: No OFD packet to send [11:05:16]OFD Sender: No OFD packet to send [11:05:21]OFD Sender: No OFD packet to send [11:05:26]OFD Sender: No OFD packet to send [11:05:31]OFD Sender: No OFD packet to send [11:05:36]OFD Sender: No OFD packet to send [11:05:41]OFD Sender: No OFD packet to send [11:05:46]OFD Sender: No OFD packet to send [11:05:51]OFD Sender: No OFD packet to send [11:05:56]OFD Sender: No OFD packet to send [11:06:01]OFD Sender: No OFD packet to send [11:06:06]OFD Sender: No OFD packet to send [11:06:11]OFD Sender: No OFD packet to send [11:06:16]OFD Sender: No OFD packet to send [11:06:21]OFD Sender: No OFD packet to send [11:06:26]OFD Sender: No OFD packet to send [11:06:31]OFD Sender: No OFD packet to send [11:06:36]OFD Sender: No OFD packet to send [11:06:41]OFD Sender: No OFD packet to send [11:06:46]OFD Sender: No OFD packet to send [11:06:51]OFD Sender: No OFD packet to send [11:06:56]OFD Sender: No OFD packet to send [11:07:01]OFD Sender: No OFD packet to send [11:07:06]OFD Sender: No OFD packet to send [11:07:11]OFD Sender: No OFD packet to send [11:07:16]OFD Sender: No OFD packet to send [11:07:21]OFD Sender: No OFD packet to send [11:07:26]OFD Sender: No OFD packet to send [11:07:31]OFD Sender: No OFD packet to send [11:07:36]OFD Sender: No OFD packet to send [11:07:41]OFD Sender: No OFD packet to send [11:07:46]OFD Sender: No OFD packet to send [11:07:51]OFD Sender: No OFD packet to send [11:07:56]OFD Sender: No OFD packet to send [11:08:01]OFD Sender: No OFD packet to send [11:08:06]OFD Sender: No OFD packet to send [11:08:11]OFD Sender: No OFD packet to send [11:08:16]OFD Sender: No OFD packet to send [11:08:21]OFD Sender: No OFD packet to send [11:08:26]OFD Sender: No OFD packet to send [11:08:31]OFD Sender: No OFD packet to send [11:08:36]OFD Sender: No OFD packet to send [11:08:41]OFD Sender: No OFD packet to send [11:08:46]OFD Sender: No OFD packet to send [11:08:51]OFD Sender: No OFD packet to send [11:08:56]OFD Sender: No OFD packet to send [11:09:01]OFD Sender: No OFD packet to send [11:09:06]OFD Sender: No OFD packet to send [11:09:11]OFD Sender: No OFD packet to send [11:09:16]OFD Sender: No OFD packet to send [11:09:21]OFD Sender: No OFD packet to send [11:09:26]OFD Sender: No OFD packet to send [11:09:31]OFD Sender: No OFD packet to send [11:09:36]OFD Sender: No OFD packet to send [11:09:41]OFD Sender: No OFD packet to send [11:09:46]OFD Sender: No OFD packet to send [11:09:51]OFD Sender: No OFD packet to send [11:09:56]OFD Sender: No OFD packet to send [11:10:01]OFD Sender: No OFD packet to send [11:10:06]OFD Sender: No OFD packet to send [11:10:11]OFD Sender: No OFD packet to send [11:10:16]OFD Sender: No OFD packet to send [11:10:21]OFD Sender: No OFD packet to send [11:10:26]OFD Sender: No OFD packet to send [11:10:31]OFD Sender: No OFD packet to send [11:10:36]OFD Sender: No OFD packet to send [11:10:41]OFD Sender: No OFD packet to send [11:10:46]OFD Sender: No OFD packet to send [11:10:51]OFD Sender: No OFD packet to send [11:10:56]OFD Sender: No OFD packet to send [11:10:56]accept exits with 5 [11:10:56]New connection [11:10:56]New thread 3066543460 created [11:10:56]Thread 3066686820 joined [11:10:56]Waiting for new connection... [11:10:56] Sock 5.Parse request [11:10:56]Sock 5.Check first char [11:10:56]Sock 5.First char is OK [11:10:56]request: POST /json_proto HTTP/1.0 [11:10:56]Method: POST [11:10:56]URL: /json_proto [11:10:56]Method is POST - this is cgi request [11:10:56]url: /json_proto [11:10:56]query_string will be loaded in cgi processing [11:10:56]execute_cgi json_proto POST (null) [11:10:56]execute_cgi path=json_proto method=POST [11:10:56]POST find Content-Length [11:10:56]Host: 172.17.36.132:8080 [11:10:56]Content-Length: 682 [11:10:56]Content-Type: application/json [11:10:56] [11:10:56]POST finish read [11:10:56]Found Content-Length = 682 [11:10:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706383", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:10:56]execute_script... [11:10:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706383", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:10:56]POST & json_proto [11:10:56]process_json_proto [11:10:56]json parsed OK: [11:10:56]protocol is kg_v1.0 [11:10:56]action value=close_receipt [11:10:56]process_action close_receipt [11:10:56]cmd_close_receipt [11:10:56]MH_GetDate [11:10:56]Write to MH i2c: F0 00 00 EF 2B 09 [11:10:56]Write i2c OK [11:10:56]MH_I2C_Read... [11:10:56]Read from MH i2c: F0 [11:10:56]MH_I2C_Read... [11:10:56]Read from MH i2c: F0 09 00 [11:10:56]MH_I2C_Read... [11:10:56]Read from MH i2c: F0 09 00 EF 2B 00 C5 A4 5D 66 B2 22 B0 64 26 [11:10:56]GetLastDocTimeStamp 1717412582 [11:10:56]current date 1717413061 [11:10:56]FM_GetShiftState [11:10:56]SAM_PROTO_GetShiftState [11:10:56]wFMCommunicate request_size=4 [11:10:56]MH_SAM_APDU [11:10:56]CAPDU: 80 13 01 00 [11:10:56]Write to MH i2c: E2 08 00 F0 2B 80 13 01 00 00 00 00 00 98 [11:10:56]Write i2c OK [11:10:56]MH_I2C_Read... [11:10:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:56]Read from MH i2c: E2 [11:10:56]MH_I2C_Read... [11:10:56]Read from MH i2c: E2 0E 00 [11:10:56]MH_I2C_Read... [11:10:56]Read from MH i2c: E2 0E 00 F0 2B 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 73 [11:10:56]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [11:10:56]wFMCommunicate OK [11:10:56]SAM_PROTO_GetShiftState done [11:10:56]FM_GetShiftState done [11:10:56]opened in 1717378033 [11:10:56]opened+sec_in_day 1717464433 [11:10:56]quantity*price = 100015 [11:10:56]sum+1 = 100017 [11:10:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 55 03.06.2024 11:11 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68309 ФПД: 81996844846043 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T111101&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68309&fm=81996844846043&tin=02508201610067®Number=0000000000098096&sum=100000 [11:10:57]StoreToDocumentArchive [11:10:57]shift 324 fd 68309 [11:10:57]save to /storage/0324/doc_00068309 [11:10:57]save last doc name /storage/0324/doc_00068309 to /storage/kkm_last_doc_name [11:10:57]save OK [11:10:57]Clear old archive folders... [11:10:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:10:57]tlvbuf is B6D67630 [11:10:57]SAM_PROTO_ClearQueue [11:10:57]wFMCommunicate request_size=4 [11:10:57]MH_SAM_APDU [11:10:57]CAPDU: 80 09 00 00 [11:10:57]Write to MH i2c: E2 08 00 FD 2B 80 09 00 00 00 00 00 00 9A [11:10:57]Write i2c OK [11:10:57]MH_I2C_Read... [11:10:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:10:57]Read from MH i2c: E2 [11:10:57]MH_I2C_Read... [11:10:57]Read from MH i2c: E2 03 00 [11:10:57]MH_I2C_Read... [11:10:57]Read from MH i2c: E2 03 00 FD 2B 00 90 00 9C [11:10:57]RAPDU: 90 00 [11:10:57]wFMCommunicate OK [11:10:57]SAM_PROTO_ClearQueue done [11:10:57]KKMCreateOFDPacket [11:10:57]OFDProtocolAddRootSTLVToBuf [11:10:57]FM_MakeSignedData [11:10:57]FM_MakeSignedData [11:10:57]SAM_PROTO_SignData [11:10:57]wFMCommunicate request_size=4 [11:10:57]MH_SAM_APDU [11:10:57]CAPDU: 80 0D 01 02 [11:10:57]Write to MH i2c: E2 08 00 FE 2B 80 0D 01 02 00 00 00 00 A2 [11:10:57]Write i2c OK [11:10:57]MH_I2C_Read... [11:10:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:10:57]Read from MH i2c: E2 [11:10:57]MH_I2C_Read... [11:10:57]Read from MH i2c: E2 03 00 [11:10:57]MH_I2C_Read... [11:10:57]Read from MH i2c: E2 03 00 FE 2B 00 90 00 9D [11:10:57]RAPDU: 90 00 [11:10:57]wFMCommunicate OK [11:10:57]wFMCommunicate request_size=255 [11:10:57]MH_SAM_APDU [11:10:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 C5 A4 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D5 0A 01 00 35 04 06 00 4A [11:10:57]Write to MH i2c: E2 02 01 FF 2B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 C5 A4 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D5 0A 01 00 35 04 06 00 4A 00 00 FB [11:10:57]Write i2c OK [11:10:57]MH_I2C_Read... [11:10:57]Read from MH i2c: E2 [11:10:57]MH_I2C_Read... [11:10:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:57]Read from MH i2c: E2 03 00 [11:10:57]MH_I2C_Read... [11:10:57]Read from MH i2c: E2 03 00 FF 2B 00 90 00 9E [11:10:57]RAPDU: 90 00 [11:10:57]wFMCommunicate OK [11:10:57]wFMCommunicate request_size=10 [11:10:57]MH_SAM_APDU [11:10:57]CAPDU: 80 0D 02 02 05 93 60 CF 4B DB [11:10:57]Write to MH i2c: E2 0D 00 00 2C 80 0D 02 02 05 00 93 60 CF 4B DB 00 00 98 [11:10:57]Write i2c OK [11:10:57]MH_I2C_Read... [11:10:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:57]Read from MH i2c: E2 [11:10:57]MH_I2C_Read... [11:10:57]Read from MH i2c: E2 03 00 [11:10:57]MH_I2C_Read... [11:10:57]Read from MH i2c: E2 03 00 00 2C 00 90 00 A0 [11:10:57]RAPDU: 90 00 [11:10:57]wFMCommunicate OK [11:10:57]wFMCommunicate request_size=4 [11:10:57]MH_SAM_APDU [11:10:57]CAPDU: 80 0D 03 02 [11:10:57]Write to MH i2c: E2 08 00 01 2C 80 0D 03 02 00 00 00 00 A8 [11:10:57]Write i2c OK [11:10:57]MH_I2C_Read... [11:10:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:10:57]Read from MH i2c: E2 [11:10:57]MH_I2C_Read... [11:10:57]Read from MH i2c: E2 0B 00 [11:10:57]MH_I2C_Read... [11:10:57]Read from MH i2c: E2 0B 00 01 2C 00 02 68 E6 E6 F0 F2 8C 99 90 00 E6 [11:10:57]RAPDU: 02 68 E6 E6 F0 F2 8C 99 90 00 [11:10:57]wFMCommunicate OK [11:10:57]SAM_PROTO_SignData done [11:10:57]FM_MakeSignedData done [11:10:57]CreateOFDProtocolMessage [11:10:57]wFMCommunicate request_size=4 [11:10:57]MH_SAM_APDU [11:10:57]CAPDU: 80 11 00 00 [11:10:58]Write to MH i2c: E2 08 00 02 2C 80 11 00 00 00 00 00 00 A8 [11:10:58]Write i2c OK [11:10:58]MH_I2C_Read... [11:10:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:58]Read from MH i2c: E2 [11:10:58]MH_I2C_Read... [11:10:58]Read from MH i2c: E2 17 00 [11:10:58]MH_I2C_Read... [11:10:58]Read from MH i2c: E2 17 00 02 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 F3 [11:10:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [11:10:58]wFMCommunicate OK [11:10:58]CreateOFDProtocolMessage done [11:10:58]OFDSenderStorePacket 68309 [11:10:58]StoreOFDPacket docnum=68309 [11:10:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 18 26 07 01 FB 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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 C5 A4 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D5 0A 01 00 35 04 06 00 4A 93 60 CF 4B DB 02 68 E6 E6 F0 F2 8C 99 [11:10:58]CheckFolder [11:10:58]dirname=/storage/ofd_packets [11:10:58]CheckFolder done [11:10:58]ProducePacketName [11:10:58]name=ofd_packets/00068309 [11:10:58]NVStorageSaveData ofd_packets/00068309 [11:10:58]File name is /storage/ofd_packets/00068309 [11:10:58]Write 301 bytes [11:10:58]NVStorageSaveData done [11:10:58]OFDSenderStorePacket done [11:10:58]KKMCreateOFDPacket done [11:10:58]NVStorageSaveData kkm_last_timestamp [11:10:58]File name is /storage/kkm_last_timestamp [11:10:58]Write 4 bytes [11:10:58]NVStorageSaveData done [11:10:58]ExternCall_PrintAddStr [11:10:58]wPrintStart [11:10:58]Write to MH i2c: 01 00 00 03 2C 2F [11:10:58]Write i2c OK [11:10:58]MH_I2C_Read... [11:10:58]Read from MH i2c: 01 [11:10:58]MH_I2C_Read... [11:10:58]Read from MH i2c: 01 07 00 [11:10:58]MH_I2C_Read... [11:10:58]Read from MH i2c: 01 07 00 03 2C 00 00 00 00 00 FF 0F 44 [11:10:58]RasterBufferAndPrint [11:10:58]line Счет N : (1)706383 [11:10:58]line ИНН: 02508201610067 [11:10:58]line Контрольно-Кассовый Чек [11:10:58]line ПРОДАЖА [11:10:58]line ТРК (МРК, ГНК) : 13 [11:10:58]line Товар: 2710124130 [11:10:58]line Аи-92-К-4 [11:10:58]line 14.950 * 66.90 [11:10:58]line = 1000.16 [11:10:58]line НДС 12% НСП 1% [11:10:58]line > о реализуемом товаре [11:10:58]line ОКРУГЛЕНИЕ: -0.16 [11:10:58]line ИТОГО: 1000.00 [11:10:58]line Внесено: 1000.00 [11:10:58]line СДАЧА: 0.00 [11:10:58]line НСП 1% : 8.85 [11:10:58]line НДС 12% : 106.21 [11:10:58]line Наличными: 1000.00 [11:10:58]line Безнал.: 0.00 [11:10:58]line Место: АЗС № 62 "Партнер Нефть" [11:10:58]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [11:10:58]line СНО: Общий режим [11:10:58]line Чек 55 03.06.2024 11:11 [11:10:58]line Смена: 324 ФФД: 1.0 [11:10:58]line ЗНМ: 0300000181 [11:10:58]line РНМ: 0000000000098096 [11:10:58]line Версия ККМ: 001 [11:10:58]line ФМ: 0000000000965400 [11:10:58]line ФД: 68309 [11:10:58]line ФПД: 81996844846043 [11:10:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T111101&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68309&fm=81996844846043&tin=02508201610067®Number=0000000000098096&sum=100000 [11:10:58]OFD Sender: Processing packet 68309 [packets to send 26, broken 25] [11:10:58]ProducePacketName [11:10:58]name=ofd_packets/00068309 [11:10:58]OFD Sender: To server: pG, [11:10:58]CommunicateWithHost lk.salyk.kg:30040 [11:10:58]ConnectInit lk.salyk.kg [11:10:58]written 0, free lines is 4095 [11:10:58]Connected sock=7 [11:10:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 18 26 07 01 FB 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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 C5 A4 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D5 0A 01 00 35 04 06 00 4A 93 60 CF 4B DB 02 68 E6 E6 F0 F2 8C 99 [11:10:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 AA 7F 47 00 C5 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D5 0A 01 00 F4 03 04 00 C1 4B 5D 66 B6 04 01 00 00 15 12 EA 78 8D FA C2 A5 [11:10:58]CommunicateWithHost err = 0 [11:10:58]CheckOFDResponse [11:10:58]1017 (14) - 77093643461234 [11:10:58]1041 (16) - 0000000000965400 [11:10:58]1040 (4) - 68309 [11:10:58]1012 (4) - 03.06.2024 04:51 [11:10:58]1206 (1) - 0 [11:10:58]OFD Sender: Remove packet 68309 [11:10:58]ProducePacketName [11:10:58]name=ofd_packets/00068309 [11:10:58]NVStorageDeleteData [11:10:58]Write to MH i2c: 01 00 00 2E 2C 5A [11:10:58]Write i2c OK [11:10:58]MH_I2C_Read... [11:10:58]Read from MH i2c: 01 [11:10:58]MH_I2C_Read... [11:10:58]Read from MH i2c: 01 07 00 [11:10:58]MH_I2C_Read... [11:10:58]Read from MH i2c: 01 07 00 2E 2C 00 00 00 00 00 DC 0C 49 [11:10:58]RasterBufferAndPrint [11:10:58]line [11:10:58]line [11:10:58]line [11:10:58]line [11:10:58]line [11:10:58]written 0, free lines is 3298 [11:10:58]MH_Cut [11:10:58]Write to MH i2c: D1 01 00 35 2C 01 33 [11:10:58]Write i2c OK [11:10:58]MH_I2C_Read... [11:10:58]Read from MH i2c: D1 [11:10:58]MH_I2C_Read... [11:10:58]Read from MH i2c: D1 01 00 [11:10:58]MH_I2C_Read... [11:10:58]Read from MH i2c: D1 01 00 35 2C 00 32 [11:10:58]Write to MH i2c: 01 00 00 36 2C 62 [11:10:58]Write i2c OK [11:10:58]MH_I2C_Read... [11:10:59]OFD Sender: No OFD packet to send [11:10:59]*** Cut start [11:10:59]*** Partial cut [11:10:59]*** CUTSNS_PIN = 1 [11:10:59]*** CUTSNS_PIN = 0 [11:10:59]*** Brake cut motor [11:11:00]Read from MH i2c: 01 [11:11:00]MH_I2C_Read... [11:11:00]*** Stop cut motor [11:11:00]*** Cut end [11:11:00]Read from MH i2c: 01 07 00 [11:11:00]MH_I2C_Read... [11:11:00]Read from MH i2c: 01 07 00 36 2C 00 00 00 00 00 FF 0F 77 [11:11:00]process_action close_receipt done [11:11:00]requested_data is exist [11:11:00]produce_requested_data [11:11:00]requested_item fm.sn is exist - process it [11:11:00]wFMCommunicate request_size=4 [11:11:00]MH_SAM_APDU [11:11:00]CAPDU: 80 11 00 00 [11:11:00]Write to MH i2c: E2 08 00 37 2C 80 11 00 00 00 00 00 00 DD [11:11:00]Write i2c OK [11:11:00]MH_I2C_Read... [11:11:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:00]Read from MH i2c: E2 [11:11:00]MH_I2C_Read... [11:11:00]Read from MH i2c: E2 17 00 [11:11:00]MH_I2C_Read... [11:11:00]Read from MH i2c: E2 17 00 37 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 28 [11:11:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [11:11:00]wFMCommunicate OK [11:11:00]requested_item fd.num is exist - process it [11:11:00]SAM_PROTO_GetFieldsCounters [11:11:00]wFMCommunicate request_size=4 [11:11:00]MH_SAM_APDU [11:11:00]CAPDU: 80 13 00 00 [11:11:00]Write to MH i2c: E2 08 00 38 2C 80 13 00 00 00 00 00 00 E0 [11:11:00]Write i2c OK [11:11:00]MH_I2C_Read... [11:11:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:11:00]Read from MH i2c: E2 [11:11:00]MH_I2C_Read... [11:11:00]Read from MH i2c: E2 62 00 [11:11:00]MH_I2C_Read... [11:11:00]Read from MH i2c: E2 62 00 38 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 D5 0A 01 00 0E 04 04 00 44 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 CA [11:11:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 D5 0A 01 00 0E 04 04 00 44 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 [11:11:00]wFMCommunicate OK [11:11:00]SAM_PROTO_GetFieldsCounters done [11:11:00]requested_item shift.num is exist - process it [11:11:00]requested_item shift.opened is exist - process it [11:11:00]req_shift_opened [11:11:00]FM_GetShiftState [11:11:00]SAM_PROTO_GetShiftState [11:11:00]wFMCommunicate request_size=4 [11:11:00]MH_SAM_APDU [11:11:00]CAPDU: 80 13 01 00 [11:11:00]Write to MH i2c: E2 08 00 39 2C 80 13 01 00 00 00 00 00 E2 [11:11:00]Write i2c OK [11:11:00]MH_I2C_Read... [11:11:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:00]Read from MH i2c: E2 [11:11:00]MH_I2C_Read... [11:11:00]Read from MH i2c: E2 0E 00 [11:11:00]MH_I2C_Read... [11:11:00]Read from MH i2c: E2 0E 00 39 2C 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 BD [11:11:00]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [11:11:00]wFMCommunicate OK [11:11:00]SAM_PROTO_GetShiftState done [11:11:00]FM_GetShiftState done [11:11:00]req_shift_opened done [11:11:00]requested_item shift.open_date is exist - process it [11:11:00]req_shift_open_date [11:11:00]req_shift_open_date done [11:11:00]produce_requested_data done [11:11:00]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68309,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [11:11:00]process_action_free close_receipt [11:11:00]json_value_free [11:11:00]json_value_free done [11:11:00]process_json_proto returns [11:11:00]Send response to host [11:11:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68309,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [11:11:00]free response buf [11:11:00]execute_script done [11:11:00]execute_script returns [11:11:00]free content buf [11:11:00]Sock 5.Close socket [11:11:00]Sock 5.Thread stoped [11:11:04]OFD Sender: No OFD packet to send [11:11:08]accept exits with 6 [11:11:08]New connection [11:11:08]New thread 3066686820 created [11:11:08]Thread 3066543460 joined [11:11:08]Waiting for new connection... [11:11:08] Sock 6.Parse request [11:11:08]Sock 6.Check first char [11:11:08]Sock 6.First char is OK [11:11:08]request: POST /json_proto HTTP/1.0 [11:11:08]Method: POST [11:11:08]URL: /json_proto [11:11:08]Method is POST - this is cgi request [11:11:08]url: /json_proto [11:11:08]query_string will be loaded in cgi processing [11:11:08]execute_cgi json_proto POST (null) [11:11:08]execute_cgi path=json_proto method=POST [11:11:08]POST find Content-Length [11:11:08]Host: 172.17.36.132:8080 [11:11:08]Content-Length: 682 [11:11:08]Content-Type: application/json [11:11:08] [11:11:08]POST finish read [11:11:08]Found Content-Length = 682 [11:11:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706382", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:11:08]execute_script... [11:11:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706382", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:11:08]POST & json_proto [11:11:08]process_json_proto [11:11:08]json parsed OK: [11:11:08]protocol is kg_v1.0 [11:11:08]action value=close_receipt [11:11:08]process_action close_receipt [11:11:08]cmd_close_receipt [11:11:08]MH_GetDate [11:11:08]Write to MH i2c: F0 00 00 3A 2C 55 [11:11:08]Write i2c OK [11:11:08]MH_I2C_Read... [11:11:08]Read from MH i2c: F0 [11:11:08]MH_I2C_Read... [11:11:08]Read from MH i2c: F0 09 00 [11:11:08]MH_I2C_Read... [11:11:08]Read from MH i2c: F0 09 00 3A 2C 00 D1 A4 5D 66 B2 22 B0 64 7E [11:11:08]GetLastDocTimeStamp 1717413061 [11:11:08]current date 1717413073 [11:11:08]FM_GetShiftState [11:11:08]SAM_PROTO_GetShiftState [11:11:08]wFMCommunicate request_size=4 [11:11:08]MH_SAM_APDU [11:11:08]CAPDU: 80 13 01 00 [11:11:08]Write to MH i2c: E2 08 00 3B 2C 80 13 01 00 00 00 00 00 E4 [11:11:08]Write i2c OK [11:11:08]MH_I2C_Read... [11:11:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:09]Read from MH i2c: E2 [11:11:09]MH_I2C_Read... [11:11:09]Read from MH i2c: E2 0E 00 [11:11:09]MH_I2C_Read... [11:11:09]Read from MH i2c: E2 0E 00 3B 2C 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 BF [11:11:09]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [11:11:09]wFMCommunicate OK [11:11:09]SAM_PROTO_GetShiftState done [11:11:09]FM_GetShiftState done [11:11:09]opened in 1717378033 [11:11:09]opened+sec_in_day 1717464433 [11:11:09]quantity*price = 100015 [11:11:09]sum+1 = 100017 [11:11:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 56 03.06.2024 11:11 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68310 ФПД: 138317246461197 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T111113&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68310&fm=138317246461197&tin=02508201610067®Number=0000000000098096&sum=100000 [11:11:10]StoreToDocumentArchive [11:11:10]shift 324 fd 68310 [11:11:10]save to /storage/0324/doc_00068310 [11:11:10]save last doc name /storage/0324/doc_00068310 to /storage/kkm_last_doc_name [11:11:10]save OK [11:11:10]Clear old archive folders... [11:11:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:11:10]tlvbuf is 0023A670 [11:11:10]SAM_PROTO_ClearQueue [11:11:10]wFMCommunicate request_size=4 [11:11:10]MH_SAM_APDU [11:11:10]CAPDU: 80 09 00 00 [11:11:10]Write to MH i2c: E2 08 00 48 2C 80 09 00 00 00 00 00 00 E6 [11:11:10]Write i2c OK [11:11:10]MH_I2C_Read... [11:11:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:11:10]Read from MH i2c: E2 [11:11:10]MH_I2C_Read... [11:11:10]Read from MH i2c: E2 03 00 [11:11:10]MH_I2C_Read... [11:11:10]Read from MH i2c: E2 03 00 48 2C 00 90 00 E8 [11:11:10]RAPDU: 90 00 [11:11:10]wFMCommunicate OK [11:11:10]SAM_PROTO_ClearQueue done [11:11:10]KKMCreateOFDPacket [11:11:10]OFDProtocolAddRootSTLVToBuf [11:11:10]FM_MakeSignedData [11:11:10]FM_MakeSignedData [11:11:10]SAM_PROTO_SignData [11:11:10]wFMCommunicate request_size=4 [11:11:10]MH_SAM_APDU [11:11:10]CAPDU: 80 0D 01 02 [11:11:10]Write to MH i2c: E2 08 00 49 2C 80 0D 01 02 00 00 00 00 EE [11:11:10]Write i2c OK [11:11:10]MH_I2C_Read... [11:11:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:11:10]Read from MH i2c: E2 [11:11:10]MH_I2C_Read... [11:11:10]Read from MH i2c: E2 03 00 [11:11:10]MH_I2C_Read... [11:11:10]Read from MH i2c: E2 03 00 49 2C 00 90 00 E9 [11:11:10]RAPDU: 90 00 [11:11:10]wFMCommunicate OK [11:11:10]wFMCommunicate request_size=255 [11:11:10]MH_SAM_APDU [11:11: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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 D1 A4 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D6 0A 01 00 35 04 06 00 7D [11:11:10]Write to MH i2c: E2 02 01 4A 2C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 D1 A4 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D6 0A 01 00 35 04 06 00 7D 00 00 88 [11:11:10]Write i2c OK [11:11:10]MH_I2C_Read... [11:11:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:10]Read from MH i2c: E2 [11:11:10]MH_I2C_Read... [11:11:10]Read from MH i2c: E2 03 00 [11:11:10]MH_I2C_Read... [11:11:10]Read from MH i2c: E2 03 00 4A 2C 00 90 00 EA [11:11:10]RAPDU: 90 00 [11:11:10]wFMCommunicate OK [11:11:10]wFMCommunicate request_size=10 [11:11:10]MH_SAM_APDU [11:11:10]CAPDU: 80 0D 02 02 05 CC 7E 57 75 0D [11:11:10]Write to MH i2c: E2 0D 00 4B 2C 80 0D 02 02 05 00 CC 7E 57 75 0D 00 00 1E [11:11:10]Write i2c OK [11:11:10]MH_I2C_Read... [11:11:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:10]Read from MH i2c: E2 [11:11:10]MH_I2C_Read... [11:11:10]Read from MH i2c: E2 03 00 [11:11:10]MH_I2C_Read... [11:11:10]Read from MH i2c: E2 03 00 4B 2C 00 90 00 EB [11:11:10]RAPDU: 90 00 [11:11:10]wFMCommunicate OK [11:11:10]wFMCommunicate request_size=4 [11:11:10]MH_SAM_APDU [11:11:10]CAPDU: 80 0D 03 02 [11:11:10]Write to MH i2c: E2 08 00 4C 2C 80 0D 03 02 00 00 00 00 F3 [11:11:10]Write i2c OK [11:11:10]MH_I2C_Read... [11:11:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:11:10]Read from MH i2c: E2 [11:11:10]MH_I2C_Read... [11:11:10]Read from MH i2c: E2 0B 00 [11:11:10]MH_I2C_Read... [11:11:10]Read from MH i2c: E2 0B 00 4C 2C 00 61 D9 64 AC E7 12 80 88 90 00 3F [11:11:10]RAPDU: 61 D9 64 AC E7 12 80 88 90 00 [11:11:10]wFMCommunicate OK [11:11:10]SAM_PROTO_SignData done [11:11:10]FM_MakeSignedData done [11:11:10]CreateOFDProtocolMessage [11:11:10]wFMCommunicate request_size=4 [11:11:10]MH_SAM_APDU [11:11:10]CAPDU: 80 11 00 00 [11:11:10]Write to MH i2c: E2 08 00 4D 2C 80 11 00 00 00 00 00 00 F3 [11:11:10]Write i2c OK [11:11:10]MH_I2C_Read... [11:11:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:10]Read from MH i2c: E2 [11:11:10]MH_I2C_Read... [11:11:10]Read from MH i2c: E2 17 00 [11:11:10]MH_I2C_Read... [11:11:10]Read from MH i2c: E2 17 00 4D 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 3E [11:11:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [11:11:10]wFMCommunicate OK [11:11:10]CreateOFDProtocolMessage done [11:11:10]OFDSenderStorePacket 68310 [11:11:10]StoreOFDPacket docnum=68310 [11:11:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 2D 98 07 01 D0 A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 D1 A4 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D6 0A 01 00 35 04 06 00 7D CC 7E 57 75 0D 61 D9 64 AC E7 12 80 88 [11:11:10]CheckFolder [11:11:10]dirname=/storage/ofd_packets [11:11:10]CheckFolder done [11:11:10]ProducePacketName [11:11:10]name=ofd_packets/00068310 [11:11:10]NVStorageSaveData ofd_packets/00068310 [11:11:10]File name is /storage/ofd_packets/00068310 [11:11:10]Write 301 bytes [11:11:10]NVStorageSaveData done [11:11:10]OFDSenderStorePacket done [11:11:10]KKMCreateOFDPacket done [11:11:10]NVStorageSaveData kkm_last_timestamp [11:11:10]File name is /storage/kkm_last_timestamp [11:11:10]Write 4 bytes [11:11:10]NVStorageSaveData done [11:11:10]ExternCall_PrintAddStr [11:11:10]wPrintStart [11:11:10]Write to MH i2c: 01 00 00 4E 2C 7A [11:11:10]Write i2c OK [11:11:10]MH_I2C_Read... [11:11:10]Read from MH i2c: 01 [11:11:10]MH_I2C_Read... [11:11:10]Read from MH i2c: 01 07 00 [11:11:10]MH_I2C_Read... [11:11:10]Read from MH i2c: 01 07 00 4E 2C 00 00 00 00 00 FF 0F 8F [11:11:10]RasterBufferAndPrint [11:11:10]line Счет N : (1)706382 [11:11:10]line ИНН: 02508201610067 [11:11:10]line Контрольно-Кассовый Чек [11:11:10]line ПРОДАЖА [11:11:10]line ТРК (МРК, ГНК) : 63 [11:11:10]line Товар: 2710124130 [11:11:10]line Аи-92-К-4 [11:11:10]line 14.950 * 66.90 [11:11:10]line = 1000.16 [11:11:10]line НДС 12% НСП 1% [11:11:10]line > о реализуемом товаре [11:11:10]line ОКРУГЛЕНИЕ: -0.16 [11:11:10]line ИТОГО: 1000.00 [11:11:10]line Внесено: 1000.00 [11:11:10]line СДАЧА: 0.00 [11:11:10]line НСП 1% : 8.85 [11:11:10]line НДС 12% : 106.21 [11:11:10]line Наличными: 1000.00 [11:11:10]line Безнал.: 0.00 [11:11:10]line Место: АЗС № 62 "Партнер Нефть" [11:11:10]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [11:11:10]line СНО: Общий режим [11:11:10]line Чек 56 03.06.2024 11:11 [11:11:10]line Смена: 324 ФФД: 1.0 [11:11:10]line ЗНМ: 0300000181 [11:11:10]line РНМ: 0000000000098096 [11:11:10]line Версия ККМ: 001 [11:11:10]line ФМ: 0000000000965400 [11:11:10]line ФД: 68310 [11:11:10]line ФПД: 138317246461197 [11:11:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T111113&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68310&fm=138317246461197&tin=02508201610067®Number=0000000000098096&sum=100000 [11:11:10]written 0, free lines is 4095 [11:11:10]OFD Sender: Processing packet 68310 [packets to send 26, broken 25] [11:11:10]ProducePacketName [11:11:11]name=ofd_packets/00068310 [11:11:11]OFD Sender: To server: pG, [11:11:11]CommunicateWithHost lk.salyk.kg:30040 [11:11:11]ConnectInit lk.salyk.kg [11:11:11]Connected sock=7 [11:11:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 2D 98 07 01 D0 A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 D1 A4 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D6 0A 01 00 35 04 06 00 7D CC 7E 57 75 0D 61 D9 64 AC E7 12 80 88 [11:11:11]Write to MH i2c: 01 00 00 79 2C A5 [11:11:11]Write i2c OK [11:11:11]MH_I2C_Read... [11:11:11]Read from MH i2c: 01 [11:11:11]MH_I2C_Read... [11:11:11]Read from MH i2c: 01 07 00 [11:11:11]MH_I2C_Read... [11:11:11]Read from MH i2c: 01 07 00 79 2C 00 00 00 00 00 E4 0C 9C [11:11:11]RasterBufferAndPrint [11:11:11]line [11:11:11]line [11:11:11]line [11:11:11]line [11:11:11]line [11:11:11]written 0, free lines is 3309 [11:11:11]MH_Cut [11:11:11]Write to MH i2c: D1 01 00 80 2C 01 7E [11:11:11]Write i2c OK [11:11:11]MH_I2C_Read... [11:11:11]Read from MH i2c: D1 [11:11:11]MH_I2C_Read... [11:11:11]Read from MH i2c: D1 01 00 [11:11:11]MH_I2C_Read... [11:11:11]Read from MH i2c: D1 01 00 80 2C 00 7D [11:11:11]Write to MH i2c: 01 00 00 81 2C AD [11:11:11]Write i2c OK [11:11:11]MH_I2C_Read... [11:11:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 F4 F9 47 00 B8 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D6 0A 01 00 F4 03 04 00 CE 4B 5D 66 B6 04 01 00 00 25 88 05 70 14 FE 1A FF [11:11:11]CommunicateWithHost err = 0 [11:11:11]CheckOFDResponse [11:11:11]1017 (14) - 77093643461234 [11:11:11]1041 (16) - 0000000000965400 [11:11:11]1040 (4) - 68310 [11:11:11]1012 (4) - 03.06.2024 04:51 [11:11:11]1206 (1) - 0 [11:11:11]OFD Sender: Remove packet 68310 [11:11:11]ProducePacketName [11:11:11]name=ofd_packets/00068310 [11:11:11]NVStorageDeleteData [11:11:11]OFD Sender: No OFD packet to send [11:11:11]*** Cut start [11:11:11]*** Partial cut [11:11:11]*** CUTSNS_PIN = 1 [11:11:11]*** CUTSNS_PIN = 0 [11:11:12]*** Brake cut motor [11:11:12]Read from MH i2c: 01 [11:11:12]MH_I2C_Read... [11:11:12]*** Stop cut motor [11:11:12]*** Cut end [11:11:12]Read from MH i2c: 01 07 00 [11:11:12]MH_I2C_Read... [11:11:12]Read from MH i2c: 01 07 00 81 2C 00 00 00 00 00 FF 0F C2 [11:11:12]process_action close_receipt done [11:11:12]requested_data is exist [11:11:12]produce_requested_data [11:11:12]requested_item fm.sn is exist - process it [11:11:12]wFMCommunicate request_size=4 [11:11:12]MH_SAM_APDU [11:11:12]CAPDU: 80 11 00 00 [11:11:12]Write to MH i2c: E2 08 00 82 2C 80 11 00 00 00 00 00 00 28 [11:11:12]Write i2c OK [11:11:12]MH_I2C_Read... [11:11:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:12]Read from MH i2c: E2 [11:11:12]MH_I2C_Read... [11:11:12]Read from MH i2c: E2 17 00 [11:11:12]MH_I2C_Read... [11:11:12]Read from MH i2c: E2 17 00 82 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 73 [11:11:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [11:11:12]wFMCommunicate OK [11:11:12]requested_item fd.num is exist - process it [11:11:12]SAM_PROTO_GetFieldsCounters [11:11:12]wFMCommunicate request_size=4 [11:11:12]MH_SAM_APDU [11:11:12]CAPDU: 80 13 00 00 [11:11:12]Write to MH i2c: E2 08 00 83 2C 80 13 00 00 00 00 00 00 2B [11:11:12]Write i2c OK [11:11:12]MH_I2C_Read... [11:11:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:11:12]Read from MH i2c: E2 [11:11:12]MH_I2C_Read... [11:11:12]Read from MH i2c: E2 62 00 [11:11:12]MH_I2C_Read... [11:11:12]Read from MH i2c: E2 62 00 83 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 D6 0A 01 00 0E 04 04 00 44 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 19 [11:11:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 D6 0A 01 00 0E 04 04 00 44 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 [11:11:12]wFMCommunicate OK [11:11:12]SAM_PROTO_GetFieldsCounters done [11:11:12]requested_item shift.num is exist - process it [11:11:12]requested_item shift.opened is exist - process it [11:11:12]req_shift_opened [11:11:12]FM_GetShiftState [11:11:12]SAM_PROTO_GetShiftState [11:11:12]wFMCommunicate request_size=4 [11:11:12]MH_SAM_APDU [11:11:12]CAPDU: 80 13 01 00 [11:11:12]Write to MH i2c: E2 08 00 84 2C 80 13 01 00 00 00 00 00 2D [11:11:12]Write i2c OK [11:11:12]MH_I2C_Read... [11:11:12]Read from MH i2c: E2 [11:11:12]MH_I2C_Read... [11:11:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:12]Read from MH i2c: E2 0E 00 [11:11:12]MH_I2C_Read... [11:11:12]Read from MH i2c: E2 0E 00 84 2C 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 08 [11:11:12]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [11:11:12]wFMCommunicate OK [11:11:12]SAM_PROTO_GetShiftState done [11:11:12]FM_GetShiftState done [11:11:12]req_shift_opened done [11:11:12]requested_item shift.open_date is exist - process it [11:11:12]req_shift_open_date [11:11:12]req_shift_open_date done [11:11:12]produce_requested_data done [11:11:12]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68310,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [11:11:12]process_action_free close_receipt [11:11:12]json_value_free [11:11:12]json_value_free done [11:11:12]process_json_proto returns [11:11:12]Send response to host [11:11:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68310,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [11:11:12]free response buf [11:11:12]execute_script done [11:11:12]execute_script returns [11:11:12]free content buf [11:11:12]Sock 6.Close socket [11:11:12]Sock 6.Thread stoped [11:11:16]OFD Sender: No OFD packet to send [11:11:21]OFD Sender: No OFD packet to send [11:11:26]OFD Sender: No OFD packet to send [11:11:31]OFD Sender: No OFD packet to send [11:11:36]OFD Sender: No OFD packet to send [11:11:41]OFD Sender: No OFD packet to send [11:11:46]OFD Sender: No OFD packet to send [11:11:51]OFD Sender: No OFD packet to send [11:11:56]OFD Sender: No OFD packet to send [11:12:01]OFD Sender: No OFD packet to send [11:12:06]OFD Sender: No OFD packet to send [11:12:11]OFD Sender: No OFD packet to send [11:12:16]OFD Sender: No OFD packet to send [11:12:21]OFD Sender: No OFD packet to send [11:12:26]OFD Sender: No OFD packet to send [11:12:31]OFD Sender: No OFD packet to send [11:12:36]OFD Sender: No OFD packet to send [11:12:41]OFD Sender: No OFD packet to send [11:12:46]OFD Sender: No OFD packet to send [11:12:51]OFD Sender: No OFD packet to send [11:12:56]OFD Sender: No OFD packet to send [11:12:59]accept exits with 5 [11:12:59]New connection [11:12:59]New thread 3066543460 created [11:12:59]Thread 3066686820 joined [11:12:59]Waiting for new connection... [11:12:59] Sock 5.Parse request [11:12:59]Sock 5.Check first char [11:12:59]Sock 5.First char is OK [11:12:59]request: POST /json_proto HTTP/1.0 [11:12:59]Method: POST [11:12:59]URL: /json_proto [11:12:59]Method is POST - this is cgi request [11:12:59]url: /json_proto [11:12:59]query_string will be loaded in cgi processing [11:12:59]execute_cgi json_proto POST (null) [11:12:59]execute_cgi path=json_proto method=POST [11:12:59]POST find Content-Length [11:12:59]Host: 172.17.36.132:8080 [11:12:59]Content-Length: 670 [11:12:59]Content-Type: application/json [11:12:59] [11:12:59]POST finish read [11:12:59]Found Content-Length = 670 [11:12:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706384", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 8.840, "sum" : 600.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:12:59]execute_script... [11:12: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)706384", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 8.840, "sum" : 600.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:12:59]POST & json_proto [11:12:59]process_json_proto [11:12:59]json parsed OK: [11:12:59]protocol is kg_v1.0 [11:12:59]action value=close_receipt [11:12:59]process_action close_receipt [11:12:59]cmd_close_receipt [11:12:59]MH_GetDate [11:12:59]Write to MH i2c: F0 00 00 85 2C A0 [11:12:59]Write i2c OK [11:12:59]MH_I2C_Read... [11:12:59]Read from MH i2c: F0 [11:12:59]MH_I2C_Read... [11:12:59]Read from MH i2c: F0 09 00 [11:12:59]MH_I2C_Read... [11:12:59]Read from MH i2c: F0 09 00 85 2C 00 40 A5 5D 66 B2 22 B0 64 39 [11:12:59]GetLastDocTimeStamp 1717413073 [11:12:59]current date 1717413184 [11:12:59]FM_GetShiftState [11:12:59]SAM_PROTO_GetShiftState [11:12:59]wFMCommunicate request_size=4 [11:12:59]MH_SAM_APDU [11:12:59]CAPDU: 80 13 01 00 [11:12:59]Write to MH i2c: E2 08 00 86 2C 80 13 01 00 00 00 00 00 2F [11:12:59]Write i2c OK [11:12:59]MH_I2C_Read... [11:12:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:59]Read from MH i2c: E2 [11:12:59]MH_I2C_Read... [11:12:59]Read from MH i2c: E2 0E 00 [11:12:59]MH_I2C_Read... [11:12:59]Read from MH i2c: E2 0E 00 86 2C 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 0A [11:12:59]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [11:12:59]wFMCommunicate OK [11:12:59]SAM_PROTO_GetShiftState done [11:12:59]FM_GetShiftState done [11:12:59]opened in 1717378033 [11:12:59]opened+sec_in_day 1717464433 [11:12:59]quantity*price = 60023 [11:12:59]sum+1 = 60025 [11:12:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 57 03.06.2024 11:13 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68311 ФПД: 96971997531196 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T111304&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68311&fm=96971997531196&tin=02508201610067®Number=0000000000098096&sum=60000 [11:13:00]StoreToDocumentArchive [11:13:00]shift 324 fd 68311 [11:13:00]save to /storage/0324/doc_00068311 [11:13:00]save last doc name /storage/0324/doc_00068311 to /storage/kkm_last_doc_name [11:13:00]save OK [11:13:00]Clear old archive folders... [11:13:00]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:13:00]tlvbuf is 0023AD20 [11:13:00]SAM_PROTO_ClearQueue [11:13:00]wFMCommunicate request_size=4 [11:13:00]MH_SAM_APDU [11:13:00]CAPDU: 80 09 00 00 [11:13:00]Write to MH i2c: E2 08 00 93 2C 80 09 00 00 00 00 00 00 31 [11:13:00]Write i2c OK [11:13:00]MH_I2C_Read... [11:13:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:13:00]Read from MH i2c: E2 [11:13:00]MH_I2C_Read... [11:13:00]Read from MH i2c: E2 03 00 [11:13:00]MH_I2C_Read... [11:13:00]Read from MH i2c: E2 03 00 93 2C 00 90 00 33 [11:13:00]RAPDU: 90 00 [11:13:00]wFMCommunicate OK [11:13:00]SAM_PROTO_ClearQueue done [11:13:00]KKMCreateOFDPacket [11:13:00]OFDProtocolAddRootSTLVToBuf [11:13:00]FM_MakeSignedData [11:13:00]FM_MakeSignedData [11:13:00]SAM_PROTO_SignData [11:13:00]wFMCommunicate request_size=4 [11:13:00]MH_SAM_APDU [11:13:00]CAPDU: 80 0D 01 02 [11:13:00]Write to MH i2c: E2 08 00 94 2C 80 0D 01 02 00 00 00 00 39 [11:13:00]Write i2c OK [11:13:00]MH_I2C_Read... [11:13:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:13:00]Read from MH i2c: E2 [11:13:00]MH_I2C_Read... [11:13:00]Read from MH i2c: E2 03 00 [11:13:00]MH_I2C_Read... [11:13:00]Read from MH i2c: E2 03 00 94 2C 00 90 00 34 [11:13:00]RAPDU: 90 00 [11:13:00]wFMCommunicate OK [11:13:00]wFMCommunicate request_size=255 [11:13:00]MH_SAM_APDU [11:13: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 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 22 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 78 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 40 A5 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D7 0A 01 00 35 04 06 00 [11:13:00]Write to MH i2c: E2 02 01 95 2C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 22 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 78 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 40 A5 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D7 0A 01 00 35 04 06 00 00 00 C7 [11:13:00]Write i2c OK [11:13:00]MH_I2C_Read... [11:13:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:00]Read from MH i2c: E2 [11:13:00]MH_I2C_Read... [11:13:00]Read from MH i2c: E2 03 00 [11:13:00]MH_I2C_Read... [11:13:00]Read from MH i2c: E2 03 00 95 2C 00 90 00 35 [11:13:00]RAPDU: 90 00 [11:13:00]wFMCommunicate OK [11:13:00]wFMCommunicate request_size=11 [11:13:00]MH_SAM_APDU [11:13:00]CAPDU: 80 0D 02 02 06 58 32 0D 77 4C 3C [11:13:00]Write to MH i2c: E2 0E 00 96 2C 80 0D 02 02 06 00 58 32 0D 77 4C 3C 00 00 DE [11:13:00]Write i2c OK [11:13:00]MH_I2C_Read... [11:13:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:01]Read from MH i2c: E2 [11:13:01]MH_I2C_Read... [11:13:01]Read from MH i2c: E2 03 00 [11:13:01]MH_I2C_Read... [11:13:01]Read from MH i2c: E2 03 00 96 2C 00 90 00 36 [11:13:01]RAPDU: 90 00 [11:13:01]wFMCommunicate OK [11:13:01]wFMCommunicate request_size=4 [11:13:01]MH_SAM_APDU [11:13:01]CAPDU: 80 0D 03 02 [11:13:01]Write to MH i2c: E2 08 00 97 2C 80 0D 03 02 00 00 00 00 3E [11:13:01]Write i2c OK [11:13:01]MH_I2C_Read... [11:13:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:13:01]Read from MH i2c: E2 [11:13:01]MH_I2C_Read... [11:13:01]Read from MH i2c: E2 0B 00 [11:13:01]MH_I2C_Read... [11:13:01]Read from MH i2c: E2 0B 00 97 2C 00 94 68 76 36 1C D6 BE 19 90 00 B0 [11:13:01]RAPDU: 94 68 76 36 1C D6 BE 19 90 00 [11:13:01]wFMCommunicate OK [11:13:01]SAM_PROTO_SignData done [11:13:01]FM_MakeSignedData done [11:13:01]CreateOFDProtocolMessage [11:13:01]wFMCommunicate request_size=4 [11:13:01]MH_SAM_APDU [11:13:01]CAPDU: 80 11 00 00 [11:13:01]Write to MH i2c: E2 08 00 98 2C 80 11 00 00 00 00 00 00 3E [11:13:01]Write i2c OK [11:13:01]MH_I2C_Read... [11:13:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:01]Read from MH i2c: E2 [11:13:01]MH_I2C_Read... [11:13:01]Read from MH i2c: E2 17 00 [11:13:01]MH_I2C_Read... [11:13:01]Read from MH i2c: E2 17 00 98 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 89 [11:13:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [11:13:01]wFMCommunicate OK [11:13:01]CreateOFDProtocolMessage done [11:13:01]OFDSenderStorePacket 68311 [11:13:01]StoreOFDPacket docnum=68311 [11:13:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 C7 97 08 01 58 7C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 22 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 78 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 40 A5 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D7 0A 01 00 35 04 06 00 58 32 0D 77 4C 3C 94 68 76 36 1C D6 BE 19 [11:13:01]CheckFolder [11:13:01]dirname=/storage/ofd_packets [11:13:01]CheckFolder done [11:13:01]ProducePacketName [11:13:01]name=ofd_packets/00068311 [11:13:01]NVStorageSaveData ofd_packets/00068311 [11:13:01]File name is /storage/ofd_packets/00068311 [11:13:01]Write 302 bytes [11:13:01]NVStorageSaveData done [11:13:01]OFDSenderStorePacket done [11:13:01]KKMCreateOFDPacket done [11:13:01]NVStorageSaveData kkm_last_timestamp [11:13:01]File name is /storage/kkm_last_timestamp [11:13:01]Write 4 bytes [11:13:01]NVStorageSaveData done [11:13:01]ExternCall_PrintAddStr [11:13:01]wPrintStart [11:13:01]Write to MH i2c: 01 00 00 99 2C C5 [11:13:01]OFD Sender: Processing packet 68311 [packets to send 26, broken 25] [11:13:01]ProducePacketName [11:13:01]name=ofd_packets/00068311 [11:13:01]OFD Sender: To server: pG, [11:13:01]CommunicateWithHost lk.salyk.kg:30040 [11:13:01]ConnectInit lk.salyk.kg [11:13:01]Write i2c OK [11:13:01]MH_I2C_Read... [11:13:01]Read from MH i2c: 01 [11:13:01]MH_I2C_Read... [11:13:01]Read from MH i2c: 01 07 00 [11:13:01]MH_I2C_Read... [11:13:01]Read from MH i2c: 01 07 00 99 2C 00 00 00 00 00 FF 0F DA [11:13:01]RasterBufferAndPrint [11:13:01]line Счет N : (1)706384 [11:13:01]line ИНН: 02508201610067 [11:13:01]line Контрольно-Кассовый Чек [11:13:01]line ПРОДАЖА [11:13:01]line ТРК (МРК, ГНК) : 41 [11:13:01]line Товар: 2710124130 [11:13:01]line Super-92-К-5 [11:13:01]line 8.840 * 67.90 [11:13:01]line = 600.24 [11:13:01]line НДС 12% НСП 1% [11:13:01]line > о реализуемом товаре [11:13:01]line ОКРУГЛЕНИЕ: -0.24 [11:13:01]line ИТОГО: 600.00 [11:13:01]line Внесено: 600.00 [11:13:01]line СДАЧА: 0.00 [11:13:01]line НСП 1% : 5.31 [11:13:01]line НДС 12% : 63.74 [11:13:01]line Наличными: 600.00 [11:13:01]line Безнал.: 0.00 [11:13:01]line Место: АЗС № 62 "Партнер Нефть" [11:13:01]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [11:13:01]line СНО: Общий режим [11:13:01]line Чек 57 03.06.2024 11:13 [11:13:01]line Смена: 324 ФФД: 1.0 [11:13:01]line ЗНМ: 0300000181 [11:13:01]line РНМ: 0000000000098096 [11:13:01]line Версия ККМ: 001 [11:13:01]line ФМ: 0000000000965400 [11:13:01]line ФД: 68311 [11:13:01]line ФПД: 96971997531196 [11:13:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T111304&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68311&fm=96971997531196&tin=02508201610067®Number=0000000000098096&sum=60000 [11:13:01]Connected sock=7 [11:13:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 C7 97 08 01 58 7C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 22 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 78 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 40 A5 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D7 0A 01 00 35 04 06 00 58 32 0D 77 4C 3C 94 68 76 36 1C D6 BE 19 [11:13:01]written 0, free lines is 4095 [11:13:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 F3 C1 47 00 88 FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D7 0A 01 00 F4 03 04 00 3C 4C 5D 66 B6 04 01 00 00 F3 FA 3C B7 69 AA B0 06 [11:13:01]CommunicateWithHost err = 0 [11:13:01]CheckOFDResponse [11:13:01]1017 (14) - 77093643461234 [11:13:01]1041 (16) - 0000000000965400 [11:13:01]1040 (4) - 68311 [11:13:01]1012 (4) - 03.06.2024 04:53 [11:13:01]1206 (1) - 0 [11:13:01]OFD Sender: Remove packet 68311 [11:13:01]ProducePacketName [11:13:01]name=ofd_packets/00068311 [11:13:01]NVStorageDeleteData [11:13:01]Write to MH i2c: 01 00 00 C4 2C F0 [11:13:01]Write i2c OK [11:13:01]MH_I2C_Read... [11:13:01]Read from MH i2c: 01 [11:13:01]MH_I2C_Read... [11:13:01]Read from MH i2c: 01 07 00 [11:13:01]MH_I2C_Read... [11:13:01]Read from MH i2c: 01 07 00 C4 2C 00 00 00 00 00 D4 0C D7 [11:13:01]RasterBufferAndPrint [11:13:01]line [11:13:01]line [11:13:01]line [11:13:01]line [11:13:01]line [11:13:01]written 0, free lines is 3290 [11:13:01]MH_Cut [11:13:01]Write to MH i2c: D1 01 00 CB 2C 01 C9 [11:13:01]Write i2c OK [11:13:01]MH_I2C_Read... [11:13:01]Read from MH i2c: D1 [11:13:01]MH_I2C_Read... [11:13:01]Read from MH i2c: D1 01 00 [11:13:01]MH_I2C_Read... [11:13:01]Read from MH i2c: D1 01 00 CB 2C 00 C8 [11:13:01]Write to MH i2c: 01 00 00 CC 2C F8 [11:13:01]Write i2c OK [11:13:01]MH_I2C_Read... [11:13:02]OFD Sender: No OFD packet to send [11:13:02]*** Cut start [11:13:02]*** Partial cut [11:13:02]*** CUTSNS_PIN = 1 [11:13:02]*** CUTSNS_PIN = 0 [11:13:03]*** Brake cut motor [11:13:03]Read from MH i2c: 01 [11:13:03]*** Stop cut motor [11:13:03]*** Cut end [11:13:03]MH_I2C_Read... [11:13:03]Read from MH i2c: 01 07 00 [11:13:03]MH_I2C_Read... [11:13:03]Read from MH i2c: 01 07 00 CC 2C 00 00 00 00 00 FF 0F 0D [11:13:03]process_action close_receipt done [11:13:03]requested_data is exist [11:13:03]produce_requested_data [11:13:03]requested_item fm.sn is exist - process it [11:13:03]wFMCommunicate request_size=4 [11:13:03]MH_SAM_APDU [11:13:03]CAPDU: 80 11 00 00 [11:13:03]Write to MH i2c: E2 08 00 CD 2C 80 11 00 00 00 00 00 00 73 [11:13:03]Write i2c OK [11:13:03]MH_I2C_Read... [11:13:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:03]Read from MH i2c: E2 [11:13:03]MH_I2C_Read... [11:13:03]Read from MH i2c: E2 17 00 [11:13:03]MH_I2C_Read... [11:13:03]Read from MH i2c: E2 17 00 CD 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 BE [11:13:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [11:13:03]wFMCommunicate OK [11:13:03]requested_item fd.num is exist - process it [11:13:03]SAM_PROTO_GetFieldsCounters [11:13:03]wFMCommunicate request_size=4 [11:13:03]MH_SAM_APDU [11:13:03]CAPDU: 80 13 00 00 [11:13:03]Write to MH i2c: E2 08 00 CE 2C 80 13 00 00 00 00 00 00 76 [11:13:03]Write i2c OK [11:13:03]MH_I2C_Read... [11:13:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:13:03]Read from MH i2c: E2 [11:13:03]MH_I2C_Read... [11:13:03]Read from MH i2c: E2 62 00 [11:13:03]MH_I2C_Read... [11:13:03]Read from MH i2c: E2 62 00 CE 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 D7 0A 01 00 0E 04 04 00 44 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 68 [11:13:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 D7 0A 01 00 0E 04 04 00 44 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 [11:13:03]wFMCommunicate OK [11:13:03]SAM_PROTO_GetFieldsCounters done [11:13:03]requested_item shift.num is exist - process it [11:13:03]requested_item shift.opened is exist - process it [11:13:03]req_shift_opened [11:13:03]FM_GetShiftState [11:13:03]SAM_PROTO_GetShiftState [11:13:03]wFMCommunicate request_size=4 [11:13:03]MH_SAM_APDU [11:13:03]CAPDU: 80 13 01 00 [11:13:03]Write to MH i2c: E2 08 00 CF 2C 80 13 01 00 00 00 00 00 78 [11:13:03]Write i2c OK [11:13:03]MH_I2C_Read... [11:13:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:03]Read from MH i2c: E2 [11:13:03]MH_I2C_Read... [11:13:03]Read from MH i2c: E2 0E 00 [11:13:03]MH_I2C_Read... [11:13:03]Read from MH i2c: E2 0E 00 CF 2C 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 53 [11:13:03]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [11:13:03]wFMCommunicate OK [11:13:03]SAM_PROTO_GetShiftState done [11:13:03]FM_GetShiftState done [11:13:03]req_shift_opened done [11:13:03]requested_item shift.open_date is exist - process it [11:13:03]req_shift_open_date [11:13:03]req_shift_open_date done [11:13:03]produce_requested_data done [11:13:03]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68311,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [11:13:03]process_action_free close_receipt [11:13:03]json_value_free [11:13:03]json_value_free done [11:13:03]process_json_proto returns [11:13:03]Send response to host [11:13:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68311,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [11:13:03]free response buf [11:13:03]execute_script done [11:13:03]execute_script returns [11:13:03]free content buf [11:13:03]Sock 5.Close socket [11:13:03]Sock 5.Thread stoped [11:13:07]OFD Sender: No OFD packet to send [11:13:12]OFD Sender: No OFD packet to send [11:13:17]OFD Sender: No OFD packet to send [11:13:22]OFD Sender: No OFD packet to send [11:13:27]OFD Sender: No OFD packet to send [11:13:32]OFD Sender: No OFD packet to send [11:13:37]OFD Sender: No OFD packet to send [11:13:42]OFD Sender: No OFD packet to send [11:13:47]OFD Sender: No OFD packet to send [11:13:52]OFD Sender: No OFD packet to send [11:13:57]OFD Sender: No OFD packet to send [11:14:02]OFD Sender: No OFD packet to send [11:14:07]OFD Sender: No OFD packet to send [11:14:12]OFD Sender: No OFD packet to send [11:14:15]accept exits with 6 [11:14:15]New connection [11:14:15]New thread 3066686820 created [11:14:15]Thread 3066543460 joined [11:14:15]Waiting for new connection... [11:14:15] Sock 6.Parse request [11:14:15]Sock 6.Check first char [11:14:15]Sock 6.First char is OK [11:14:15]request: POST /json_proto HTTP/1.0 [11:14:15]Method: POST [11:14:15]URL: /json_proto [11:14:15]Method is POST - this is cgi request [11:14:15]url: /json_proto [11:14:15]query_string will be loaded in cgi processing [11:14:15]execute_cgi json_proto POST (null) [11:14:15]execute_cgi path=json_proto method=POST [11:14:15]POST find Content-Length [11:14:15]Host: 172.17.36.132:8080 [11:14:15]Content-Length: 1143 [11:14:15]Content-Type: application/json [11:14:15] [11:14:15]POST finish read [11:14:15]Found Content-Length = 1143 [11:14:15]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706385\u000A03.06.2024 10:51\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 5.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 334.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30111787\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:14:15]execute_script... [11:14:15]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706385\u000A03.06.2024 10:51\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 5.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 334.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30111787\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:14:15]POST & json_proto [11:14:15]process_json_proto [11:14:15]json parsed OK: [11:14:15]protocol is kg_v1.0 [11:14:15]action value=print_text [11:14:15]process_action print_text [11:14:15]cmd_print_text [11:14:15]ExternCall_PrintAddStr [11:14:15]wPrintStart [11:14:15]Write to MH i2c: 01 00 00 D0 2C FC [11:14:15]Write i2c OK [11:14:15]MH_I2C_Read... [11:14:15]Read from MH i2c: 01 [11:14:15]MH_I2C_Read... [11:14:15]Read from MH i2c: 01 07 00 [11:14:15]MH_I2C_Read... [11:14:15]Read from MH i2c: 01 07 00 D0 2C 00 00 00 00 00 FF 0F 11 [11:14:15]RasterBufferAndPrint [11:14:15]line *****ТОВАРНЫЙ ЧЕК***** [11:14:15]line АЗС 62 [11:14:15]line Партнер нефть [11:14:15]line 02508201610067 [11:14:15]line Кассир : Балаев А. [11:14:15]line Счет N : (1)706385 [11:14:15]line 03.06.2024 10:51 [11:14:15]line ПРОДАЖА [11:14:15]line ТРК (МРК, ГНК): 32 [11:14:15]line Вид ГСМ : 2710124130 [11:14:15]line Аи-92-К-4 [11:14:15]line 5.000 x 66.90 [11:14:15]line ИТОГ: 334.50 [11:14:15]line Тип оплаты: Талоны: ТК ГПНА Online [11:14:15]line 30111787 [11:14:15]line ______________________ [11:14:15]line (подпись) [11:14:15]written 0, free lines is 4095 [11:14:15]Write to MH i2c: 01 00 00 E4 2C 10 [11:14:15]Write i2c OK [11:14:15]MH_I2C_Read... [11:14:15]Read from MH i2c: 01 [11:14:15]MH_I2C_Read... [11:14:15]Read from MH i2c: 01 07 00 [11:14:15]MH_I2C_Read... [11:14:15]Read from MH i2c: 01 07 00 E4 2C 00 00 00 00 00 0F 0E 34 [11:14:15]RasterBufferAndPrint [11:14:15]line [11:14:15]line [11:14:15]line [11:14:15]line [11:14:15]line [11:14:15]written 0, free lines is 3601 [11:14:15]MH_Cut [11:14:15]Write to MH i2c: D1 01 00 EB 2C 01 E9 [11:14:15]Write i2c OK [11:14:15]MH_I2C_Read... [11:14:15]Read from MH i2c: D1 [11:14:15]MH_I2C_Read... [11:14:15]Read from MH i2c: D1 01 00 [11:14:15]MH_I2C_Read... [11:14:15]Read from MH i2c: D1 01 00 EB 2C 00 E8 [11:14:15]Write to MH i2c: 01 00 00 EC 2C 18 [11:14:15]Write i2c OK [11:14:15]MH_I2C_Read... [11:14:16]*** Cut start [11:14:16]*** Partial cut [11:14:16]*** CUTSNS_PIN = 1 [11:14:16]*** CUTSNS_PIN = 0 [11:14:16]*** Brake cut motor [11:14:17]Read from MH i2c: 01 [11:14:17]MH_I2C_Read... [11:14:17]*** Stop cut motor [11:14:17]*** Cut end [11:14:17]Read from MH i2c: 01 07 00 [11:14:17]MH_I2C_Read... [11:14:17]Read from MH i2c: 01 07 00 EC 2C 00 00 00 00 00 FF 0F 2D [11:14:17]process_action print_text done [11:14:17]requested_data is exist [11:14:17]produce_requested_data [11:14:17]requested_item fm.sn is exist - process it [11:14:17]wFMCommunicate request_size=4 [11:14:17]MH_SAM_APDU [11:14:17]CAPDU: 80 11 00 00 [11:14:17]Write to MH i2c: E2 08 00 ED 2C 80 11 00 00 00 00 00 00 93 [11:14:17]Write i2c OK [11:14:17]MH_I2C_Read... [11:14:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:17]Read from MH i2c: E2 [11:14:17]MH_I2C_Read... [11:14:17]Read from MH i2c: E2 17 00 [11:14:17]MH_I2C_Read... [11:14:17]Read from MH i2c: E2 17 00 ED 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 DE [11:14:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [11:14:17]wFMCommunicate OK [11:14:17]requested_item fd.num is exist - process it [11:14:17]SAM_PROTO_GetFieldsCounters [11:14:17]wFMCommunicate request_size=4 [11:14:17]MH_SAM_APDU [11:14:17]CAPDU: 80 13 00 00 [11:14:17]Write to MH i2c: E2 08 00 EE 2C 80 13 00 00 00 00 00 00 96 [11:14:17]Write i2c OK [11:14:17]MH_I2C_Read... [11:14:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:14:17]Read from MH i2c: E2 [11:14:17]MH_I2C_Read... [11:14:17]Read from MH i2c: E2 62 00 [11:14:17]MH_I2C_Read... [11:14:17]Read from MH i2c: E2 62 00 EE 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 D7 0A 01 00 0E 04 04 00 44 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 88 [11:14:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 D7 0A 01 00 0E 04 04 00 44 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 [11:14:17]wFMCommunicate OK [11:14:17]SAM_PROTO_GetFieldsCounters done [11:14:17]requested_item shift.num is exist - process it [11:14:17]requested_item shift.opened is exist - process it [11:14:17]req_shift_opened [11:14:17]FM_GetShiftState [11:14:17]SAM_PROTO_GetShiftState [11:14:17]wFMCommunicate request_size=4 [11:14:17]MH_SAM_APDU [11:14:17]CAPDU: 80 13 01 00 [11:14:17]Write to MH i2c: E2 08 00 EF 2C 80 13 01 00 00 00 00 00 98 [11:14:17]Write i2c OK [11:14:17]MH_I2C_Read... [11:14:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:17]Read from MH i2c: E2 [11:14:17]MH_I2C_Read... [11:14:17]Read from MH i2c: E2 0E 00 [11:14:17]MH_I2C_Read... [11:14:17]Read from MH i2c: E2 0E 00 EF 2C 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 73 [11:14:17]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [11:14:17]wFMCommunicate OK [11:14:17]SAM_PROTO_GetShiftState done [11:14:17]FM_GetShiftState done [11:14:17]req_shift_opened done [11:14:17]requested_item shift.open_date is exist - process it [11:14:17]req_shift_open_date [11:14:17]req_shift_open_date done [11:14:17]produce_requested_data done [11:14:17]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68311,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [11:14:17]process_action_free print_text [11:14:17]json_value_free [11:14:17]json_value_free done [11:14:17]process_json_proto returns [11:14:17]Send response to host [11:14:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68311,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [11:14:17]free response buf [11:14:17]execute_script done [11:14:17]execute_script returns [11:14:17]free content buf [11:14:17]Sock 6.Close socket [11:14:17]Sock 6.Thread stoped [11:14:17]OFD Sender: No OFD packet to send [11:14:22]OFD Sender: No OFD packet to send [11:14:27]OFD Sender: No OFD packet to send [11:14:32]OFD Sender: No OFD packet to send [11:14:37]OFD Sender: No OFD packet to send [11:14:42]OFD Sender: No OFD packet to send [11:14:47]OFD Sender: No OFD packet to send [11:14:52]OFD Sender: No OFD packet to send [11:14:57]OFD Sender: No OFD packet to send [11:15:02]OFD Sender: No OFD packet to send [11:15:07]OFD Sender: No OFD packet to send [11:15:12]OFD Sender: No OFD packet to send [11:15:17]OFD Sender: No OFD packet to send [11:15:22]OFD Sender: No OFD packet to send [11:15:27]OFD Sender: No OFD packet to send [11:15:32]OFD Sender: No OFD packet to send [11:15:37]OFD Sender: No OFD packet to send [11:15:42]OFD Sender: No OFD packet to send [11:15:47]OFD Sender: No OFD packet to send [11:15:52]OFD Sender: No OFD packet to send [11:15:57]OFD Sender: No OFD packet to send [11:16:02]OFD Sender: No OFD packet to send [11:16:07]OFD Sender: No OFD packet to send [11:16:12]OFD Sender: No OFD packet to send [11:16:12]accept exits with 5 [11:16:12]New connection [11:16:12]New thread 3066543460 created [11:16:12]Thread 3066686820 joined [11:16:12]Waiting for new connection... [11:16:12] Sock 5.Parse request [11:16:12]Sock 5.Check first char [11:16:12]Sock 5.First char is OK [11:16:12]request: POST /json_proto HTTP/1.0 [11:16:12]Method: POST [11:16:12]URL: /json_proto [11:16:12]Method is POST - this is cgi request [11:16:12]url: /json_proto [11:16:12]query_string will be loaded in cgi processing [11:16:12]execute_cgi json_proto POST (null) [11:16:12]execute_cgi path=json_proto method=POST [11:16:12]POST find Content-Length [11:16:12]Host: 172.17.36.132:8080 [11:16:12]Content-Length: 1183 [11:16:12]Content-Type: application/json [11:16:12] [11:16:12]POST finish read [11:16:12]Found Content-Length = 1183 [11:16:12]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706386\u000A03.06.2024 10:53\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 63\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 30.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 2007.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A91341\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:12]execute_script... [11:16:12]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706386\u000A03.06.2024 10:53\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 63\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 30.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 2007.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A91341\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:12]POST & json_proto [11:16:12]process_json_proto [11:16:12]json parsed OK: [11:16:12]protocol is kg_v1.0 [11:16:12]action value=print_text [11:16:12]process_action print_text [11:16:12]cmd_print_text [11:16:12]ExternCall_PrintAddStr [11:16:12]wPrintStart [11:16:12]Write to MH i2c: 01 00 00 F0 2C 1C [11:16:12]Write i2c OK [11:16:12]MH_I2C_Read... [11:16:12]Read from MH i2c: 01 [11:16:12]MH_I2C_Read... [11:16:12]Read from MH i2c: 01 07 00 [11:16:12]MH_I2C_Read... [11:16:12]Read from MH i2c: 01 07 00 F0 2C 00 00 00 00 00 FF 0F 31 [11:16:12]RasterBufferAndPrint [11:16:12]line *****ТОВАРНЫЙ ЧЕК***** [11:16:12]line АЗС 62 [11:16:12]line Партнер нефть [11:16:12]line 02508201610067 [11:16:12]line Кассир : Балаев А. [11:16:12]line Счет N : (1)706386 [11:16:12]line 03.06.2024 10:53 [11:16:12]line ПРОДАЖА [11:16:12]line ТРК (МРК, ГНК): 63 [11:16:12]line Вид ГСМ : 2710124130 [11:16:12]line Аи-92-К-4 [11:16:12]line 30.000 x 66.90 [11:16:12]line ИТОГ: 2007.00 [11:16:12]line Тип оплаты: Талоны: Топливная Карта [11:16:12]line 91341 [11:16:12]line ______________________ [11:16:12]line (подпись) [11:16:12]written 0, free lines is 4095 [11:16:12]Write to MH i2c: 01 00 00 04 2D 31 [11:16:12]Write i2c OK [11:16:12]MH_I2C_Read... [11:16:12]Read from MH i2c: 01 [11:16:12]MH_I2C_Read... [11:16:12]Read from MH i2c: 01 07 00 [11:16:12]MH_I2C_Read... [11:16:12]Read from MH i2c: 01 07 00 04 2D 00 00 00 00 00 12 0E 58 [11:16:12]RasterBufferAndPrint [11:16:12]line [11:16:12]line [11:16:12]line [11:16:12]line [11:16:12]line [11:16:12]written 0, free lines is 3603 [11:16:12]MH_Cut [11:16:12]Write to MH i2c: D1 01 00 0B 2D 01 0A [11:16:12]Write i2c OK [11:16:12]MH_I2C_Read... [11:16:12]Read from MH i2c: D1 [11:16:12]MH_I2C_Read... [11:16:12]Read from MH i2c: D1 01 00 [11:16:12]MH_I2C_Read... [11:16:12]Read from MH i2c: D1 01 00 0B 2D 00 09 [11:16:12]Write to MH i2c: 01 00 00 0C 2D 39 [11:16:12]Write i2c OK [11:16:12]MH_I2C_Read... [11:16:13]*** Cut start [11:16:13]*** Partial cut [11:16:13]*** CUTSNS_PIN = 1 [11:16:13]*** CUTSNS_PIN = 0 [11:16:13]*** Brake cut motor [11:16:13]Read from MH i2c: 01 [11:16:13]MH_I2C_Read... [11:16:13]*** Stop cut motor [11:16:13]*** Cut end [11:16:13]Read from MH i2c: 01 07 00 [11:16:13]MH_I2C_Read... [11:16:13]Read from MH i2c: 01 07 00 0C 2D 00 00 00 00 00 FF 0F 4E [11:16:13]process_action print_text done [11:16:13]requested_data is exist [11:16:13]produce_requested_data [11:16:13]requested_item fm.sn is exist - process it [11:16:13]wFMCommunicate request_size=4 [11:16:13]MH_SAM_APDU [11:16:13]CAPDU: 80 11 00 00 [11:16:13]Write to MH i2c: E2 08 00 0D 2D 80 11 00 00 00 00 00 00 B4 [11:16:13]Write i2c OK [11:16:13]MH_I2C_Read... [11:16:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:13]Read from MH i2c: E2 [11:16:13]MH_I2C_Read... [11:16:13]Read from MH i2c: E2 17 00 [11:16:13]MH_I2C_Read... [11:16:13]Read from MH i2c: E2 17 00 0D 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 FF [11:16:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [11:16:13]wFMCommunicate OK [11:16:13]requested_item fd.num is exist - process it [11:16:13]SAM_PROTO_GetFieldsCounters [11:16:13]wFMCommunicate request_size=4 [11:16:13]MH_SAM_APDU [11:16:13]CAPDU: 80 13 00 00 [11:16:13]Write to MH i2c: E2 08 00 0E 2D 80 13 00 00 00 00 00 00 B7 [11:16:13]Write i2c OK [11:16:13]MH_I2C_Read... [11:16:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:16:13]Read from MH i2c: E2 [11:16:13]MH_I2C_Read... [11:16:13]Read from MH i2c: E2 62 00 [11:16:13]MH_I2C_Read... [11:16:13]Read from MH i2c: E2 62 00 0E 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 D7 0A 01 00 0E 04 04 00 44 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 A9 [11:16:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 D7 0A 01 00 0E 04 04 00 44 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 [11:16:13]wFMCommunicate OK [11:16:13]SAM_PROTO_GetFieldsCounters done [11:16:13]requested_item shift.num is exist - process it [11:16:13]requested_item shift.opened is exist - process it [11:16:13]req_shift_opened [11:16:13]FM_GetShiftState [11:16:13]SAM_PROTO_GetShiftState [11:16:13]wFMCommunicate request_size=4 [11:16:13]MH_SAM_APDU [11:16:13]CAPDU: 80 13 01 00 [11:16:13]Write to MH i2c: E2 08 00 0F 2D 80 13 01 00 00 00 00 00 B9 [11:16:13]Write i2c OK [11:16:13]MH_I2C_Read... [11:16:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:13]Read from MH i2c: E2 [11:16:13]MH_I2C_Read... [11:16:13]Read from MH i2c: E2 0E 00 [11:16:13]MH_I2C_Read... [11:16:13]Read from MH i2c: E2 0E 00 0F 2D 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 94 [11:16:13]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [11:16:13]wFMCommunicate OK [11:16:13]SAM_PROTO_GetShiftState done [11:16:13]FM_GetShiftState done [11:16:13]req_shift_opened done [11:16:13]requested_item shift.open_date is exist - process it [11:16:13]req_shift_open_date [11:16:13]req_shift_open_date done [11:16:13]produce_requested_data done [11:16:13]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68311,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [11:16:13]process_action_free print_text [11:16:13]json_value_free [11:16:13]json_value_free done [11:16:13]process_json_proto returns [11:16:13]Send response to host [11:16:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68311,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [11:16:13]free response buf [11:16:13]execute_script done [11:16:13]execute_script returns [11:16:13]free content buf [11:16:13]Sock 5.Close socket [11:16:13]Sock 5.Thread stoped [11:16:17]OFD Sender: No OFD packet to send [11:16:22]OFD Sender: No OFD packet to send [11:16:27]OFD Sender: No OFD packet to send [11:16:32]OFD Sender: No OFD packet to send [11:16:37]OFD Sender: No OFD packet to send [11:16:42]OFD Sender: No OFD packet to send [11:16:47]OFD Sender: No OFD packet to send [11:16:52]OFD Sender: No OFD packet to send [11:16:57]OFD Sender: No OFD packet to send [11:17:02]OFD Sender: No OFD packet to send [11:17:07]OFD Sender: No OFD packet to send [11:17:12]OFD Sender: No OFD packet to send [11:17:17]OFD Sender: No OFD packet to send [11:17:22]OFD Sender: No OFD packet to send [11:17:27]OFD Sender: No OFD packet to send [11:17:32]OFD Sender: No OFD packet to send [11:17:37]OFD Sender: No OFD packet to send [11:17:42]OFD Sender: No OFD packet to send [11:17:47]OFD Sender: No OFD packet to send [11:17:52]OFD Sender: No OFD packet to send [11:17:57]OFD Sender: No OFD packet to send [11:18:02]OFD Sender: No OFD packet to send [11:18:07]OFD Sender: No OFD packet to send [11:18:12]OFD Sender: No OFD packet to send [11:18:17]OFD Sender: No OFD packet to send [11:18:20]accept exits with 6 [11:18:20]New connection [11:18:20]New thread 3066686820 created [11:18:20]Thread 3066543460 joined [11:18:20]Waiting for new connection... [11:18:20] Sock 6.Parse request [11:18:20]Sock 6.Check first char [11:18:20]Sock 6.First char is OK [11:18:20]request: POST /json_proto HTTP/1.0 [11:18:20]Method: POST [11:18:20]URL: /json_proto [11:18:20]Method is POST - this is cgi request [11:18:20]url: /json_proto [11:18:20]query_string will be loaded in cgi processing [11:18:20]execute_cgi json_proto POST (null) [11:18:20]execute_cgi path=json_proto method=POST [11:18:20]POST find Content-Length [11:18:20]Host: 172.17.36.132:8080 [11:18:20]Content-Length: 677 [11:18:20]Content-Type: application/json [11:18:20] [11:18:20]POST finish read [11:18:20]Found Content-Length = 677 [11:18:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706387", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:18:20]execute_script... [11:18: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)706387", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:18:20]POST & json_proto [11:18:20]process_json_proto [11:18:20]json parsed OK: [11:18:20]protocol is kg_v1.0 [11:18:20]action value=close_receipt [11:18:20]process_action close_receipt [11:18:20]cmd_close_receipt [11:18:20]MH_GetDate [11:18:20]Write to MH i2c: F0 00 00 10 2D 2C [11:18:20]Write i2c OK [11:18:20]MH_I2C_Read... [11:18:20]Read from MH i2c: F0 [11:18:20]MH_I2C_Read... [11:18:20]Read from MH i2c: F0 09 00 [11:18:20]MH_I2C_Read... [11:18:20]Read from MH i2c: F0 09 00 10 2D 00 81 A6 5D 66 B2 22 B0 64 07 [11:18:20]GetLastDocTimeStamp 1717413184 [11:18:20]current date 1717413505 [11:18:20]FM_GetShiftState [11:18:20]SAM_PROTO_GetShiftState [11:18:20]wFMCommunicate request_size=4 [11:18:20]MH_SAM_APDU [11:18:20]CAPDU: 80 13 01 00 [11:18:20]Write to MH i2c: E2 08 00 11 2D 80 13 01 00 00 00 00 00 BB [11:18:20]Write i2c OK [11:18:20]MH_I2C_Read... [11:18:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:20]Read from MH i2c: E2 [11:18:20]MH_I2C_Read... [11:18:20]Read from MH i2c: E2 0E 00 [11:18:20]MH_I2C_Read... [11:18:20]Read from MH i2c: E2 0E 00 11 2D 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 96 [11:18:20]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [11:18:20]wFMCommunicate OK [11:18:20]SAM_PROTO_GetShiftState done [11:18:20]FM_GetShiftState done [11:18:20]opened in 1717378033 [11:18:20]opened+sec_in_day 1717464433 [11:18:20]quantity*price = 35055 [11:18:20]sum+1 = 35057 [11:18:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 58 03.06.2024 11:18 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68312 ФПД: 190897056439638 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T111825&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68312&fm=190897056439638&tin=02508201610067®Number=0000000000098096&sum=35000 [11:18:21]StoreToDocumentArchive [11:18:21]shift 324 fd 68312 [11:18:21]save to /storage/0324/doc_00068312 [11:18:21]save last doc name /storage/0324/doc_00068312 to /storage/kkm_last_doc_name [11:18:21]save OK [11:18:21]Clear old archive folders... [11:18:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:18:21]tlvbuf is 004CEC00 [11:18:21]SAM_PROTO_ClearQueue [11:18:21]wFMCommunicate request_size=4 [11:18:21]MH_SAM_APDU [11:18:21]CAPDU: 80 09 00 00 [11:18:21]Write to MH i2c: E2 08 00 1E 2D 80 09 00 00 00 00 00 00 BD [11:18:21]Write i2c OK [11:18:21]MH_I2C_Read... [11:18:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:18:21]Read from MH i2c: E2 [11:18:21]MH_I2C_Read... [11:18:21]Read from MH i2c: E2 03 00 [11:18:21]MH_I2C_Read... [11:18:21]Read from MH i2c: E2 03 00 1E 2D 00 90 00 BF [11:18:21]RAPDU: 90 00 [11:18:21]wFMCommunicate OK [11:18:21]SAM_PROTO_ClearQueue done [11:18:21]KKMCreateOFDPacket [11:18:21]OFDProtocolAddRootSTLVToBuf [11:18:21]FM_MakeSignedData [11:18:21]FM_MakeSignedData [11:18:21]SAM_PROTO_SignData [11:18:21]wFMCommunicate request_size=4 [11:18:21]MH_SAM_APDU [11:18:21]CAPDU: 80 0D 01 02 [11:18:21]Write to MH i2c: E2 08 00 1F 2D 80 0D 01 02 00 00 00 00 C5 [11:18:21]Write i2c OK [11:18:21]MH_I2C_Read... [11:18:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:18:21]Read from MH i2c: E2 [11:18:21]MH_I2C_Read... [11:18:21]Read from MH i2c: E2 03 00 [11:18:21]MH_I2C_Read... [11:18:21]Read from MH i2c: E2 03 00 1F 2D 00 90 00 C0 [11:18:21]RAPDU: 90 00 [11:18:21]wFMCommunicate OK [11:18:21]wFMCommunicate request_size=255 [11:18:21]MH_SAM_APDU [11:18: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 34 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 81 A6 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D8 0A 01 00 35 04 06 00 AD [11:18:21]Write to MH i2c: E2 02 01 20 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 81 A6 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D8 0A 01 00 35 04 06 00 AD 00 00 56 [11:18:21]Write i2c OK [11:18:21]MH_I2C_Read... [11:18:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:22]Read from MH i2c: E2 [11:18:22]MH_I2C_Read... [11:18:22]Read from MH i2c: E2 03 00 [11:18:22]MH_I2C_Read... [11:18:22]Read from MH i2c: E2 03 00 20 2D 00 90 00 C1 [11:18:22]RAPDU: 90 00 [11:18:22]wFMCommunicate OK [11:18:22]wFMCommunicate request_size=10 [11:18:22]MH_SAM_APDU [11:18:22]CAPDU: 80 0D 02 02 05 9E AF 3C DD 56 [11:18:22]Write to MH i2c: E2 0D 00 21 2D 80 0D 02 02 05 00 9E AF 3C DD 56 00 00 8E [11:18:22]Write i2c OK [11:18:22]MH_I2C_Read... [11:18:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:22]Read from MH i2c: E2 [11:18:22]MH_I2C_Read... [11:18:22]Read from MH i2c: E2 03 00 [11:18:22]MH_I2C_Read... [11:18:22]Read from MH i2c: E2 03 00 21 2D 00 90 00 C2 [11:18:22]RAPDU: 90 00 [11:18:22]wFMCommunicate OK [11:18:22]wFMCommunicate request_size=4 [11:18:22]MH_SAM_APDU [11:18:22]CAPDU: 80 0D 03 02 [11:18:22]Write to MH i2c: E2 08 00 22 2D 80 0D 03 02 00 00 00 00 CA [11:18:22]Write i2c OK [11:18:22]MH_I2C_Read... [11:18:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:18:22]Read from MH i2c: E2 [11:18:22]MH_I2C_Read... [11:18:22]Read from MH i2c: E2 0B 00 [11:18:22]MH_I2C_Read... [11:18:22]Read from MH i2c: E2 0B 00 22 2D 00 27 06 F1 A3 CE DF 43 AF 90 00 2B [11:18:22]RAPDU: 27 06 F1 A3 CE DF 43 AF 90 00 [11:18:22]wFMCommunicate OK [11:18:22]SAM_PROTO_SignData done [11:18:22]FM_MakeSignedData done [11:18:22]CreateOFDProtocolMessage [11:18:22]wFMCommunicate request_size=4 [11:18:22]MH_SAM_APDU [11:18:22]CAPDU: 80 11 00 00 [11:18:22]Write to MH i2c: E2 08 00 23 2D 80 11 00 00 00 00 00 00 CA [11:18:22]Write i2c OK [11:18:22]MH_I2C_Read... [11:18:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:22]Read from MH i2c: E2 [11:18:22]MH_I2C_Read... [11:18:22]Read from MH i2c: E2 17 00 [11:18:22]MH_I2C_Read... [11:18:22]Read from MH i2c: E2 17 00 23 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 15 [11:18:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [11:18:22]wFMCommunicate OK [11:18:22]CreateOFDProtocolMessage done [11:18:22]OFDSenderStorePacket 68312 [11:18:22]StoreOFDPacket docnum=68312 [11:18:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 66 FD 07 01 DC 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 34 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 81 A6 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D8 0A 01 00 35 04 06 00 AD 9E AF 3C DD 56 27 06 F1 A3 CE DF 43 AF [11:18:22]CheckFolder [11:18:22]dirname=/storage/ofd_packets [11:18:22]CheckFolder done [11:18:22]ProducePacketName [11:18:22]name=ofd_packets/00068312 [11:18:22]NVStorageSaveData ofd_packets/00068312 [11:18:22]File name is /storage/ofd_packets/00068312 [11:18:22]Write 301 bytes [11:18:22]NVStorageSaveData done [11:18:22]OFDSenderStorePacket done [11:18:22]KKMCreateOFDPacket done [11:18:22]NVStorageSaveData kkm_last_timestamp [11:18:22]File name is /storage/kkm_last_timestamp [11:18:22]Write 4 bytes [11:18:22]NVStorageSaveData done [11:18:22]ExternCall_PrintAddStr [11:18:22]wPrintStart [11:18:22]Write to MH i2c: 01 00 00 24 2D 51 [11:18:22]Write i2c OK [11:18:22]MH_I2C_Read... [11:18:22]Read from MH i2c: 01 [11:18:22]MH_I2C_Read... [11:18:22]Read from MH i2c: 01 07 00 [11:18:22]MH_I2C_Read... [11:18:22]Read from MH i2c: 01 07 00 24 2D 00 00 00 00 00 FF 0F 66 [11:18:22]RasterBufferAndPrint [11:18:22]line Счет N : (1)706387 [11:18:22]line ИНН: 02508201610067 [11:18:22]line Контрольно-Кассовый Чек [11:18:22]line ПРОДАЖА [11:18:22]line ТРК (МРК, ГНК) : 53 [11:18:22]line Товар: 2710124130 [11:18:22]line Аи-92-К-4 [11:18:22]line 5.240 * 66.90 [11:18:22]line = 350.56 [11:18:22]line НДС 12% НСП 1% [11:18:22]line > о реализуемом товаре [11:18:22]line ОКРУГЛЕНИЕ: -0.56 [11:18:22]line ИТОГО: 350.00 [11:18:22]line Внесено: 350.00 [11:18:22]line СДАЧА: 0.00 [11:18:22]line НСП 1% : 3.10 [11:18:22]line НДС 12% : 37.23 [11:18:22]line Наличными: 350.00 [11:18:22]line Безнал.: 0.00 [11:18:22]line Место: АЗС № 62 "Партнер Нефть" [11:18:22]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [11:18:22]line СНО: Общий режим [11:18:22]line Чек 58 03.06.2024 11:18 [11:18:22]line Смена: 324 ФФД: 1.0 [11:18:22]line ЗНМ: 0300000181 [11:18:22]line РНМ: 0000000000098096 [11:18:22]line Версия ККМ: 001 [11:18:22]line ФМ: 0000000000965400 [11:18:22]line ФД: 68312 [11:18:22]line ФПД: 190897056439638 [11:18:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T111825&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68312&fm=190897056439638&tin=02508201610067®Number=0000000000098096&sum=35000 [11:18:22]OFD Sender: Processing packet 68312 [packets to send 26, broken 25] [11:18:22]ProducePacketName [11:18:22]name=ofd_packets/00068312 [11:18:22]OFD Sender: To server: pG, [11:18:22]CommunicateWithHost lk.salyk.kg:30040 [11:18:22]ConnectInit lk.salyk.kg [11:18:22]written 0, free lines is 4095 [11:18:22]Connected sock=7 [11:18:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 66 FD 07 01 DC 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 34 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 81 A6 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D8 0A 01 00 35 04 06 00 AD 9E AF 3C DD 56 27 06 F1 A3 CE DF 43 AF [11:18:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 75 0F 47 00 C6 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D8 0A 01 00 F4 03 04 00 7D 4D 5D 66 B6 04 01 00 00 24 BF 39 18 7D 1F 68 7F [11:18:22]CommunicateWithHost err = 0 [11:18:22]CheckOFDResponse [11:18:22]1017 (14) - 77093643461234 [11:18:22]1041 (16) - 0000000000965400 [11:18:22]1040 (4) - 68312 [11:18:22]1012 (4) - 03.06.2024 04:58 [11:18:22]1206 (1) - 0 [11:18:22]OFD Sender: Remove packet 68312 [11:18:22]ProducePacketName [11:18:22]name=ofd_packets/00068312 [11:18:22]NVStorageDeleteData [11:18:23]Write to MH i2c: 01 00 00 4F 2D 7C [11:18:23]Write i2c OK [11:18:23]MH_I2C_Read... [11:18:23]Read from MH i2c: 01 [11:18:23]MH_I2C_Read... [11:18:23]Read from MH i2c: 01 07 00 [11:18:23]MH_I2C_Read... [11:18:23]Read from MH i2c: 01 07 00 4F 2D 00 00 00 00 00 EF 0C 7E [11:18:23]RasterBufferAndPrint [11:18:23]line [11:18:23]line [11:18:23]line [11:18:23]line [11:18:23]line [11:18:23]written 0, free lines is 3317 [11:18:23]MH_Cut [11:18:23]Write to MH i2c: D1 01 00 56 2D 01 55 [11:18:23]Write i2c OK [11:18:23]MH_I2C_Read... [11:18:23]Read from MH i2c: D1 [11:18:23]MH_I2C_Read... [11:18:23]Read from MH i2c: D1 01 00 [11:18:23]MH_I2C_Read... [11:18:23]Read from MH i2c: D1 01 00 56 2D 00 54 [11:18:23]Write to MH i2c: 01 00 00 57 2D 84 [11:18:23]Write i2c OK [11:18:23]MH_I2C_Read... [11:18:23]OFD Sender: No OFD packet to send [11:18:23]*** Cut start [11:18:23]*** Partial cut [11:18:23]*** CUTSNS_PIN = 1 [11:18:23]*** CUTSNS_PIN = 0 [11:18:24]*** Brake cut motor [11:18:24]Read from MH i2c: 01 [11:18:24]MH_I2C_Read... [11:18:24]*** Stop cut motor [11:18:24]*** Cut end [11:18:24]Read from MH i2c: 01 07 00 [11:18:24]MH_I2C_Read... [11:18:24]Read from MH i2c: 01 07 00 57 2D 00 00 00 00 00 FF 0F 99 [11:18:24]process_action close_receipt done [11:18:24]requested_data is exist [11:18:24]produce_requested_data [11:18:24]requested_item fm.sn is exist - process it [11:18:24]wFMCommunicate request_size=4 [11:18:24]MH_SAM_APDU [11:18:24]CAPDU: 80 11 00 00 [11:18:24]Write to MH i2c: E2 08 00 58 2D 80 11 00 00 00 00 00 00 FF [11:18:24]Write i2c OK [11:18:24]MH_I2C_Read... [11:18:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:24]Read from MH i2c: E2 [11:18:24]MH_I2C_Read... [11:18:24]Read from MH i2c: E2 17 00 [11:18:24]MH_I2C_Read... [11:18:24]Read from MH i2c: E2 17 00 58 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 4A [11:18:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [11:18:24]wFMCommunicate OK [11:18:24]requested_item fd.num is exist - process it [11:18:24]SAM_PROTO_GetFieldsCounters [11:18:24]wFMCommunicate request_size=4 [11:18:24]MH_SAM_APDU [11:18:24]CAPDU: 80 13 00 00 [11:18:24]Write to MH i2c: E2 08 00 59 2D 80 13 00 00 00 00 00 00 02 [11:18:24]Write i2c OK [11:18:24]MH_I2C_Read... [11:18:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:18:24]Read from MH i2c: E2 [11:18:24]MH_I2C_Read... [11:18:24]Read from MH i2c: E2 62 00 [11:18:24]MH_I2C_Read... [11:18:24]Read from MH i2c: E2 62 00 59 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 D8 0A 01 00 0E 04 04 00 44 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 F8 [11:18:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 D8 0A 01 00 0E 04 04 00 44 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 [11:18:24]wFMCommunicate OK [11:18:24]SAM_PROTO_GetFieldsCounters done [11:18:24]requested_item shift.num is exist - process it [11:18:24]requested_item shift.opened is exist - process it [11:18:24]req_shift_opened [11:18:24]FM_GetShiftState [11:18:24]SAM_PROTO_GetShiftState [11:18:24]wFMCommunicate request_size=4 [11:18:24]MH_SAM_APDU [11:18:24]CAPDU: 80 13 01 00 [11:18:24]Write to MH i2c: E2 08 00 5A 2D 80 13 01 00 00 00 00 00 04 [11:18:24]Write i2c OK [11:18:24]MH_I2C_Read... [11:18:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:24]Read from MH i2c: E2 [11:18:24]MH_I2C_Read... [11:18:24]Read from MH i2c: E2 0E 00 [11:18:24]MH_I2C_Read... [11:18:24]Read from MH i2c: E2 0E 00 5A 2D 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 DF [11:18:24]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [11:18:24]wFMCommunicate OK [11:18:24]SAM_PROTO_GetShiftState done [11:18:24]FM_GetShiftState done [11:18:24]req_shift_opened done [11:18:24]requested_item shift.open_date is exist - process it [11:18:24]req_shift_open_date [11:18:24]req_shift_open_date done [11:18:24]produce_requested_data done [11:18:24]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68312,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [11:18:24]process_action_free close_receipt [11:18:24]json_value_free [11:18:24]json_value_free done [11:18:24]process_json_proto returns [11:18:24]Send response to host [11:18:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68312,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [11:18:24]free response buf [11:18:24]execute_script done [11:18:24]execute_script returns [11:18:24]free content buf [11:18:24]Sock 6.Close socket [11:18:24]Sock 6.Thread stoped [11:18:28]OFD Sender: No OFD packet to send [11:18:33]OFD Sender: No OFD packet to send [11:18:38]OFD Sender: No OFD packet to send [11:18:43]OFD Sender: No OFD packet to send [11:18:48]OFD Sender: No OFD packet to send [11:18:53]OFD Sender: No OFD packet to send [11:18:58]OFD Sender: No OFD packet to send [11:19:03]OFD Sender: No OFD packet to send [11:19:08]OFD Sender: No OFD packet to send [11:19:13]OFD Sender: No OFD packet to send [11:19:18]OFD Sender: No OFD packet to send [11:19:23]OFD Sender: No OFD packet to send [11:19:28]OFD Sender: No OFD packet to send [11:19:33]OFD Sender: No OFD packet to send [11:19:38]OFD Sender: No OFD packet to send [11:19:43]OFD Sender: No OFD packet to send [11:19:48]OFD Sender: No OFD packet to send [11:19:53]OFD Sender: No OFD packet to send [11:19:58]OFD Sender: No OFD packet to send [11:20:03]OFD Sender: No OFD packet to send [11:20:08]OFD Sender: No OFD packet to send [11:20:13]OFD Sender: No OFD packet to send [11:20:17]accept exits with 5 [11:20:17]New connection [11:20:17]New thread 3066543460 created [11:20:17]Thread 3066686820 joined [11:20:17]Waiting for new connection... [11:20:17] Sock 5.Parse request [11:20:17]Sock 5.Check first char [11:20:17]Sock 5.First char is OK [11:20:17]request: POST /json_proto HTTP/1.0 [11:20:17]Method: POST [11:20:17]URL: /json_proto [11:20:17]Method is POST - this is cgi request [11:20:17]url: /json_proto [11:20:17]query_string will be loaded in cgi processing [11:20:17]execute_cgi json_proto POST (null) [11:20:17]execute_cgi path=json_proto method=POST [11:20:17]POST find Content-Length [11:20:17]Host: 172.17.36.132:8080 [11:20:17]Content-Length: 670 [11:20:17]Content-Type: application/json [11:20:17] [11:20:17]POST finish read [11:20:17]Found Content-Length = 670 [11:20:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706389", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 8.840, "sum" : 600.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:20:17]execute_script... [11:20:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706389", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 8.840, "sum" : 600.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:20:17]POST & json_proto [11:20:17]process_json_proto [11:20:17]json parsed OK: [11:20:17]protocol is kg_v1.0 [11:20:17]action value=close_receipt [11:20:17]process_action close_receipt [11:20:17]cmd_close_receipt [11:20:17]MH_GetDate [11:20:17]Write to MH i2c: F0 00 00 5B 2D 77 [11:20:17]Write i2c OK [11:20:17]MH_I2C_Read... [11:20:17]Read from MH i2c: F0 [11:20:17]MH_I2C_Read... [11:20:17]Read from MH i2c: F0 09 00 [11:20:17]MH_I2C_Read... [11:20:17]Read from MH i2c: F0 09 00 5B 2D 00 F6 A6 5D 66 B2 22 B0 64 C7 [11:20:17]GetLastDocTimeStamp 1717413505 [11:20:17]current date 1717413622 [11:20:17]FM_GetShiftState [11:20:17]SAM_PROTO_GetShiftState [11:20:17]wFMCommunicate request_size=4 [11:20:17]MH_SAM_APDU [11:20:17]CAPDU: 80 13 01 00 [11:20:17]Write to MH i2c: E2 08 00 5C 2D 80 13 01 00 00 00 00 00 06 [11:20:17]Write i2c OK [11:20:17]MH_I2C_Read... [11:20:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:17]Read from MH i2c: E2 [11:20:17]MH_I2C_Read... [11:20:17]Read from MH i2c: E2 0E 00 [11:20:17]MH_I2C_Read... [11:20:17]Read from MH i2c: E2 0E 00 5C 2D 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 E1 [11:20:17]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [11:20:17]wFMCommunicate OK [11:20:17]SAM_PROTO_GetShiftState done [11:20:17]FM_GetShiftState done [11:20:17]opened in 1717378033 [11:20:17]opened+sec_in_day 1717464433 [11:20:17]quantity*price = 60023 [11:20:17]sum+1 = 60025 [11:20:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 59 03.06.2024 11:20 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68313 ФПД: 11241555005199 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T112022&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68313&fm=11241555005199&tin=02508201610067®Number=0000000000098096&sum=60000 [11:20:18]StoreToDocumentArchive [11:20:18]shift 324 fd 68313 [11:20:18]save to /storage/0324/doc_00068313 [11:20:18]save last doc name /storage/0324/doc_00068313 to /storage/kkm_last_doc_name [11:20:18]save OK [11:20:18]Clear old archive folders... [11:20:18]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:20:18]tlvbuf is 0023A470 [11:20:18]SAM_PROTO_ClearQueue [11:20:18]wFMCommunicate request_size=4 [11:20:18]MH_SAM_APDU [11:20:18]CAPDU: 80 09 00 00 [11:20:18]Write to MH i2c: E2 08 00 69 2D 80 09 00 00 00 00 00 00 08 [11:20:18]Write i2c OK [11:20:18]MH_I2C_Read... [11:20:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:20:18]Read from MH i2c: E2 [11:20:18]MH_I2C_Read... [11:20:18]Read from MH i2c: E2 03 00 [11:20:18]MH_I2C_Read... [11:20:18]Read from MH i2c: E2 03 00 69 2D 00 90 00 0A [11:20:18]RAPDU: 90 00 [11:20:18]wFMCommunicate OK [11:20:18]SAM_PROTO_ClearQueue done [11:20:18]KKMCreateOFDPacket [11:20:18]OFDProtocolAddRootSTLVToBuf [11:20:18]FM_MakeSignedData [11:20:18]FM_MakeSignedData [11:20:18]SAM_PROTO_SignData [11:20:18]wFMCommunicate request_size=4 [11:20:18]MH_SAM_APDU [11:20:18]CAPDU: 80 0D 01 02 [11:20:18]Write to MH i2c: E2 08 00 6A 2D 80 0D 01 02 00 00 00 00 10 [11:20:18]Write i2c OK [11:20:18]MH_I2C_Read... [11:20:18]Read from MH i2c: E2 [11:20:18]MH_I2C_Read... [11:20:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:20:18]Read from MH i2c: E2 03 00 [11:20:18]MH_I2C_Read... [11:20:18]Read from MH i2c: E2 03 00 6A 2D 00 90 00 0B [11:20:18]RAPDU: 90 00 [11:20:18]wFMCommunicate OK [11:20:18]wFMCommunicate request_size=255 [11:20:18]MH_SAM_APDU [11:20:18]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 22 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 78 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 F6 A6 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D9 0A 01 00 35 04 06 00 [11:20:18]Write to MH i2c: E2 02 01 6B 2D 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 22 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 78 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 F6 A6 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D9 0A 01 00 35 04 06 00 00 00 59 [11:20:18]Write i2c OK [11:20:18]MH_I2C_Read... [11:20:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:18]Read from MH i2c: E2 [11:20:18]MH_I2C_Read... [11:20:18]Read from MH i2c: E2 03 00 [11:20:18]MH_I2C_Read... [11:20:18]Read from MH i2c: E2 03 00 6B 2D 00 90 00 0C [11:20:18]RAPDU: 90 00 [11:20:18]wFMCommunicate OK [11:20:18]wFMCommunicate request_size=11 [11:20:18]MH_SAM_APDU [11:20:18]CAPDU: 80 0D 02 02 06 0A 39 60 E4 8F 0F [11:20:18]Write to MH i2c: E2 0E 00 6C 2D 80 0D 02 02 06 00 0A 39 60 E4 8F 0F 00 00 44 [11:20:18]Write i2c OK [11:20:18]MH_I2C_Read... [11:20:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:19]Read from MH i2c: E2 [11:20:19]MH_I2C_Read... [11:20:19]Read from MH i2c: E2 03 00 [11:20:19]MH_I2C_Read... [11:20:19]Read from MH i2c: E2 03 00 6C 2D 00 90 00 0D [11:20:19]RAPDU: 90 00 [11:20:19]wFMCommunicate OK [11:20:19]wFMCommunicate request_size=4 [11:20:19]MH_SAM_APDU [11:20:19]CAPDU: 80 0D 03 02 [11:20:19]Write to MH i2c: E2 08 00 6D 2D 80 0D 03 02 00 00 00 00 15 [11:20:19]Write i2c OK [11:20:19]MH_I2C_Read... [11:20:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:20:19]Read from MH i2c: E2 [11:20:19]MH_I2C_Read... [11:20:19]Read from MH i2c: E2 0B 00 [11:20:19]MH_I2C_Read... [11:20:19]Read from MH i2c: E2 0B 00 6D 2D 00 D8 22 FF 24 AA E1 13 C4 90 00 95 [11:20:19]RAPDU: D8 22 FF 24 AA E1 13 C4 90 00 [11:20:19]wFMCommunicate OK [11:20:19]SAM_PROTO_SignData done [11:20:19]FM_MakeSignedData done [11:20:19]CreateOFDProtocolMessage [11:20:19]wFMCommunicate request_size=4 [11:20:19]MH_SAM_APDU [11:20:19]CAPDU: 80 11 00 00 [11:20:19]Write to MH i2c: E2 08 00 6E 2D 80 11 00 00 00 00 00 00 15 [11:20:19]Write i2c OK [11:20:19]MH_I2C_Read... [11:20:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:19]Read from MH i2c: E2 [11:20:19]MH_I2C_Read... [11:20:19]Read from MH i2c: E2 17 00 [11:20:19]MH_I2C_Read... [11:20:19]Read from MH i2c: E2 17 00 6E 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 60 [11:20:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [11:20:19]wFMCommunicate OK [11:20:19]CreateOFDProtocolMessage done [11:20:19]OFDSenderStorePacket 68313 [11:20:19]StoreOFDPacket docnum=68313 [11:20:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 A2 58 08 01 B8 14 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 22 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 78 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 F6 A6 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D9 0A 01 00 35 04 06 00 0A 39 60 E4 8F 0F D8 22 FF 24 AA E1 13 C4 [11:20:19]CheckFolder [11:20:19]dirname=/storage/ofd_packets [11:20:19]CheckFolder done [11:20:19]ProducePacketName [11:20:19]name=ofd_packets/00068313 [11:20:19]NVStorageSaveData ofd_packets/00068313 [11:20:19]File name is /storage/ofd_packets/00068313 [11:20:19]Write 302 bytes [11:20:19]NVStorageSaveData done [11:20:19]OFDSenderStorePacket done [11:20:19]KKMCreateOFDPacket done [11:20:19]NVStorageSaveData kkm_last_timestamp [11:20:19]File name is /storage/kkm_last_timestamp [11:20:19]Write 4 bytes [11:20:19]NVStorageSaveData done [11:20:19]ExternCall_PrintAddStr [11:20:19]wPrintStart [11:20:19]Write to MH i2c: 01 00 00 6F 2D 9C [11:20:19]Write i2c OK [11:20:19]MH_I2C_Read... [11:20:19]Read from MH i2c: 01 [11:20:19]MH_I2C_Read... [11:20:19]Read from MH i2c: 01 07 00 [11:20:19]MH_I2C_Read... [11:20:19]Read from MH i2c: 01 07 00 6F 2D 00 00 00 00 00 FF 0F B1 [11:20:19]RasterBufferAndPrint [11:20:19]line Счет N : (1)706389 [11:20:19]line ИНН: 02508201610067 [11:20:19]line Контрольно-Кассовый Чек [11:20:19]line ПРОДАЖА [11:20:19]line ТРК (МРК, ГНК) : 52 [11:20:19]line Товар: 2710124130 [11:20:19]line Super-92-К-5 [11:20:19]line 8.840 * 67.90 [11:20:19]line = 600.24 [11:20:19]line НДС 12% НСП 1% [11:20:19]line > о реализуемом товаре [11:20:19]line ОКРУГЛЕНИЕ: -0.24 [11:20:19]line ИТОГО: 600.00 [11:20:19]line Внесено: 600.00 [11:20:19]line СДАЧА: 0.00 [11:20:19]line НСП 1% : 5.31 [11:20:19]line НДС 12% : 63.74 [11:20:19]line Наличными: 600.00 [11:20:19]line Безнал.: 0.00 [11:20:19]line Место: АЗС № 62 "Партнер Нефть" [11:20:19]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [11:20:19]line СНО: Общий режим [11:20:19]line Чек 59 03.06.2024 11:20 [11:20:19]line Смена: 324 ФФД: 1.0 [11:20:19]line ЗНМ: 0300000181 [11:20:19]line РНМ: 0000000000098096 [11:20:19]line Версия ККМ: 001 [11:20:19]line ФМ: 0000000000965400 [11:20:19]line ФД: 68313 [11:20:19]line ФПД: 11241555005199 [11:20:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T112022&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68313&fm=11241555005199&tin=02508201610067®Number=0000000000098096&sum=60000 [11:20:19]OFD Sender: Processing packet 68313 [packets to send 26, broken 25] [11:20:19]ProducePacketName [11:20:19]name=ofd_packets/00068313 [11:20:19]OFD Sender: To server: pG, [11:20:19]CommunicateWithHost lk.salyk.kg:30040 [11:20:19]ConnectInit lk.salyk.kg [11:20:19]written 0, free lines is 4095 [11:20:19]Connected sock=7 [11:20:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 A2 58 08 01 B8 14 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 22 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 78 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 F6 A6 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D9 0A 01 00 35 04 06 00 0A 39 60 E4 8F 0F D8 22 FF 24 AA E1 13 C4 [11:20:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 AB 71 47 00 39 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 D9 0A 01 00 F4 03 04 00 F2 4D 5D 66 B6 04 01 00 00 39 AD CC C1 B6 1B 39 7C [11:20:19]CommunicateWithHost err = 0 [11:20:19]CheckOFDResponse [11:20:19]1017 (14) - 77093643461234 [11:20:19]1041 (16) - 0000000000965400 [11:20:19]1040 (4) - 68313 [11:20:19]1012 (4) - 03.06.2024 05:00 [11:20:19]1206 (1) - 0 [11:20:19]OFD Sender: Remove packet 68313 [11:20:19]ProducePacketName [11:20:19]name=ofd_packets/00068313 [11:20:19]NVStorageDeleteData [11:20:19]Write to MH i2c: 01 00 00 9A 2D C7 [11:20:19]Write i2c OK [11:20:19]MH_I2C_Read... [11:20:19]Read from MH i2c: 01 [11:20:19]MH_I2C_Read... [11:20:19]Read from MH i2c: 01 07 00 [11:20:19]MH_I2C_Read... [11:20:19]Read from MH i2c: 01 07 00 9A 2D 00 00 00 00 00 E4 0C BE [11:20:19]RasterBufferAndPrint [11:20:19]line [11:20:19]line [11:20:19]line [11:20:19]line [11:20:19]line [11:20:19]written 0, free lines is 3306 [11:20:19]MH_Cut [11:20:19]Write to MH i2c: D1 01 00 A1 2D 01 A0 [11:20:19]Write i2c OK [11:20:19]MH_I2C_Read... [11:20:19]Read from MH i2c: D1 [11:20:19]MH_I2C_Read... [11:20:19]Read from MH i2c: D1 01 00 [11:20:19]MH_I2C_Read... [11:20:19]Read from MH i2c: D1 01 00 A1 2D 00 9F [11:20:19]Write to MH i2c: 01 00 00 A2 2D CF [11:20:19]Write i2c OK [11:20:19]MH_I2C_Read... [11:20:20]OFD Sender: No OFD packet to send [11:20:20]*** Cut start [11:20:20]*** Partial cut [11:20:20]*** CUTSNS_PIN = 1 [11:20:20]*** CUTSNS_PIN = 0 [11:20:20]*** Brake cut motor [11:20:21]Read from MH i2c: 01 [11:20:21]MH_I2C_Read... [11:20:21]*** Stop cut motor [11:20:21]*** Cut end [11:20:21]Read from MH i2c: 01 07 00 [11:20:21]MH_I2C_Read... [11:20:21]Read from MH i2c: 01 07 00 A2 2D 00 00 00 00 00 FF 0F E4 [11:20:21]process_action close_receipt done [11:20:21]requested_data is exist [11:20:21]produce_requested_data [11:20:21]requested_item fm.sn is exist - process it [11:20:21]wFMCommunicate request_size=4 [11:20:21]MH_SAM_APDU [11:20:21]CAPDU: 80 11 00 00 [11:20:21]Write to MH i2c: E2 08 00 A3 2D 80 11 00 00 00 00 00 00 4A [11:20:21]Write i2c OK [11:20:21]MH_I2C_Read... [11:20:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:21]Read from MH i2c: E2 [11:20:21]MH_I2C_Read... [11:20:21]Read from MH i2c: E2 17 00 [11:20:21]MH_I2C_Read... [11:20:21]Read from MH i2c: E2 17 00 A3 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 95 [11:20:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [11:20:21]wFMCommunicate OK [11:20:21]requested_item fd.num is exist - process it [11:20:21]SAM_PROTO_GetFieldsCounters [11:20:21]wFMCommunicate request_size=4 [11:20:21]MH_SAM_APDU [11:20:21]CAPDU: 80 13 00 00 [11:20:21]Write to MH i2c: E2 08 00 A4 2D 80 13 00 00 00 00 00 00 4D [11:20:21]Write i2c OK [11:20:21]MH_I2C_Read... [11:20:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:20:21]Read from MH i2c: E2 [11:20:21]MH_I2C_Read... [11:20:21]Read from MH i2c: E2 62 00 [11:20:21]MH_I2C_Read... [11:20:21]Read from MH i2c: E2 62 00 A4 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 D9 0A 01 00 0E 04 04 00 44 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 47 [11:20:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 D9 0A 01 00 0E 04 04 00 44 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 [11:20:21]wFMCommunicate OK [11:20:21]SAM_PROTO_GetFieldsCounters done [11:20:21]requested_item shift.num is exist - process it [11:20:21]requested_item shift.opened is exist - process it [11:20:21]req_shift_opened [11:20:21]FM_GetShiftState [11:20:21]SAM_PROTO_GetShiftState [11:20:21]wFMCommunicate request_size=4 [11:20:21]MH_SAM_APDU [11:20:21]CAPDU: 80 13 01 00 [11:20:21]Write to MH i2c: E2 08 00 A5 2D 80 13 01 00 00 00 00 00 4F [11:20:21]Write i2c OK [11:20:21]MH_I2C_Read... [11:20:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:21]Read from MH i2c: E2 [11:20:21]MH_I2C_Read... [11:20:21]Read from MH i2c: E2 0E 00 [11:20:21]MH_I2C_Read... [11:20:21]Read from MH i2c: E2 0E 00 A5 2D 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 2A [11:20:21]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [11:20:21]wFMCommunicate OK [11:20:21]SAM_PROTO_GetShiftState done [11:20:21]FM_GetShiftState done [11:20:21]req_shift_opened done [11:20:21]requested_item shift.open_date is exist - process it [11:20:21]req_shift_open_date [11:20:21]req_shift_open_date done [11:20:21]produce_requested_data done [11:20:21]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68313,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [11:20:21]process_action_free close_receipt [11:20:21]json_value_free [11:20:21]json_value_free done [11:20:21]process_json_proto returns [11:20:21]Send response to host [11:20:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68313,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [11:20:21]free response buf [11:20:21]execute_script done [11:20:21]execute_script returns [11:20:21]free content buf [11:20:21]Sock 5.Close socket [11:20:21]Sock 5.Thread stoped [11:20:25]OFD Sender: No OFD packet to send [11:20:30]OFD Sender: No OFD packet to send [11:20:35]OFD Sender: No OFD packet to send [11:20:40]OFD Sender: No OFD packet to send [11:20:45]OFD Sender: No OFD packet to send [11:20:50]OFD Sender: No OFD packet to send [11:20:55]OFD Sender: No OFD packet to send [11:21:00]OFD Sender: No OFD packet to send [11:21:05]OFD Sender: No OFD packet to send [11:21:10]OFD Sender: No OFD packet to send [11:21:15]OFD Sender: No OFD packet to send [11:21:20]OFD Sender: No OFD packet to send [11:21:25]OFD Sender: No OFD packet to send [11:21:30]OFD Sender: No OFD packet to send [11:21:35]OFD Sender: No OFD packet to send [11:21:40]OFD Sender: No OFD packet to send [11:21:45]OFD Sender: No OFD packet to send [11:21:50]OFD Sender: No OFD packet to send [11:21:55]OFD Sender: No OFD packet to send [11:22:00]OFD Sender: No OFD packet to send [11:22:05]OFD Sender: No OFD packet to send [11:22:10]OFD Sender: No OFD packet to send [11:22:15]OFD Sender: No OFD packet to send [11:22:20]OFD Sender: No OFD packet to send [11:22:25]OFD Sender: No OFD packet to send [11:22:30]OFD Sender: No OFD packet to send [11:22:35]OFD Sender: No OFD packet to send [11:22:40]OFD Sender: No OFD packet to send [11:22:45]OFD Sender: No OFD packet to send [11:22:50]OFD Sender: No OFD packet to send [11:22:50]accept exits with 6 [11:22:50]New connection [11:22:50]New thread 3066686820 created [11:22:50]Thread 3066543460 joined [11:22:50]Waiting for new connection... [11:22:50] Sock 6.Parse request [11:22:50]Sock 6.Check first char [11:22:50]Sock 6.First char is OK [11:22:50]request: POST /json_proto HTTP/1.0 [11:22:50]Method: POST [11:22:50]URL: /json_proto [11:22:50]Method is POST - this is cgi request [11:22:50]url: /json_proto [11:22:50]query_string will be loaded in cgi processing [11:22:50]execute_cgi json_proto POST (null) [11:22:50]execute_cgi path=json_proto method=POST [11:22:50]POST find Content-Length [11:22:50]Host: 172.17.36.132:8080 [11:22:50]Content-Length: 682 [11:22:50]Content-Type: application/json [11:22:50] [11:22:50]POST finish read [11:22:50]Found Content-Length = 682 [11:22:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706390", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 28.260, "sum" : 1890.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1890.00, "total" : 1890.00, "payments": [ { "type": 0, "sum" : 1890.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:22:50]execute_script... [11:22: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)706390", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 28.260, "sum" : 1890.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1890.00, "total" : 1890.00, "payments": [ { "type": 0, "sum" : 1890.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:22:50]POST & json_proto [11:22:50]process_json_proto [11:22:50]json parsed OK: [11:22:50]protocol is kg_v1.0 [11:22:50]action value=close_receipt [11:22:50]process_action close_receipt [11:22:50]cmd_close_receipt [11:22:50]MH_GetDate [11:22:50]Write to MH i2c: F0 00 00 A6 2D C2 [11:22:50]Write i2c OK [11:22:50]MH_I2C_Read... [11:22:50]Read from MH i2c: F0 [11:22:50]MH_I2C_Read... [11:22:50]Read from MH i2c: F0 09 00 [11:22:50]MH_I2C_Read... [11:22:50]Read from MH i2c: F0 09 00 A6 2D 00 8F A7 5D 66 B2 22 B0 64 AC [11:22:50]GetLastDocTimeStamp 1717413622 [11:22:50]current date 1717413775 [11:22:50]FM_GetShiftState [11:22:50]SAM_PROTO_GetShiftState [11:22:50]wFMCommunicate request_size=4 [11:22:50]MH_SAM_APDU [11:22:50]CAPDU: 80 13 01 00 [11:22:50]Write to MH i2c: E2 08 00 A7 2D 80 13 01 00 00 00 00 00 51 [11:22:50]Write i2c OK [11:22:50]MH_I2C_Read... [11:22:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:50]Read from MH i2c: E2 [11:22:50]MH_I2C_Read... [11:22:50]Read from MH i2c: E2 0E 00 [11:22:50]MH_I2C_Read... [11:22:50]Read from MH i2c: E2 0E 00 A7 2D 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 2C [11:22:50]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [11:22:50]wFMCommunicate OK [11:22:50]SAM_PROTO_GetShiftState done [11:22:50]FM_GetShiftState done [11:22:50]opened in 1717378033 [11:22:50]opened+sec_in_day 1717464433 [11:22:50]quantity*price = 189059 [11:22:50]sum+1 = 189060 [11:22:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 1890.00 Внесено: 1890.00 СДАЧА: 0.00 НСП 1% : 16.73 НДС 12% : 200.77 Наличными: 1890.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 60 03.06.2024 11:22 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68314 ФПД: 29106615115766 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T112255&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68314&fm=29106615115766&tin=02508201610067®Number=0000000000098096&sum=189000 [11:22:52]StoreToDocumentArchive [11:22:52]shift 324 fd 68314 [11:22:52]save to /storage/0324/doc_00068314 [11:22:52]save last doc name /storage/0324/doc_00068314 to /storage/kkm_last_doc_name [11:22:52]save OK [11:22:52]Clear old archive folders... [11:22:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:22:52]tlvbuf is 002ACFA0 [11:22:52]SAM_PROTO_ClearQueue [11:22:52]wFMCommunicate request_size=4 [11:22:52]MH_SAM_APDU [11:22:52]CAPDU: 80 09 00 00 [11:22:52]Write to MH i2c: E2 08 00 B4 2D 80 09 00 00 00 00 00 00 53 [11:22:52]Write i2c OK [11:22:52]MH_I2C_Read... [11:22:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:22:52]Read from MH i2c: E2 [11:22:52]MH_I2C_Read... [11:22:52]Read from MH i2c: E2 03 00 [11:22:52]MH_I2C_Read... [11:22:52]Read from MH i2c: E2 03 00 B4 2D 00 90 00 55 [11:22:52]RAPDU: 90 00 [11:22:52]wFMCommunicate OK [11:22:52]SAM_PROTO_ClearQueue done [11:22:52]KKMCreateOFDPacket [11:22:52]OFDProtocolAddRootSTLVToBuf [11:22:52]FM_MakeSignedData [11:22:52]FM_MakeSignedData [11:22:52]SAM_PROTO_SignData [11:22:52]wFMCommunicate request_size=4 [11:22:52]MH_SAM_APDU [11:22:52]CAPDU: 80 0D 01 02 [11:22:52]Write to MH i2c: E2 08 00 B5 2D 80 0D 01 02 00 00 00 00 5B [11:22:52]Write i2c OK [11:22:52]MH_I2C_Read... [11:22:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:22:52]Read from MH i2c: E2 [11:22:52]MH_I2C_Read... [11:22:52]Read from MH i2c: E2 03 00 [11:22:52]MH_I2C_Read... [11:22:52]Read from MH i2c: E2 03 00 B5 2D 00 90 00 56 [11:22:52]RAPDU: 90 00 [11:22:52]wFMCommunicate OK [11:22:52]wFMCommunicate request_size=255 [11:22:52]MH_SAM_APDU [11:22: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 34 FF 03 08 00 03 64 6E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 83 E2 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 E2 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6D 4E 00 00 00 00 07 04 06 00 48 E2 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 8F A7 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 DA 0A 01 00 35 04 06 00 1A [11:22:52]Write to MH i2c: E2 02 01 B6 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 64 6E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 83 E2 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 E2 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6D 4E 00 00 00 00 07 04 06 00 48 E2 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 8F A7 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 DA 0A 01 00 35 04 06 00 1A 00 00 F3 [11:22:52]Write i2c OK [11:22:52]MH_I2C_Read... [11:22:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:52]Read from MH i2c: E2 [11:22:52]MH_I2C_Read... [11:22:52]Read from MH i2c: E2 03 00 [11:22:52]MH_I2C_Read... [11:22:52]Read from MH i2c: E2 03 00 B6 2D 00 90 00 57 [11:22:52]RAPDU: 90 00 [11:22:52]wFMCommunicate OK [11:22:52]wFMCommunicate request_size=10 [11:22:52]MH_SAM_APDU [11:22:52]CAPDU: 80 0D 02 02 05 78 E9 74 5F F6 [11:22:52]Write to MH i2c: E2 0D 00 B7 2D 80 0D 02 02 05 00 78 E9 74 5F F6 00 00 92 [11:22:52]Write i2c OK [11:22:52]MH_I2C_Read... [11:22:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:52]Read from MH i2c: E2 [11:22:52]MH_I2C_Read... [11:22:52]Read from MH i2c: E2 03 00 [11:22:52]MH_I2C_Read... [11:22:52]Read from MH i2c: E2 03 00 B7 2D 00 90 00 58 [11:22:52]RAPDU: 90 00 [11:22:52]wFMCommunicate OK [11:22:52]wFMCommunicate request_size=4 [11:22:52]MH_SAM_APDU [11:22:52]CAPDU: 80 0D 03 02 [11:22:52]Write to MH i2c: E2 08 00 B8 2D 80 0D 03 02 00 00 00 00 60 [11:22:52]Write i2c OK [11:22:52]MH_I2C_Read... [11:22:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:22:52]Read from MH i2c: E2 [11:22:52]MH_I2C_Read... [11:22:52]Read from MH i2c: E2 0B 00 [11:22:52]MH_I2C_Read... [11:22:52]Read from MH i2c: E2 0B 00 B8 2D 00 03 BD 3D CE 97 57 49 ED 90 00 50 [11:22:52]RAPDU: 03 BD 3D CE 97 57 49 ED 90 00 [11:22:52]wFMCommunicate OK [11:22:52]SAM_PROTO_SignData done [11:22:52]FM_MakeSignedData done [11:22:52]CreateOFDProtocolMessage [11:22:52]wFMCommunicate request_size=4 [11:22:52]MH_SAM_APDU [11:22:52]CAPDU: 80 11 00 00 [11:22:52]Write to MH i2c: E2 08 00 B9 2D 80 11 00 00 00 00 00 00 60 [11:22:52]Write i2c OK [11:22:52]MH_I2C_Read... [11:22:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:52]Read from MH i2c: E2 [11:22:52]MH_I2C_Read... [11:22:52]Read from MH i2c: E2 17 00 [11:22:52]MH_I2C_Read... [11:22:52]Read from MH i2c: E2 17 00 B9 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 AB [11:22:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [11:22:52]wFMCommunicate OK [11:22:52]CreateOFDProtocolMessage done [11:22:52]OFDSenderStorePacket 68314 [11:22:52]StoreOFDPacket docnum=68314 [11:22:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 D1 FE 07 01 4E EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 64 6E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 83 E2 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 E2 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6D 4E 00 00 00 00 07 04 06 00 48 E2 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 8F A7 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 DA 0A 01 00 35 04 06 00 1A 78 E9 74 5F F6 03 BD 3D CE 97 57 49 ED [11:22:52]CheckFolder [11:22:52]dirname=/storage/ofd_packets [11:22:52]CheckFolder done [11:22:52]ProducePacketName [11:22:52]name=ofd_packets/00068314 [11:22:52]NVStorageSaveData ofd_packets/00068314 [11:22:52]File name is /storage/ofd_packets/00068314 [11:22:52]Write 301 bytes [11:22:52]NVStorageSaveData done [11:22:52]OFDSenderStorePacket done [11:22:52]KKMCreateOFDPacket done [11:22:52]NVStorageSaveData kkm_last_timestamp [11:22:52]File name is /storage/kkm_last_timestamp [11:22:52]Write 4 bytes [11:22:52]NVStorageSaveData done [11:22:52]ExternCall_PrintAddStr [11:22:52]wPrintStart [11:22:52]Write to MH i2c: 01 00 00 BA 2D E7 [11:22:52]Write i2c OK [11:22:52]MH_I2C_Read... [11:22:52]Read from MH i2c: 01 [11:22:52]MH_I2C_Read... [11:22:52]Read from MH i2c: 01 07 00 [11:22:52]MH_I2C_Read... [11:22:52]Read from MH i2c: 01 07 00 BA 2D 00 00 00 00 00 FF 0F FC [11:22:52]RasterBufferAndPrint [11:22:52]line Счет N : (1)706390 [11:22:52]line ИНН: 02508201610067 [11:22:52]line Контрольно-Кассовый Чек [11:22:52]line ПРОДАЖА [11:22:52]line ТРК (МРК, ГНК) : 32 [11:22:52]line Товар: 2710124130 [11:22:52]line Аи-92-К-4 [11:22:52]line 28.260 * 66.90 [11:22:52]line = 1890.59 [11:22:52]line НДС 12% НСП 1% [11:22:52]line > о реализуемом товаре [11:22:52]line ОКРУГЛЕНИЕ: -0.59 [11:22:52]line ИТОГО: 1890.00 [11:22:52]line Внесено: 1890.00 [11:22:52]line СДАЧА: 0.00 [11:22:52]line НСП 1% : 16.73 [11:22:52]line НДС 12% : 200.77 [11:22:52]line Наличными: 1890.00 [11:22:52]line Безнал.: 0.00 [11:22:52]line Место: АЗС № 62 "Партнер Нефть" [11:22:52]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [11:22:52]line СНО: Общий режим [11:22:52]line Чек 60 03.06.2024 11:22 [11:22:52]line Смена: 324 ФФД: 1.0 [11:22:52]line ЗНМ: 0300000181 [11:22:52]line РНМ: 0000000000098096 [11:22:52]line Версия ККМ: 001 [11:22:52]line ФМ: 0000000000965400 [11:22:52]line ФД: 68314 [11:22:52]line ФПД: 29106615115766 [11:22:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T112255&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68314&fm=29106615115766&tin=02508201610067®Number=0000000000098096&sum=189000 [11:22:52]OFD Sender: Processing packet 68314 [packets to send 26, broken 25] [11:22:52]ProducePacketName [11:22:52]name=ofd_packets/00068314 [11:22:52]OFD Sender: To server: pG, [11:22:52]CommunicateWithHost lk.salyk.kg:30040 [11:22:52]ConnectInit lk.salyk.kg [11:22:52]written 0, free lines is 4095 [11:22:53]Connected sock=5 [11:22:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 D1 FE 07 01 4E EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 64 6E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 83 E2 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 E2 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6D 4E 00 00 00 00 07 04 06 00 48 E2 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 8F A7 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 DA 0A 01 00 35 04 06 00 1A 78 E9 74 5F F6 03 BD 3D CE 97 57 49 ED [11:22:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 11 E0 47 00 E3 AE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 DA 0A 01 00 F4 03 04 00 8C 4E 5D 66 B6 04 01 00 00 47 29 7A A4 7E FF 77 F5 [11:22:53]CommunicateWithHost err = 0 [11:22:53]CheckOFDResponse [11:22:53]1017 (14) - 77093643461234 [11:22:53]1041 (16) - 0000000000965400 [11:22:53]1040 (4) - 68314 [11:22:53]1012 (4) - 03.06.2024 05:03 [11:22:53]1206 (1) - 0 [11:22:53]OFD Sender: Remove packet 68314 [11:22:53]ProducePacketName [11:22:53]name=ofd_packets/00068314 [11:22:53]NVStorageDeleteData [11:22:53]Write to MH i2c: 01 00 00 E5 2D 12 [11:22:53]Write i2c OK [11:22:53]MH_I2C_Read... [11:22:53]Read from MH i2c: 01 [11:22:53]MH_I2C_Read... [11:22:53]Read from MH i2c: 01 07 00 [11:22:53]MH_I2C_Read... [11:22:53]Read from MH i2c: 01 07 00 E5 2D 00 00 00 00 00 DD 0C 02 [11:22:53]RasterBufferAndPrint [11:22:53]line [11:22:53]line [11:22:53]line [11:22:53]line [11:22:53]line [11:22:53]written 0, free lines is 3299 [11:22:53]MH_Cut [11:22:53]Write to MH i2c: D1 01 00 EC 2D 01 EB [11:22:53]Write i2c OK [11:22:53]MH_I2C_Read... [11:22:53]Read from MH i2c: D1 [11:22:53]MH_I2C_Read... [11:22:53]Read from MH i2c: D1 01 00 [11:22:53]MH_I2C_Read... [11:22:53]Read from MH i2c: D1 01 00 EC 2D 00 EA [11:22:53]Write to MH i2c: 01 00 00 ED 2D 1A [11:22:53]Write i2c OK [11:22:53]MH_I2C_Read... [11:22:53]OFD Sender: No OFD packet to send [11:22:54]*** Cut start [11:22:54]*** Partial cut [11:22:54]*** CUTSNS_PIN = 1 [11:22:54]*** CUTSNS_PIN = 0 [11:22:54]*** Brake cut motor [11:22:54]Read from MH i2c: 01 [11:22:54]MH_I2C_Read... [11:22:54]*** Stop cut motor [11:22:54]*** Cut end [11:22:54]Read from MH i2c: 01 07 00 [11:22:54]MH_I2C_Read... [11:22:54]Read from MH i2c: 01 07 00 ED 2D 00 00 00 00 00 FF 0F 2F [11:22:54]process_action close_receipt done [11:22:54]requested_data is exist [11:22:54]produce_requested_data [11:22:54]requested_item fm.sn is exist - process it [11:22:54]wFMCommunicate request_size=4 [11:22:54]MH_SAM_APDU [11:22:54]CAPDU: 80 11 00 00 [11:22:54]Write to MH i2c: E2 08 00 EE 2D 80 11 00 00 00 00 00 00 95 [11:22:54]Write i2c OK [11:22:54]MH_I2C_Read... [11:22:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:54]Read from MH i2c: E2 [11:22:54]MH_I2C_Read... [11:22:54]Read from MH i2c: E2 17 00 [11:22:54]MH_I2C_Read... [11:22:54]Read from MH i2c: E2 17 00 EE 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 E0 [11:22:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [11:22:54]wFMCommunicate OK [11:22:54]requested_item fd.num is exist - process it [11:22:54]SAM_PROTO_GetFieldsCounters [11:22:54]wFMCommunicate request_size=4 [11:22:54]MH_SAM_APDU [11:22:54]CAPDU: 80 13 00 00 [11:22:54]Write to MH i2c: E2 08 00 EF 2D 80 13 00 00 00 00 00 00 98 [11:22:54]Write i2c OK [11:22:54]MH_I2C_Read... [11:22:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:22:55]Read from MH i2c: E2 [11:22:55]MH_I2C_Read... [11:22:55]Read from MH i2c: E2 62 00 [11:22:55]MH_I2C_Read... [11:22:55]Read from MH i2c: E2 62 00 EF 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 DA 0A 01 00 0E 04 04 00 44 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 96 [11:22:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 DA 0A 01 00 0E 04 04 00 44 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 [11:22:55]wFMCommunicate OK [11:22:55]SAM_PROTO_GetFieldsCounters done [11:22:55]requested_item shift.num is exist - process it [11:22:55]requested_item shift.opened is exist - process it [11:22:55]req_shift_opened [11:22:55]FM_GetShiftState [11:22:55]SAM_PROTO_GetShiftState [11:22:55]wFMCommunicate request_size=4 [11:22:55]MH_SAM_APDU [11:22:55]CAPDU: 80 13 01 00 [11:22:55]Write to MH i2c: E2 08 00 F0 2D 80 13 01 00 00 00 00 00 9A [11:22:55]Write i2c OK [11:22:55]MH_I2C_Read... [11:22:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:55]Read from MH i2c: E2 [11:22:55]MH_I2C_Read... [11:22:55]Read from MH i2c: E2 0E 00 [11:22:55]MH_I2C_Read... [11:22:55]Read from MH i2c: E2 0E 00 F0 2D 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 75 [11:22:55]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [11:22:55]wFMCommunicate OK [11:22:55]SAM_PROTO_GetShiftState done [11:22:55]FM_GetShiftState done [11:22:55]req_shift_opened done [11:22:55]requested_item shift.open_date is exist - process it [11:22:55]req_shift_open_date [11:22:55]req_shift_open_date done [11:22:55]produce_requested_data done [11:22:55]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68314,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [11:22:55]process_action_free close_receipt [11:22:55]json_value_free [11:22:55]json_value_free done [11:22:55]process_json_proto returns [11:22:55]Send response to host [11:22:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68314,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [11:22:55]free response buf [11:22:55]execute_script done [11:22:55]execute_script returns [11:22:55]free content buf [11:22:55]Sock 6.Close socket [11:22:55]Sock 6.Thread stoped [11:22:58]OFD Sender: No OFD packet to send [11:23:03]OFD Sender: No OFD packet to send [11:23:08]OFD Sender: No OFD packet to send [11:23:13]OFD Sender: No OFD packet to send [11:23:18]OFD Sender: No OFD packet to send [11:23:23]OFD Sender: No OFD packet to send [11:23:28]OFD Sender: No OFD packet to send [11:23:33]OFD Sender: No OFD packet to send [11:23:38]OFD Sender: No OFD packet to send [11:23:43]OFD Sender: No OFD packet to send [11:23:48]OFD Sender: No OFD packet to send [11:23:53]OFD Sender: No OFD packet to send [11:23:58]OFD Sender: No OFD packet to send [11:24:03]OFD Sender: No OFD packet to send [11:24:08]OFD Sender: No OFD packet to send [11:24:13]OFD Sender: No OFD packet to send [11:24:18]OFD Sender: No OFD packet to send [11:24:23]OFD Sender: No OFD packet to send [11:24:28]OFD Sender: No OFD packet to send [11:24:33]OFD Sender: No OFD packet to send [11:24:38]OFD Sender: No OFD packet to send [11:24:43]OFD Sender: No OFD packet to send [11:24:48]OFD Sender: No OFD packet to send [11:24:53]OFD Sender: No OFD packet to send [11:24:58]OFD Sender: No OFD packet to send [11:25:03]OFD Sender: No OFD packet to send [11:25:08]OFD Sender: No OFD packet to send [11:25:13]OFD Sender: No OFD packet to send [11:25:18]OFD Sender: No OFD packet to send [11:25:23]OFD Sender: No OFD packet to send [11:25:28]OFD Sender: No OFD packet to send [11:25:33]OFD Sender: No OFD packet to send [11:25:38]OFD Sender: No OFD packet to send [11:25:43]OFD Sender: No OFD packet to send [11:25:48]OFD Sender: No OFD packet to send [11:25:53]OFD Sender: No OFD packet to send [11:25:58]OFD Sender: No OFD packet to send [11:26:03]OFD Sender: No OFD packet to send [11:26:08]OFD Sender: No OFD packet to send [11:26:13]OFD Sender: No OFD packet to send [11:26:18]OFD Sender: No OFD packet to send [11:26:23]OFD Sender: No OFD packet to send [11:26:28]OFD Sender: No OFD packet to send [11:26:33]OFD Sender: No OFD packet to send [11:26:38]OFD Sender: No OFD packet to send [11:26:43]OFD Sender: No OFD packet to send [11:26:48]OFD Sender: No OFD packet to send [11:26:53]OFD Sender: No OFD packet to send [11:26:58]OFD Sender: No OFD packet to send [11:27:03]OFD Sender: No OFD packet to send [11:27:08]OFD Sender: No OFD packet to send [11:27:13]OFD Sender: No OFD packet to send [11:27:18]OFD Sender: No OFD packet to send [11:27:23]OFD Sender: No OFD packet to send [11:27:29]OFD Sender: No OFD packet to send [11:27:34]OFD Sender: No OFD packet to send [11:27:39]OFD Sender: No OFD packet to send [11:27:44]OFD Sender: No OFD packet to send [11:27:49]OFD Sender: No OFD packet to send [11:27:54]OFD Sender: No OFD packet to send [11:27:59]OFD Sender: No OFD packet to send [11:28:04]OFD Sender: No OFD packet to send [11:28:09]OFD Sender: No OFD packet to send [11:28:14]OFD Sender: No OFD packet to send [11:28:19]OFD Sender: No OFD packet to send [11:28:24]OFD Sender: No OFD packet to send [11:28:29]OFD Sender: No OFD packet to send [11:28:34]OFD Sender: No OFD packet to send [11:28:39]OFD Sender: No OFD packet to send [11:28:44]OFD Sender: No OFD packet to send [11:28:49]OFD Sender: No OFD packet to send [11:28:54]OFD Sender: No OFD packet to send [11:28:59]OFD Sender: No OFD packet to send [11:29:04]OFD Sender: No OFD packet to send [11:29:09]OFD Sender: No OFD packet to send [11:29:14]OFD Sender: No OFD packet to send [11:29:19]OFD Sender: No OFD packet to send [11:29:24]OFD Sender: No OFD packet to send [11:29:29]OFD Sender: No OFD packet to send [11:29:34]OFD Sender: No OFD packet to send [11:29:39]OFD Sender: No OFD packet to send [11:29:44]OFD Sender: No OFD packet to send [11:29:49]OFD Sender: No OFD packet to send [11:29:54]OFD Sender: No OFD packet to send [11:29:59]OFD Sender: No OFD packet to send [11:30:04]OFD Sender: No OFD packet to send [11:30:09]OFD Sender: No OFD packet to send [11:30:14]OFD Sender: No OFD packet to send [11:30:19]OFD Sender: No OFD packet to send [11:30:24]OFD Sender: No OFD packet to send [11:30:29]OFD Sender: No OFD packet to send [11:30:34]OFD Sender: No OFD packet to send [11:30:39]OFD Sender: No OFD packet to send [11:30:44]OFD Sender: No OFD packet to send [11:30:49]OFD Sender: No OFD packet to send [11:30:54]OFD Sender: No OFD packet to send [11:30:59]OFD Sender: No OFD packet to send [11:31:04]OFD Sender: No OFD packet to send [11:31:09]OFD Sender: No OFD packet to send [11:31:14]OFD Sender: No OFD packet to send [11:31:19]OFD Sender: No OFD packet to send [11:31:24]OFD Sender: No OFD packet to send [11:31:29]OFD Sender: No OFD packet to send [11:31:34]OFD Sender: No OFD packet to send [11:31:39]OFD Sender: No OFD packet to send [11:31:44]OFD Sender: No OFD packet to send [11:31:49]OFD Sender: No OFD packet to send [11:31:54]OFD Sender: No OFD packet to send [11:31:59]OFD Sender: No OFD packet to send [11:32:04]OFD Sender: No OFD packet to send [11:32:09]OFD Sender: No OFD packet to send [11:32:14]OFD Sender: No OFD packet to send [11:32:19]OFD Sender: No OFD packet to send [11:32:24]OFD Sender: No OFD packet to send [11:32:29]OFD Sender: No OFD packet to send [11:32:34]OFD Sender: No OFD packet to send [11:32:39]OFD Sender: No OFD packet to send [11:32:44]OFD Sender: No OFD packet to send [11:32:49]OFD Sender: No OFD packet to send [11:32:54]OFD Sender: No OFD packet to send [11:32:59]OFD Sender: No OFD packet to send [11:33:04]OFD Sender: No OFD packet to send [11:33:09]OFD Sender: No OFD packet to send [11:33:14]OFD Sender: No OFD packet to send [11:33:19]OFD Sender: No OFD packet to send [11:33:24]OFD Sender: No OFD packet to send [11:33:29]OFD Sender: No OFD packet to send [11:33:34]OFD Sender: No OFD packet to send [11:33:39]OFD Sender: No OFD packet to send [11:33:44]OFD Sender: No OFD packet to send [11:33:49]OFD Sender: No OFD packet to send [11:33:54]OFD Sender: No OFD packet to send [11:33:59]OFD Sender: No OFD packet to send [11:34:04]OFD Sender: No OFD packet to send [11:34:09]OFD Sender: No OFD packet to send [11:34:14]OFD Sender: No OFD packet to send [11:34:19]OFD Sender: No OFD packet to send [11:34:24]OFD Sender: No OFD packet to send [11:34:29]OFD Sender: No OFD packet to send [11:34:34]OFD Sender: No OFD packet to send [11:34:39]OFD Sender: No OFD packet to send [11:34:44]OFD Sender: No OFD packet to send [11:34:49]OFD Sender: No OFD packet to send [11:34:54]OFD Sender: No OFD packet to send [11:34:59]OFD Sender: No OFD packet to send [11:35:04]OFD Sender: No OFD packet to send [11:35:09]OFD Sender: No OFD packet to send [11:35:14]OFD Sender: No OFD packet to send [11:35:19]OFD Sender: No OFD packet to send [11:35:24]OFD Sender: No OFD packet to send [11:35:29]OFD Sender: No OFD packet to send [11:35:34]OFD Sender: No OFD packet to send [11:35:39]OFD Sender: No OFD packet to send [11:35:44]OFD Sender: No OFD packet to send [11:35:49]OFD Sender: No OFD packet to send [11:35:54]OFD Sender: No OFD packet to send [11:35:59]OFD Sender: No OFD packet to send [11:36:04]OFD Sender: No OFD packet to send [11:36:09]OFD Sender: No OFD packet to send [11:36:14]OFD Sender: No OFD packet to send [11:36:17]accept exits with 7 [11:36:17]New connection [11:36:17]New thread 3066543460 created [11:36:17]Thread 3066686820 joined [11:36:17]Waiting for new connection... [11:36:17] Sock 7.Parse request [11:36:17]Sock 7.Check first char [11:36:17]Sock 7.First char is OK [11:36:17]request: POST /json_proto HTTP/1.0 [11:36:17]Method: POST [11:36:17]URL: /json_proto [11:36:17]Method is POST - this is cgi request [11:36:17]url: /json_proto [11:36:17]query_string will be loaded in cgi processing [11:36:17]execute_cgi json_proto POST (null) [11:36:17]execute_cgi path=json_proto method=POST [11:36:17]POST find Content-Length [11:36:17]Host: 172.17.36.132:8080 [11:36:17]Content-Length: 642 [11:36:17]Content-Type: application/json [11:36:17] [11:36:17]POST finish read [11:36:17]Found Content-Length = 642 [11:36:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706391", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 40.000, "sum" : 2676.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 2676.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:36:17]execute_script... [11:36:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706391", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 40.000, "sum" : 2676.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 2676.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:36:17]POST & json_proto [11:36:17]process_json_proto [11:36:17]json parsed OK: [11:36:17]protocol is kg_v1.0 [11:36:17]action value=close_receipt [11:36:17]process_action close_receipt [11:36:17]cmd_close_receipt [11:36:17]MH_GetDate [11:36:17]Write to MH i2c: F0 00 00 F1 2D 0D [11:36:17]Write i2c OK [11:36:17]MH_I2C_Read... [11:36:17]Read from MH i2c: F0 [11:36:17]MH_I2C_Read... [11:36:17]Read from MH i2c: F0 09 00 [11:36:17]MH_I2C_Read... [11:36:17]Read from MH i2c: F0 09 00 F1 2D 00 B5 AA 5D 66 B2 22 B0 64 20 [11:36:17]GetLastDocTimeStamp 1717413775 [11:36:17]current date 1717414581 [11:36:17]FM_GetShiftState [11:36:17]SAM_PROTO_GetShiftState [11:36:17]wFMCommunicate request_size=4 [11:36:17]MH_SAM_APDU [11:36:17]CAPDU: 80 13 01 00 [11:36:17]Write to MH i2c: E2 08 00 F2 2D 80 13 01 00 00 00 00 00 9C [11:36:17]Write i2c OK [11:36:17]MH_I2C_Read... [11:36:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:17]Read from MH i2c: E2 [11:36:17]MH_I2C_Read... [11:36:17]Read from MH i2c: E2 0E 00 [11:36:17]MH_I2C_Read... [11:36:17]Read from MH i2c: E2 0E 00 F2 2D 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 77 [11:36:17]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [11:36:17]wFMCommunicate OK [11:36:17]SAM_PROTO_GetShiftState done [11:36:17]FM_GetShiftState done [11:36:17]opened in 1717378033 [11:36:17]opened+sec_in_day 1717464433 [11:36:17]quantity*price = 267600 [11:36:17]sum+1 = 267601 [11:36:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2676.00 НСП 1% : 23.68 НДС 12% : 284.18 Наличными: 2676.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 61 03.06.2024 11:36 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68315 ФПД: 176366851547524 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T113621&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68315&fm=176366851547524&tin=02508201610067®Number=0000000000098096&sum=267600 [11:36:18]StoreToDocumentArchive [11:36:18]shift 324 fd 68315 [11:36:18]save to /storage/0324/doc_00068315 [11:36:18]save last doc name /storage/0324/doc_00068315 to /storage/kkm_last_doc_name [11:36:18]save OK [11:36:18]Clear old archive folders... [11:36:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:36:18]tlvbuf is 00464700 [11:36:18]SAM_PROTO_ClearQueue [11:36:18]wFMCommunicate request_size=4 [11:36:18]MH_SAM_APDU [11:36:18]CAPDU: 80 09 00 00 [11:36:18]Write to MH i2c: E2 08 00 FF 2D 80 09 00 00 00 00 00 00 9E [11:36:18]Write i2c OK [11:36:18]MH_I2C_Read... [11:36:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:36:18]Read from MH i2c: E2 [11:36:18]MH_I2C_Read... [11:36:18]Read from MH i2c: E2 03 00 [11:36:18]MH_I2C_Read... [11:36:18]Read from MH i2c: E2 03 00 FF 2D 00 90 00 A0 [11:36:18]RAPDU: 90 00 [11:36:18]wFMCommunicate OK [11:36:18]SAM_PROTO_ClearQueue done [11:36:18]KKMCreateOFDPacket [11:36:18]OFDProtocolAddRootSTLVToBuf [11:36:18]FM_MakeSignedData [11:36:18]FM_MakeSignedData [11:36:18]SAM_PROTO_SignData [11:36:18]wFMCommunicate request_size=4 [11:36:18]MH_SAM_APDU [11:36:18]CAPDU: 80 0D 01 02 [11:36:18]Write to MH i2c: E2 08 00 00 2E 80 0D 01 02 00 00 00 00 A7 [11:36:18]Write i2c OK [11:36:18]MH_I2C_Read... [11:36:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:36:18]Read from MH i2c: E2 [11:36:18]MH_I2C_Read... [11:36:18]Read from MH i2c: E2 03 00 [11:36:18]MH_I2C_Read... [11:36:18]Read from MH i2c: E2 03 00 00 2E 00 90 00 A2 [11:36:18]RAPDU: 90 00 [11:36:18]wFMCommunicate OK [11:36:18]wFMCommunicate request_size=255 [11:36:18]MH_SAM_APDU [11:36: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 34 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 50 15 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 15 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 6F 00 00 00 00 07 04 06 00 50 15 04 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 B5 AA 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 DB 0A 01 00 35 04 06 00 A0 [11:36:18]Write to MH i2c: E2 02 01 01 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 50 15 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 15 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 6F 00 00 00 00 07 04 06 00 50 15 04 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 B5 AA 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 DB 0A 01 00 35 04 06 00 A0 00 00 E6 [11:36:18]Write i2c OK [11:36:18]MH_I2C_Read... [11:36:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:18]Read from MH i2c: E2 [11:36:18]MH_I2C_Read... [11:36:18]Read from MH i2c: E2 03 00 [11:36:18]MH_I2C_Read... [11:36:18]Read from MH i2c: E2 03 00 01 2E 00 90 00 A3 [11:36:18]RAPDU: 90 00 [11:36:18]wFMCommunicate OK [11:36:18]wFMCommunicate request_size=10 [11:36:18]MH_SAM_APDU [11:36:18]CAPDU: 80 0D 02 02 05 67 9B 89 61 84 [11:36:18]Write to MH i2c: E2 0D 00 02 2E 80 0D 02 02 05 00 67 9B 89 61 84 00 00 24 [11:36:18]Write i2c OK [11:36:18]MH_I2C_Read... [11:36:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:18]Read from MH i2c: E2 [11:36:18]MH_I2C_Read... [11:36:18]Read from MH i2c: E2 03 00 [11:36:18]MH_I2C_Read... [11:36:18]Read from MH i2c: E2 03 00 02 2E 00 90 00 A4 [11:36:18]RAPDU: 90 00 [11:36:18]wFMCommunicate OK [11:36:18]wFMCommunicate request_size=4 [11:36:18]MH_SAM_APDU [11:36:18]CAPDU: 80 0D 03 02 [11:36:18]Write to MH i2c: E2 08 00 03 2E 80 0D 03 02 00 00 00 00 AC [11:36:18]Write i2c OK [11:36:18]MH_I2C_Read... [11:36:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:36:18]Read from MH i2c: E2 [11:36:18]MH_I2C_Read... [11:36:18]Read from MH i2c: E2 0B 00 [11:36:18]MH_I2C_Read... [11:36:18]Read from MH i2c: E2 0B 00 03 2E 00 7D C3 05 F8 A1 51 F6 AE 90 00 80 [11:36:18]RAPDU: 7D C3 05 F8 A1 51 F6 AE 90 00 [11:36:18]wFMCommunicate OK [11:36:18]SAM_PROTO_SignData done [11:36:18]FM_MakeSignedData done [11:36:18]CreateOFDProtocolMessage [11:36:18]wFMCommunicate request_size=4 [11:36:18]MH_SAM_APDU [11:36:18]CAPDU: 80 11 00 00 [11:36:18]Write to MH i2c: E2 08 00 04 2E 80 11 00 00 00 00 00 00 AC [11:36:18]Write i2c OK [11:36:18]MH_I2C_Read... [11:36:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:18]Read from MH i2c: E2 [11:36:18]MH_I2C_Read... [11:36:18]Read from MH i2c: E2 17 00 [11:36:18]MH_I2C_Read... [11:36:18]Read from MH i2c: E2 17 00 04 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 F7 [11:36:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [11:36:18]wFMCommunicate OK [11:36:18]CreateOFDProtocolMessage done [11:36:18]OFDSenderStorePacket 68315 [11:36:18]StoreOFDPacket docnum=68315 [11:36:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 DA 3C 07 01 DE 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 50 15 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 15 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 6F 00 00 00 00 07 04 06 00 50 15 04 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 B5 AA 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 DB 0A 01 00 35 04 06 00 A0 67 9B 89 61 84 7D C3 05 F8 A1 51 F6 AE [11:36:18]CheckFolder [11:36:18]dirname=/storage/ofd_packets [11:36:18]CheckFolder done [11:36:18]ProducePacketName [11:36:18]name=ofd_packets/00068315 [11:36:18]NVStorageSaveData ofd_packets/00068315 [11:36:18]File name is /storage/ofd_packets/00068315 [11:36:18]Write 301 bytes [11:36:18]NVStorageSaveData done [11:36:18]OFDSenderStorePacket done [11:36:18]KKMCreateOFDPacket done [11:36:18]NVStorageSaveData kkm_last_timestamp [11:36:18]File name is /storage/kkm_last_timestamp [11:36:18]Write 4 bytes [11:36:18]NVStorageSaveData done [11:36:18]ExternCall_PrintAddStr [11:36:18]wPrintStart [11:36:18]Write to MH i2c: 01 00 00 05 2E 33 [11:36:18]Write i2c OK [11:36:18]MH_I2C_Read... [11:36:18]Read from MH i2c: 01 [11:36:18]MH_I2C_Read... [11:36:18]Read from MH i2c: 01 07 00 [11:36:18]MH_I2C_Read... [11:36:18]Read from MH i2c: 01 07 00 05 2E 00 00 00 00 00 FF 0F 48 [11:36:18]RasterBufferAndPrint [11:36:18]line Счет N : (1)706391 [11:36:18]line ИНН: 02508201610067 [11:36:18]line Контрольно-Кассовый Чек [11:36:18]line ПРОДАЖА [11:36:18]line ТРК (МРК, ГНК) : 42 [11:36:18]line Товар: 2710124130 [11:36:18]line Аи-92-К-4 [11:36:18]line 40.000 * 66.90 [11:36:18]line = 2676.00 [11:36:18]line НДС 12% НСП 1% [11:36:18]line > о реализуемом товаре [11:36:18]line ИТОГО: 2676.00 [11:36:18]line НСП 1% : 23.68 [11:36:18]line НДС 12% : 284.18 [11:36:18]line Наличными: 2676.00 [11:36:18]line Безнал.: 0.00 [11:36:18]line Место: АЗС № 62 "Партнер Нефть" [11:36:18]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [11:36:18]line СНО: Общий режим [11:36:18]line Чек 61 03.06.2024 11:36 [11:36:18]line Смена: 324 ФФД: 1.0 [11:36:18]line ЗНМ: 0300000181 [11:36:18]line РНМ: 0000000000098096 [11:36:18]line Версия ККМ: 001 [11:36:18]line ФМ: 0000000000965400 [11:36:18]line ФД: 68315 [11:36:18]line ФПД: 176366851547524 [11:36:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T113621&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68315&fm=176366851547524&tin=02508201610067®Number=0000000000098096&sum=267600 [11:36:19]OFD Sender: Processing packet 68315 [packets to send 26, broken 25] [11:36:19]ProducePacketName [11:36:19]name=ofd_packets/00068315 [11:36:19]OFD Sender: To server: pG, [11:36:19]CommunicateWithHost lk.salyk.kg:30040 [11:36:19]ConnectInit lk.salyk.kg [11:36:19]written 0, free lines is 4095 [11:36:19]Connected sock=6 [11:36:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 DA 3C 07 01 DE 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 50 15 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 15 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 6F 00 00 00 00 07 04 06 00 50 15 04 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 B5 AA 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 DB 0A 01 00 35 04 06 00 A0 67 9B 89 61 84 7D C3 05 F8 A1 51 F6 AE [11:36:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 2D 79 47 00 0C 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 DB 0A 01 00 F4 03 04 00 B2 51 5D 66 B6 04 01 00 00 34 4A EB 20 54 92 89 0C [11:36:19]CommunicateWithHost err = 0 [11:36:19]CheckOFDResponse [11:36:19]1017 (14) - 77093643461234 [11:36:19]1041 (16) - 0000000000965400 [11:36:19]1040 (4) - 68315 [11:36:19]1012 (4) - 03.06.2024 05:16 [11:36:19]1206 (1) - 0 [11:36:19]OFD Sender: Remove packet 68315 [11:36:19]ProducePacketName [11:36:19]name=ofd_packets/00068315 [11:36:19]NVStorageDeleteData [11:36:19]Write to MH i2c: 01 00 00 2D 2E 5B [11:36:19]Write i2c OK [11:36:19]MH_I2C_Read... [11:36:19]Read from MH i2c: 01 [11:36:19]MH_I2C_Read... [11:36:19]Read from MH i2c: 01 07 00 [11:36:19]MH_I2C_Read... [11:36:19]Read from MH i2c: 01 07 00 2D 2E 00 00 00 00 00 20 0D 8F [11:36:19]RasterBufferAndPrint [11:36:19]line [11:36:19]line [11:36:19]line [11:36:19]line [11:36:19]line [11:36:19]written 0, free lines is 3367 [11:36:19]MH_Cut [11:36:19]Write to MH i2c: D1 01 00 34 2E 01 34 [11:36:19]Write i2c OK [11:36:19]MH_I2C_Read... [11:36:19]Read from MH i2c: D1 [11:36:19]MH_I2C_Read... [11:36:19]Read from MH i2c: D1 01 00 [11:36:19]MH_I2C_Read... [11:36:19]Read from MH i2c: D1 01 00 34 2E 00 33 [11:36:19]Write to MH i2c: 01 00 00 35 2E 63 [11:36:19]Write i2c OK [11:36:19]MH_I2C_Read... [11:36:19]OFD Sender: No OFD packet to send [11:36:20]*** Cut start [11:36:20]*** Partial cut [11:36:20]*** CUTSNS_PIN = 1 [11:36:20]*** CUTSNS_PIN = 0 [11:36:20]*** Brake cut motor [11:36:20]Read from MH i2c: 01 [11:36:20]MH_I2C_Read... [11:36:20]*** Stop cut motor [11:36:20]*** Cut end [11:36:20]Read from MH i2c: 01 07 00 [11:36:20]MH_I2C_Read... [11:36:20]Read from MH i2c: 01 07 00 35 2E 00 00 00 00 00 FF 0F 78 [11:36:20]process_action close_receipt done [11:36:20]requested_data is exist [11:36:20]produce_requested_data [11:36:20]requested_item fm.sn is exist - process it [11:36:20]wFMCommunicate request_size=4 [11:36:20]MH_SAM_APDU [11:36:20]CAPDU: 80 11 00 00 [11:36:20]Write to MH i2c: E2 08 00 36 2E 80 11 00 00 00 00 00 00 DE [11:36:20]Write i2c OK [11:36:20]MH_I2C_Read... [11:36:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:20]Read from MH i2c: E2 [11:36:20]MH_I2C_Read... [11:36:20]Read from MH i2c: E2 17 00 [11:36:20]MH_I2C_Read... [11:36:20]Read from MH i2c: E2 17 00 36 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 29 [11:36:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [11:36:20]wFMCommunicate OK [11:36:20]requested_item fd.num is exist - process it [11:36:20]SAM_PROTO_GetFieldsCounters [11:36:20]wFMCommunicate request_size=4 [11:36:20]MH_SAM_APDU [11:36:20]CAPDU: 80 13 00 00 [11:36:20]Write to MH i2c: E2 08 00 37 2E 80 13 00 00 00 00 00 00 E1 [11:36:20]Write i2c OK [11:36:20]MH_I2C_Read... [11:36:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:36:21]Read from MH i2c: E2 [11:36:21]MH_I2C_Read... [11:36:21]Read from MH i2c: E2 62 00 [11:36:21]MH_I2C_Read... [11:36:21]Read from MH i2c: E2 62 00 37 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 DB 0A 01 00 0E 04 04 00 44 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 E3 [11:36:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 DB 0A 01 00 0E 04 04 00 44 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 [11:36:21]wFMCommunicate OK [11:36:21]SAM_PROTO_GetFieldsCounters done [11:36:21]requested_item shift.num is exist - process it [11:36:21]requested_item shift.opened is exist - process it [11:36:21]req_shift_opened [11:36:21]FM_GetShiftState [11:36:21]SAM_PROTO_GetShiftState [11:36:21]wFMCommunicate request_size=4 [11:36:21]MH_SAM_APDU [11:36:21]CAPDU: 80 13 01 00 [11:36:21]Write to MH i2c: E2 08 00 38 2E 80 13 01 00 00 00 00 00 E3 [11:36:21]Write i2c OK [11:36:21]MH_I2C_Read... [11:36:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:21]Read from MH i2c: E2 [11:36:21]MH_I2C_Read... [11:36:21]Read from MH i2c: E2 0E 00 [11:36:21]MH_I2C_Read... [11:36:21]Read from MH i2c: E2 0E 00 38 2E 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 BE [11:36:21]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [11:36:21]wFMCommunicate OK [11:36:21]SAM_PROTO_GetShiftState done [11:36:21]FM_GetShiftState done [11:36:21]req_shift_opened done [11:36:21]requested_item shift.open_date is exist - process it [11:36:21]req_shift_open_date [11:36:21]req_shift_open_date done [11:36:21]produce_requested_data done [11:36:21]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68315,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [11:36:21]process_action_free close_receipt [11:36:21]json_value_free [11:36:21]json_value_free done [11:36:21]process_json_proto returns [11:36:21]Send response to host [11:36:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68315,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [11:36:21]free response buf [11:36:21]execute_script done [11:36:21]execute_script returns [11:36:21]free content buf [11:36:21]Sock 7.Close socket [11:36:21]Sock 7.Thread stoped [11:36:24]OFD Sender: No OFD packet to send [11:36:29]OFD Sender: No OFD packet to send [11:36:34]OFD Sender: No OFD packet to send [11:36:39]OFD Sender: No OFD packet to send [11:36:44]OFD Sender: No OFD packet to send [11:36:49]OFD Sender: No OFD packet to send [11:36:54]OFD Sender: No OFD packet to send [11:36:59]OFD Sender: No OFD packet to send [11:37:04]OFD Sender: No OFD packet to send [11:37:09]OFD Sender: No OFD packet to send [11:37:14]OFD Sender: No OFD packet to send [11:37:19]OFD Sender: No OFD packet to send [11:37:24]OFD Sender: No OFD packet to send [11:37:29]OFD Sender: No OFD packet to send [11:37:34]OFD Sender: No OFD packet to send [11:37:39]OFD Sender: No OFD packet to send [11:37:44]OFD Sender: No OFD packet to send [11:37:49]OFD Sender: No OFD packet to send [11:37:54]OFD Sender: No OFD packet to send [11:37:59]OFD Sender: No OFD packet to send [11:38:04]OFD Sender: No OFD packet to send [11:38:09]OFD Sender: No OFD packet to send [11:38:14]OFD Sender: No OFD packet to send [11:38:19]OFD Sender: No OFD packet to send [11:38:24]OFD Sender: No OFD packet to send [11:38:29]OFD Sender: No OFD packet to send [11:38:34]OFD Sender: No OFD packet to send [11:38:39]OFD Sender: No OFD packet to send [11:38:44]OFD Sender: No OFD packet to send [11:38:49]OFD Sender: No OFD packet to send [11:38:54]OFD Sender: No OFD packet to send [11:39:00]OFD Sender: No OFD packet to send [11:39:05]OFD Sender: No OFD packet to send [11:39:10]OFD Sender: No OFD packet to send [11:39:15]OFD Sender: No OFD packet to send [11:39:20]OFD Sender: No OFD packet to send [11:39:21]accept exits with 5 [11:39:21]New connection [11:39:21]New thread 3066686820 created [11:39:21]Thread 3066543460 joined [11:39:21]Waiting for new connection... [11:39:21] Sock 5.Parse request [11:39:21]Sock 5.Check first char [11:39:21]Sock 5.First char is OK [11:39:21]request: POST /json_proto HTTP/1.0 [11:39:21]Method: POST [11:39:21]URL: /json_proto [11:39:21]Method is POST - this is cgi request [11:39:21]url: /json_proto [11:39:21]query_string will be loaded in cgi processing [11:39:21]execute_cgi json_proto POST (null) [11:39:21]execute_cgi path=json_proto method=POST [11:39:21]POST find Content-Length [11:39:21]Host: 172.17.36.132:8080 [11:39:21]Content-Length: 682 [11:39:21]Content-Type: application/json [11:39:21] [11:39:21]POST finish read [11:39:21]Found Content-Length = 682 [11:39:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706393", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 8.240, "sum" : 600.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:39:21]execute_script... [11:39: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)706393", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 8.240, "sum" : 600.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:39:21]POST & json_proto [11:39:21]process_json_proto [11:39:21]json parsed OK: [11:39:21]protocol is kg_v1.0 [11:39:21]action value=close_receipt [11:39:21]process_action close_receipt [11:39:21]cmd_close_receipt [11:39:21]MH_GetDate [11:39:21]Write to MH i2c: F0 00 00 39 2E 56 [11:39:21]Write i2c OK [11:39:21]MH_I2C_Read... [11:39:21]Read from MH i2c: F0 [11:39:21]MH_I2C_Read... [11:39:21]Read from MH i2c: F0 09 00 [11:39:21]MH_I2C_Read... [11:39:21]Read from MH i2c: F0 09 00 39 2E 00 6E AB 5D 66 B2 22 B0 64 23 [11:39:21]GetLastDocTimeStamp 1717414581 [11:39:21]current date 1717414766 [11:39:21]FM_GetShiftState [11:39:21]SAM_PROTO_GetShiftState [11:39:21]wFMCommunicate request_size=4 [11:39:21]MH_SAM_APDU [11:39:21]CAPDU: 80 13 01 00 [11:39:21]Write to MH i2c: E2 08 00 3A 2E 80 13 01 00 00 00 00 00 E5 [11:39:21]Write i2c OK [11:39:21]MH_I2C_Read... [11:39:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:39:21]Read from MH i2c: E2 [11:39:21]MH_I2C_Read... [11:39:21]Read from MH i2c: E2 0E 00 [11:39:21]MH_I2C_Read... [11:39:21]Read from MH i2c: E2 0E 00 3A 2E 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 C0 [11:39:21]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [11:39:21]wFMCommunicate OK [11:39:21]SAM_PROTO_GetShiftState done [11:39:21]FM_GetShiftState done [11:39:21]opened in 1717378033 [11:39:21]opened+sec_in_day 1717464433 [11:39:21]quantity*price = 60069 [11:39:21]sum+1 = 60071 [11:39:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.70 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.32 НДС 12% : 63.79 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 62 03.06.2024 11:39 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68316 ФПД: 78711315987022 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T113926&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68316&fm=78711315987022&tin=02508201610067®Number=0000000000098096&sum=60000 [11:39:22]StoreToDocumentArchive [11:39:22]shift 324 fd 68316 [11:39:22]save to /storage/0324/doc_00068316 [11:39:22]save last doc name /storage/0324/doc_00068316 to /storage/kkm_last_doc_name [11:39:22]save OK [11:39:22]Clear old archive folders... [11:39:22]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:39:22]tlvbuf is 0023A6D0 [11:39:22]SAM_PROTO_ClearQueue [11:39:22]wFMCommunicate request_size=4 [11:39:22]MH_SAM_APDU [11:39:22]CAPDU: 80 09 00 00 [11:39:22]Write to MH i2c: E2 08 00 47 2E 80 09 00 00 00 00 00 00 E7 [11:39:22]Write i2c OK [11:39:22]MH_I2C_Read... [11:39:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:39:22]Read from MH i2c: E2 [11:39:22]MH_I2C_Read... [11:39:22]Read from MH i2c: E2 03 00 [11:39:22]MH_I2C_Read... [11:39:22]Read from MH i2c: E2 03 00 47 2E 00 90 00 E9 [11:39:22]RAPDU: 90 00 [11:39:22]wFMCommunicate OK [11:39:22]SAM_PROTO_ClearQueue done [11:39:22]KKMCreateOFDPacket [11:39:22]OFDProtocolAddRootSTLVToBuf [11:39:22]FM_MakeSignedData [11:39:22]FM_MakeSignedData [11:39:22]SAM_PROTO_SignData [11:39:22]wFMCommunicate request_size=4 [11:39:22]MH_SAM_APDU [11:39:22]CAPDU: 80 0D 01 02 [11:39:22]Write to MH i2c: E2 08 00 48 2E 80 0D 01 02 00 00 00 00 EF [11:39:22]Write i2c OK [11:39:22]MH_I2C_Read... [11:39:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:39:22]Read from MH i2c: E2 [11:39:22]MH_I2C_Read... [11:39:22]Read from MH i2c: E2 03 00 [11:39:22]MH_I2C_Read... [11:39:22]Read from MH i2c: E2 03 00 48 2E 00 90 00 EA [11:39:22]RAPDU: 90 00 [11:39:22]wFMCommunicate OK [11:39:22]wFMCommunicate request_size=255 [11:39:22]MH_SAM_APDU [11:39:22]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 34 FF 03 08 00 03 30 20 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A6 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 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 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 3E 00 00 00 F4 03 04 00 6E AB 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 DC 0A 01 00 35 04 06 00 [11:39:22]Write to MH i2c: E2 02 01 49 2E 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 34 FF 03 08 00 03 30 20 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A6 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 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 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 3E 00 00 00 F4 03 04 00 6E AB 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 DC 0A 01 00 35 04 06 00 00 00 9B [11:39:22]Write i2c OK [11:39:22]MH_I2C_Read... [11:39:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:39:23]Read from MH i2c: E2 [11:39:23]MH_I2C_Read... [11:39:23]Read from MH i2c: E2 03 00 [11:39:23]MH_I2C_Read... [11:39:23]Read from MH i2c: E2 03 00 49 2E 00 90 00 EB [11:39:23]RAPDU: 90 00 [11:39:23]wFMCommunicate OK [11:39:23]wFMCommunicate request_size=11 [11:39:23]MH_SAM_APDU [11:39:23]CAPDU: 80 0D 02 02 06 47 96 68 07 7A 4E [11:39:23]Write to MH i2c: E2 0E 00 4A 2E 80 0D 02 02 06 00 47 96 68 07 7A 4E 00 00 12 [11:39:23]Write i2c OK [11:39:23]MH_I2C_Read... [11:39:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:39:23]Read from MH i2c: E2 [11:39:23]MH_I2C_Read... [11:39:23]Read from MH i2c: E2 03 00 [11:39:23]MH_I2C_Read... [11:39:23]Read from MH i2c: E2 03 00 4A 2E 00 90 00 EC [11:39:23]RAPDU: 90 00 [11:39:23]wFMCommunicate OK [11:39:23]wFMCommunicate request_size=4 [11:39:23]MH_SAM_APDU [11:39:23]CAPDU: 80 0D 03 02 [11:39:23]Write to MH i2c: E2 08 00 4B 2E 80 0D 03 02 00 00 00 00 F4 [11:39:23]Write i2c OK [11:39:23]MH_I2C_Read... [11:39:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:39:23]Read from MH i2c: E2 [11:39:23]MH_I2C_Read... [11:39:23]Read from MH i2c: E2 0B 00 [11:39:23]MH_I2C_Read... [11:39:23]Read from MH i2c: E2 0B 00 4B 2E 00 01 7D 56 50 BD 22 70 6E 90 00 D6 [11:39:23]RAPDU: 01 7D 56 50 BD 22 70 6E 90 00 [11:39:23]wFMCommunicate OK [11:39:23]SAM_PROTO_SignData done [11:39:23]FM_MakeSignedData done [11:39:23]CreateOFDProtocolMessage [11:39:23]wFMCommunicate request_size=4 [11:39:23]MH_SAM_APDU [11:39:23]CAPDU: 80 11 00 00 [11:39:23]Write to MH i2c: E2 08 00 4C 2E 80 11 00 00 00 00 00 00 F4 [11:39:23]Write i2c OK [11:39:23]MH_I2C_Read... [11:39:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:39:23]Read from MH i2c: E2 [11:39:23]MH_I2C_Read... [11:39:23]Read from MH i2c: E2 17 00 [11:39:23]MH_I2C_Read... [11:39:23]Read from MH i2c: E2 17 00 4C 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 3F [11:39:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [11:39:23]wFMCommunicate OK [11:39:23]CreateOFDProtocolMessage done [11:39:23]OFDSenderStorePacket 68316 [11:39:23]StoreOFDPacket docnum=68316 [11:39:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 DF 80 08 01 EE 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 34 FF 03 08 00 03 30 20 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A6 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 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 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 3E 00 00 00 F4 03 04 00 6E AB 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 DC 0A 01 00 35 04 06 00 47 96 68 07 7A 4E 01 7D 56 50 BD 22 70 6E [11:39:23]CheckFolder [11:39:23]dirname=/storage/ofd_packets [11:39:23]CheckFolder done [11:39:23]ProducePacketName [11:39:23]name=ofd_packets/00068316 [11:39:23]NVStorageSaveData ofd_packets/00068316 [11:39:23]File name is /storage/ofd_packets/00068316 [11:39:23]Write 302 bytes [11:39:23]NVStorageSaveData done [11:39:23]OFDSenderStorePacket done [11:39:23]KKMCreateOFDPacket done [11:39:23]NVStorageSaveData kkm_last_timestamp [11:39:23]File name is /storage/kkm_last_timestamp [11:39:23]Write 4 bytes [11:39:23]NVStorageSaveData done [11:39:23]ExternCall_PrintAddStr [11:39:23]wPrintStart [11:39:23]Write to MH i2c: 01 00 00 4D 2E 7B [11:39:23]Write i2c OK [11:39:23]MH_I2C_Read... [11:39:23]Read from MH i2c: 01 [11:39:23]MH_I2C_Read... [11:39:23]Read from MH i2c: 01 07 00 [11:39:23]MH_I2C_Read... [11:39:23]Read from MH i2c: 01 07 00 4D 2E 00 00 00 00 00 FF 0F 90 [11:39:23]RasterBufferAndPrint [11:39:23]line Счет N : (1)706393 [11:39:23]line ИНН: 02508201610067 [11:39:23]line Контрольно-Кассовый Чек [11:39:23]line ПРОДАЖА [11:39:23]line ТРК (МРК, ГНК) : 21 [11:39:23]line Товар: 2710194210 [11:39:23]line ДТ(л)-К-4 [11:39:23]line 8.240 * 72.90 [11:39:23]line = 600.70 [11:39:23]line НДС 12% НСП 1% [11:39:23]line > о реализуемом товаре [11:39:23]line ОКРУГЛЕНИЕ: -0.70 [11:39:23]line ИТОГО: 600.00 [11:39:23]line Внесено: 600.00 [11:39:23]line СДАЧА: 0.00 [11:39:23]line НСП 1% : 5.32 [11:39:23]line НДС 12% : 63.79 [11:39:23]line Наличными: 600.00 [11:39:23]line Безнал.: 0.00 [11:39:23]line Место: АЗС № 62 "Партнер Нефть" [11:39:23]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [11:39:23]line СНО: Общий режим [11:39:23]line Чек 62 03.06.2024 11:39 [11:39:23]line Смена: 324 ФФД: 1.0 [11:39:23]line ЗНМ: 0300000181 [11:39:23]line РНМ: 0000000000098096 [11:39:23]line Версия ККМ: 001 [11:39:23]line ФМ: 0000000000965400 [11:39:23]line ФД: 68316 [11:39:23]line ФПД: 78711315987022 [11:39:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T113926&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68316&fm=78711315987022&tin=02508201610067®Number=0000000000098096&sum=60000 [11:39:23]OFD Sender: Processing packet 68316 [packets to send 26, broken 25] [11:39:23]ProducePacketName [11:39:23]name=ofd_packets/00068316 [11:39:23]OFD Sender: To server: pG, [11:39:23]CommunicateWithHost lk.salyk.kg:30040 [11:39:23]ConnectInit lk.salyk.kg [11:39:23]written 0, free lines is 4095 [11:39:23]Connected sock=7 [11:39:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 DF 80 08 01 EE 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 34 FF 03 08 00 03 30 20 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A6 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 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 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 3E 00 00 00 F4 03 04 00 6E AB 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 DC 0A 01 00 35 04 06 00 47 96 68 07 7A 4E 01 7D 56 50 BD 22 70 6E [11:39:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 8C 6A 47 00 79 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 DC 0A 01 00 F4 03 04 00 6A 52 5D 66 B6 04 01 00 00 57 56 1C 73 39 D8 67 EF [11:39:23]CommunicateWithHost err = 0 [11:39:23]CheckOFDResponse [11:39:23]1017 (14) - 77093643461234 [11:39:23]1041 (16) - 0000000000965400 [11:39:23]1040 (4) - 68316 [11:39:23]1012 (4) - 03.06.2024 05:19 [11:39:23]1206 (1) - 0 [11:39:23]OFD Sender: Remove packet 68316 [11:39:23]ProducePacketName [11:39:23]name=ofd_packets/00068316 [11:39:23]NVStorageDeleteData [11:39:24]Write to MH i2c: 01 00 00 78 2E A6 [11:39:24]Write i2c OK [11:39:24]MH_I2C_Read... [11:39:24]Read from MH i2c: 01 [11:39:24]MH_I2C_Read... [11:39:24]Read from MH i2c: 01 07 00 [11:39:24]MH_I2C_Read... [11:39:24]Read from MH i2c: 01 07 00 78 2E 00 00 00 00 00 E2 0C 9B [11:39:24]RasterBufferAndPrint [11:39:24]line [11:39:24]line [11:39:24]line [11:39:24]line [11:39:24]line [11:39:24]written 0, free lines is 3304 [11:39:24]MH_Cut [11:39:24]Write to MH i2c: D1 01 00 7F 2E 01 7F [11:39:24]Write i2c OK [11:39:24]MH_I2C_Read... [11:39:24]Read from MH i2c: D1 [11:39:24]MH_I2C_Read... [11:39:24]Read from MH i2c: D1 01 00 [11:39:24]MH_I2C_Read... [11:39:24]Read from MH i2c: D1 01 00 7F 2E 00 7E [11:39:24]Write to MH i2c: 01 00 00 80 2E AE [11:39:24]Write i2c OK [11:39:24]MH_I2C_Read... [11:39:24]OFD Sender: No OFD packet to send [11:39:24]*** Cut start [11:39:24]*** Partial cut [11:39:24]*** CUTSNS_PIN = 1 [11:39:24]*** CUTSNS_PIN = 0 [11:39:25]*** Brake cut motor [11:39:25]Read from MH i2c: 01 [11:39:25]MH_I2C_Read... [11:39:25]*** Stop cut motor [11:39:25]*** Cut end [11:39:25]Read from MH i2c: 01 07 00 [11:39:25]MH_I2C_Read... [11:39:25]Read from MH i2c: 01 07 00 80 2E 00 00 00 00 00 FF 0F C3 [11:39:25]process_action close_receipt done [11:39:25]requested_data is exist [11:39:25]produce_requested_data [11:39:25]requested_item fm.sn is exist - process it [11:39:25]wFMCommunicate request_size=4 [11:39:25]MH_SAM_APDU [11:39:25]CAPDU: 80 11 00 00 [11:39:25]Write to MH i2c: E2 08 00 81 2E 80 11 00 00 00 00 00 00 29 [11:39:25]Write i2c OK [11:39:25]MH_I2C_Read... [11:39:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:39:25]Read from MH i2c: E2 [11:39:25]MH_I2C_Read... [11:39:25]Read from MH i2c: E2 17 00 [11:39:25]MH_I2C_Read... [11:39:25]Read from MH i2c: E2 17 00 81 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 74 [11:39:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [11:39:25]wFMCommunicate OK [11:39:25]requested_item fd.num is exist - process it [11:39:25]SAM_PROTO_GetFieldsCounters [11:39:25]wFMCommunicate request_size=4 [11:39:25]MH_SAM_APDU [11:39:25]CAPDU: 80 13 00 00 [11:39:25]Write to MH i2c: E2 08 00 82 2E 80 13 00 00 00 00 00 00 2C [11:39:25]Write i2c OK [11:39:25]MH_I2C_Read... [11:39:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:39:25]Read from MH i2c: E2 [11:39:25]MH_I2C_Read... [11:39:25]Read from MH i2c: E2 62 00 [11:39:25]MH_I2C_Read... [11:39:25]Read from MH i2c: E2 62 00 82 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 DC 0A 01 00 0E 04 04 00 44 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 32 [11:39:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 DC 0A 01 00 0E 04 04 00 44 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 [11:39:25]wFMCommunicate OK [11:39:25]SAM_PROTO_GetFieldsCounters done [11:39:25]requested_item shift.num is exist - process it [11:39:25]requested_item shift.opened is exist - process it [11:39:25]req_shift_opened [11:39:25]FM_GetShiftState [11:39:25]SAM_PROTO_GetShiftState [11:39:25]wFMCommunicate request_size=4 [11:39:25]MH_SAM_APDU [11:39:25]CAPDU: 80 13 01 00 [11:39:25]Write to MH i2c: E2 08 00 83 2E 80 13 01 00 00 00 00 00 2E [11:39:25]Write i2c OK [11:39:25]MH_I2C_Read... [11:39:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:39:25]Read from MH i2c: E2 [11:39:25]MH_I2C_Read... [11:39:25]Read from MH i2c: E2 0E 00 [11:39:25]MH_I2C_Read... [11:39:25]Read from MH i2c: E2 0E 00 83 2E 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 09 [11:39:25]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [11:39:25]wFMCommunicate OK [11:39:25]SAM_PROTO_GetShiftState done [11:39:25]FM_GetShiftState done [11:39:25]req_shift_opened done [11:39:25]requested_item shift.open_date is exist - process it [11:39:25]req_shift_open_date [11:39:25]req_shift_open_date done [11:39:25]produce_requested_data done [11:39:25]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68316,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [11:39:25]process_action_free close_receipt [11:39:25]json_value_free [11:39:25]json_value_free done [11:39:25]process_json_proto returns [11:39:25]Send response to host [11:39:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68316,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [11:39:25]free response buf [11:39:25]execute_script done [11:39:25]execute_script returns [11:39:25]free content buf [11:39:25]Sock 5.Close socket [11:39:25]Sock 5.Thread stoped [11:39:29]OFD Sender: No OFD packet to send [11:39:34]OFD Sender: No OFD packet to send [11:39:39]OFD Sender: No OFD packet to send [11:39:41]accept exits with 6 [11:39:41]New connection [11:39:41]New thread 3066543460 created [11:39:41]Thread 3066686820 joined [11:39:41]Waiting for new connection... [11:39:41] Sock 6.Parse request [11:39:41]Sock 6.Check first char [11:39:41]Sock 6.First char is OK [11:39:41]request: POST /json_proto HTTP/1.0 [11:39:41]Method: POST [11:39:41]URL: /json_proto [11:39:41]Method is POST - this is cgi request [11:39:41]url: /json_proto [11:39:41]query_string will be loaded in cgi processing [11:39:41]execute_cgi json_proto POST (null) [11:39:41]execute_cgi path=json_proto method=POST [11:39:41]POST find Content-Length [11:39:41]Host: 172.17.36.132:8080 [11:39:41]Content-Length: 1188 [11:39:41]Content-Type: application/json [11:39:41] [11:39:41]POST finish read [11:39:41]Found Content-Length = 1188 [11:39:41]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706392\u000A03.06.2024 11:16\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-4\u000A 50.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 3645.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A01887\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:39:41]execute_script... [11:39:41]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706392\u000A03.06.2024 11:16\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-4\u000A 50.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 3645.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A01887\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:39:41]POST & json_proto [11:39:41]process_json_proto [11:39:41]json parsed OK: [11:39:41]protocol is kg_v1.0 [11:39:41]action value=print_text [11:39:41]process_action print_text [11:39:41]cmd_print_text [11:39:41]ExternCall_PrintAddStr [11:39:41]wPrintStart [11:39:41]Write to MH i2c: 01 00 00 84 2E B2 [11:39:41]Write i2c OK [11:39:41]MH_I2C_Read... [11:39:41]Read from MH i2c: 01 [11:39:41]MH_I2C_Read... [11:39:41]Read from MH i2c: 01 07 00 [11:39:41]MH_I2C_Read... [11:39:41]Read from MH i2c: 01 07 00 84 2E 00 00 00 00 00 FF 0F C7 [11:39:41]RasterBufferAndPrint [11:39:41]line *****ТОВАРНЫЙ ЧЕК***** [11:39:41]line АЗС 62 [11:39:41]line Партнер нефть [11:39:41]line 02508201610067 [11:39:41]line Кассир : Балаев А. [11:39:41]line Счет N : (1)706392 [11:39:41]line 03.06.2024 11:16 [11:39:41]line ПРОДАЖА [11:39:41]line ТРК (МРК, ГНК): 11 [11:39:41]line Вид ГСМ : 2710194210 [11:39:41]line ДТ(л)-К-4 [11:39:41]line 50.000 x 72.90 [11:39:41]line ИТОГ: 3645.00 [11:39:41]line Тип оплаты: Талоны: Топливная Карта [11:39:41]line 01887 [11:39:41]line ______________________ [11:39:41]line (подпись) [11:39:41]written 0, free lines is 4095 [11:39:41]Write to MH i2c: 01 00 00 98 2E C6 [11:39:41]Write i2c OK [11:39:41]MH_I2C_Read... [11:39:41]Read from MH i2c: 01 [11:39:41]MH_I2C_Read... [11:39:41]Read from MH i2c: 01 07 00 [11:39:41]MH_I2C_Read... [11:39:41]Read from MH i2c: 01 07 00 98 2E 00 00 00 00 00 10 0E EB [11:39:41]RasterBufferAndPrint [11:39:41]line [11:39:41]line [11:39:41]line [11:39:41]line [11:39:41]line [11:39:41]written 0, free lines is 3601 [11:39:41]MH_Cut [11:39:41]Write to MH i2c: D1 01 00 9F 2E 01 9F [11:39:41]Write i2c OK [11:39:41]MH_I2C_Read... [11:39:41]Read from MH i2c: D1 [11:39:41]MH_I2C_Read... [11:39:41]Read from MH i2c: D1 01 00 [11:39:41]MH_I2C_Read... [11:39:41]Read from MH i2c: D1 01 00 9F 2E 00 9E [11:39:41]Write to MH i2c: 01 00 00 A0 2E CE [11:39:41]Write i2c OK [11:39:41]MH_I2C_Read... [11:39:41]*** Cut start [11:39:41]*** Partial cut [11:39:41]*** CUTSNS_PIN = 1 [11:39:41]*** CUTSNS_PIN = 0 [11:39:42]*** Brake cut motor [11:39:42]Read from MH i2c: 01 [11:39:42]MH_I2C_Read... [11:39:42]*** Stop cut motor [11:39:42]*** Cut end [11:39:42]Read from MH i2c: 01 07 00 [11:39:42]MH_I2C_Read... [11:39:42]Read from MH i2c: 01 07 00 A0 2E 00 00 00 00 00 FF 0F E3 [11:39:42]process_action print_text done [11:39:42]requested_data is exist [11:39:42]produce_requested_data [11:39:42]requested_item fm.sn is exist - process it [11:39:42]wFMCommunicate request_size=4 [11:39:42]MH_SAM_APDU [11:39:42]CAPDU: 80 11 00 00 [11:39:42]Write to MH i2c: E2 08 00 A1 2E 80 11 00 00 00 00 00 00 49 [11:39:42]Write i2c OK [11:39:42]MH_I2C_Read... [11:39:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:39:42]Read from MH i2c: E2 [11:39:42]MH_I2C_Read... [11:39:42]Read from MH i2c: E2 17 00 [11:39:42]MH_I2C_Read... [11:39:42]Read from MH i2c: E2 17 00 A1 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 94 [11:39:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [11:39:42]wFMCommunicate OK [11:39:42]requested_item fd.num is exist - process it [11:39:42]SAM_PROTO_GetFieldsCounters [11:39:42]wFMCommunicate request_size=4 [11:39:42]MH_SAM_APDU [11:39:42]CAPDU: 80 13 00 00 [11:39:42]Write to MH i2c: E2 08 00 A2 2E 80 13 00 00 00 00 00 00 4C [11:39:42]Write i2c OK [11:39:42]MH_I2C_Read... [11:39:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:39:42]Read from MH i2c: E2 [11:39:42]MH_I2C_Read... [11:39:42]Read from MH i2c: E2 62 00 [11:39:42]MH_I2C_Read... [11:39:42]Read from MH i2c: E2 62 00 A2 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 DC 0A 01 00 0E 04 04 00 44 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 52 [11:39:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 DC 0A 01 00 0E 04 04 00 44 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 [11:39:42]wFMCommunicate OK [11:39:42]SAM_PROTO_GetFieldsCounters done [11:39:42]requested_item shift.num is exist - process it [11:39:42]requested_item shift.opened is exist - process it [11:39:42]req_shift_opened [11:39:42]FM_GetShiftState [11:39:42]SAM_PROTO_GetShiftState [11:39:42]wFMCommunicate request_size=4 [11:39:42]MH_SAM_APDU [11:39:42]CAPDU: 80 13 01 00 [11:39:42]Write to MH i2c: E2 08 00 A3 2E 80 13 01 00 00 00 00 00 4E [11:39:42]Write i2c OK [11:39:42]MH_I2C_Read... [11:39:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:39:42]Read from MH i2c: E2 [11:39:42]MH_I2C_Read... [11:39:42]Read from MH i2c: E2 0E 00 [11:39:42]MH_I2C_Read... [11:39:42]Read from MH i2c: E2 0E 00 A3 2E 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 29 [11:39:42]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [11:39:42]wFMCommunicate OK [11:39:42]SAM_PROTO_GetShiftState done [11:39:42]FM_GetShiftState done [11:39:42]req_shift_opened done [11:39:42]requested_item shift.open_date is exist - process it [11:39:42]req_shift_open_date [11:39:42]req_shift_open_date done [11:39:42]produce_requested_data done [11:39:42]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68316,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [11:39:42]process_action_free print_text [11:39:42]json_value_free [11:39:42]json_value_free done [11:39:42]process_json_proto returns [11:39:42]Send response to host [11:39:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68316,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [11:39:42]free response buf [11:39:42]execute_script done [11:39:42]execute_script returns [11:39:42]free content buf [11:39:42]Sock 6.Close socket [11:39:42]Sock 6.Thread stoped [11:39:44]OFD Sender: No OFD packet to send [11:39:49]OFD Sender: No OFD packet to send [11:39:54]OFD Sender: No OFD packet to send [11:39:59]OFD Sender: No OFD packet to send [11:40:04]OFD Sender: No OFD packet to send [11:40:09]OFD Sender: No OFD packet to send [11:40:14]OFD Sender: No OFD packet to send [11:40:19]OFD Sender: No OFD packet to send [11:40:24]OFD Sender: No OFD packet to send [11:40:29]OFD Sender: No OFD packet to send [11:40:34]OFD Sender: No OFD packet to send [11:40:39]OFD Sender: No OFD packet to send [11:40:44]OFD Sender: No OFD packet to send [11:40:49]OFD Sender: No OFD packet to send [11:40:54]OFD Sender: No OFD packet to send [11:40:59]OFD Sender: No OFD packet to send [11:41:04]OFD Sender: No OFD packet to send [11:41:09]OFD Sender: No OFD packet to send [11:41:14]OFD Sender: No OFD packet to send [11:41:19]OFD Sender: No OFD packet to send [11:41:24]OFD Sender: No OFD packet to send [11:41:29]OFD Sender: No OFD packet to send [11:41:34]OFD Sender: No OFD packet to send [11:41:39]OFD Sender: No OFD packet to send [11:41:44]OFD Sender: No OFD packet to send [11:41:49]OFD Sender: No OFD packet to send [11:41:54]OFD Sender: No OFD packet to send [11:41:59]OFD Sender: No OFD packet to send [11:42:04]OFD Sender: No OFD packet to send [11:42:09]OFD Sender: No OFD packet to send [11:42:14]OFD Sender: No OFD packet to send [11:42:19]OFD Sender: No OFD packet to send [11:42:24]OFD Sender: No OFD packet to send [11:42:29]OFD Sender: No OFD packet to send [11:42:34]OFD Sender: No OFD packet to send [11:42:39]OFD Sender: No OFD packet to send [11:42:44]OFD Sender: No OFD packet to send [11:42:49]OFD Sender: No OFD packet to send [11:42:54]OFD Sender: No OFD packet to send [11:42:59]OFD Sender: No OFD packet to send [11:43:04]OFD Sender: No OFD packet to send [11:43:09]OFD Sender: No OFD packet to send [11:43:14]OFD Sender: No OFD packet to send [11:43:19]OFD Sender: No OFD packet to send [11:43:24]OFD Sender: No OFD packet to send [11:43:29]OFD Sender: No OFD packet to send [11:43:34]OFD Sender: No OFD packet to send [11:43:39]OFD Sender: No OFD packet to send [11:43:44]OFD Sender: No OFD packet to send [11:43:49]OFD Sender: No OFD packet to send [11:43:54]OFD Sender: No OFD packet to send [11:43:59]OFD Sender: No OFD packet to send [11:44:04]OFD Sender: No OFD packet to send [11:44:09]OFD Sender: No OFD packet to send [11:44:14]OFD Sender: No OFD packet to send [11:44:19]OFD Sender: No OFD packet to send [11:44:24]OFD Sender: No OFD packet to send [11:44:29]OFD Sender: No OFD packet to send [11:44:34]OFD Sender: No OFD packet to send [11:44:39]OFD Sender: No OFD packet to send [11:44:44]OFD Sender: No OFD packet to send [11:44:49]OFD Sender: No OFD packet to send [11:44:54]OFD Sender: No OFD packet to send [11:44:59]OFD Sender: No OFD packet to send [11:45:04]OFD Sender: No OFD packet to send [11:45:09]OFD Sender: No OFD packet to send [11:45:14]OFD Sender: No OFD packet to send [11:45:19]OFD Sender: No OFD packet to send [11:45:24]OFD Sender: No OFD packet to send [11:45:29]OFD Sender: No OFD packet to send [11:45:34]OFD Sender: No OFD packet to send [11:45:39]OFD Sender: No OFD packet to send [11:45:44]OFD Sender: No OFD packet to send [11:45:49]OFD Sender: No OFD packet to send [11:45:54]OFD Sender: No OFD packet to send [11:45:59]OFD Sender: No OFD packet to send [11:46:04]OFD Sender: No OFD packet to send [11:46:09]OFD Sender: No OFD packet to send [11:46:14]OFD Sender: No OFD packet to send [11:46:19]OFD Sender: No OFD packet to send [11:46:24]OFD Sender: No OFD packet to send [11:46:29]OFD Sender: No OFD packet to send [11:46:34]OFD Sender: No OFD packet to send [11:46:39]OFD Sender: No OFD packet to send [11:46:44]OFD Sender: No OFD packet to send [11:46:49]OFD Sender: No OFD packet to send [11:46:54]OFD Sender: No OFD packet to send [11:46:59]OFD Sender: No OFD packet to send [11:47:04]OFD Sender: No OFD packet to send [11:47:09]OFD Sender: No OFD packet to send [11:47:14]OFD Sender: No OFD packet to send [11:47:19]OFD Sender: No OFD packet to send [11:47:24]OFD Sender: No OFD packet to send [11:47:29]OFD Sender: No OFD packet to send [11:47:34]OFD Sender: No OFD packet to send [11:47:39]OFD Sender: No OFD packet to send [11:47:44]OFD Sender: No OFD packet to send [11:47:49]OFD Sender: No OFD packet to send [11:47:54]OFD Sender: No OFD packet to send [11:47:59]OFD Sender: No OFD packet to send [11:48:04]OFD Sender: No OFD packet to send [11:48:09]OFD Sender: No OFD packet to send [11:48:14]OFD Sender: No OFD packet to send [11:48:19]OFD Sender: No OFD packet to send [11:48:24]OFD Sender: No OFD packet to send [11:48:29]OFD Sender: No OFD packet to send [11:48:34]OFD Sender: No OFD packet to send [11:48:39]OFD Sender: No OFD packet to send [11:48:44]OFD Sender: No OFD packet to send [11:48:49]OFD Sender: No OFD packet to send [11:48:54]OFD Sender: No OFD packet to send [11:48:59]OFD Sender: No OFD packet to send [11:49:04]OFD Sender: No OFD packet to send [11:49:09]OFD Sender: No OFD packet to send [11:49:14]OFD Sender: No OFD packet to send [11:49:19]OFD Sender: No OFD packet to send [11:49:24]OFD Sender: No OFD packet to send [11:49:29]OFD Sender: No OFD packet to send [11:49:34]OFD Sender: No OFD packet to send [11:49:39]OFD Sender: No OFD packet to send [11:49:44]OFD Sender: No OFD packet to send [11:49:49]OFD Sender: No OFD packet to send [11:49:54]OFD Sender: No OFD packet to send [11:49:59]OFD Sender: No OFD packet to send [11:50:04]OFD Sender: No OFD packet to send [11:50:09]OFD Sender: No OFD packet to send [11:50:14]OFD Sender: No OFD packet to send [11:50:19]OFD Sender: No OFD packet to send [11:50:24]OFD Sender: No OFD packet to send [11:50:29]OFD Sender: No OFD packet to send [11:50:35]OFD Sender: No OFD packet to send [11:50:40]OFD Sender: No OFD packet to send [11:50:45]OFD Sender: No OFD packet to send [11:50:50]OFD Sender: No OFD packet to send [11:50:55]OFD Sender: No OFD packet to send [11:51:00]OFD Sender: No OFD packet to send [11:51:05]OFD Sender: No OFD packet to send [11:51:06]accept exits with 5 [11:51:06]New connection [11:51:06]New thread 3066686820 created [11:51:06]Thread 3066543460 joined [11:51:06]Waiting for new connection... [11:51:06] Sock 5.Parse request [11:51:06]Sock 5.Check first char [11:51:06]Sock 5.First char is OK [11:51:06]request: POST /json_proto HTTP/1.0 [11:51:06]Method: POST [11:51:06]URL: /json_proto [11:51:06]Method is POST - this is cgi request [11:51:06]url: /json_proto [11:51:06]query_string will be loaded in cgi processing [11:51:06]execute_cgi json_proto POST (null) [11:51:06]execute_cgi path=json_proto method=POST [11:51:06]POST find Content-Length [11:51:06]Host: 172.17.36.132:8080 [11:51:06]Content-Length: 677 [11:51:06]Content-Type: application/json [11:51:06] [11:51:06]POST finish read [11:51:06]Found Content-Length = 677 [11:51:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706396", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:51:06]execute_script... [11:51:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706396", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:51:06]POST & json_proto [11:51:06]process_json_proto [11:51:06]json parsed OK: [11:51:06]protocol is kg_v1.0 [11:51:06]action value=close_receipt [11:51:06]process_action close_receipt [11:51:06]cmd_close_receipt [11:51:06]MH_GetDate [11:51:06]Write to MH i2c: F0 00 00 A4 2E C1 [11:51:06]Write i2c OK [11:51:06]MH_I2C_Read... [11:51:06]Read from MH i2c: F0 [11:51:06]MH_I2C_Read... [11:51:06]Read from MH i2c: F0 09 00 [11:51:06]MH_I2C_Read... [11:51:06]Read from MH i2c: F0 09 00 A4 2E 00 2F AE 5D 66 B2 22 B0 64 52 [11:51:06]GetLastDocTimeStamp 1717414766 [11:51:06]current date 1717415471 [11:51:06]FM_GetShiftState [11:51:06]SAM_PROTO_GetShiftState [11:51:06]wFMCommunicate request_size=4 [11:51:06]MH_SAM_APDU [11:51:06]CAPDU: 80 13 01 00 [11:51:06]Write to MH i2c: E2 08 00 A5 2E 80 13 01 00 00 00 00 00 50 [11:51:06]Write i2c OK [11:51:06]MH_I2C_Read... [11:51:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:06]Read from MH i2c: E2 [11:51:06]MH_I2C_Read... [11:51:06]Read from MH i2c: E2 0E 00 [11:51:06]MH_I2C_Read... [11:51:06]Read from MH i2c: E2 0E 00 A5 2E 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 2B [11:51:06]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [11:51:06]wFMCommunicate OK [11:51:06]SAM_PROTO_GetShiftState done [11:51:06]FM_GetShiftState done [11:51:06]opened in 1717378033 [11:51:06]opened+sec_in_day 1717464433 [11:51:06]quantity*price = 30038 [11:51:06]sum+1 = 30039 [11:51:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 63 03.06.2024 11:51 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68317 ФПД: 44509605926617 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T115111&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68317&fm=44509605926617&tin=02508201610067®Number=0000000000098096&sum=30000 [11:51:07]StoreToDocumentArchive [11:51:07]shift 324 fd 68317 [11:51:07]save to /storage/0324/doc_00068317 [11:51:07]save last doc name /storage/0324/doc_00068317 to /storage/kkm_last_doc_name [11:51:07]save OK [11:51:07]Clear old archive folders... [11:51:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:51:07]tlvbuf is B6F14AF0 [11:51:07]SAM_PROTO_ClearQueue [11:51:07]wFMCommunicate request_size=4 [11:51:07]MH_SAM_APDU [11:51:07]CAPDU: 80 09 00 00 [11:51:07]Write to MH i2c: E2 08 00 B2 2E 80 09 00 00 00 00 00 00 52 [11:51:07]Write i2c OK [11:51:07]MH_I2C_Read... [11:51:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:51:07]Read from MH i2c: E2 [11:51:07]MH_I2C_Read... [11:51:07]Read from MH i2c: E2 03 00 [11:51:07]MH_I2C_Read... [11:51:07]Read from MH i2c: E2 03 00 B2 2E 00 90 00 54 [11:51:07]RAPDU: 90 00 [11:51:07]wFMCommunicate OK [11:51:07]SAM_PROTO_ClearQueue done [11:51:07]KKMCreateOFDPacket [11:51:07]OFDProtocolAddRootSTLVToBuf [11:51:07]FM_MakeSignedData [11:51:07]FM_MakeSignedData [11:51:07]SAM_PROTO_SignData [11:51:07]wFMCommunicate request_size=4 [11:51:07]MH_SAM_APDU [11:51:07]CAPDU: 80 0D 01 02 [11:51:07]Write to MH i2c: E2 08 00 B3 2E 80 0D 01 02 00 00 00 00 5A [11:51:07]Write i2c OK [11:51:07]MH_I2C_Read... [11:51:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:51:07]Read from MH i2c: E2 [11:51:07]MH_I2C_Read... [11:51:07]Read from MH i2c: E2 03 00 [11:51:07]MH_I2C_Read... [11:51:07]Read from MH i2c: E2 03 00 B3 2E 00 90 00 55 [11:51:07]RAPDU: 90 00 [11:51:07]wFMCommunicate OK [11:51:07]wFMCommunicate request_size=255 [11:51:07]MH_SAM_APDU [11:51:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 2F AE 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 DD 0A 01 00 35 04 06 00 28 [11:51:07]Write to MH i2c: E2 02 01 B4 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 2F AE 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 DD 0A 01 00 35 04 06 00 28 00 00 0F [11:51:07]Write i2c OK [11:51:07]MH_I2C_Read... [11:51:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:07]Read from MH i2c: E2 [11:51:07]MH_I2C_Read... [11:51:07]Read from MH i2c: E2 03 00 [11:51:07]MH_I2C_Read... [11:51:07]Read from MH i2c: E2 03 00 B4 2E 00 90 00 56 [11:51:07]RAPDU: 90 00 [11:51:07]wFMCommunicate OK [11:51:07]wFMCommunicate request_size=10 [11:51:07]MH_SAM_APDU [11:51:07]CAPDU: 80 0D 02 02 05 7B 33 40 16 D9 [11:51:07]Write to MH i2c: E2 0D 00 B5 2E 80 0D 02 02 05 00 7B 33 40 16 D9 00 00 44 [11:51:07]Write i2c OK [11:51:07]MH_I2C_Read... [11:51:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:07]Read from MH i2c: E2 [11:51:07]MH_I2C_Read... [11:51:07]Read from MH i2c: E2 03 00 [11:51:07]MH_I2C_Read... [11:51:07]Read from MH i2c: E2 03 00 B5 2E 00 90 00 57 [11:51:07]RAPDU: 90 00 [11:51:07]wFMCommunicate OK [11:51:07]wFMCommunicate request_size=4 [11:51:07]MH_SAM_APDU [11:51:07]CAPDU: 80 0D 03 02 [11:51:07]Write to MH i2c: E2 08 00 B6 2E 80 0D 03 02 00 00 00 00 5F [11:51:07]Write i2c OK [11:51:07]MH_I2C_Read... [11:51:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:51:07]Read from MH i2c: E2 [11:51:07]MH_I2C_Read... [11:51:07]Read from MH i2c: E2 0B 00 [11:51:07]MH_I2C_Read... [11:51:07]Read from MH i2c: E2 0B 00 B6 2E 00 33 D5 98 4A DE 4D E7 34 90 00 90 [11:51:07]RAPDU: 33 D5 98 4A DE 4D E7 34 90 00 [11:51:07]wFMCommunicate OK [11:51:07]SAM_PROTO_SignData done [11:51:07]FM_MakeSignedData done [11:51:07]CreateOFDProtocolMessage [11:51:07]wFMCommunicate request_size=4 [11:51:07]MH_SAM_APDU [11:51:07]CAPDU: 80 11 00 00 [11:51:07]Write to MH i2c: E2 08 00 B7 2E 80 11 00 00 00 00 00 00 5F [11:51:07]Write i2c OK [11:51:07]MH_I2C_Read... [11:51:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:07]Read from MH i2c: E2 [11:51:07]MH_I2C_Read... [11:51:07]Read from MH i2c: E2 17 00 [11:51:07]MH_I2C_Read... [11:51:07]Read from MH i2c: E2 17 00 B7 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 AA [11:51:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [11:51:07]wFMCommunicate OK [11:51:07]CreateOFDProtocolMessage done [11:51:07]OFDSenderStorePacket 68317 [11:51:07]StoreOFDPacket docnum=68317 [11:51:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 35 61 07 01 13 B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 2F AE 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 DD 0A 01 00 35 04 06 00 28 7B 33 40 16 D9 33 D5 98 4A DE 4D E7 34 [11:51:07]CheckFolder [11:51:07]dirname=/storage/ofd_packets [11:51:07]CheckFolder done [11:51:07]ProducePacketName [11:51:07]name=ofd_packets/00068317 [11:51:07]NVStorageSaveData ofd_packets/00068317 [11:51:07]File name is /storage/ofd_packets/00068317 [11:51:07]Write 301 bytes [11:51:07]NVStorageSaveData done [11:51:07]OFDSenderStorePacket done [11:51:07]KKMCreateOFDPacket done [11:51:07]NVStorageSaveData kkm_last_timestamp [11:51:07]File name is /storage/kkm_last_timestamp [11:51:07]Write 4 bytes [11:51:07]NVStorageSaveData done [11:51:07]ExternCall_PrintAddStr [11:51:07]wPrintStart [11:51:07]Write to MH i2c: 01 00 00 B8 2E E6 [11:51:07]Write i2c OK [11:51:07]MH_I2C_Read... [11:51:07]Read from MH i2c: 01 [11:51:07]MH_I2C_Read... [11:51:07]Read from MH i2c: 01 07 00 [11:51:07]MH_I2C_Read... [11:51:07]Read from MH i2c: 01 07 00 B8 2E 00 00 00 00 00 FF 0F FB [11:51:07]RasterBufferAndPrint [11:51:07]line Счет N : (1)706396 [11:51:07]line ИНН: 02508201610067 [11:51:07]line Контрольно-Кассовый Чек [11:51:07]line ПРОДАЖА [11:51:07]line ТРК (МРК, ГНК) : 32 [11:51:07]line Товар: 2710124130 [11:51:07]line Аи-92-К-4 [11:51:07]line 4.490 * 66.90 [11:51:07]line = 300.38 [11:51:07]line НДС 12% НСП 1% [11:51:07]line > о реализуемом товаре [11:51:07]line ОКРУГЛЕНИЕ: -0.38 [11:51:07]line ИТОГО: 300.00 [11:51:07]line Внесено: 300.00 [11:51:07]line СДАЧА: 0.00 [11:51:07]line НСП 1% : 2.66 [11:51:07]line НДС 12% : 31.90 [11:51:07]line Наличными: 300.00 [11:51:07]line Безнал.: 0.00 [11:51:07]line Место: АЗС № 62 "Партнер Нефть" [11:51:07]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [11:51:07]line СНО: Общий режим [11:51:07]line Чек 63 03.06.2024 11:51 [11:51:07]line Смена: 324 ФФД: 1.0 [11:51:07]line ЗНМ: 0300000181 [11:51:07]line РНМ: 0000000000098096 [11:51:07]line Версия ККМ: 001 [11:51:07]line ФМ: 0000000000965400 [11:51:07]line ФД: 68317 [11:51:07]line ФПД: 44509605926617 [11:51:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T115111&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68317&fm=44509605926617&tin=02508201610067®Number=0000000000098096&sum=30000 [11:51:08]OFD Sender: Processing packet 68317 [packets to send 26, broken 25] [11:51:08]ProducePacketName [11:51:08]name=ofd_packets/00068317 [11:51:08]OFD Sender: To server: pG, [11:51:08]CommunicateWithHost lk.salyk.kg:30040 [11:51:08]ConnectInit lk.salyk.kg [11:51:08]written 0, free lines is 4095 [11:51:08]Connected sock=7 [11:51:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 35 61 07 01 13 B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 2F AE 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 DD 0A 01 00 35 04 06 00 28 7B 33 40 16 D9 33 D5 98 4A DE 4D E7 34 [11:51:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 F3 73 47 00 25 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 DD 0A 01 00 F4 03 04 00 2B 55 5D 66 B6 04 01 00 00 8D 23 D2 85 37 DF D7 80 [11:51:08]CommunicateWithHost err = 0 [11:51:08]CheckOFDResponse [11:51:08]1017 (14) - 77093643461234 [11:51:08]1041 (16) - 0000000000965400 [11:51:08]1040 (4) - 68317 [11:51:08]1012 (4) - 03.06.2024 05:31 [11:51:08]1206 (1) - 0 [11:51:08]OFD Sender: Remove packet 68317 [11:51:08]ProducePacketName [11:51:08]name=ofd_packets/00068317 [11:51:08]NVStorageDeleteData [11:51:08]Write to MH i2c: 01 00 00 E3 2E 11 [11:51:08]Write i2c OK [11:51:08]MH_I2C_Read... [11:51:08]Read from MH i2c: 01 [11:51:08]MH_I2C_Read... [11:51:08]Read from MH i2c: 01 07 00 [11:51:08]MH_I2C_Read... [11:51:08]Read from MH i2c: 01 07 00 E3 2E 00 00 00 00 00 DC 0C 00 [11:51:08]RasterBufferAndPrint [11:51:08]line [11:51:08]line [11:51:08]line [11:51:08]line [11:51:08]line [11:51:08]written 0, free lines is 3298 [11:51:08]MH_Cut [11:51:08]Write to MH i2c: D1 01 00 EA 2E 01 EA [11:51:08]Write i2c OK [11:51:08]MH_I2C_Read... [11:51:08]Read from MH i2c: D1 [11:51:08]MH_I2C_Read... [11:51:08]Read from MH i2c: D1 01 00 [11:51:08]MH_I2C_Read... [11:51:08]Read from MH i2c: D1 01 00 EA 2E 00 E9 [11:51:08]Write to MH i2c: 01 00 00 EB 2E 19 [11:51:08]Write i2c OK [11:51:08]MH_I2C_Read... [11:51:08]OFD Sender: No OFD packet to send [11:51:09]*** Cut start [11:51:09]*** Partial cut [11:51:09]*** CUTSNS_PIN = 1 [11:51:09]*** CUTSNS_PIN = 0 [11:51:09]*** Brake cut motor [11:51:10]Read from MH i2c: 01 [11:51:10]MH_I2C_Read... [11:51:10]*** Stop cut motor [11:51:10]*** Cut end [11:51:10]Read from MH i2c: 01 07 00 [11:51:10]MH_I2C_Read... [11:51:10]Read from MH i2c: 01 07 00 EB 2E 00 00 00 00 00 FF 0F 2E [11:51:10]process_action close_receipt done [11:51:10]requested_data is exist [11:51:10]produce_requested_data [11:51:10]requested_item fm.sn is exist - process it [11:51:10]wFMCommunicate request_size=4 [11:51:10]MH_SAM_APDU [11:51:10]CAPDU: 80 11 00 00 [11:51:10]Write to MH i2c: E2 08 00 EC 2E 80 11 00 00 00 00 00 00 94 [11:51:10]Write i2c OK [11:51:10]MH_I2C_Read... [11:51:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:10]Read from MH i2c: E2 [11:51:10]MH_I2C_Read... [11:51:10]Read from MH i2c: E2 17 00 [11:51:10]MH_I2C_Read... [11:51:10]Read from MH i2c: E2 17 00 EC 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 DF [11:51:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [11:51:10]wFMCommunicate OK [11:51:10]requested_item fd.num is exist - process it [11:51:10]SAM_PROTO_GetFieldsCounters [11:51:10]wFMCommunicate request_size=4 [11:51:10]MH_SAM_APDU [11:51:10]CAPDU: 80 13 00 00 [11:51:10]Write to MH i2c: E2 08 00 ED 2E 80 13 00 00 00 00 00 00 97 [11:51:10]Write i2c OK [11:51:10]MH_I2C_Read... [11:51:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:51:10]Read from MH i2c: E2 [11:51:10]MH_I2C_Read... [11:51:10]Read from MH i2c: E2 62 00 [11:51:10]MH_I2C_Read... [11:51:10]Read from MH i2c: E2 62 00 ED 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 DD 0A 01 00 0E 04 04 00 44 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 A1 [11:51:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 DD 0A 01 00 0E 04 04 00 44 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 [11:51:10]wFMCommunicate OK [11:51:10]SAM_PROTO_GetFieldsCounters done [11:51:10]requested_item shift.num is exist - process it [11:51:10]requested_item shift.opened is exist - process it [11:51:10]req_shift_opened [11:51:10]FM_GetShiftState [11:51:10]SAM_PROTO_GetShiftState [11:51:10]wFMCommunicate request_size=4 [11:51:10]MH_SAM_APDU [11:51:10]CAPDU: 80 13 01 00 [11:51:10]Write to MH i2c: E2 08 00 EE 2E 80 13 01 00 00 00 00 00 99 [11:51:10]Write i2c OK [11:51:10]MH_I2C_Read... [11:51:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:10]Read from MH i2c: E2 [11:51:10]MH_I2C_Read... [11:51:10]Read from MH i2c: E2 0E 00 [11:51:10]MH_I2C_Read... [11:51:10]Read from MH i2c: E2 0E 00 EE 2E 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 74 [11:51:10]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [11:51:10]wFMCommunicate OK [11:51:10]SAM_PROTO_GetShiftState done [11:51:10]FM_GetShiftState done [11:51:10]req_shift_opened done [11:51:10]requested_item shift.open_date is exist - process it [11:51:10]req_shift_open_date [11:51:10]req_shift_open_date done [11:51:10]produce_requested_data done [11:51:10]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68317,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [11:51:10]process_action_free close_receipt [11:51:10]json_value_free [11:51:10]json_value_free done [11:51:10]process_json_proto returns [11:51:10]Send response to host [11:51:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68317,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [11:51:10]free response buf [11:51:10]execute_script done [11:51:10]execute_script returns [11:51:10]free content buf [11:51:10]Sock 5.Close socket [11:51:10]Sock 5.Thread stoped [11:51:13]OFD Sender: No OFD packet to send [11:51:18]OFD Sender: No OFD packet to send [11:51:23]OFD Sender: No OFD packet to send [11:51:28]OFD Sender: No OFD packet to send [11:51:33]OFD Sender: No OFD packet to send [11:51:38]OFD Sender: No OFD packet to send [11:51:43]OFD Sender: No OFD packet to send [11:51:48]OFD Sender: No OFD packet to send [11:51:53]OFD Sender: No OFD packet to send [11:51:58]OFD Sender: No OFD packet to send [11:52:03]OFD Sender: No OFD packet to send [11:52:08]OFD Sender: No OFD packet to send [11:52:13]OFD Sender: No OFD packet to send [11:52: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:28]accept exits with 6 [11:54:28]New connection [11:54:28]New thread 3066543460 created [11:54:28]Thread 3066686820 joined [11:54:28]Waiting for new connection... [11:54:28] Sock 6.Parse request [11:54:28]Sock 6.Check first char [11:54:28]Sock 6.First char is OK [11:54:28]request: POST /json_proto HTTP/1.0 [11:54:28]Method: POST [11:54:28]URL: /json_proto [11:54:28]Method is POST - this is cgi request [11:54:28]url: /json_proto [11:54:28]query_string will be loaded in cgi processing [11:54:28]execute_cgi json_proto POST (null) [11:54:28]execute_cgi path=json_proto method=POST [11:54:28]POST find Content-Length [11:54:28]Host: 172.17.36.132:8080 [11:54:28]Content-Length: 1189 [11:54:28]Content-Type: application/json [11:54:28] [11:54:28]POST finish read [11:54:28]Found Content-Length = 1189 [11:54:28]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706394\u000A03.06.2024 11:31\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-4\u000A 110.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 8019.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A00250\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:54:28]execute_script... [11:54:28]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706394\u000A03.06.2024 11:31\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-4\u000A 110.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 8019.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A00250\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:54:28]POST & json_proto [11:54:28]process_json_proto [11:54:28]json parsed OK: [11:54:28]protocol is kg_v1.0 [11:54:28]action value=print_text [11:54:28]process_action print_text [11:54:28]cmd_print_text [11:54:28]ExternCall_PrintAddStr [11:54:28]wPrintStart [11:54:28]Write to MH i2c: 01 00 00 EF 2E 1D [11:54:28]Write i2c OK [11:54:28]MH_I2C_Read... [11:54:28]Read from MH i2c: 01 [11:54:28]MH_I2C_Read... [11:54:28]Read from MH i2c: 01 07 00 [11:54:28]MH_I2C_Read... [11:54:28]Read from MH i2c: 01 07 00 EF 2E 00 00 00 00 00 FF 0F 32 [11:54:28]RasterBufferAndPrint [11:54:28]line *****ТОВАРНЫЙ ЧЕК***** [11:54:28]line АЗС 62 [11:54:28]line Партнер нефть [11:54:28]line 02508201610067 [11:54:28]line Кассир : Балаев А. [11:54:28]line Счет N : (1)706394 [11:54:28]line 03.06.2024 11:31 [11:54:28]line ПРОДАЖА [11:54:28]line ТРК (МРК, ГНК): 11 [11:54:28]line Вид ГСМ : 2710194210 [11:54:28]line ДТ(л)-К-4 [11:54:28]line 110.000 x 72.90 [11:54:28]line ИТОГ: 8019.00 [11:54:28]line Тип оплаты: Талоны: Топливная Карта [11:54:28]line 00250 [11:54:28]line ______________________ [11:54:28]line (подпись) [11:54:28]written 0, free lines is 4095 [11:54:28]Write to MH i2c: 01 00 00 03 2F 32 [11:54:28]Write i2c OK [11:54:28]MH_I2C_Read... [11:54:28]Read from MH i2c: 01 [11:54:28]MH_I2C_Read... [11:54:28]Read from MH i2c: 01 07 00 [11:54:28]MH_I2C_Read... [11:54:28]Read from MH i2c: 01 07 00 03 2F 00 00 00 00 00 10 0E 57 [11:54:28]RasterBufferAndPrint [11:54:28]line [11:54:28]line [11:54:28]line [11:54:28]line [11:54:28]line [11:54:28]written 0, free lines is 3601 [11:54:28]MH_Cut [11:54:28]Write to MH i2c: D1 01 00 0A 2F 01 0B [11:54:28]Write i2c OK [11:54:28]MH_I2C_Read... [11:54:28]Read from MH i2c: D1 [11:54:28]MH_I2C_Read... [11:54:28]Read from MH i2c: D1 01 00 [11:54:28]MH_I2C_Read... [11:54:28]Read from MH i2c: D1 01 00 0A 2F 00 0A [11:54:28]Write to MH i2c: 01 00 00 0B 2F 3A [11:54:28]Write i2c OK [11:54:28]MH_I2C_Read... [11:54:29]OFD Sender: No OFD packet to send [11:54:29]*** Cut start [11:54:29]*** Partial cut [11:54:29]*** CUTSNS_PIN = 1 [11:54:29]*** CUTSNS_PIN = 0 [11:54:29]*** Brake cut motor [11:54:30]Read from MH i2c: 01 [11:54:30]MH_I2C_Read... [11:54:30]*** Stop cut motor [11:54:30]*** Cut end [11:54:30]Read from MH i2c: 01 07 00 [11:54:30]MH_I2C_Read... [11:54:30]Read from MH i2c: 01 07 00 0B 2F 00 00 00 00 00 FF 0F 4F [11:54:30]process_action print_text done [11:54:30]requested_data is exist [11:54:30]produce_requested_data [11:54:30]requested_item fm.sn is exist - process it [11:54:30]wFMCommunicate request_size=4 [11:54:30]MH_SAM_APDU [11:54:30]CAPDU: 80 11 00 00 [11:54:30]Write to MH i2c: E2 08 00 0C 2F 80 11 00 00 00 00 00 00 B5 [11:54:30]Write i2c OK [11:54:30]MH_I2C_Read... [11:54:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:30]Read from MH i2c: E2 [11:54:30]MH_I2C_Read... [11:54:30]Read from MH i2c: E2 17 00 [11:54:30]MH_I2C_Read... [11:54:30]Read from MH i2c: E2 17 00 0C 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 00 [11:54:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [11:54:30]wFMCommunicate OK [11:54:30]requested_item fd.num is exist - process it [11:54:30]SAM_PROTO_GetFieldsCounters [11:54:30]wFMCommunicate request_size=4 [11:54:30]MH_SAM_APDU [11:54:30]CAPDU: 80 13 00 00 [11:54:30]Write to MH i2c: E2 08 00 0D 2F 80 13 00 00 00 00 00 00 B8 [11:54:30]Write i2c OK [11:54:30]MH_I2C_Read... [11:54:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:54:30]Read from MH i2c: E2 [11:54:30]MH_I2C_Read... [11:54:30]Read from MH i2c: E2 62 00 [11:54:30]MH_I2C_Read... [11:54:30]Read from MH i2c: E2 62 00 0D 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 DD 0A 01 00 0E 04 04 00 44 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 C2 [11:54:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 DD 0A 01 00 0E 04 04 00 44 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 [11:54:30]wFMCommunicate OK [11:54:30]SAM_PROTO_GetFieldsCounters done [11:54:30]requested_item shift.num is exist - process it [11:54:30]requested_item shift.opened is exist - process it [11:54:30]req_shift_opened [11:54:30]FM_GetShiftState [11:54:30]SAM_PROTO_GetShiftState [11:54:30]wFMCommunicate request_size=4 [11:54:30]MH_SAM_APDU [11:54:30]CAPDU: 80 13 01 00 [11:54:30]Write to MH i2c: E2 08 00 0E 2F 80 13 01 00 00 00 00 00 BA [11:54:30]Write i2c OK [11:54:30]MH_I2C_Read... [11:54:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:30]Read from MH i2c: E2 [11:54:30]MH_I2C_Read... [11:54:30]Read from MH i2c: E2 0E 00 [11:54:30]MH_I2C_Read... [11:54:30]Read from MH i2c: E2 0E 00 0E 2F 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 95 [11:54:30]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [11:54:30]wFMCommunicate OK [11:54:30]SAM_PROTO_GetShiftState done [11:54:30]FM_GetShiftState done [11:54:30]req_shift_opened done [11:54:30]requested_item shift.open_date is exist - process it [11:54:30]req_shift_open_date [11:54:30]req_shift_open_date done [11:54:30]produce_requested_data done [11:54:30]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68317,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [11:54:30]process_action_free print_text [11:54:30]json_value_free [11:54:30]json_value_free done [11:54:30]process_json_proto returns [11:54:30]Send response to host [11:54:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68317,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [11:54:30]free response buf [11:54:30]execute_script done [11:54:30]execute_script returns [11:54:30]free content buf [11:54:30]Sock 6.Close socket [11:54:30]Sock 6.Thread stoped [11:54:34]OFD Sender: No OFD packet to send [11:54:34]accept exits with 5 [11:54:34]New connection [11:54:34]New thread 3066686820 created [11:54:34]Thread 3066543460 joined [11:54:34]Waiting for new connection... [11:54:34] Sock 5.Parse request [11:54:34]Sock 5.Check first char [11:54:34]Sock 5.First char is OK [11:54:34]request: POST /json_proto HTTP/1.0 [11:54:34]Method: POST [11:54:34]URL: /json_proto [11:54:34]Method is POST - this is cgi request [11:54:34]url: /json_proto [11:54:34]query_string will be loaded in cgi processing [11:54:34]execute_cgi json_proto POST (null) [11:54:34]execute_cgi path=json_proto method=POST [11:54:34]POST find Content-Length [11:54:34]Host: 172.17.36.132:8080 [11:54:34]Content-Length: 1189 [11:54:34]Content-Type: application/json [11:54:34] [11:54:34]POST finish read [11:54:34]Found Content-Length = 1189 [11:54:34]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706395\u000A03.06.2024 11:31\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-4\u000A 100.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 7290.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A00250\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:54:34]execute_script... [11:54:34]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706395\u000A03.06.2024 11:31\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-4\u000A 100.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 7290.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A00250\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:54:34]POST & json_proto [11:54:34]process_json_proto [11:54:34]json parsed OK: [11:54:34]protocol is kg_v1.0 [11:54:34]action value=print_text [11:54:34]process_action print_text [11:54:34]cmd_print_text [11:54:34]ExternCall_PrintAddStr [11:54:34]wPrintStart [11:54:34]Write to MH i2c: 01 00 00 0F 2F 3E [11:54:34]Write i2c OK [11:54:34]MH_I2C_Read... [11:54:34]Read from MH i2c: 01 [11:54:34]MH_I2C_Read... [11:54:34]Read from MH i2c: 01 07 00 [11:54:34]MH_I2C_Read... [11:54:34]Read from MH i2c: 01 07 00 0F 2F 00 00 00 00 00 FF 0F 53 [11:54:34]RasterBufferAndPrint [11:54:34]line *****ТОВАРНЫЙ ЧЕК***** [11:54:34]line АЗС 62 [11:54:34]line Партнер нефть [11:54:34]line 02508201610067 [11:54:34]line Кассир : Балаев А. [11:54:34]line Счет N : (1)706395 [11:54:34]line 03.06.2024 11:31 [11:54:34]line ПРОДАЖА [11:54:34]line ТРК (МРК, ГНК): 21 [11:54:34]line Вид ГСМ : 2710194210 [11:54:34]line ДТ(л)-К-4 [11:54:34]line 100.000 x 72.90 [11:54:34]line ИТОГ: 7290.00 [11:54:34]line Тип оплаты: Талоны: Топливная Карта [11:54:34]line 00250 [11:54:34]line ______________________ [11:54:34]line (подпись) [11:54:34]written 0, free lines is 4095 [11:54:34]Write to MH i2c: 01 00 00 23 2F 52 [11:54:34]Write i2c OK [11:54:34]MH_I2C_Read... [11:54:34]Read from MH i2c: 01 [11:54:34]MH_I2C_Read... [11:54:34]Read from MH i2c: 01 07 00 [11:54:34]MH_I2C_Read... [11:54:34]Read from MH i2c: 01 07 00 23 2F 00 00 00 00 00 10 0E 77 [11:54:34]RasterBufferAndPrint [11:54:34]line [11:54:34]line [11:54:34]line [11:54:34]line [11:54:34]line [11:54:34]written 0, free lines is 3602 [11:54:34]MH_Cut [11:54:34]Write to MH i2c: D1 01 00 2A 2F 01 2B [11:54:34]Write i2c OK [11:54:34]MH_I2C_Read... [11:54:34]Read from MH i2c: D1 [11:54:34]MH_I2C_Read... [11:54:34]Read from MH i2c: D1 01 00 [11:54:34]MH_I2C_Read... [11:54:34]Read from MH i2c: D1 01 00 2A 2F 00 2A [11:54:34]Write to MH i2c: 01 00 00 2B 2F 5A [11:54:34]Write i2c OK [11:54:34]MH_I2C_Read... [11:54:35]*** Cut start [11:54:35]*** Partial cut [11:54:35]*** CUTSNS_PIN = 1 [11:54:35]*** CUTSNS_PIN = 0 [11:54:35]*** Brake cut motor [11:54:35]Read from MH i2c: 01 [11:54:35]MH_I2C_Read... [11:54:35]*** Stop cut motor [11:54:35]*** Cut end [11:54:35]Read from MH i2c: 01 07 00 [11:54:35]MH_I2C_Read... [11:54:35]Read from MH i2c: 01 07 00 2B 2F 00 00 00 00 00 FF 0F 6F [11:54:35]process_action print_text done [11:54:35]requested_data is exist [11:54:35]produce_requested_data [11:54:35]requested_item fm.sn is exist - process it [11:54:35]wFMCommunicate request_size=4 [11:54:35]MH_SAM_APDU [11:54:35]CAPDU: 80 11 00 00 [11:54:35]Write to MH i2c: E2 08 00 2C 2F 80 11 00 00 00 00 00 00 D5 [11:54:35]Write i2c OK [11:54:35]MH_I2C_Read... [11:54:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:35]Read from MH i2c: E2 [11:54:35]MH_I2C_Read... [11:54:35]Read from MH i2c: E2 17 00 [11:54:35]MH_I2C_Read... [11:54:35]Read from MH i2c: E2 17 00 2C 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 20 [11:54:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [11:54:35]wFMCommunicate OK [11:54:35]requested_item fd.num is exist - process it [11:54:35]SAM_PROTO_GetFieldsCounters [11:54:35]wFMCommunicate request_size=4 [11:54:35]MH_SAM_APDU [11:54:35]CAPDU: 80 13 00 00 [11:54:35]Write to MH i2c: E2 08 00 2D 2F 80 13 00 00 00 00 00 00 D8 [11:54:35]Write i2c OK [11:54:35]MH_I2C_Read... [11:54:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:54:35]Read from MH i2c: E2 [11:54:35]MH_I2C_Read... [11:54:35]Read from MH i2c: E2 62 00 [11:54:35]MH_I2C_Read... [11:54:35]Read from MH i2c: E2 62 00 2D 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 DD 0A 01 00 0E 04 04 00 44 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 E2 [11:54:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 DD 0A 01 00 0E 04 04 00 44 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 [11:54:35]wFMCommunicate OK [11:54:35]SAM_PROTO_GetFieldsCounters done [11:54:35]requested_item shift.num is exist - process it [11:54:35]requested_item shift.opened is exist - process it [11:54:35]req_shift_opened [11:54:35]FM_GetShiftState [11:54:35]SAM_PROTO_GetShiftState [11:54:35]wFMCommunicate request_size=4 [11:54:35]MH_SAM_APDU [11:54:35]CAPDU: 80 13 01 00 [11:54:35]Write to MH i2c: E2 08 00 2E 2F 80 13 01 00 00 00 00 00 DA [11:54:35]Write i2c OK [11:54:35]MH_I2C_Read... [11:54:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:35]Read from MH i2c: E2 [11:54:35]MH_I2C_Read... [11:54:35]Read from MH i2c: E2 0E 00 [11:54:35]MH_I2C_Read... [11:54:35]Read from MH i2c: E2 0E 00 2E 2F 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 B5 [11:54:35]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [11:54:35]wFMCommunicate OK [11:54:35]SAM_PROTO_GetShiftState done [11:54:35]FM_GetShiftState done [11:54:35]req_shift_opened done [11:54:35]requested_item shift.open_date is exist - process it [11:54:35]req_shift_open_date [11:54:35]req_shift_open_date done [11:54:35]produce_requested_data done [11:54:35]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68317,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [11:54:35]process_action_free print_text [11:54:35]json_value_free [11:54:35]json_value_free done [11:54:35]process_json_proto returns [11:54:35]Send response to host [11:54:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68317,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [11:54:35]free response buf [11:54:35]execute_script done [11:54:35]execute_script returns [11:54:35]free content buf [11:54:35]Sock 5.Close socket [11:54:35]Sock 5.Thread stoped [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:42]*** FLAG_PRN_KEY set [11:55:42]*** FLAG_PRN_KEY reset [11:55:43]*** FLAG_PRN_KEY set [11:55:43]*** FLAG_PRN_KEY reset [11:55:44]OFD Sender: No OFD packet to send [11:55:44]*** FLAG_PRN_KEY set [11:55:44]*** FLAG_PRN_KEY reset [11:55:45]*** FLAG_PRN_KEY set [11:55:46]*** FLAG_PRN_KEY reset [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:25]accept exits with 6 [11:56:25]New connection [11:56:25]New thread 3066543460 created [11:56:25]Thread 3066686820 joined [11:56:25]Waiting for new connection... [11:56:25] Sock 6.Parse request [11:56:25]Sock 6.Check first char [11:56:25]Sock 6.First char is OK [11:56:25]request: POST /json_proto HTTP/1.0 [11:56:25]Method: POST [11:56:25]URL: /json_proto [11:56:25]Method is POST - this is cgi request [11:56:25]url: /json_proto [11:56:25]query_string will be loaded in cgi processing [11:56:25]execute_cgi json_proto POST (null) [11:56:25]execute_cgi path=json_proto method=POST [11:56:25]POST find Content-Length [11:56:25]Host: 172.17.36.132:8080 [11:56:25]Content-Length: 803 [11:56:25]Content-Type: application/json [11:56:25] [11:56:25]POST finish read [11:56:25]Found Content-Length = 803 [11:56:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706397", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:56:25]execute_script... [11:56: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)706397", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:56:25]POST & json_proto [11:56:25]process_json_proto [11:56:25]json parsed OK: [11:56:25]protocol is kg_v1.0 [11:56:25]action value=close_receipt [11:56:25]process_action close_receipt [11:56:25]cmd_close_receipt [11:56:25]MH_GetDate [11:56:25]Write to MH i2c: F0 00 00 2F 2F 4D [11:56:25]Write i2c OK [11:56:25]MH_I2C_Read... [11:56:25]Read from MH i2c: F0 [11:56:25]MH_I2C_Read... [11:56:25]Read from MH i2c: F0 09 00 [11:56:25]MH_I2C_Read... [11:56:25]Read from MH i2c: F0 09 00 2F 2F 00 6E AF 5D 66 B2 22 B0 64 1E [11:56:25]GetLastDocTimeStamp 1717415471 [11:56:25]current date 1717415790 [11:56:25]FM_GetShiftState [11:56:25]SAM_PROTO_GetShiftState [11:56:25]wFMCommunicate request_size=4 [11:56:25]MH_SAM_APDU [11:56:25]CAPDU: 80 13 01 00 [11:56:25]Write to MH i2c: E2 08 00 30 2F 80 13 01 00 00 00 00 00 DC [11:56:25]Write i2c OK [11:56:25]MH_I2C_Read... [11:56:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:56:25]Read from MH i2c: E2 [11:56:25]MH_I2C_Read... [11:56:25]Read from MH i2c: E2 0E 00 [11:56:25]MH_I2C_Read... [11:56:25]Read from MH i2c: E2 0E 00 30 2F 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 B7 [11:56:25]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [11:56:25]wFMCommunicate OK [11:56:25]SAM_PROTO_GetShiftState done [11:56:25]FM_GetShiftState done [11:56:25]opened in 1717378033 [11:56:25]opened+sec_in_day 1717464433 [11:56:25]quantity*price = 100015 [11:56:25]sum+1 = 100017 [11:56:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 64 03.06.2024 11:56 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000965400 ФД: 68318 ФПД: 114221228287818 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T115630&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68318&fm=114221228287818&tin=02508201610067®Number=0000000000098096&sum=100016 [11:56:26]StoreToDocumentArchive [11:56:26]shift 324 fd 68318 [11:56:26]save to /storage/0324/doc_00068318 [11:56:26]save last doc name /storage/0324/doc_00068318 to /storage/kkm_last_doc_name [11:56:26]save OK [11:56:26]Clear old archive folders... [11:56:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:56:26]tlvbuf is B6F17BE0 [11:56:26]SAM_PROTO_ClearQueue [11:56:26]wFMCommunicate request_size=4 [11:56:26]MH_SAM_APDU [11:56:26]CAPDU: 80 09 00 00 [11:56:26]Write to MH i2c: E2 08 00 3D 2F 80 09 00 00 00 00 00 00 DE [11:56:26]Write i2c OK [11:56:26]MH_I2C_Read... [11:56:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:56:26]Read from MH i2c: E2 [11:56:26]MH_I2C_Read... [11:56:26]Read from MH i2c: E2 03 00 [11:56:26]MH_I2C_Read... [11:56:26]Read from MH i2c: E2 03 00 3D 2F 00 90 00 E0 [11:56:26]RAPDU: 90 00 [11:56:26]wFMCommunicate OK [11:56:26]SAM_PROTO_ClearQueue done [11:56:26]KKMCreateOFDPacket [11:56:26]OFDProtocolAddRootSTLVToBuf [11:56:26]FM_MakeSignedData [11:56:26]FM_MakeSignedData [11:56:26]SAM_PROTO_SignData [11:56:26]wFMCommunicate request_size=4 [11:56:26]MH_SAM_APDU [11:56:26]CAPDU: 80 0D 01 02 [11:56:26]Write to MH i2c: E2 08 00 3E 2F 80 0D 01 02 00 00 00 00 E6 [11:56:26]Write i2c OK [11:56:26]MH_I2C_Read... [11:56:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:56:26]Read from MH i2c: E2 [11:56:26]MH_I2C_Read... [11:56:26]Read from MH i2c: E2 03 00 [11:56:26]MH_I2C_Read... [11:56:26]Read from MH i2c: E2 03 00 3E 2F 00 90 00 E1 [11:56:26]RAPDU: 90 00 [11:56:26]wFMCommunicate OK [11:56:26]wFMCommunicate request_size=255 [11:56:26]MH_SAM_APDU [11:56:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 6E AF 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 DE 0A 01 00 35 04 06 00 67 [11:56:26]Write to MH i2c: E2 02 01 3F 2F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 6E AF 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 DE 0A 01 00 35 04 06 00 67 00 00 42 [11:56:26]Write i2c OK [11:56:26]MH_I2C_Read... [11:56:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:56:27]Read from MH i2c: E2 [11:56:27]MH_I2C_Read... [11:56:27]Read from MH i2c: E2 03 00 [11:56:27]MH_I2C_Read... [11:56:27]Read from MH i2c: E2 03 00 3F 2F 00 90 00 E2 [11:56:27]RAPDU: 90 00 [11:56:27]wFMCommunicate OK [11:56:27]wFMCommunicate request_size=10 [11:56:27]MH_SAM_APDU [11:56:27]CAPDU: 80 0D 02 02 05 E2 33 BC E7 4A [11:56:27]Write to MH i2c: E2 0D 00 40 2F 80 0D 02 02 05 00 E2 33 BC E7 4A 00 00 F5 [11:56:27]Write i2c OK [11:56:27]MH_I2C_Read... [11:56:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:56:27]Read from MH i2c: E2 [11:56:27]MH_I2C_Read... [11:56:27]Read from MH i2c: E2 03 00 [11:56:27]MH_I2C_Read... [11:56:27]Read from MH i2c: E2 03 00 40 2F 00 90 00 E3 [11:56:27]RAPDU: 90 00 [11:56:27]wFMCommunicate OK [11:56:27]wFMCommunicate request_size=4 [11:56:27]MH_SAM_APDU [11:56:27]CAPDU: 80 0D 03 02 [11:56:27]Write to MH i2c: E2 08 00 41 2F 80 0D 03 02 00 00 00 00 EB [11:56:27]Write i2c OK [11:56:27]MH_I2C_Read... [11:56:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:56:27]Read from MH i2c: E2 [11:56:27]MH_I2C_Read... [11:56:27]Read from MH i2c: E2 0B 00 [11:56:27]MH_I2C_Read... [11:56:27]Read from MH i2c: E2 0B 00 41 2F 00 26 55 EF 9B B4 F2 3D 3F 90 00 13 [11:56:27]RAPDU: 26 55 EF 9B B4 F2 3D 3F 90 00 [11:56:27]wFMCommunicate OK [11:56:27]SAM_PROTO_SignData done [11:56:27]FM_MakeSignedData done [11:56:27]CreateOFDProtocolMessage [11:56:27]wFMCommunicate request_size=4 [11:56:27]MH_SAM_APDU [11:56:27]CAPDU: 80 11 00 00 [11:56:27]Write to MH i2c: E2 08 00 42 2F 80 11 00 00 00 00 00 00 EB [11:56:27]Write i2c OK [11:56:27]MH_I2C_Read... [11:56:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:56:27]Read from MH i2c: E2 [11:56:27]MH_I2C_Read... [11:56:27]Read from MH i2c: E2 17 00 [11:56:27]MH_I2C_Read... [11:56:27]Read from MH i2c: E2 17 00 42 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 36 [11:56:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [11:56:27]wFMCommunicate OK [11:56:27]CreateOFDProtocolMessage done [11:56:27]OFDSenderStorePacket 68318 [11:56:27]StoreOFDPacket docnum=68318 [11:56:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 AE CA 07 01 80 C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 6E AF 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 DE 0A 01 00 35 04 06 00 67 E2 33 BC E7 4A 26 55 EF 9B B4 F2 3D 3F [11:56:27]CheckFolder [11:56:27]dirname=/storage/ofd_packets [11:56:27]CheckFolder done [11:56:27]ProducePacketName [11:56:27]name=ofd_packets/00068318 [11:56:27]NVStorageSaveData ofd_packets/00068318 [11:56:27]File name is /storage/ofd_packets/00068318 [11:56:27]Write 301 bytes [11:56:27]NVStorageSaveData done [11:56:27]OFDSenderStorePacket done [11:56:27]KKMCreateOFDPacket done [11:56:27]NVStorageSaveData kkm_last_timestamp [11:56:27]File name is /storage/kkm_last_timestamp [11:56:27]Write 4 bytes [11:56:27]NVStorageSaveData done [11:56:27]ExternCall_PrintAddStr [11:56:27]wPrintStart [11:56:27]Write to MH i2c: 01 00 00 43 2F 72 [11:56:27]Write i2c OK [11:56:27]MH_I2C_Read... [11:56:27]Read from MH i2c: 01 [11:56:27]MH_I2C_Read... [11:56:27]Read from MH i2c: 01 07 00 [11:56:27]MH_I2C_Read... [11:56:27]Read from MH i2c: 01 07 00 43 2F 00 00 00 00 00 FF 0F 87 [11:56:27]RasterBufferAndPrint [11:56:27]line Счет N : (1)706397 [11:56:27]line ИНН: 02508201610067 [11:56:27]line Контрольно-Кассовый Чек [11:56:27]line ПРОДАЖА [11:56:27]line ТРК (МРК, ГНК) : 32 [11:56:27]line Товар: 2710124130 [11:56:27]line Аи-92-К-4 [11:56:27]line 14.950 * 66.90 [11:56:27]line = 1000.16 [11:56:27]line НДС 12% НСП 1% [11:56:27]line > о реализуемом товаре [11:56:27]line ИТОГО: 1000.16 [11:56:27]line НСП 1% : 8.85 [11:56:27]line НДС 12% : 106.21 [11:56:27]line Наличными: 0.00 [11:56:27]line Безнал.: 1000.16 [11:56:27]line Место: АЗС № 62 "Партнер Нефть" [11:56:27]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [11:56:27]line СНО: Общий режим [11:56:27]line Чек 64 03.06.2024 11:56 [11:56:27]line Смена: 324 ФФД: 1.0 [11:56:27]line ЗНМ: 0300000181 [11:56:27]line РНМ: 0000000000098096 [11:56:27]line Версия ККМ: 001 [11:56:27]line Платежная система: O! деньги [11:56:27]line ФМ: 0000000000965400 [11:56:27]line ФД: 68318 [11:56:27]line ФПД: 114221228287818 [11:56:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T115630&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68318&fm=114221228287818&tin=02508201610067®Number=0000000000098096&sum=100016 [11:56:27]OFD Sender: Processing packet 68318 [packets to send 26, broken 25] [11:56:27]ProducePacketName [11:56:27]name=ofd_packets/00068318 [11:56:27]OFD Sender: To server: pG, [11:56:27]CommunicateWithHost lk.salyk.kg:30040 [11:56:27]ConnectInit lk.salyk.kg [11:56:27]written 0, free lines is 4095 [11:56:27]Connected sock=7 [11:56:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 AE CA 07 01 80 C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 6E AF 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 DE 0A 01 00 35 04 06 00 67 E2 33 BC E7 4A 26 55 EF 9B B4 F2 3D 3F [11:56:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 1B 0E 47 00 7E 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 DE 0A 01 00 F4 03 04 00 6A 56 5D 66 B6 04 01 00 00 00 90 5D 73 E9 13 DF 01 [11:56:28]CommunicateWithHost err = 0 [11:56:28]CheckOFDResponse [11:56:28]1017 (14) - 77093643461234 [11:56:28]1041 (16) - 0000000000965400 [11:56:28]1040 (4) - 68318 [11:56:28]1012 (4) - 03.06.2024 05:36 [11:56:28]1206 (1) - 0 [11:56:28]OFD Sender: Remove packet 68318 [11:56:28]ProducePacketName [11:56:28]name=ofd_packets/00068318 [11:56:28]NVStorageDeleteData [11:56:28]Write to MH i2c: 01 00 00 6D 2F 9C [11:56:28]Write i2c OK [11:56:28]MH_I2C_Read... [11:56:28]Read from MH i2c: 01 [11:56:28]MH_I2C_Read... [11:56:28]Read from MH i2c: 01 07 00 [11:56:28]MH_I2C_Read... [11:56:28]Read from MH i2c: 01 07 00 6D 2F 00 00 00 00 00 E7 0C 96 [11:56:28]RasterBufferAndPrint [11:56:28]line [11:56:28]line [11:56:28]line [11:56:28]line [11:56:28]line [11:56:28]written 0, free lines is 3310 [11:56:28]MH_Cut [11:56:28]Write to MH i2c: D1 01 00 74 2F 01 75 [11:56:28]Write i2c OK [11:56:28]MH_I2C_Read... [11:56:28]Read from MH i2c: D1 [11:56:28]MH_I2C_Read... [11:56:28]Read from MH i2c: D1 01 00 [11:56:28]MH_I2C_Read... [11:56:28]Read from MH i2c: D1 01 00 74 2F 00 74 [11:56:28]Write to MH i2c: 01 00 00 75 2F A4 [11:56:28]Write i2c OK [11:56:28]MH_I2C_Read... [11:56:28]OFD Sender: No OFD packet to send [11:56:28]*** Cut start [11:56:28]*** Partial cut [11:56:28]*** CUTSNS_PIN = 1 [11:56:29]*** CUTSNS_PIN = 0 [11:56:29]*** Brake cut motor [11:56:29]Read from MH i2c: 01 [11:56:29]MH_I2C_Read... [11:56:29]*** Stop cut motor [11:56:29]*** Cut end [11:56:29]Read from MH i2c: 01 07 00 [11:56:29]MH_I2C_Read... [11:56:29]Read from MH i2c: 01 07 00 75 2F 00 00 00 00 00 FF 0F B9 [11:56:29]process_action close_receipt done [11:56:29]requested_data is exist [11:56:29]produce_requested_data [11:56:29]requested_item fm.sn is exist - process it [11:56:29]wFMCommunicate request_size=4 [11:56:29]MH_SAM_APDU [11:56:29]CAPDU: 80 11 00 00 [11:56:29]Write to MH i2c: E2 08 00 76 2F 80 11 00 00 00 00 00 00 1F [11:56:29]Write i2c OK [11:56:29]MH_I2C_Read... [11:56:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:56:29]Read from MH i2c: E2 [11:56:29]MH_I2C_Read... [11:56:29]Read from MH i2c: E2 17 00 [11:56:29]MH_I2C_Read... [11:56:29]Read from MH i2c: E2 17 00 76 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 6A [11:56:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [11:56:29]wFMCommunicate OK [11:56:29]requested_item fd.num is exist - process it [11:56:29]SAM_PROTO_GetFieldsCounters [11:56:29]wFMCommunicate request_size=4 [11:56:29]MH_SAM_APDU [11:56:29]CAPDU: 80 13 00 00 [11:56:29]Write to MH i2c: E2 08 00 77 2F 80 13 00 00 00 00 00 00 22 [11:56:29]Write i2c OK [11:56:29]MH_I2C_Read... [11:56:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:56:29]Read from MH i2c: E2 [11:56:29]MH_I2C_Read... [11:56:29]Read from MH i2c: E2 62 00 [11:56:29]MH_I2C_Read... [11:56:29]Read from MH i2c: E2 62 00 77 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 DE 0A 01 00 0E 04 04 00 44 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 30 [11:56:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 DE 0A 01 00 0E 04 04 00 44 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 [11:56:29]wFMCommunicate OK [11:56:29]SAM_PROTO_GetFieldsCounters done [11:56:29]requested_item shift.num is exist - process it [11:56:29]requested_item shift.opened is exist - process it [11:56:29]req_shift_opened [11:56:29]FM_GetShiftState [11:56:29]SAM_PROTO_GetShiftState [11:56:29]wFMCommunicate request_size=4 [11:56:29]MH_SAM_APDU [11:56:29]CAPDU: 80 13 01 00 [11:56:29]Write to MH i2c: E2 08 00 78 2F 80 13 01 00 00 00 00 00 24 [11:56:29]Write i2c OK [11:56:29]MH_I2C_Read... [11:56:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:56:29]Read from MH i2c: E2 [11:56:29]MH_I2C_Read... [11:56:29]Read from MH i2c: E2 0E 00 [11:56:29]MH_I2C_Read... [11:56:29]Read from MH i2c: E2 0E 00 78 2F 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 FF [11:56:29]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [11:56:29]wFMCommunicate OK [11:56:29]SAM_PROTO_GetShiftState done [11:56:29]FM_GetShiftState done [11:56:29]req_shift_opened done [11:56:29]requested_item shift.open_date is exist - process it [11:56:29]req_shift_open_date [11:56:29]req_shift_open_date done [11:56:29]produce_requested_data done [11:56:29]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68318,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [11:56:29]process_action_free close_receipt [11:56:29]json_value_free [11:56:29]json_value_free done [11:56:29]process_json_proto returns [11:56:29]Send response to host [11:56:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68318,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [11:56:29]free response buf [11:56:29]execute_script done [11:56:29]execute_script returns [11:56:29]free content buf [11:56:29]Sock 6.Close socket [11:56:29]Sock 6.Thread stoped [11:56:33]OFD Sender: No OFD packet to send [11:56:37]*** FLAG_PRN_KEY set [11:56:37]*** FLAG_PRN_KEY reset [11:56:37]*** FLAG_PRN_KEY set [11:56:37]*** FLAG_PRN_KEY reset [11:56:38]*** FLAG_PRN_KEY set [11:56:38]OFD Sender: No OFD packet to send [11:56:38]*** FLAG_PRN_KEY reset [11:56:43]OFD Sender: No OFD packet to send [11:56:43]accept exits with 5 [11:56:43]New connection [11:56:43]New thread 3066686820 created [11:56:43]Thread 3066543460 joined [11:56:43]Waiting for new connection... [11:56:43] Sock 5.Parse request [11:56:43]Sock 5.Check first char [11:56:43]Sock 5.First char is OK [11:56:43]request: POST /json_proto HTTP/1.0 [11:56:43]Method: POST [11:56:43]URL: /json_proto [11:56:43]Method is POST - this is cgi request [11:56:43]url: /json_proto [11:56:43]query_string will be loaded in cgi processing [11:56:43]execute_cgi json_proto POST (null) [11:56:43]execute_cgi path=json_proto method=POST [11:56:43]POST find Content-Length [11:56:43]Host: 172.17.36.132:8080 [11:56:43]Content-Length: 215 [11:56:43]Content-Type: application/json [11:56:43] [11:56:43]POST finish read [11:56:43]Found Content-Length = 215 [11:56:43]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:56:43]execute_script... [11:56:43]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:56:43]POST & json_proto [11:56:43]process_json_proto [11:56:43]json parsed OK: [11:56:43]protocol is kg_v1.0 [11:56:43]action value=get_value [11:56:43]process_action get_value [11:56:43]cmd_get_value [11:56:43]process_action get_value done [11:56:43]requested_data is exist [11:56:43]produce_requested_data [11:56:43]requested_item kkm.sn is exist - process it [11:56:43]requested_item kkm.ver is exist - process it [11:56:43]requested_item fm.sn is exist - process it [11:56:43]wFMCommunicate request_size=4 [11:56:43]MH_SAM_APDU [11:56:43]CAPDU: 80 11 00 00 [11:56:43]Write to MH i2c: E2 08 00 79 2F 80 11 00 00 00 00 00 00 22 [11:56:43]Write i2c OK [11:56:43]MH_I2C_Read... [11:56:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:56:43]Read from MH i2c: E2 [11:56:43]MH_I2C_Read... [11:56:43]Read from MH i2c: E2 17 00 [11:56:43]MH_I2C_Read... [11:56:43]Read from MH i2c: E2 17 00 79 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 6D [11:56:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [11:56:43]wFMCommunicate OK [11:56:43]requested_item fd.num is exist - process it [11:56:43]SAM_PROTO_GetFieldsCounters [11:56:43]wFMCommunicate request_size=4 [11:56:43]MH_SAM_APDU [11:56:43]CAPDU: 80 13 00 00 [11:56:43]Write to MH i2c: E2 08 00 7A 2F 80 13 00 00 00 00 00 00 25 [11:56:43]Write i2c OK [11:56:43]MH_I2C_Read... [11:56:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:56:43]Read from MH i2c: E2 [11:56:43]MH_I2C_Read... [11:56:43]Read from MH i2c: E2 62 00 [11:56:43]MH_I2C_Read... [11:56:43]Read from MH i2c: E2 62 00 7A 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 DE 0A 01 00 0E 04 04 00 44 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 33 [11:56:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 DE 0A 01 00 0E 04 04 00 44 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 [11:56:43]wFMCommunicate OK [11:56:43]SAM_PROTO_GetFieldsCounters done [11:56:43]requested_item shift.num is exist - process it [11:56:43]requested_item shift.opened is exist - process it [11:56:43]req_shift_opened [11:56:43]FM_GetShiftState [11:56:43]SAM_PROTO_GetShiftState [11:56:43]wFMCommunicate request_size=4 [11:56:43]MH_SAM_APDU [11:56:43]CAPDU: 80 13 01 00 [11:56:43]Write to MH i2c: E2 08 00 7B 2F 80 13 01 00 00 00 00 00 27 [11:56:43]Write i2c OK [11:56:43]MH_I2C_Read... [11:56:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:56:43]Read from MH i2c: E2 [11:56:43]MH_I2C_Read... [11:56:43]Read from MH i2c: E2 0E 00 [11:56:43]MH_I2C_Read... [11:56:43]Read from MH i2c: E2 0E 00 7B 2F 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 02 [11:56:43]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [11:56:43]wFMCommunicate OK [11:56:43]SAM_PROTO_GetShiftState done [11:56:43]FM_GetShiftState done [11:56:43]req_shift_opened done [11:56:43]requested_item shift.open_date is exist - process it [11:56:43]req_shift_open_date [11:56:43]req_shift_open_date done [11:56:43]produce_requested_data done [11:56:43]produce_requested_data return {"kkm.sn":"0300000181","kkm.ver":"001","fm.sn":"0000000000965400","fd.num":68318,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [11:56:43]process_action_free get_value [11:56:43]json_value_free [11:56:43]json_value_free done [11:56:43]process_json_proto returns [11:56:43]Send response to host [11:56:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000181","kkm.ver":"001","fm.sn":"0000000000965400","fd.num":68318,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [11:56:43]free response buf [11:56:43]execute_script done [11:56:43]execute_script returns [11:56:43]free content buf [11:56:43]Sock 5.Close socket [11:56:43]Sock 5.Thread stoped [11:56:43]accept exits with 6 [11:56:43]New connection [11:56:43]New thread 3066543460 created [11:56:43]Thread 3066686820 joined [11:56:43]Waiting for new connection... [11:56:43] Sock 6.Parse request [11:56:43]Sock 6.Check first char [11:56:43]Sock 6.First char is OK [11:56:43]request: POST /json_proto HTTP/1.0 [11:56:43]Method: POST [11:56:43]URL: /json_proto [11:56:43]Method is POST - this is cgi request [11:56:43]url: /json_proto [11:56:43]query_string will be loaded in cgi processing [11:56:43]execute_cgi json_proto POST (null) [11:56:43]execute_cgi path=json_proto method=POST [11:56:43]POST find Content-Length [11:56:43]Host: 172.17.36.132:8080 [11:56:43]Content-Length: 331 [11:56:43]Content-Type: application/json [11:56:43] [11:56:43]POST finish read [11:56:43]Found Content-Length = 331 [11:56:43]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:56:43]execute_script... [11:56:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [11:56:44]POST & json_proto [11:56:44]process_json_proto [11:56:44]json parsed OK: [11:56:44]protocol is kg_v1.0 [11:56:44]action value=get_value [11:56:44]process_action get_value [11:56:44]cmd_get_value [11:56:44]process_action get_value done [11:56:44]requested_data is exist [11:56:44]produce_requested_data [11:56:44]requested_item fm.sale.total is exist - process it [11:56:44]SAM_PROTO_GetFMData [11:56:44]wFMCommunicate request_size=4 [11:56:44]MH_SAM_APDU [11:56:44]CAPDU: 80 13 03 00 [11:56:44]Write to MH i2c: E2 08 00 7C 2F 80 13 03 00 00 00 00 00 2A [11:56:44]Write i2c OK [11:56:44]MH_I2C_Read... [11:56:44]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [11:56:44]Read from MH i2c: E2 [11:56:44]MH_I2C_Read... [11:56:44]Read from MH i2c: E2 FD 00 [11:56:44]MH_I2C_Read... [11:56:44]Read from MH i2c: E2 FD 00 7C 2F 00 C5 04 85 04 C1 04 6E 04 04 00 56 08 01 00 69 04 A3 00 6F 04 04 00 48 03 01 00 B1 04 05 00 63 6D A4 38 01 70 04 05 00 74 47 2D 0C 01 72 04 04 00 EF 25 77 2C 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 4E 0C 36 21 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 BF 67 C4 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 0E 05 00 00 B1 04 04 00 7C 48 C3 0E 70 04 04 00 7C 48 C3 0E 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 34 65 91 01 EF 03 09 90 00 57 [11:56:44]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 56 08 01 00 69 04 A3 00 6F 04 04 00 48 03 01 00 B1 04 05 00 63 6D A4 38 01 70 04 05 00 74 47 2D 0C 01 72 04 04 00 EF 25 77 2C 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 4E 0C 36 21 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 BF 67 C4 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 0E 05 00 00 B1 04 04 00 7C 48 C3 0E 70 04 04 00 7C 48 C3 0E 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 34 65 91 01 EF 03 09 90 00 [11:56:44]wFMCommunicate OK [11:56:44]wFMCommunicate request_size=4 [11:56:44]MH_SAM_APDU [11:56:44]CAPDU: 80 17 00 00 [11:56:44]Write to MH i2c: E2 08 00 7D 2F 80 17 00 00 00 00 00 00 2C [11:56:44]Write i2c OK [11:56:44]MH_I2C_Read... [11:56:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:56:45]Read from MH i2c: E2 [11:56:45]MH_I2C_Read... [11:56:45]Read from MH i2c: E2 FD 00 [11:56:45]MH_I2C_Read... [11:56:45]Read from MH i2c: E2 FD 00 7D 2F 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A6 72 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 1B [11:56:45]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A6 72 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [11:56:45]wFMCommunicate OK [11:56:45]wFMCommunicate request_size=4 [11:56:45]MH_SAM_APDU [11:56:45]CAPDU: 80 17 00 00 [11:56:45]Write to MH i2c: E2 08 00 7E 2F 80 17 00 00 00 00 00 00 2D [11:56:45]Write i2c OK [11:56:45]MH_I2C_Read... [11:56:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:56:45]Read from MH i2c: E2 [11:56:45]MH_I2C_Read... [11:56:45]Read from MH i2c: E2 FD 00 [11:56:45]MH_I2C_Read... [11:56:45]Read from MH i2c: E2 FD 00 7E 2F 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 3F [11:56:45]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [11:56:45]wFMCommunicate OK [11:56:45]wFMCommunicate request_size=4 [11:56:45]MH_SAM_APDU [11:56:45]CAPDU: 80 17 00 00 [11:56:45]Write to MH i2c: E2 08 00 7F 2F 80 17 00 00 00 00 00 00 2E [11:56:45]Write i2c OK [11:56:45]MH_I2C_Read... [11:56:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:56:45]Read from MH i2c: E2 [11:56:45]MH_I2C_Read... [11:56:45]Read from MH i2c: E2 FD 00 [11:56:45]MH_I2C_Read... [11:56:45]Read from MH i2c: E2 FD 00 7F 2F 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 BA [11:56:45]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [11:56:45]wFMCommunicate OK [11:56:45]wFMCommunicate request_size=4 [11:56:45]MH_SAM_APDU [11:56:45]CAPDU: 80 17 00 00 [11:56:45]Write to MH i2c: E2 08 00 80 2F 80 17 00 00 00 00 00 00 2F [11:56:45]Write i2c OK [11:56:45]MH_I2C_Read... [11:56:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [11:56:45]Read from MH i2c: E2 [11:56:45]MH_I2C_Read... [11:56:45]Read from MH i2c: E2 E2 00 [11:56:45]MH_I2C_Read... [11:56:45]Read from MH i2c: E2 E2 00 80 2F 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0D [11:56:45]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [11:56:45]wFMCommunicate OK [11:56:45]SAM_PROTO_GetFMData done [11:56:45]requested_item fm.sale_refund.total is exist - process it [11:56:45]requested_item fm.buy.total is exist - process it [11:56:45]requested_item shift.sale.total is exist - process it [11:56:45]SAM_PROTO_GetShiftData [11:56:45]wFMCommunicate request_size=4 [11:56:45]MH_SAM_APDU [11:56:45]CAPDU: 80 13 02 00 [11:56:45]Write to MH i2c: E2 08 00 81 2F 80 13 02 00 00 00 00 00 2E [11:56:45]Write i2c OK [11:56:45]MH_I2C_Read... [11:56:46]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [11:56:46]Read from MH i2c: E2 [11:56:46]MH_I2C_Read... [11:56:46]Read from MH i2c: E2 FD 00 [11:56:46]MH_I2C_Read... [11:56:46]Read from MH i2c: E2 FD 00 81 2F 00 B8 04 AA 04 B4 04 6E 04 04 00 40 00 00 00 69 04 9B 00 6F 04 04 00 3D 00 00 00 B1 04 03 00 B1 40 52 70 04 03 00 30 A8 36 72 04 03 00 81 98 1B 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 8E BC 08 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 5D BA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 8C E0 06 70 04 03 00 8C E0 06 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 F6 BA EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 22 [11:56:46]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 40 00 00 00 69 04 9B 00 6F 04 04 00 3D 00 00 00 B1 04 03 00 B1 40 52 70 04 03 00 30 A8 36 72 04 03 00 81 98 1B 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 8E BC 08 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 5D BA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 97 00 6F 04 04 00 03 00 00 00 B1 04 03 00 8C E0 06 70 04 03 00 8C E0 06 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 F6 BA EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [11:56:46]wFMCommunicate OK [11:56:46]wFMCommunicate request_size=4 [11:56:46]MH_SAM_APDU [11:56:46]CAPDU: 80 17 00 00 [11:56:46]Write to MH i2c: E2 08 00 82 2F 80 17 00 00 00 00 00 00 31 [11:56:46]Write i2c OK [11:56:46]MH_I2C_Read... [11:56:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:56:46]Read from MH i2c: E2 [11:56:46]MH_I2C_Read... [11:56:46]Read from MH i2c: E2 FD 00 [11:56:46]MH_I2C_Read... [11:56:46]Read from MH i2c: E2 FD 00 82 2F 00 0B 00 F6 03 01 00 01 F7 03 02 00 94 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 05 [11:56:46]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 94 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 90 00 [11:56:46]wFMCommunicate OK [11:56:46]wFMCommunicate request_size=4 [11:56:46]MH_SAM_APDU [11:56:46]CAPDU: 80 17 00 00 [11:56:46]Write to MH i2c: E2 08 00 83 2F 80 17 00 00 00 00 00 00 32 [11:56:46]Write i2c OK [11:56:46]MH_I2C_Read... [11:56:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:56:46]Read from MH i2c: E2 [11:56:46]MH_I2C_Read... [11:56:46]Read from MH i2c: E2 FD 00 [11:56:46]MH_I2C_Read... [11:56:46]Read from MH i2c: E2 FD 00 83 2F 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 D4 [11:56:46]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 90 00 [11:56:46]wFMCommunicate OK [11:56:46]wFMCommunicate request_size=4 [11:56:46]MH_SAM_APDU [11:56:46]CAPDU: 80 17 00 00 [11:56:46]Write to MH i2c: E2 08 00 84 2F 80 17 00 00 00 00 00 00 33 [11:56:46]Write i2c OK [11:56:46]MH_I2C_Read... [11:56:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:56:47]Read from MH i2c: E2 [11:56:47]MH_I2C_Read... [11:56:47]Read from MH i2c: E2 FD 00 [11:56:47]MH_I2C_Read... [11:56:47]Read from MH i2c: E2 FD 00 84 2F 00 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 BC [11:56:47]RAPDU: 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 90 00 [11:56:47]wFMCommunicate OK [11:56:47]wFMCommunicate request_size=4 [11:56:47]MH_SAM_APDU [11:56:47]CAPDU: 80 17 00 00 [11:56:47]Write to MH i2c: E2 08 00 85 2F 80 17 00 00 00 00 00 00 34 [11:56:47]Write i2c OK [11:56:47]MH_I2C_Read... [11:56:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [11:56:47]Read from MH i2c: E2 [11:56:47]MH_I2C_Read... [11:56:47]Read from MH i2c: E2 D5 00 [11:56:47]MH_I2C_Read... [11:56:47]Read from MH i2c: E2 D5 00 85 2F 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 15 [11:56:47]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [11:56:47]wFMCommunicate OK [11:56:47]SAM_PROTO_GetShiftData done [11:56:47]requested_item shift.sale.total_cash is exist - process it [11:56:47]requested_item shift.sale_refund.total is exist - process it [11:56:47]requested_item shift.sale_refund.total_cash is exist - process it [11:56:47]requested_item shift.buy.total is exist - process it [11:56:47]requested_item shift.buy.total_cash is exist - process it [11:56:47]produce_requested_data done [11:56:47]produce_requested_data return {"fm.sale.total":52452672.99,"fm.sale_refund.total":2476791.00,"fm.buy.total":0.00,"shift.sale.total":53905.13,"shift.sale.total_cash":35820.00,"shift.sale_refund.total":4507.00,"shift.sale_refund.total_cash":4507.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [11:56:47]process_action_free get_value [11:56:47]json_value_free [11:56:47]json_value_free done [11:56:47]process_json_proto returns [11:56:47]Send response to host [11:56:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":52452672.99,"fm.sale_refund.total":2476791.00,"fm.buy.total":0.00,"shift.sale.total":53905.13,"shift.sale.total_cash":35820.00,"shift.sale_refund.total":4507.00,"shift.sale_refund.total_cash":4507.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [11:56:47]free response buf [11:56:47]execute_script done [11:56:47]execute_script returns [11:56:47]free content buf [11:56:47]Sock 6.Close socket [11:56:47]Sock 6.Thread stoped [11:56:48]OFD Sender: No OFD packet to send [11:56:49]*** FLAG_PRN_KEY set [11:56:50]*** FLAG_PRN_KEY reset [11:56:51]*** FLAG_PRN_KEY set [11:56:51]*** FLAG_PRN_KEY reset [11:56:51]*** FLAG_PRN_KEY set [11:56:51]*** FLAG_PRN_KEY reset [11:56:51]*** FLAG_PRN_KEY set [11:56:52]*** FLAG_PRN_KEY reset [11:56:52]*** FLAG_PRN_KEY set [11:56:52]*** FLAG_PRN_KEY reset [11:56:52]*** FLAG_PRN_KEY set [11:56:52]*** FLAG_PRN_KEY reset [11:56:52]*** FLAG_PRN_KEY set [11:56:52]*** FLAG_PRN_KEY reset [11:56:52]*** FLAG_PRN_KEY set [11:56:52]*** FLAG_PRN_KEY reset [11:56:53]*** FLAG_PRN_KEY set [11:56:53]*** FLAG_PRN_KEY reset [11:56:53]*** FLAG_PRN_KEY set [11:56:53]*** FLAG_PRN_KEY reset [11:56:53]*** FLAG_PRN_KEY set [11:56:53]*** FLAG_PRN_KEY reset [11:56:53]*** FLAG_PRN_KEY set [11:56:53]*** FLAG_PRN_KEY reset [11:56:53]OFD Sender: No OFD packet to send [11:56:53]*** FLAG_PRN_KEY set [11:56:53]*** FLAG_PRN_KEY reset [11:56:53]*** FLAG_PRN_KEY set [11:56:53]*** FLAG_PRN_KEY reset [11:56:53]*** FLAG_PRN_KEY set [11:56:54]*** FLAG_PRN_KEY reset [11:56:54]*** FLAG_PRN_KEY set [11:56:54]*** FLAG_PRN_KEY reset [11:56:54]*** FLAG_PRN_KEY set [11:56:54]*** FLAG_PRN_KEY reset [11:56:54]*** FLAG_PRN_KEY set [11:56:54]*** FLAG_PRN_KEY reset [11:56:55]*** FLAG_PRN_KEY set [11:56:55]*** FLAG_PRN_KEY reset [11:56:55]*** FLAG_PRN_KEY set [11:56:55]*** FLAG_PRN_KEY reset [11:56:56]*** FLAG_PRN_KEY set [11:56:56]*** FLAG_PRN_KEY reset [11:56:56]*** FLAG_PRN_KEY set [11:56:56]*** FLAG_PRN_KEY reset [11:56:57]*** FLAG_PRN_KEY set [11:56:57]*** FLAG_PRN_KEY reset [11:56:57]*** FLAG_PRN_KEY set [11:56:57]*** FLAG_PRN_KEY reset [11:56:57]*** FLAG_PRN_KEY set [11:56:57]*** FLAG_PRN_KEY reset [11:56:57]*** FLAG_PRN_KEY set [11:56:57]*** FLAG_PRN_KEY reset [11:56:58]*** FLAG_PRN_KEY set [11:56:58]*** FLAG_PRN_KEY reset [11:56:58]OFD Sender: No OFD packet to send [11:56:58]*** FLAG_PRN_KEY set [11:56:58]*** FLAG_PRN_KEY reset [11:56:59]*** FLAG_PRN_KEY set [11:56:59]*** FLAG_PRN_KEY reset [11:56:59]*** FLAG_PRN_KEY set [11:56:59]*** FLAG_PRN_KEY reset [11:57:00]*** FLAG_PRN_KEY set [11:57:00]*** FLAG_PRN_KEY reset [11:57:00]*** FLAG_PRN_KEY set [11:57:00]*** FLAG_PRN_KEY reset [11:57:01]*** FLAG_PRN_KEY set [11:57:01]*** FLAG_PRN_KEY reset [11:57:01]*** FLAG_PRN_KEY set [11:57:01]*** FLAG_PRN_KEY reset [11:57:02]*** FLAG_PRN_KEY set [11:57:02]*** FLAG_PRN_KEY reset [11:57:02]*** FLAG_PRN_KEY set [11:57:02]*** FLAG_PRN_KEY reset [11:57:02]*** FLAG_PRN_KEY set [11:57:03]*** FLAG_PRN_KEY reset [11:57:03]*** FLAG_PRN_KEY set [11:57:03]OFD Sender: No OFD packet to send [11:57:03]*** FLAG_PRN_KEY reset [11:57:03]*** FLAG_PRN_KEY set [11:57:04]*** FLAG_PRN_KEY reset [11:57:04]*** FLAG_PRN_KEY set [11:57:04]*** FLAG_PRN_KEY reset [11:57:05]*** FLAG_PRN_KEY set [11:57:05]*** FLAG_PRN_KEY reset [11:57:05]*** FLAG_PRN_KEY set [11:57:05]*** FLAG_PRN_KEY reset [11:57:08]OFD Sender: No OFD packet to send [11:57:13]OFD Sender: No OFD packet to send [11:57:18]OFD Sender: No OFD packet to send [11:57:23]OFD Sender: No OFD packet to send [11:57:28]OFD Sender: No OFD packet to send [11:57:33]OFD Sender: No OFD packet to send [11:57:38]OFD Sender: No OFD packet to send [11:57:43]OFD Sender: No OFD packet to send [11:57:48]OFD Sender: No OFD packet to send [11:57:53]OFD Sender: No OFD packet to send [11:57:58]OFD Sender: No OFD packet to send [11:58:03]OFD Sender: No OFD packet to send [11:58:08]OFD Sender: No OFD packet to send [11:58:13]OFD Sender: No OFD packet to send [11:58:18]OFD Sender: No OFD packet to send [11:58:23]OFD Sender: No OFD packet to send [11:58:28]OFD Sender: No OFD packet to send [11:58:33]OFD Sender: No OFD packet to send [11:58:38]OFD Sender: No OFD packet to send [11:58:43]OFD Sender: No OFD packet to send [11:58:48]OFD Sender: No OFD packet to send [11:58:53]OFD Sender: No OFD packet to send [11:58:58]OFD Sender: No OFD packet to send [11:59:03]OFD Sender: No OFD packet to send [11:59:08]OFD Sender: No OFD packet to send [11:59:13]OFD Sender: No OFD packet to send [11:59:18]OFD Sender: No OFD packet to send [11:59:23]OFD Sender: No OFD packet to send [11:59:28]OFD Sender: No OFD packet to send [11:59:33]OFD Sender: No OFD packet to send [11:59:38]OFD Sender: No OFD packet to send [11:59:43]OFD Sender: No OFD packet to send [11:59:48]OFD Sender: No OFD packet to send [11:59:53]OFD Sender: No OFD packet to send [11:59:58]OFD Sender: No OFD packet to send [12:00:03]OFD Sender: No OFD packet to send [12:00:08]OFD Sender: No OFD packet to send [12:00:13]OFD Sender: No OFD packet to send [12:00:16]accept exits with 5 [12:00:16]New connection [12:00:16]New thread 3066686820 created [12:00:16]Thread 3066543460 joined [12:00:16]Waiting for new connection... [12:00:16] Sock 5.Parse request [12:00:16]Sock 5.Check first char [12:00:16]Sock 5.First char is OK [12:00:16]request: POST /json_proto HTTP/1.0 [12:00:16]Method: POST [12:00:16]URL: /json_proto [12:00:16]Method is POST - this is cgi request [12:00:16]url: /json_proto [12:00:16]query_string will be loaded in cgi processing [12:00:16]execute_cgi json_proto POST (null) [12:00:16]execute_cgi path=json_proto method=POST [12:00:16]POST find Content-Length [12:00:16]Host: 172.17.36.132:8080 [12:00:16]Content-Length: 677 [12:00:16]Content-Type: application/json [12:00:16] [12:00:16]POST finish read [12:00:16]Found Content-Length = 677 [12:00:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706401", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:00:16]execute_script... [12:00: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)706401", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:00:16]POST & json_proto [12:00:16]process_json_proto [12:00:16]json parsed OK: [12:00:16]protocol is kg_v1.0 [12:00:16]action value=close_receipt [12:00:16]process_action close_receipt [12:00:16]cmd_close_receipt [12:00:16]MH_GetDate [12:00:16]Write to MH i2c: F0 00 00 86 2F A4 [12:00:16]Write i2c OK [12:00:16]MH_I2C_Read... [12:00:16]Read from MH i2c: F0 [12:00:16]MH_I2C_Read... [12:00:16]Read from MH i2c: F0 09 00 [12:00:16]MH_I2C_Read... [12:00:16]Read from MH i2c: F0 09 00 86 2F 00 55 B0 5D 66 B2 22 B0 64 5D [12:00:16]GetLastDocTimeStamp 1717415790 [12:00:16]current date 1717416021 [12:00:16]FM_GetShiftState [12:00:16]SAM_PROTO_GetShiftState [12:00:16]wFMCommunicate request_size=4 [12:00:16]MH_SAM_APDU [12:00:16]CAPDU: 80 13 01 00 [12:00:16]Write to MH i2c: E2 08 00 87 2F 80 13 01 00 00 00 00 00 33 [12:00:16]Write i2c OK [12:00:16]MH_I2C_Read... [12:00:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:16]Read from MH i2c: E2 [12:00:16]MH_I2C_Read... [12:00:16]Read from MH i2c: E2 0E 00 [12:00:16]MH_I2C_Read... [12:00:16]Read from MH i2c: E2 0E 00 87 2F 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 0E [12:00:16]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [12:00:16]wFMCommunicate OK [12:00:16]SAM_PROTO_GetShiftState done [12:00:16]FM_GetShiftState done [12:00:16]opened in 1717378033 [12:00:16]opened+sec_in_day 1717464433 [12:00:16]quantity*price = 30038 [12:00:16]sum+1 = 30039 [12:00:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 65 03.06.2024 12:00 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68319 ФПД: 277251283273900 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T120021&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68319&fm=277251283273900&tin=02508201610067®Number=0000000000098096&sum=30000 [12:00:17]StoreToDocumentArchive [12:00:17]shift 324 fd 68319 [12:00:17]save to /storage/0324/doc_00068319 [12:00:17]save last doc name /storage/0324/doc_00068319 to /storage/kkm_last_doc_name [12:00:17]save OK [12:00:17]Clear old archive folders... [12:00:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:00:17]tlvbuf is 005BC360 [12:00:17]SAM_PROTO_ClearQueue [12:00:17]wFMCommunicate request_size=4 [12:00:17]MH_SAM_APDU [12:00:17]CAPDU: 80 09 00 00 [12:00:17]Write to MH i2c: E2 08 00 94 2F 80 09 00 00 00 00 00 00 35 [12:00:17]Write i2c OK [12:00:17]MH_I2C_Read... [12:00:17]Read from MH i2c: E2 [12:00:17]MH_I2C_Read... [12:00:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:00:17]Read from MH i2c: E2 03 00 [12:00:17]MH_I2C_Read... [12:00:17]Read from MH i2c: E2 03 00 94 2F 00 90 00 37 [12:00:17]RAPDU: 90 00 [12:00:17]wFMCommunicate OK [12:00:17]SAM_PROTO_ClearQueue done [12:00:17]KKMCreateOFDPacket [12:00:17]OFDProtocolAddRootSTLVToBuf [12:00:17]FM_MakeSignedData [12:00:17]FM_MakeSignedData [12:00:17]SAM_PROTO_SignData [12:00:17]wFMCommunicate request_size=4 [12:00:17]MH_SAM_APDU [12:00:17]CAPDU: 80 0D 01 02 [12:00:17]Write to MH i2c: E2 08 00 95 2F 80 0D 01 02 00 00 00 00 3D [12:00:17]Write i2c OK [12:00:17]MH_I2C_Read... [12:00:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:00:17]Read from MH i2c: E2 [12:00:17]MH_I2C_Read... [12:00:17]Read from MH i2c: E2 03 00 [12:00:17]MH_I2C_Read... [12:00:17]Read from MH i2c: E2 03 00 95 2F 00 90 00 38 [12:00:17]RAPDU: 90 00 [12:00:17]wFMCommunicate OK [12:00:17]wFMCommunicate request_size=255 [12:00:17]MH_SAM_APDU [12:00:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 55 B0 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 DF 0A 01 00 35 04 06 00 FC [12:00:17]Write to MH i2c: E2 02 01 96 2F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 55 B0 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 DF 0A 01 00 35 04 06 00 FC 00 00 F2 [12:00:17]Write i2c OK [12:00:17]MH_I2C_Read... [12:00:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:17]Read from MH i2c: E2 [12:00:17]MH_I2C_Read... [12:00:17]Read from MH i2c: E2 03 00 [12:00:17]MH_I2C_Read... [12:00:17]Read from MH i2c: E2 03 00 96 2F 00 90 00 39 [12:00:17]RAPDU: 90 00 [12:00:17]wFMCommunicate OK [12:00:17]wFMCommunicate request_size=10 [12:00:17]MH_SAM_APDU [12:00:17]CAPDU: 80 0D 02 02 05 28 98 40 C8 AC [12:00:17]Write to MH i2c: E2 0D 00 97 2F 80 0D 02 02 05 00 28 98 40 C8 AC 00 00 BE [12:00:17]Write i2c OK [12:00:17]MH_I2C_Read... [12:00:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:17]Read from MH i2c: E2 [12:00:17]MH_I2C_Read... [12:00:17]Read from MH i2c: E2 03 00 [12:00:17]MH_I2C_Read... [12:00:17]Read from MH i2c: E2 03 00 97 2F 00 90 00 3A [12:00:17]RAPDU: 90 00 [12:00:17]wFMCommunicate OK [12:00:17]wFMCommunicate request_size=4 [12:00:17]MH_SAM_APDU [12:00:17]CAPDU: 80 0D 03 02 [12:00:17]Write to MH i2c: E2 08 00 98 2F 80 0D 03 02 00 00 00 00 42 [12:00:17]Write i2c OK [12:00:17]MH_I2C_Read... [12:00:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:00:17]Read from MH i2c: E2 [12:00:17]MH_I2C_Read... [12:00:17]Read from MH i2c: E2 0B 00 [12:00:17]MH_I2C_Read... [12:00:17]Read from MH i2c: E2 0B 00 98 2F 00 A9 69 AC 1C 22 F5 DE 6C 90 00 7E [12:00:17]RAPDU: A9 69 AC 1C 22 F5 DE 6C 90 00 [12:00:17]wFMCommunicate OK [12:00:17]SAM_PROTO_SignData done [12:00:17]FM_MakeSignedData done [12:00:17]CreateOFDProtocolMessage [12:00:17]wFMCommunicate request_size=4 [12:00:17]MH_SAM_APDU [12:00:17]CAPDU: 80 11 00 00 [12:00:17]Write to MH i2c: E2 08 00 99 2F 80 11 00 00 00 00 00 00 42 [12:00:17]Write i2c OK [12:00:17]MH_I2C_Read... [12:00:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:17]Read from MH i2c: E2 [12:00:17]MH_I2C_Read... [12:00:17]Read from MH i2c: E2 17 00 [12:00:17]MH_I2C_Read... [12:00:17]Read from MH i2c: E2 17 00 99 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 8D [12:00:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:00:17]wFMCommunicate OK [12:00:17]CreateOFDProtocolMessage done [12:00:17]OFDSenderStorePacket 68319 [12:00:17]StoreOFDPacket docnum=68319 [12:00:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 CE 9C 07 01 2F 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 55 B0 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 DF 0A 01 00 35 04 06 00 FC 28 98 40 C8 AC A9 69 AC 1C 22 F5 DE 6C [12:00:17]CheckFolder [12:00:17]dirname=/storage/ofd_packets [12:00:17]CheckFolder done [12:00:17]ProducePacketName [12:00:17]name=ofd_packets/00068319 [12:00:17]NVStorageSaveData ofd_packets/00068319 [12:00:17]File name is /storage/ofd_packets/00068319 [12:00:17]Write 301 bytes [12:00:17]NVStorageSaveData done [12:00:17]OFDSenderStorePacket done [12:00:17]KKMCreateOFDPacket done [12:00:17]NVStorageSaveData kkm_last_timestamp [12:00:17]File name is /storage/kkm_last_timestamp [12:00:17]Write 4 bytes [12:00:17]NVStorageSaveData done [12:00:17]ExternCall_PrintAddStr [12:00:17]wPrintStart [12:00:17]Write to MH i2c: 01 00 00 9A 2F C9 [12:00:17]Write i2c OK [12:00:17]MH_I2C_Read... [12:00:17]Read from MH i2c: 01 [12:00:17]MH_I2C_Read... [12:00:17]Read from MH i2c: 01 07 00 [12:00:17]MH_I2C_Read... [12:00:17]Read from MH i2c: 01 07 00 9A 2F 00 00 00 00 00 FF 0F DE [12:00:17]RasterBufferAndPrint [12:00:17]line Счет N : (1)706401 [12:00:17]line ИНН: 02508201610067 [12:00:17]line Контрольно-Кассовый Чек [12:00:17]line ПРОДАЖА [12:00:17]line ТРК (МРК, ГНК) : 23 [12:00:17]line Товар: 2710124130 [12:00:17]line Аи-92-К-4 [12:00:17]line 4.490 * 66.90 [12:00:17]line = 300.38 [12:00:17]line НДС 12% НСП 1% [12:00:17]line > о реализуемом товаре [12:00:17]line ОКРУГЛЕНИЕ: -0.38 [12:00:17]line ИТОГО: 300.00 [12:00:17]line Внесено: 300.00 [12:00:17]line СДАЧА: 0.00 [12:00:17]line НСП 1% : 2.66 [12:00:17]line НДС 12% : 31.90 [12:00:17]line Наличными: 300.00 [12:00:17]line Безнал.: 0.00 [12:00:17]line Место: АЗС № 62 "Партнер Нефть" [12:00:17]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [12:00:17]line СНО: Общий режим [12:00:17]line Чек 65 03.06.2024 12:00 [12:00:17]line Смена: 324 ФФД: 1.0 [12:00:17]line ЗНМ: 0300000181 [12:00:17]line РНМ: 0000000000098096 [12:00:17]line Версия ККМ: 001 [12:00:17]line ФМ: 0000000000965400 [12:00:17]line ФД: 68319 [12:00:17]line ФПД: 277251283273900 [12:00:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T120021&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68319&fm=277251283273900&tin=02508201610067®Number=0000000000098096&sum=30000 [12:00:18]OFD Sender: Processing packet 68319 [packets to send 26, broken 25] [12:00:18]ProducePacketName [12:00:18]name=ofd_packets/00068319 [12:00:18]OFD Sender: To server: pG, [12:00:18]CommunicateWithHost lk.salyk.kg:30040 [12:00:18]ConnectInit lk.salyk.kg [12:00:18]written 0, free lines is 4095 [12:00:18]Connected sock=7 [12:00:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 CE 9C 07 01 2F 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 55 B0 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 DF 0A 01 00 35 04 06 00 FC 28 98 40 C8 AC A9 69 AC 1C 22 F5 DE 6C [12:00:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 2A 72 47 00 A4 DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 DF 0A 01 00 F4 03 04 00 51 57 5D 66 B6 04 01 00 00 BF 0D 6B 5B 4B 71 69 65 [12:00:18]CommunicateWithHost err = 0 [12:00:18]CheckOFDResponse [12:00:18]1017 (14) - 77093643461234 [12:00:18]1041 (16) - 0000000000965400 [12:00:18]1040 (4) - 68319 [12:00:18]1012 (4) - 03.06.2024 05:40 [12:00:18]1206 (1) - 0 [12:00:18]OFD Sender: Remove packet 68319 [12:00:18]ProducePacketName [12:00:18]name=ofd_packets/00068319 [12:00:18]NVStorageDeleteData [12:00:18]Write to MH i2c: 01 00 00 C5 2F F4 [12:00:18]Write i2c OK [12:00:18]MH_I2C_Read... [12:00:18]Read from MH i2c: 01 [12:00:18]MH_I2C_Read... [12:00:18]Read from MH i2c: 01 07 00 [12:00:18]MH_I2C_Read... [12:00:18]Read from MH i2c: 01 07 00 C5 2F 00 00 00 00 00 EE 0C F5 [12:00:18]RasterBufferAndPrint [12:00:18]line [12:00:18]line [12:00:18]line [12:00:18]line [12:00:18]line [12:00:18]written 0, free lines is 3316 [12:00:18]MH_Cut [12:00:18]Write to MH i2c: D1 01 00 CC 2F 01 CD [12:00:18]Write i2c OK [12:00:18]MH_I2C_Read... [12:00:18]Read from MH i2c: D1 [12:00:18]MH_I2C_Read... [12:00:18]Read from MH i2c: D1 01 00 [12:00:18]MH_I2C_Read... [12:00:18]Read from MH i2c: D1 01 00 CC 2F 00 CC [12:00:18]Write to MH i2c: 01 00 00 CD 2F FC [12:00:18]Write i2c OK [12:00:18]MH_I2C_Read... [12:00:18]OFD Sender: No OFD packet to send [12:00:19]*** Cut start [12:00:19]*** Partial cut [12:00:19]*** CUTSNS_PIN = 1 [12:00:19]*** CUTSNS_PIN = 0 [12:00:19]*** Brake cut motor [12:00:19]Read from MH i2c: 01 [12:00:19]MH_I2C_Read... [12:00:19]*** Stop cut motor [12:00:19]*** Cut end [12:00:19]Read from MH i2c: 01 07 00 [12:00:19]MH_I2C_Read... [12:00:19]Read from MH i2c: 01 07 00 CD 2F 00 00 00 00 00 FF 0F 11 [12:00:19]process_action close_receipt done [12:00:19]requested_data is exist [12:00:19]produce_requested_data [12:00:19]requested_item fm.sn is exist - process it [12:00:19]wFMCommunicate request_size=4 [12:00:19]MH_SAM_APDU [12:00:19]CAPDU: 80 11 00 00 [12:00:19]Write to MH i2c: E2 08 00 CE 2F 80 11 00 00 00 00 00 00 77 [12:00:19]Write i2c OK [12:00:19]MH_I2C_Read... [12:00:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:19]Read from MH i2c: E2 [12:00:19]MH_I2C_Read... [12:00:19]Read from MH i2c: E2 17 00 [12:00:19]MH_I2C_Read... [12:00:19]Read from MH i2c: E2 17 00 CE 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 C2 [12:00:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:00:19]wFMCommunicate OK [12:00:19]requested_item fd.num is exist - process it [12:00:20]SAM_PROTO_GetFieldsCounters [12:00:20]wFMCommunicate request_size=4 [12:00:20]MH_SAM_APDU [12:00:20]CAPDU: 80 13 00 00 [12:00:20]Write to MH i2c: E2 08 00 CF 2F 80 13 00 00 00 00 00 00 7A [12:00:20]Write i2c OK [12:00:20]MH_I2C_Read... [12:00:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:00:20]Read from MH i2c: E2 [12:00:20]MH_I2C_Read... [12:00:20]Read from MH i2c: E2 62 00 [12:00:20]MH_I2C_Read... [12:00:20]Read from MH i2c: E2 62 00 CF 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 DF 0A 01 00 0E 04 04 00 44 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 8C [12:00:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 DF 0A 01 00 0E 04 04 00 44 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 [12:00:20]wFMCommunicate OK [12:00:20]SAM_PROTO_GetFieldsCounters done [12:00:20]requested_item shift.num is exist - process it [12:00:20]requested_item shift.opened is exist - process it [12:00:20]req_shift_opened [12:00:20]FM_GetShiftState [12:00:20]SAM_PROTO_GetShiftState [12:00:20]wFMCommunicate request_size=4 [12:00:20]MH_SAM_APDU [12:00:20]CAPDU: 80 13 01 00 [12:00:20]Write to MH i2c: E2 08 00 D0 2F 80 13 01 00 00 00 00 00 7C [12:00:20]Write i2c OK [12:00:20]MH_I2C_Read... [12:00:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:20]Read from MH i2c: E2 [12:00:20]MH_I2C_Read... [12:00:20]Read from MH i2c: E2 0E 00 [12:00:20]MH_I2C_Read... [12:00:20]Read from MH i2c: E2 0E 00 D0 2F 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 57 [12:00:20]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [12:00:20]wFMCommunicate OK [12:00:20]SAM_PROTO_GetShiftState done [12:00:20]FM_GetShiftState done [12:00:20]req_shift_opened done [12:00:20]requested_item shift.open_date is exist - process it [12:00:20]req_shift_open_date [12:00:20]req_shift_open_date done [12:00:20]produce_requested_data done [12:00:20]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68319,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [12:00:20]process_action_free close_receipt [12:00:20]json_value_free [12:00:20]json_value_free done [12:00:20]process_json_proto returns [12:00:20]Send response to host [12:00:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68319,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [12:00:20]free response buf [12:00:20]execute_script done [12:00:20]execute_script returns [12:00:20]free content buf [12:00:20]Sock 5.Close socket [12:00:20]Sock 5.Thread stoped [12:00:23]OFD Sender: No OFD packet to send [12:00:28]OFD Sender: No OFD packet to send [12:00:33]accept exits with 6 [12:00:33]New connection [12:00:33]New thread 3066543460 created [12:00:33]Thread 3066686820 joined [12:00:33]Waiting for new connection... [12:00:33] Sock 6.Parse request [12:00:33]Sock 6.Check first char [12:00:33]Sock 6.First char is OK [12:00:33]request: POST /json_proto HTTP/1.0 [12:00:33]Method: POST [12:00:33]URL: /json_proto [12:00:33]Method is POST - this is cgi request [12:00:33]url: /json_proto [12:00:33]query_string will be loaded in cgi processing [12:00:33]execute_cgi json_proto POST (null) [12:00:33]execute_cgi path=json_proto method=POST [12:00:33]POST find Content-Length [12:00:33]Host: 172.17.36.132:8080 [12:00:33]Content-Length: 1145 [12:00:33]Content-Type: application/json [12:00:33] [12:00:33]POST finish read [12:00:33]Found Content-Length = 1145 [12:00:33]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706398\u000A03.06.2024 11:37\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 63\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 30.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 2007.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30068086\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:00:33]execute_script... [12:00:33]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706398\u000A03.06.2024 11:37\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 63\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 30.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 2007.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30068086\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:00:33]POST & json_proto [12:00:33]process_json_proto [12:00:33]json parsed OK: [12:00:33]protocol is kg_v1.0 [12:00:33]action value=print_text [12:00:33]process_action print_text [12:00:33]cmd_print_text [12:00:33]ExternCall_PrintAddStr [12:00:33]wPrintStart [12:00:33]Write to MH i2c: 01 00 00 D1 2F 00 [12:00:33]Write i2c OK [12:00:33]MH_I2C_Read... [12:00:33]Read from MH i2c: 01 [12:00:33]MH_I2C_Read... [12:00:33]Read from MH i2c: 01 07 00 [12:00:33]MH_I2C_Read... [12:00:33]Read from MH i2c: 01 07 00 D1 2F 00 00 00 00 00 FF 0F 15 [12:00:33]RasterBufferAndPrint [12:00:33]line *****ТОВАРНЫЙ ЧЕК***** [12:00:33]line АЗС 62 [12:00:33]line Партнер нефть [12:00:33]line 02508201610067 [12:00:33]line Кассир : Балаев А. [12:00:33]line Счет N : (1)706398 [12:00:33]line 03.06.2024 11:37 [12:00:33]line ПРОДАЖА [12:00:33]line ТРК (МРК, ГНК): 63 [12:00:33]line Вид ГСМ : 2710124130 [12:00:33]line Аи-92-К-4 [12:00:33]line 30.000 x 66.90 [12:00:33]line ИТОГ: 2007.00 [12:00:33]line Тип оплаты: Талоны: ТК ГПНА Online [12:00:33]line 30068086 [12:00:33]line ______________________ [12:00:33]line (подпись) [12:00:33]written 0, free lines is 4095 [12:00:33]OFD Sender: No OFD packet to send [12:00:34]Write to MH i2c: 01 00 00 E5 2F 14 [12:00:34]Write i2c OK [12:00:34]MH_I2C_Read... [12:00:34]Read from MH i2c: 01 [12:00:34]MH_I2C_Read... [12:00:34]Read from MH i2c: 01 07 00 [12:00:34]MH_I2C_Read... [12:00:34]Read from MH i2c: 01 07 00 E5 2F 00 00 00 00 00 12 0E 3B [12:00:34]RasterBufferAndPrint [12:00:34]line [12:00:34]line [12:00:34]line [12:00:34]line [12:00:34]line [12:00:34]written 0, free lines is 3604 [12:00:34]MH_Cut [12:00:34]Write to MH i2c: D1 01 00 EC 2F 01 ED [12:00:34]Write i2c OK [12:00:34]MH_I2C_Read... [12:00:34]Read from MH i2c: D1 [12:00:34]MH_I2C_Read... [12:00:34]Read from MH i2c: D1 01 00 [12:00:34]MH_I2C_Read... [12:00:34]Read from MH i2c: D1 01 00 EC 2F 00 EC [12:00:34]Write to MH i2c: 01 00 00 ED 2F 1C [12:00:34]Write i2c OK [12:00:34]MH_I2C_Read... [12:00:34]*** Cut start [12:00:34]*** Partial cut [12:00:34]*** CUTSNS_PIN = 1 [12:00:34]*** CUTSNS_PIN = 0 [12:00:34]*** Brake cut motor [12:00:35]Read from MH i2c: 01 [12:00:35]MH_I2C_Read... [12:00:35]*** Stop cut motor [12:00:35]*** Cut end [12:00:35]Read from MH i2c: 01 07 00 [12:00:35]MH_I2C_Read... [12:00:35]Read from MH i2c: 01 07 00 ED 2F 00 00 00 00 00 FF 0F 31 [12:00:35]process_action print_text done [12:00:35]requested_data is exist [12:00:35]produce_requested_data [12:00:35]requested_item fm.sn is exist - process it [12:00:35]wFMCommunicate request_size=4 [12:00:35]MH_SAM_APDU [12:00:35]CAPDU: 80 11 00 00 [12:00:35]Write to MH i2c: E2 08 00 EE 2F 80 11 00 00 00 00 00 00 97 [12:00:35]Write i2c OK [12:00:35]MH_I2C_Read... [12:00:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:35]Read from MH i2c: E2 [12:00:35]MH_I2C_Read... [12:00:35]Read from MH i2c: E2 17 00 [12:00:35]MH_I2C_Read... [12:00:35]Read from MH i2c: E2 17 00 EE 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 E2 [12:00:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:00:35]wFMCommunicate OK [12:00:35]requested_item fd.num is exist - process it [12:00:35]SAM_PROTO_GetFieldsCounters [12:00:35]wFMCommunicate request_size=4 [12:00:35]MH_SAM_APDU [12:00:35]CAPDU: 80 13 00 00 [12:00:35]Write to MH i2c: E2 08 00 EF 2F 80 13 00 00 00 00 00 00 9A [12:00:35]Write i2c OK [12:00:35]MH_I2C_Read... [12:00:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:00:35]Read from MH i2c: E2 [12:00:35]MH_I2C_Read... [12:00:35]Read from MH i2c: E2 62 00 [12:00:35]MH_I2C_Read... [12:00:35]Read from MH i2c: E2 62 00 EF 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 DF 0A 01 00 0E 04 04 00 44 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 AC [12:00:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 DF 0A 01 00 0E 04 04 00 44 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 [12:00:35]wFMCommunicate OK [12:00:35]SAM_PROTO_GetFieldsCounters done [12:00:35]requested_item shift.num is exist - process it [12:00:35]requested_item shift.opened is exist - process it [12:00:35]req_shift_opened [12:00:35]FM_GetShiftState [12:00:35]SAM_PROTO_GetShiftState [12:00:35]wFMCommunicate request_size=4 [12:00:35]MH_SAM_APDU [12:00:35]CAPDU: 80 13 01 00 [12:00:35]Write to MH i2c: E2 08 00 F0 2F 80 13 01 00 00 00 00 00 9C [12:00:35]Write i2c OK [12:00:35]MH_I2C_Read... [12:00:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:35]Read from MH i2c: E2 [12:00:35]MH_I2C_Read... [12:00:35]Read from MH i2c: E2 0E 00 [12:00:35]MH_I2C_Read... [12:00:35]Read from MH i2c: E2 0E 00 F0 2F 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 77 [12:00:35]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [12:00:35]wFMCommunicate OK [12:00:35]SAM_PROTO_GetShiftState done [12:00:35]FM_GetShiftState done [12:00:35]req_shift_opened done [12:00:35]requested_item shift.open_date is exist - process it [12:00:35]req_shift_open_date [12:00:35]req_shift_open_date done [12:00:35]produce_requested_data done [12:00:35]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68319,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [12:00:35]process_action_free print_text [12:00:35]json_value_free [12:00:35]json_value_free done [12:00:35]process_json_proto returns [12:00:35]Send response to host [12:00:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68319,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [12:00:35]free response buf [12:00:35]execute_script done [12:00:35]execute_script returns [12:00:35]free content buf [12:00:35]Sock 6.Close socket [12:00:35]Sock 6.Thread stoped [12:00:38]OFD Sender: No OFD packet to send [12:00:43]OFD Sender: No OFD packet to send [12:00:48]OFD Sender: No OFD packet to send [12:00:53]OFD Sender: No OFD packet to send [12:00:58]accept exits with 5 [12:00:58]New connection [12:00:58]New thread 3066686820 created [12:00:58]Thread 3066543460 joined [12:00:58]Waiting for new connection... [12:00:58] Sock 5.Parse request [12:00:58]Sock 5.Check first char [12:00:58]Sock 5.First char is OK [12:00:58]request: POST /json_proto HTTP/1.0 [12:00:58]Method: POST [12:00:58]URL: /json_proto [12:00:58]Method is POST - this is cgi request [12:00:58]url: /json_proto [12:00:58]query_string will be loaded in cgi processing [12:00:58]execute_cgi json_proto POST (null) [12:00:58]execute_cgi path=json_proto method=POST [12:00:58]POST find Content-Length [12:00:58]Host: 172.17.36.132:8080 [12:00:58]Content-Length: 1145 [12:00:58]Content-Type: application/json [12:00:58] [12:00:58]POST finish read [12:00:58]Found Content-Length = 1145 [12:00:58]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706399\u000A03.06.2024 11:38\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 53\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 25.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 1672.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30068086\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:00:58]execute_script... [12:00:58]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706399\u000A03.06.2024 11:38\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 53\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 25.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 1672.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30068086\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:00:58]POST & json_proto [12:00:58]process_json_proto [12:00:58]json parsed OK: [12:00:58]protocol is kg_v1.0 [12:00:58]action value=print_text [12:00:58]process_action print_text [12:00:58]cmd_print_text [12:00:58]ExternCall_PrintAddStr [12:00:58]wPrintStart [12:00:58]Write to MH i2c: 01 00 00 F1 2F 20 [12:00:58]Write i2c OK [12:00:58]MH_I2C_Read... [12:00:58]Read from MH i2c: 01 [12:00:58]MH_I2C_Read... [12:00:58]Read from MH i2c: 01 07 00 [12:00:58]MH_I2C_Read... [12:00:58]Read from MH i2c: 01 07 00 F1 2F 00 00 00 00 00 FF 0F 35 [12:00:58]RasterBufferAndPrint [12:00:58]line *****ТОВАРНЫЙ ЧЕК***** [12:00:58]line АЗС 62 [12:00:58]line Партнер нефть [12:00:58]line 02508201610067 [12:00:58]line Кассир : Балаев А. [12:00:58]line Счет N : (1)706399 [12:00:58]line 03.06.2024 11:38 [12:00:58]line ПРОДАЖА [12:00:58]line ТРК (МРК, ГНК): 53 [12:00:58]line Вид ГСМ : 2710124130 [12:00:58]line Аи-92-К-4 [12:00:58]line 25.000 x 66.90 [12:00:58]line ИТОГ: 1672.50 [12:00:58]line Тип оплаты: Талоны: ТК ГПНА Online [12:00:58]line 30068086 [12:00:58]line ______________________ [12:00:58]line (подпись) [12:00:58]written 0, free lines is 4095 [12:00:58]Write to MH i2c: 01 00 00 05 30 35 [12:00:58]Write i2c OK [12:00:58]MH_I2C_Read... [12:00:58]Read from MH i2c: 01 [12:00:58]MH_I2C_Read... [12:00:58]Read from MH i2c: 01 07 00 [12:00:58]MH_I2C_Read... [12:00:58]Read from MH i2c: 01 07 00 05 30 00 00 00 00 00 12 0E 5C [12:00:58]RasterBufferAndPrint [12:00:58]line [12:00:58]line [12:00:58]line [12:00:58]line [12:00:58]line [12:00:58]written 0, free lines is 3604 [12:00:58]MH_Cut [12:00:58]Write to MH i2c: D1 01 00 0C 30 01 0E [12:00:58]Write i2c OK [12:00:58]MH_I2C_Read... [12:00:58]Read from MH i2c: D1 [12:00:58]MH_I2C_Read... [12:00:58]Read from MH i2c: D1 01 00 [12:00:58]MH_I2C_Read... [12:00:58]Read from MH i2c: D1 01 00 0C 30 00 0D [12:00:58]Write to MH i2c: 01 00 00 0D 30 3D [12:00:58]Write i2c OK [12:00:58]MH_I2C_Read... [12:00:58]OFD Sender: No OFD packet to send [12:00:59]*** Cut start [12:00:59]*** Partial cut [12:00:59]*** CUTSNS_PIN = 1 [12:00:59]*** CUTSNS_PIN = 0 [12:00:59]*** Brake cut motor [12:01:00]Read from MH i2c: 01 [12:01:00]MH_I2C_Read... [12:01:00]*** Stop cut motor [12:01:00]*** Cut end [12:01:00]Read from MH i2c: 01 07 00 [12:01:00]MH_I2C_Read... [12:01:00]Read from MH i2c: 01 07 00 0D 30 00 00 00 00 00 FF 0F 52 [12:01:00]process_action print_text done [12:01:00]requested_data is exist [12:01:00]produce_requested_data [12:01:00]requested_item fm.sn is exist - process it [12:01:00]wFMCommunicate request_size=4 [12:01:00]MH_SAM_APDU [12:01:00]CAPDU: 80 11 00 00 [12:01:00]Write to MH i2c: E2 08 00 0E 30 80 11 00 00 00 00 00 00 B8 [12:01:00]Write i2c OK [12:01:00]MH_I2C_Read... [12:01:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:00]Read from MH i2c: E2 [12:01:00]MH_I2C_Read... [12:01:00]Read from MH i2c: E2 17 00 [12:01:00]MH_I2C_Read... [12:01:00]Read from MH i2c: E2 17 00 0E 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 03 [12:01:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:01:00]wFMCommunicate OK [12:01:00]requested_item fd.num is exist - process it [12:01:00]SAM_PROTO_GetFieldsCounters [12:01:00]wFMCommunicate request_size=4 [12:01:00]MH_SAM_APDU [12:01:00]CAPDU: 80 13 00 00 [12:01:00]Write to MH i2c: E2 08 00 0F 30 80 13 00 00 00 00 00 00 BB [12:01:00]Write i2c OK [12:01:00]MH_I2C_Read... [12:01:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:01:00]Read from MH i2c: E2 [12:01:00]MH_I2C_Read... [12:01:00]Read from MH i2c: E2 62 00 [12:01:00]MH_I2C_Read... [12:01:00]Read from MH i2c: E2 62 00 0F 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 DF 0A 01 00 0E 04 04 00 44 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 CD [12:01:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 DF 0A 01 00 0E 04 04 00 44 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 [12:01:00]wFMCommunicate OK [12:01:00]SAM_PROTO_GetFieldsCounters done [12:01:00]requested_item shift.num is exist - process it [12:01:00]requested_item shift.opened is exist - process it [12:01:00]req_shift_opened [12:01:00]FM_GetShiftState [12:01:00]SAM_PROTO_GetShiftState [12:01:00]wFMCommunicate request_size=4 [12:01:00]MH_SAM_APDU [12:01:00]CAPDU: 80 13 01 00 [12:01:00]Write to MH i2c: E2 08 00 10 30 80 13 01 00 00 00 00 00 BD [12:01:00]Write i2c OK [12:01:00]MH_I2C_Read... [12:01:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:00]Read from MH i2c: E2 [12:01:00]MH_I2C_Read... [12:01:00]Read from MH i2c: E2 0E 00 [12:01:00]MH_I2C_Read... [12:01:00]Read from MH i2c: E2 0E 00 10 30 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 98 [12:01:00]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [12:01:00]wFMCommunicate OK [12:01:00]SAM_PROTO_GetShiftState done [12:01:00]FM_GetShiftState done [12:01:00]req_shift_opened done [12:01:00]requested_item shift.open_date is exist - process it [12:01:00]req_shift_open_date [12:01:00]req_shift_open_date done [12:01:00]produce_requested_data done [12:01:00]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68319,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [12:01:00]process_action_free print_text [12:01:00]json_value_free [12:01:00]json_value_free done [12:01:00]process_json_proto returns [12:01:00]Send response to host [12:01:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68319,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [12:01:00]free response buf [12:01:00]execute_script done [12:01:00]execute_script returns [12:01:00]free content buf [12:01:00]Sock 5.Close socket [12:01:00]Sock 5.Thread stoped [12:01:03]OFD Sender: No OFD packet to send [12:01:08]OFD Sender: No OFD packet to send [12:01:13]OFD Sender: No OFD packet to send [12:01:18]OFD Sender: No OFD packet to send [12:01:23]OFD Sender: No OFD packet to send [12:01:28]OFD Sender: No OFD packet to send [12:01:33]OFD Sender: No OFD packet to send [12:01:35]accept exits with 6 [12:01:35]New connection [12:01:35]New thread 3066543460 created [12:01:35]Thread 3066686820 joined [12:01:35]Waiting for new connection... [12:01:35] Sock 6.Parse request [12:01:35]Sock 6.Check first char [12:01:35]Sock 6.First char is OK [12:01:35]request: POST /json_proto HTTP/1.0 [12:01:35]Method: POST [12:01:35]URL: /json_proto [12:01:35]Method is POST - this is cgi request [12:01:35]url: /json_proto [12:01:35]query_string will be loaded in cgi processing [12:01:35]execute_cgi json_proto POST (null) [12:01:35]execute_cgi path=json_proto method=POST [12:01:35]POST find Content-Length [12:01:35]Host: 172.17.36.132:8080 [12:01:35]Content-Length: 677 [12:01:35]Content-Type: application/json [12:01:35] [12:01:35]POST finish read [12:01:35]Found Content-Length = 677 [12:01:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706402", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:01:35]execute_script... [12:01: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)706402", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:01:35]POST & json_proto [12:01:35]process_json_proto [12:01:35]json parsed OK: [12:01:35]protocol is kg_v1.0 [12:01:35]action value=close_receipt [12:01:35]process_action close_receipt [12:01:35]cmd_close_receipt [12:01:35]MH_GetDate [12:01:35]Write to MH i2c: F0 00 00 11 30 30 [12:01:35]Write i2c OK [12:01:35]MH_I2C_Read... [12:01:35]Read from MH i2c: F0 [12:01:35]MH_I2C_Read... [12:01:35]Read from MH i2c: F0 09 00 [12:01:35]MH_I2C_Read... [12:01:35]Read from MH i2c: F0 09 00 11 30 00 A4 B0 5D 66 B2 22 B0 64 38 [12:01:35]GetLastDocTimeStamp 1717416021 [12:01:35]current date 1717416100 [12:01:35]FM_GetShiftState [12:01:35]SAM_PROTO_GetShiftState [12:01:35]wFMCommunicate request_size=4 [12:01:35]MH_SAM_APDU [12:01:35]CAPDU: 80 13 01 00 [12:01:35]Write to MH i2c: E2 08 00 12 30 80 13 01 00 00 00 00 00 BF [12:01:35]Write i2c OK [12:01:35]MH_I2C_Read... [12:01:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:35]Read from MH i2c: E2 [12:01:35]MH_I2C_Read... [12:01:35]Read from MH i2c: E2 0E 00 [12:01:35]MH_I2C_Read... [12:01:35]Read from MH i2c: E2 0E 00 12 30 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 9A [12:01:35]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [12:01:35]wFMCommunicate OK [12:01:35]SAM_PROTO_GetShiftState done [12:01:35]FM_GetShiftState done [12:01:35]opened in 1717378033 [12:01:35]opened+sec_in_day 1717464433 [12:01:35]quantity*price = 30038 [12:01:35]sum+1 = 30039 [12:01:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 66 03.06.2024 12:01 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68320 ФПД: 197459155619688 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T120140&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68320&fm=197459155619688&tin=02508201610067®Number=0000000000098096&sum=30000 [12:01:36]StoreToDocumentArchive [12:01:36]shift 324 fd 68320 [12:01:36]save to /storage/0324/doc_00068320 [12:01:36]save last doc name /storage/0324/doc_00068320 to /storage/kkm_last_doc_name [12:01:36]save OK [12:01:36]Clear old archive folders... [12:01:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:01:36]tlvbuf is B6F17B10 [12:01:36]SAM_PROTO_ClearQueue [12:01:36]wFMCommunicate request_size=4 [12:01:36]MH_SAM_APDU [12:01:36]CAPDU: 80 09 00 00 [12:01:36]Write to MH i2c: E2 08 00 1F 30 80 09 00 00 00 00 00 00 C1 [12:01:36]Write i2c OK [12:01:36]MH_I2C_Read... [12:01:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:01:36]Read from MH i2c: E2 [12:01:36]MH_I2C_Read... [12:01:36]Read from MH i2c: E2 03 00 [12:01:36]MH_I2C_Read... [12:01:36]Read from MH i2c: E2 03 00 1F 30 00 90 00 C3 [12:01:36]RAPDU: 90 00 [12:01:36]wFMCommunicate OK [12:01:36]SAM_PROTO_ClearQueue done [12:01:36]KKMCreateOFDPacket [12:01:36]OFDProtocolAddRootSTLVToBuf [12:01:36]FM_MakeSignedData [12:01:36]FM_MakeSignedData [12:01:36]SAM_PROTO_SignData [12:01:36]wFMCommunicate request_size=4 [12:01:36]MH_SAM_APDU [12:01:36]CAPDU: 80 0D 01 02 [12:01:36]Write to MH i2c: E2 08 00 20 30 80 0D 01 02 00 00 00 00 C9 [12:01:36]Write i2c OK [12:01:36]MH_I2C_Read... [12:01:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:01:36]Read from MH i2c: E2 [12:01:36]MH_I2C_Read... [12:01:36]Read from MH i2c: E2 03 00 [12:01:36]MH_I2C_Read... [12:01:36]Read from MH i2c: E2 03 00 20 30 00 90 00 C4 [12:01:36]RAPDU: 90 00 [12:01:36]wFMCommunicate OK [12:01:36]wFMCommunicate request_size=255 [12:01:36]MH_SAM_APDU [12:01:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 A4 B0 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E0 0A 01 00 35 04 06 00 B3 [12:01:36]Write to MH i2c: E2 02 01 21 30 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 A4 B0 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E0 0A 01 00 35 04 06 00 B3 00 00 86 [12:01:36]Write i2c OK [12:01:36]MH_I2C_Read... [12:01:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:36]Read from MH i2c: E2 [12:01:36]MH_I2C_Read... [12:01:36]Read from MH i2c: E2 03 00 [12:01:36]MH_I2C_Read... [12:01:36]Read from MH i2c: E2 03 00 21 30 00 90 00 C5 [12:01:36]RAPDU: 90 00 [12:01:36]wFMCommunicate OK [12:01:36]wFMCommunicate request_size=10 [12:01:36]MH_SAM_APDU [12:01:36]CAPDU: 80 0D 02 02 05 96 8A D4 0F 68 [12:01:36]Write to MH i2c: E2 0D 00 22 30 80 0D 02 02 05 00 96 8A D4 0F 68 00 00 41 [12:01:36]Write i2c OK [12:01:36]MH_I2C_Read... [12:01:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:37]Read from MH i2c: E2 [12:01:37]MH_I2C_Read... [12:01:37]Read from MH i2c: E2 03 00 [12:01:37]MH_I2C_Read... [12:01:37]Read from MH i2c: E2 03 00 22 30 00 90 00 C6 [12:01:37]RAPDU: 90 00 [12:01:37]wFMCommunicate OK [12:01:37]wFMCommunicate request_size=4 [12:01:37]MH_SAM_APDU [12:01:37]CAPDU: 80 0D 03 02 [12:01:37]Write to MH i2c: E2 08 00 23 30 80 0D 03 02 00 00 00 00 CE [12:01:37]Write i2c OK [12:01:37]MH_I2C_Read... [12:01:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:01:37]Read from MH i2c: E2 [12:01:37]MH_I2C_Read... [12:01:37]Read from MH i2c: E2 0B 00 [12:01:37]MH_I2C_Read... [12:01:37]Read from MH i2c: E2 0B 00 23 30 00 63 89 FE F2 30 6F E6 37 90 00 67 [12:01:37]RAPDU: 63 89 FE F2 30 6F E6 37 90 00 [12:01:37]wFMCommunicate OK [12:01:37]SAM_PROTO_SignData done [12:01:37]FM_MakeSignedData done [12:01:37]CreateOFDProtocolMessage [12:01:37]wFMCommunicate request_size=4 [12:01:37]MH_SAM_APDU [12:01:37]CAPDU: 80 11 00 00 [12:01:37]Write to MH i2c: E2 08 00 24 30 80 11 00 00 00 00 00 00 CE [12:01:37]Write i2c OK [12:01:37]MH_I2C_Read... [12:01:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:37]Read from MH i2c: E2 [12:01:37]MH_I2C_Read... [12:01:37]Read from MH i2c: E2 17 00 [12:01:37]MH_I2C_Read... [12:01:37]Read from MH i2c: E2 17 00 24 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 19 [12:01:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:01:37]wFMCommunicate OK [12:01:37]CreateOFDProtocolMessage done [12:01:37]OFDSenderStorePacket 68320 [12:01:37]StoreOFDPacket docnum=68320 [12:01:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 AD 2D 07 01 59 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 A4 B0 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E0 0A 01 00 35 04 06 00 B3 96 8A D4 0F 68 63 89 FE F2 30 6F E6 37 [12:01:37]CheckFolder [12:01:37]dirname=/storage/ofd_packets [12:01:37]CheckFolder done [12:01:37]ProducePacketName [12:01:37]name=ofd_packets/00068320 [12:01:37]NVStorageSaveData ofd_packets/00068320 [12:01:37]File name is /storage/ofd_packets/00068320 [12:01:37]Write 301 bytes [12:01:37]NVStorageSaveData done [12:01:37]OFDSenderStorePacket done [12:01:37]KKMCreateOFDPacket done [12:01:37]NVStorageSaveData kkm_last_timestamp [12:01:37]File name is /storage/kkm_last_timestamp [12:01:37]Write 4 bytes [12:01:37]NVStorageSaveData done [12:01:37]ExternCall_PrintAddStr [12:01:37]wPrintStart [12:01:37]Write to MH i2c: 01 00 00 25 30 55 [12:01:37]Write i2c OK [12:01:37]MH_I2C_Read... [12:01:37]Read from MH i2c: 01 [12:01:37]MH_I2C_Read... [12:01:37]Read from MH i2c: 01 07 00 [12:01:37]MH_I2C_Read... [12:01:37]Read from MH i2c: 01 07 00 25 30 00 00 00 00 00 FF 0F 6A [12:01:37]RasterBufferAndPrint [12:01:37]line Счет N : (1)706402 [12:01:37]line ИНН: 02508201610067 [12:01:37]line Контрольно-Кассовый Чек [12:01:37]line ПРОДАЖА [12:01:37]line ТРК (МРК, ГНК) : 13 [12:01:37]line Товар: 2710124130 [12:01:37]line Аи-92-К-4 [12:01:37]line 4.490 * 66.90 [12:01:37]line = 300.38 [12:01:37]line НДС 12% НСП 1% [12:01:37]line > о реализуемом товаре [12:01:37]line ОКРУГЛЕНИЕ: -0.38 [12:01:37]line ИТОГО: 300.00 [12:01:37]line Внесено: 300.00 [12:01:37]line СДАЧА: 0.00 [12:01:37]line НСП 1% : 2.66 [12:01:37]line НДС 12% : 31.90 [12:01:37]line Наличными: 300.00 [12:01:37]line Безнал.: 0.00 [12:01:37]line Место: АЗС № 62 "Партнер Нефть" [12:01:37]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [12:01:37]line СНО: Общий режим [12:01:37]line Чек 66 03.06.2024 12:01 [12:01:37]line Смена: 324 ФФД: 1.0 [12:01:37]line ЗНМ: 0300000181 [12:01:37]line РНМ: 0000000000098096 [12:01:37]line Версия ККМ: 001 [12:01:37]line ФМ: 0000000000965400 [12:01:37]line ФД: 68320 [12:01:37]line ФПД: 197459155619688 [12:01:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T120140&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68320&fm=197459155619688&tin=02508201610067®Number=0000000000098096&sum=30000 [12:01:37]OFD Sender: Processing packet 68320 [packets to send 26, broken 25] [12:01:37]ProducePacketName [12:01:37]name=ofd_packets/00068320 [12:01:37]OFD Sender: To server: pG, [12:01:37]CommunicateWithHost lk.salyk.kg:30040 [12:01:37]ConnectInit lk.salyk.kg [12:01:37]written 0, free lines is 4095 [12:01:37]Connected sock=7 [12:01:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 AD 2D 07 01 59 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 A4 B0 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E0 0A 01 00 35 04 06 00 B3 96 8A D4 0F 68 63 89 FE F2 30 6F E6 37 [12:01:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 60 23 47 00 C8 99 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E0 0A 01 00 F4 03 04 00 A0 57 5D 66 B6 04 01 00 00 BA 16 6A E9 F2 25 0E 8B [12:01:37]CommunicateWithHost err = 0 [12:01:37]CheckOFDResponse [12:01:37]1017 (14) - 77093643461234 [12:01:37]1041 (16) - 0000000000965400 [12:01:37]1040 (4) - 68320 [12:01:37]1012 (4) - 03.06.2024 05:41 [12:01:37]1206 (1) - 0 [12:01:37]OFD Sender: Remove packet 68320 [12:01:37]ProducePacketName [12:01:37]name=ofd_packets/00068320 [12:01:37]NVStorageDeleteData [12:01:37]Write to MH i2c: 01 00 00 50 30 80 [12:01:37]Write i2c OK [12:01:37]MH_I2C_Read... [12:01:37]Read from MH i2c: 01 [12:01:37]MH_I2C_Read... [12:01:37]Read from MH i2c: 01 07 00 [12:01:37]MH_I2C_Read... [12:01:37]Read from MH i2c: 01 07 00 50 30 00 00 00 00 00 DA 0C 6D [12:01:37]RasterBufferAndPrint [12:01:37]line [12:01:37]line [12:01:37]line [12:01:37]line [12:01:37]line [12:01:37]written 0, free lines is 3297 [12:01:37]MH_Cut [12:01:37]Write to MH i2c: D1 01 00 57 30 01 59 [12:01:37]Write i2c OK [12:01:37]MH_I2C_Read... [12:01:37]Read from MH i2c: D1 [12:01:37]MH_I2C_Read... [12:01:37]Read from MH i2c: D1 01 00 [12:01:37]MH_I2C_Read... [12:01:37]Read from MH i2c: D1 01 00 57 30 00 58 [12:01:37]Write to MH i2c: 01 00 00 58 30 88 [12:01:37]Write i2c OK [12:01:37]MH_I2C_Read... [12:01:38]OFD Sender: No OFD packet to send [12:01:38]*** Cut start [12:01:38]*** Partial cut [12:01:38]*** CUTSNS_PIN = 1 [12:01:38]*** CUTSNS_PIN = 0 [12:01:38]*** Brake cut motor [12:01:39]Read from MH i2c: 01 [12:01:39]MH_I2C_Read... [12:01:39]*** Stop cut motor [12:01:39]*** Cut end [12:01:39]Read from MH i2c: 01 07 00 [12:01:39]MH_I2C_Read... [12:01:39]Read from MH i2c: 01 07 00 58 30 00 00 00 00 00 FF 0F 9D [12:01:39]process_action close_receipt done [12:01:39]requested_data is exist [12:01:39]produce_requested_data [12:01:39]requested_item fm.sn is exist - process it [12:01:39]wFMCommunicate request_size=4 [12:01:39]MH_SAM_APDU [12:01:39]CAPDU: 80 11 00 00 [12:01:39]Write to MH i2c: E2 08 00 59 30 80 11 00 00 00 00 00 00 03 [12:01:39]Write i2c OK [12:01:39]MH_I2C_Read... [12:01:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:39]Read from MH i2c: E2 [12:01:39]MH_I2C_Read... [12:01:39]Read from MH i2c: E2 17 00 [12:01:39]MH_I2C_Read... [12:01:39]Read from MH i2c: E2 17 00 59 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 4E [12:01:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:01:39]wFMCommunicate OK [12:01:39]requested_item fd.num is exist - process it [12:01:39]SAM_PROTO_GetFieldsCounters [12:01:39]wFMCommunicate request_size=4 [12:01:39]MH_SAM_APDU [12:01:39]CAPDU: 80 13 00 00 [12:01:39]Write to MH i2c: E2 08 00 5A 30 80 13 00 00 00 00 00 00 06 [12:01:39]Write i2c OK [12:01:39]MH_I2C_Read... [12:01:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:01:39]Read from MH i2c: E2 [12:01:39]MH_I2C_Read... [12:01:39]Read from MH i2c: E2 62 00 [12:01:39]MH_I2C_Read... [12:01:39]Read from MH i2c: E2 62 00 5A 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 E0 0A 01 00 0E 04 04 00 44 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 1C [12:01:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 E0 0A 01 00 0E 04 04 00 44 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 [12:01:39]wFMCommunicate OK [12:01:39]SAM_PROTO_GetFieldsCounters done [12:01:39]requested_item shift.num is exist - process it [12:01:39]requested_item shift.opened is exist - process it [12:01:39]req_shift_opened [12:01:39]FM_GetShiftState [12:01:39]SAM_PROTO_GetShiftState [12:01:39]wFMCommunicate request_size=4 [12:01:39]MH_SAM_APDU [12:01:39]CAPDU: 80 13 01 00 [12:01:39]Write to MH i2c: E2 08 00 5B 30 80 13 01 00 00 00 00 00 08 [12:01:39]Write i2c OK [12:01:39]MH_I2C_Read... [12:01:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:39]Read from MH i2c: E2 [12:01:39]MH_I2C_Read... [12:01:39]Read from MH i2c: E2 0E 00 [12:01:39]MH_I2C_Read... [12:01:39]Read from MH i2c: E2 0E 00 5B 30 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 E3 [12:01:39]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [12:01:39]wFMCommunicate OK [12:01:39]SAM_PROTO_GetShiftState done [12:01:39]FM_GetShiftState done [12:01:39]req_shift_opened done [12:01:39]requested_item shift.open_date is exist - process it [12:01:39]req_shift_open_date [12:01:39]req_shift_open_date done [12:01:39]produce_requested_data done [12:01:39]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68320,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [12:01:39]process_action_free close_receipt [12:01:39]json_value_free [12:01:39]json_value_free done [12:01:39]process_json_proto returns [12:01:39]Send response to host [12:01:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68320,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [12:01:39]free response buf [12:01:39]execute_script done [12:01:39]execute_script returns [12:01:39]free content buf [12:01:39]Sock 6.Close socket [12:01:39]Sock 6.Thread stoped [12:01:43]OFD Sender: No OFD packet to send [12:01:48]OFD Sender: No OFD packet to send [12:01:53]OFD Sender: No OFD packet to send [12:01:58]OFD Sender: No OFD packet to send [12:02:03]OFD Sender: No OFD packet to send [12:02:08]OFD Sender: No OFD packet to send [12:02:13]OFD Sender: No OFD packet to send [12:02:18]OFD Sender: No OFD packet to send [12:02:23]OFD Sender: No OFD packet to send [12:02:28]OFD Sender: No OFD packet to send [12:02:33]OFD Sender: No OFD packet to send [12:02:38]OFD Sender: No OFD packet to send [12:02:43]OFD Sender: No OFD packet to send [12:02:48]OFD Sender: No OFD packet to send [12:02:53]OFD Sender: No OFD packet to send [12:02:58]OFD Sender: No OFD packet to send [12:03:03]OFD Sender: No OFD packet to send [12:03:08]OFD Sender: No OFD packet to send [12:03:13]OFD Sender: No OFD packet to send [12:03:18]OFD Sender: No OFD packet to send [12:03:23]OFD Sender: No OFD packet to send [12:03:28]OFD Sender: No OFD packet to send [12:03:33]OFD Sender: No OFD packet to send [12:03:38]OFD Sender: No OFD packet to send [12:03:43]OFD Sender: No OFD packet to send [12:03:48]OFD Sender: No OFD packet to send [12:03:53]OFD Sender: No OFD packet to send [12:03:58]OFD Sender: No OFD packet to send [12:04:03]OFD Sender: No OFD packet to send [12:04:08]OFD Sender: No OFD packet to send [12:04:13]OFD Sender: No OFD packet to send [12:04:18]OFD Sender: No OFD packet to send [12:04:23]OFD Sender: No OFD packet to send [12:04:28]OFD Sender: No OFD packet to send [12:04:33]OFD Sender: No OFD packet to send [12:04:38]OFD Sender: No OFD packet to send [12:04:43]OFD Sender: No OFD packet to send [12:04:48]OFD Sender: No OFD packet to send [12:04:53]OFD Sender: No OFD packet to send [12:04:58]OFD Sender: No OFD packet to send [12:05:03]OFD Sender: No OFD packet to send [12:05:08]OFD Sender: No OFD packet to send [12:05:11]accept exits with 5 [12:05:11]New connection [12:05:11]New thread 3066686820 created [12:05:11]Thread 3066543460 joined [12:05:11]Waiting for new connection... [12:05:11] Sock 5.Parse request [12:05:11]Sock 5.Check first char [12:05:11]Sock 5.First char is OK [12:05:11]request: POST /json_proto HTTP/1.0 [12:05:11]Method: POST [12:05:11]URL: /json_proto [12:05:11]Method is POST - this is cgi request [12:05:11]url: /json_proto [12:05:11]query_string will be loaded in cgi processing [12:05:11]execute_cgi json_proto POST (null) [12:05:11]execute_cgi path=json_proto method=POST [12:05:11]POST find Content-Length [12:05:11]Host: 172.17.36.132:8080 [12:05:11]Content-Length: 1144 [12:05:11]Content-Type: application/json [12:05:11] [12:05:11]POST finish read [12:05:11]Found Content-Length = 1144 [12:05:11]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706403\u000A03.06.2024 11:42\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 10.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 669.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30008975\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:05:11]execute_script... [12:05:11]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706403\u000A03.06.2024 11:42\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 10.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 669.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30008975\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:05:11]POST & json_proto [12:05:11]process_json_proto [12:05:11]json parsed OK: [12:05:11]protocol is kg_v1.0 [12:05:11]action value=print_text [12:05:11]process_action print_text [12:05:11]cmd_print_text [12:05:11]ExternCall_PrintAddStr [12:05:11]wPrintStart [12:05:11]Write to MH i2c: 01 00 00 5C 30 8C [12:05:11]Write i2c OK [12:05:11]MH_I2C_Read... [12:05:11]Read from MH i2c: 01 [12:05:11]MH_I2C_Read... [12:05:11]Read from MH i2c: 01 07 00 [12:05:11]MH_I2C_Read... [12:05:11]Read from MH i2c: 01 07 00 5C 30 00 00 00 00 00 FF 0F A1 [12:05:11]RasterBufferAndPrint [12:05:11]line *****ТОВАРНЫЙ ЧЕК***** [12:05:11]line АЗС 62 [12:05:11]line Партнер нефть [12:05:11]line 02508201610067 [12:05:11]line Кассир : Балаев А. [12:05:11]line Счет N : (1)706403 [12:05:11]line 03.06.2024 11:42 [12:05:11]line ПРОДАЖА [12:05:11]line ТРК (МРК, ГНК): 32 [12:05:11]line Вид ГСМ : 2710124130 [12:05:11]line Аи-92-К-4 [12:05:11]line 10.000 x 66.90 [12:05:11]line ИТОГ: 669.00 [12:05:11]line Тип оплаты: Талоны: ТК ГПНА Online [12:05:11]line 30008975 [12:05:11]line ______________________ [12:05:11]line (подпись) [12:05:11]written 0, free lines is 4095 [12:05:12]Write to MH i2c: 01 00 00 70 30 A0 [12:05:12]Write i2c OK [12:05:12]MH_I2C_Read... [12:05:12]Read from MH i2c: 01 [12:05:12]MH_I2C_Read... [12:05:12]Read from MH i2c: 01 07 00 [12:05:12]MH_I2C_Read... [12:05:12]Read from MH i2c: 01 07 00 70 30 00 00 00 00 00 10 0E C5 [12:05:12]RasterBufferAndPrint [12:05:12]line [12:05:12]line [12:05:12]line [12:05:12]line [12:05:12]line [12:05:12]written 0, free lines is 3602 [12:05:12]MH_Cut [12:05:12]Write to MH i2c: D1 01 00 77 30 01 79 [12:05:12]Write i2c OK [12:05:12]MH_I2C_Read... [12:05:12]Read from MH i2c: D1 [12:05:12]MH_I2C_Read... [12:05:12]Read from MH i2c: D1 01 00 [12:05:12]MH_I2C_Read... [12:05:12]Read from MH i2c: D1 01 00 77 30 00 78 [12:05:12]Write to MH i2c: 01 00 00 78 30 A8 [12:05:12]Write i2c OK [12:05:12]MH_I2C_Read... [12:05:12]*** Cut start [12:05:12]*** Partial cut [12:05:12]*** CUTSNS_PIN = 1 [12:05:12]*** CUTSNS_PIN = 0 [12:05:12]*** Brake cut motor [12:05:13]Read from MH i2c: 01 [12:05:13]MH_I2C_Read... [12:05:13]*** Stop cut motor [12:05:13]*** Cut end [12:05:13]Read from MH i2c: 01 07 00 [12:05:13]MH_I2C_Read... [12:05:13]Read from MH i2c: 01 07 00 78 30 00 00 00 00 00 FF 0F BD [12:05:13]process_action print_text done [12:05:13]requested_data is exist [12:05:13]produce_requested_data [12:05:13]requested_item fm.sn is exist - process it [12:05:13]wFMCommunicate request_size=4 [12:05:13]MH_SAM_APDU [12:05:13]CAPDU: 80 11 00 00 [12:05:13]Write to MH i2c: E2 08 00 79 30 80 11 00 00 00 00 00 00 23 [12:05:13]Write i2c OK [12:05:13]MH_I2C_Read... [12:05:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:13]Read from MH i2c: E2 [12:05:13]MH_I2C_Read... [12:05:13]Read from MH i2c: E2 17 00 [12:05:13]MH_I2C_Read... [12:05:13]Read from MH i2c: E2 17 00 79 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 6E [12:05:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:05:13]wFMCommunicate OK [12:05:13]requested_item fd.num is exist - process it [12:05:13]SAM_PROTO_GetFieldsCounters [12:05:13]wFMCommunicate request_size=4 [12:05:13]MH_SAM_APDU [12:05:13]CAPDU: 80 13 00 00 [12:05:13]Write to MH i2c: E2 08 00 7A 30 80 13 00 00 00 00 00 00 26 [12:05:13]Write i2c OK [12:05:13]MH_I2C_Read... [12:05:13]OFD Sender: No OFD packet to send [12:05:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:05:13]Read from MH i2c: E2 [12:05:13]MH_I2C_Read... [12:05:13]Read from MH i2c: E2 62 00 [12:05:13]MH_I2C_Read... [12:05:13]Read from MH i2c: E2 62 00 7A 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 E0 0A 01 00 0E 04 04 00 44 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 3C [12:05:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 E0 0A 01 00 0E 04 04 00 44 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 [12:05:13]wFMCommunicate OK [12:05:13]SAM_PROTO_GetFieldsCounters done [12:05:13]requested_item shift.num is exist - process it [12:05:13]requested_item shift.opened is exist - process it [12:05:13]req_shift_opened [12:05:13]FM_GetShiftState [12:05:13]SAM_PROTO_GetShiftState [12:05:13]wFMCommunicate request_size=4 [12:05:13]MH_SAM_APDU [12:05:13]CAPDU: 80 13 01 00 [12:05:13]Write to MH i2c: E2 08 00 7B 30 80 13 01 00 00 00 00 00 28 [12:05:13]Write i2c OK [12:05:13]MH_I2C_Read... [12:05:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:13]Read from MH i2c: E2 [12:05:13]MH_I2C_Read... [12:05:13]Read from MH i2c: E2 0E 00 [12:05:13]MH_I2C_Read... [12:05:13]Read from MH i2c: E2 0E 00 7B 30 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 03 [12:05:13]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [12:05:13]wFMCommunicate OK [12:05:13]SAM_PROTO_GetShiftState done [12:05:13]FM_GetShiftState done [12:05:13]req_shift_opened done [12:05:13]requested_item shift.open_date is exist - process it [12:05:13]req_shift_open_date [12:05:13]req_shift_open_date done [12:05:13]produce_requested_data done [12:05:13]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68320,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [12:05:13]process_action_free print_text [12:05:13]json_value_free [12:05:13]json_value_free done [12:05:13]process_json_proto returns [12:05:13]Send response to host [12:05:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68320,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [12:05:13]free response buf [12:05:13]execute_script done [12:05:13]execute_script returns [12:05:13]free content buf [12:05:13]Sock 5.Close socket [12:05:13]Sock 5.Thread stoped [12:05:18]OFD Sender: No OFD packet to send [12:05:23]OFD Sender: No OFD packet to send [12:05:28]OFD Sender: No OFD packet to send [12:05:33]OFD Sender: No OFD packet to send [12:05:38]OFD Sender: No OFD packet to send [12:05:43]OFD Sender: No OFD packet to send [12:05:48]OFD Sender: No OFD packet to send [12:05:53]OFD Sender: No OFD packet to send [12:05:58]OFD Sender: No OFD packet to send [12:06:03]OFD Sender: No OFD packet to send [12:06:08]OFD Sender: No OFD packet to send [12:06:13]OFD Sender: No OFD packet to send [12:06:18]OFD Sender: No OFD packet to send [12:06:23]OFD Sender: No OFD packet to send [12:06:28]OFD Sender: No OFD packet to send [12:06:33]OFD Sender: No OFD packet to send [12:06:38]OFD Sender: No OFD packet to send [12:06:43]OFD Sender: No OFD packet to send [12:06:48]OFD Sender: No OFD packet to send [12:06:53]OFD Sender: No OFD packet to send [12:06:58]OFD Sender: No OFD packet to send [12:07:03]OFD Sender: No OFD packet to send [12:07:08]OFD Sender: No OFD packet to send [12:07:13]OFD Sender: No OFD packet to send [12:07:18]OFD Sender: No OFD packet to send [12:07:23]OFD Sender: No OFD packet to send [12:07:28]OFD Sender: No OFD packet to send [12:07:33]OFD Sender: No OFD packet to send [12:07:38]OFD Sender: No OFD packet to send [12:07:43]OFD Sender: No OFD packet to send [12:07:48]OFD Sender: No OFD packet to send [12:07:53]OFD Sender: No OFD packet to send [12:07:58]OFD Sender: No OFD packet to send [12:08:03]OFD Sender: No OFD packet to send [12:08:08]OFD Sender: No OFD packet to send [12:08:13]OFD Sender: No OFD packet to send [12:08:18]OFD Sender: No OFD packet to send [12:08:23]OFD Sender: No OFD packet to send [12:08:28]OFD Sender: No OFD packet to send [12:08:33]OFD Sender: No OFD packet to send [12:08:38]OFD Sender: No OFD packet to send [12:08:43]OFD Sender: No OFD packet to send [12:08:48]OFD Sender: No OFD packet to send [12:08:53]OFD Sender: No OFD packet to send [12:08:58]OFD Sender: No OFD packet to send [12:09:00]accept exits with 6 [12:09:00]New connection [12:09:00]New thread 3066543460 created [12:09:00]Thread 3066686820 joined [12:09:00]Waiting for new connection... [12:09:00] Sock 6.Parse request [12:09:00]Sock 6.Check first char [12:09:00]Sock 6.First char is OK [12:09:00]request: POST /json_proto HTTP/1.0 [12:09:00]Method: POST [12:09:00]URL: /json_proto [12:09:00]Method is POST - this is cgi request [12:09:00]url: /json_proto [12:09:00]query_string will be loaded in cgi processing [12:09:00]execute_cgi json_proto POST (null) [12:09:00]execute_cgi path=json_proto method=POST [12:09:00]POST find Content-Length [12:09:00]Host: 172.17.36.132:8080 [12:09:00]Content-Length: 678 [12:09:00]Content-Type: application/json [12:09:00] [12:09:00]POST finish read [12:09:00]Found Content-Length = 678 [12:09:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706404", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 13.530, "sum" : 905.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 905.00, "total" : 905.00, "payments": [ { "type": 0, "sum" : 905.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:09:00]execute_script... [12:09:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706404", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 13.530, "sum" : 905.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 905.00, "total" : 905.00, "payments": [ { "type": 0, "sum" : 905.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:09:00]POST & json_proto [12:09:00]process_json_proto [12:09:00]json parsed OK: [12:09:00]protocol is kg_v1.0 [12:09:00]action value=close_receipt [12:09:00]process_action close_receipt [12:09:00]cmd_close_receipt [12:09:00]MH_GetDate [12:09:00]Write to MH i2c: F0 00 00 7C 30 9B [12:09:00]Write i2c OK [12:09:00]MH_I2C_Read... [12:09:00]Read from MH i2c: F0 [12:09:00]MH_I2C_Read... [12:09:00]Read from MH i2c: F0 09 00 [12:09:00]MH_I2C_Read... [12:09:00]Read from MH i2c: F0 09 00 7C 30 00 61 B2 5D 66 B2 22 B0 64 62 [12:09:00]GetLastDocTimeStamp 1717416100 [12:09:00]current date 1717416545 [12:09:00]FM_GetShiftState [12:09:00]SAM_PROTO_GetShiftState [12:09:00]wFMCommunicate request_size=4 [12:09:00]MH_SAM_APDU [12:09:00]CAPDU: 80 13 01 00 [12:09:00]Write to MH i2c: E2 08 00 7D 30 80 13 01 00 00 00 00 00 2A [12:09:00]Write i2c OK [12:09:00]MH_I2C_Read... [12:09:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:00]Read from MH i2c: E2 [12:09:00]MH_I2C_Read... [12:09:00]Read from MH i2c: E2 0E 00 [12:09:00]MH_I2C_Read... [12:09:00]Read from MH i2c: E2 0E 00 7D 30 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 05 [12:09:00]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [12:09:00]wFMCommunicate OK [12:09:00]SAM_PROTO_GetShiftState done [12:09:00]FM_GetShiftState done [12:09:00]opened in 1717378033 [12:09:00]opened+sec_in_day 1717464433 [12:09:00]quantity*price = 90515 [12:09:00]sum+1 = 90517 [12:09:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 905.00 Внесено: 905.00 СДАЧА: 0.00 НСП 1% : 8.01 НДС 12% : 96.12 Наличными: 905.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 67 03.06.2024 12:09 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68321 ФПД: 160960393812380 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T120905&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68321&fm=160960393812380&tin=02508201610067®Number=0000000000098096&sum=90500 [12:09:01]StoreToDocumentArchive [12:09:01]shift 324 fd 68321 [12:09:01]save to /storage/0324/doc_00068321 [12:09:01]save last doc name /storage/0324/doc_00068321 to /storage/kkm_last_doc_name [12:09:01]save OK [12:09:01]Clear old archive folders... [12:09:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:09:01]tlvbuf is 001BC340 [12:09:01]SAM_PROTO_ClearQueue [12:09:01]wFMCommunicate request_size=4 [12:09:01]MH_SAM_APDU [12:09:01]CAPDU: 80 09 00 00 [12:09:01]Write to MH i2c: E2 08 00 8A 30 80 09 00 00 00 00 00 00 2C [12:09:01]Write i2c OK [12:09:01]MH_I2C_Read... [12:09:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:09:01]Read from MH i2c: E2 [12:09:01]MH_I2C_Read... [12:09:01]Read from MH i2c: E2 03 00 [12:09:01]MH_I2C_Read... [12:09:01]Read from MH i2c: E2 03 00 8A 30 00 90 00 2E [12:09:01]RAPDU: 90 00 [12:09:01]wFMCommunicate OK [12:09:01]SAM_PROTO_ClearQueue done [12:09:01]KKMCreateOFDPacket [12:09:01]OFDProtocolAddRootSTLVToBuf [12:09:01]FM_MakeSignedData [12:09:01]FM_MakeSignedData [12:09:01]SAM_PROTO_SignData [12:09:01]wFMCommunicate request_size=4 [12:09:01]MH_SAM_APDU [12:09:01]CAPDU: 80 0D 01 02 [12:09:01]Write to MH i2c: E2 08 00 8B 30 80 0D 01 02 00 00 00 00 34 [12:09:01]Write i2c OK [12:09:01]MH_I2C_Read... [12:09:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:09:01]Read from MH i2c: E2 [12:09:01]MH_I2C_Read... [12:09:01]Read from MH i2c: E2 03 00 [12:09:01]MH_I2C_Read... [12:09:01]Read from MH i2c: E2 03 00 8B 30 00 90 00 2F [12:09:01]RAPDU: 90 00 [12:09:01]wFMCommunicate OK [12:09:01]wFMCommunicate request_size=255 [12:09:01]MH_SAM_APDU [12:09:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 DA 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 94 61 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 61 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 25 00 00 00 00 07 04 06 00 84 61 01 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 61 B2 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E1 0A 01 00 35 04 06 00 92 [12:09:01]Write to MH i2c: E2 02 01 8C 30 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 DA 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 94 61 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 61 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 25 00 00 00 00 07 04 06 00 84 61 01 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 61 B2 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E1 0A 01 00 35 04 06 00 92 00 00 F9 [12:09:01]Write i2c OK [12:09:01]MH_I2C_Read... [12:09:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:01]Read from MH i2c: E2 [12:09:01]MH_I2C_Read... [12:09:01]Read from MH i2c: E2 03 00 [12:09:01]MH_I2C_Read... [12:09:01]Read from MH i2c: E2 03 00 8C 30 00 90 00 30 [12:09:01]RAPDU: 90 00 [12:09:01]wFMCommunicate OK [12:09:01]wFMCommunicate request_size=10 [12:09:01]MH_SAM_APDU [12:09:01]CAPDU: 80 0D 02 02 05 64 83 18 99 9C [12:09:01]Write to MH i2c: E2 0D 00 8D 30 80 0D 02 02 05 00 64 83 18 99 9C 00 00 75 [12:09:01]Write i2c OK [12:09:01]MH_I2C_Read... [12:09:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:01]Read from MH i2c: E2 [12:09:01]MH_I2C_Read... [12:09:01]Read from MH i2c: E2 03 00 [12:09:01]MH_I2C_Read... [12:09:01]Read from MH i2c: E2 03 00 8D 30 00 90 00 31 [12:09:01]RAPDU: 90 00 [12:09:01]wFMCommunicate OK [12:09:01]wFMCommunicate request_size=4 [12:09:01]MH_SAM_APDU [12:09:01]CAPDU: 80 0D 03 02 [12:09:01]Write to MH i2c: E2 08 00 8E 30 80 0D 03 02 00 00 00 00 39 [12:09:01]Write i2c OK [12:09:01]MH_I2C_Read... [12:09:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:09:01]Read from MH i2c: E2 [12:09:01]MH_I2C_Read... [12:09:01]Read from MH i2c: E2 0B 00 [12:09:01]MH_I2C_Read... [12:09:01]Read from MH i2c: E2 0B 00 8E 30 00 72 B4 1F 89 EA CC E1 CB 90 00 6A [12:09:01]RAPDU: 72 B4 1F 89 EA CC E1 CB 90 00 [12:09:01]wFMCommunicate OK [12:09:01]SAM_PROTO_SignData done [12:09:01]FM_MakeSignedData done [12:09:01]CreateOFDProtocolMessage [12:09:01]wFMCommunicate request_size=4 [12:09:01]MH_SAM_APDU [12:09:01]CAPDU: 80 11 00 00 [12:09:01]Write to MH i2c: E2 08 00 8F 30 80 11 00 00 00 00 00 00 39 [12:09:01]Write i2c OK [12:09:01]MH_I2C_Read... [12:09:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:02]Read from MH i2c: E2 [12:09:02]MH_I2C_Read... [12:09:02]Read from MH i2c: E2 17 00 [12:09:02]MH_I2C_Read... [12:09:02]Read from MH i2c: E2 17 00 8F 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 84 [12:09:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:09:02]wFMCommunicate OK [12:09:02]CreateOFDProtocolMessage done [12:09:02]OFDSenderStorePacket 68321 [12:09:02]StoreOFDPacket docnum=68321 [12:09:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 E9 E4 07 01 7E 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 DA 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 94 61 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 61 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 25 00 00 00 00 07 04 06 00 84 61 01 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 61 B2 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E1 0A 01 00 35 04 06 00 92 64 83 18 99 9C 72 B4 1F 89 EA CC E1 CB [12:09:02]CheckFolder [12:09:02]dirname=/storage/ofd_packets [12:09:02]CheckFolder done [12:09:02]ProducePacketName [12:09:02]name=ofd_packets/00068321 [12:09:02]NVStorageSaveData ofd_packets/00068321 [12:09:02]File name is /storage/ofd_packets/00068321 [12:09:02]Write 301 bytes [12:09:02]NVStorageSaveData done [12:09:02]OFDSenderStorePacket done [12:09:02]KKMCreateOFDPacket done [12:09:02]NVStorageSaveData kkm_last_timestamp [12:09:02]File name is /storage/kkm_last_timestamp [12:09:02]Write 4 bytes [12:09:02]NVStorageSaveData done [12:09:02]ExternCall_PrintAddStr [12:09:02]wPrintStart [12:09:02]Write to MH i2c: 01 00 00 90 30 C0 [12:09:02]Write i2c OK [12:09:02]MH_I2C_Read... [12:09:02]Read from MH i2c: 01 [12:09:02]MH_I2C_Read... [12:09:02]Read from MH i2c: 01 07 00 [12:09:02]MH_I2C_Read... [12:09:02]Read from MH i2c: 01 07 00 90 30 00 00 00 00 00 FF 0F D5 [12:09:02]RasterBufferAndPrint [12:09:02]line Счет N : (1)706404 [12:09:02]line ИНН: 02508201610067 [12:09:02]line Контрольно-Кассовый Чек [12:09:02]line ПРОДАЖА [12:09:02]line ТРК (МРК, ГНК) : 53 [12:09:02]line Товар: 2710124130 [12:09:02]line Аи-92-К-4 [12:09:02]line 13.530 * 66.90 [12:09:02]line = 905.16 [12:09:02]line НДС 12% НСП 1% [12:09:02]line > о реализуемом товаре [12:09:02]line ОКРУГЛЕНИЕ: -0.16 [12:09:02]line ИТОГО: 905.00 [12:09:02]line Внесено: 905.00 [12:09:02]line СДАЧА: 0.00 [12:09:02]line НСП 1% : 8.01 [12:09:02]line НДС 12% : 96.12 [12:09:02]line Наличными: 905.00 [12:09:02]line Безнал.: 0.00 [12:09:02]line Место: АЗС № 62 "Партнер Нефть" [12:09:02]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [12:09:02]line СНО: Общий режим [12:09:02]line Чек 67 03.06.2024 12:09 [12:09:02]line Смена: 324 ФФД: 1.0 [12:09:02]line ЗНМ: 0300000181 [12:09:02]line РНМ: 0000000000098096 [12:09:02]line Версия ККМ: 001 [12:09:02]line ФМ: 0000000000965400 [12:09:02]line ФД: 68321 [12:09:02]line ФПД: 160960393812380 [12:09:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T120905&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68321&fm=160960393812380&tin=02508201610067®Number=0000000000098096&sum=90500 [12:09:02]OFD Sender: Processing packet 68321 [packets to send 26, broken 25] [12:09:02]ProducePacketName [12:09:02]name=ofd_packets/00068321 [12:09:02]OFD Sender: To server: pG, [12:09:02]CommunicateWithHost lk.salyk.kg:30040 [12:09:02]ConnectInit lk.salyk.kg [12:09:02]written 0, free lines is 4095 [12:09:02]Connected sock=7 [12:09:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 E9 E4 07 01 7E 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 DA 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 94 61 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 61 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 25 00 00 00 00 07 04 06 00 84 61 01 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 61 B2 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E1 0A 01 00 35 04 06 00 92 64 83 18 99 9C 72 B4 1F 89 EA CC E1 CB [12:09:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 4C D7 47 00 25 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E1 0A 01 00 F4 03 04 00 5D 59 5D 66 B6 04 01 00 00 38 22 31 E0 04 AD 71 78 [12:09:02]CommunicateWithHost err = 0 [12:09:02]CheckOFDResponse [12:09:02]1017 (14) - 77093643461234 [12:09:02]1041 (16) - 0000000000965400 [12:09:02]1040 (4) - 68321 [12:09:02]1012 (4) - 03.06.2024 05:49 [12:09:02]1206 (1) - 0 [12:09:02]OFD Sender: Remove packet 68321 [12:09:02]ProducePacketName [12:09:02]name=ofd_packets/00068321 [12:09:02]NVStorageDeleteData [12:09:02]Write to MH i2c: 01 00 00 BB 30 EB [12:09:02]Write i2c OK [12:09:02]MH_I2C_Read... [12:09:02]Read from MH i2c: 01 [12:09:02]MH_I2C_Read... [12:09:02]Read from MH i2c: 01 07 00 [12:09:02]MH_I2C_Read... [12:09:02]Read from MH i2c: 01 07 00 BB 30 00 00 00 00 00 DE 0C DC [12:09:02]RasterBufferAndPrint [12:09:02]line [12:09:02]line [12:09:02]line [12:09:02]line [12:09:02]line [12:09:02]written 0, free lines is 3300 [12:09:02]MH_Cut [12:09:02]Write to MH i2c: D1 01 00 C2 30 01 C4 [12:09:02]Write i2c OK [12:09:02]MH_I2C_Read... [12:09:02]Read from MH i2c: D1 [12:09:02]MH_I2C_Read... [12:09:02]Read from MH i2c: D1 01 00 [12:09:02]MH_I2C_Read... [12:09:02]Read from MH i2c: D1 01 00 C2 30 00 C3 [12:09:02]Write to MH i2c: 01 00 00 C3 30 F3 [12:09:02]Write i2c OK [12:09:02]MH_I2C_Read... [12:09:03]OFD Sender: No OFD packet to send [12:09:03]*** Cut start [12:09:03]*** Partial cut [12:09:03]*** CUTSNS_PIN = 1 [12:09:03]*** CUTSNS_PIN = 0 [12:09:03]*** Brake cut motor [12:09:04]Read from MH i2c: 01 [12:09:04]MH_I2C_Read... [12:09:04]*** Stop cut motor [12:09:04]*** Cut end [12:09:04]Read from MH i2c: 01 07 00 [12:09:04]MH_I2C_Read... [12:09:04]Read from MH i2c: 01 07 00 C3 30 00 00 00 00 00 FF 0F 08 [12:09:04]process_action close_receipt done [12:09:04]requested_data is exist [12:09:04]produce_requested_data [12:09:04]requested_item fm.sn is exist - process it [12:09:04]wFMCommunicate request_size=4 [12:09:04]MH_SAM_APDU [12:09:04]CAPDU: 80 11 00 00 [12:09:04]Write to MH i2c: E2 08 00 C4 30 80 11 00 00 00 00 00 00 6E [12:09:04]Write i2c OK [12:09:04]MH_I2C_Read... [12:09:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:04]Read from MH i2c: E2 [12:09:04]MH_I2C_Read... [12:09:04]Read from MH i2c: E2 17 00 [12:09:04]MH_I2C_Read... [12:09:04]Read from MH i2c: E2 17 00 C4 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 B9 [12:09:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:09:04]wFMCommunicate OK [12:09:04]requested_item fd.num is exist - process it [12:09:04]SAM_PROTO_GetFieldsCounters [12:09:04]wFMCommunicate request_size=4 [12:09:04]MH_SAM_APDU [12:09:04]CAPDU: 80 13 00 00 [12:09:04]Write to MH i2c: E2 08 00 C5 30 80 13 00 00 00 00 00 00 71 [12:09:04]Write i2c OK [12:09:04]MH_I2C_Read... [12:09:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:09:04]Read from MH i2c: E2 [12:09:04]MH_I2C_Read... [12:09:04]Read from MH i2c: E2 62 00 [12:09:04]MH_I2C_Read... [12:09:04]Read from MH i2c: E2 62 00 C5 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 E1 0A 01 00 0E 04 04 00 44 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 8B [12:09:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 E1 0A 01 00 0E 04 04 00 44 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 [12:09:04]wFMCommunicate OK [12:09:04]SAM_PROTO_GetFieldsCounters done [12:09:04]requested_item shift.num is exist - process it [12:09:04]requested_item shift.opened is exist - process it [12:09:04]req_shift_opened [12:09:04]FM_GetShiftState [12:09:04]SAM_PROTO_GetShiftState [12:09:04]wFMCommunicate request_size=4 [12:09:04]MH_SAM_APDU [12:09:04]CAPDU: 80 13 01 00 [12:09:04]Write to MH i2c: E2 08 00 C6 30 80 13 01 00 00 00 00 00 73 [12:09:04]Write i2c OK [12:09:04]MH_I2C_Read... [12:09:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:04]Read from MH i2c: E2 [12:09:04]MH_I2C_Read... [12:09:04]Read from MH i2c: E2 0E 00 [12:09:04]MH_I2C_Read... [12:09:04]Read from MH i2c: E2 0E 00 C6 30 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 4E [12:09:04]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [12:09:04]wFMCommunicate OK [12:09:04]SAM_PROTO_GetShiftState done [12:09:04]FM_GetShiftState done [12:09:04]req_shift_opened done [12:09:04]requested_item shift.open_date is exist - process it [12:09:04]req_shift_open_date [12:09:04]req_shift_open_date done [12:09:04]produce_requested_data done [12:09:04]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68321,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [12:09:04]process_action_free close_receipt [12:09:04]json_value_free [12:09:04]json_value_free done [12:09:04]process_json_proto returns [12:09:04]Send response to host [12:09:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68321,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [12:09:04]free response buf [12:09:04]execute_script done [12:09:04]execute_script returns [12:09:04]free content buf [12:09:04]Sock 6.Close socket [12:09:04]Sock 6.Thread stoped [12:09:08]OFD Sender: No OFD packet to send [12:09:13]OFD Sender: No OFD packet to send [12:09:18]OFD Sender: No OFD packet to send [12:09:23]OFD Sender: No OFD packet to send [12:09:28]OFD Sender: No OFD packet to send [12:09:33]OFD Sender: No OFD packet to send [12:09:38]OFD Sender: No OFD packet to send [12:09:43]OFD Sender: No OFD packet to send [12:09:48]OFD Sender: No OFD packet to send [12:09:53]OFD Sender: No OFD packet to send [12:09:58]OFD Sender: No OFD packet to send [12:10:03]OFD Sender: No OFD packet to send [12:10:08]OFD Sender: No OFD packet to send [12:10:13]OFD Sender: No OFD packet to send [12:10:18]OFD Sender: No OFD packet to send [12:10:23]OFD Sender: No OFD packet to send [12:10:28]OFD Sender: No OFD packet to send [12:10:33]OFD Sender: No OFD packet to send [12:10:38]OFD Sender: No OFD packet to send [12:10:43]OFD Sender: No OFD packet to send [12:10:48]OFD Sender: No OFD packet to send [12:10:53]OFD Sender: No OFD packet to send [12:10:58]OFD Sender: No OFD packet to send [12:11:03]OFD Sender: No OFD packet to send [12:11:08]OFD Sender: No OFD packet to send [12:11:13]OFD Sender: No OFD packet to send [12:11:18]OFD Sender: No OFD packet to send [12:11:23]OFD Sender: No OFD packet to send [12:11:28]OFD Sender: No OFD packet to send [12:11:33]OFD Sender: No OFD packet to send [12:11:38]OFD Sender: No OFD packet to send [12:11:43]OFD Sender: No OFD packet to send [12:11:48]OFD Sender: No OFD packet to send [12:11:53]OFD Sender: No OFD packet to send [12:11:58]OFD Sender: No OFD packet to send [12:12:03]OFD Sender: No OFD packet to send [12:12:08]OFD Sender: No OFD packet to send [12:12:13]OFD Sender: No OFD packet to send [12:12:18]OFD Sender: No OFD packet to send [12:12:23]OFD Sender: No OFD packet to send [12:12:28]OFD Sender: No OFD packet to send [12:12:33]OFD Sender: No OFD packet to send [12:12:38]OFD Sender: No OFD packet to send [12:12:43]OFD Sender: No OFD packet to send [12:12:48]OFD Sender: No OFD packet to send [12:12:53]OFD Sender: No OFD packet to send [12:12:58]OFD Sender: No OFD packet to send [12:13:03]OFD Sender: No OFD packet to send [12:13:08]OFD Sender: No OFD packet to send [12:13:13]OFD Sender: No OFD packet to send [12:13:18]OFD Sender: No OFD packet to send [12:13:23]OFD Sender: No OFD packet to send [12:13:28]OFD Sender: No OFD packet to send [12:13:33]OFD Sender: No OFD packet to send [12:13:38]OFD Sender: No OFD packet to send [12:13:43]OFD Sender: No OFD packet to send [12:13:48]OFD Sender: No OFD packet to send [12:13:53]OFD Sender: No OFD packet to send [12:13:58]OFD Sender: No OFD packet to send [12:14:03]OFD Sender: No OFD packet to send [12:14:08]OFD Sender: No OFD packet to send [12:14:13]OFD Sender: No OFD packet to send [12:14:18]OFD Sender: No OFD packet to send [12:14:23]OFD Sender: No OFD packet to send [12:14:28]OFD Sender: No OFD packet to send [12:14:33]OFD Sender: No OFD packet to send [12:14:38]OFD Sender: No OFD packet to send [12:14:43]OFD Sender: No OFD packet to send [12:14:48]OFD Sender: No OFD packet to send [12:14:53]OFD Sender: No OFD packet to send [12:14:58]OFD Sender: No OFD packet to send [12:15:03]OFD Sender: No OFD packet to send [12:15:08]OFD Sender: No OFD packet to send [12:15:13]OFD Sender: No OFD packet to send [12:15:18]OFD Sender: No OFD packet to send [12:15:23]OFD Sender: No OFD packet to send [12:15:28]OFD Sender: No OFD packet to send [12:15:33]OFD Sender: No OFD packet to send [12:15:38]OFD Sender: No OFD packet to send [12:15:43]OFD Sender: No OFD packet to send [12:15:48]OFD Sender: No OFD packet to send [12:15:53]OFD Sender: No OFD packet to send [12:15:58]OFD Sender: No OFD packet to send [12:16:03]OFD Sender: No OFD packet to send [12:16:08]OFD Sender: No OFD packet to send [12:16:13]OFD Sender: No OFD packet to send [12:16:18]OFD Sender: No OFD packet to send [12:16:23]OFD Sender: No OFD packet to send [12:16:28]OFD Sender: No OFD packet to send [12:16:33]OFD Sender: No OFD packet to send [12:16:38]OFD Sender: No OFD packet to send [12:16:43]OFD Sender: No OFD packet to send [12:16:48]OFD Sender: No OFD packet to send [12:16:53]OFD Sender: No OFD packet to send [12:16:58]OFD Sender: No OFD packet to send [12:17:03]OFD Sender: No OFD packet to send [12:17:08]OFD Sender: No OFD packet to send [12:17:13]OFD Sender: No OFD packet to send [12:17:18]OFD Sender: No OFD packet to send [12:17:23]OFD Sender: No OFD packet to send [12:17:28]OFD Sender: No OFD packet to send [12:17:33]OFD Sender: No OFD packet to send [12:17:38]OFD Sender: No OFD packet to send [12:17:43]OFD Sender: No OFD packet to send [12:17:48]OFD Sender: No OFD packet to send [12:17:53]OFD Sender: No OFD packet to send [12:17:58]OFD Sender: No OFD packet to send [12:18:03]OFD Sender: No OFD packet to send [12:18:08]OFD Sender: No OFD packet to send [12:18:13]OFD Sender: No OFD packet to send [12:18:18]OFD Sender: No OFD packet to send [12:18:23]OFD Sender: No OFD packet to send [12:18:26]accept exits with 5 [12:18:26]New connection [12:18:26]New thread 3066686820 created [12:18:26]Thread 3066543460 joined [12:18:26]Waiting for new connection... [12:18:26] Sock 5.Parse request [12:18:26]Sock 5.Check first char [12:18:26]Sock 5.First char is OK [12:18:26]request: POST /json_proto HTTP/1.0 [12:18:26]Method: POST [12:18:26]URL: /json_proto [12:18:26]Method is POST - this is cgi request [12:18:26]url: /json_proto [12:18:26]query_string will be loaded in cgi processing [12:18:26]execute_cgi json_proto POST (null) [12:18:26]execute_cgi path=json_proto method=POST [12:18:26]POST find Content-Length [12:18:26]Host: 172.17.36.132:8080 [12:18:26]Content-Length: 677 [12:18:26]Content-Type: application/json [12:18:26] [12:18:26]POST finish read [12:18:26]Found Content-Length = 677 [12:18:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706405", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:26]execute_script... [12:18:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706405", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:26]POST & json_proto [12:18:26]process_json_proto [12:18:26]json parsed OK: [12:18:26]protocol is kg_v1.0 [12:18:26]action value=close_receipt [12:18:26]process_action close_receipt [12:18:26]cmd_close_receipt [12:18:26]MH_GetDate [12:18:26]Write to MH i2c: F0 00 00 C7 30 E6 [12:18:26]Write i2c OK [12:18:26]MH_I2C_Read... [12:18:26]Read from MH i2c: F0 [12:18:26]MH_I2C_Read... [12:18:26]Read from MH i2c: F0 09 00 [12:18:26]MH_I2C_Read... [12:18:26]Read from MH i2c: F0 09 00 C7 30 00 97 B4 5D 66 B2 22 B0 64 E5 [12:18:26]GetLastDocTimeStamp 1717416545 [12:18:26]current date 1717417111 [12:18:26]FM_GetShiftState [12:18:26]SAM_PROTO_GetShiftState [12:18:26]wFMCommunicate request_size=4 [12:18:26]MH_SAM_APDU [12:18:26]CAPDU: 80 13 01 00 [12:18:26]Write to MH i2c: E2 08 00 C8 30 80 13 01 00 00 00 00 00 75 [12:18:26]Write i2c OK [12:18:26]MH_I2C_Read... [12:18:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:26]Read from MH i2c: E2 [12:18:26]MH_I2C_Read... [12:18:26]Read from MH i2c: E2 0E 00 [12:18:26]MH_I2C_Read... [12:18:26]Read from MH i2c: E2 0E 00 C8 30 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 50 [12:18:26]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [12:18:26]wFMCommunicate OK [12:18:26]SAM_PROTO_GetShiftState done [12:18:26]FM_GetShiftState done [12:18:26]opened in 1717378033 [12:18:26]opened+sec_in_day 1717464433 [12:18:26]quantity*price = 60009 [12:18:26]sum+1 = 60010 [12:18:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 68 03.06.2024 12:18 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68322 ФПД: 180688172449881 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T121831&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68322&fm=180688172449881&tin=02508201610067®Number=0000000000098096&sum=60000 [12:18:27]StoreToDocumentArchive [12:18:27]shift 324 fd 68322 [12:18:27]save to /storage/0324/doc_00068322 [12:18:27]save last doc name /storage/0324/doc_00068322 to /storage/kkm_last_doc_name [12:18:27]save OK [12:18:27]Clear old archive folders... [12:18:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:18:27]tlvbuf is 00464360 [12:18:27]SAM_PROTO_ClearQueue [12:18:27]wFMCommunicate request_size=4 [12:18:27]MH_SAM_APDU [12:18:27]CAPDU: 80 09 00 00 [12:18:27]Write to MH i2c: E2 08 00 D5 30 80 09 00 00 00 00 00 00 77 [12:18:27]Write i2c OK [12:18:27]MH_I2C_Read... [12:18:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:18:27]Read from MH i2c: E2 [12:18:27]MH_I2C_Read... [12:18:27]Read from MH i2c: E2 03 00 [12:18:27]MH_I2C_Read... [12:18:27]Read from MH i2c: E2 03 00 D5 30 00 90 00 79 [12:18:27]RAPDU: 90 00 [12:18:27]wFMCommunicate OK [12:18:27]SAM_PROTO_ClearQueue done [12:18:27]KKMCreateOFDPacket [12:18:27]OFDProtocolAddRootSTLVToBuf [12:18:27]FM_MakeSignedData [12:18:27]FM_MakeSignedData [12:18:27]SAM_PROTO_SignData [12:18:27]wFMCommunicate request_size=4 [12:18:27]MH_SAM_APDU [12:18:27]CAPDU: 80 0D 01 02 [12:18:27]Write to MH i2c: E2 08 00 D6 30 80 0D 01 02 00 00 00 00 7F [12:18:27]Write i2c OK [12:18:27]MH_I2C_Read... [12:18:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:18:27]Read from MH i2c: E2 [12:18:27]MH_I2C_Read... [12:18:27]Read from MH i2c: E2 03 00 [12:18:27]MH_I2C_Read... [12:18:27]Read from MH i2c: E2 03 00 D6 30 00 90 00 7A [12:18:27]RAPDU: 90 00 [12:18:27]wFMCommunicate OK [12:18:27]wFMCommunicate request_size=255 [12:18:27]MH_SAM_APDU [12:18:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 97 B4 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E2 0A 01 00 35 04 06 00 A4 [12:18:27]Write to MH i2c: E2 02 01 D7 30 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 97 B4 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E2 0A 01 00 35 04 06 00 A4 00 00 11 [12:18:27]Write i2c OK [12:18:27]MH_I2C_Read... [12:18:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:28]Read from MH i2c: E2 [12:18:28]MH_I2C_Read... [12:18:28]Read from MH i2c: E2 03 00 [12:18:28]MH_I2C_Read... [12:18:28]Read from MH i2c: E2 03 00 D7 30 00 90 00 7B [12:18:28]RAPDU: 90 00 [12:18:28]wFMCommunicate OK [12:18:28]wFMCommunicate request_size=10 [12:18:28]MH_SAM_APDU [12:18:28]CAPDU: 80 0D 02 02 05 55 BE 55 80 59 [12:18:28]Write to MH i2c: E2 0D 00 D8 30 80 0D 02 02 05 00 55 BE 55 80 59 00 00 CD [12:18:28]Write i2c OK [12:18:28]MH_I2C_Read... [12:18:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:28]Read from MH i2c: E2 [12:18:28]MH_I2C_Read... [12:18:28]Read from MH i2c: E2 03 00 [12:18:28]MH_I2C_Read... [12:18:28]Read from MH i2c: E2 03 00 D8 30 00 90 00 7C [12:18:28]RAPDU: 90 00 [12:18:28]wFMCommunicate OK [12:18:28]wFMCommunicate request_size=4 [12:18:28]MH_SAM_APDU [12:18:28]CAPDU: 80 0D 03 02 [12:18:28]Write to MH i2c: E2 08 00 D9 30 80 0D 03 02 00 00 00 00 84 [12:18:28]Write i2c OK [12:18:28]MH_I2C_Read... [12:18:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:18:28]Read from MH i2c: E2 [12:18:28]MH_I2C_Read... [12:18:28]Read from MH i2c: E2 0B 00 [12:18:28]MH_I2C_Read... [12:18:28]Read from MH i2c: E2 0B 00 D9 30 00 A1 F1 CB 3F 5D B5 3F BF 90 00 31 [12:18:28]RAPDU: A1 F1 CB 3F 5D B5 3F BF 90 00 [12:18:28]wFMCommunicate OK [12:18:28]SAM_PROTO_SignData done [12:18:28]FM_MakeSignedData done [12:18:28]CreateOFDProtocolMessage [12:18:28]wFMCommunicate request_size=4 [12:18:28]MH_SAM_APDU [12:18:28]CAPDU: 80 11 00 00 [12:18:28]Write to MH i2c: E2 08 00 DA 30 80 11 00 00 00 00 00 00 84 [12:18:28]Write i2c OK [12:18:28]MH_I2C_Read... [12:18:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:28]Read from MH i2c: E2 [12:18:28]MH_I2C_Read... [12:18:28]Read from MH i2c: E2 17 00 [12:18:28]MH_I2C_Read... [12:18:28]Read from MH i2c: E2 17 00 DA 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 CF [12:18:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:18:28]wFMCommunicate OK [12:18:28]CreateOFDProtocolMessage done [12:18:28]OFDSenderStorePacket 68322 [12:18:28]StoreOFDPacket docnum=68322 [12:18:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 40 CA 07 01 99 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 97 B4 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E2 0A 01 00 35 04 06 00 A4 55 BE 55 80 59 A1 F1 CB 3F 5D B5 3F BF [12:18:28]CheckFolder [12:18:28]dirname=/storage/ofd_packets [12:18:28]CheckFolder done [12:18:28]ProducePacketName [12:18:28]name=ofd_packets/00068322 [12:18:28]NVStorageSaveData ofd_packets/00068322 [12:18:28]File name is /storage/ofd_packets/00068322 [12:18:28]Write 301 bytes [12:18:28]NVStorageSaveData done [12:18:28]OFDSenderStorePacket done [12:18:28]KKMCreateOFDPacket done [12:18:28]NVStorageSaveData kkm_last_timestamp [12:18:28]File name is /storage/kkm_last_timestamp [12:18:28]Write 4 bytes [12:18:28]NVStorageSaveData done [12:18:28]ExternCall_PrintAddStr [12:18:28]wPrintStart [12:18:28]Write to MH i2c: 01 00 00 DB 30 0B [12:18:28]Write i2c OK [12:18:28]MH_I2C_Read... [12:18:28]Read from MH i2c: 01 [12:18:28]MH_I2C_Read... [12:18:28]Read from MH i2c: 01 07 00 [12:18:28]MH_I2C_Read... [12:18:28]Read from MH i2c: 01 07 00 DB 30 00 00 00 00 00 FF 0F 20 [12:18:28]RasterBufferAndPrint [12:18:28]line Счет N : (1)706405 [12:18:28]line ИНН: 02508201610067 [12:18:28]line Контрольно-Кассовый Чек [12:18:28]line ПРОДАЖА [12:18:28]line ТРК (МРК, ГНК) : 42 [12:18:28]line Товар: 2710124130 [12:18:28]line Аи-92-К-4 [12:18:28]line 8.970 * 66.90 [12:18:28]line = 600.09 [12:18:28]line НДС 12% НСП 1% [12:18:28]line > о реализуемом товаре [12:18:28]line ОКРУГЛЕНИЕ: -0.09 [12:18:28]line ИТОГО: 600.00 [12:18:28]line Внесено: 600.00 [12:18:28]line СДАЧА: 0.00 [12:18:28]line НСП 1% : 5.31 [12:18:28]line НДС 12% : 63.73 [12:18:28]line Наличными: 600.00 [12:18:28]line Безнал.: 0.00 [12:18:28]line Место: АЗС № 62 "Партнер Нефть" [12:18:28]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [12:18:28]line СНО: Общий режим [12:18:28]line Чек 68 03.06.2024 12:18 [12:18:28]line Смена: 324 ФФД: 1.0 [12:18:28]line ЗНМ: 0300000181 [12:18:28]line РНМ: 0000000000098096 [12:18:28]line Версия ККМ: 001 [12:18:28]line ФМ: 0000000000965400 [12:18:28]line ФД: 68322 [12:18:28]line ФПД: 180688172449881 [12:18:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T121831&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68322&fm=180688172449881&tin=02508201610067®Number=0000000000098096&sum=60000 [12:18:28]OFD Sender: Processing packet 68322 [packets to send 26, broken 25] [12:18:28]ProducePacketName [12:18:28]name=ofd_packets/00068322 [12:18:28]OFD Sender: To server: pG, [12:18:28]CommunicateWithHost lk.salyk.kg:30040 [12:18:28]ConnectInit lk.salyk.kg [12:18:28]written 0, free lines is 4095 [12:18:28]Connected sock=7 [12:18:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 40 CA 07 01 99 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 97 B4 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E2 0A 01 00 35 04 06 00 A4 55 BE 55 80 59 A1 F1 CB 3F 5D B5 3F BF [12:18:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 8F 8B 47 00 13 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E2 0A 01 00 F4 03 04 00 93 5B 5D 66 B6 04 01 00 00 CC 5A FE 44 1B 50 90 F7 [12:18:28]CommunicateWithHost err = 0 [12:18:28]CheckOFDResponse [12:18:28]1017 (14) - 77093643461234 [12:18:28]1041 (16) - 0000000000965400 [12:18:28]1040 (4) - 68322 [12:18:28]1012 (4) - 03.06.2024 05:58 [12:18:28]1206 (1) - 0 [12:18:28]OFD Sender: Remove packet 68322 [12:18:28]ProducePacketName [12:18:28]name=ofd_packets/00068322 [12:18:28]NVStorageDeleteData [12:18:29]Write to MH i2c: 01 00 00 06 31 37 [12:18:29]Write i2c OK [12:18:29]MH_I2C_Read... [12:18:29]Read from MH i2c: 01 [12:18:29]MH_I2C_Read... [12:18:29]Read from MH i2c: 01 07 00 [12:18:29]MH_I2C_Read... [12:18:29]Read from MH i2c: 01 07 00 06 31 00 00 00 00 00 DF 0C 29 [12:18:29]RasterBufferAndPrint [12:18:29]line [12:18:29]line [12:18:29]line [12:18:29]line [12:18:29]line [12:18:29]written 0, free lines is 3302 [12:18:29]MH_Cut [12:18:29]Write to MH i2c: D1 01 00 0D 31 01 10 [12:18:29]Write i2c OK [12:18:29]MH_I2C_Read... [12:18:29]Read from MH i2c: D1 [12:18:29]MH_I2C_Read... [12:18:29]Read from MH i2c: D1 01 00 [12:18:29]MH_I2C_Read... [12:18:29]Read from MH i2c: D1 01 00 0D 31 00 0F [12:18:29]Write to MH i2c: 01 00 00 0E 31 3F [12:18:29]Write i2c OK [12:18:29]MH_I2C_Read... [12:18:29]OFD Sender: No OFD packet to send [12:18:29]*** Cut start [12:18:29]*** Partial cut [12:18:29]*** CUTSNS_PIN = 1 [12:18:29]*** CUTSNS_PIN = 0 [12:18:30]*** Brake cut motor [12:18:30]Read from MH i2c: 01 [12:18:30]MH_I2C_Read... [12:18:30]*** Stop cut motor [12:18:30]*** Cut end [12:18:30]Read from MH i2c: 01 07 00 [12:18:30]MH_I2C_Read... [12:18:30]Read from MH i2c: 01 07 00 0E 31 00 00 00 00 00 FF 0F 54 [12:18:30]process_action close_receipt done [12:18:30]requested_data is exist [12:18:30]produce_requested_data [12:18:30]requested_item fm.sn is exist - process it [12:18:30]wFMCommunicate request_size=4 [12:18:30]MH_SAM_APDU [12:18:30]CAPDU: 80 11 00 00 [12:18:30]Write to MH i2c: E2 08 00 0F 31 80 11 00 00 00 00 00 00 BA [12:18:30]Write i2c OK [12:18:30]MH_I2C_Read... [12:18:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:30]Read from MH i2c: E2 [12:18:30]MH_I2C_Read... [12:18:30]Read from MH i2c: E2 17 00 [12:18:30]MH_I2C_Read... [12:18:30]Read from MH i2c: E2 17 00 0F 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 05 [12:18:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:18:30]wFMCommunicate OK [12:18:30]requested_item fd.num is exist - process it [12:18:30]SAM_PROTO_GetFieldsCounters [12:18:30]wFMCommunicate request_size=4 [12:18:30]MH_SAM_APDU [12:18:30]CAPDU: 80 13 00 00 [12:18:30]Write to MH i2c: E2 08 00 10 31 80 13 00 00 00 00 00 00 BD [12:18:30]Write i2c OK [12:18:30]MH_I2C_Read... [12:18:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:18:30]Read from MH i2c: E2 [12:18:30]MH_I2C_Read... [12:18:30]Read from MH i2c: E2 62 00 [12:18:30]MH_I2C_Read... [12:18:30]Read from MH i2c: E2 62 00 10 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 E2 0A 01 00 0E 04 04 00 44 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 DB [12:18:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 E2 0A 01 00 0E 04 04 00 44 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 [12:18:30]wFMCommunicate OK [12:18:30]SAM_PROTO_GetFieldsCounters done [12:18:30]requested_item shift.num is exist - process it [12:18:30]requested_item shift.opened is exist - process it [12:18:30]req_shift_opened [12:18:30]FM_GetShiftState [12:18:30]SAM_PROTO_GetShiftState [12:18:30]wFMCommunicate request_size=4 [12:18:30]MH_SAM_APDU [12:18:30]CAPDU: 80 13 01 00 [12:18:30]Write to MH i2c: E2 08 00 11 31 80 13 01 00 00 00 00 00 BF [12:18:30]Write i2c OK [12:18:30]MH_I2C_Read... [12:18:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:30]Read from MH i2c: E2 [12:18:30]MH_I2C_Read... [12:18:30]Read from MH i2c: E2 0E 00 [12:18:30]MH_I2C_Read... [12:18:30]Read from MH i2c: E2 0E 00 11 31 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 9A [12:18:30]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [12:18:30]wFMCommunicate OK [12:18:30]SAM_PROTO_GetShiftState done [12:18:30]FM_GetShiftState done [12:18:30]req_shift_opened done [12:18:30]requested_item shift.open_date is exist - process it [12:18:30]req_shift_open_date [12:18:30]req_shift_open_date done [12:18:30]produce_requested_data done [12:18:30]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68322,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [12:18:30]process_action_free close_receipt [12:18:30]json_value_free [12:18:30]json_value_free done [12:18:30]process_json_proto returns [12:18:30]Send response to host [12:18:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68322,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [12:18:30]free response buf [12:18:30]execute_script done [12:18:30]execute_script returns [12:18:30]free content buf [12:18:30]Sock 5.Close socket [12:18:30]Sock 5.Thread stoped [12:18:34]OFD Sender: No OFD packet to send [12:18:39]OFD Sender: No OFD packet to send [12:18:44]OFD Sender: No OFD packet to send [12:18:49]OFD Sender: No OFD packet to send [12:18:54]OFD Sender: No OFD packet to send [12:18:59]OFD Sender: No OFD packet to send [12:19:04]OFD Sender: No OFD packet to send [12:19:09]OFD Sender: No OFD packet to send [12:19:14]OFD Sender: No OFD packet to send [12:19:19]OFD Sender: No OFD packet to send [12:19:24]OFD Sender: No OFD packet to send [12:19:29]OFD Sender: No OFD packet to send [12:19:34]OFD Sender: No OFD packet to send [12:19:39]OFD Sender: No OFD packet to send [12:19:44]OFD Sender: No OFD packet to send [12:19:49]OFD Sender: No OFD packet to send [12:19:54]OFD Sender: No OFD packet to send [12:19:59]OFD Sender: No OFD packet to send [12:20:04]OFD Sender: No OFD packet to send [12:20:09]OFD Sender: No OFD packet to send [12:20:14]OFD Sender: No OFD packet to send [12:20:19]OFD Sender: No OFD packet to send [12:20:24]OFD Sender: No OFD packet to send [12:20:29]OFD Sender: No OFD packet to send [12:20:34]OFD Sender: No OFD packet to send [12:20:39]OFD Sender: No OFD packet to send [12:20:44]OFD Sender: No OFD packet to send [12:20:49]OFD Sender: No OFD packet to send [12:20:54]OFD Sender: No OFD packet to send [12:20:59]OFD Sender: No OFD packet to send [12:21:04]OFD Sender: No OFD packet to send [12:21:09]OFD Sender: No OFD packet to send [12:21:14]OFD Sender: No OFD packet to send [12:21:19]OFD Sender: No OFD packet to send [12:21:22]accept exits with 6 [12:21:22]New connection [12:21:22]New thread 3066543460 created [12:21:22]Thread 3066686820 joined [12:21:22]Waiting for new connection... [12:21:22] Sock 6.Parse request [12:21:22]Sock 6.Check first char [12:21:22]Sock 6.First char is OK [12:21:22]request: POST /json_proto HTTP/1.0 [12:21:22]Method: POST [12:21:22]URL: /json_proto [12:21:22]Method is POST - this is cgi request [12:21:22]url: /json_proto [12:21:22]query_string will be loaded in cgi processing [12:21:22]execute_cgi json_proto POST (null) [12:21:22]execute_cgi path=json_proto method=POST [12:21:22]POST find Content-Length [12:21:22]Host: 172.17.36.132:8080 [12:21:22]Content-Length: 678 [12:21:22]Content-Type: application/json [12:21:22] [12:21:22]POST finish read [12:21:22]Found Content-Length = 678 [12:21:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706406", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:21:22]execute_script... [12:21: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)706406", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:21:22]POST & json_proto [12:21:22]process_json_proto [12:21:22]json parsed OK: [12:21:22]protocol is kg_v1.0 [12:21:22]action value=close_receipt [12:21:22]process_action close_receipt [12:21:22]cmd_close_receipt [12:21:22]MH_GetDate [12:21:22]Write to MH i2c: F0 00 00 12 31 32 [12:21:22]Write i2c OK [12:21:22]MH_I2C_Read... [12:21:22]Read from MH i2c: F0 [12:21:22]MH_I2C_Read... [12:21:22]Read from MH i2c: F0 09 00 [12:21:22]MH_I2C_Read... [12:21:22]Read from MH i2c: F0 09 00 12 31 00 47 B5 5D 66 B2 22 B0 64 E2 [12:21:22]GetLastDocTimeStamp 1717417111 [12:21:22]current date 1717417287 [12:21:22]FM_GetShiftState [12:21:22]SAM_PROTO_GetShiftState [12:21:22]wFMCommunicate request_size=4 [12:21:22]MH_SAM_APDU [12:21:22]CAPDU: 80 13 01 00 [12:21:22]Write to MH i2c: E2 08 00 13 31 80 13 01 00 00 00 00 00 C1 [12:21:22]Write i2c OK [12:21:22]MH_I2C_Read... [12:21:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:22]Read from MH i2c: E2 [12:21:22]MH_I2C_Read... [12:21:22]Read from MH i2c: E2 0E 00 [12:21:22]MH_I2C_Read... [12:21:22]Read from MH i2c: E2 0E 00 13 31 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 9C [12:21:22]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [12:21:22]wFMCommunicate OK [12:21:22]SAM_PROTO_GetShiftState done [12:21:22]FM_GetShiftState done [12:21:22]opened in 1717378033 [12:21:22]opened+sec_in_day 1717464433 [12:21:22]quantity*price = 70044 [12:21:22]sum+1 = 70045 [12:21:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 69 03.06.2024 12:21 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68323 ФПД: 278794155631456 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T122127&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68323&fm=278794155631456&tin=02508201610067®Number=0000000000098096&sum=70000 [12:21:23]StoreToDocumentArchive [12:21:23]shift 324 fd 68323 [12:21:23]save to /storage/0324/doc_00068323 [12:21:23]save last doc name /storage/0324/doc_00068323 to /storage/kkm_last_doc_name [12:21:23]save OK [12:21:23]Clear old archive folders... [12:21:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:21:23]tlvbuf is 004CEB00 [12:21:23]SAM_PROTO_ClearQueue [12:21:23]wFMCommunicate request_size=4 [12:21:23]MH_SAM_APDU [12:21:23]CAPDU: 80 09 00 00 [12:21:23]Write to MH i2c: E2 08 00 20 31 80 09 00 00 00 00 00 00 C3 [12:21:23]Write i2c OK [12:21:23]MH_I2C_Read... [12:21:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:21:23]Read from MH i2c: E2 [12:21:23]MH_I2C_Read... [12:21:23]Read from MH i2c: E2 03 00 [12:21:23]MH_I2C_Read... [12:21:23]Read from MH i2c: E2 03 00 20 31 00 90 00 C5 [12:21:23]RAPDU: 90 00 [12:21:23]wFMCommunicate OK [12:21:23]SAM_PROTO_ClearQueue done [12:21:23]KKMCreateOFDPacket [12:21:23]OFDProtocolAddRootSTLVToBuf [12:21:23]FM_MakeSignedData [12:21:23]FM_MakeSignedData [12:21:23]SAM_PROTO_SignData [12:21:23]wFMCommunicate request_size=4 [12:21:23]MH_SAM_APDU [12:21:23]CAPDU: 80 0D 01 02 [12:21:23]Write to MH i2c: E2 08 00 21 31 80 0D 01 02 00 00 00 00 CB [12:21:23]Write i2c OK [12:21:23]MH_I2C_Read... [12:21:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:21:23]Read from MH i2c: E2 [12:21:23]MH_I2C_Read... [12:21:23]Read from MH i2c: E2 03 00 [12:21:23]MH_I2C_Read... [12:21:23]Read from MH i2c: E2 03 00 21 31 00 90 00 C6 [12:21:23]RAPDU: 90 00 [12:21:23]wFMCommunicate OK [12:21:23]wFMCommunicate request_size=255 [12:21:23]MH_SAM_APDU [12:21:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 47 B5 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E3 0A 01 00 35 04 06 00 FD [12:21:23]Write to MH i2c: E2 02 01 22 31 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 47 B5 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E3 0A 01 00 35 04 06 00 FD 00 00 9C [12:21:23]Write i2c OK [12:21:23]MH_I2C_Read... [12:21:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:21:23]Read from MH i2c: E2 [12:21:23]MH_I2C_Read... [12:21:23]Read from MH i2c: E2 03 00 [12:21:23]MH_I2C_Read... [12:21:23]Read from MH i2c: E2 03 00 22 31 00 90 00 C7 [12:21:23]RAPDU: 90 00 [12:21:23]wFMCommunicate OK [12:21:23]wFMCommunicate request_size=10 [12:21:23]MH_SAM_APDU [12:21:23]CAPDU: 80 0D 02 02 05 8F D2 9C A3 60 [12:21:23]Write to MH i2c: E2 0D 00 23 31 80 0D 02 02 05 00 8F D2 9C A3 60 00 00 D8 [12:21:23]Write i2c OK [12:21:23]MH_I2C_Read... [12:21:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:21:24]Read from MH i2c: E2 [12:21:24]MH_I2C_Read... [12:21:24]Read from MH i2c: E2 03 00 [12:21:24]MH_I2C_Read... [12:21:24]Read from MH i2c: E2 03 00 23 31 00 90 00 C8 [12:21:24]RAPDU: 90 00 [12:21:24]wFMCommunicate OK [12:21:24]wFMCommunicate request_size=4 [12:21:24]MH_SAM_APDU [12:21:24]CAPDU: 80 0D 03 02 [12:21:24]Write to MH i2c: E2 08 00 24 31 80 0D 03 02 00 00 00 00 D0 [12:21:24]Write i2c OK [12:21:24]MH_I2C_Read... [12:21:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:21:24]Read from MH i2c: E2 [12:21:24]MH_I2C_Read... [12:21:24]Read from MH i2c: E2 0B 00 [12:21:24]MH_I2C_Read... [12:21:24]Read from MH i2c: E2 0B 00 24 31 00 35 49 D8 9F 08 D1 FF 04 90 00 A2 [12:21:24]RAPDU: 35 49 D8 9F 08 D1 FF 04 90 00 [12:21:24]wFMCommunicate OK [12:21:24]SAM_PROTO_SignData done [12:21:24]FM_MakeSignedData done [12:21:24]CreateOFDProtocolMessage [12:21:24]wFMCommunicate request_size=4 [12:21:24]MH_SAM_APDU [12:21:24]CAPDU: 80 11 00 00 [12:21:24]Write to MH i2c: E2 08 00 25 31 80 11 00 00 00 00 00 00 D0 [12:21:24]Write i2c OK [12:21:24]MH_I2C_Read... [12:21:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:24]Read from MH i2c: E2 [12:21:24]MH_I2C_Read... [12:21:24]Read from MH i2c: E2 17 00 [12:21:24]MH_I2C_Read... [12:21:24]Read from MH i2c: E2 17 00 25 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 1B [12:21:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:21:24]wFMCommunicate OK [12:21:24]CreateOFDProtocolMessage done [12:21:24]OFDSenderStorePacket 68323 [12:21:24]StoreOFDPacket docnum=68323 [12:21:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 FE 8B 07 01 8C 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 47 B5 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E3 0A 01 00 35 04 06 00 FD 8F D2 9C A3 60 35 49 D8 9F 08 D1 FF 04 [12:21:24]CheckFolder [12:21:24]dirname=/storage/ofd_packets [12:21:24]CheckFolder done [12:21:24]ProducePacketName [12:21:24]name=ofd_packets/00068323 [12:21:24]NVStorageSaveData ofd_packets/00068323 [12:21:24]File name is /storage/ofd_packets/00068323 [12:21:24]Write 301 bytes [12:21:24]NVStorageSaveData done [12:21:24]OFDSenderStorePacket done [12:21:24]KKMCreateOFDPacket done [12:21:24]NVStorageSaveData kkm_last_timestamp [12:21:24]File name is /storage/kkm_last_timestamp [12:21:24]Write 4 bytes [12:21:24]NVStorageSaveData done [12:21:24]ExternCall_PrintAddStr [12:21:24]wPrintStart [12:21:24]Write to MH i2c: 01 00 00 26 31 57 [12:21:24]Write i2c OK [12:21:24]MH_I2C_Read... [12:21:24]Read from MH i2c: 01 [12:21:24]MH_I2C_Read... [12:21:24]Read from MH i2c: 01 07 00 [12:21:24]MH_I2C_Read... [12:21:24]Read from MH i2c: 01 07 00 26 31 00 00 00 00 00 FF 0F 6C [12:21:24]RasterBufferAndPrint [12:21:24]line Счет N : (1)706406 [12:21:24]line ИНН: 02508201610067 [12:21:24]line Контрольно-Кассовый Чек [12:21:24]line ПРОДАЖА [12:21:24]line ТРК (МРК, ГНК) : 32 [12:21:24]line Товар: 2710124130 [12:21:24]line Аи-92-К-4 [12:21:24]line 10.470 * 66.90 [12:21:24]line = 700.44 [12:21:24]line НДС 12% НСП 1% [12:21:24]line > о реализуемом товаре [12:21:24]line ОКРУГЛЕНИЕ: -0.44 [12:21:24]line ИТОГО: 700.00 [12:21:24]line Внесено: 700.00 [12:21:24]line СДАЧА: 0.00 [12:21:24]line НСП 1% : 6.20 [12:21:24]line НДС 12% : 74.38 [12:21:24]line Наличными: 700.00 [12:21:24]line Безнал.: 0.00 [12:21:24]line Место: АЗС № 62 "Партнер Нефть" [12:21:24]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [12:21:24]line СНО: Общий режим [12:21:24]line Чек 69 03.06.2024 12:21 [12:21:24]line Смена: 324 ФФД: 1.0 [12:21:24]line ЗНМ: 0300000181 [12:21:24]line РНМ: 0000000000098096 [12:21:24]line Версия ККМ: 001 [12:21:24]line ФМ: 0000000000965400 [12:21:24]line ФД: 68323 [12:21:24]line ФПД: 278794155631456 [12:21:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T122127&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68323&fm=278794155631456&tin=02508201610067®Number=0000000000098096&sum=70000 [12:21:24]OFD Sender: Processing packet 68323 [packets to send 26, broken 25] [12:21:24]ProducePacketName [12:21:24]name=ofd_packets/00068323 [12:21:24]OFD Sender: To server: pG, [12:21:24]CommunicateWithHost lk.salyk.kg:30040 [12:21:24]ConnectInit lk.salyk.kg [12:21:24]written 0, free lines is 4095 [12:21:24]Connected sock=7 [12:21:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 FE 8B 07 01 8C 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 47 B5 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E3 0A 01 00 35 04 06 00 FD 8F D2 9C A3 60 35 49 D8 9F 08 D1 FF 04 [12:21:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 14 6B 47 00 8F D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E3 0A 01 00 F4 03 04 00 43 5C 5D 66 B6 04 01 00 00 4D C7 3B A0 A4 A3 78 27 [12:21:24]CommunicateWithHost err = 0 [12:21:24]CheckOFDResponse [12:21:24]1017 (14) - 77093643461234 [12:21:24]1041 (16) - 0000000000965400 [12:21:24]1040 (4) - 68323 [12:21:24]1012 (4) - 03.06.2024 06:01 [12:21:24]1206 (1) - 0 [12:21:24]OFD Sender: Remove packet 68323 [12:21:24]ProducePacketName [12:21:24]name=ofd_packets/00068323 [12:21:24]NVStorageDeleteData [12:21:24]Write to MH i2c: 01 00 00 51 31 82 [12:21:24]Write i2c OK [12:21:24]MH_I2C_Read... [12:21:24]Read from MH i2c: 01 [12:21:24]MH_I2C_Read... [12:21:24]Read from MH i2c: 01 07 00 [12:21:24]MH_I2C_Read... [12:21:24]Read from MH i2c: 01 07 00 51 31 00 00 00 00 00 EF 0C 84 [12:21:24]RasterBufferAndPrint [12:21:24]line [12:21:24]line [12:21:24]line [12:21:24]line [12:21:24]line [12:21:24]written 0, free lines is 3317 [12:21:24]MH_Cut [12:21:24]Write to MH i2c: D1 01 00 58 31 01 5B [12:21:24]Write i2c OK [12:21:24]MH_I2C_Read... [12:21:24]Read from MH i2c: D1 [12:21:24]MH_I2C_Read... [12:21:24]Read from MH i2c: D1 01 00 [12:21:24]MH_I2C_Read... [12:21:24]Read from MH i2c: D1 01 00 58 31 00 5A [12:21:24]Write to MH i2c: 01 00 00 59 31 8A [12:21:24]Write i2c OK [12:21:24]MH_I2C_Read... [12:21:25]OFD Sender: No OFD packet to send [12:21:25]*** Cut start [12:21:25]*** Partial cut [12:21:25]*** CUTSNS_PIN = 1 [12:21:25]*** CUTSNS_PIN = 0 [12:21:26]*** Brake cut motor [12:21:26]Read from MH i2c: 01 [12:21:26]MH_I2C_Read... [12:21:26]*** Stop cut motor [12:21:26]*** Cut end [12:21:26]Read from MH i2c: 01 07 00 [12:21:26]MH_I2C_Read... [12:21:26]Read from MH i2c: 01 07 00 59 31 00 00 00 00 00 FF 0F 9F [12:21:26]process_action close_receipt done [12:21:26]requested_data is exist [12:21:26]produce_requested_data [12:21:26]requested_item fm.sn is exist - process it [12:21:26]wFMCommunicate request_size=4 [12:21:26]MH_SAM_APDU [12:21:26]CAPDU: 80 11 00 00 [12:21:26]Write to MH i2c: E2 08 00 5A 31 80 11 00 00 00 00 00 00 05 [12:21:26]Write i2c OK [12:21:26]MH_I2C_Read... [12:21:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:26]Read from MH i2c: E2 [12:21:26]MH_I2C_Read... [12:21:26]Read from MH i2c: E2 17 00 [12:21:26]MH_I2C_Read... [12:21:26]Read from MH i2c: E2 17 00 5A 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 50 [12:21:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:21:26]wFMCommunicate OK [12:21:26]requested_item fd.num is exist - process it [12:21:26]SAM_PROTO_GetFieldsCounters [12:21:26]wFMCommunicate request_size=4 [12:21:26]MH_SAM_APDU [12:21:26]CAPDU: 80 13 00 00 [12:21:26]Write to MH i2c: E2 08 00 5B 31 80 13 00 00 00 00 00 00 08 [12:21:26]Write i2c OK [12:21:26]MH_I2C_Read... [12:21:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:21:26]Read from MH i2c: E2 [12:21:26]MH_I2C_Read... [12:21:26]Read from MH i2c: E2 62 00 [12:21:26]MH_I2C_Read... [12:21:26]Read from MH i2c: E2 62 00 5B 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 E3 0A 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 2A [12:21:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 E3 0A 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:21:26]wFMCommunicate OK [12:21:26]SAM_PROTO_GetFieldsCounters done [12:21:26]requested_item shift.num is exist - process it [12:21:26]requested_item shift.opened is exist - process it [12:21:26]req_shift_opened [12:21:26]FM_GetShiftState [12:21:26]SAM_PROTO_GetShiftState [12:21:26]wFMCommunicate request_size=4 [12:21:26]MH_SAM_APDU [12:21:26]CAPDU: 80 13 01 00 [12:21:26]Write to MH i2c: E2 08 00 5C 31 80 13 01 00 00 00 00 00 0A [12:21:26]Write i2c OK [12:21:26]MH_I2C_Read... [12:21:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:26]Read from MH i2c: E2 [12:21:26]MH_I2C_Read... [12:21:26]Read from MH i2c: E2 0E 00 [12:21:26]MH_I2C_Read... [12:21:26]Read from MH i2c: E2 0E 00 5C 31 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 E5 [12:21:26]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [12:21:26]wFMCommunicate OK [12:21:26]SAM_PROTO_GetShiftState done [12:21:26]FM_GetShiftState done [12:21:26]req_shift_opened done [12:21:26]requested_item shift.open_date is exist - process it [12:21:26]req_shift_open_date [12:21:26]req_shift_open_date done [12:21:26]produce_requested_data done [12:21:26]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68323,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [12:21:26]process_action_free close_receipt [12:21:26]json_value_free [12:21:26]json_value_free done [12:21:26]process_json_proto returns [12:21:26]Send response to host [12:21:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68323,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [12:21:26]free response buf [12:21:26]execute_script done [12:21:26]execute_script returns [12:21:26]free content buf [12:21:26]Sock 6.Close socket [12:21:26]Sock 6.Thread stoped [12:21:30]OFD Sender: No OFD packet to send [12:21:35]OFD Sender: No OFD packet to send [12:21:40]OFD Sender: No OFD packet to send [12:21:45]OFD Sender: No OFD packet to send [12:21:50]OFD Sender: No OFD packet to send [12:21:55]OFD Sender: No OFD packet to send [12:22:00]OFD Sender: No OFD packet to send [12:22:05]OFD Sender: No OFD packet to send [12:22:10]OFD Sender: No OFD packet to send [12:22:15]OFD Sender: No OFD packet to send [12:22:20]OFD Sender: No OFD packet to send [12:22:25]OFD Sender: No OFD packet to send [12:22:30]OFD Sender: No OFD packet to send [12:22:35]OFD Sender: No OFD packet to send [12:22:40]OFD Sender: No OFD packet to send [12:22:45]OFD Sender: No OFD packet to send [12:22:47]accept exits with 5 [12:22:47]New connection [12:22:47]New thread 3066686820 created [12:22:47]Thread 3066543460 joined [12:22:47]Waiting for new connection... [12:22:47] Sock 5.Parse request [12:22:47]Sock 5.Check first char [12:22:47]Sock 5.First char is OK [12:22:47]request: POST /json_proto HTTP/1.0 [12:22:47]Method: POST [12:22:47]URL: /json_proto [12:22:47]Method is POST - this is cgi request [12:22:47]url: /json_proto [12:22:47]query_string will be loaded in cgi processing [12:22:47]execute_cgi json_proto POST (null) [12:22:47]execute_cgi path=json_proto method=POST [12:22:47]POST find Content-Length [12:22:47]Host: 172.17.36.132:8080 [12:22:47]Content-Length: 682 [12:22:47]Content-Type: application/json [12:22:47] [12:22:47]POST finish read [12:22:47]Found Content-Length = 682 [12:22:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706407", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "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:22:47]execute_script... [12:22: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)706407", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "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:22:47]POST & json_proto [12:22:47]process_json_proto [12:22:47]json parsed OK: [12:22:47]protocol is kg_v1.0 [12:22:47]action value=close_receipt [12:22:47]process_action close_receipt [12:22:47]cmd_close_receipt [12:22:47]MH_GetDate [12:22:47]Write to MH i2c: F0 00 00 5D 31 7D [12:22:47]Write i2c OK [12:22:47]MH_I2C_Read... [12:22:47]Read from MH i2c: F0 [12:22:47]MH_I2C_Read... [12:22:47]Read from MH i2c: F0 09 00 [12:22:47]MH_I2C_Read... [12:22:47]Read from MH i2c: F0 09 00 5D 31 00 9C B5 5D 66 B2 22 B0 64 82 [12:22:47]GetLastDocTimeStamp 1717417287 [12:22:47]current date 1717417372 [12:22:47]FM_GetShiftState [12:22:47]SAM_PROTO_GetShiftState [12:22:47]wFMCommunicate request_size=4 [12:22:47]MH_SAM_APDU [12:22:47]CAPDU: 80 13 01 00 [12:22:47]Write to MH i2c: E2 08 00 5E 31 80 13 01 00 00 00 00 00 0C [12:22:47]Write i2c OK [12:22:47]MH_I2C_Read... [12:22:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:22:47]Read from MH i2c: E2 [12:22:47]MH_I2C_Read... [12:22:47]Read from MH i2c: E2 0E 00 [12:22:47]MH_I2C_Read... [12:22:47]Read from MH i2c: E2 0E 00 5E 31 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 E7 [12:22:47]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [12:22:47]wFMCommunicate OK [12:22:47]SAM_PROTO_GetShiftState done [12:22:47]FM_GetShiftState done [12:22:47]opened in 1717378033 [12:22:47]opened+sec_in_day 1717464433 [12:22:47]quantity*price = 50009 [12:22:47]sum+1 = 50010 [12:22:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 70 03.06.2024 12:22 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68324 ФПД: 57817658830999 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T122253&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68324&fm=57817658830999&tin=02508201610067®Number=0000000000098096&sum=50000 [12:22:49]StoreToDocumentArchive [12:22:49]shift 324 fd 68324 [12:22:49]save to /storage/0324/doc_00068324 [12:22:49]save last doc name /storage/0324/doc_00068324 to /storage/kkm_last_doc_name [12:22:49]save OK [12:22:49]Clear old archive folders... [12:22:49]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:22:49]tlvbuf is 004DA5C0 [12:22:49]SAM_PROTO_ClearQueue [12:22:49]wFMCommunicate request_size=4 [12:22:49]MH_SAM_APDU [12:22:49]CAPDU: 80 09 00 00 [12:22:49]Write to MH i2c: E2 08 00 6B 31 80 09 00 00 00 00 00 00 0E [12:22:49]Write i2c OK [12:22:49]MH_I2C_Read... [12:22:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:22:49]Read from MH i2c: E2 [12:22:49]MH_I2C_Read... [12:22:49]Read from MH i2c: E2 03 00 [12:22:49]MH_I2C_Read... [12:22:49]Read from MH i2c: E2 03 00 6B 31 00 90 00 10 [12:22:49]RAPDU: 90 00 [12:22:49]wFMCommunicate OK [12:22:49]SAM_PROTO_ClearQueue done [12:22:49]KKMCreateOFDPacket [12:22:49]OFDProtocolAddRootSTLVToBuf [12:22:49]FM_MakeSignedData [12:22:49]FM_MakeSignedData [12:22:49]SAM_PROTO_SignData [12:22:49]wFMCommunicate request_size=4 [12:22:49]MH_SAM_APDU [12:22:49]CAPDU: 80 0D 01 02 [12:22:49]Write to MH i2c: E2 08 00 6C 31 80 0D 01 02 00 00 00 00 16 [12:22:49]Write i2c OK [12:22:49]MH_I2C_Read... [12:22:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:22:49]Read from MH i2c: E2 [12:22:49]MH_I2C_Read... [12:22:49]Read from MH i2c: E2 03 00 [12:22:49]MH_I2C_Read... [12:22:49]Read from MH i2c: E2 03 00 6C 31 00 90 00 11 [12:22:49]RAPDU: 90 00 [12:22:49]wFMCommunicate OK [12:22:49]wFMCommunicate request_size=255 [12:22:49]MH_SAM_APDU [12:22: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 34 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 9D B5 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E4 0A 01 00 35 04 06 00 [12:22:49]Write to MH i2c: E2 02 01 6D 31 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 34 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 9D B5 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E4 0A 01 00 35 04 06 00 00 00 35 [12:22:49]Write i2c OK [12:22:49]MH_I2C_Read... [12:22:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:22:49]Read from MH i2c: E2 [12:22:49]MH_I2C_Read... [12:22:49]Read from MH i2c: E2 03 00 [12:22:49]MH_I2C_Read... [12:22:49]Read from MH i2c: E2 03 00 6D 31 00 90 00 12 [12:22:49]RAPDU: 90 00 [12:22:49]wFMCommunicate OK [12:22:49]wFMCommunicate request_size=11 [12:22:49]MH_SAM_APDU [12:22:49]CAPDU: 80 0D 02 02 06 34 95 B9 04 30 97 [12:22:49]Write to MH i2c: E2 0E 00 6E 31 80 0D 02 02 06 00 34 95 B9 04 30 97 00 00 72 [12:22:49]Write i2c OK [12:22:49]MH_I2C_Read... [12:22:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:22:49]Read from MH i2c: E2 [12:22:49]MH_I2C_Read... [12:22:49]Read from MH i2c: E2 03 00 [12:22:49]MH_I2C_Read... [12:22:49]Read from MH i2c: E2 03 00 6E 31 00 90 00 13 [12:22:49]RAPDU: 90 00 [12:22:49]wFMCommunicate OK [12:22:49]wFMCommunicate request_size=4 [12:22:49]MH_SAM_APDU [12:22:49]CAPDU: 80 0D 03 02 [12:22:49]Write to MH i2c: E2 08 00 6F 31 80 0D 03 02 00 00 00 00 1B [12:22:49]Write i2c OK [12:22:49]MH_I2C_Read... [12:22:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:22:49]Read from MH i2c: E2 [12:22:49]MH_I2C_Read... [12:22:49]Read from MH i2c: E2 0B 00 [12:22:49]MH_I2C_Read... [12:22:49]Read from MH i2c: E2 0B 00 6F 31 00 4B 27 AC 8F 41 B1 B5 02 90 00 72 [12:22:49]RAPDU: 4B 27 AC 8F 41 B1 B5 02 90 00 [12:22:49]wFMCommunicate OK [12:22:49]SAM_PROTO_SignData done [12:22:49]FM_MakeSignedData done [12:22:49]CreateOFDProtocolMessage [12:22:49]wFMCommunicate request_size=4 [12:22:49]MH_SAM_APDU [12:22:49]CAPDU: 80 11 00 00 [12:22:49]Write to MH i2c: E2 08 00 70 31 80 11 00 00 00 00 00 00 1B [12:22:49]Write i2c OK [12:22:49]MH_I2C_Read... [12:22:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:22:49]Read from MH i2c: E2 [12:22:49]MH_I2C_Read... [12:22:49]Read from MH i2c: E2 17 00 [12:22:49]MH_I2C_Read... [12:22:49]Read from MH i2c: E2 17 00 70 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 66 [12:22:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:22:49]wFMCommunicate OK [12:22:49]CreateOFDProtocolMessage done [12:22:49]OFDSenderStorePacket 68324 [12:22:49]StoreOFDPacket docnum=68324 [12:22:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 54 F7 08 01 0A DB 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 34 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 9D B5 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E4 0A 01 00 35 04 06 00 34 95 B9 04 30 97 4B 27 AC 8F 41 B1 B5 02 [12:22:49]CheckFolder [12:22:49]dirname=/storage/ofd_packets [12:22:49]CheckFolder done [12:22:49]ProducePacketName [12:22:49]name=ofd_packets/00068324 [12:22:49]NVStorageSaveData ofd_packets/00068324 [12:22:49]File name is /storage/ofd_packets/00068324 [12:22:49]Write 302 bytes [12:22:49]NVStorageSaveData done [12:22:49]OFDSenderStorePacket done [12:22:49]KKMCreateOFDPacket done [12:22:49]NVStorageSaveData kkm_last_timestamp [12:22:49]File name is /storage/kkm_last_timestamp [12:22:49]Write 4 bytes [12:22:49]NVStorageSaveData done [12:22:49]ExternCall_PrintAddStr [12:22:49]wPrintStart [12:22:49]Write to MH i2c: 01 00 00 71 31 A2 [12:22:49]Write i2c OK [12:22:49]MH_I2C_Read... [12:22:49]Read from MH i2c: 01 [12:22:49]MH_I2C_Read... [12:22:49]Read from MH i2c: 01 07 00 [12:22:49]MH_I2C_Read... [12:22:49]Read from MH i2c: 01 07 00 71 31 00 00 00 00 00 FF 0F B7 [12:22:49]RasterBufferAndPrint [12:22:49]line Счет N : (1)706407 [12:22:49]line ИНН: 02508201610067 [12:22:49]line Контрольно-Кассовый Чек [12:22:49]line ПРОДАЖА [12:22:49]line ТРК (МРК, ГНК) : 21 [12:22:49]line Товар: 2710194210 [12:22:49]line ДТ(л)-К-4 [12:22:49]line 6.860 * 72.90 [12:22:49]line = 500.09 [12:22:49]line НДС 12% НСП 1% [12:22:49]line > о реализуемом товаре [12:22:49]line ОКРУГЛЕНИЕ: -0.09 [12:22:49]line ИТОГО: 500.00 [12:22:49]line Внесено: 500.00 [12:22:49]line СДАЧА: 0.00 [12:22:49]line НСП 1% : 4.43 [12:22:49]line НДС 12% : 53.11 [12:22:49]line Наличными: 500.00 [12:22:49]line Безнал.: 0.00 [12:22:49]line Место: АЗС № 62 "Партнер Нефть" [12:22:49]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [12:22:49]line СНО: Общий режим [12:22:49]line Чек 70 03.06.2024 12:22 [12:22:49]line Смена: 324 ФФД: 1.0 [12:22:49]line ЗНМ: 0300000181 [12:22:49]line РНМ: 0000000000098096 [12:22:49]line Версия ККМ: 001 [12:22:49]line ФМ: 0000000000965400 [12:22:49]line ФД: 68324 [12:22:49]line ФПД: 57817658830999 [12:22:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T122253&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68324&fm=57817658830999&tin=02508201610067®Number=0000000000098096&sum=50000 [12:22:49]OFD Sender: Processing packet 68324 [packets to send 26, broken 25] [12:22:49]ProducePacketName [12:22:49]name=ofd_packets/00068324 [12:22:49]OFD Sender: To server: pG, [12:22:49]CommunicateWithHost lk.salyk.kg:30040 [12:22:49]ConnectInit lk.salyk.kg [12:22:49]written 0, free lines is 4095 [12:22:50]Connected sock=7 [12:22:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 54 F7 08 01 0A DB 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 34 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 9D B5 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E4 0A 01 00 35 04 06 00 34 95 B9 04 30 97 4B 27 AC 8F 41 B1 B5 02 [12:22:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 9F B6 47 00 C0 BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E4 0A 01 00 F4 03 04 00 99 5C 5D 66 B6 04 01 00 00 12 06 BE 8F EF 45 6C 8D [12:22:50]CommunicateWithHost err = 0 [12:22:50]CheckOFDResponse [12:22:50]1017 (14) - 77093643461234 [12:22:50]1041 (16) - 0000000000965400 [12:22:50]1040 (4) - 68324 [12:22:50]1012 (4) - 03.06.2024 06:03 [12:22:50]1206 (1) - 0 [12:22:50]OFD Sender: Remove packet 68324 [12:22:50]ProducePacketName [12:22:50]name=ofd_packets/00068324 [12:22:50]NVStorageDeleteData [12:22:50]Write to MH i2c: 01 00 00 9C 31 CD [12:22:50]Write i2c OK [12:22:50]MH_I2C_Read... [12:22:50]Read from MH i2c: 01 [12:22:50]MH_I2C_Read... [12:22:50]Read from MH i2c: 01 07 00 [12:22:50]MH_I2C_Read... [12:22:50]Read from MH i2c: 01 07 00 9C 31 00 00 00 00 00 D9 0C B9 [12:22:50]RasterBufferAndPrint [12:22:50]line [12:22:50]line [12:22:50]line [12:22:50]line [12:22:50]line [12:22:50]written 0, free lines is 3296 [12:22:50]MH_Cut [12:22:50]Write to MH i2c: D1 01 00 A3 31 01 A6 [12:22:50]Write i2c OK [12:22:50]MH_I2C_Read... [12:22:50]Read from MH i2c: D1 [12:22:50]MH_I2C_Read... [12:22:50]Read from MH i2c: D1 01 00 [12:22:50]MH_I2C_Read... [12:22:50]Read from MH i2c: D1 01 00 A3 31 00 A5 [12:22:50]Write to MH i2c: 01 00 00 A4 31 D5 [12:22:50]Write i2c OK [12:22:50]MH_I2C_Read... [12:22:50]OFD Sender: No OFD packet to send [12:22:51]*** Cut start [12:22:51]*** Partial cut [12:22:51]*** CUTSNS_PIN = 1 [12:22:51]*** CUTSNS_PIN = 0 [12:22:51]*** Brake cut motor [12:22:51]Read from MH i2c: 01 [12:22:51]MH_I2C_Read... [12:22:51]*** Stop cut motor [12:22:51]*** Cut end [12:22:51]Read from MH i2c: 01 07 00 [12:22:51]MH_I2C_Read... [12:22:51]Read from MH i2c: 01 07 00 A4 31 00 00 00 00 00 FF 0F EA [12:22:51]process_action close_receipt done [12:22:51]requested_data is exist [12:22:51]produce_requested_data [12:22:51]requested_item fm.sn is exist - process it [12:22:51]wFMCommunicate request_size=4 [12:22:51]MH_SAM_APDU [12:22:51]CAPDU: 80 11 00 00 [12:22:51]Write to MH i2c: E2 08 00 A5 31 80 11 00 00 00 00 00 00 50 [12:22:51]Write i2c OK [12:22:51]MH_I2C_Read... [12:22:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:22:51]Read from MH i2c: E2 [12:22:51]MH_I2C_Read... [12:22:51]Read from MH i2c: E2 17 00 [12:22:51]MH_I2C_Read... [12:22:51]Read from MH i2c: E2 17 00 A5 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 9B [12:22:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:22:51]wFMCommunicate OK [12:22:51]requested_item fd.num is exist - process it [12:22:51]SAM_PROTO_GetFieldsCounters [12:22:51]wFMCommunicate request_size=4 [12:22:51]MH_SAM_APDU [12:22:51]CAPDU: 80 13 00 00 [12:22:51]Write to MH i2c: E2 08 00 A6 31 80 13 00 00 00 00 00 00 53 [12:22:51]Write i2c OK [12:22:51]MH_I2C_Read... [12:22:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:22:51]Read from MH i2c: E2 [12:22:51]MH_I2C_Read... [12:22:51]Read from MH i2c: E2 62 00 [12:22:51]MH_I2C_Read... [12:22:51]Read from MH i2c: E2 62 00 A6 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 E4 0A 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 79 [12:22:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 E4 0A 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:22:52]wFMCommunicate OK [12:22:52]SAM_PROTO_GetFieldsCounters done [12:22:52]requested_item shift.num is exist - process it [12:22:52]requested_item shift.opened is exist - process it [12:22:52]req_shift_opened [12:22:52]FM_GetShiftState [12:22:52]SAM_PROTO_GetShiftState [12:22:52]wFMCommunicate request_size=4 [12:22:52]MH_SAM_APDU [12:22:52]CAPDU: 80 13 01 00 [12:22:52]Write to MH i2c: E2 08 00 A7 31 80 13 01 00 00 00 00 00 55 [12:22:52]Write i2c OK [12:22:52]MH_I2C_Read... [12:22:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:22:52]Read from MH i2c: E2 [12:22:52]MH_I2C_Read... [12:22:52]Read from MH i2c: E2 0E 00 [12:22:52]MH_I2C_Read... [12:22:52]Read from MH i2c: E2 0E 00 A7 31 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 30 [12:22:52]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [12:22:52]wFMCommunicate OK [12:22:52]SAM_PROTO_GetShiftState done [12:22:52]FM_GetShiftState done [12:22:52]req_shift_opened done [12:22:52]requested_item shift.open_date is exist - process it [12:22:52]req_shift_open_date [12:22:52]req_shift_open_date done [12:22:52]produce_requested_data done [12:22:52]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68324,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [12:22:52]process_action_free close_receipt [12:22:52]json_value_free [12:22:52]json_value_free done [12:22:52]process_json_proto returns [12:22:52]Send response to host [12:22:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68324,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [12:22:52]free response buf [12:22:52]execute_script done [12:22:52]execute_script returns [12:22:52]free content buf [12:22:52]Sock 5.Close socket [12:22:52]Sock 5.Thread stoped [12:22:53]accept exits with 6 [12:22:53]New connection [12:22:53]New thread 3066543460 created [12:22:53]Thread 3066686820 joined [12:22:53]Waiting for new connection... [12:22:53] Sock 6.Parse request [12:22:53]Sock 6.Check first char [12:22:53]Sock 6.First char is OK [12:22:53]request: POST /json_proto HTTP/1.0 [12:22:53]Method: POST [12:22:53]URL: /json_proto [12:22:53]Method is POST - this is cgi request [12:22:53]url: /json_proto [12:22:53]query_string will be loaded in cgi processing [12:22:53]execute_cgi json_proto POST (null) [12:22:53]execute_cgi path=json_proto method=POST [12:22:53]POST find Content-Length [12:22:53]Host: 172.17.36.132:8080 [12:22:53]Content-Length: 738 [12:22:53]Content-Type: application/json [12:22:53] [12:22:53]POST finish read [12:22:53]Found Content-Length = 738 [12:22:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 68324, "base_FM": "0000000000965400", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706407", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "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:22:53]execute_script... [12:22:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 68324, "base_FM": "0000000000965400", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706407", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "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:22:53]POST & json_proto [12:22:53]process_json_proto [12:22:53]json parsed OK: [12:22:53]protocol is kg_v1.0 [12:22:53]action value=close_receipt [12:22:53]process_action close_receipt [12:22:53]cmd_close_receipt [12:22:53]MH_GetDate [12:22:53]Write to MH i2c: F0 00 00 A8 31 C8 [12:22:53]Write i2c OK [12:22:53]MH_I2C_Read... [12:22:53]Read from MH i2c: F0 [12:22:53]MH_I2C_Read... [12:22:53]Read from MH i2c: F0 09 00 [12:22:53]MH_I2C_Read... [12:22:53]Read from MH i2c: F0 09 00 A8 31 00 A2 B5 5D 66 B2 22 B0 64 D3 [12:22:53]GetLastDocTimeStamp 1717417373 [12:22:53]current date 1717417378 [12:22:53]FM_GetShiftState [12:22:53]SAM_PROTO_GetShiftState [12:22:53]wFMCommunicate request_size=4 [12:22:53]MH_SAM_APDU [12:22:53]CAPDU: 80 13 01 00 [12:22:53]Write to MH i2c: E2 08 00 A9 31 80 13 01 00 00 00 00 00 57 [12:22:53]Write i2c OK [12:22:53]MH_I2C_Read... [12:22:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:22:53]Read from MH i2c: E2 [12:22:53]MH_I2C_Read... [12:22:53]Read from MH i2c: E2 0E 00 [12:22:53]MH_I2C_Read... [12:22:53]Read from MH i2c: E2 0E 00 A9 31 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 32 [12:22:53]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [12:22:53]wFMCommunicate OK [12:22:53]SAM_PROTO_GetShiftState done [12:22:53]FM_GetShiftState done [12:22:53]opened in 1717378033 [12:22:53]opened+sec_in_day 1717464433 [12:22:53]quantity*price = 50009 [12:22:53]sum+1 = 50010 [12:22:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 500.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 71 03.06.2024 12:22 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФД осн.: 68324 ФМ осн.: 0000000000965400 ФМ: 0000000000965400 ФД: 68325 ФПД: 115712754692200 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T122258&type=2&operation_type=1&fn_number=0000000000965400&fd_number=68325&fm=115712754692200&tin=02508201610067®Number=0000000000098096&sum=50000 [12:22:54]StoreToDocumentArchive [12:22:54]shift 324 fd 68325 [12:22:54]save to /storage/0324/doc_00068325 [12:22:54]save last doc name /storage/0324/doc_00068325 to /storage/kkm_last_doc_name [12:22:54]save OK [12:22:54]Clear old archive folders... [12:22:54]ProcessDocumentItem done err = 0, tmpTLVsize=280 [12:22:54]tlvbuf is 002788F0 [12:22:54]SAM_PROTO_ClearQueue [12:22:54]wFMCommunicate request_size=4 [12:22:54]MH_SAM_APDU [12:22:54]CAPDU: 80 09 00 00 [12:22:54]Write to MH i2c: E2 08 00 B8 31 80 09 00 00 00 00 00 00 5B [12:22:54]Write i2c OK [12:22:54]MH_I2C_Read... [12:22:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:22:54]Read from MH i2c: E2 [12:22:54]MH_I2C_Read... [12:22:54]Read from MH i2c: E2 03 00 [12:22:54]MH_I2C_Read... [12:22:54]Read from MH i2c: E2 03 00 B8 31 00 90 00 5D [12:22:54]RAPDU: 90 00 [12:22:54]wFMCommunicate OK [12:22:54]SAM_PROTO_ClearQueue done [12:22:54]KKMCreateOFDPacket [12:22:54]OFDProtocolAddRootSTLVToBuf [12:22:54]FM_MakeSignedData [12:22:54]FM_MakeSignedData [12:22:54]SAM_PROTO_SignData [12:22:54]wFMCommunicate request_size=4 [12:22:54]MH_SAM_APDU [12:22:54]CAPDU: 80 0D 01 02 [12:22:54]Write to MH i2c: E2 08 00 B9 31 80 0D 01 02 00 00 00 00 63 [12:22:54]Write i2c OK [12:22:54]MH_I2C_Read... [12:22:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:22:54]Read from MH i2c: E2 [12:22:54]MH_I2C_Read... [12:22:54]Read from MH i2c: E2 03 00 [12:22:54]MH_I2C_Read... [12:22:54]Read from MH i2c: E2 03 00 B9 31 00 90 00 5E [12:22:54]RAPDU: 90 00 [12:22:54]wFMCommunicate OK [12:22:54]wFMCommunicate request_size=255 [12:22:54]MH_SAM_APDU [12:22:54]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 02 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 34 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 A2 B5 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 27 04 04 00 E4 0A 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 11 04 10 00 [12:22:55]Write to MH i2c: E2 02 01 BA 31 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 02 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 34 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 A2 B5 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 27 04 04 00 E4 0A 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 11 04 10 00 00 00 BA [12:22:55]Write i2c OK [12:22:55]MH_I2C_Read... [12:22:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:22:55]Read from MH i2c: E2 [12:22:55]MH_I2C_Read... [12:22:55]Read from MH i2c: E2 03 00 [12:22:55]MH_I2C_Read... [12:22:55]Read from MH i2c: E2 03 00 BA 31 00 90 00 5F [12:22:55]RAPDU: 90 00 [12:22:55]wFMCommunicate OK [12:22:55]wFMCommunicate request_size=39 [12:22:55]MH_SAM_APDU [12:22:55]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E5 0A 01 00 35 04 06 00 69 3D 79 A3 B0 68 [12:22:55]Write to MH i2c: E2 2A 00 BB 31 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E5 0A 01 00 35 04 06 00 69 3D 79 A3 B0 68 00 00 E3 [12:22:55]Write i2c OK [12:22:55]MH_I2C_Read... [12:22:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:22:55]Read from MH i2c: E2 [12:22:55]MH_I2C_Read... [12:22:55]Read from MH i2c: E2 03 00 [12:22:55]MH_I2C_Read... [12:22:55]Read from MH i2c: E2 03 00 BB 31 00 90 00 60 [12:22:55]RAPDU: 90 00 [12:22:55]wFMCommunicate OK [12:22:55]wFMCommunicate request_size=4 [12:22:55]MH_SAM_APDU [12:22:55]CAPDU: 80 0D 03 02 [12:22:55]Write to MH i2c: E2 08 00 BC 31 80 0D 03 02 00 00 00 00 68 [12:22:55]Write i2c OK [12:22:55]MH_I2C_Read... [12:22:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:22:55]Read from MH i2c: E2 [12:22:55]MH_I2C_Read... [12:22:55]Read from MH i2c: E2 0B 00 [12:22:55]MH_I2C_Read... [12:22:55]Read from MH i2c: E2 0B 00 BC 31 00 E1 03 BF 3D D8 F8 BE 5C 90 00 33 [12:22:55]RAPDU: E1 03 BF 3D D8 F8 BE 5C 90 00 [12:22:55]wFMCommunicate OK [12:22:55]SAM_PROTO_SignData done [12:22:55]FM_MakeSignedData done [12:22:55]CreateOFDProtocolMessage [12:22:55]wFMCommunicate request_size=4 [12:22:55]MH_SAM_APDU [12:22:55]CAPDU: 80 11 00 00 [12:22:55]Write to MH i2c: E2 08 00 BD 31 80 11 00 00 00 00 00 00 68 [12:22:55]Write i2c OK [12:22:55]MH_I2C_Read... [12:22:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:22:55]Read from MH i2c: E2 [12:22:55]MH_I2C_Read... [12:22:55]Read from MH i2c: E2 17 00 [12:22:55]MH_I2C_Read... [12:22:55]Read from MH i2c: E2 17 00 BD 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 B3 [12:22:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:22:55]wFMCommunicate OK [12:22:55]CreateOFDProtocolMessage done [12:22:55]OFDSenderStorePacket 68325 [12:22:55]StoreOFDPacket docnum=68325 [12:22:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 2C 01 00 00 52 9B 24 01 6B FE 5A 03 01 00 03 00 18 01 1E 04 01 00 02 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 34 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 A2 B5 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 27 04 04 00 E4 0A 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E5 0A 01 00 35 04 06 00 69 3D 79 A3 B0 68 E1 03 BF 3D D8 F8 BE 5C [12:22:55]CheckFolder [12:22:55]dirname=/storage/ofd_packets [12:22:55]CheckFolder done [12:22:55]ProducePacketName [12:22:55]name=ofd_packets/00068325 [12:22:55]NVStorageSaveData ofd_packets/00068325 [12:22:55]File name is /storage/ofd_packets/00068325 [12:22:55]Write 330 bytes [12:22:55]NVStorageSaveData done [12:22:55]OFDSenderStorePacket done [12:22:55]KKMCreateOFDPacket done [12:22:55]NVStorageSaveData kkm_last_timestamp [12:22:55]File name is /storage/kkm_last_timestamp [12:22:55]Write 4 bytes [12:22:55]NVStorageSaveData done [12:22:55]ExternCall_PrintAddStr [12:22:55]wPrintStart [12:22:55]Write to MH i2c: 01 00 00 BE 31 EF [12:22:55]Write i2c OK [12:22:55]MH_I2C_Read... [12:22:55]Read from MH i2c: 01 [12:22:55]MH_I2C_Read... [12:22:55]Read from MH i2c: 01 07 00 [12:22:55]MH_I2C_Read... [12:22:55]Read from MH i2c: 01 07 00 BE 31 00 00 00 00 00 FF 0F 04 [12:22:55]RasterBufferAndPrint [12:22:55]line Счет N : (1)706407 [12:22:55]line ИНН: 02508201610067 [12:22:55]line Контрольно-Кассовый Чек [12:22:55]line ВОЗВРАТ ПРОДАЖИ [12:22:55]line ТРК (МРК, ГНК) : 21 [12:22:55]line Товар: 2710194210 [12:22:55]line ДТ(л)-К-4 [12:22:55]line 6.860 * 72.90 [12:22:55]line = 500.09 [12:22:55]line НДС 12% НСП 1% [12:22:55]line > о реализуемом товаре [12:22:55]line ОКРУГЛЕНИЕ: -0.09 [12:22:55]line ИТОГО: 500.00 [12:22:55]line НСП 1% : 4.43 [12:22:55]line НДС 12% : 53.11 [12:22:55]line Наличными: 500.00 [12:22:55]line Безнал.: 0.00 [12:22:55]line Место: АЗС № 62 "Партнер Нефть" [12:22:55]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [12:22:55]line СНО: Общий режим [12:22:55]line Чек 71 03.06.2024 12:22 [12:22:55]line Смена: 324 ФФД: 1.0 [12:22:55]line ЗНМ: 0300000181 [12:22:55]line РНМ: 0000000000098096 [12:22:55]line Версия ККМ: 001 [12:22:55]line ФД осн.: 68324 [12:22:55]line ФМ осн.: 0000000000965400 [12:22:55]line ФМ: 0000000000965400 [12:22:55]line ФД: 68325 [12:22:55]line ФПД: 115712754692200 [12:22:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T122258&type=2&operation_type=1&fn_number=0000000000965400&fd_number=68325&fm=115712754692200&tin=02508201610067®Number=0000000000098096&sum=50000 [12:22:55]written 0, free lines is 4095 [12:22:55]OFD Sender: Processing packet 68325 [packets to send 26, broken 25] [12:22:55]ProducePacketName [12:22:55]name=ofd_packets/00068325 [12:22:55]OFD Sender: To server: pG, [12:22:55]CommunicateWithHost lk.salyk.kg:30040 [12:22:55]ConnectInit lk.salyk.kg [12:22:55]Connected sock=7 [12:22:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 2C 01 00 00 52 9B 24 01 6B FE 5A 03 01 00 03 00 18 01 1E 04 01 00 02 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 34 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 A2 B5 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 27 04 04 00 E4 0A 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E5 0A 01 00 35 04 06 00 69 3D 79 A3 B0 68 E1 03 BF 3D D8 F8 BE 5C [12:22:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 A5 76 47 00 F7 A6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E5 0A 01 00 F4 03 04 00 9E 5C 5D 66 B6 04 01 00 00 F2 6D 8A D5 82 FC 0A 65 [12:22:55]CommunicateWithHost err = 0 [12:22:55]CheckOFDResponse [12:22:55]1017 (14) - 77093643461234 [12:22:55]1041 (16) - 0000000000965400 [12:22:55]1040 (4) - 68325 [12:22:55]1012 (4) - 03.06.2024 06:03 [12:22:55]1206 (1) - 0 [12:22:55]OFD Sender: Remove packet 68325 [12:22:55]ProducePacketName [12:22:55]name=ofd_packets/00068325 [12:22:55]NVStorageDeleteData [12:22:55]Write to MH i2c: 01 00 00 E9 31 1A [12:22:55]Write i2c OK [12:22:55]MH_I2C_Read... [12:22:55]Read from MH i2c: 01 [12:22:55]MH_I2C_Read... [12:22:55]Read from MH i2c: 01 07 00 [12:22:55]MH_I2C_Read... [12:22:55]Read from MH i2c: 01 07 00 E9 31 00 00 00 00 00 EE 0C 1B [12:22:55]RasterBufferAndPrint [12:22:55]line [12:22:55]line [12:22:55]line [12:22:55]line [12:22:55]line [12:22:55]written 0, free lines is 3320 [12:22:56]MH_Cut [12:22:56]Write to MH i2c: D1 01 00 F0 31 01 F3 [12:22:56]Write i2c OK [12:22:56]MH_I2C_Read... [12:22:56]Read from MH i2c: D1 [12:22:56]MH_I2C_Read... [12:22:56]Read from MH i2c: D1 01 00 [12:22:56]MH_I2C_Read... [12:22:56]Read from MH i2c: D1 01 00 F0 31 00 F2 [12:22:56]Write to MH i2c: 01 00 00 F1 31 22 [12:22:56]Write i2c OK [12:22:56]MH_I2C_Read... [12:22:56]OFD Sender: No OFD packet to send [12:22:56]*** Cut start [12:22:56]*** Partial cut [12:22:56]*** CUTSNS_PIN = 1 [12:22:56]*** CUTSNS_PIN = 0 [12:22:57]*** Brake cut motor [12:22:57]Read from MH i2c: 01 [12:22:57]MH_I2C_Read... [12:22:57]*** Stop cut motor [12:22:57]*** Cut end [12:22:57]Read from MH i2c: 01 07 00 [12:22:57]MH_I2C_Read... [12:22:57]Read from MH i2c: 01 07 00 F1 31 00 00 00 00 00 FF 0F 37 [12:22:57]process_action close_receipt done [12:22:57]requested_data is exist [12:22:57]produce_requested_data [12:22:57]requested_item fm.sn is exist - process it [12:22:57]wFMCommunicate request_size=4 [12:22:57]MH_SAM_APDU [12:22:57]CAPDU: 80 11 00 00 [12:22:57]Write to MH i2c: E2 08 00 F2 31 80 11 00 00 00 00 00 00 9D [12:22:57]Write i2c OK [12:22:57]MH_I2C_Read... [12:22:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:22:57]Read from MH i2c: E2 [12:22:57]MH_I2C_Read... [12:22:57]Read from MH i2c: E2 17 00 [12:22:57]MH_I2C_Read... [12:22:57]Read from MH i2c: E2 17 00 F2 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 E8 [12:22:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:22:57]wFMCommunicate OK [12:22:57]requested_item fd.num is exist - process it [12:22:57]SAM_PROTO_GetFieldsCounters [12:22:57]wFMCommunicate request_size=4 [12:22:57]MH_SAM_APDU [12:22:57]CAPDU: 80 13 00 00 [12:22:57]Write to MH i2c: E2 08 00 F3 31 80 13 00 00 00 00 00 00 A0 [12:22:57]Write i2c OK [12:22:57]MH_I2C_Read... [12:22:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:22:57]Read from MH i2c: E2 [12:22:57]MH_I2C_Read... [12:22:57]Read from MH i2c: E2 62 00 [12:22:57]MH_I2C_Read... [12:22:57]Read from MH i2c: E2 62 00 F3 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 E5 0A 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 CA [12:22:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 E5 0A 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:22:57]wFMCommunicate OK [12:22:57]SAM_PROTO_GetFieldsCounters done [12:22:57]requested_item shift.num is exist - process it [12:22:57]requested_item shift.opened is exist - process it [12:22:57]req_shift_opened [12:22:57]FM_GetShiftState [12:22:57]SAM_PROTO_GetShiftState [12:22:57]wFMCommunicate request_size=4 [12:22:57]MH_SAM_APDU [12:22:57]CAPDU: 80 13 01 00 [12:22:57]Write to MH i2c: E2 08 00 F4 31 80 13 01 00 00 00 00 00 A2 [12:22:57]Write i2c OK [12:22:57]MH_I2C_Read... [12:22:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:22:57]Read from MH i2c: E2 [12:22:57]MH_I2C_Read... [12:22:57]Read from MH i2c: E2 0E 00 [12:22:57]MH_I2C_Read... [12:22:57]Read from MH i2c: E2 0E 00 F4 31 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 7D [12:22:57]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [12:22:57]wFMCommunicate OK [12:22:57]SAM_PROTO_GetShiftState done [12:22:57]FM_GetShiftState done [12:22:57]req_shift_opened done [12:22:57]requested_item shift.open_date is exist - process it [12:22:57]req_shift_open_date [12:22:57]req_shift_open_date done [12:22:57]produce_requested_data done [12:22:57]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68325,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [12:22:57]process_action_free close_receipt [12:22:57]json_value_free [12:22:57]json_value_free done [12:22:57]process_json_proto returns [12:22:57]Send response to host [12:22:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68325,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [12:22:57]free response buf [12:22:57]execute_script done [12:22:57]execute_script returns [12:22:57]free content buf [12:22:57]Sock 6.Close socket [12:22:57]Sock 6.Thread stoped [12:23:01]OFD Sender: No OFD packet to send [12:23:06]OFD Sender: No OFD packet to send [12:23:11]OFD Sender: No OFD packet to send [12:23:16]OFD Sender: No OFD packet to send [12:23:21]OFD Sender: No OFD packet to send [12:23:26]OFD Sender: No OFD packet to send [12:23:31]OFD Sender: No OFD packet to send [12:23:36]OFD Sender: No OFD packet to send [12:23:41]OFD Sender: No OFD packet to send [12:23:46]OFD Sender: No OFD packet to send [12:23:46]accept exits with 5 [12:23:46]New connection [12:23:46]New thread 3066686820 created [12:23:46]Thread 3066543460 joined [12:23:46]Waiting for new connection... [12:23:46] Sock 5.Parse request [12:23:46]Sock 5.Check first char [12:23:46]Sock 5.First char is OK [12:23:46]request: POST /json_proto HTTP/1.0 [12:23:46]Method: POST [12:23:46]URL: /json_proto [12:23:46]Method is POST - this is cgi request [12:23:46]url: /json_proto [12:23:46]query_string will be loaded in cgi processing [12:23:46]execute_cgi json_proto POST (null) [12:23:46]execute_cgi path=json_proto method=POST [12:23:46]POST find Content-Length [12:23:46]Host: 172.17.36.132:8080 [12:23:46]Content-Length: 682 [12:23:46]Content-Type: application/json [12:23:46] [12:23:46]POST finish read [12:23:46]Found Content-Length = 682 [12:23:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706408", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 5.490, "sum" : 400.22, "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" ] } } [12:23:46]execute_script... [12:23:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706408", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 5.490, "sum" : 400.22, "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" ] } } [12:23:46]POST & json_proto [12:23:46]process_json_proto [12:23:46]json parsed OK: [12:23:46]protocol is kg_v1.0 [12:23:46]action value=close_receipt [12:23:46]process_action close_receipt [12:23:46]cmd_close_receipt [12:23:46]MH_GetDate [12:23:46]Write to MH i2c: F0 00 00 F5 31 15 [12:23:46]Write i2c OK [12:23:46]MH_I2C_Read... [12:23:46]Read from MH i2c: F0 [12:23:46]MH_I2C_Read... [12:23:46]Read from MH i2c: F0 09 00 [12:23:46]MH_I2C_Read... [12:23:46]Read from MH i2c: F0 09 00 F5 31 00 D7 B5 5D 66 B2 22 B0 64 55 [12:23:46]GetLastDocTimeStamp 1717417378 [12:23:46]current date 1717417431 [12:23:46]FM_GetShiftState [12:23:46]SAM_PROTO_GetShiftState [12:23:46]wFMCommunicate request_size=4 [12:23:46]MH_SAM_APDU [12:23:46]CAPDU: 80 13 01 00 [12:23:46]Write to MH i2c: E2 08 00 F6 31 80 13 01 00 00 00 00 00 A4 [12:23:46]Write i2c OK [12:23:46]MH_I2C_Read... [12:23:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:46]Read from MH i2c: E2 [12:23:46]MH_I2C_Read... [12:23:46]Read from MH i2c: E2 0E 00 [12:23:46]MH_I2C_Read... [12:23:46]Read from MH i2c: E2 0E 00 F6 31 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 7F [12:23:46]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [12:23:46]wFMCommunicate OK [12:23:46]SAM_PROTO_GetShiftState done [12:23:46]FM_GetShiftState done [12:23:46]opened in 1717378033 [12:23:46]opened+sec_in_day 1717464433 [12:23:46]quantity*price = 40022 [12:23:46]sum+1 = 40023 [12:23:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.50 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 72 03.06.2024 12:23 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68326 ФПД: 211566416622078 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T122351&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68326&fm=211566416622078&tin=02508201610067®Number=0000000000098096&sum=40000 [12:23:47]StoreToDocumentArchive [12:23:47]shift 324 fd 68326 [12:23:47]save to /storage/0324/doc_00068326 [12:23:47]save last doc name /storage/0324/doc_00068326 to /storage/kkm_last_doc_name [12:23:47]save OK [12:23:47]Clear old archive folders... [12:23:47]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:23:47]tlvbuf is 004D9FC0 [12:23:47]SAM_PROTO_ClearQueue [12:23:47]wFMCommunicate request_size=4 [12:23:47]MH_SAM_APDU [12:23:47]CAPDU: 80 09 00 00 [12:23:47]Write to MH i2c: E2 08 00 03 32 80 09 00 00 00 00 00 00 A7 [12:23:47]Write i2c OK [12:23:47]MH_I2C_Read... [12:23:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:23:47]Read from MH i2c: E2 [12:23:47]MH_I2C_Read... [12:23:47]Read from MH i2c: E2 03 00 [12:23:47]MH_I2C_Read... [12:23:47]Read from MH i2c: E2 03 00 03 32 00 90 00 A9 [12:23:47]RAPDU: 90 00 [12:23:47]wFMCommunicate OK [12:23:47]SAM_PROTO_ClearQueue done [12:23:47]KKMCreateOFDPacket [12:23:47]OFDProtocolAddRootSTLVToBuf [12:23:47]FM_MakeSignedData [12:23:47]FM_MakeSignedData [12:23:47]SAM_PROTO_SignData [12:23:47]wFMCommunicate request_size=4 [12:23:47]MH_SAM_APDU [12:23:47]CAPDU: 80 0D 01 02 [12:23:47]Write to MH i2c: E2 08 00 04 32 80 0D 01 02 00 00 00 00 AF [12:23:47]Write i2c OK [12:23:47]MH_I2C_Read... [12:23:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:23:47]Read from MH i2c: E2 [12:23:47]MH_I2C_Read... [12:23:47]Read from MH i2c: E2 03 00 [12:23:47]MH_I2C_Read... [12:23:47]Read from MH i2c: E2 03 00 04 32 00 90 00 AA [12:23:47]RAPDU: 90 00 [12:23:47]wFMCommunicate OK [12:23:47]wFMCommunicate request_size=255 [12:23:47]MH_SAM_APDU [12:23:47]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 34 FF 03 08 00 03 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 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 9A 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 48 00 00 00 F4 03 04 00 D7 B5 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E6 0A 01 00 35 04 06 00 [12:23:47]Write to MH i2c: E2 02 01 05 32 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 34 FF 03 08 00 03 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 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 9A 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 48 00 00 00 F4 03 04 00 D7 B5 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E6 0A 01 00 35 04 06 00 00 00 93 [12:23:47]Write i2c OK [12:23:47]MH_I2C_Read... [12:23:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:23:48]Read from MH i2c: E2 [12:23:48]MH_I2C_Read... [12:23:48]Read from MH i2c: E2 03 00 [12:23:48]MH_I2C_Read... [12:23:48]Read from MH i2c: E2 03 00 05 32 00 90 00 AB [12:23:48]RAPDU: 90 00 [12:23:48]wFMCommunicate OK [12:23:48]wFMCommunicate request_size=11 [12:23:48]MH_SAM_APDU [12:23:48]CAPDU: 80 0D 02 02 06 C0 6B 25 1B F1 FE [12:23:48]Write to MH i2c: E2 0E 00 06 32 80 0D 02 02 06 00 C0 6B 25 1B F1 FE 00 00 18 [12:23:48]Write i2c OK [12:23:48]MH_I2C_Read... [12:23:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:23:48]Read from MH i2c: E2 [12:23:48]MH_I2C_Read... [12:23:48]Read from MH i2c: E2 03 00 [12:23:48]MH_I2C_Read... [12:23:48]Read from MH i2c: E2 03 00 06 32 00 90 00 AC [12:23:48]RAPDU: 90 00 [12:23:48]wFMCommunicate OK [12:23:48]wFMCommunicate request_size=4 [12:23:48]MH_SAM_APDU [12:23:48]CAPDU: 80 0D 03 02 [12:23:48]Write to MH i2c: E2 08 00 07 32 80 0D 03 02 00 00 00 00 B4 [12:23:48]Write i2c OK [12:23:48]MH_I2C_Read... [12:23:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:23:48]Read from MH i2c: E2 [12:23:48]MH_I2C_Read... [12:23:48]Read from MH i2c: E2 0B 00 [12:23:48]MH_I2C_Read... [12:23:48]Read from MH i2c: E2 0B 00 07 32 00 AE 87 2C 88 50 D0 EE 44 90 00 F0 [12:23:48]RAPDU: AE 87 2C 88 50 D0 EE 44 90 00 [12:23:48]wFMCommunicate OK [12:23:48]SAM_PROTO_SignData done [12:23:48]FM_MakeSignedData done [12:23:48]CreateOFDProtocolMessage [12:23:48]wFMCommunicate request_size=4 [12:23:48]MH_SAM_APDU [12:23:48]CAPDU: 80 11 00 00 [12:23:48]Write to MH i2c: E2 08 00 08 32 80 11 00 00 00 00 00 00 B4 [12:23:48]Write i2c OK [12:23:48]MH_I2C_Read... [12:23:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:48]Read from MH i2c: E2 [12:23:48]MH_I2C_Read... [12:23:48]Read from MH i2c: E2 17 00 [12:23:48]MH_I2C_Read... [12:23:48]Read from MH i2c: E2 17 00 08 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 FF [12:23:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:23:48]wFMCommunicate OK [12:23:48]CreateOFDProtocolMessage done [12:23:48]OFDSenderStorePacket 68326 [12:23:48]StoreOFDPacket docnum=68326 [12:23:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 10 49 08 01 E2 F6 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 34 FF 03 08 00 03 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 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 9A 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 48 00 00 00 F4 03 04 00 D7 B5 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E6 0A 01 00 35 04 06 00 C0 6B 25 1B F1 FE AE 87 2C 88 50 D0 EE 44 [12:23:48]CheckFolder [12:23:48]dirname=/storage/ofd_packets [12:23:48]CheckFolder done [12:23:48]ProducePacketName [12:23:48]name=ofd_packets/00068326 [12:23:48]NVStorageSaveData ofd_packets/00068326 [12:23:48]File name is /storage/ofd_packets/00068326 [12:23:48]Write 302 bytes [12:23:48]NVStorageSaveData done [12:23:48]OFDSenderStorePacket done [12:23:48]KKMCreateOFDPacket done [12:23:48]NVStorageSaveData kkm_last_timestamp [12:23:48]File name is /storage/kkm_last_timestamp [12:23:48]Write 4 bytes [12:23:48]NVStorageSaveData done [12:23:48]ExternCall_PrintAddStr [12:23:48]wPrintStart [12:23:48]Write to MH i2c: 01 00 00 09 32 3B [12:23:48]Write i2c OK [12:23:48]MH_I2C_Read... [12:23:48]Read from MH i2c: 01 [12:23:48]MH_I2C_Read... [12:23:48]Read from MH i2c: 01 07 00 [12:23:48]MH_I2C_Read... [12:23:48]Read from MH i2c: 01 07 00 09 32 00 00 00 00 00 FF 0F 50 [12:23:48]RasterBufferAndPrint [12:23:48]line Счет N : (1)706408 [12:23:48]line ИНН: 02508201610067 [12:23:48]line Контрольно-Кассовый Чек [12:23:48]line ПРОДАЖА [12:23:48]line ТРК (МРК, ГНК) : 11 [12:23:48]line Товар: 2710194210 [12:23:48]line ДТ(л)-К-4 [12:23:48]line 5.490 * 72.90 [12:23:48]line = 400.22 [12:23:48]line НДС 12% НСП 1% [12:23:48]line > о реализуемом товаре [12:23:48]line ОКРУГЛЕНИЕ: -0.22 [12:23:48]line ИТОГО: 400.00 [12:23:48]line Внесено: 400.00 [12:23:48]line СДАЧА: 0.00 [12:23:48]line НСП 1% : 3.54 [12:23:48]line НДС 12% : 42.50 [12:23:48]line Наличными: 400.00 [12:23:48]line Безнал.: 0.00 [12:23:48]line Место: АЗС № 62 "Партнер Нефть" [12:23:48]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [12:23:48]line СНО: Общий режим [12:23:48]line Чек 72 03.06.2024 12:23 [12:23:48]line Смена: 324 ФФД: 1.0 [12:23:48]line ЗНМ: 0300000181 [12:23:48]line РНМ: 0000000000098096 [12:23:48]line Версия ККМ: 001 [12:23:48]line ФМ: 0000000000965400 [12:23:48]line ФД: 68326 [12:23:48]line ФПД: 211566416622078 [12:23:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T122351&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68326&fm=211566416622078&tin=02508201610067®Number=0000000000098096&sum=40000 [12:23:48]OFD Sender: Processing packet 68326 [packets to send 26, broken 25] [12:23:48]ProducePacketName [12:23:48]name=ofd_packets/00068326 [12:23:48]OFD Sender: To server: pG, [12:23:48]CommunicateWithHost lk.salyk.kg:30040 [12:23:48]ConnectInit lk.salyk.kg [12:23:48]written 0, free lines is 4095 [12:23:48]Connected sock=7 [12:23:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 10 49 08 01 E2 F6 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 34 FF 03 08 00 03 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 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 9A 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 48 00 00 00 F4 03 04 00 D7 B5 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E6 0A 01 00 35 04 06 00 C0 6B 25 1B F1 FE AE 87 2C 88 50 D0 EE 44 [12:23:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 8E EA 47 00 BD 5F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E6 0A 01 00 F4 03 04 00 D3 5C 5D 66 B6 04 01 00 00 63 2A C0 8E 95 E8 5D 1A [12:23:48]CommunicateWithHost err = 0 [12:23:48]CheckOFDResponse [12:23:48]1017 (14) - 77093643461234 [12:23:48]1041 (16) - 0000000000965400 [12:23:48]1040 (4) - 68326 [12:23:48]1012 (4) - 03.06.2024 06:04 [12:23:48]1206 (1) - 0 [12:23:48]OFD Sender: Remove packet 68326 [12:23:48]ProducePacketName [12:23:48]name=ofd_packets/00068326 [12:23:48]NVStorageDeleteData [12:23:49]Write to MH i2c: 01 00 00 34 32 66 [12:23:49]Write i2c OK [12:23:49]MH_I2C_Read... [12:23:49]Read from MH i2c: 01 [12:23:49]MH_I2C_Read... [12:23:49]Read from MH i2c: 01 07 00 [12:23:49]MH_I2C_Read... [12:23:49]Read from MH i2c: 01 07 00 34 32 00 00 00 00 00 E4 0C 5D [12:23:49]RasterBufferAndPrint [12:23:49]line [12:23:49]line [12:23:49]line [12:23:49]line [12:23:49]line [12:23:49]written 0, free lines is 3306 [12:23:49]MH_Cut [12:23:49]Write to MH i2c: D1 01 00 3B 32 01 3F [12:23:49]Write i2c OK [12:23:49]MH_I2C_Read... [12:23:49]Read from MH i2c: D1 [12:23:49]MH_I2C_Read... [12:23:49]Read from MH i2c: D1 01 00 [12:23:49]MH_I2C_Read... [12:23:49]Read from MH i2c: D1 01 00 3B 32 00 3E [12:23:49]Write to MH i2c: 01 00 00 3C 32 6E [12:23:49]Write i2c OK [12:23:49]MH_I2C_Read... [12:23:49]OFD Sender: No OFD packet to send [12:23:49]*** Cut start [12:23:49]*** Partial cut [12:23:49]*** CUTSNS_PIN = 1 [12:23:49]*** CUTSNS_PIN = 0 [12:23:50]*** Brake cut motor [12:23:50]Read from MH i2c: 01 [12:23:50]MH_I2C_Read... [12:23:50]*** Stop cut motor [12:23:50]*** Cut end [12:23:50]Read from MH i2c: 01 07 00 [12:23:50]MH_I2C_Read... [12:23:50]Read from MH i2c: 01 07 00 3C 32 00 00 00 00 00 FF 0F 83 [12:23:50]process_action close_receipt done [12:23:50]requested_data is exist [12:23:50]produce_requested_data [12:23:50]requested_item fm.sn is exist - process it [12:23:50]wFMCommunicate request_size=4 [12:23:50]MH_SAM_APDU [12:23:50]CAPDU: 80 11 00 00 [12:23:50]Write to MH i2c: E2 08 00 3D 32 80 11 00 00 00 00 00 00 E9 [12:23:50]Write i2c OK [12:23:50]MH_I2C_Read... [12:23:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:50]Read from MH i2c: E2 [12:23:50]MH_I2C_Read... [12:23:50]Read from MH i2c: E2 17 00 [12:23:50]MH_I2C_Read... [12:23:50]Read from MH i2c: E2 17 00 3D 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 34 [12:23:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:23:50]wFMCommunicate OK [12:23:50]requested_item fd.num is exist - process it [12:23:50]SAM_PROTO_GetFieldsCounters [12:23:50]wFMCommunicate request_size=4 [12:23:50]MH_SAM_APDU [12:23:50]CAPDU: 80 13 00 00 [12:23:50]Write to MH i2c: E2 08 00 3E 32 80 13 00 00 00 00 00 00 EC [12:23:50]Write i2c OK [12:23:50]MH_I2C_Read... [12:23:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:23:50]Read from MH i2c: E2 [12:23:50]MH_I2C_Read... [12:23:50]Read from MH i2c: E2 62 00 [12:23:50]MH_I2C_Read... [12:23:50]Read from MH i2c: E2 62 00 3E 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 E6 0A 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [12:23:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 E6 0A 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:23:50]wFMCommunicate OK [12:23:50]SAM_PROTO_GetFieldsCounters done [12:23:50]requested_item shift.num is exist - process it [12:23:50]requested_item shift.opened is exist - process it [12:23:50]req_shift_opened [12:23:50]FM_GetShiftState [12:23:50]SAM_PROTO_GetShiftState [12:23:50]wFMCommunicate request_size=4 [12:23:50]MH_SAM_APDU [12:23:50]CAPDU: 80 13 01 00 [12:23:50]Write to MH i2c: E2 08 00 3F 32 80 13 01 00 00 00 00 00 EE [12:23:50]Write i2c OK [12:23:50]MH_I2C_Read... [12:23:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:50]Read from MH i2c: E2 [12:23:50]MH_I2C_Read... [12:23:50]Read from MH i2c: E2 0E 00 [12:23:50]MH_I2C_Read... [12:23:50]Read from MH i2c: E2 0E 00 3F 32 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 C9 [12:23:50]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [12:23:50]wFMCommunicate OK [12:23:50]SAM_PROTO_GetShiftState done [12:23:50]FM_GetShiftState done [12:23:50]req_shift_opened done [12:23:50]requested_item shift.open_date is exist - process it [12:23:50]req_shift_open_date [12:23:50]req_shift_open_date done [12:23:50]produce_requested_data done [12:23:50]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68326,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [12:23:50]process_action_free close_receipt [12:23:50]json_value_free [12:23:50]json_value_free done [12:23:50]process_json_proto returns [12:23:50]Send response to host [12:23:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68326,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [12:23:50]free response buf [12:23:50]execute_script done [12:23:50]execute_script returns [12:23:50]free content buf [12:23:50]Sock 5.Close socket [12:23:50]Sock 5.Thread stoped [12:23:54]OFD Sender: No OFD packet to send [12:23:59]OFD Sender: No OFD packet to send [12:24:04]OFD Sender: No OFD packet to send [12:24:09]OFD Sender: No OFD packet to send [12:24:14]OFD Sender: No OFD packet to send [12:24:19]OFD Sender: No OFD packet to send [12:24:24]OFD Sender: No OFD packet to send [12:24:29]OFD Sender: No OFD packet to send [12:24:29]accept exits with 6 [12:24:29]New connection [12:24:29]New thread 3066543460 created [12:24:29]Thread 3066686820 joined [12:24:29]Waiting for new connection... [12:24:29] Sock 6.Parse request [12:24:29]Sock 6.Check first char [12:24:29]Sock 6.First char is OK [12:24:29]request: POST /json_proto HTTP/1.0 [12:24:29]Method: POST [12:24:29]URL: /json_proto [12:24:29]Method is POST - this is cgi request [12:24:29]url: /json_proto [12:24:29]query_string will be loaded in cgi processing [12:24:29]execute_cgi json_proto POST (null) [12:24:29]execute_cgi path=json_proto method=POST [12:24:29]POST find Content-Length [12:24:29]Host: 172.17.36.132:8080 [12:24:29]Content-Length: 677 [12:24:29]Content-Type: application/json [12:24:29] [12:24:29]POST finish read [12:24:29]Found Content-Length = 677 [12:24:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706409", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.790, "sum" : 320.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:24:29]execute_script... [12:24: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)706409", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.790, "sum" : 320.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:24:29]POST & json_proto [12:24:29]process_json_proto [12:24:29]json parsed OK: [12:24:29]protocol is kg_v1.0 [12:24:29]action value=close_receipt [12:24:29]process_action close_receipt [12:24:29]cmd_close_receipt [12:24:29]MH_GetDate [12:24:29]Write to MH i2c: F0 00 00 40 32 61 [12:24:29]Write i2c OK [12:24:29]MH_I2C_Read... [12:24:29]Read from MH i2c: F0 [12:24:29]MH_I2C_Read... [12:24:29]Read from MH i2c: F0 09 00 [12:24:29]MH_I2C_Read... [12:24:29]Read from MH i2c: F0 09 00 40 32 00 02 B6 5D 66 B2 22 B0 64 CD [12:24:29]GetLastDocTimeStamp 1717417431 [12:24:29]current date 1717417474 [12:24:29]FM_GetShiftState [12:24:29]SAM_PROTO_GetShiftState [12:24:29]wFMCommunicate request_size=4 [12:24:29]MH_SAM_APDU [12:24:29]CAPDU: 80 13 01 00 [12:24:29]Write to MH i2c: E2 08 00 41 32 80 13 01 00 00 00 00 00 F0 [12:24:29]Write i2c OK [12:24:29]MH_I2C_Read... [12:24:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:29]Read from MH i2c: E2 [12:24:29]MH_I2C_Read... [12:24:29]Read from MH i2c: E2 0E 00 [12:24:29]MH_I2C_Read... [12:24:29]Read from MH i2c: E2 0E 00 41 32 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 CB [12:24:29]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [12:24:29]wFMCommunicate OK [12:24:29]SAM_PROTO_GetShiftState done [12:24:29]FM_GetShiftState done [12:24:29]opened in 1717378033 [12:24:29]opened+sec_in_day 1717464433 [12:24:29]quantity*price = 32045 [12:24:29]sum+1 = 32046 [12:24:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 320.00 Внесено: 320.00 СДАЧА: 0.00 НСП 1% : 2.84 НДС 12% : 34.03 Наличными: 320.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 73 03.06.2024 12:24 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68327 ФПД: 66265960007392 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T122434&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68327&fm=66265960007392&tin=02508201610067®Number=0000000000098096&sum=32000 [12:24:30]StoreToDocumentArchive [12:24:30]shift 324 fd 68327 [12:24:30]save to /storage/0324/doc_00068327 [12:24:30]save last doc name /storage/0324/doc_00068327 to /storage/kkm_last_doc_name [12:24:30]save OK [12:24:30]Clear old archive folders... [12:24:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:24:30]tlvbuf is 0026B0C0 [12:24:30]SAM_PROTO_ClearQueue [12:24:30]wFMCommunicate request_size=4 [12:24:30]MH_SAM_APDU [12:24:30]CAPDU: 80 09 00 00 [12:24:30]Write to MH i2c: E2 08 00 4E 32 80 09 00 00 00 00 00 00 F2 [12:24:30]Write i2c OK [12:24:30]MH_I2C_Read... [12:24:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:24:30]Read from MH i2c: E2 [12:24:30]MH_I2C_Read... [12:24:30]Read from MH i2c: E2 03 00 [12:24:30]MH_I2C_Read... [12:24:30]Read from MH i2c: E2 03 00 4E 32 00 90 00 F4 [12:24:30]RAPDU: 90 00 [12:24:30]wFMCommunicate OK [12:24:30]SAM_PROTO_ClearQueue done [12:24:30]KKMCreateOFDPacket [12:24:30]OFDProtocolAddRootSTLVToBuf [12:24:30]FM_MakeSignedData [12:24:30]FM_MakeSignedData [12:24:30]SAM_PROTO_SignData [12:24:30]wFMCommunicate request_size=4 [12:24:30]MH_SAM_APDU [12:24:30]CAPDU: 80 0D 01 02 [12:24:30]Write to MH i2c: E2 08 00 4F 32 80 0D 01 02 00 00 00 00 FA [12:24:30]Write i2c OK [12:24:30]MH_I2C_Read... [12:24:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:24:30]Read from MH i2c: E2 [12:24:30]MH_I2C_Read... [12:24:30]Read from MH i2c: E2 03 00 [12:24:30]MH_I2C_Read... [12:24:30]Read from MH i2c: E2 03 00 4F 32 00 90 00 F5 [12:24:30]RAPDU: 90 00 [12:24:30]wFMCommunicate OK [12:24:30]wFMCommunicate request_size=255 [12:24:30]MH_SAM_APDU [12:24:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 B6 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 02 B6 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E7 0A 01 00 35 04 06 00 3C [12:24:30]Write to MH i2c: E2 02 01 50 32 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 B6 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 02 B6 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E7 0A 01 00 35 04 06 00 3C 00 00 56 [12:24:30]Write i2c OK [12:24:30]MH_I2C_Read... [12:24:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:31]Read from MH i2c: E2 [12:24:31]MH_I2C_Read... [12:24:31]Read from MH i2c: E2 03 00 [12:24:31]MH_I2C_Read... [12:24:31]Read from MH i2c: E2 03 00 50 32 00 90 00 F6 [12:24:31]RAPDU: 90 00 [12:24:31]wFMCommunicate OK [12:24:31]wFMCommunicate request_size=10 [12:24:31]MH_SAM_APDU [12:24:31]CAPDU: 80 0D 02 02 05 44 BF 01 C6 E0 [12:24:31]Write to MH i2c: E2 0D 00 51 32 80 0D 02 02 05 00 44 BF 01 C6 E0 00 00 B1 [12:24:31]Write i2c OK [12:24:31]MH_I2C_Read... [12:24:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:31]Read from MH i2c: E2 [12:24:31]MH_I2C_Read... [12:24:31]Read from MH i2c: E2 03 00 [12:24:31]MH_I2C_Read... [12:24:31]Read from MH i2c: E2 03 00 51 32 00 90 00 F7 [12:24:31]RAPDU: 90 00 [12:24:31]wFMCommunicate OK [12:24:31]wFMCommunicate request_size=4 [12:24:31]MH_SAM_APDU [12:24:31]CAPDU: 80 0D 03 02 [12:24:31]Write to MH i2c: E2 08 00 52 32 80 0D 03 02 00 00 00 00 FF [12:24:31]Write i2c OK [12:24:31]MH_I2C_Read... [12:24:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:24:31]Read from MH i2c: E2 [12:24:31]MH_I2C_Read... [12:24:31]Read from MH i2c: E2 0B 00 [12:24:31]MH_I2C_Read... [12:24:31]Read from MH i2c: E2 0B 00 52 32 00 5F BA F1 24 08 4E 36 CE 90 00 88 [12:24:31]RAPDU: 5F BA F1 24 08 4E 36 CE 90 00 [12:24:31]wFMCommunicate OK [12:24:31]SAM_PROTO_SignData done [12:24:31]FM_MakeSignedData done [12:24:31]CreateOFDProtocolMessage [12:24:31]wFMCommunicate request_size=4 [12:24:31]MH_SAM_APDU [12:24:31]CAPDU: 80 11 00 00 [12:24:31]Write to MH i2c: E2 08 00 53 32 80 11 00 00 00 00 00 00 FF [12:24:31]Write i2c OK [12:24:31]MH_I2C_Read... [12:24:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:31]Read from MH i2c: E2 [12:24:31]MH_I2C_Read... [12:24:31]Read from MH i2c: E2 17 00 [12:24:31]MH_I2C_Read... [12:24:31]Read from MH i2c: E2 17 00 53 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 4A [12:24:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:24:31]wFMCommunicate OK [12:24:31]CreateOFDProtocolMessage done [12:24:31]OFDSenderStorePacket 68327 [12:24:31]StoreOFDPacket docnum=68327 [12:24:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 C0 8C 07 01 CE D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 B6 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 02 B6 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E7 0A 01 00 35 04 06 00 3C 44 BF 01 C6 E0 5F BA F1 24 08 4E 36 CE [12:24:31]CheckFolder [12:24:31]dirname=/storage/ofd_packets [12:24:31]CheckFolder done [12:24:31]ProducePacketName [12:24:31]name=ofd_packets/00068327 [12:24:31]NVStorageSaveData ofd_packets/00068327 [12:24:31]File name is /storage/ofd_packets/00068327 [12:24:31]Write 301 bytes [12:24:31]NVStorageSaveData done [12:24:31]OFDSenderStorePacket done [12:24:31]KKMCreateOFDPacket done [12:24:31]NVStorageSaveData kkm_last_timestamp [12:24:31]File name is /storage/kkm_last_timestamp [12:24:31]Write 4 bytes [12:24:31]NVStorageSaveData done [12:24:31]ExternCall_PrintAddStr [12:24:31]wPrintStart [12:24:31]Write to MH i2c: 01 00 00 54 32 86 [12:24:31]Write i2c OK [12:24:31]MH_I2C_Read... [12:24:31]Read from MH i2c: 01 [12:24:31]MH_I2C_Read... [12:24:31]Read from MH i2c: 01 07 00 [12:24:31]MH_I2C_Read... [12:24:31]Read from MH i2c: 01 07 00 54 32 00 00 00 00 00 FF 0F 9B [12:24:31]RasterBufferAndPrint [12:24:31]line Счет N : (1)706409 [12:24:31]line ИНН: 02508201610067 [12:24:31]line Контрольно-Кассовый Чек [12:24:31]line ПРОДАЖА [12:24:31]line ТРК (МРК, ГНК) : 63 [12:24:31]line Товар: 2710124130 [12:24:31]line Аи-92-К-4 [12:24:31]line 4.790 * 66.90 [12:24:31]line = 320.45 [12:24:31]line НДС 12% НСП 1% [12:24:31]line > о реализуемом товаре [12:24:31]line ОКРУГЛЕНИЕ: -0.45 [12:24:31]line ИТОГО: 320.00 [12:24:31]line Внесено: 320.00 [12:24:31]line СДАЧА: 0.00 [12:24:31]line НСП 1% : 2.84 [12:24:31]line НДС 12% : 34.03 [12:24:31]line Наличными: 320.00 [12:24:31]line Безнал.: 0.00 [12:24:31]line Место: АЗС № 62 "Партнер Нефть" [12:24:31]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [12:24:31]line СНО: Общий режим [12:24:31]line Чек 73 03.06.2024 12:24 [12:24:31]line Смена: 324 ФФД: 1.0 [12:24:31]line ЗНМ: 0300000181 [12:24:31]line РНМ: 0000000000098096 [12:24:31]line Версия ККМ: 001 [12:24:31]line ФМ: 0000000000965400 [12:24:31]line ФД: 68327 [12:24:31]line ФПД: 66265960007392 [12:24:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T122434&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68327&fm=66265960007392&tin=02508201610067®Number=0000000000098096&sum=32000 [12:24:31]OFD Sender: Processing packet 68327 [packets to send 26, broken 25] [12:24:31]ProducePacketName [12:24:31]name=ofd_packets/00068327 [12:24:31]OFD Sender: To server: pG, [12:24:31]CommunicateWithHost lk.salyk.kg:30040 [12:24:31]ConnectInit lk.salyk.kg [12:24:31]written 0, free lines is 4095 [12:24:31]Connected sock=7 [12:24:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 C0 8C 07 01 CE D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 B6 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2D 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 02 B6 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E7 0A 01 00 35 04 06 00 3C 44 BF 01 C6 E0 5F BA F1 24 08 4E 36 CE [12:24:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 5B A9 47 00 9A B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E7 0A 01 00 F4 03 04 00 FE 5C 5D 66 B6 04 01 00 00 E3 7B 02 F6 88 40 7C 16 [12:24:31]CommunicateWithHost err = 0 [12:24:31]CheckOFDResponse [12:24:31]1017 (14) - 77093643461234 [12:24:31]1041 (16) - 0000000000965400 [12:24:31]1040 (4) - 68327 [12:24:31]1012 (4) - 03.06.2024 06:04 [12:24:31]1206 (1) - 0 [12:24:31]OFD Sender: Remove packet 68327 [12:24:31]ProducePacketName [12:24:31]name=ofd_packets/00068327 [12:24:31]NVStorageDeleteData [12:24:32]Write to MH i2c: 01 00 00 7F 32 B1 [12:24:32]Write i2c OK [12:24:32]MH_I2C_Read... [12:24:32]Read from MH i2c: 01 [12:24:32]MH_I2C_Read... [12:24:32]Read from MH i2c: 01 07 00 [12:24:32]MH_I2C_Read... [12:24:32]Read from MH i2c: 01 07 00 7F 32 00 00 00 00 00 DA 0C 9E [12:24:32]RasterBufferAndPrint [12:24:32]line [12:24:32]line [12:24:32]line [12:24:32]line [12:24:32]line [12:24:32]written 0, free lines is 3298 [12:24:32]MH_Cut [12:24:32]Write to MH i2c: D1 01 00 86 32 01 8A [12:24:32]Write i2c OK [12:24:32]MH_I2C_Read... [12:24:32]Read from MH i2c: D1 [12:24:32]MH_I2C_Read... [12:24:32]Read from MH i2c: D1 01 00 [12:24:32]MH_I2C_Read... [12:24:32]Read from MH i2c: D1 01 00 86 32 00 89 [12:24:32]Write to MH i2c: 01 00 00 87 32 B9 [12:24:32]Write i2c OK [12:24:32]MH_I2C_Read... [12:24:32]OFD Sender: No OFD packet to send [12:24:32]*** Cut start [12:24:32]*** Partial cut [12:24:32]*** CUTSNS_PIN = 1 [12:24:32]*** CUTSNS_PIN = 0 [12:24:33]*** Brake cut motor [12:24:33]Read from MH i2c: 01 [12:24:33]MH_I2C_Read... [12:24:33]*** Stop cut motor [12:24:33]*** Cut end [12:24:33]Read from MH i2c: 01 07 00 [12:24:33]MH_I2C_Read... [12:24:33]Read from MH i2c: 01 07 00 87 32 00 00 00 00 00 FF 0F CE [12:24:33]process_action close_receipt done [12:24:33]requested_data is exist [12:24:33]produce_requested_data [12:24:33]requested_item fm.sn is exist - process it [12:24:33]wFMCommunicate request_size=4 [12:24:33]MH_SAM_APDU [12:24:33]CAPDU: 80 11 00 00 [12:24:33]Write to MH i2c: E2 08 00 88 32 80 11 00 00 00 00 00 00 34 [12:24:33]Write i2c OK [12:24:33]MH_I2C_Read... [12:24:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:33]Read from MH i2c: E2 [12:24:33]MH_I2C_Read... [12:24:33]Read from MH i2c: E2 17 00 [12:24:33]MH_I2C_Read... [12:24:33]Read from MH i2c: E2 17 00 88 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 7F [12:24:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:24:33]wFMCommunicate OK [12:24:33]requested_item fd.num is exist - process it [12:24:33]SAM_PROTO_GetFieldsCounters [12:24:33]wFMCommunicate request_size=4 [12:24:33]MH_SAM_APDU [12:24:33]CAPDU: 80 13 00 00 [12:24:33]Write to MH i2c: E2 08 00 89 32 80 13 00 00 00 00 00 00 37 [12:24:33]Write i2c OK [12:24:33]MH_I2C_Read... [12:24:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:24:33]Read from MH i2c: E2 [12:24:33]MH_I2C_Read... [12:24:33]Read from MH i2c: E2 62 00 [12:24:33]MH_I2C_Read... [12:24:33]Read from MH i2c: E2 62 00 89 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 E7 0A 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 69 [12:24:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 E7 0A 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:24:33]wFMCommunicate OK [12:24:33]SAM_PROTO_GetFieldsCounters done [12:24:33]requested_item shift.num is exist - process it [12:24:33]requested_item shift.opened is exist - process it [12:24:33]req_shift_opened [12:24:33]FM_GetShiftState [12:24:33]SAM_PROTO_GetShiftState [12:24:33]wFMCommunicate request_size=4 [12:24:33]MH_SAM_APDU [12:24:33]CAPDU: 80 13 01 00 [12:24:33]Write to MH i2c: E2 08 00 8A 32 80 13 01 00 00 00 00 00 39 [12:24:33]Write i2c OK [12:24:33]MH_I2C_Read... [12:24:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:33]Read from MH i2c: E2 [12:24:33]MH_I2C_Read... [12:24:33]Read from MH i2c: E2 0E 00 [12:24:33]MH_I2C_Read... [12:24:33]Read from MH i2c: E2 0E 00 8A 32 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 14 [12:24:33]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [12:24:33]wFMCommunicate OK [12:24:33]SAM_PROTO_GetShiftState done [12:24:33]FM_GetShiftState done [12:24:33]req_shift_opened done [12:24:33]requested_item shift.open_date is exist - process it [12:24:33]req_shift_open_date [12:24:33]req_shift_open_date done [12:24:33]produce_requested_data done [12:24:33]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68327,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [12:24:33]process_action_free close_receipt [12:24:33]json_value_free [12:24:33]json_value_free done [12:24:33]process_json_proto returns [12:24:33]Send response to host [12:24:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68327,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [12:24:33]free response buf [12:24:33]execute_script done [12:24:33]execute_script returns [12:24:33]free content buf [12:24:33]Sock 6.Close socket [12:24:33]Sock 6.Thread stoped [12:24:37]OFD Sender: No OFD packet to send [12:24:42]OFD Sender: No OFD packet to send [12:24:47]OFD Sender: No OFD packet to send [12:24:52]OFD Sender: No OFD packet to send [12:24:57]OFD Sender: No OFD packet to send [12:25:02]OFD Sender: No OFD packet to send [12:25:07]OFD Sender: No OFD packet to send [12:25:12]OFD Sender: No OFD packet to send [12:25:17]OFD Sender: No OFD packet to send [12:25:22]OFD Sender: No OFD packet to send [12:25:27]OFD Sender: No OFD packet to send [12:25:32]OFD Sender: No OFD packet to send [12:25:37]OFD Sender: No OFD packet to send [12:25:42]OFD Sender: No OFD packet to send [12:25:47]OFD Sender: No OFD packet to send [12:25:52]OFD Sender: No OFD packet to send [12:25:57]OFD Sender: No OFD packet to send [12:26:02]OFD Sender: No OFD packet to send [12:26:07]OFD Sender: No OFD packet to send [12:26:12]OFD Sender: No OFD packet to send [12:26:17]OFD Sender: No OFD packet to send [12:26:22]OFD Sender: No OFD packet to send [12:26:27]OFD Sender: No OFD packet to send [12:26:32]OFD Sender: No OFD packet to send [12:26:37]OFD Sender: No OFD packet to send [12:26:42]OFD Sender: No OFD packet to send [12:26:47]OFD Sender: No OFD packet to send [12:26:52]OFD Sender: No OFD packet to send [12:26:57]OFD Sender: No OFD packet to send [12:27:02]OFD Sender: No OFD packet to send [12:27:07]OFD Sender: No OFD packet to send [12:27:12]OFD Sender: No OFD packet to send [12:27:17]OFD Sender: No OFD packet to send [12:27:22]OFD Sender: No OFD packet to send [12:27:27]OFD Sender: No OFD packet to send [12:27:32]OFD Sender: No OFD packet to send [12:27:37]OFD Sender: No OFD packet to send [12:27:42]OFD Sender: No OFD packet to send [12:27:47]OFD Sender: No OFD packet to send [12:27:52]OFD Sender: No OFD packet to send [12:27:57]OFD Sender: No OFD packet to send [12:28:02]OFD Sender: No OFD packet to send [12:28:07]OFD Sender: No OFD packet to send [12:28:12]OFD Sender: No OFD packet to send [12:28:17]OFD Sender: No OFD packet to send [12:28:22]OFD Sender: No OFD packet to send [12:28:27]OFD Sender: No OFD packet to send [12:28:32]OFD Sender: No OFD packet to send [12:28:37]OFD Sender: No OFD packet to send [12:28:42]OFD Sender: No OFD packet to send [12:28:47]OFD Sender: No OFD packet to send [12:28:52]OFD Sender: No OFD packet to send [12:28:57]OFD Sender: No OFD packet to send [12:29:02]OFD Sender: No OFD packet to send [12:29:07]OFD Sender: No OFD packet to send [12:29:12]OFD Sender: No OFD packet to send [12:29:17]OFD Sender: No OFD packet to send [12:29:22]OFD Sender: No OFD packet to send [12:29:27]OFD Sender: No OFD packet to send [12:29:32]OFD Sender: No OFD packet to send [12:29:37]OFD Sender: No OFD packet to send [12:29:42]OFD Sender: No OFD packet to send [12:29:47]OFD Sender: No OFD packet to send [12:29:52]OFD Sender: No OFD packet to send [12:29:57]OFD Sender: No OFD packet to send [12:30:02]OFD Sender: No OFD packet to send [12:30:07]OFD Sender: No OFD packet to send [12:30:12]OFD Sender: No OFD packet to send [12:30:17]OFD Sender: No OFD packet to send [12:30:22]OFD Sender: No OFD packet to send [12:30:27]OFD Sender: No OFD packet to send [12:30:32]OFD Sender: No OFD packet to send [12:30:37]OFD Sender: No OFD packet to send [12:30:42]OFD Sender: No OFD packet to send [12:30:47]OFD Sender: No OFD packet to send [12:30:52]OFD Sender: No OFD packet to send [12:30:57]OFD Sender: No OFD packet to send [12:31:02]OFD Sender: No OFD packet to send [12:31:07]OFD Sender: No OFD packet to send [12:31:12]OFD Sender: No OFD packet to send [12:31:17]OFD Sender: No OFD packet to send [12:31:22]OFD Sender: No OFD packet to send [12:31:27]OFD Sender: No OFD packet to send [12:31:32]OFD Sender: No OFD packet to send [12:31:37]OFD Sender: No OFD packet to send [12:31:42]OFD Sender: No OFD packet to send [12:31:47]OFD Sender: No OFD packet to send [12:31:52]OFD Sender: No OFD packet to send [12:31:57]OFD Sender: No OFD packet to send [12:32:02]OFD Sender: No OFD packet to send [12:32:07]OFD Sender: No OFD packet to send [12:32:12]OFD Sender: No OFD packet to send [12:32:17]OFD Sender: No OFD packet to send [12:32:22]OFD Sender: No OFD packet to send [12:32:27]OFD Sender: No OFD packet to send [12:32:32]OFD Sender: No OFD packet to send [12:32:37]OFD Sender: No OFD packet to send [12:32:42]OFD Sender: No OFD packet to send [12:32:47]OFD Sender: No OFD packet to send [12:32:52]OFD Sender: No OFD packet to send [12:32:57]OFD Sender: No OFD packet to send [12:33:02]OFD Sender: No OFD packet to send [12:33:04]accept exits with 5 [12:33:04]New connection [12:33:04]New thread 3066686820 created [12:33:04]Thread 3066543460 joined [12:33:04]Waiting for new connection... [12:33:04] Sock 5.Parse request [12:33:04]Sock 5.Check first char [12:33:04]Sock 5.First char is OK [12:33:04]request: POST /json_proto HTTP/1.0 [12:33:04]Method: POST [12:33:04]URL: /json_proto [12:33:04]Method is POST - this is cgi request [12:33:04]url: /json_proto [12:33:04]query_string will be loaded in cgi processing [12:33:04]execute_cgi json_proto POST (null) [12:33:04]execute_cgi path=json_proto method=POST [12:33:04]POST find Content-Length [12:33:04]Host: 172.17.36.132:8080 [12:33:04]Content-Length: 843 [12:33:04]Content-Type: application/json [12:33:04] [12:33:04]POST finish read [12:33:04]Found Content-Length = 843 [12:33:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706410", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:04]execute_script... [12:33: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)706410", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:04]POST & json_proto [12:33:04]process_json_proto [12:33:04]json parsed OK: [12:33:04]protocol is kg_v1.0 [12:33:04]action value=close_receipt [12:33:04]process_action close_receipt [12:33:04]cmd_close_receipt [12:33:04]MH_GetDate [12:33:04]Write to MH i2c: F0 00 00 8B 32 AC [12:33:04]Write i2c OK [12:33:04]MH_I2C_Read... [12:33:04]Read from MH i2c: F0 [12:33:04]MH_I2C_Read... [12:33:04]Read from MH i2c: F0 09 00 [12:33:04]MH_I2C_Read... [12:33:04]Read from MH i2c: F0 09 00 8B 32 00 05 B8 5D 66 B2 22 B0 64 1D [12:33:04]GetLastDocTimeStamp 1717417474 [12:33:04]current date 1717417989 [12:33:04]FM_GetShiftState [12:33:04]SAM_PROTO_GetShiftState [12:33:04]wFMCommunicate request_size=4 [12:33:04]MH_SAM_APDU [12:33:04]CAPDU: 80 13 01 00 [12:33:04]Write to MH i2c: E2 08 00 8C 32 80 13 01 00 00 00 00 00 3B [12:33:04]Write i2c OK [12:33:04]MH_I2C_Read... [12:33:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:04]Read from MH i2c: E2 [12:33:04]MH_I2C_Read... [12:33:04]Read from MH i2c: E2 0E 00 [12:33:04]MH_I2C_Read... [12:33:04]Read from MH i2c: E2 0E 00 8C 32 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 16 [12:33:04]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [12:33:04]wFMCommunicate OK [12:33:04]SAM_PROTO_GetShiftState done [12:33:04]FM_GetShiftState done [12:33:04]opened in 1717378033 [12:33:04]opened+sec_in_day 1717464433 [12:33:04]quantity*price = 100015 [12:33:04]sum+1 = 100017 [12:33:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 74 03.06.2024 12:33 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68328 ФПД: 191024623883575 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T123309&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68328&fm=191024623883575&tin=02508201610067®Number=0000000000098096&sum=100016 [12:33:05]StoreToDocumentArchive [12:33:05]shift 324 fd 68328 [12:33:05]save to /storage/0324/doc_00068328 [12:33:05]save last doc name /storage/0324/doc_00068328 to /storage/kkm_last_doc_name [12:33:05]save OK [12:33:05]Clear old archive folders... [12:33:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:33:05]tlvbuf is 001BC330 [12:33:05]SAM_PROTO_ClearQueue [12:33:05]wFMCommunicate request_size=4 [12:33:05]MH_SAM_APDU [12:33:05]CAPDU: 80 09 00 00 [12:33:05]Write to MH i2c: E2 08 00 99 32 80 09 00 00 00 00 00 00 3D [12:33:05]Write i2c OK [12:33:05]MH_I2C_Read... [12:33:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:33:05]Read from MH i2c: E2 [12:33:05]MH_I2C_Read... [12:33:05]Read from MH i2c: E2 03 00 [12:33:05]MH_I2C_Read... [12:33:05]Read from MH i2c: E2 03 00 99 32 00 90 00 3F [12:33:05]RAPDU: 90 00 [12:33:05]wFMCommunicate OK [12:33:05]SAM_PROTO_ClearQueue done [12:33:05]KKMCreateOFDPacket [12:33:05]OFDProtocolAddRootSTLVToBuf [12:33:05]FM_MakeSignedData [12:33:05]FM_MakeSignedData [12:33:05]SAM_PROTO_SignData [12:33:05]wFMCommunicate request_size=4 [12:33:05]MH_SAM_APDU [12:33:05]CAPDU: 80 0D 01 02 [12:33:05]Write to MH i2c: E2 08 00 9A 32 80 0D 01 02 00 00 00 00 45 [12:33:05]Write i2c OK [12:33:05]MH_I2C_Read... [12:33:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:33:05]Read from MH i2c: E2 [12:33:05]MH_I2C_Read... [12:33:05]Read from MH i2c: E2 03 00 [12:33:05]MH_I2C_Read... [12:33:05]Read from MH i2c: E2 03 00 9A 32 00 90 00 40 [12:33:05]RAPDU: 90 00 [12:33:05]wFMCommunicate OK [12:33:05]wFMCommunicate request_size=255 [12:33:05]MH_SAM_APDU [12:33: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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 05 B8 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E8 0A 01 00 35 04 06 00 AD [12:33:05]Write to MH i2c: E2 02 01 9B 32 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 05 B8 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E8 0A 01 00 35 04 06 00 AD 00 00 9B [12:33:05]Write i2c OK [12:33:05]MH_I2C_Read... [12:33:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:05]Read from MH i2c: E2 [12:33:05]MH_I2C_Read... [12:33:05]Read from MH i2c: E2 03 00 [12:33:05]MH_I2C_Read... [12:33:05]Read from MH i2c: E2 03 00 9B 32 00 90 00 41 [12:33:05]RAPDU: 90 00 [12:33:05]wFMCommunicate OK [12:33:05]wFMCommunicate request_size=10 [12:33:05]MH_SAM_APDU [12:33:05]CAPDU: 80 0D 02 02 05 BC 62 D9 95 37 [12:33:05]Write to MH i2c: E2 0D 00 9C 32 80 0D 02 02 05 00 BC 62 D9 95 37 00 00 15 [12:33:05]Write i2c OK [12:33:05]MH_I2C_Read... [12:33:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:05]Read from MH i2c: E2 [12:33:05]MH_I2C_Read... [12:33:05]Read from MH i2c: E2 03 00 [12:33:05]MH_I2C_Read... [12:33:05]Read from MH i2c: E2 03 00 9C 32 00 90 00 42 [12:33:05]RAPDU: 90 00 [12:33:05]wFMCommunicate OK [12:33:05]wFMCommunicate request_size=4 [12:33:05]MH_SAM_APDU [12:33:05]CAPDU: 80 0D 03 02 [12:33:05]Write to MH i2c: E2 08 00 9D 32 80 0D 03 02 00 00 00 00 4A [12:33:05]Write i2c OK [12:33:05]MH_I2C_Read... [12:33:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:33:05]Read from MH i2c: E2 [12:33:05]MH_I2C_Read... [12:33:05]Read from MH i2c: E2 0B 00 [12:33:05]MH_I2C_Read... [12:33:05]Read from MH i2c: E2 0B 00 9D 32 00 48 F3 29 CB 38 97 3F C2 90 00 4A [12:33:05]RAPDU: 48 F3 29 CB 38 97 3F C2 90 00 [12:33:05]wFMCommunicate OK [12:33:05]SAM_PROTO_SignData done [12:33:05]FM_MakeSignedData done [12:33:05]CreateOFDProtocolMessage [12:33:05]wFMCommunicate request_size=4 [12:33:05]MH_SAM_APDU [12:33:05]CAPDU: 80 11 00 00 [12:33:05]Write to MH i2c: E2 08 00 9E 32 80 11 00 00 00 00 00 00 4A [12:33:05]Write i2c OK [12:33:05]MH_I2C_Read... [12:33:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:05]Read from MH i2c: E2 [12:33:05]MH_I2C_Read... [12:33:05]Read from MH i2c: E2 17 00 [12:33:05]MH_I2C_Read... [12:33:05]Read from MH i2c: E2 17 00 9E 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 95 [12:33:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:33:05]wFMCommunicate OK [12:33:05]CreateOFDProtocolMessage done [12:33:05]OFDSenderStorePacket 68328 [12:33:05]StoreOFDPacket docnum=68328 [12:33:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 02 36 07 01 16 0A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 05 B8 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E8 0A 01 00 35 04 06 00 AD BC 62 D9 95 37 48 F3 29 CB 38 97 3F C2 [12:33:05]CheckFolder [12:33:05]dirname=/storage/ofd_packets [12:33:05]CheckFolder done [12:33:05]ProducePacketName [12:33:05]name=ofd_packets/00068328 [12:33:05]NVStorageSaveData ofd_packets/00068328 [12:33:05]File name is /storage/ofd_packets/00068328 [12:33:05]Write 301 bytes [12:33:05]NVStorageSaveData done [12:33:05]OFDSenderStorePacket done [12:33:05]KKMCreateOFDPacket done [12:33:05]NVStorageSaveData kkm_last_timestamp [12:33:05]File name is /storage/kkm_last_timestamp [12:33:05]Write 4 bytes [12:33:05]NVStorageSaveData done [12:33:05]ExternCall_PrintAddStr [12:33:05]wPrintStart [12:33:05]Write to MH i2c: 01 00 00 9F 32 D1 [12:33:05]Write i2c OK [12:33:05]MH_I2C_Read... [12:33:05]Read from MH i2c: 01 [12:33:05]MH_I2C_Read... [12:33:05]Read from MH i2c: 01 07 00 [12:33:05]MH_I2C_Read... [12:33:05]Read from MH i2c: 01 07 00 9F 32 00 00 00 00 00 FF 0F E6 [12:33:05]RasterBufferAndPrint [12:33:05]line Счет N : (1)706410 [12:33:05]line ИНН: 02508201610067 [12:33:05]line Контрольно-Кассовый Чек [12:33:05]line ПРОДАЖА [12:33:05]line ТРК (МРК, ГНК) : 63 [12:33:05]line Товар: 2710124130 [12:33:05]line Аи-92-К-4 [12:33:05]line 14.950 * 66.90 [12:33:05]line = 1000.16 [12:33:05]line НДС 12% НСП 1% [12:33:05]line > о реализуемом товаре [12:33:05]line ИТОГО: 1000.16 [12:33:05]line НСП 1% : 8.85 [12:33:05]line НДС 12% : 106.21 [12:33:05]line Наличными: 0.00 [12:33:05]line Безнал.: 1000.16 [12:33:05]line Место: АЗС № 62 "Партнер Нефть" [12:33:05]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [12:33:05]line СНО: Общий режим [12:33:05]line Чек 74 03.06.2024 12:33 [12:33:05]line Смена: 324 ФФД: 1.0 [12:33:05]line ЗНМ: 0300000181 [12:33:05]line РНМ: 0000000000098096 [12:33:05]line Версия ККМ: 001 [12:33:05]line Платежная система: АКБ Кыргызстан [12:33:06]line ФМ: 0000000000965400 [12:33:06]line ФД: 68328 [12:33:06]line ФПД: 191024623883575 [12:33:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T123309&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68328&fm=191024623883575&tin=02508201610067®Number=0000000000098096&sum=100016 [12:33:06]OFD Sender: Processing packet 68328 [packets to send 26, broken 25] [12:33:06]ProducePacketName [12:33:06]name=ofd_packets/00068328 [12:33:06]OFD Sender: To server: pG, [12:33:06]CommunicateWithHost lk.salyk.kg:30040 [12:33:06]ConnectInit lk.salyk.kg [12:33:06]written 0, free lines is 4095 [12:33:06]Connected sock=7 [12:33:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 02 36 07 01 16 0A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 05 B8 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E8 0A 01 00 35 04 06 00 AD BC 62 D9 95 37 48 F3 29 CB 38 97 3F C2 [12:33:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 C0 19 47 00 91 FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E8 0A 01 00 F4 03 04 00 01 5F 5D 66 B6 04 01 00 00 B2 2D F7 93 32 FB 39 98 [12:33:06]CommunicateWithHost err = 0 [12:33:06]CheckOFDResponse [12:33:06]1017 (14) - 77093643461234 [12:33:06]1041 (16) - 0000000000965400 [12:33:06]1040 (4) - 68328 [12:33:06]1012 (4) - 03.06.2024 06:13 [12:33:06]1206 (1) - 0 [12:33:06]OFD Sender: Remove packet 68328 [12:33:06]ProducePacketName [12:33:06]name=ofd_packets/00068328 [12:33:06]NVStorageDeleteData [12:33:06]Write to MH i2c: 01 00 00 C9 32 FB [12:33:06]Write i2c OK [12:33:06]MH_I2C_Read... [12:33:06]Read from MH i2c: 01 [12:33:06]MH_I2C_Read... [12:33:06]Read from MH i2c: 01 07 00 [12:33:06]MH_I2C_Read... [12:33:06]Read from MH i2c: 01 07 00 C9 32 00 00 00 00 00 ED 0C FB [12:33:06]RasterBufferAndPrint [12:33:06]line [12:33:06]line [12:33:06]line [12:33:06]line [12:33:06]line [12:33:06]written 0, free lines is 3314 [12:33:06]MH_Cut [12:33:06]Write to MH i2c: D1 01 00 D0 32 01 D4 [12:33:06]Write i2c OK [12:33:06]MH_I2C_Read... [12:33:06]Read from MH i2c: D1 [12:33:06]MH_I2C_Read... [12:33:06]Read from MH i2c: D1 01 00 [12:33:06]MH_I2C_Read... [12:33:06]Read from MH i2c: D1 01 00 D0 32 00 D3 [12:33:06]Write to MH i2c: 01 00 00 D1 32 03 [12:33:06]Write i2c OK [12:33:06]MH_I2C_Read... [12:33:07]OFD Sender: No OFD packet to send [12:33:07]*** Cut start [12:33:07]*** Partial cut [12:33:07]*** CUTSNS_PIN = 1 [12:33:07]*** CUTSNS_PIN = 0 [12:33:07]*** Brake cut motor [12:33:08]Read from MH i2c: 01 [12:33:08]MH_I2C_Read... [12:33:08]*** Stop cut motor [12:33:08]*** Cut end [12:33:08]Read from MH i2c: 01 07 00 [12:33:08]MH_I2C_Read... [12:33:08]Read from MH i2c: 01 07 00 D1 32 00 00 00 00 00 FF 0F 18 [12:33:08]process_action close_receipt done [12:33:08]requested_data is exist [12:33:08]produce_requested_data [12:33:08]requested_item fm.sn is exist - process it [12:33:08]wFMCommunicate request_size=4 [12:33:08]MH_SAM_APDU [12:33:08]CAPDU: 80 11 00 00 [12:33:08]Write to MH i2c: E2 08 00 D2 32 80 11 00 00 00 00 00 00 7E [12:33:08]Write i2c OK [12:33:08]MH_I2C_Read... [12:33:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:08]Read from MH i2c: E2 [12:33:08]MH_I2C_Read... [12:33:08]Read from MH i2c: E2 17 00 [12:33:08]MH_I2C_Read... [12:33:08]Read from MH i2c: E2 17 00 D2 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 C9 [12:33:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:33:08]wFMCommunicate OK [12:33:08]requested_item fd.num is exist - process it [12:33:08]SAM_PROTO_GetFieldsCounters [12:33:08]wFMCommunicate request_size=4 [12:33:08]MH_SAM_APDU [12:33:08]CAPDU: 80 13 00 00 [12:33:08]Write to MH i2c: E2 08 00 D3 32 80 13 00 00 00 00 00 00 81 [12:33:08]Write i2c OK [12:33:08]MH_I2C_Read... [12:33:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:33:08]Read from MH i2c: E2 [12:33:08]MH_I2C_Read... [12:33:08]Read from MH i2c: E2 62 00 [12:33:08]MH_I2C_Read... [12:33:08]Read from MH i2c: E2 62 00 D3 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 E8 0A 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 B7 [12:33:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 E8 0A 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:33:08]wFMCommunicate OK [12:33:08]SAM_PROTO_GetFieldsCounters done [12:33:08]requested_item shift.num is exist - process it [12:33:08]requested_item shift.opened is exist - process it [12:33:08]req_shift_opened [12:33:08]FM_GetShiftState [12:33:08]SAM_PROTO_GetShiftState [12:33:08]wFMCommunicate request_size=4 [12:33:08]MH_SAM_APDU [12:33:08]CAPDU: 80 13 01 00 [12:33:08]Write to MH i2c: E2 08 00 D4 32 80 13 01 00 00 00 00 00 83 [12:33:08]Write i2c OK [12:33:08]MH_I2C_Read... [12:33:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:08]Read from MH i2c: E2 [12:33:08]MH_I2C_Read... [12:33:08]Read from MH i2c: E2 0E 00 [12:33:08]MH_I2C_Read... [12:33:08]Read from MH i2c: E2 0E 00 D4 32 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 5E [12:33:08]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [12:33:08]wFMCommunicate OK [12:33:08]SAM_PROTO_GetShiftState done [12:33:08]FM_GetShiftState done [12:33:08]req_shift_opened done [12:33:08]requested_item shift.open_date is exist - process it [12:33:08]req_shift_open_date [12:33:08]req_shift_open_date done [12:33:08]produce_requested_data done [12:33:08]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68328,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [12:33:08]process_action_free close_receipt [12:33:08]json_value_free [12:33:08]json_value_free done [12:33:08]process_json_proto returns [12:33:08]Send response to host [12:33:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68328,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [12:33:08]free response buf [12:33:08]execute_script done [12:33:08]execute_script returns [12:33:08]free content buf [12:33:08]Sock 5.Close socket [12:33:08]Sock 5.Thread stoped [12:33:12]OFD Sender: No OFD packet to send [12:33:17]OFD Sender: No OFD packet to send [12:33:22]OFD Sender: No OFD packet to send [12:33:27]OFD Sender: No OFD packet to send [12:33:32]OFD Sender: No OFD packet to send [12:33:37]OFD Sender: No OFD packet to send [12:33:42]OFD Sender: No OFD packet to send [12:33:47]OFD Sender: No OFD packet to send [12:33:52]OFD Sender: No OFD packet to send [12:33:57]OFD Sender: No OFD packet to send [12:34:02]OFD Sender: No OFD packet to send [12:34:07]OFD Sender: No OFD packet to send [12:34:12]OFD Sender: No OFD packet to send [12:34:17]OFD Sender: No OFD packet to send [12:34:22]OFD Sender: No OFD packet to send [12:34:27]OFD Sender: No OFD packet to send [12:34:32]OFD Sender: No OFD packet to send [12:34:37]OFD Sender: No OFD packet to send [12:34:42]OFD Sender: No OFD packet to send [12:34:47]OFD Sender: No OFD packet to send [12:34:52]OFD Sender: No OFD packet to send [12:34:57]OFD Sender: No OFD packet to send [12:35:02]OFD Sender: No OFD packet to send [12:35:07]OFD Sender: No OFD packet to send [12:35:12]OFD Sender: No OFD packet to send [12:35:17]OFD Sender: No OFD packet to send [12:35:22]OFD Sender: No OFD packet to send [12:35:27]OFD Sender: No OFD packet to send [12:35:32]OFD Sender: No OFD packet to send [12:35:37]OFD Sender: No OFD packet to send [12:35:42]OFD Sender: No OFD packet to send [12:35:47]OFD Sender: No OFD packet to send [12:35:52]OFD Sender: No OFD packet to send [12:35:57]OFD Sender: No OFD packet to send [12:36:02]OFD Sender: No OFD packet to send [12:36:07]OFD Sender: No OFD packet to send [12:36:12]OFD Sender: No OFD packet to send [12:36:17]OFD Sender: No OFD packet to send [12:36:22]OFD Sender: No OFD packet to send [12:36:27]OFD Sender: No OFD packet to send [12:36:32]OFD Sender: No OFD packet to send [12:36:37]OFD Sender: No OFD packet to send [12:36:42]OFD Sender: No OFD packet to send [12:36:47]OFD Sender: No OFD packet to send [12:36:52]OFD Sender: No OFD packet to send [12:36:57]OFD Sender: No OFD packet to send [12:37:02]OFD Sender: No OFD packet to send [12:37:07]OFD Sender: No OFD packet to send [12:37:12]OFD Sender: No OFD packet to send [12:37:17]OFD Sender: No OFD packet to send [12:37:20]accept exits with 6 [12:37:20]New connection [12:37:20]New thread 3066543460 created [12:37:20]Thread 3066686820 joined [12:37:20]Waiting for new connection... [12:37:20] Sock 6.Parse request [12:37:20]Sock 6.Check first char [12:37:20]Sock 6.First char is OK [12:37:20]request: POST /json_proto HTTP/1.0 [12:37:20]Method: POST [12:37:20]URL: /json_proto [12:37:20]Method is POST - this is cgi request [12:37:20]url: /json_proto [12:37:20]query_string will be loaded in cgi processing [12:37:20]execute_cgi json_proto POST (null) [12:37:20]execute_cgi path=json_proto method=POST [12:37:20]POST find Content-Length [12:37:20]Host: 172.17.36.132:8080 [12:37:20]Content-Length: 682 [12:37:20]Content-Type: application/json [12:37:20] [12:37:20]POST finish read [12:37:20]Found Content-Length = 682 [12:37:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706411", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "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:37:20]execute_script... [12:37: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)706411", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "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:37:20]POST & json_proto [12:37:20]process_json_proto [12:37:20]json parsed OK: [12:37:20]protocol is kg_v1.0 [12:37:20]action value=close_receipt [12:37:20]process_action close_receipt [12:37:20]cmd_close_receipt [12:37:20]MH_GetDate [12:37:20]Write to MH i2c: F0 00 00 D5 32 F6 [12:37:20]Write i2c OK [12:37:20]MH_I2C_Read... [12:37:20]Read from MH i2c: F0 [12:37:20]MH_I2C_Read... [12:37:20]Read from MH i2c: F0 09 00 [12:37:20]MH_I2C_Read... [12:37:20]Read from MH i2c: F0 09 00 D5 32 00 05 B9 5D 66 B2 22 B0 64 68 [12:37:20]GetLastDocTimeStamp 1717417989 [12:37:20]current date 1717418245 [12:37:20]FM_GetShiftState [12:37:20]SAM_PROTO_GetShiftState [12:37:20]wFMCommunicate request_size=4 [12:37:20]MH_SAM_APDU [12:37:20]CAPDU: 80 13 01 00 [12:37:20]Write to MH i2c: E2 08 00 D6 32 80 13 01 00 00 00 00 00 85 [12:37:20]Write i2c OK [12:37:20]MH_I2C_Read... [12:37:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:20]Read from MH i2c: E2 [12:37:20]MH_I2C_Read... [12:37:20]Read from MH i2c: E2 0E 00 [12:37:20]MH_I2C_Read... [12:37:20]Read from MH i2c: E2 0E 00 D6 32 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 60 [12:37:20]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [12:37:20]wFMCommunicate OK [12:37:20]SAM_PROTO_GetShiftState done [12:37:20]FM_GetShiftState done [12:37:20]opened in 1717378033 [12:37:20]opened+sec_in_day 1717464433 [12:37:20]quantity*price = 50009 [12:37:20]sum+1 = 50010 [12:37:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 75 03.06.2024 12:37 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68329 ФПД: 154586461918515 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T123725&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68329&fm=154586461918515&tin=02508201610067®Number=0000000000098096&sum=50000 [12:37:21]StoreToDocumentArchive [12:37:21]shift 324 fd 68329 [12:37:21]save to /storage/0324/doc_00068329 [12:37:21]save last doc name /storage/0324/doc_00068329 to /storage/kkm_last_doc_name [12:37:21]save OK [12:37:21]Clear old archive folders... [12:37:21]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:37:21]tlvbuf is B6F17AC0 [12:37:21]SAM_PROTO_ClearQueue [12:37:21]wFMCommunicate request_size=4 [12:37:21]MH_SAM_APDU [12:37:21]CAPDU: 80 09 00 00 [12:37:21]Write to MH i2c: E2 08 00 E3 32 80 09 00 00 00 00 00 00 87 [12:37:21]Write i2c OK [12:37:21]MH_I2C_Read... [12:37:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:37:22]Read from MH i2c: E2 [12:37:22]MH_I2C_Read... [12:37:22]Read from MH i2c: E2 03 00 [12:37:22]MH_I2C_Read... [12:37:22]Read from MH i2c: E2 03 00 E3 32 00 90 00 89 [12:37:22]RAPDU: 90 00 [12:37:22]wFMCommunicate OK [12:37:22]SAM_PROTO_ClearQueue done [12:37:22]KKMCreateOFDPacket [12:37:22]OFDProtocolAddRootSTLVToBuf [12:37:22]FM_MakeSignedData [12:37:22]FM_MakeSignedData [12:37:22]SAM_PROTO_SignData [12:37:22]wFMCommunicate request_size=4 [12:37:22]MH_SAM_APDU [12:37:22]CAPDU: 80 0D 01 02 [12:37:22]Write to MH i2c: E2 08 00 E4 32 80 0D 01 02 00 00 00 00 8F [12:37:22]Write i2c OK [12:37:22]MH_I2C_Read... [12:37:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:37:22]Read from MH i2c: E2 [12:37:22]MH_I2C_Read... [12:37:22]Read from MH i2c: E2 03 00 [12:37:22]MH_I2C_Read... [12:37:22]Read from MH i2c: E2 03 00 E4 32 00 90 00 8A [12:37:22]RAPDU: 90 00 [12:37:22]wFMCommunicate OK [12:37:22]wFMCommunicate request_size=255 [12:37:22]MH_SAM_APDU [12:37:22]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 34 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 05 B9 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E9 0A 01 00 35 04 06 00 [12:37:22]Write to MH i2c: E2 02 01 E5 32 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 34 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 05 B9 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E9 0A 01 00 35 04 06 00 00 00 24 [12:37:22]Write i2c OK [12:37:22]MH_I2C_Read... [12:37:22]OFD Sender: No OFD packet to send [12:37:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:22]Read from MH i2c: E2 [12:37:22]MH_I2C_Read... [12:37:22]Read from MH i2c: E2 03 00 [12:37:22]MH_I2C_Read... [12:37:22]Read from MH i2c: E2 03 00 E5 32 00 90 00 8B [12:37:22]RAPDU: 90 00 [12:37:22]wFMCommunicate OK [12:37:22]wFMCommunicate request_size=11 [12:37:22]MH_SAM_APDU [12:37:22]CAPDU: 80 0D 02 02 06 8C 98 77 26 55 33 [12:37:22]Write to MH i2c: E2 0E 00 E6 32 80 0D 02 02 06 00 8C 98 77 26 55 33 00 00 E7 [12:37:22]Write i2c OK [12:37:22]MH_I2C_Read... [12:37:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:22]Read from MH i2c: E2 [12:37:22]MH_I2C_Read... [12:37:22]Read from MH i2c: E2 03 00 [12:37:22]MH_I2C_Read... [12:37:22]Read from MH i2c: E2 03 00 E6 32 00 90 00 8C [12:37:22]RAPDU: 90 00 [12:37:22]wFMCommunicate OK [12:37:22]wFMCommunicate request_size=4 [12:37:22]MH_SAM_APDU [12:37:22]CAPDU: 80 0D 03 02 [12:37:22]Write to MH i2c: E2 08 00 E7 32 80 0D 03 02 00 00 00 00 94 [12:37:22]Write i2c OK [12:37:22]MH_I2C_Read... [12:37:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:37:22]Read from MH i2c: E2 [12:37:22]MH_I2C_Read... [12:37:22]Read from MH i2c: E2 0B 00 [12:37:22]MH_I2C_Read... [12:37:22]Read from MH i2c: E2 0B 00 E7 32 00 E9 5D 0A 68 53 24 FE AB 90 00 6D [12:37:22]RAPDU: E9 5D 0A 68 53 24 FE AB 90 00 [12:37:22]wFMCommunicate OK [12:37:22]SAM_PROTO_SignData done [12:37:22]FM_MakeSignedData done [12:37:22]CreateOFDProtocolMessage [12:37:22]wFMCommunicate request_size=4 [12:37:22]MH_SAM_APDU [12:37:22]CAPDU: 80 11 00 00 [12:37:22]Write to MH i2c: E2 08 00 E8 32 80 11 00 00 00 00 00 00 94 [12:37:22]Write i2c OK [12:37:22]MH_I2C_Read... [12:37:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:22]Read from MH i2c: E2 [12:37:22]MH_I2C_Read... [12:37:22]Read from MH i2c: E2 17 00 [12:37:22]MH_I2C_Read... [12:37:22]Read from MH i2c: E2 17 00 E8 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 DF [12:37:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:37:22]wFMCommunicate OK [12:37:22]CreateOFDProtocolMessage done [12:37:22]OFDSenderStorePacket 68329 [12:37:22]StoreOFDPacket docnum=68329 [12:37:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 4C 08 08 01 2E 7D 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 34 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 05 B9 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E9 0A 01 00 35 04 06 00 8C 98 77 26 55 33 E9 5D 0A 68 53 24 FE AB [12:37:22]CheckFolder [12:37:22]dirname=/storage/ofd_packets [12:37:22]CheckFolder done [12:37:22]ProducePacketName [12:37:22]name=ofd_packets/00068329 [12:37:22]NVStorageSaveData ofd_packets/00068329 [12:37:22]File name is /storage/ofd_packets/00068329 [12:37:22]Write 302 bytes [12:37:22]NVStorageSaveData done [12:37:22]OFDSenderStorePacket done [12:37:22]KKMCreateOFDPacket done [12:37:22]NVStorageSaveData kkm_last_timestamp [12:37:22]File name is /storage/kkm_last_timestamp [12:37:22]Write 4 bytes [12:37:22]NVStorageSaveData done [12:37:22]ExternCall_PrintAddStr [12:37:22]wPrintStart [12:37:22]Write to MH i2c: 01 00 00 E9 32 1B [12:37:22]Write i2c OK [12:37:22]MH_I2C_Read... [12:37:22]Read from MH i2c: 01 [12:37:22]MH_I2C_Read... [12:37:22]Read from MH i2c: 01 07 00 [12:37:22]MH_I2C_Read... [12:37:22]Read from MH i2c: 01 07 00 E9 32 00 00 00 00 00 FF 0F 30 [12:37:22]RasterBufferAndPrint [12:37:22]line Счет N : (1)706411 [12:37:22]line ИНН: 02508201610067 [12:37:22]line Контрольно-Кассовый Чек [12:37:22]line ПРОДАЖА [12:37:22]line ТРК (МРК, ГНК) : 21 [12:37:22]line Товар: 2710194210 [12:37:22]line ДТ(л)-К-4 [12:37:22]line 6.860 * 72.90 [12:37:22]line = 500.09 [12:37:22]line НДС 12% НСП 1% [12:37:22]line > о реализуемом товаре [12:37:22]line ОКРУГЛЕНИЕ: -0.09 [12:37:22]line ИТОГО: 500.00 [12:37:22]line Внесено: 500.00 [12:37:22]line СДАЧА: 0.00 [12:37:22]line НСП 1% : 4.43 [12:37:22]line НДС 12% : 53.11 [12:37:22]line Наличными: 500.00 [12:37:22]line Безнал.: 0.00 [12:37:22]line Место: АЗС № 62 "Партнер Нефть" [12:37:22]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [12:37:22]line СНО: Общий режим [12:37:22]line Чек 75 03.06.2024 12:37 [12:37:22]line Смена: 324 ФФД: 1.0 [12:37:22]line ЗНМ: 0300000181 [12:37:22]line РНМ: 0000000000098096 [12:37:22]line Версия ККМ: 001 [12:37:22]line ФМ: 0000000000965400 [12:37:22]line ФД: 68329 [12:37:22]line ФПД: 154586461918515 [12:37:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T123725&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68329&fm=154586461918515&tin=02508201610067®Number=0000000000098096&sum=50000 [12:37:22]OFD Sender: Processing packet 68329 [packets to send 26, broken 25] [12:37:22]ProducePacketName [12:37:22]name=ofd_packets/00068329 [12:37:22]OFD Sender: To server: pG, [12:37:22]CommunicateWithHost lk.salyk.kg:30040 [12:37:22]ConnectInit lk.salyk.kg [12:37:22]written 0, free lines is 4095 [12:37:22]Connected sock=7 [12:37:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 4C 08 08 01 2E 7D 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 34 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 05 B9 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E9 0A 01 00 35 04 06 00 8C 98 77 26 55 33 E9 5D 0A 68 53 24 FE AB [12:37:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 7A 9F 47 00 92 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 E9 0A 01 00 F4 03 04 00 02 60 5D 66 B6 04 01 00 00 C3 AE E9 BF 60 18 22 ED [12:37:23]CommunicateWithHost err = 0 [12:37:23]CheckOFDResponse [12:37:23]1017 (14) - 77093643461234 [12:37:23]1041 (16) - 0000000000965400 [12:37:23]1040 (4) - 68329 [12:37:23]1012 (4) - 03.06.2024 06:17 [12:37:23]1206 (1) - 0 [12:37:23]OFD Sender: Remove packet 68329 [12:37:23]ProducePacketName [12:37:23]name=ofd_packets/00068329 [12:37:23]NVStorageDeleteData [12:37:23]Write to MH i2c: 01 00 00 14 33 47 [12:37:23]Write i2c OK [12:37:23]MH_I2C_Read... [12:37:23]Read from MH i2c: 01 [12:37:23]MH_I2C_Read... [12:37:23]Read from MH i2c: 01 07 00 [12:37:23]MH_I2C_Read... [12:37:23]Read from MH i2c: 01 07 00 14 33 00 00 00 00 00 CD 0C 27 [12:37:23]RasterBufferAndPrint [12:37:23]line [12:37:23]line [12:37:23]line [12:37:23]line [12:37:23]line [12:37:23]written 0, free lines is 3283 [12:37:23]MH_Cut [12:37:23]Write to MH i2c: D1 01 00 1B 33 01 20 [12:37:23]Write i2c OK [12:37:23]MH_I2C_Read... [12:37:23]Read from MH i2c: D1 [12:37:23]MH_I2C_Read... [12:37:23]Read from MH i2c: D1 01 00 [12:37:23]MH_I2C_Read... [12:37:23]Read from MH i2c: D1 01 00 1B 33 00 1F [12:37:23]Write to MH i2c: 01 00 00 1C 33 4F [12:37:23]Write i2c OK [12:37:23]MH_I2C_Read... [12:37:23]OFD Sender: No OFD packet to send [12:37:24]*** Cut start [12:37:24]*** Partial cut [12:37:24]*** CUTSNS_PIN = 1 [12:37:24]*** CUTSNS_PIN = 0 [12:37:24]*** Brake cut motor [12:37:24]Read from MH i2c: 01 [12:37:24]MH_I2C_Read... [12:37:24]*** Stop cut motor [12:37:24]*** Cut end [12:37:24]Read from MH i2c: 01 07 00 [12:37:24]MH_I2C_Read... [12:37:24]Read from MH i2c: 01 07 00 1C 33 00 00 00 00 00 FF 0F 64 [12:37:24]process_action close_receipt done [12:37:24]requested_data is exist [12:37:24]produce_requested_data [12:37:24]requested_item fm.sn is exist - process it [12:37:24]wFMCommunicate request_size=4 [12:37:24]MH_SAM_APDU [12:37:24]CAPDU: 80 11 00 00 [12:37:24]Write to MH i2c: E2 08 00 1D 33 80 11 00 00 00 00 00 00 CA [12:37:24]Write i2c OK [12:37:24]MH_I2C_Read... [12:37:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:24]Read from MH i2c: E2 [12:37:24]MH_I2C_Read... [12:37:24]Read from MH i2c: E2 17 00 [12:37:24]MH_I2C_Read... [12:37:24]Read from MH i2c: E2 17 00 1D 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 15 [12:37:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:37:24]wFMCommunicate OK [12:37:24]requested_item fd.num is exist - process it [12:37:24]SAM_PROTO_GetFieldsCounters [12:37:24]wFMCommunicate request_size=4 [12:37:24]MH_SAM_APDU [12:37:24]CAPDU: 80 13 00 00 [12:37:24]Write to MH i2c: E2 08 00 1E 33 80 13 00 00 00 00 00 00 CD [12:37:24]Write i2c OK [12:37:24]MH_I2C_Read... [12:37:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:37:24]Read from MH i2c: E2 [12:37:24]MH_I2C_Read... [12:37:24]Read from MH i2c: E2 62 00 [12:37:24]MH_I2C_Read... [12:37:24]Read from MH i2c: E2 62 00 1E 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 E9 0A 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 07 [12:37:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 E9 0A 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:37:24]wFMCommunicate OK [12:37:24]SAM_PROTO_GetFieldsCounters done [12:37:24]requested_item shift.num is exist - process it [12:37:24]requested_item shift.opened is exist - process it [12:37:24]req_shift_opened [12:37:24]FM_GetShiftState [12:37:24]SAM_PROTO_GetShiftState [12:37:24]wFMCommunicate request_size=4 [12:37:24]MH_SAM_APDU [12:37:24]CAPDU: 80 13 01 00 [12:37:24]Write to MH i2c: E2 08 00 1F 33 80 13 01 00 00 00 00 00 CF [12:37:24]Write i2c OK [12:37:24]MH_I2C_Read... [12:37:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:24]Read from MH i2c: E2 [12:37:24]MH_I2C_Read... [12:37:24]Read from MH i2c: E2 0E 00 [12:37:24]MH_I2C_Read... [12:37:24]Read from MH i2c: E2 0E 00 1F 33 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 AA [12:37:24]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [12:37:24]wFMCommunicate OK [12:37:24]SAM_PROTO_GetShiftState done [12:37:24]FM_GetShiftState done [12:37:24]req_shift_opened done [12:37:24]requested_item shift.open_date is exist - process it [12:37:24]req_shift_open_date [12:37:24]req_shift_open_date done [12:37:24]produce_requested_data done [12:37:24]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68329,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [12:37:24]process_action_free close_receipt [12:37:24]json_value_free [12:37:24]json_value_free done [12:37:24]process_json_proto returns [12:37:24]Send response to host [12:37:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68329,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [12:37:24]free response buf [12:37:24]execute_script done [12:37:24]execute_script returns [12:37:24]free content buf [12:37:24]Sock 6.Close socket [12:37:24]Sock 6.Thread stoped [12:37:28]OFD Sender: No OFD packet to send [12:37:33]OFD Sender: No OFD packet to send [12:37:38]OFD Sender: No OFD packet to send [12:37:43]OFD Sender: No OFD packet to send [12:37:48]OFD Sender: No OFD packet to send [12:37:53]OFD Sender: No OFD packet to send [12:37:58]OFD Sender: No OFD packet to send [12:38:03]OFD Sender: No OFD packet to send [12:38:08]OFD Sender: No OFD packet to send [12:38:13]OFD Sender: No OFD packet to send [12:38:18]OFD Sender: No OFD packet to send [12:38:23]OFD Sender: No OFD packet to send [12:38:28]OFD Sender: No OFD packet to send [12:38:33]OFD Sender: No OFD packet to send [12:38:38]OFD Sender: No OFD packet to send [12:38:43]OFD Sender: No OFD packet to send [12:38:48]OFD Sender: No OFD packet to send [12:38:53]OFD Sender: No OFD packet to send [12:38:58]OFD Sender: No OFD packet to send [12:39:03]OFD Sender: No OFD packet to send [12:39:08]OFD Sender: No OFD packet to send [12:39:13]OFD Sender: No OFD packet to send [12:39:18]OFD Sender: No OFD packet to send [12:39:23]OFD Sender: No OFD packet to send [12:39:28]OFD Sender: No OFD packet to send [12:39:33]OFD Sender: No OFD packet to send [12:39:38]OFD Sender: No OFD packet to send [12:39:43]OFD Sender: No OFD packet to send [12:39:48]OFD Sender: No OFD packet to send [12:39:53]OFD Sender: No OFD packet to send [12:39:54]accept exits with 5 [12:39:54]New connection [12:39:54]New thread 3066686820 created [12:39:54]Thread 3066543460 joined [12:39:54]Waiting for new connection... [12:39:54] Sock 5.Parse request [12:39:54]Sock 5.Check first char [12:39:54]Sock 5.First char is OK [12:39:54]request: POST /json_proto HTTP/1.0 [12:39:54]Method: POST [12:39:54]URL: /json_proto [12:39:54]Method is POST - this is cgi request [12:39:54]url: /json_proto [12:39:54]query_string will be loaded in cgi processing [12:39:54]execute_cgi json_proto POST (null) [12:39:54]execute_cgi path=json_proto method=POST [12:39:54]POST find Content-Length [12:39:54]Host: 172.17.36.132:8080 [12:39:54]Content-Length: 661 [12:39:54]Content-Type: application/json [12:39:54] [12:39:54]POST finish read [12:39:54]Found Content-Length = 661 [12:39:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706414", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.000, "sum" : 669.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "payments": [ { "type": 0, "sum" : 669.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:39:54]execute_script... [12:39:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706414", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.000, "sum" : 669.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "payments": [ { "type": 0, "sum" : 669.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:39:54]POST & json_proto [12:39:54]process_json_proto [12:39:54]json parsed OK: [12:39:54]protocol is kg_v1.0 [12:39:54]action value=close_receipt [12:39:54]process_action close_receipt [12:39:54]cmd_close_receipt [12:39:54]MH_GetDate [12:39:54]Write to MH i2c: F0 00 00 20 33 42 [12:39:54]Write i2c OK [12:39:54]MH_I2C_Read... [12:39:54]Read from MH i2c: F0 [12:39:54]MH_I2C_Read... [12:39:54]Read from MH i2c: F0 09 00 [12:39:54]MH_I2C_Read... [12:39:54]Read from MH i2c: F0 09 00 20 33 00 9F B9 5D 66 B2 22 B0 64 4E [12:39:54]GetLastDocTimeStamp 1717418245 [12:39:54]current date 1717418399 [12:39:54]FM_GetShiftState [12:39:54]SAM_PROTO_GetShiftState [12:39:54]wFMCommunicate request_size=4 [12:39:54]MH_SAM_APDU [12:39:54]CAPDU: 80 13 01 00 [12:39:54]Write to MH i2c: E2 08 00 21 33 80 13 01 00 00 00 00 00 D1 [12:39:54]Write i2c OK [12:39:54]MH_I2C_Read... [12:39:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:39:54]Read from MH i2c: E2 [12:39:54]MH_I2C_Read... [12:39:54]Read from MH i2c: E2 0E 00 [12:39:54]MH_I2C_Read... [12:39:54]Read from MH i2c: E2 0E 00 21 33 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 AC [12:39:54]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [12:39:54]wFMCommunicate OK [12:39:54]SAM_PROTO_GetShiftState done [12:39:54]FM_GetShiftState done [12:39:54]opened in 1717378033 [12:39:54]opened+sec_in_day 1717464433 [12:39:54]quantity*price = 66900 [12:39:54]sum+1 = 66901 [12:39:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 669.00 Внесено: 1000.00 СДАЧА: 331.00 НСП 1% : 5.92 НДС 12% : 71.04 Наличными: 669.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 76 03.06.2024 12:39 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68330 ФПД: 9178003517687 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T123959&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68330&fm=9178003517687&tin=02508201610067®Number=0000000000098096&sum=66900 [12:39:55]StoreToDocumentArchive [12:39:55]shift 324 fd 68330 [12:39:55]save to /storage/0324/doc_00068330 [12:39:55]save last doc name /storage/0324/doc_00068330 to /storage/kkm_last_doc_name [12:39:55]save OK [12:39:55]Clear old archive folders... [12:39:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:39:55]tlvbuf is 00252A40 [12:39:55]SAM_PROTO_ClearQueue [12:39:55]wFMCommunicate request_size=4 [12:39:55]MH_SAM_APDU [12:39:55]CAPDU: 80 09 00 00 [12:39:55]Write to MH i2c: E2 08 00 2E 33 80 09 00 00 00 00 00 00 D3 [12:39:55]Write i2c OK [12:39:55]MH_I2C_Read... [12:39:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:39:55]Read from MH i2c: E2 [12:39:55]MH_I2C_Read... [12:39:55]Read from MH i2c: E2 03 00 [12:39:55]MH_I2C_Read... [12:39:55]Read from MH i2c: E2 03 00 2E 33 00 90 00 D5 [12:39:55]RAPDU: 90 00 [12:39:55]wFMCommunicate OK [12:39:55]SAM_PROTO_ClearQueue done [12:39:55]KKMCreateOFDPacket [12:39:55]OFDProtocolAddRootSTLVToBuf [12:39:55]FM_MakeSignedData [12:39:55]FM_MakeSignedData [12:39:55]SAM_PROTO_SignData [12:39:55]wFMCommunicate request_size=4 [12:39:55]MH_SAM_APDU [12:39:55]CAPDU: 80 0D 01 02 [12:39:55]Write to MH i2c: E2 08 00 2F 33 80 0D 01 02 00 00 00 00 DB [12:39:55]Write i2c OK [12:39:55]MH_I2C_Read... [12:39:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:39:55]Read from MH i2c: E2 [12:39:55]MH_I2C_Read... [12:39:55]Read from MH i2c: E2 03 00 [12:39:55]MH_I2C_Read... [12:39:55]Read from MH i2c: E2 03 00 2F 33 00 90 00 D6 [12:39:55]RAPDU: 90 00 [12:39:55]wFMCommunicate OK [12:39:55]wFMCommunicate request_size=255 [12:39:55]MH_SAM_APDU [12:39:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 54 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 9F B9 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 EA 0A 01 00 35 04 06 00 08 [12:39:55]Write to MH i2c: E2 02 01 30 33 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 54 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 9F B9 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 EA 0A 01 00 35 04 06 00 08 00 00 3A [12:39:55]Write i2c OK [12:39:55]MH_I2C_Read... [12:39:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:39:55]Read from MH i2c: E2 [12:39:55]MH_I2C_Read... [12:39:55]Read from MH i2c: E2 03 00 [12:39:55]MH_I2C_Read... [12:39:55]Read from MH i2c: E2 03 00 30 33 00 90 00 D7 [12:39:55]RAPDU: 90 00 [12:39:55]wFMCommunicate OK [12:39:55]wFMCommunicate request_size=10 [12:39:55]MH_SAM_APDU [12:39:55]CAPDU: 80 0D 02 02 05 58 EB A3 B0 F7 [12:39:55]Write to MH i2c: E2 0D 00 31 33 80 0D 02 02 05 00 58 EB A3 B0 F7 00 00 75 [12:39:55]Write i2c OK [12:39:55]MH_I2C_Read... [12:39:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:39:55]Read from MH i2c: E2 [12:39:55]MH_I2C_Read... [12:39:55]Read from MH i2c: E2 03 00 [12:39:55]MH_I2C_Read... [12:39:55]Read from MH i2c: E2 03 00 31 33 00 90 00 D8 [12:39:55]RAPDU: 90 00 [12:39:55]wFMCommunicate OK [12:39:55]wFMCommunicate request_size=4 [12:39:55]MH_SAM_APDU [12:39:55]CAPDU: 80 0D 03 02 [12:39:55]Write to MH i2c: E2 08 00 32 33 80 0D 03 02 00 00 00 00 E0 [12:39:55]Write i2c OK [12:39:55]MH_I2C_Read... [12:39:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:39:55]Read from MH i2c: E2 [12:39:55]MH_I2C_Read... [12:39:55]Read from MH i2c: E2 0B 00 [12:39:55]MH_I2C_Read... [12:39:55]Read from MH i2c: E2 0B 00 32 33 00 F6 2B 1E 4C 1B B9 A0 4E 90 00 2E [12:39:55]RAPDU: F6 2B 1E 4C 1B B9 A0 4E 90 00 [12:39:55]wFMCommunicate OK [12:39:55]SAM_PROTO_SignData done [12:39:55]FM_MakeSignedData done [12:39:55]CreateOFDProtocolMessage [12:39:55]wFMCommunicate request_size=4 [12:39:55]MH_SAM_APDU [12:39:55]CAPDU: 80 11 00 00 [12:39:55]Write to MH i2c: E2 08 00 33 33 80 11 00 00 00 00 00 00 E0 [12:39:55]Write i2c OK [12:39:55]MH_I2C_Read... [12:39:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:39:55]Read from MH i2c: E2 [12:39:55]MH_I2C_Read... [12:39:55]Read from MH i2c: E2 17 00 [12:39:55]MH_I2C_Read... [12:39:55]Read from MH i2c: E2 17 00 33 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 2B [12:39:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:39:55]wFMCommunicate OK [12:39:55]CreateOFDProtocolMessage done [12:39:55]OFDSenderStorePacket 68330 [12:39:55]StoreOFDPacket docnum=68330 [12:39:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 BB 46 07 01 B3 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 54 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 9F B9 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 EA 0A 01 00 35 04 06 00 08 58 EB A3 B0 F7 F6 2B 1E 4C 1B B9 A0 4E [12:39:55]CheckFolder [12:39:55]dirname=/storage/ofd_packets [12:39:55]CheckFolder done [12:39:55]ProducePacketName [12:39:55]name=ofd_packets/00068330 [12:39:55]NVStorageSaveData ofd_packets/00068330 [12:39:55]File name is /storage/ofd_packets/00068330 [12:39:55]Write 301 bytes [12:39:55]NVStorageSaveData done [12:39:55]OFDSenderStorePacket done [12:39:55]KKMCreateOFDPacket done [12:39:55]NVStorageSaveData kkm_last_timestamp [12:39:55]File name is /storage/kkm_last_timestamp [12:39:55]Write 4 bytes [12:39:55]NVStorageSaveData done [12:39:55]ExternCall_PrintAddStr [12:39:55]wPrintStart [12:39:55]Write to MH i2c: 01 00 00 34 33 67 [12:39:55]Write i2c OK [12:39:55]MH_I2C_Read... [12:39:55]Read from MH i2c: 01 [12:39:55]MH_I2C_Read... [12:39:55]Read from MH i2c: 01 07 00 [12:39:55]MH_I2C_Read... [12:39:55]Read from MH i2c: 01 07 00 34 33 00 00 00 00 00 FF 0F 7C [12:39:55]RasterBufferAndPrint [12:39:55]line Счет N : (1)706414 [12:39:55]line ИНН: 02508201610067 [12:39:55]line Контрольно-Кассовый Чек [12:39:55]line ПРОДАЖА [12:39:55]line ТРК (МРК, ГНК) : 53 [12:39:55]line Товар: 2710124130 [12:39:55]line Аи-92-К-4 [12:39:55]line 10.000 * 66.90 [12:39:55]line = 669.00 [12:39:55]line НДС 12% НСП 1% [12:39:55]line > о реализуемом товаре [12:39:55]line ИТОГО: 669.00 [12:39:55]line Внесено: 1000.00 [12:39:55]line СДАЧА: 331.00 [12:39:55]line НСП 1% : 5.92 [12:39:55]line НДС 12% : 71.04 [12:39:55]line Наличными: 669.00 [12:39:55]line Безнал.: 0.00 [12:39:55]line Место: АЗС № 62 "Партнер Нефть" [12:39:55]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [12:39:55]line СНО: Общий режим [12:39:55]line Чек 76 03.06.2024 12:39 [12:39:55]line Смена: 324 ФФД: 1.0 [12:39:55]line ЗНМ: 0300000181 [12:39:55]line РНМ: 0000000000098096 [12:39:55]line Версия ККМ: 001 [12:39:55]line ФМ: 0000000000965400 [12:39:55]line ФД: 68330 [12:39:56]line ФПД: 9178003517687 [12:39:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T123959&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68330&fm=9178003517687&tin=02508201610067®Number=0000000000098096&sum=66900 [12:39:56]OFD Sender: Processing packet 68330 [packets to send 26, broken 25] [12:39:56]ProducePacketName [12:39:56]name=ofd_packets/00068330 [12:39:56]OFD Sender: To server: pG, [12:39:56]CommunicateWithHost lk.salyk.kg:30040 [12:39:56]ConnectInit lk.salyk.kg [12:39:56]written 0, free lines is 4095 [12:39:56]Connected sock=7 [12:39:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 BB 46 07 01 B3 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 54 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 9F B9 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 EA 0A 01 00 35 04 06 00 08 58 EB A3 B0 F7 F6 2B 1E 4C 1B B9 A0 4E [12:39:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 7B 23 47 00 C3 AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 EA 0A 01 00 F4 03 04 00 9B 60 5D 66 B6 04 01 00 00 73 30 DC 67 A1 4C 03 09 [12:39:56]CommunicateWithHost err = 0 [12:39:56]CheckOFDResponse [12:39:56]1017 (14) - 77093643461234 [12:39:56]1041 (16) - 0000000000965400 [12:39:56]1040 (4) - 68330 [12:39:56]1012 (4) - 03.06.2024 06:20 [12:39:56]1206 (1) - 0 [12:39:56]OFD Sender: Remove packet 68330 [12:39:56]ProducePacketName [12:39:56]name=ofd_packets/00068330 [12:39:56]NVStorageDeleteData [12:39:56]Write to MH i2c: 01 00 00 5E 33 91 [12:39:56]Write i2c OK [12:39:56]MH_I2C_Read... [12:39:56]Read from MH i2c: 01 [12:39:56]MH_I2C_Read... [12:39:56]Read from MH i2c: 01 07 00 [12:39:56]MH_I2C_Read... [12:39:56]Read from MH i2c: 01 07 00 5E 33 00 00 00 00 00 E3 0C 87 [12:39:56]RasterBufferAndPrint [12:39:56]line [12:39:56]line [12:39:56]line [12:39:56]line [12:39:56]line [12:39:56]written 0, free lines is 3305 [12:39:56]MH_Cut [12:39:56]Write to MH i2c: D1 01 00 65 33 01 6A [12:39:56]Write i2c OK [12:39:56]MH_I2C_Read... [12:39:56]Read from MH i2c: D1 [12:39:56]MH_I2C_Read... [12:39:56]Read from MH i2c: D1 01 00 [12:39:56]MH_I2C_Read... [12:39:56]Read from MH i2c: D1 01 00 65 33 00 69 [12:39:56]Write to MH i2c: 01 00 00 66 33 99 [12:39:56]Write i2c OK [12:39:56]MH_I2C_Read... [12:39:56]OFD Sender: No OFD packet to send [12:39:57]*** Cut start [12:39:57]*** Partial cut [12:39:57]*** CUTSNS_PIN = 1 [12:39:57]*** CUTSNS_PIN = 0 [12:39:57]*** Brake cut motor [12:39:57]Read from MH i2c: 01 [12:39:57]MH_I2C_Read... [12:39:57]*** Stop cut motor [12:39:57]*** Cut end [12:39:57]Read from MH i2c: 01 07 00 [12:39:57]MH_I2C_Read... [12:39:57]Read from MH i2c: 01 07 00 66 33 00 00 00 00 00 FF 0F AE [12:39:57]process_action close_receipt done [12:39:57]requested_data is exist [12:39:57]produce_requested_data [12:39:57]requested_item fm.sn is exist - process it [12:39:57]wFMCommunicate request_size=4 [12:39:57]MH_SAM_APDU [12:39:57]CAPDU: 80 11 00 00 [12:39:57]Write to MH i2c: E2 08 00 67 33 80 11 00 00 00 00 00 00 14 [12:39:57]Write i2c OK [12:39:57]MH_I2C_Read... [12:39:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:39:57]Read from MH i2c: E2 [12:39:57]MH_I2C_Read... [12:39:57]Read from MH i2c: E2 17 00 [12:39:57]MH_I2C_Read... [12:39:57]Read from MH i2c: E2 17 00 67 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 5F [12:39:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:39:57]wFMCommunicate OK [12:39:57]requested_item fd.num is exist - process it [12:39:57]SAM_PROTO_GetFieldsCounters [12:39:57]wFMCommunicate request_size=4 [12:39:57]MH_SAM_APDU [12:39:57]CAPDU: 80 13 00 00 [12:39:57]Write to MH i2c: E2 08 00 68 33 80 13 00 00 00 00 00 00 17 [12:39:57]Write i2c OK [12:39:57]MH_I2C_Read... [12:39:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:39:58]Read from MH i2c: E2 [12:39:58]MH_I2C_Read... [12:39:58]Read from MH i2c: E2 62 00 [12:39:58]MH_I2C_Read... [12:39:58]Read from MH i2c: E2 62 00 68 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 EA 0A 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 55 [12:39:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 EA 0A 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:39:58]wFMCommunicate OK [12:39:58]SAM_PROTO_GetFieldsCounters done [12:39:58]requested_item shift.num is exist - process it [12:39:58]requested_item shift.opened is exist - process it [12:39:58]req_shift_opened [12:39:58]FM_GetShiftState [12:39:58]SAM_PROTO_GetShiftState [12:39:58]wFMCommunicate request_size=4 [12:39:58]MH_SAM_APDU [12:39:58]CAPDU: 80 13 01 00 [12:39:58]Write to MH i2c: E2 08 00 69 33 80 13 01 00 00 00 00 00 19 [12:39:58]Write i2c OK [12:39:58]MH_I2C_Read... [12:39:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:39:58]Read from MH i2c: E2 [12:39:58]MH_I2C_Read... [12:39:58]Read from MH i2c: E2 0E 00 [12:39:58]MH_I2C_Read... [12:39:58]Read from MH i2c: E2 0E 00 69 33 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 F4 [12:39:58]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [12:39:58]wFMCommunicate OK [12:39:58]SAM_PROTO_GetShiftState done [12:39:58]FM_GetShiftState done [12:39:58]req_shift_opened done [12:39:58]requested_item shift.open_date is exist - process it [12:39:58]req_shift_open_date [12:39:58]req_shift_open_date done [12:39:58]produce_requested_data done [12:39:58]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68330,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [12:39:58]process_action_free close_receipt [12:39:58]json_value_free [12:39:58]json_value_free done [12:39:58]process_json_proto returns [12:39:58]Send response to host [12:39:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68330,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [12:39:58]free response buf [12:39:58]execute_script done [12:39:58]execute_script returns [12:39:58]free content buf [12:39:58]Sock 5.Close socket [12:39:58]Sock 5.Thread stoped [12:40:01]OFD Sender: No OFD packet to send [12:40:05]accept exits with 6 [12:40:05]New connection [12:40:05]New thread 3066543460 created [12:40:05]Thread 3066686820 joined [12:40:05]Waiting for new connection... [12:40:05] Sock 6.Parse request [12:40:05]Sock 6.Check first char [12:40:05]Sock 6.First char is OK [12:40:05]request: POST /json_proto HTTP/1.0 [12:40:05]Method: POST [12:40:05]URL: /json_proto [12:40:05]Method is POST - this is cgi request [12:40:05]url: /json_proto [12:40:05]query_string will be loaded in cgi processing [12:40:05]execute_cgi json_proto POST (null) [12:40:05]execute_cgi path=json_proto method=POST [12:40:05]POST find Content-Length [12:40:05]Host: 172.17.36.132:8080 [12:40:05]Content-Length: 677 [12:40:05]Content-Type: application/json [12:40:05] [12:40:05]POST finish read [12:40:05]Found Content-Length = 677 [12:40:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706412", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:40:05]execute_script... [12:40:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706412", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:40:05]POST & json_proto [12:40:05]process_json_proto [12:40:05]json parsed OK: [12:40:05]protocol is kg_v1.0 [12:40:05]action value=close_receipt [12:40:05]process_action close_receipt [12:40:05]cmd_close_receipt [12:40:05]MH_GetDate [12:40:05]Write to MH i2c: F0 00 00 6A 33 8C [12:40:05]Write i2c OK [12:40:05]MH_I2C_Read... [12:40:05]Read from MH i2c: F0 [12:40:05]MH_I2C_Read... [12:40:05]Read from MH i2c: F0 09 00 [12:40:05]MH_I2C_Read... [12:40:05]Read from MH i2c: F0 09 00 6A 33 00 AA B9 5D 66 B2 22 B0 64 A3 [12:40:05]GetLastDocTimeStamp 1717418399 [12:40:05]current date 1717418410 [12:40:05]FM_GetShiftState [12:40:05]SAM_PROTO_GetShiftState [12:40:05]wFMCommunicate request_size=4 [12:40:05]MH_SAM_APDU [12:40:05]CAPDU: 80 13 01 00 [12:40:05]Write to MH i2c: E2 08 00 6B 33 80 13 01 00 00 00 00 00 1B [12:40:05]Write i2c OK [12:40:05]MH_I2C_Read... [12:40:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:40:05]Read from MH i2c: E2 [12:40:05]MH_I2C_Read... [12:40:05]Read from MH i2c: E2 0E 00 [12:40:05]MH_I2C_Read... [12:40:05]Read from MH i2c: E2 0E 00 6B 33 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 F6 [12:40:05]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [12:40:05]wFMCommunicate OK [12:40:05]SAM_PROTO_GetShiftState done [12:40:05]FM_GetShiftState done [12:40:05]opened in 1717378033 [12:40:05]opened+sec_in_day 1717464433 [12:40:05]quantity*price = 20003 [12:40:05]sum+1 = 20004 [12:40:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 77 03.06.2024 12:40 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68331 ФПД: 104736230839308 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T124011&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68331&fm=104736230839308&tin=02508201610067®Number=0000000000098096&sum=20000 [12:40:06]StoreToDocumentArchive [12:40:06]shift 324 fd 68331 [12:40:06]save to /storage/0324/doc_00068331 [12:40:07]save last doc name /storage/0324/doc_00068331 to /storage/kkm_last_doc_name [12:40:07]save OK [12:40:07]Clear old archive folders... [12:40:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:40:07]tlvbuf is 004649A0 [12:40:07]SAM_PROTO_ClearQueue [12:40:07]wFMCommunicate request_size=4 [12:40:07]MH_SAM_APDU [12:40:07]CAPDU: 80 09 00 00 [12:40:07]Write to MH i2c: E2 08 00 78 33 80 09 00 00 00 00 00 00 1D [12:40:07]Write i2c OK [12:40:07]MH_I2C_Read... [12:40:07]Read from MH i2c: E2 [12:40:07]MH_I2C_Read... [12:40:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:40:07]Read from MH i2c: E2 03 00 [12:40:07]MH_I2C_Read... [12:40:07]Read from MH i2c: E2 03 00 78 33 00 90 00 1F [12:40:07]RAPDU: 90 00 [12:40:07]wFMCommunicate OK [12:40:07]SAM_PROTO_ClearQueue done [12:40:07]KKMCreateOFDPacket [12:40:07]OFDProtocolAddRootSTLVToBuf [12:40:07]FM_MakeSignedData [12:40:07]FM_MakeSignedData [12:40:07]SAM_PROTO_SignData [12:40:07]wFMCommunicate request_size=4 [12:40:07]MH_SAM_APDU [12:40:07]CAPDU: 80 0D 01 02 [12:40:07]Write to MH i2c: E2 08 00 79 33 80 0D 01 02 00 00 00 00 25 [12:40:07]Write i2c OK [12:40:07]MH_I2C_Read... [12:40:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:40:07]Read from MH i2c: E2 [12:40:07]MH_I2C_Read... [12:40:07]Read from MH i2c: E2 03 00 [12:40:07]MH_I2C_Read... [12:40:07]Read from MH i2c: E2 03 00 79 33 00 90 00 20 [12:40:07]RAPDU: 90 00 [12:40:07]wFMCommunicate OK [12:40:07]wFMCommunicate request_size=255 [12:40:07]MH_SAM_APDU [12:40:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 AB B9 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 EB 0A 01 00 35 04 06 00 5F [12:40:07]Write to MH i2c: E2 02 01 7A 33 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 AB B9 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 EB 0A 01 00 35 04 06 00 5F 00 00 82 [12:40:07]Write i2c OK [12:40:07]MH_I2C_Read... [12:40:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:40:07]Read from MH i2c: E2 [12:40:07]MH_I2C_Read... [12:40:07]Read from MH i2c: E2 03 00 [12:40:07]MH_I2C_Read... [12:40:07]Read from MH i2c: E2 03 00 7A 33 00 90 00 21 [12:40:07]RAPDU: 90 00 [12:40:07]wFMCommunicate OK [12:40:07]wFMCommunicate request_size=10 [12:40:07]MH_SAM_APDU [12:40:07]CAPDU: 80 0D 02 02 05 41 CD D5 94 0C [12:40:07]Write to MH i2c: E2 0D 00 7B 33 80 0D 02 02 05 00 41 CD D5 94 0C 00 00 B5 [12:40:07]Write i2c OK [12:40:07]MH_I2C_Read... [12:40:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:40:07]Read from MH i2c: E2 [12:40:07]MH_I2C_Read... [12:40:07]Read from MH i2c: E2 03 00 [12:40:07]MH_I2C_Read... [12:40:07]Read from MH i2c: E2 03 00 7B 33 00 90 00 22 [12:40:07]RAPDU: 90 00 [12:40:07]wFMCommunicate OK [12:40:07]wFMCommunicate request_size=4 [12:40:07]MH_SAM_APDU [12:40:07]CAPDU: 80 0D 03 02 [12:40:07]Write to MH i2c: E2 08 00 7C 33 80 0D 03 02 00 00 00 00 2A [12:40:07]Write i2c OK [12:40:07]MH_I2C_Read... [12:40:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:40:07]Read from MH i2c: E2 [12:40:07]MH_I2C_Read... [12:40:07]Read from MH i2c: E2 0B 00 [12:40:07]MH_I2C_Read... [12:40:07]Read from MH i2c: E2 0B 00 7C 33 00 C1 86 5D 16 69 F1 2D 0D 90 00 79 [12:40:07]RAPDU: C1 86 5D 16 69 F1 2D 0D 90 00 [12:40:07]wFMCommunicate OK [12:40:07]SAM_PROTO_SignData done [12:40:07]FM_MakeSignedData done [12:40:07]CreateOFDProtocolMessage [12:40:07]wFMCommunicate request_size=4 [12:40:07]MH_SAM_APDU [12:40:07]CAPDU: 80 11 00 00 [12:40:07]Write to MH i2c: E2 08 00 7D 33 80 11 00 00 00 00 00 00 2A [12:40:07]Write i2c OK [12:40:07]MH_I2C_Read... [12:40:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:40:07]Read from MH i2c: E2 [12:40:07]MH_I2C_Read... [12:40:07]Read from MH i2c: E2 17 00 [12:40:07]MH_I2C_Read... [12:40:07]Read from MH i2c: E2 17 00 7D 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 75 [12:40:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:40:07]wFMCommunicate OK [12:40:07]CreateOFDProtocolMessage done [12:40:07]OFDSenderStorePacket 68331 [12:40:07]StoreOFDPacket docnum=68331 [12:40:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 F1 E2 07 01 B0 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 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 AB B9 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 EB 0A 01 00 35 04 06 00 5F 41 CD D5 94 0C C1 86 5D 16 69 F1 2D 0D [12:40:07]CheckFolder [12:40:07]dirname=/storage/ofd_packets [12:40:07]CheckFolder done [12:40:07]ProducePacketName [12:40:07]name=ofd_packets/00068331 [12:40:07]NVStorageSaveData ofd_packets/00068331 [12:40:07]File name is /storage/ofd_packets/00068331 [12:40:07]Write 301 bytes [12:40:07]NVStorageSaveData done [12:40:07]OFDSenderStorePacket done [12:40:07]KKMCreateOFDPacket done [12:40:07]NVStorageSaveData kkm_last_timestamp [12:40:07]File name is /storage/kkm_last_timestamp [12:40:07]Write 4 bytes [12:40:07]NVStorageSaveData done [12:40:07]ExternCall_PrintAddStr [12:40:07]wPrintStart [12:40:07]Write to MH i2c: 01 00 00 7E 33 B1 [12:40:07]Write i2c OK [12:40:07]MH_I2C_Read... [12:40:07]Read from MH i2c: 01 [12:40:07]MH_I2C_Read... [12:40:07]Read from MH i2c: 01 07 00 [12:40:07]MH_I2C_Read... [12:40:07]Read from MH i2c: 01 07 00 7E 33 00 00 00 00 00 FF 0F C6 [12:40:07]RasterBufferAndPrint [12:40:07]line Счет N : (1)706412 [12:40:07]line ИНН: 02508201610067 [12:40:07]line Контрольно-Кассовый Чек [12:40:07]line ПРОДАЖА [12:40:07]line ТРК (МРК, ГНК) : 32 [12:40:07]line Товар: 2710124130 [12:40:07]line Аи-92-К-4 [12:40:07]line 2.990 * 66.90 [12:40:07]line = 200.03 [12:40:07]line НДС 12% НСП 1% [12:40:07]line > о реализуемом товаре [12:40:07]line ОКРУГЛЕНИЕ: -0.03 [12:40:07]line ИТОГО: 200.00 [12:40:07]line Внесено: 200.00 [12:40:07]line СДАЧА: 0.00 [12:40:07]line НСП 1% : 1.77 [12:40:07]line НДС 12% : 21.24 [12:40:07]line Наличными: 200.00 [12:40:07]line Безнал.: 0.00 [12:40:07]line Место: АЗС № 62 "Партнер Нефть" [12:40:07]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [12:40:07]line СНО: Общий режим [12:40:07]line Чек 77 03.06.2024 12:40 [12:40:07]line Смена: 324 ФФД: 1.0 [12:40:07]line ЗНМ: 0300000181 [12:40:07]line РНМ: 0000000000098096 [12:40:07]line Версия ККМ: 001 [12:40:07]line ФМ: 0000000000965400 [12:40:07]line ФД: 68331 [12:40:07]line ФПД: 104736230839308 [12:40:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T124011&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68331&fm=104736230839308&tin=02508201610067®Number=0000000000098096&sum=20000 [12:40:07]OFD Sender: Processing packet 68331 [packets to send 26, broken 25] [12:40:07]ProducePacketName [12:40:07]name=ofd_packets/00068331 [12:40:07]OFD Sender: To server: pG, [12:40:07]CommunicateWithHost lk.salyk.kg:30040 [12:40:07]ConnectInit lk.salyk.kg [12:40:07]written 0, free lines is 4095 [12:40:07]Connected sock=7 [12:40:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 F1 E2 07 01 B0 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 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 AB B9 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 EB 0A 01 00 35 04 06 00 5F 41 CD D5 94 0C C1 86 5D 16 69 F1 2D 0D [12:40:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 7D 29 47 00 5B F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 EB 0A 01 00 F4 03 04 00 A7 60 5D 66 B6 04 01 00 00 87 B1 A9 FB 2D 21 C2 69 [12:40:08]CommunicateWithHost err = 0 [12:40:08]CheckOFDResponse [12:40:08]1017 (14) - 77093643461234 [12:40:08]1041 (16) - 0000000000965400 [12:40:08]1040 (4) - 68331 [12:40:08]1012 (4) - 03.06.2024 06:20 [12:40:08]1206 (1) - 0 [12:40:08]OFD Sender: Remove packet 68331 [12:40:08]ProducePacketName [12:40:08]name=ofd_packets/00068331 [12:40:08]NVStorageDeleteData [12:40:08]Write to MH i2c: 01 00 00 A9 33 DC [12:40:08]Write i2c OK [12:40:08]MH_I2C_Read... [12:40:08]Read from MH i2c: 01 [12:40:08]MH_I2C_Read... [12:40:08]Read from MH i2c: 01 07 00 [12:40:08]MH_I2C_Read... [12:40:08]Read from MH i2c: 01 07 00 A9 33 00 00 00 00 00 D7 0C C6 [12:40:08]RasterBufferAndPrint [12:40:08]line [12:40:08]line [12:40:08]line [12:40:08]line [12:40:08]line [12:40:08]written 0, free lines is 3294 [12:40:08]MH_Cut [12:40:08]Write to MH i2c: D1 01 00 B0 33 01 B5 [12:40:08]Write i2c OK [12:40:08]MH_I2C_Read... [12:40:08]Read from MH i2c: D1 [12:40:08]MH_I2C_Read... [12:40:08]Read from MH i2c: D1 01 00 [12:40:08]MH_I2C_Read... [12:40:08]Read from MH i2c: D1 01 00 B0 33 00 B4 [12:40:08]Write to MH i2c: 01 00 00 B1 33 E4 [12:40:08]Write i2c OK [12:40:08]MH_I2C_Read... [12:40:08]OFD Sender: No OFD packet to send [12:40:09]*** Cut start [12:40:09]*** Partial cut [12:40:09]*** CUTSNS_PIN = 1 [12:40:09]*** CUTSNS_PIN = 0 [12:40:09]*** Brake cut motor [12:40:09]Read from MH i2c: 01 [12:40:09]MH_I2C_Read... [12:40:09]*** Stop cut motor [12:40:09]*** Cut end [12:40:09]Read from MH i2c: 01 07 00 [12:40:09]MH_I2C_Read... [12:40:09]Read from MH i2c: 01 07 00 B1 33 00 00 00 00 00 FF 0F F9 [12:40:09]process_action close_receipt done [12:40:09]requested_data is exist [12:40:09]produce_requested_data [12:40:09]requested_item fm.sn is exist - process it [12:40:09]wFMCommunicate request_size=4 [12:40:09]MH_SAM_APDU [12:40:09]CAPDU: 80 11 00 00 [12:40:09]Write to MH i2c: E2 08 00 B2 33 80 11 00 00 00 00 00 00 5F [12:40:09]Write i2c OK [12:40:09]MH_I2C_Read... [12:40:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:40:09]Read from MH i2c: E2 [12:40:09]MH_I2C_Read... [12:40:09]Read from MH i2c: E2 17 00 [12:40:09]MH_I2C_Read... [12:40:09]Read from MH i2c: E2 17 00 B2 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 AA [12:40:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:40:09]wFMCommunicate OK [12:40:09]requested_item fd.num is exist - process it [12:40:09]SAM_PROTO_GetFieldsCounters [12:40:09]wFMCommunicate request_size=4 [12:40:09]MH_SAM_APDU [12:40:09]CAPDU: 80 13 00 00 [12:40:09]Write to MH i2c: E2 08 00 B3 33 80 13 00 00 00 00 00 00 62 [12:40:09]Write i2c OK [12:40:09]MH_I2C_Read... [12:40:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:40:09]Read from MH i2c: E2 [12:40:09]MH_I2C_Read... [12:40:09]Read from MH i2c: E2 62 00 [12:40:09]MH_I2C_Read... [12:40:09]Read from MH i2c: E2 62 00 B3 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 EB 0A 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 A4 [12:40:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 EB 0A 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:40:09]wFMCommunicate OK [12:40:09]SAM_PROTO_GetFieldsCounters done [12:40:09]requested_item shift.num is exist - process it [12:40:09]requested_item shift.opened is exist - process it [12:40:09]req_shift_opened [12:40:09]FM_GetShiftState [12:40:09]SAM_PROTO_GetShiftState [12:40:09]wFMCommunicate request_size=4 [12:40:09]MH_SAM_APDU [12:40:09]CAPDU: 80 13 01 00 [12:40:09]Write to MH i2c: E2 08 00 B4 33 80 13 01 00 00 00 00 00 64 [12:40:09]Write i2c OK [12:40:09]MH_I2C_Read... [12:40:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:40:09]Read from MH i2c: E2 [12:40:09]MH_I2C_Read... [12:40:09]Read from MH i2c: E2 0E 00 [12:40:09]MH_I2C_Read... [12:40:09]Read from MH i2c: E2 0E 00 B4 33 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 3F [12:40:09]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [12:40:09]wFMCommunicate OK [12:40:09]SAM_PROTO_GetShiftState done [12:40:09]FM_GetShiftState done [12:40:09]req_shift_opened done [12:40:09]requested_item shift.open_date is exist - process it [12:40:09]req_shift_open_date [12:40:09]req_shift_open_date done [12:40:09]produce_requested_data done [12:40:09]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68331,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [12:40:09]process_action_free close_receipt [12:40:09]json_value_free [12:40:09]json_value_free done [12:40:09]process_json_proto returns [12:40:09]Send response to host [12:40:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68331,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [12:40:09]free response buf [12:40:09]execute_script done [12:40:09]execute_script returns [12:40:09]free content buf [12:40:09]Sock 6.Close socket [12:40:09]Sock 6.Thread stoped [12:40:13]OFD Sender: No OFD packet to send [12:40:18]OFD Sender: No OFD packet to send [12:40:23]OFD Sender: No OFD packet to send [12:40:28]OFD Sender: No OFD packet to send [12:40:33]OFD Sender: No OFD packet to send [12:40:38]OFD Sender: No OFD packet to send [12:40:43]OFD Sender: No OFD packet to send [12:40:48]accept exits with 5 [12:40:48]New connection [12:40:48]New thread 3066686820 created [12:40:48]Thread 3066543460 joined [12:40:48]Waiting for new connection... [12:40:48] Sock 5.Parse request [12:40:48]Sock 5.Check first char [12:40:48]Sock 5.First char is OK [12:40:48]request: POST /json_proto HTTP/1.0 [12:40:48]Method: POST [12:40:48]URL: /json_proto [12:40:48]Method is POST - this is cgi request [12:40:48]url: /json_proto [12:40:48]query_string will be loaded in cgi processing [12:40:48]execute_cgi json_proto POST (null) [12:40:48]execute_cgi path=json_proto method=POST [12:40:48]POST find Content-Length [12:40:48]Host: 172.17.36.132:8080 [12:40:48]Content-Length: 677 [12:40:48]Content-Type: application/json [12:40:48] [12:40:48]POST finish read [12:40:48]Found Content-Length = 677 [12:40:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706413", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:40:48]execute_script... [12:40:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706413", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:40:48]POST & json_proto [12:40:48]process_json_proto [12:40:48]json parsed OK: [12:40:48]protocol is kg_v1.0 [12:40:48]action value=close_receipt [12:40:48]process_action close_receipt [12:40:48]cmd_close_receipt [12:40:48]MH_GetDate [12:40:48]Write to MH i2c: F0 00 00 B5 33 D7 [12:40:48]Write i2c OK [12:40:48]MH_I2C_Read... [12:40:48]Read from MH i2c: F0 [12:40:48]MH_I2C_Read... [12:40:48]Read from MH i2c: F0 09 00 [12:40:48]MH_I2C_Read... [12:40:48]Read from MH i2c: F0 09 00 B5 33 00 D5 B9 5D 66 B2 22 B0 64 19 [12:40:48]GetLastDocTimeStamp 1717418411 [12:40:48]current date 1717418453 [12:40:48]FM_GetShiftState [12:40:48]SAM_PROTO_GetShiftState [12:40:48]wFMCommunicate request_size=4 [12:40:48]MH_SAM_APDU [12:40:48]CAPDU: 80 13 01 00 [12:40:48]Write to MH i2c: E2 08 00 B6 33 80 13 01 00 00 00 00 00 66 [12:40:48]Write i2c OK [12:40:48]MH_I2C_Read... [12:40:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:40:48]Read from MH i2c: E2 [12:40:48]MH_I2C_Read... [12:40:48]Read from MH i2c: E2 0E 00 [12:40:48]MH_I2C_Read... [12:40:48]Read from MH i2c: E2 0E 00 B6 33 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 41 [12:40:48]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [12:40:48]wFMCommunicate OK [12:40:48]SAM_PROTO_GetShiftState done [12:40:48]FM_GetShiftState done [12:40:48]opened in 1717378033 [12:40:48]opened+sec_in_day 1717464433 [12:40:48]quantity*price = 20003 [12:40:48]sum+1 = 20004 [12:40:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 78 03.06.2024 12:40 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68332 ФПД: 207017195264794 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T124053&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68332&fm=207017195264794&tin=02508201610067®Number=0000000000098096&sum=20000 [12:40:49]StoreToDocumentArchive [12:40:49]shift 324 fd 68332 [12:40:49]save to /storage/0324/doc_00068332 [12:40:49]save last doc name /storage/0324/doc_00068332 to /storage/kkm_last_doc_name [12:40:49]save OK [12:40:49]Clear old archive folders... [12:40:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:40:49]tlvbuf is 004D9980 [12:40:49]SAM_PROTO_ClearQueue [12:40:49]wFMCommunicate request_size=4 [12:40:49]MH_SAM_APDU [12:40:49]CAPDU: 80 09 00 00 [12:40:49]Write to MH i2c: E2 08 00 C3 33 80 09 00 00 00 00 00 00 68 [12:40:49]Write i2c OK [12:40:49]MH_I2C_Read... [12:40:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:40:49]Read from MH i2c: E2 [12:40:49]MH_I2C_Read... [12:40:49]Read from MH i2c: E2 03 00 [12:40:49]MH_I2C_Read... [12:40:49]Read from MH i2c: E2 03 00 C3 33 00 90 00 6A [12:40:49]RAPDU: 90 00 [12:40:49]wFMCommunicate OK [12:40:49]SAM_PROTO_ClearQueue done [12:40:49]KKMCreateOFDPacket [12:40:49]OFDProtocolAddRootSTLVToBuf [12:40:49]FM_MakeSignedData [12:40:49]FM_MakeSignedData [12:40:49]SAM_PROTO_SignData [12:40:49]wFMCommunicate request_size=4 [12:40:49]MH_SAM_APDU [12:40:49]CAPDU: 80 0D 01 02 [12:40:49]Write to MH i2c: E2 08 00 C4 33 80 0D 01 02 00 00 00 00 70 [12:40:49]Write i2c OK [12:40:49]MH_I2C_Read... [12:40:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:40:49]Read from MH i2c: E2 [12:40:49]MH_I2C_Read... [12:40:49]Read from MH i2c: E2 03 00 [12:40:49]MH_I2C_Read... [12:40:49]Read from MH i2c: E2 03 00 C4 33 00 90 00 6B [12:40:49]RAPDU: 90 00 [12:40:49]wFMCommunicate OK [12:40:49]wFMCommunicate request_size=255 [12:40:49]MH_SAM_APDU [12:40:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 D5 B9 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 EC 0A 01 00 35 04 06 00 BC [12:40:49]Write to MH i2c: E2 02 01 C5 33 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 D5 B9 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 EC 0A 01 00 35 04 06 00 BC 00 00 56 [12:40:49]Write i2c OK [12:40:49]MH_I2C_Read... [12:40:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:40:50]Read from MH i2c: E2 [12:40:50]MH_I2C_Read... [12:40:50]Read from MH i2c: E2 03 00 [12:40:50]MH_I2C_Read... [12:40:50]Read from MH i2c: E2 03 00 C5 33 00 90 00 6C [12:40:50]RAPDU: 90 00 [12:40:50]wFMCommunicate OK [12:40:50]wFMCommunicate request_size=10 [12:40:50]MH_SAM_APDU [12:40:50]CAPDU: 80 0D 02 02 05 47 F2 62 DB 1A [12:40:50]Write to MH i2c: E2 0D 00 C6 33 80 0D 02 02 05 00 47 F2 62 DB 1A 00 00 0D [12:40:50]Write i2c OK [12:40:50]MH_I2C_Read... [12:40:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:40:50]Read from MH i2c: E2 [12:40:50]MH_I2C_Read... [12:40:50]Read from MH i2c: E2 03 00 [12:40:50]MH_I2C_Read... [12:40:50]Read from MH i2c: E2 03 00 C6 33 00 90 00 6D [12:40:50]RAPDU: 90 00 [12:40:50]wFMCommunicate OK [12:40:50]wFMCommunicate request_size=4 [12:40:50]MH_SAM_APDU [12:40:50]CAPDU: 80 0D 03 02 [12:40:50]Write to MH i2c: E2 08 00 C7 33 80 0D 03 02 00 00 00 00 75 [12:40:50]Write i2c OK [12:40:50]MH_I2C_Read... [12:40:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:40:50]Read from MH i2c: E2 [12:40:50]MH_I2C_Read... [12:40:50]Read from MH i2c: E2 0B 00 [12:40:50]MH_I2C_Read... [12:40:50]Read from MH i2c: E2 0B 00 C7 33 00 32 25 D7 E6 6C 65 E5 6F 90 00 AF [12:40:50]RAPDU: 32 25 D7 E6 6C 65 E5 6F 90 00 [12:40:50]wFMCommunicate OK [12:40:50]SAM_PROTO_SignData done [12:40:50]FM_MakeSignedData done [12:40:50]CreateOFDProtocolMessage [12:40:50]wFMCommunicate request_size=4 [12:40:50]MH_SAM_APDU [12:40:50]CAPDU: 80 11 00 00 [12:40:50]Write to MH i2c: E2 08 00 C8 33 80 11 00 00 00 00 00 00 75 [12:40:50]Write i2c OK [12:40:50]MH_I2C_Read... [12:40:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:40:50]Read from MH i2c: E2 [12:40:50]MH_I2C_Read... [12:40:50]Read from MH i2c: E2 17 00 [12:40:50]MH_I2C_Read... [12:40:50]Read from MH i2c: E2 17 00 C8 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 C0 [12:40:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:40:50]wFMCommunicate OK [12:40:50]CreateOFDProtocolMessage done [12:40:50]OFDSenderStorePacket 68332 [12:40:50]StoreOFDPacket docnum=68332 [12:40:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 A4 5C 07 01 B2 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 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 D5 B9 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 EC 0A 01 00 35 04 06 00 BC 47 F2 62 DB 1A 32 25 D7 E6 6C 65 E5 6F [12:40:50]CheckFolder [12:40:50]dirname=/storage/ofd_packets [12:40:50]CheckFolder done [12:40:50]ProducePacketName [12:40:50]name=ofd_packets/00068332 [12:40:50]NVStorageSaveData ofd_packets/00068332 [12:40:50]File name is /storage/ofd_packets/00068332 [12:40:50]Write 301 bytes [12:40:50]NVStorageSaveData done [12:40:50]OFDSenderStorePacket done [12:40:50]KKMCreateOFDPacket done [12:40:50]NVStorageSaveData kkm_last_timestamp [12:40:50]File name is /storage/kkm_last_timestamp [12:40:50]Write 4 bytes [12:40:50]NVStorageSaveData done [12:40:50]ExternCall_PrintAddStr [12:40:50]wPrintStart [12:40:50]Write to MH i2c: 01 00 00 C9 33 FC [12:40:50]Write i2c OK [12:40:50]MH_I2C_Read... [12:40:50]Read from MH i2c: 01 [12:40:50]MH_I2C_Read... [12:40:50]Read from MH i2c: 01 07 00 [12:40:50]MH_I2C_Read... [12:40:50]Read from MH i2c: 01 07 00 C9 33 00 00 00 00 00 FF 0F 11 [12:40:50]RasterBufferAndPrint [12:40:50]line Счет N : (1)706413 [12:40:50]line ИНН: 02508201610067 [12:40:50]line Контрольно-Кассовый Чек [12:40:50]line ПРОДАЖА [12:40:50]line ТРК (МРК, ГНК) : 13 [12:40:50]line Товар: 2710124130 [12:40:50]line Аи-92-К-4 [12:40:50]line 2.990 * 66.90 [12:40:50]line = 200.03 [12:40:50]line НДС 12% НСП 1% [12:40:50]line > о реализуемом товаре [12:40:50]line ОКРУГЛЕНИЕ: -0.03 [12:40:50]line ИТОГО: 200.00 [12:40:50]line Внесено: 200.00 [12:40:50]line СДАЧА: 0.00 [12:40:50]line НСП 1% : 1.77 [12:40:50]line НДС 12% : 21.24 [12:40:50]line Наличными: 200.00 [12:40:50]line Безнал.: 0.00 [12:40:50]line Место: АЗС № 62 "Партнер Нефть" [12:40:50]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [12:40:50]line СНО: Общий режим [12:40:50]line Чек 78 03.06.2024 12:40 [12:40:50]line Смена: 324 ФФД: 1.0 [12:40:50]line ЗНМ: 0300000181 [12:40:50]line РНМ: 0000000000098096 [12:40:50]line Версия ККМ: 001 [12:40:50]line ФМ: 0000000000965400 [12:40:50]line ФД: 68332 [12:40:50]line ФПД: 207017195264794 [12:40:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T124053&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68332&fm=207017195264794&tin=02508201610067®Number=0000000000098096&sum=20000 [12:40:50]OFD Sender: Processing packet 68332 [packets to send 26, broken 25] [12:40:50]ProducePacketName [12:40:50]name=ofd_packets/00068332 [12:40:50]OFD Sender: To server: pG, [12:40:50]CommunicateWithHost lk.salyk.kg:30040 [12:40:50]ConnectInit lk.salyk.kg [12:40:50]written 0, free lines is 4095 [12:40:50]Connected sock=7 [12:40:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 A4 5C 07 01 B2 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 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 D5 B9 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 EC 0A 01 00 35 04 06 00 BC 47 F2 62 DB 1A 32 25 D7 E6 6C 65 E5 6F [12:40:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 16 5A 47 00 31 D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 EC 0A 01 00 F4 03 04 00 D1 60 5D 66 B6 04 01 00 00 40 C9 79 0B 7F 69 A8 1B [12:40:50]CommunicateWithHost err = 0 [12:40:50]CheckOFDResponse [12:40:50]1017 (14) - 77093643461234 [12:40:50]1041 (16) - 0000000000965400 [12:40:50]1040 (4) - 68332 [12:40:50]1012 (4) - 03.06.2024 06:21 [12:40:50]1206 (1) - 0 [12:40:50]OFD Sender: Remove packet 68332 [12:40:50]ProducePacketName [12:40:50]name=ofd_packets/00068332 [12:40:50]NVStorageDeleteData [12:40:50]Write to MH i2c: 01 00 00 F4 33 27 [12:40:50]Write i2c OK [12:40:50]MH_I2C_Read... [12:40:50]Read from MH i2c: 01 [12:40:50]MH_I2C_Read... [12:40:50]Read from MH i2c: 01 07 00 [12:40:50]MH_I2C_Read... [12:40:50]Read from MH i2c: 01 07 00 F4 33 00 00 00 00 00 D4 0C 0E [12:40:50]RasterBufferAndPrint [12:40:50]line [12:40:50]line [12:40:50]line [12:40:50]line [12:40:50]line [12:40:50]written 0, free lines is 3292 [12:40:50]MH_Cut [12:40:50]Write to MH i2c: D1 01 00 FB 33 01 00 [12:40:50]Write i2c OK [12:40:50]MH_I2C_Read... [12:40:50]Read from MH i2c: D1 [12:40:50]MH_I2C_Read... [12:40:50]Read from MH i2c: D1 01 00 [12:40:50]MH_I2C_Read... [12:40:50]Read from MH i2c: D1 01 00 FB 33 00 FF [12:40:50]Write to MH i2c: 01 00 00 FC 33 2F [12:40:50]Write i2c OK [12:40:50]MH_I2C_Read... [12:40:51]OFD Sender: No OFD packet to send [12:40:51]*** Cut start [12:40:51]*** Partial cut [12:40:51]*** CUTSNS_PIN = 1 [12:40:51]*** CUTSNS_PIN = 0 [12:40:52]*** Brake cut motor [12:40:52]Read from MH i2c: 01 [12:40:52]MH_I2C_Read... [12:40:52]*** Stop cut motor [12:40:52]*** Cut end [12:40:52]Read from MH i2c: 01 07 00 [12:40:52]MH_I2C_Read... [12:40:52]Read from MH i2c: 01 07 00 FC 33 00 00 00 00 00 FF 0F 44 [12:40:52]process_action close_receipt done [12:40:52]requested_data is exist [12:40:52]produce_requested_data [12:40:52]requested_item fm.sn is exist - process it [12:40:52]wFMCommunicate request_size=4 [12:40:52]MH_SAM_APDU [12:40:52]CAPDU: 80 11 00 00 [12:40:52]Write to MH i2c: E2 08 00 FD 33 80 11 00 00 00 00 00 00 AA [12:40:52]Write i2c OK [12:40:52]MH_I2C_Read... [12:40:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:40:52]Read from MH i2c: E2 [12:40:52]MH_I2C_Read... [12:40:52]Read from MH i2c: E2 17 00 [12:40:52]MH_I2C_Read... [12:40:52]Read from MH i2c: E2 17 00 FD 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 F5 [12:40:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:40:52]wFMCommunicate OK [12:40:52]requested_item fd.num is exist - process it [12:40:52]SAM_PROTO_GetFieldsCounters [12:40:52]wFMCommunicate request_size=4 [12:40:52]MH_SAM_APDU [12:40:52]CAPDU: 80 13 00 00 [12:40:52]Write to MH i2c: E2 08 00 FE 33 80 13 00 00 00 00 00 00 AD [12:40:52]Write i2c OK [12:40:52]MH_I2C_Read... [12:40:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:40:52]Read from MH i2c: E2 [12:40:52]MH_I2C_Read... [12:40:52]Read from MH i2c: E2 62 00 [12:40:52]MH_I2C_Read... [12:40:52]Read from MH i2c: E2 62 00 FE 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 EC 0A 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [12:40:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 EC 0A 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:40:52]wFMCommunicate OK [12:40:52]SAM_PROTO_GetFieldsCounters done [12:40:52]requested_item shift.num is exist - process it [12:40:52]requested_item shift.opened is exist - process it [12:40:52]req_shift_opened [12:40:52]FM_GetShiftState [12:40:52]SAM_PROTO_GetShiftState [12:40:52]wFMCommunicate request_size=4 [12:40:52]MH_SAM_APDU [12:40:52]CAPDU: 80 13 01 00 [12:40:52]Write to MH i2c: E2 08 00 FF 33 80 13 01 00 00 00 00 00 AF [12:40:52]Write i2c OK [12:40:52]MH_I2C_Read... [12:40:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:40:52]Read from MH i2c: E2 [12:40:52]MH_I2C_Read... [12:40:52]Read from MH i2c: E2 0E 00 [12:40:52]MH_I2C_Read... [12:40:52]Read from MH i2c: E2 0E 00 FF 33 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 8A [12:40:52]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [12:40:52]wFMCommunicate OK [12:40:52]SAM_PROTO_GetShiftState done [12:40:52]FM_GetShiftState done [12:40:52]req_shift_opened done [12:40:52]requested_item shift.open_date is exist - process it [12:40:52]req_shift_open_date [12:40:52]req_shift_open_date done [12:40:52]produce_requested_data done [12:40:52]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68332,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [12:40:52]process_action_free close_receipt [12:40:52]json_value_free [12:40:52]json_value_free done [12:40:52]process_json_proto returns [12:40:52]Send response to host [12:40:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68332,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [12:40:52]free response buf [12:40:52]execute_script done [12:40:52]execute_script returns [12:40:52]free content buf [12:40:52]Sock 5.Close socket [12:40:52]Sock 5.Thread stoped [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]accept exits with 6 [12:42:21]New connection [12:42:21]New thread 3066543460 created [12:42:21]Thread 3066686820 joined [12:42:21]Waiting for new connection... [12:42:21] Sock 6.Parse request [12:42:21]Sock 6.Check first char [12:42:21]Sock 6.First char is OK [12:42:21]request: POST /json_proto HTTP/1.0 [12:42:21]Method: POST [12:42:21]URL: /json_proto [12:42:21]Method is POST - this is cgi request [12:42:21]url: /json_proto [12:42:21]query_string will be loaded in cgi processing [12:42:21]execute_cgi json_proto POST (null) [12:42:21]execute_cgi path=json_proto method=POST [12:42:21]POST find Content-Length [12:42:21]Host: 172.17.36.132:8080 [12:42:21]Content-Length: 677 [12:42:21]Content-Type: application/json [12:42:21] [12:42:21]POST finish read [12:42:21]Found Content-Length = 677 [12:42:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706416", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 7.450, "sum" : 550.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:42:21]execute_script... [12:42: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)706416", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 7.450, "sum" : 550.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:42:21]POST & json_proto [12:42:21]process_json_proto [12:42:21]json parsed OK: [12:42:21]protocol is kg_v1.0 [12:42:21]action value=close_receipt [12:42:21]process_action close_receipt [12:42:21]cmd_close_receipt [12:42:21]MH_GetDate [12:42:21]Write to MH i2c: F0 00 00 00 34 23 [12:42:21]Write i2c OK [12:42:21]MH_I2C_Read... [12:42:21]Read from MH i2c: F0 [12:42:21]MH_I2C_Read... [12:42:21]Read from MH i2c: F0 09 00 [12:42:21]MH_I2C_Read... [12:42:21]Read from MH i2c: F0 09 00 00 34 00 32 BA 5D 66 B2 22 B0 64 C3 [12:42:21]GetLastDocTimeStamp 1717418453 [12:42:21]current date 1717418546 [12:42:21]FM_GetShiftState [12:42:21]SAM_PROTO_GetShiftState [12:42:21]wFMCommunicate request_size=4 [12:42:21]MH_SAM_APDU [12:42:21]CAPDU: 80 13 01 00 [12:42:21]Write to MH i2c: E2 08 00 01 34 80 13 01 00 00 00 00 00 B2 [12:42:21]Write i2c OK [12:42:21]MH_I2C_Read... [12:42:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:21]Read from MH i2c: E2 [12:42:21]MH_I2C_Read... [12:42:21]Read from MH i2c: E2 0E 00 [12:42:21]MH_I2C_Read... [12:42:21]Read from MH i2c: E2 0E 00 01 34 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 8D [12:42:21]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [12:42:21]wFMCommunicate OK [12:42:21]SAM_PROTO_GetShiftState done [12:42:21]FM_GetShiftState done [12:42:21]opened in 1717378033 [12:42:21]opened+sec_in_day 1717464433 [12:42:21]quantity*price = 55055 [12:42:21]sum+1 = 55057 [12:42:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 550.00 Внесено: 550.00 СДАЧА: 0.00 НСП 1% : 4.87 НДС 12% : 58.47 Наличными: 550.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 79 03.06.2024 12:42 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68333 ФПД: 135684631683365 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T124226&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68333&fm=135684631683365&tin=02508201610067®Number=0000000000098096&sum=55000 [12:42:22]StoreToDocumentArchive [12:42:22]shift 324 fd 68333 [12:42:22]save to /storage/0324/doc_00068333 [12:42:22]save last doc name /storage/0324/doc_00068333 to /storage/kkm_last_doc_name [12:42:22]save OK [12:42:22]Clear old archive folders... [12:42:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:42:22]tlvbuf is B6F17B10 [12:42:22]SAM_PROTO_ClearQueue [12:42:22]wFMCommunicate request_size=4 [12:42:22]MH_SAM_APDU [12:42:22]CAPDU: 80 09 00 00 [12:42:22]Write to MH i2c: E2 08 00 0E 34 80 09 00 00 00 00 00 00 B4 [12:42:22]Write i2c OK [12:42:22]MH_I2C_Read... [12:42:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:42:22]Read from MH i2c: E2 [12:42:22]MH_I2C_Read... [12:42:22]Read from MH i2c: E2 03 00 [12:42:22]MH_I2C_Read... [12:42:22]Read from MH i2c: E2 03 00 0E 34 00 90 00 B6 [12:42:22]RAPDU: 90 00 [12:42:22]wFMCommunicate OK [12:42:22]SAM_PROTO_ClearQueue done [12:42:22]KKMCreateOFDPacket [12:42:22]OFDProtocolAddRootSTLVToBuf [12:42:22]FM_MakeSignedData [12:42:22]FM_MakeSignedData [12:42:22]SAM_PROTO_SignData [12:42:22]wFMCommunicate request_size=4 [12:42:22]MH_SAM_APDU [12:42:22]CAPDU: 80 0D 01 02 [12:42:22]Write to MH i2c: E2 08 00 0F 34 80 0D 01 02 00 00 00 00 BC [12:42:22]Write i2c OK [12:42:22]MH_I2C_Read... [12:42:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:42:22]Read from MH i2c: E2 [12:42:22]MH_I2C_Read... [12:42:22]Read from MH i2c: E2 03 00 [12:42:22]MH_I2C_Read... [12:42:22]Read from MH i2c: E2 03 00 0F 34 00 90 00 B7 [12:42:22]RAPDU: 90 00 [12:42:22]wFMCommunicate OK [12:42:22]wFMCommunicate request_size=255 [12:42:22]MH_SAM_APDU [12:42: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 1A 1D 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 10 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 32 BA 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 ED 0A 01 00 35 04 06 00 7B [12:42:22]Write to MH i2c: E2 02 01 10 34 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 1A 1D 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 10 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 32 BA 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 ED 0A 01 00 35 04 06 00 7B 00 00 C8 [12:42:22]Write i2c OK [12:42:22]MH_I2C_Read... [12:42:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:22]Read from MH i2c: E2 [12:42:22]MH_I2C_Read... [12:42:22]Read from MH i2c: E2 03 00 [12:42:22]MH_I2C_Read... [12:42:22]Read from MH i2c: E2 03 00 10 34 00 90 00 B8 [12:42:22]RAPDU: 90 00 [12:42:22]wFMCommunicate OK [12:42:22]wFMCommunicate request_size=10 [12:42:22]MH_SAM_APDU [12:42:22]CAPDU: 80 0D 02 02 05 67 8A 45 E1 25 [12:42:22]Write to MH i2c: E2 0D 00 11 34 80 0D 02 02 05 00 67 8A 45 E1 25 00 00 05 [12:42:22]Write i2c OK [12:42:22]MH_I2C_Read... [12:42:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:22]Read from MH i2c: E2 [12:42:22]MH_I2C_Read... [12:42:22]Read from MH i2c: E2 03 00 [12:42:22]MH_I2C_Read... [12:42:22]Read from MH i2c: E2 03 00 11 34 00 90 00 B9 [12:42:22]RAPDU: 90 00 [12:42:22]wFMCommunicate OK [12:42:22]wFMCommunicate request_size=4 [12:42:22]MH_SAM_APDU [12:42:22]CAPDU: 80 0D 03 02 [12:42:22]Write to MH i2c: E2 08 00 12 34 80 0D 03 02 00 00 00 00 C1 [12:42:22]Write i2c OK [12:42:22]MH_I2C_Read... [12:42:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:42:22]Read from MH i2c: E2 [12:42:22]MH_I2C_Read... [12:42:22]Read from MH i2c: E2 0B 00 [12:42:22]MH_I2C_Read... [12:42:22]Read from MH i2c: E2 0B 00 12 34 00 7B B5 D3 ED 65 6B 76 27 90 00 1F [12:42:22]RAPDU: 7B B5 D3 ED 65 6B 76 27 90 00 [12:42:22]wFMCommunicate OK [12:42:22]SAM_PROTO_SignData done [12:42:22]FM_MakeSignedData done [12:42:22]CreateOFDProtocolMessage [12:42:22]wFMCommunicate request_size=4 [12:42:22]MH_SAM_APDU [12:42:22]CAPDU: 80 11 00 00 [12:42:22]Write to MH i2c: E2 08 00 13 34 80 11 00 00 00 00 00 00 C1 [12:42:22]Write i2c OK [12:42:22]MH_I2C_Read... [12:42:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:22]Read from MH i2c: E2 [12:42:22]MH_I2C_Read... [12:42:22]Read from MH i2c: E2 17 00 [12:42:22]MH_I2C_Read... [12:42:22]Read from MH i2c: E2 17 00 13 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 0C [12:42:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:42:22]wFMCommunicate OK [12:42:22]CreateOFDProtocolMessage done [12:42:22]OFDSenderStorePacket 68333 [12:42:22]StoreOFDPacket docnum=68333 [12:42:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 04 93 07 01 B6 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 1A 1D 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 10 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 32 BA 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 ED 0A 01 00 35 04 06 00 7B 67 8A 45 E1 25 7B B5 D3 ED 65 6B 76 27 [12:42:22]CheckFolder [12:42:22]dirname=/storage/ofd_packets [12:42:22]CheckFolder done [12:42:22]ProducePacketName [12:42:22]name=ofd_packets/00068333 [12:42:22]NVStorageSaveData ofd_packets/00068333 [12:42:22]File name is /storage/ofd_packets/00068333 [12:42:22]Write 301 bytes [12:42:22]NVStorageSaveData done [12:42:22]OFDSenderStorePacket done [12:42:22]KKMCreateOFDPacket done [12:42:22]NVStorageSaveData kkm_last_timestamp [12:42:22]File name is /storage/kkm_last_timestamp [12:42:22]Write 4 bytes [12:42:22]NVStorageSaveData done [12:42:22]ExternCall_PrintAddStr [12:42:22]wPrintStart [12:42:22]Write to MH i2c: 01 00 00 14 34 48 [12:42:22]Write i2c OK [12:42:22]MH_I2C_Read... [12:42:22]Read from MH i2c: 01 [12:42:22]MH_I2C_Read... [12:42:22]Read from MH i2c: 01 07 00 [12:42:22]MH_I2C_Read... [12:42:22]Read from MH i2c: 01 07 00 14 34 00 00 00 00 00 FF 0F 5D [12:42:22]RasterBufferAndPrint [12:42:22]line Счет N : (1)706416 [12:42:22]line ИНН: 02508201610067 [12:42:22]line Контрольно-Кассовый Чек [12:42:22]line ПРОДАЖА [12:42:22]line ТРК (МРК, ГНК) : 43 [12:42:22]line Товар: 2710124500 [12:42:22]line Аи-95-К-5 [12:42:22]line 7.450 * 73.90 [12:42:22]line = 550.56 [12:42:22]line НДС 12% НСП 1% [12:42:22]line > о реализуемом товаре [12:42:22]line ОКРУГЛЕНИЕ: -0.56 [12:42:22]line ИТОГО: 550.00 [12:42:22]line Внесено: 550.00 [12:42:22]line СДАЧА: 0.00 [12:42:22]line НСП 1% : 4.87 [12:42:22]line НДС 12% : 58.47 [12:42:22]line Наличными: 550.00 [12:42:22]line Безнал.: 0.00 [12:42:22]line Место: АЗС № 62 "Партнер Нефть" [12:42:22]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [12:42:22]line СНО: Общий режим [12:42:22]line Чек 79 03.06.2024 12:42 [12:42:22]line Смена: 324 ФФД: 1.0 [12:42:22]line ЗНМ: 0300000181 [12:42:22]line РНМ: 0000000000098096 [12:42:22]line Версия ККМ: 001 [12:42:22]line ФМ: 0000000000965400 [12:42:22]line ФД: 68333 [12:42:22]line ФПД: 135684631683365 [12:42:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T124226&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68333&fm=135684631683365&tin=02508201610067®Number=0000000000098096&sum=55000 [12:42:23]OFD Sender: Processing packet 68333 [packets to send 26, broken 25] [12:42:23]ProducePacketName [12:42:23]name=ofd_packets/00068333 [12:42:23]OFD Sender: To server: pG, [12:42:23]CommunicateWithHost lk.salyk.kg:30040 [12:42:23]ConnectInit lk.salyk.kg [12:42:23]written 0, free lines is 4095 [12:42:23]Connected sock=7 [12:42:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 04 93 07 01 B6 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 1A 1D 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 10 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 32 BA 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 ED 0A 01 00 35 04 06 00 7B 67 8A 45 E1 25 7B B5 D3 ED 65 6B 76 27 [12:42:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 5B 78 47 00 7E E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 ED 0A 01 00 F4 03 04 00 2E 61 5D 66 B6 04 01 00 00 16 D7 A9 FF 4B 2E 03 85 [12:42:23]CommunicateWithHost err = 0 [12:42:23]CheckOFDResponse [12:42:23]1017 (14) - 77093643461234 [12:42:23]1041 (16) - 0000000000965400 [12:42:23]1040 (4) - 68333 [12:42:23]1012 (4) - 03.06.2024 06:22 [12:42:23]1206 (1) - 0 [12:42:23]OFD Sender: Remove packet 68333 [12:42:23]ProducePacketName [12:42:23]name=ofd_packets/00068333 [12:42:23]NVStorageDeleteData [12:42:23]Write to MH i2c: 01 00 00 3F 34 73 [12:42:23]Write i2c OK [12:42:23]MH_I2C_Read... [12:42:23]Read from MH i2c: 01 [12:42:23]MH_I2C_Read... [12:42:23]Read from MH i2c: 01 07 00 [12:42:23]MH_I2C_Read... [12:42:23]Read from MH i2c: 01 07 00 3F 34 00 00 00 00 00 DE 0C 64 [12:42:23]RasterBufferAndPrint [12:42:23]line [12:42:23]line [12:42:23]line [12:42:23]line [12:42:23]line [12:42:23]written 0, free lines is 3300 [12:42:23]MH_Cut [12:42:23]Write to MH i2c: D1 01 00 46 34 01 4C [12:42:23]Write i2c OK [12:42:23]MH_I2C_Read... [12:42:23]Read from MH i2c: D1 [12:42:23]MH_I2C_Read... [12:42:23]Read from MH i2c: D1 01 00 [12:42:23]MH_I2C_Read... [12:42:23]Read from MH i2c: D1 01 00 46 34 00 4B [12:42:23]Write to MH i2c: 01 00 00 47 34 7B [12:42:23]Write i2c OK [12:42:23]MH_I2C_Read... [12:42:24]OFD Sender: No OFD packet to send [12:42:24]*** Cut start [12:42:24]*** Partial cut [12:42:24]*** CUTSNS_PIN = 1 [12:42:24]*** CUTSNS_PIN = 0 [12:42:24]*** Brake cut motor [12:42:25]Read from MH i2c: 01 [12:42:25]MH_I2C_Read... [12:42:25]*** Stop cut motor [12:42:25]*** Cut end [12:42:25]Read from MH i2c: 01 07 00 [12:42:25]MH_I2C_Read... [12:42:25]Read from MH i2c: 01 07 00 47 34 00 00 00 00 00 FF 0F 90 [12:42:25]process_action close_receipt done [12:42:25]requested_data is exist [12:42:25]produce_requested_data [12:42:25]requested_item fm.sn is exist - process it [12:42:25]wFMCommunicate request_size=4 [12:42:25]MH_SAM_APDU [12:42:25]CAPDU: 80 11 00 00 [12:42:25]Write to MH i2c: E2 08 00 48 34 80 11 00 00 00 00 00 00 F6 [12:42:25]Write i2c OK [12:42:25]MH_I2C_Read... [12:42:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:25]Read from MH i2c: E2 [12:42:25]MH_I2C_Read... [12:42:25]Read from MH i2c: E2 17 00 [12:42:25]MH_I2C_Read... [12:42:25]Read from MH i2c: E2 17 00 48 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 41 [12:42:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:42:25]wFMCommunicate OK [12:42:25]requested_item fd.num is exist - process it [12:42:25]SAM_PROTO_GetFieldsCounters [12:42:25]wFMCommunicate request_size=4 [12:42:25]MH_SAM_APDU [12:42:25]CAPDU: 80 13 00 00 [12:42:25]Write to MH i2c: E2 08 00 49 34 80 13 00 00 00 00 00 00 F9 [12:42:25]Write i2c OK [12:42:25]MH_I2C_Read... [12:42:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:42:25]Read from MH i2c: E2 [12:42:25]MH_I2C_Read... [12:42:25]Read from MH i2c: E2 62 00 [12:42:25]MH_I2C_Read... [12:42:25]Read from MH i2c: E2 62 00 49 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 ED 0A 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 43 [12:42:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 ED 0A 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:42:25]wFMCommunicate OK [12:42:25]SAM_PROTO_GetFieldsCounters done [12:42:25]requested_item shift.num is exist - process it [12:42:25]requested_item shift.opened is exist - process it [12:42:25]req_shift_opened [12:42:25]FM_GetShiftState [12:42:25]SAM_PROTO_GetShiftState [12:42:25]wFMCommunicate request_size=4 [12:42:25]MH_SAM_APDU [12:42:25]CAPDU: 80 13 01 00 [12:42:25]Write to MH i2c: E2 08 00 4A 34 80 13 01 00 00 00 00 00 FB [12:42:25]Write i2c OK [12:42:25]MH_I2C_Read... [12:42:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:25]Read from MH i2c: E2 [12:42:25]MH_I2C_Read... [12:42:25]Read from MH i2c: E2 0E 00 [12:42:25]MH_I2C_Read... [12:42:25]Read from MH i2c: E2 0E 00 4A 34 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 D6 [12:42:25]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [12:42:25]wFMCommunicate OK [12:42:25]SAM_PROTO_GetShiftState done [12:42:25]FM_GetShiftState done [12:42:25]req_shift_opened done [12:42:25]requested_item shift.open_date is exist - process it [12:42:25]req_shift_open_date [12:42:25]req_shift_open_date done [12:42:25]produce_requested_data done [12:42:25]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68333,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [12:42:25]process_action_free close_receipt [12:42:25]json_value_free [12:42:25]json_value_free done [12:42:25]process_json_proto returns [12:42:25]Send response to host [12:42:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68333,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [12:42:25]free response buf [12:42:25]execute_script done [12:42:25]execute_script returns [12:42:25]free content buf [12:42:25]Sock 6.Close socket [12:42:25]Sock 6.Thread stoped [12:42:29]OFD Sender: No OFD packet to send [12:42:34]OFD Sender: No OFD packet to send [12:42:39]OFD Sender: No OFD packet to send [12:42:44]OFD Sender: No OFD packet to send [12:42:49]OFD Sender: No OFD packet to send [12:42:54]OFD Sender: No OFD packet to send [12:42:59]OFD Sender: No OFD packet to send [12:43:01]accept exits with 5 [12:43:01]New connection [12:43:01]New thread 3066686820 created [12:43:01]Thread 3066543460 joined [12:43:01]Waiting for new connection... [12:43:01] Sock 5.Parse request [12:43:01]Sock 5.Check first char [12:43:01]Sock 5.First char is OK [12:43:01]request: POST /json_proto HTTP/1.0 [12:43:01]Method: POST [12:43:01]URL: /json_proto [12:43:01]Method is POST - this is cgi request [12:43:01]url: /json_proto [12:43:01]query_string will be loaded in cgi processing [12:43:01]execute_cgi json_proto POST (null) [12:43:01]execute_cgi path=json_proto method=POST [12:43:01]POST find Content-Length [12:43:01]Host: 172.17.36.132:8080 [12:43:01]Content-Length: 1188 [12:43:01]Content-Type: application/json [12:43:01] [12:43:01]POST finish read [12:43:01]Found Content-Length = 1188 [12:43:01]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706415\u000A03.06.2024 12:20\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-4\u000A 44.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 3207.60\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A01362\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:43:01]execute_script... [12:43:01]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706415\u000A03.06.2024 12:20\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-4\u000A 44.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 3207.60\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A01362\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:43:01]POST & json_proto [12:43:01]process_json_proto [12:43:01]json parsed OK: [12:43:01]protocol is kg_v1.0 [12:43:01]action value=print_text [12:43:01]process_action print_text [12:43:01]cmd_print_text [12:43:01]ExternCall_PrintAddStr [12:43:01]wPrintStart [12:43:01]Write to MH i2c: 01 00 00 4B 34 7F [12:43:01]Write i2c OK [12:43:01]MH_I2C_Read... [12:43:01]Read from MH i2c: 01 [12:43:01]MH_I2C_Read... [12:43:01]Read from MH i2c: 01 07 00 [12:43:01]MH_I2C_Read... [12:43:01]Read from MH i2c: 01 07 00 4B 34 00 00 00 00 00 FF 0F 94 [12:43:01]RasterBufferAndPrint [12:43:01]line *****ТОВАРНЫЙ ЧЕК***** [12:43:01]line АЗС 62 [12:43:01]line Партнер нефть [12:43:01]line 02508201610067 [12:43:01]line Кассир : Балаев А. [12:43:01]line Счет N : (1)706415 [12:43:01]line 03.06.2024 12:20 [12:43:01]line ПРОДАЖА [12:43:01]line ТРК (МРК, ГНК): 21 [12:43:01]line Вид ГСМ : 2710194210 [12:43:01]line ДТ(л)-К-4 [12:43:01]line 44.000 x 72.90 [12:43:01]line ИТОГ: 3207.60 [12:43:01]line Тип оплаты: Талоны: Топливная Карта [12:43:01]line 01362 [12:43:01]line ______________________ [12:43:01]line (подпись) [12:43:01]written 0, free lines is 4095 [12:43:01]Write to MH i2c: 01 00 00 5F 34 93 [12:43:01]Write i2c OK [12:43:01]MH_I2C_Read... [12:43:01]Read from MH i2c: 01 [12:43:01]MH_I2C_Read... [12:43:01]Read from MH i2c: 01 07 00 [12:43:01]MH_I2C_Read... [12:43:01]Read from MH i2c: 01 07 00 5F 34 00 00 00 00 00 0F 0E B7 [12:43:01]RasterBufferAndPrint [12:43:01]line [12:43:01]line [12:43:01]line [12:43:01]line [12:43:01]line [12:43:01]written 0, free lines is 3600 [12:43:01]MH_Cut [12:43:01]Write to MH i2c: D1 01 00 66 34 01 6C [12:43:01]Write i2c OK [12:43:01]MH_I2C_Read... [12:43:01]Read from MH i2c: D1 [12:43:01]MH_I2C_Read... [12:43:01]Read from MH i2c: D1 01 00 [12:43:01]MH_I2C_Read... [12:43:01]Read from MH i2c: D1 01 00 66 34 00 6B [12:43:01]Write to MH i2c: 01 00 00 67 34 9B [12:43:01]Write i2c OK [12:43:01]MH_I2C_Read... [12:43:02]*** Cut start [12:43:02]*** Partial cut [12:43:02]*** CUTSNS_PIN = 1 [12:43:02]*** CUTSNS_PIN = 0 [12:43:02]*** Brake cut motor [12:43:02]Read from MH i2c: 01 [12:43:02]MH_I2C_Read... [12:43:02]Read from MH i2c: 01 07 00 [12:43:02]MH_I2C_Read... [12:43:02]*** Stop cut motor [12:43:02]*** Cut end [12:43:02]Read from MH i2c: 01 07 00 67 34 00 00 00 00 00 FF 0F B0 [12:43:02]process_action print_text done [12:43:02]requested_data is exist [12:43:02]produce_requested_data [12:43:02]requested_item fm.sn is exist - process it [12:43:02]wFMCommunicate request_size=4 [12:43:02]MH_SAM_APDU [12:43:02]CAPDU: 80 11 00 00 [12:43:02]Write to MH i2c: E2 08 00 68 34 80 11 00 00 00 00 00 00 16 [12:43:02]Write i2c OK [12:43:02]MH_I2C_Read... [12:43:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:43:03]Read from MH i2c: E2 [12:43:03]MH_I2C_Read... [12:43:03]Read from MH i2c: E2 17 00 [12:43:03]MH_I2C_Read... [12:43:03]Read from MH i2c: E2 17 00 68 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 61 [12:43:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:43:03]wFMCommunicate OK [12:43:03]requested_item fd.num is exist - process it [12:43:03]SAM_PROTO_GetFieldsCounters [12:43:03]wFMCommunicate request_size=4 [12:43:03]MH_SAM_APDU [12:43:03]CAPDU: 80 13 00 00 [12:43:03]Write to MH i2c: E2 08 00 69 34 80 13 00 00 00 00 00 00 19 [12:43:03]Write i2c OK [12:43:03]MH_I2C_Read... [12:43:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:43:03]Read from MH i2c: E2 [12:43:03]MH_I2C_Read... [12:43:03]Read from MH i2c: E2 62 00 [12:43:03]MH_I2C_Read... [12:43:03]Read from MH i2c: E2 62 00 69 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 ED 0A 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 63 [12:43:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 ED 0A 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:43:03]wFMCommunicate OK [12:43:03]SAM_PROTO_GetFieldsCounters done [12:43:03]requested_item shift.num is exist - process it [12:43:03]requested_item shift.opened is exist - process it [12:43:03]req_shift_opened [12:43:03]FM_GetShiftState [12:43:03]SAM_PROTO_GetShiftState [12:43:03]wFMCommunicate request_size=4 [12:43:03]MH_SAM_APDU [12:43:03]CAPDU: 80 13 01 00 [12:43:03]Write to MH i2c: E2 08 00 6A 34 80 13 01 00 00 00 00 00 1B [12:43:03]Write i2c OK [12:43:03]MH_I2C_Read... [12:43:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:43:03]Read from MH i2c: E2 [12:43:03]MH_I2C_Read... [12:43:03]Read from MH i2c: E2 0E 00 [12:43:03]MH_I2C_Read... [12:43:03]Read from MH i2c: E2 0E 00 6A 34 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 F6 [12:43:03]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [12:43:03]wFMCommunicate OK [12:43:03]SAM_PROTO_GetShiftState done [12:43:03]FM_GetShiftState done [12:43:03]req_shift_opened done [12:43:03]requested_item shift.open_date is exist - process it [12:43:03]req_shift_open_date [12:43:03]req_shift_open_date done [12:43:03]produce_requested_data done [12:43:03]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68333,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [12:43:03]process_action_free print_text [12:43:03]json_value_free [12:43:03]json_value_free done [12:43:03]process_json_proto returns [12:43:03]Send response to host [12:43:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68333,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [12:43:03]free response buf [12:43:03]execute_script done [12:43:03]execute_script returns [12:43:03]free content buf [12:43:03]Sock 5.Close socket [12:43:03]Sock 5.Thread stoped [12:43:04]OFD Sender: No OFD packet to send [12:43:09]OFD Sender: No OFD packet to send [12:43:14]OFD Sender: No OFD packet to send [12:43:19]OFD Sender: No OFD packet to send [12:43:24]OFD Sender: No OFD packet to send [12:43:29]OFD Sender: No OFD packet to send [12:43:34]OFD Sender: No OFD packet to send [12:43:39]OFD Sender: No OFD packet to send [12:43:44]OFD Sender: No OFD packet to send [12:43:49]OFD Sender: No OFD packet to send [12:43:54]OFD Sender: No OFD packet to send [12:43:59]OFD Sender: No OFD packet to send [12:44:04]OFD Sender: No OFD packet to send [12:44:09]OFD Sender: No OFD packet to send [12:44:14]OFD Sender: No OFD packet to send [12:44:19]OFD Sender: No OFD packet to send [12:44:24]OFD Sender: No OFD packet to send [12:44:29]OFD Sender: No OFD packet to send [12:44:34]OFD Sender: No OFD packet to send [12:44:39]OFD Sender: No OFD packet to send [12:44:44]OFD Sender: No OFD packet to send [12:44:49]OFD Sender: No OFD packet to send [12:44:54]OFD Sender: No OFD packet to send [12:44:59]OFD Sender: No OFD packet to send [12:45:04]OFD Sender: No OFD packet to send [12:45:09]OFD Sender: No OFD packet to send [12:45:14]OFD Sender: No OFD packet to send [12:45:19]OFD Sender: No OFD packet to send [12:45:24]OFD Sender: No OFD packet to send [12:45:29]OFD Sender: No OFD packet to send [12:45:34]OFD Sender: No OFD packet to send [12:45:39]OFD Sender: No OFD packet to send [12:45:44]OFD Sender: No OFD packet to send [12:45:49]OFD Sender: No OFD packet to send [12:45:54]OFD Sender: No OFD packet to send [12:45:59]OFD Sender: No OFD packet to send [12:46:04]OFD Sender: No OFD packet to send [12:46:09]OFD Sender: No OFD packet to send [12:46:14]OFD Sender: No OFD packet to send [12:46:19]OFD Sender: No OFD packet to send [12:46:24]OFD Sender: No OFD packet to send [12:46:29]OFD Sender: No OFD packet to send [12:46:34]OFD Sender: No OFD packet to send [12:46:39]OFD Sender: No OFD packet to send [12:46:44]OFD Sender: No OFD packet to send [12:46:49]OFD Sender: No OFD packet to send [12:46:54]OFD Sender: No OFD packet to send [12:46:59]OFD Sender: No OFD packet to send [12:47:04]OFD Sender: No OFD packet to send [12:47:05]accept exits with 6 [12:47:05]New connection [12:47:05]New thread 3066543460 created [12:47:05]Thread 3066686820 joined [12:47:05]Waiting for new connection... [12:47:05] Sock 6.Parse request [12:47:05]Sock 6.Check first char [12:47:05]Sock 6.First char is OK [12:47:05]request: POST /json_proto HTTP/1.0 [12:47:05]Method: POST [12:47:05]URL: /json_proto [12:47:05]Method is POST - this is cgi request [12:47:05]url: /json_proto [12:47:05]query_string will be loaded in cgi processing [12:47:05]execute_cgi json_proto POST (null) [12:47:05]execute_cgi path=json_proto method=POST [12:47:05]POST find Content-Length [12:47:05]Host: 172.17.36.132:8080 [12:47:05]Content-Length: 1143 [12:47:05]Content-Type: application/json [12:47:05] [12:47:05]POST finish read [12:47:05]Found Content-Length = 1143 [12:47:05]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706417\u000A03.06.2024 12:24\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 5.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 334.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30111886\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:47:05]execute_script... [12:47:05]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706417\u000A03.06.2024 12:24\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 13\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 5.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 334.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30111886\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:47:05]POST & json_proto [12:47:05]process_json_proto [12:47:05]json parsed OK: [12:47:05]protocol is kg_v1.0 [12:47:05]action value=print_text [12:47:05]process_action print_text [12:47:05]cmd_print_text [12:47:05]ExternCall_PrintAddStr [12:47:05]wPrintStart [12:47:05]Write to MH i2c: 01 00 00 6B 34 9F [12:47:05]Write i2c OK [12:47:05]MH_I2C_Read... [12:47:05]Read from MH i2c: 01 [12:47:05]MH_I2C_Read... [12:47:05]Read from MH i2c: 01 07 00 [12:47:05]MH_I2C_Read... [12:47:05]Read from MH i2c: 01 07 00 6B 34 00 00 00 00 00 FF 0F B4 [12:47:05]RasterBufferAndPrint [12:47:05]line *****ТОВАРНЫЙ ЧЕК***** [12:47:05]line АЗС 62 [12:47:05]line Партнер нефть [12:47:05]line 02508201610067 [12:47:05]line Кассир : Балаев А. [12:47:05]line Счет N : (1)706417 [12:47:05]line 03.06.2024 12:24 [12:47:05]line ПРОДАЖА [12:47:05]line ТРК (МРК, ГНК): 13 [12:47:05]line Вид ГСМ : 2710124130 [12:47:05]line Аи-92-К-4 [12:47:05]line 5.000 x 66.90 [12:47:05]line ИТОГ: 334.50 [12:47:05]line Тип оплаты: Талоны: ТК ГПНА Online [12:47:05]line 30111886 [12:47:05]line ______________________ [12:47:05]line (подпись) [12:47:05]written 0, free lines is 4095 [12:47:05]Write to MH i2c: 01 00 00 7F 34 B3 [12:47:05]Write i2c OK [12:47:05]MH_I2C_Read... [12:47:05]Read from MH i2c: 01 [12:47:05]MH_I2C_Read... [12:47:05]Read from MH i2c: 01 07 00 [12:47:05]MH_I2C_Read... [12:47:05]Read from MH i2c: 01 07 00 7F 34 00 00 00 00 00 0E 0E D6 [12:47:05]RasterBufferAndPrint [12:47:05]line [12:47:05]line [12:47:05]line [12:47:05]line [12:47:05]line [12:47:05]written 0, free lines is 3599 [12:47:05]MH_Cut [12:47:05]Write to MH i2c: D1 01 00 86 34 01 8C [12:47:05]Write i2c OK [12:47:05]MH_I2C_Read... [12:47:05]Read from MH i2c: D1 [12:47:05]MH_I2C_Read... [12:47:05]Read from MH i2c: D1 01 00 [12:47:05]MH_I2C_Read... [12:47:05]Read from MH i2c: D1 01 00 86 34 00 8B [12:47:05]Write to MH i2c: 01 00 00 87 34 BB [12:47:05]Write i2c OK [12:47:05]MH_I2C_Read... [12:47:05]*** Cut start [12:47:05]*** Partial cut [12:47:05]*** CUTSNS_PIN = 1 [12:47:05]*** CUTSNS_PIN = 0 [12:47:06]*** Brake cut motor [12:47:06]Read from MH i2c: 01 [12:47:06]MH_I2C_Read... [12:47:06]Read from MH i2c: 01 07 00 [12:47:06]MH_I2C_Read... [12:47:06]*** Stop cut motor [12:47:06]*** Cut end [12:47:06]Read from MH i2c: 01 07 00 87 34 00 00 00 00 00 FF 0F D0 [12:47:06]process_action print_text done [12:47:06]requested_data is exist [12:47:06]produce_requested_data [12:47:06]requested_item fm.sn is exist - process it [12:47:06]wFMCommunicate request_size=4 [12:47:06]MH_SAM_APDU [12:47:06]CAPDU: 80 11 00 00 [12:47:06]Write to MH i2c: E2 08 00 88 34 80 11 00 00 00 00 00 00 36 [12:47:06]Write i2c OK [12:47:06]MH_I2C_Read... [12:47:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:06]Read from MH i2c: E2 [12:47:06]MH_I2C_Read... [12:47:06]Read from MH i2c: E2 17 00 [12:47:06]MH_I2C_Read... [12:47:06]Read from MH i2c: E2 17 00 88 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 81 [12:47:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:47:06]wFMCommunicate OK [12:47:06]requested_item fd.num is exist - process it [12:47:06]SAM_PROTO_GetFieldsCounters [12:47:06]wFMCommunicate request_size=4 [12:47:06]MH_SAM_APDU [12:47:06]CAPDU: 80 13 00 00 [12:47:06]Write to MH i2c: E2 08 00 89 34 80 13 00 00 00 00 00 00 39 [12:47:06]Write i2c OK [12:47:06]MH_I2C_Read... [12:47:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:47:06]Read from MH i2c: E2 [12:47:06]MH_I2C_Read... [12:47:06]Read from MH i2c: E2 62 00 [12:47:06]MH_I2C_Read... [12:47:06]Read from MH i2c: E2 62 00 89 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 ED 0A 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 83 [12:47:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 ED 0A 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:47:06]wFMCommunicate OK [12:47:06]SAM_PROTO_GetFieldsCounters done [12:47:06]requested_item shift.num is exist - process it [12:47:06]requested_item shift.opened is exist - process it [12:47:06]req_shift_opened [12:47:06]FM_GetShiftState [12:47:06]SAM_PROTO_GetShiftState [12:47:06]wFMCommunicate request_size=4 [12:47:06]MH_SAM_APDU [12:47:06]CAPDU: 80 13 01 00 [12:47:06]Write to MH i2c: E2 08 00 8A 34 80 13 01 00 00 00 00 00 3B [12:47:06]Write i2c OK [12:47:06]MH_I2C_Read... [12:47:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:06]Read from MH i2c: E2 [12:47:06]MH_I2C_Read... [12:47:06]Read from MH i2c: E2 0E 00 [12:47:06]MH_I2C_Read... [12:47:06]Read from MH i2c: E2 0E 00 8A 34 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 16 [12:47:06]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [12:47:06]wFMCommunicate OK [12:47:06]SAM_PROTO_GetShiftState done [12:47:06]FM_GetShiftState done [12:47:06]req_shift_opened done [12:47:06]requested_item shift.open_date is exist - process it [12:47:06]req_shift_open_date [12:47:06]req_shift_open_date done [12:47:06]produce_requested_data done [12:47:06]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68333,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [12:47:06]process_action_free print_text [12:47:06]json_value_free [12:47:06]json_value_free done [12:47:06]process_json_proto returns [12:47:06]Send response to host [12:47:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68333,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [12:47:06]free response buf [12:47:06]execute_script done [12:47:06]execute_script returns [12:47:06]free content buf [12:47:06]Sock 6.Close socket [12:47:06]Sock 6.Thread stoped [12:47:09]OFD Sender: No OFD packet to send [12:47:14]OFD Sender: No OFD packet to send [12:47:19]OFD Sender: No OFD packet to send [12:47:24]OFD Sender: No OFD packet to send [12:47:25]accept exits with 7 [12:47:25]New connection [12:47:25]New thread 3066686820 created [12:47:25]Thread 3066543460 joined [12:47:25]Waiting for new connection... [12:47:25] Sock 7.Parse request [12:47:25]Sock 7.Check first char [12:47:25]Sock 7.First char is OK [12:47:25]request: POST /json_proto HTTP/1.0 [12:47:25]Method: POST [12:47:25]URL: /json_proto [12:47:25]Method is POST - this is cgi request [12:47:25]url: /json_proto [12:47:25]query_string will be loaded in cgi processing [12:47:25]execute_cgi json_proto POST (null) [12:47:25]execute_cgi path=json_proto method=POST [12:47:25]POST find Content-Length [12:47:25]Host: 172.17.36.132:8080 [12:47:25]Content-Length: 793 [12:47:25]Content-Type: application/json [12:47:25] [12:47:25]POST finish read [12:47:25]Found Content-Length = 793 [12:47:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706418", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 7.370, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:47:25]execute_script... [12:47: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)706418", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 7.370, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:47:25]POST & json_proto [12:47:25]process_json_proto [12:47:25]json parsed OK: [12:47:25]protocol is kg_v1.0 [12:47:25]action value=close_receipt [12:47:25]process_action close_receipt [12:47:25]cmd_close_receipt [12:47:25]MH_GetDate [12:47:25]Write to MH i2c: F0 00 00 8B 34 AE [12:47:25]Write i2c OK [12:47:25]MH_I2C_Read... [12:47:25]Read from MH i2c: F0 [12:47:25]MH_I2C_Read... [12:47:25]Read from MH i2c: F0 09 00 [12:47:25]MH_I2C_Read... [12:47:25]Read from MH i2c: F0 09 00 8B 34 00 62 BB 5D 66 B2 22 B0 64 7F [12:47:25]GetLastDocTimeStamp 1717418546 [12:47:25]current date 1717418850 [12:47:25]FM_GetShiftState [12:47:25]SAM_PROTO_GetShiftState [12:47:25]wFMCommunicate request_size=4 [12:47:25]MH_SAM_APDU [12:47:25]CAPDU: 80 13 01 00 [12:47:25]Write to MH i2c: E2 08 00 8C 34 80 13 01 00 00 00 00 00 3D [12:47:25]Write i2c OK [12:47:25]MH_I2C_Read... [12:47:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:25]Read from MH i2c: E2 [12:47:25]MH_I2C_Read... [12:47:25]Read from MH i2c: E2 0E 00 [12:47:25]MH_I2C_Read... [12:47:25]Read from MH i2c: E2 0E 00 8C 34 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 18 [12:47:25]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [12:47:25]wFMCommunicate OK [12:47:25]SAM_PROTO_GetShiftState done [12:47:25]FM_GetShiftState done [12:47:25]opened in 1717378033 [12:47:25]opened+sec_in_day 1717464433 [12:47:25]quantity*price = 50042 [12:47:25]sum+1 = 50043 [12:47:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.42 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.42 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 80 03.06.2024 12:47 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000965400 ФД: 68334 ФПД: 42759162595200 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T124730&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68334&fm=42759162595200&tin=02508201610067®Number=0000000000098096&sum=50042 [12:47:26]StoreToDocumentArchive [12:47:26]shift 324 fd 68334 [12:47:26]save to /storage/0324/doc_00068334 [12:47:26]save last doc name /storage/0324/doc_00068334 to /storage/kkm_last_doc_name [12:47:26]save OK [12:47:26]Clear old archive folders... [12:47:26]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:47:26]tlvbuf is 00377B50 [12:47:26]SAM_PROTO_ClearQueue [12:47:26]wFMCommunicate request_size=4 [12:47:26]MH_SAM_APDU [12:47:26]CAPDU: 80 09 00 00 [12:47:26]Write to MH i2c: E2 08 00 99 34 80 09 00 00 00 00 00 00 3F [12:47:26]Write i2c OK [12:47:26]MH_I2C_Read... [12:47:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:47:26]Read from MH i2c: E2 [12:47:26]MH_I2C_Read... [12:47:26]Read from MH i2c: E2 03 00 [12:47:26]MH_I2C_Read... [12:47:26]Read from MH i2c: E2 03 00 99 34 00 90 00 41 [12:47:26]RAPDU: 90 00 [12:47:26]wFMCommunicate OK [12:47:26]SAM_PROTO_ClearQueue done [12:47:26]KKMCreateOFDPacket [12:47:26]OFDProtocolAddRootSTLVToBuf [12:47:26]FM_MakeSignedData [12:47:26]FM_MakeSignedData [12:47:26]SAM_PROTO_SignData [12:47:26]wFMCommunicate request_size=4 [12:47:26]MH_SAM_APDU [12:47:26]CAPDU: 80 0D 01 02 [12:47:26]Write to MH i2c: E2 08 00 9A 34 80 0D 01 02 00 00 00 00 47 [12:47:26]Write i2c OK [12:47:26]MH_I2C_Read... [12:47:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:47:26]Read from MH i2c: E2 [12:47:26]MH_I2C_Read... [12:47:26]Read from MH i2c: E2 03 00 [12:47:26]MH_I2C_Read... [12:47:26]Read from MH i2c: E2 03 00 9A 34 00 90 00 42 [12:47:26]RAPDU: 90 00 [12:47:26]wFMCommunicate OK [12:47:26]wFMCommunicate request_size=255 [12:47:26]MH_SAM_APDU [12:47: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 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 1C 00 00 00 00 00 37 04 06 00 86 1A 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 7A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 62 BB 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 EE 0A 01 00 35 04 06 00 [12:47:26]Write to MH i2c: E2 02 01 9B 34 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 1C 00 00 00 00 00 37 04 06 00 86 1A 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 7A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 62 BB 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 EE 0A 01 00 35 04 06 00 00 00 B7 [12:47:26]Write i2c OK [12:47:26]MH_I2C_Read... [12:47:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:47:27]Read from MH i2c: E2 [12:47:27]MH_I2C_Read... [12:47:27]Read from MH i2c: E2 03 00 [12:47:27]MH_I2C_Read... [12:47:27]Read from MH i2c: E2 03 00 9B 34 00 90 00 43 [12:47:27]RAPDU: 90 00 [12:47:27]wFMCommunicate OK [12:47:27]wFMCommunicate request_size=11 [12:47:27]MH_SAM_APDU [12:47:27]CAPDU: 80 0D 02 02 06 26 E3 A4 B2 87 80 [12:47:27]Write to MH i2c: E2 0E 00 9C 34 80 0D 02 02 06 00 26 E3 A4 B2 87 80 00 00 BC [12:47:27]Write i2c OK [12:47:27]MH_I2C_Read... [12:47:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:47:27]Read from MH i2c: E2 [12:47:27]MH_I2C_Read... [12:47:27]Read from MH i2c: E2 03 00 [12:47:27]MH_I2C_Read... [12:47:27]Read from MH i2c: E2 03 00 9C 34 00 90 00 44 [12:47:27]RAPDU: 90 00 [12:47:27]wFMCommunicate OK [12:47:27]wFMCommunicate request_size=4 [12:47:27]MH_SAM_APDU [12:47:27]CAPDU: 80 0D 03 02 [12:47:27]Write to MH i2c: E2 08 00 9D 34 80 0D 03 02 00 00 00 00 4C [12:47:27]Write i2c OK [12:47:27]MH_I2C_Read... [12:47:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:47:27]Read from MH i2c: E2 [12:47:27]MH_I2C_Read... [12:47:27]Read from MH i2c: E2 0B 00 [12:47:27]MH_I2C_Read... [12:47:27]Read from MH i2c: E2 0B 00 9D 34 00 67 6B 31 67 5F F7 1D 60 90 00 8A [12:47:27]RAPDU: 67 6B 31 67 5F F7 1D 60 90 00 [12:47:27]wFMCommunicate OK [12:47:27]SAM_PROTO_SignData done [12:47:27]FM_MakeSignedData done [12:47:27]CreateOFDProtocolMessage [12:47:27]wFMCommunicate request_size=4 [12:47:27]MH_SAM_APDU [12:47:27]CAPDU: 80 11 00 00 [12:47:27]Write to MH i2c: E2 08 00 9E 34 80 11 00 00 00 00 00 00 4C [12:47:27]Write i2c OK [12:47:27]MH_I2C_Read... [12:47:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:27]Read from MH i2c: E2 [12:47:27]MH_I2C_Read... [12:47:27]Read from MH i2c: E2 17 00 [12:47:27]MH_I2C_Read... [12:47:27]Read from MH i2c: E2 17 00 9E 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 97 [12:47:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:47:27]wFMCommunicate OK [12:47:27]CreateOFDProtocolMessage done [12:47:27]OFDSenderStorePacket 68334 [12:47:27]StoreOFDPacket docnum=68334 [12:47:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 B7 93 08 01 0B 00 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 1C 00 00 00 00 00 37 04 06 00 86 1A 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 7A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 62 BB 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 EE 0A 01 00 35 04 06 00 26 E3 A4 B2 87 80 67 6B 31 67 5F F7 1D 60 [12:47:27]CheckFolder [12:47:27]dirname=/storage/ofd_packets [12:47:27]CheckFolder done [12:47:27]ProducePacketName [12:47:27]name=ofd_packets/00068334 [12:47:27]NVStorageSaveData ofd_packets/00068334 [12:47:27]File name is /storage/ofd_packets/00068334 [12:47:27]Write 302 bytes [12:47:27]NVStorageSaveData done [12:47:27]OFDSenderStorePacket done [12:47:27]KKMCreateOFDPacket done [12:47:27]NVStorageSaveData kkm_last_timestamp [12:47:27]File name is /storage/kkm_last_timestamp [12:47:27]Write 4 bytes [12:47:27]NVStorageSaveData done [12:47:27]ExternCall_PrintAddStr [12:47:27]wPrintStart [12:47:27]Write to MH i2c: 01 00 00 9F 34 D3 [12:47:27]Write i2c OK [12:47:27]MH_I2C_Read... [12:47:27]Read from MH i2c: 01 [12:47:27]MH_I2C_Read... [12:47:27]Read from MH i2c: 01 07 00 [12:47:27]MH_I2C_Read... [12:47:27]Read from MH i2c: 01 07 00 9F 34 00 00 00 00 00 FF 0F E8 [12:47:27]RasterBufferAndPrint [12:47:27]line Счет N : (1)706418 [12:47:27]line ИНН: 02508201610067 [12:47:27]line Контрольно-Кассовый Чек [12:47:27]line ПРОДАЖА [12:47:27]line ТРК (МРК, ГНК) : 52 [12:47:27]line Товар: 2710124130 [12:47:27]line Super-92-К-5 [12:47:27]line 7.370 * 67.90 [12:47:27]line = 500.42 [12:47:27]line НДС 12% НСП 1% [12:47:27]line > о реализуемом товаре [12:47:27]line ИТОГО: 500.42 [12:47:27]line НСП 1% : 4.43 [12:47:27]line НДС 12% : 53.14 [12:47:27]line Наличными: 0.00 [12:47:27]line Безнал.: 500.42 [12:47:27]line Место: АЗС № 62 "Партнер Нефть" [12:47:27]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [12:47:27]line СНО: Общий режим [12:47:27]line Чек 80 03.06.2024 12:47 [12:47:27]line Смена: 324 ФФД: 1.0 [12:47:27]line ЗНМ: 0300000181 [12:47:27]line РНМ: 0000000000098096 [12:47:27]line Версия ККМ: 001 [12:47:27]line Платежная система: O! деньги [12:47:27]line ФМ: 0000000000965400 [12:47:27]line ФД: 68334 [12:47:27]line ФПД: 42759162595200 [12:47:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T124730&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68334&fm=42759162595200&tin=02508201610067®Number=0000000000098096&sum=50042 [12:47:27]OFD Sender: Processing packet 68334 [packets to send 26, broken 25] [12:47:27]ProducePacketName [12:47:27]name=ofd_packets/00068334 [12:47:27]OFD Sender: To server: pG, [12:47:27]CommunicateWithHost lk.salyk.kg:30040 [12:47:27]ConnectInit lk.salyk.kg [12:47:27]written 0, free lines is 4095 [12:47:27]Connected sock=6 [12:47:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 B7 93 08 01 0B 00 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 1C 00 00 00 00 00 37 04 06 00 86 1A 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 7A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 62 BB 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 EE 0A 01 00 35 04 06 00 26 E3 A4 B2 87 80 67 6B 31 67 5F F7 1D 60 [12:47:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 1C A0 47 00 81 3F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 EE 0A 01 00 F4 03 04 00 5E 62 5D 66 B6 04 01 00 00 90 32 D1 63 D1 7D 2E 8D [12:47:27]CommunicateWithHost err = 0 [12:47:27]CheckOFDResponse [12:47:27]1017 (14) - 77093643461234 [12:47:27]1041 (16) - 0000000000965400 [12:47:27]1040 (4) - 68334 [12:47:27]1012 (4) - 03.06.2024 06:27 [12:47:27]1206 (1) - 0 [12:47:27]OFD Sender: Remove packet 68334 [12:47:27]ProducePacketName [12:47:27]name=ofd_packets/00068334 [12:47:27]NVStorageDeleteData [12:47:27]Write to MH i2c: 01 00 00 C9 34 FD [12:47:28]Write i2c OK [12:47:28]MH_I2C_Read... [12:47:28]Read from MH i2c: 01 [12:47:28]MH_I2C_Read... [12:47:28]Read from MH i2c: 01 07 00 [12:47:28]MH_I2C_Read... [12:47:28]Read from MH i2c: 01 07 00 C9 34 00 00 00 00 00 ED 0C FD [12:47:28]RasterBufferAndPrint [12:47:28]line [12:47:28]line [12:47:28]line [12:47:28]line [12:47:28]line [12:47:28]written 0, free lines is 3315 [12:47:28]MH_Cut [12:47:28]Write to MH i2c: D1 01 00 D0 34 01 D6 [12:47:28]Write i2c OK [12:47:28]MH_I2C_Read... [12:47:28]Read from MH i2c: D1 [12:47:28]MH_I2C_Read... [12:47:28]Read from MH i2c: D1 01 00 [12:47:28]MH_I2C_Read... [12:47:28]Read from MH i2c: D1 01 00 D0 34 00 D5 [12:47:28]Write to MH i2c: 01 00 00 D1 34 05 [12:47:28]Write i2c OK [12:47:28]MH_I2C_Read... [12:47:28]OFD Sender: No OFD packet to send [12:47:28]*** Cut start [12:47:28]*** Partial cut [12:47:28]*** CUTSNS_PIN = 1 [12:47:28]*** CUTSNS_PIN = 0 [12:47:29]*** Brake cut motor [12:47:29]Read from MH i2c: 01 [12:47:29]MH_I2C_Read... [12:47:29]*** Stop cut motor [12:47:29]*** Cut end [12:47:29]Read from MH i2c: 01 07 00 [12:47:29]MH_I2C_Read... [12:47:29]Read from MH i2c: 01 07 00 D1 34 00 00 00 00 00 FF 0F 1A [12:47:29]process_action close_receipt done [12:47:29]requested_data is exist [12:47:29]produce_requested_data [12:47:29]requested_item fm.sn is exist - process it [12:47:29]wFMCommunicate request_size=4 [12:47:29]MH_SAM_APDU [12:47:29]CAPDU: 80 11 00 00 [12:47:29]Write to MH i2c: E2 08 00 D2 34 80 11 00 00 00 00 00 00 80 [12:47:29]Write i2c OK [12:47:29]MH_I2C_Read... [12:47:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:29]Read from MH i2c: E2 [12:47:29]MH_I2C_Read... [12:47:29]Read from MH i2c: E2 17 00 [12:47:29]MH_I2C_Read... [12:47:29]Read from MH i2c: E2 17 00 D2 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 CB [12:47:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:47:29]wFMCommunicate OK [12:47:29]requested_item fd.num is exist - process it [12:47:29]SAM_PROTO_GetFieldsCounters [12:47:29]wFMCommunicate request_size=4 [12:47:29]MH_SAM_APDU [12:47:29]CAPDU: 80 13 00 00 [12:47:29]Write to MH i2c: E2 08 00 D3 34 80 13 00 00 00 00 00 00 83 [12:47:29]Write i2c OK [12:47:29]MH_I2C_Read... [12:47:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:47:29]Read from MH i2c: E2 [12:47:29]MH_I2C_Read... [12:47:29]Read from MH i2c: E2 62 00 [12:47:29]MH_I2C_Read... [12:47:29]Read from MH i2c: E2 62 00 D3 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 EE 0A 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 D1 [12:47:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 EE 0A 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:47:29]wFMCommunicate OK [12:47:29]SAM_PROTO_GetFieldsCounters done [12:47:29]requested_item shift.num is exist - process it [12:47:29]requested_item shift.opened is exist - process it [12:47:29]req_shift_opened [12:47:29]FM_GetShiftState [12:47:29]SAM_PROTO_GetShiftState [12:47:29]wFMCommunicate request_size=4 [12:47:29]MH_SAM_APDU [12:47:29]CAPDU: 80 13 01 00 [12:47:29]Write to MH i2c: E2 08 00 D4 34 80 13 01 00 00 00 00 00 85 [12:47:29]Write i2c OK [12:47:29]MH_I2C_Read... [12:47:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:29]Read from MH i2c: E2 [12:47:29]MH_I2C_Read... [12:47:29]Read from MH i2c: E2 0E 00 [12:47:29]MH_I2C_Read... [12:47:29]Read from MH i2c: E2 0E 00 D4 34 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 60 [12:47:29]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [12:47:29]wFMCommunicate OK [12:47:29]SAM_PROTO_GetShiftState done [12:47:29]FM_GetShiftState done [12:47:29]req_shift_opened done [12:47:29]requested_item shift.open_date is exist - process it [12:47:29]req_shift_open_date [12:47:29]req_shift_open_date done [12:47:29]produce_requested_data done [12:47:29]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68334,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [12:47:29]process_action_free close_receipt [12:47:29]json_value_free [12:47:29]json_value_free done [12:47:29]process_json_proto returns [12:47:29]Send response to host [12:47:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68334,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [12:47:29]free response buf [12:47:29]execute_script done [12:47:29]execute_script returns [12:47:29]free content buf [12:47:29]Sock 7.Close socket [12:47:29]Sock 7.Thread stoped [12:47:33]OFD Sender: No OFD packet to send [12:47:38]OFD Sender: No OFD packet to send [12:47:43]OFD Sender: No OFD packet to send [12:47:48]OFD Sender: No OFD packet to send [12:47:53]OFD Sender: No OFD packet to send [12:47:58]OFD Sender: No OFD packet to send [12:48:03]OFD Sender: No OFD packet to send [12:48:08]OFD Sender: No OFD packet to send [12:48:13]OFD Sender: No OFD packet to send [12:48:18]OFD Sender: No OFD packet to send [12:48:23]OFD Sender: No OFD packet to send [12:48:28]OFD Sender: No OFD packet to send [12:48:33]OFD Sender: No OFD packet to send [12:48:37]accept exits with 5 [12:48:37]New connection [12:48:37]New thread 3066543460 created [12:48:37]Thread 3066686820 joined [12:48:37]Waiting for new connection... [12:48:37] Sock 5.Parse request [12:48:37]Sock 5.Check first char [12:48:37]Sock 5.First char is OK [12:48:37]request: POST /json_proto HTTP/1.0 [12:48:37]Method: POST [12:48:37]URL: /json_proto [12:48:37]Method is POST - this is cgi request [12:48:37]url: /json_proto [12:48:37]query_string will be loaded in cgi processing [12:48:37]execute_cgi json_proto POST (null) [12:48:37]execute_cgi path=json_proto method=POST [12:48:37]POST find Content-Length [12:48:37]Host: 172.17.36.132:8080 [12:48:37]Content-Length: 796 [12:48:37]Content-Type: application/json [12:48:37] [12:48:37]POST finish read [12:48:37]Found Content-Length = 796 [12:48:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706420", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 14.730, "sum" : 1000.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.17 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:48:37]execute_script... [12:48:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706420", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 14.730, "sum" : 1000.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.17 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:48:37]POST & json_proto [12:48:37]process_json_proto [12:48:37]json parsed OK: [12:48:37]protocol is kg_v1.0 [12:48:37]action value=close_receipt [12:48:37]process_action close_receipt [12:48:37]cmd_close_receipt [12:48:37]MH_GetDate [12:48:37]Write to MH i2c: F0 00 00 D5 34 F8 [12:48:37]Write i2c OK [12:48:37]MH_I2C_Read... [12:48:37]Read from MH i2c: F0 [12:48:37]MH_I2C_Read... [12:48:37]Read from MH i2c: F0 09 00 [12:48:37]MH_I2C_Read... [12:48:37]Read from MH i2c: F0 09 00 D5 34 00 AA BB 5D 66 B2 22 B0 64 11 [12:48:37]GetLastDocTimeStamp 1717418850 [12:48:37]current date 1717418922 [12:48:37]FM_GetShiftState [12:48:37]SAM_PROTO_GetShiftState [12:48:37]wFMCommunicate request_size=4 [12:48:37]MH_SAM_APDU [12:48:37]CAPDU: 80 13 01 00 [12:48:37]Write to MH i2c: E2 08 00 D6 34 80 13 01 00 00 00 00 00 87 [12:48:37]Write i2c OK [12:48:37]MH_I2C_Read... [12:48:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:37]Read from MH i2c: E2 [12:48:37]MH_I2C_Read... [12:48:37]Read from MH i2c: E2 0E 00 [12:48:37]MH_I2C_Read... [12:48:37]Read from MH i2c: E2 0E 00 D6 34 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 62 [12:48:37]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [12:48:37]wFMCommunicate OK [12:48:37]SAM_PROTO_GetShiftState done [12:48:37]FM_GetShiftState done [12:48:37]opened in 1717378033 [12:48:37]opened+sec_in_day 1717464433 [12:48:37]quantity*price = 100016 [12:48:37]sum+1 = 100018 [12:48:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.17 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.17 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 81 03.06.2024 12:48 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000965400 ФД: 68335 ФПД: 194191657172070 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T124842&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68335&fm=194191657172070&tin=02508201610067®Number=0000000000098096&sum=100017 [12:48:38]StoreToDocumentArchive [12:48:38]shift 324 fd 68335 [12:48:38]save to /storage/0324/doc_00068335 [12:48:38]save last doc name /storage/0324/doc_00068335 to /storage/kkm_last_doc_name [12:48:38]save OK [12:48:38]Clear old archive folders... [12:48:38]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:48:38]tlvbuf is B6F14100 [12:48:38]SAM_PROTO_ClearQueue [12:48:38]wFMCommunicate request_size=4 [12:48:38]MH_SAM_APDU [12:48:38]CAPDU: 80 09 00 00 [12:48:38]Write to MH i2c: E2 08 00 E3 34 80 09 00 00 00 00 00 00 89 [12:48:38]Write i2c OK [12:48:38]MH_I2C_Read... [12:48:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:48:38]Read from MH i2c: E2 [12:48:38]MH_I2C_Read... [12:48:38]Read from MH i2c: E2 03 00 [12:48:38]MH_I2C_Read... [12:48:38]Read from MH i2c: E2 03 00 E3 34 00 90 00 8B [12:48:38]RAPDU: 90 00 [12:48:38]wFMCommunicate OK [12:48:38]SAM_PROTO_ClearQueue done [12:48:38]KKMCreateOFDPacket [12:48:38]OFDProtocolAddRootSTLVToBuf [12:48:38]FM_MakeSignedData [12:48:38]FM_MakeSignedData [12:48:38]SAM_PROTO_SignData [12:48:38]wFMCommunicate request_size=4 [12:48:38]MH_SAM_APDU [12:48:38]CAPDU: 80 0D 01 02 [12:48:38]Write to MH i2c: E2 08 00 E4 34 80 0D 01 02 00 00 00 00 91 [12:48:38]Write i2c OK [12:48:38]MH_I2C_Read... [12:48:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:48:38]Read from MH i2c: E2 [12:48:38]MH_I2C_Read... [12:48:38]Read from MH i2c: E2 03 00 [12:48:38]MH_I2C_Read... [12:48:38]Read from MH i2c: E2 03 00 E4 34 00 90 00 8C [12:48:38]RAPDU: 90 00 [12:48:38]wFMCommunicate OK [12:48:38]wFMCommunicate request_size=255 [12:48:38]MH_SAM_APDU [12:48:38]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 39 00 00 00 00 00 37 04 06 00 86 1A 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 B1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 AA BB 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 EF 0A 01 00 35 04 06 00 [12:48:38]Write to MH i2c: E2 02 01 E5 34 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 39 00 00 00 00 00 37 04 06 00 86 1A 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 B1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 AA BB 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 EF 0A 01 00 35 04 06 00 00 00 A5 [12:48:38]OFD Sender: No OFD packet to send [12:48:38]Write i2c OK [12:48:38]MH_I2C_Read... [12:48:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:38]Read from MH i2c: E2 [12:48:38]MH_I2C_Read... [12:48:38]Read from MH i2c: E2 03 00 [12:48:38]MH_I2C_Read... [12:48:38]Read from MH i2c: E2 03 00 E5 34 00 90 00 8D [12:48:38]RAPDU: 90 00 [12:48:38]wFMCommunicate OK [12:48:38]wFMCommunicate request_size=11 [12:48:38]MH_SAM_APDU [12:48:38]CAPDU: 80 0D 02 02 06 B0 9D C4 BE 7C 66 [12:48:38]Write to MH i2c: E2 0E 00 E6 34 80 0D 02 02 06 00 B0 9D C4 BE 7C 66 00 00 51 [12:48:38]Write i2c OK [12:48:38]MH_I2C_Read... [12:48:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:38]Read from MH i2c: E2 [12:48:38]MH_I2C_Read... [12:48:38]Read from MH i2c: E2 03 00 [12:48:38]MH_I2C_Read... [12:48:38]Read from MH i2c: E2 03 00 E6 34 00 90 00 8E [12:48:38]RAPDU: 90 00 [12:48:38]wFMCommunicate OK [12:48:38]wFMCommunicate request_size=4 [12:48:38]MH_SAM_APDU [12:48:38]CAPDU: 80 0D 03 02 [12:48:38]Write to MH i2c: E2 08 00 E7 34 80 0D 03 02 00 00 00 00 96 [12:48:38]Write i2c OK [12:48:38]MH_I2C_Read... [12:48:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:48:38]Read from MH i2c: E2 [12:48:38]MH_I2C_Read... [12:48:38]Read from MH i2c: E2 0B 00 [12:48:38]MH_I2C_Read... [12:48:38]Read from MH i2c: E2 0B 00 E7 34 00 C7 11 94 09 F7 3F 1C 44 90 00 A2 [12:48:38]RAPDU: C7 11 94 09 F7 3F 1C 44 90 00 [12:48:38]wFMCommunicate OK [12:48:38]SAM_PROTO_SignData done [12:48:38]FM_MakeSignedData done [12:48:38]CreateOFDProtocolMessage [12:48:38]wFMCommunicate request_size=4 [12:48:38]MH_SAM_APDU [12:48:38]CAPDU: 80 11 00 00 [12:48:38]Write to MH i2c: E2 08 00 E8 34 80 11 00 00 00 00 00 00 96 [12:48:38]Write i2c OK [12:48:38]MH_I2C_Read... [12:48:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:38]Read from MH i2c: E2 [12:48:38]MH_I2C_Read... [12:48:38]Read from MH i2c: E2 17 00 [12:48:38]MH_I2C_Read... [12:48:38]Read from MH i2c: E2 17 00 E8 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 E1 [12:48:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:48:38]wFMCommunicate OK [12:48:38]CreateOFDProtocolMessage done [12:48:38]OFDSenderStorePacket 68335 [12:48:38]StoreOFDPacket docnum=68335 [12:48:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 93 96 08 01 C2 92 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 39 00 00 00 00 00 37 04 06 00 86 1A 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 B1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 AA BB 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 EF 0A 01 00 35 04 06 00 B0 9D C4 BE 7C 66 C7 11 94 09 F7 3F 1C 44 [12:48:38]CheckFolder [12:48:38]dirname=/storage/ofd_packets [12:48:38]CheckFolder done [12:48:38]ProducePacketName [12:48:38]name=ofd_packets/00068335 [12:48:38]NVStorageSaveData ofd_packets/00068335 [12:48:38]File name is /storage/ofd_packets/00068335 [12:48:38]Write 302 bytes [12:48:38]NVStorageSaveData done [12:48:38]OFDSenderStorePacket done [12:48:38]KKMCreateOFDPacket done [12:48:38]NVStorageSaveData kkm_last_timestamp [12:48:38]File name is /storage/kkm_last_timestamp [12:48:38]Write 4 bytes [12:48:38]NVStorageSaveData done [12:48:38]OFD Sender: Processing packet 68335 [packets to send 26, broken 25] [12:48:38]ProducePacketName [12:48:38]name=ofd_packets/00068335 [12:48:38]OFD Sender: To server: pG, [12:48:38]CommunicateWithHost lk.salyk.kg:30040 [12:48:38]ConnectInit lk.salyk.kg [12:48:38]ExternCall_PrintAddStr [12:48:38]wPrintStart [12:48:38]Write to MH i2c: 01 00 00 E9 34 1D [12:48:38]Write i2c OK [12:48:38]MH_I2C_Read... [12:48:38]Read from MH i2c: 01 [12:48:38]MH_I2C_Read... [12:48:38]Read from MH i2c: 01 07 00 [12:48:38]MH_I2C_Read... [12:48:38]Read from MH i2c: 01 07 00 E9 34 00 00 00 00 00 FF 0F 32 [12:48:38]RasterBufferAndPrint [12:48:38]line Счет N : (1)706420 [12:48:38]line ИНН: 02508201610067 [12:48:38]line Контрольно-Кассовый Чек [12:48:38]line ПРОДАЖА [12:48:38]line ТРК (МРК, ГНК) : 31 [12:48:38]line Товар: 2710124130 [12:48:38]line Super-92-К-5 [12:48:38]line 14.730 * 67.90 [12:48:38]line = 1000.17 [12:48:38]line НДС 12% НСП 1% [12:48:38]line > о реализуемом товаре [12:48:38]line ИТОГО: 1000.17 [12:48:38]line НСП 1% : 8.85 [12:48:38]line НДС 12% : 106.21 [12:48:38]line Наличными: 0.00 [12:48:38]line Безнал.: 1000.17 [12:48:38]line Место: АЗС № 62 "Партнер Нефть" [12:48:38]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [12:48:38]line СНО: Общий режим [12:48:38]line Чек 81 03.06.2024 12:48 [12:48:38]line Смена: 324 ФФД: 1.0 [12:48:38]line ЗНМ: 0300000181 [12:48:38]line РНМ: 0000000000098096 [12:48:38]line Версия ККМ: 001 [12:48:38]line Платежная система: O! деньги [12:48:38]line ФМ: 0000000000965400 [12:48:38]line ФД: 68335 [12:48:39]line ФПД: 194191657172070 [12:48:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T124842&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68335&fm=194191657172070&tin=02508201610067®Number=0000000000098096&sum=100017 [12:48:39]Connected sock=9 [12:48:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 93 96 08 01 C2 92 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 39 00 00 00 00 00 37 04 06 00 86 1A 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 B1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 AA BB 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 EF 0A 01 00 35 04 06 00 B0 9D C4 BE 7C 66 C7 11 94 09 F7 3F 1C 44 [12:48:39]written 0, free lines is 4095 [12:48:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 CF 1C 47 00 9B A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 EF 0A 01 00 F4 03 04 00 A6 62 5D 66 B6 04 01 00 00 31 BB 4A 44 27 46 9E 77 [12:48:39]CommunicateWithHost err = 0 [12:48:39]CheckOFDResponse [12:48:39]1017 (14) - 77093643461234 [12:48:39]1041 (16) - 0000000000965400 [12:48:39]1040 (4) - 68335 [12:48:39]1012 (4) - 03.06.2024 06:28 [12:48:39]1206 (1) - 0 [12:48:39]OFD Sender: Remove packet 68335 [12:48:39]ProducePacketName [12:48:39]name=ofd_packets/00068335 [12:48:39]NVStorageDeleteData [12:48:39]Write to MH i2c: 01 00 00 13 35 48 [12:48:39]Write i2c OK [12:48:39]MH_I2C_Read... [12:48:39]Read from MH i2c: 01 [12:48:39]MH_I2C_Read... [12:48:39]Read from MH i2c: 01 07 00 [12:48:39]MH_I2C_Read... [12:48:39]Read from MH i2c: 01 07 00 13 35 00 00 00 00 00 EC 0C 47 [12:48:39]RasterBufferAndPrint [12:48:39]line [12:48:39]line [12:48:39]line [12:48:39]line [12:48:39]line [12:48:39]written 0, free lines is 3315 [12:48:39]MH_Cut [12:48:39]Write to MH i2c: D1 01 00 1A 35 01 21 [12:48:39]Write i2c OK [12:48:39]MH_I2C_Read... [12:48:39]Read from MH i2c: D1 [12:48:39]MH_I2C_Read... [12:48:39]Read from MH i2c: D1 01 00 [12:48:39]MH_I2C_Read... [12:48:39]Read from MH i2c: D1 01 00 1A 35 00 20 [12:48:39]Write to MH i2c: 01 00 00 1B 35 50 [12:48:39]Write i2c OK [12:48:39]MH_I2C_Read... [12:48:39]OFD Sender: No OFD packet to send [12:48:40]*** Cut start [12:48:40]*** Partial cut [12:48:40]*** CUTSNS_PIN = 1 [12:48:40]*** CUTSNS_PIN = 0 [12:48:40]*** Brake cut motor [12:48:41]Read from MH i2c: 01 [12:48:41]MH_I2C_Read... [12:48:41]*** Stop cut motor [12:48:41]*** Cut end [12:48:41]Read from MH i2c: 01 07 00 [12:48:41]MH_I2C_Read... [12:48:41]Read from MH i2c: 01 07 00 1B 35 00 00 00 00 00 FF 0F 65 [12:48:41]process_action close_receipt done [12:48:41]requested_data is exist [12:48:41]produce_requested_data [12:48:41]requested_item fm.sn is exist - process it [12:48:41]wFMCommunicate request_size=4 [12:48:41]MH_SAM_APDU [12:48:41]CAPDU: 80 11 00 00 [12:48:41]Write to MH i2c: E2 08 00 1C 35 80 11 00 00 00 00 00 00 CB [12:48:41]Write i2c OK [12:48:41]MH_I2C_Read... [12:48:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:41]Read from MH i2c: E2 [12:48:41]MH_I2C_Read... [12:48:41]Read from MH i2c: E2 17 00 [12:48:41]MH_I2C_Read... [12:48:41]Read from MH i2c: E2 17 00 1C 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 16 [12:48:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:48:41]wFMCommunicate OK [12:48:41]requested_item fd.num is exist - process it [12:48:41]SAM_PROTO_GetFieldsCounters [12:48:41]wFMCommunicate request_size=4 [12:48:41]MH_SAM_APDU [12:48:41]CAPDU: 80 13 00 00 [12:48:41]Write to MH i2c: E2 08 00 1D 35 80 13 00 00 00 00 00 00 CE [12:48:41]Write i2c OK [12:48:41]MH_I2C_Read... [12:48:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:48:41]Read from MH i2c: E2 [12:48:41]MH_I2C_Read... [12:48:41]Read from MH i2c: E2 62 00 [12:48:41]MH_I2C_Read... [12:48:41]Read from MH i2c: E2 62 00 1D 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 EF 0A 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 20 [12:48:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 EF 0A 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:48:41]wFMCommunicate OK [12:48:41]SAM_PROTO_GetFieldsCounters done [12:48:41]requested_item shift.num is exist - process it [12:48:41]requested_item shift.opened is exist - process it [12:48:41]req_shift_opened [12:48:41]FM_GetShiftState [12:48:41]SAM_PROTO_GetShiftState [12:48:41]wFMCommunicate request_size=4 [12:48:41]MH_SAM_APDU [12:48:41]CAPDU: 80 13 01 00 [12:48:41]Write to MH i2c: E2 08 00 1E 35 80 13 01 00 00 00 00 00 D0 [12:48:41]Write i2c OK [12:48:41]MH_I2C_Read... [12:48:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:41]Read from MH i2c: E2 [12:48:41]MH_I2C_Read... [12:48:41]Read from MH i2c: E2 0E 00 [12:48:41]MH_I2C_Read... [12:48:41]Read from MH i2c: E2 0E 00 1E 35 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 AB [12:48:41]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [12:48:41]wFMCommunicate OK [12:48:41]SAM_PROTO_GetShiftState done [12:48:41]FM_GetShiftState done [12:48:41]req_shift_opened done [12:48:41]requested_item shift.open_date is exist - process it [12:48:41]req_shift_open_date [12:48:41]req_shift_open_date done [12:48:41]produce_requested_data done [12:48:41]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68335,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [12:48:41]process_action_free close_receipt [12:48:41]json_value_free [12:48:41]json_value_free done [12:48:41]process_json_proto returns [12:48:41]Send response to host [12:48:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68335,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [12:48:41]free response buf [12:48:41]execute_script done [12:48:41]execute_script returns [12:48:41]free content buf [12:48:41]Sock 5.Close socket [12:48:41]Sock 5.Thread stoped [12:48:44]OFD Sender: No OFD packet to send [12:48:49]OFD Sender: No OFD packet to send [12:48:54]OFD Sender: No OFD packet to send [12:48:59]OFD Sender: No OFD packet to send [12:49:04]OFD Sender: No OFD packet to send [12:49:09]OFD Sender: No OFD packet to send [12:49:14]OFD Sender: No OFD packet to send [12:49:19]OFD Sender: No OFD packet to send [12:49:24]OFD Sender: No OFD packet to send [12:49:29]OFD Sender: No OFD packet to send [12:49:34]OFD Sender: No OFD packet to send [12:49:39]OFD Sender: No OFD packet to send [12:49:44]OFD Sender: No OFD packet to send [12:49:49]OFD Sender: No OFD packet to send [12:49:54]OFD Sender: No OFD packet to send [12:49:59]OFD Sender: No OFD packet to send [12:50:04]OFD Sender: No OFD packet to send [12:50:09]OFD Sender: No OFD packet to send [12:50:14]OFD Sender: No OFD packet to send [12:50:19]OFD Sender: No OFD packet to send [12:50:24]OFD Sender: No OFD packet to send [12:50:29]OFD Sender: No OFD packet to send [12:50:33]accept exits with 6 [12:50:33]New connection [12:50:33]New thread 3066686820 created [12:50:33]Thread 3066543460 joined [12:50:33]Waiting for new connection... [12:50:33] Sock 6.Parse request [12:50:33]Sock 6.Check first char [12:50:33]Sock 6.First char is OK [12:50:33]request: POST /json_proto HTTP/1.0 [12:50:33]Method: POST [12:50:33]URL: /json_proto [12:50:33]Method is POST - this is cgi request [12:50:33]url: /json_proto [12:50:33]query_string will be loaded in cgi processing [12:50:33]execute_cgi json_proto POST (null) [12:50:33]execute_cgi path=json_proto method=POST [12:50:33]POST find Content-Length [12:50:33]Host: 172.17.36.132:8080 [12:50:33]Content-Length: 1150 [12:50:33]Content-Type: application/json [12:50:33] [12:50:33]POST finish read [12:50:33]Found Content-Length = 1150 [12:50:33]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706421\u000A03.06.2024 12:27\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-4\u000A 14.650 x 72.90\u000A\u0418\u0422\u041E\u0413: 1067.99\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30111845\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:50:33]execute_script... [12:50:33]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706421\u000A03.06.2024 12:27\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-4\u000A 14.650 x 72.90\u000A\u0418\u0422\u041E\u0413: 1067.99\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30111845\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:50:33]POST & json_proto [12:50:33]process_json_proto [12:50:33]json parsed OK: [12:50:33]protocol is kg_v1.0 [12:50:33]action value=print_text [12:50:33]process_action print_text [12:50:33]cmd_print_text [12:50:33]ExternCall_PrintAddStr [12:50:33]wPrintStart [12:50:33]Write to MH i2c: 01 00 00 1F 35 54 [12:50:33]Write i2c OK [12:50:33]MH_I2C_Read... [12:50:33]Read from MH i2c: 01 [12:50:33]MH_I2C_Read... [12:50:33]Read from MH i2c: 01 07 00 [12:50:33]MH_I2C_Read... [12:50:33]Read from MH i2c: 01 07 00 1F 35 00 00 00 00 00 FF 0F 69 [12:50:33]RasterBufferAndPrint [12:50:33]line *****ТОВАРНЫЙ ЧЕК***** [12:50:33]line АЗС 62 [12:50:33]line Партнер нефть [12:50:33]line 02508201610067 [12:50:33]line Кассир : Балаев А. [12:50:33]line Счет N : (1)706421 [12:50:33]line 03.06.2024 12:27 [12:50:33]line ПРОДАЖА [12:50:33]line ТРК (МРК, ГНК): 11 [12:50:33]line Вид ГСМ : 2710194210 [12:50:33]line ДТ(л)-К-4 [12:50:33]line 14.650 x 72.90 [12:50:33]line ИТОГ: 1067.99 [12:50:33]line Тип оплаты: Талоны: ТК ГПНА Online [12:50:33]line 30111845 [12:50:33]line ______________________ [12:50:33]line (подпись) [12:50:33]written 0, free lines is 4095 [12:50:33]Write to MH i2c: 01 00 00 33 35 68 [12:50:33]Write i2c OK [12:50:33]MH_I2C_Read... [12:50:33]Read from MH i2c: 01 [12:50:33]MH_I2C_Read... [12:50:33]Read from MH i2c: 01 07 00 [12:50:33]MH_I2C_Read... [12:50:33]Read from MH i2c: 01 07 00 33 35 00 00 00 00 00 0E 0E 8B [12:50:33]RasterBufferAndPrint [12:50:33]line [12:50:33]line [12:50:33]line [12:50:33]line [12:50:33]line [12:50:33]written 0, free lines is 3599 [12:50:33]MH_Cut [12:50:33]Write to MH i2c: D1 01 00 3A 35 01 41 [12:50:33]Write i2c OK [12:50:33]MH_I2C_Read... [12:50:33]Read from MH i2c: D1 [12:50:33]MH_I2C_Read... [12:50:33]Read from MH i2c: D1 01 00 [12:50:33]MH_I2C_Read... [12:50:33]Read from MH i2c: D1 01 00 3A 35 00 40 [12:50:33]Write to MH i2c: 01 00 00 3B 35 70 [12:50:33]Write i2c OK [12:50:33]MH_I2C_Read... [12:50:33]*** Cut start [12:50:33]*** Partial cut [12:50:33]*** CUTSNS_PIN = 1 [12:50:33]*** CUTSNS_PIN = 0 [12:50:34]*** Brake cut motor [12:50:34]Read from MH i2c: 01 [12:50:34]MH_I2C_Read... [12:50:34]*** Stop cut motor [12:50:34]*** Cut end [12:50:34]Read from MH i2c: 01 07 00 [12:50:34]MH_I2C_Read... [12:50:34]Read from MH i2c: 01 07 00 3B 35 00 00 00 00 00 FF 0F 85 [12:50:34]process_action print_text done [12:50:34]requested_data is exist [12:50:34]produce_requested_data [12:50:34]requested_item fm.sn is exist - process it [12:50:34]wFMCommunicate request_size=4 [12:50:34]MH_SAM_APDU [12:50:34]CAPDU: 80 11 00 00 [12:50:34]Write to MH i2c: E2 08 00 3C 35 80 11 00 00 00 00 00 00 EB [12:50:34]Write i2c OK [12:50:34]MH_I2C_Read... [12:50:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:50:34]Read from MH i2c: E2 [12:50:34]MH_I2C_Read... [12:50:34]Read from MH i2c: E2 17 00 [12:50:34]MH_I2C_Read... [12:50:34]Read from MH i2c: E2 17 00 3C 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 36 [12:50:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:50:34]wFMCommunicate OK [12:50:34]requested_item fd.num is exist - process it [12:50:34]SAM_PROTO_GetFieldsCounters [12:50:34]wFMCommunicate request_size=4 [12:50:34]MH_SAM_APDU [12:50:34]CAPDU: 80 13 00 00 [12:50:34]Write to MH i2c: E2 08 00 3D 35 80 13 00 00 00 00 00 00 EE [12:50:34]Write i2c OK [12:50:34]MH_I2C_Read... [12:50:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:50:34]Read from MH i2c: E2 [12:50:34]MH_I2C_Read... [12:50:34]Read from MH i2c: E2 62 00 [12:50:34]MH_I2C_Read... [12:50:34]Read from MH i2c: E2 62 00 3D 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 EF 0A 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 40 [12:50:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 EF 0A 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:50:34]wFMCommunicate OK [12:50:34]SAM_PROTO_GetFieldsCounters done [12:50:34]requested_item shift.num is exist - process it [12:50:34]requested_item shift.opened is exist - process it [12:50:34]req_shift_opened [12:50:34]FM_GetShiftState [12:50:34]SAM_PROTO_GetShiftState [12:50:34]wFMCommunicate request_size=4 [12:50:34]MH_SAM_APDU [12:50:34]CAPDU: 80 13 01 00 [12:50:34]Write to MH i2c: E2 08 00 3E 35 80 13 01 00 00 00 00 00 F0 [12:50:34]Write i2c OK [12:50:34]MH_I2C_Read... [12:50:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:50:34]Read from MH i2c: E2 [12:50:34]MH_I2C_Read... [12:50:34]Read from MH i2c: E2 0E 00 [12:50:34]MH_I2C_Read... [12:50:34]Read from MH i2c: E2 0E 00 3E 35 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 CB [12:50:34]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [12:50:34]wFMCommunicate OK [12:50:34]SAM_PROTO_GetShiftState done [12:50:34]FM_GetShiftState done [12:50:34]req_shift_opened done [12:50:34]requested_item shift.open_date is exist - process it [12:50:34]req_shift_open_date [12:50:34]req_shift_open_date done [12:50:34]produce_requested_data done [12:50:34]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68335,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [12:50:34]process_action_free print_text [12:50:34]json_value_free [12:50:34]json_value_free done [12:50:34]process_json_proto returns [12:50:34]Send response to host [12:50:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68335,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [12:50:34]free response buf [12:50:34]execute_script done [12:50:34]execute_script returns [12:50:34]free content buf [12:50:34]Sock 6.Close socket [12:50:34]Sock 6.Thread stoped [12:50:34]OFD Sender: No OFD packet to send [12:50:39]OFD Sender: No OFD packet to send [12:50:44]OFD Sender: No OFD packet to send [12:50:49]OFD Sender: No OFD packet to send [12:50:54]OFD Sender: No OFD packet to send [12:50:59]OFD Sender: No OFD packet to send [12:51:04]OFD Sender: No OFD packet to send [12:51:09]OFD Sender: No OFD packet to send [12:51:15]OFD Sender: No OFD packet to send [12:51:20]OFD Sender: No OFD packet to send [12:51:25]OFD Sender: No OFD packet to send [12:51:30]OFD Sender: No OFD packet to send [12:51:35]OFD Sender: No OFD packet to send [12:51:40]OFD Sender: No OFD packet to send [12:51:45]OFD Sender: No OFD packet to send [12:51:50]OFD Sender: No OFD packet to send [12:51:55]OFD Sender: No OFD packet to send [12:52:00]OFD Sender: No OFD packet to send [12:52:05]OFD Sender: No OFD packet to send [12:52:10]OFD Sender: No OFD packet to send [12:52:15]OFD Sender: No OFD packet to send [12:52:20]OFD Sender: No OFD packet to send [12:52:25]OFD Sender: No OFD packet to send [12:52:30]OFD Sender: No OFD packet to send [12:52:35]OFD Sender: No OFD packet to send [12:52:40]OFD Sender: No OFD packet to send [12:52:45]OFD Sender: No OFD packet to send [12:52:50]OFD Sender: No OFD packet to send [12:52:55]OFD Sender: No OFD packet to send [12:53:00]OFD Sender: No OFD packet to send [12:53:05]OFD Sender: No OFD packet to send [12:53:10]OFD Sender: No OFD packet to send [12:53:15]OFD Sender: No OFD packet to send [12:53:20]OFD Sender: No OFD packet to send [12:53:24]accept exits with 5 [12:53:24]New connection [12:53:24]New thread 3066543460 created [12:53:24]Thread 3066686820 joined [12:53:24]Waiting for new connection... [12:53:24] Sock 5.Parse request [12:53:24]Sock 5.Check first char [12:53:24]Sock 5.First char is OK [12:53:24]request: POST /json_proto HTTP/1.0 [12:53:24]Method: POST [12:53:24]URL: /json_proto [12:53:24]Method is POST - this is cgi request [12:53:24]url: /json_proto [12:53:24]query_string will be loaded in cgi processing [12:53:24]execute_cgi json_proto POST (null) [12:53:24]execute_cgi path=json_proto method=POST [12:53:24]POST find Content-Length [12:53:24]Host: 172.17.36.132:8080 [12:53:24]Content-Length: 1149 [12:53:24]Content-Type: application/json [12:53:24] [12:53:24]POST finish read [12:53:24]Found Content-Length = 1149 [12:53:24]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706422\u000A03.06.2024 12:30\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-4\u000A 10.350 x 72.90\u000A\u0418\u0422\u041E\u0413: 754.52\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30111845\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:53:24]execute_script... [12:53:24]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706422\u000A03.06.2024 12:30\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-4\u000A 10.350 x 72.90\u000A\u0418\u0422\u041E\u0413: 754.52\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30111845\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:53:24]POST & json_proto [12:53:24]process_json_proto [12:53:24]json parsed OK: [12:53:24]protocol is kg_v1.0 [12:53:24]action value=print_text [12:53:24]process_action print_text [12:53:24]cmd_print_text [12:53:24]ExternCall_PrintAddStr [12:53:24]wPrintStart [12:53:24]Write to MH i2c: 01 00 00 3F 35 74 [12:53:24]Write i2c OK [12:53:24]MH_I2C_Read... [12:53:24]Read from MH i2c: 01 [12:53:24]MH_I2C_Read... [12:53:24]Read from MH i2c: 01 07 00 [12:53:24]MH_I2C_Read... [12:53:24]Read from MH i2c: 01 07 00 3F 35 00 00 00 00 00 FF 0F 89 [12:53:24]RasterBufferAndPrint [12:53:24]line *****ТОВАРНЫЙ ЧЕК***** [12:53:24]line АЗС 62 [12:53:24]line Партнер нефть [12:53:24]line 02508201610067 [12:53:24]line Кассир : Балаев А. [12:53:24]line Счет N : (1)706422 [12:53:24]line 03.06.2024 12:30 [12:53:24]line ПРОДАЖА [12:53:24]line ТРК (МРК, ГНК): 11 [12:53:24]line Вид ГСМ : 2710194210 [12:53:24]line ДТ(л)-К-4 [12:53:24]line 10.350 x 72.90 [12:53:24]line ИТОГ: 754.52 [12:53:24]line Тип оплаты: Талоны: ТК ГПНА Online [12:53:24]line 30111845 [12:53:24]line ______________________ [12:53:24]line (подпись) [12:53:24]written 0, free lines is 4095 [12:53:25]Write to MH i2c: 01 00 00 53 35 88 [12:53:25]Write i2c OK [12:53:25]MH_I2C_Read... [12:53:25]Read from MH i2c: 01 [12:53:25]MH_I2C_Read... [12:53:25]Read from MH i2c: 01 07 00 [12:53:25]MH_I2C_Read... [12:53:25]Read from MH i2c: 01 07 00 53 35 00 00 00 00 00 0D 0E AA [12:53:25]RasterBufferAndPrint [12:53:25]line [12:53:25]line [12:53:25]line [12:53:25]line [12:53:25]line [12:53:25]written 0, free lines is 3598 [12:53:25]MH_Cut [12:53:25]Write to MH i2c: D1 01 00 5A 35 01 61 [12:53:25]Write i2c OK [12:53:25]MH_I2C_Read... [12:53:25]Read from MH i2c: D1 [12:53:25]MH_I2C_Read... [12:53:25]Read from MH i2c: D1 01 00 [12:53:25]MH_I2C_Read... [12:53:25]Read from MH i2c: D1 01 00 5A 35 00 60 [12:53:25]Write to MH i2c: 01 00 00 5B 35 90 [12:53:25]Write i2c OK [12:53:25]MH_I2C_Read... [12:53:25]OFD Sender: No OFD packet to send [12:53:25]*** Cut start [12:53:25]*** Partial cut [12:53:25]*** CUTSNS_PIN = 1 [12:53:25]*** CUTSNS_PIN = 0 [12:53:25]*** Brake cut motor [12:53:26]Read from MH i2c: 01 [12:53:26]MH_I2C_Read... [12:53:26]Read from MH i2c: 01 07 00 [12:53:26]MH_I2C_Read... [12:53:26]*** Stop cut motor [12:53:26]*** Cut end [12:53:26]Read from MH i2c: 01 07 00 5B 35 00 00 00 00 00 FF 0F A5 [12:53:26]process_action print_text done [12:53:26]requested_data is exist [12:53:26]produce_requested_data [12:53:26]requested_item fm.sn is exist - process it [12:53:26]wFMCommunicate request_size=4 [12:53:26]MH_SAM_APDU [12:53:26]CAPDU: 80 11 00 00 [12:53:26]Write to MH i2c: E2 08 00 5C 35 80 11 00 00 00 00 00 00 0B [12:53:26]Write i2c OK [12:53:26]MH_I2C_Read... [12:53:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:26]Read from MH i2c: E2 [12:53:26]MH_I2C_Read... [12:53:26]Read from MH i2c: E2 17 00 [12:53:26]MH_I2C_Read... [12:53:26]Read from MH i2c: E2 17 00 5C 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 56 [12:53:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:53:26]wFMCommunicate OK [12:53:26]requested_item fd.num is exist - process it [12:53:26]SAM_PROTO_GetFieldsCounters [12:53:26]wFMCommunicate request_size=4 [12:53:26]MH_SAM_APDU [12:53:26]CAPDU: 80 13 00 00 [12:53:26]Write to MH i2c: E2 08 00 5D 35 80 13 00 00 00 00 00 00 0E [12:53:26]Write i2c OK [12:53:26]MH_I2C_Read... [12:53:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:53:26]Read from MH i2c: E2 [12:53:26]MH_I2C_Read... [12:53:26]Read from MH i2c: E2 62 00 [12:53:26]MH_I2C_Read... [12:53:26]Read from MH i2c: E2 62 00 5D 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 EF 0A 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 60 [12:53:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 EF 0A 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:53:26]wFMCommunicate OK [12:53:26]SAM_PROTO_GetFieldsCounters done [12:53:26]requested_item shift.num is exist - process it [12:53:26]requested_item shift.opened is exist - process it [12:53:26]req_shift_opened [12:53:26]FM_GetShiftState [12:53:26]SAM_PROTO_GetShiftState [12:53:26]wFMCommunicate request_size=4 [12:53:26]MH_SAM_APDU [12:53:26]CAPDU: 80 13 01 00 [12:53:26]Write to MH i2c: E2 08 00 5E 35 80 13 01 00 00 00 00 00 10 [12:53:26]Write i2c OK [12:53:26]MH_I2C_Read... [12:53:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:26]Read from MH i2c: E2 [12:53:26]MH_I2C_Read... [12:53:26]Read from MH i2c: E2 0E 00 [12:53:26]MH_I2C_Read... [12:53:26]Read from MH i2c: E2 0E 00 5E 35 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 EB [12:53:26]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [12:53:26]wFMCommunicate OK [12:53:26]SAM_PROTO_GetShiftState done [12:53:26]FM_GetShiftState done [12:53:26]req_shift_opened done [12:53:26]requested_item shift.open_date is exist - process it [12:53:26]req_shift_open_date [12:53:26]req_shift_open_date done [12:53:26]produce_requested_data done [12:53:26]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68335,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [12:53:26]process_action_free print_text [12:53:26]json_value_free [12:53:26]json_value_free done [12:53:26]process_json_proto returns [12:53:26]Send response to host [12:53:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68335,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [12:53:26]free response buf [12:53:26]execute_script done [12:53:26]execute_script returns [12:53:26]free content buf [12:53:26]Sock 5.Close socket [12:53:26]Sock 5.Thread stoped [12:53:30]OFD Sender: No OFD packet to send [12:53:35]OFD Sender: No OFD packet to send [12:53:40]OFD Sender: No OFD packet to send [12:53:45]OFD Sender: No OFD packet to send [12:53:50]OFD Sender: No OFD packet to send [12:53:55]OFD Sender: No OFD packet to send [12:54:00]OFD Sender: No OFD packet to send [12:54:05]OFD Sender: No OFD packet to send [12:54:10]OFD Sender: No OFD packet to send [12:54:15]OFD Sender: No OFD packet to send [12:54:20]OFD Sender: No OFD packet to send [12:54:25]OFD Sender: No OFD packet to send [12:54:30]OFD Sender: No OFD packet to send [12:54:32]accept exits with 6 [12:54:32]New connection [12:54:32]New thread 3066686820 created [12:54:32]Thread 3066543460 joined [12:54:32]Waiting for new connection... [12:54:32] Sock 6.Parse request [12:54:32]Sock 6.Check first char [12:54:32]Sock 6.First char is OK [12:54:32]request: POST /json_proto HTTP/1.0 [12:54:32]Method: POST [12:54:32]URL: /json_proto [12:54:32]Method is POST - this is cgi request [12:54:32]url: /json_proto [12:54:32]query_string will be loaded in cgi processing [12:54:32]execute_cgi json_proto POST (null) [12:54:32]execute_cgi path=json_proto method=POST [12:54:32]POST find Content-Length [12:54:32]Host: 172.17.36.132:8080 [12:54:32]Content-Length: 1183 [12:54:32]Content-Type: application/json [12:54:32] [12:54:32]POST finish read [12:54:32]Found Content-Length = 1183 [12:54:32]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706423\u000A03.06.2024 12:31\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 30.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 2007.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A32022\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:54:32]execute_script... [12:54:32]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706423\u000A03.06.2024 12:31\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 30.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 2007.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A32022\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:54:32]POST & json_proto [12:54:32]process_json_proto [12:54:32]json parsed OK: [12:54:32]protocol is kg_v1.0 [12:54:32]action value=print_text [12:54:32]process_action print_text [12:54:32]cmd_print_text [12:54:32]ExternCall_PrintAddStr [12:54:32]wPrintStart [12:54:32]Write to MH i2c: 01 00 00 5F 35 94 [12:54:32]Write i2c OK [12:54:32]MH_I2C_Read... [12:54:32]Read from MH i2c: 01 [12:54:32]MH_I2C_Read... [12:54:32]Read from MH i2c: 01 07 00 [12:54:32]MH_I2C_Read... [12:54:32]Read from MH i2c: 01 07 00 5F 35 00 00 00 00 00 FF 0F A9 [12:54:32]RasterBufferAndPrint [12:54:32]line *****ТОВАРНЫЙ ЧЕК***** [12:54:32]line АЗС 62 [12:54:32]line Партнер нефть [12:54:32]line 02508201610067 [12:54:32]line Кассир : Балаев А. [12:54:32]line Счет N : (1)706423 [12:54:32]line 03.06.2024 12:31 [12:54:32]line ПРОДАЖА [12:54:32]line ТРК (МРК, ГНК): 42 [12:54:32]line Вид ГСМ : 2710124130 [12:54:32]line Аи-92-К-4 [12:54:32]line 30.000 x 66.90 [12:54:32]line ИТОГ: 2007.00 [12:54:32]line Тип оплаты: Талоны: Топливная Карта [12:54:32]line 32022 [12:54:32]line ______________________ [12:54:32]line (подпись) [12:54:32]written 0, free lines is 4095 [12:54:32]Write to MH i2c: 01 00 00 73 35 A8 [12:54:32]Write i2c OK [12:54:32]MH_I2C_Read... [12:54:32]Read from MH i2c: 01 [12:54:32]MH_I2C_Read... [12:54:32]Read from MH i2c: 01 07 00 [12:54:32]MH_I2C_Read... [12:54:32]Read from MH i2c: 01 07 00 73 35 00 00 00 00 00 10 0E CD [12:54:32]RasterBufferAndPrint [12:54:32]line [12:54:32]line [12:54:32]line [12:54:32]line [12:54:32]line [12:54:32]written 0, free lines is 3602 [12:54:32]MH_Cut [12:54:32]Write to MH i2c: D1 01 00 7A 35 01 81 [12:54:32]Write i2c OK [12:54:32]MH_I2C_Read... [12:54:32]Read from MH i2c: D1 [12:54:32]MH_I2C_Read... [12:54:32]Read from MH i2c: D1 01 00 [12:54:32]MH_I2C_Read... [12:54:32]Read from MH i2c: D1 01 00 7A 35 00 80 [12:54:32]Write to MH i2c: 01 00 00 7B 35 B0 [12:54:32]Write i2c OK [12:54:32]MH_I2C_Read... [12:54:32]*** Cut start [12:54:32]*** Partial cut [12:54:32]*** CUTSNS_PIN = 1 [12:54:32]*** CUTSNS_PIN = 0 [12:54:33]*** Brake cut motor [12:54:33]Read from MH i2c: 01 [12:54:33]MH_I2C_Read... [12:54:33]Read from MH i2c: 01 07 00 [12:54:33]MH_I2C_Read... [12:54:33]*** Stop cut motor [12:54:33]*** Cut end [12:54:33]Read from MH i2c: 01 07 00 7B 35 00 00 00 00 00 FF 0F C5 [12:54:33]process_action print_text done [12:54:33]requested_data is exist [12:54:33]produce_requested_data [12:54:33]requested_item fm.sn is exist - process it [12:54:33]wFMCommunicate request_size=4 [12:54:33]MH_SAM_APDU [12:54:33]CAPDU: 80 11 00 00 [12:54:33]Write to MH i2c: E2 08 00 7C 35 80 11 00 00 00 00 00 00 2B [12:54:33]Write i2c OK [12:54:33]MH_I2C_Read... [12:54:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:33]Read from MH i2c: E2 [12:54:33]MH_I2C_Read... [12:54:33]Read from MH i2c: E2 17 00 [12:54:33]MH_I2C_Read... [12:54:33]Read from MH i2c: E2 17 00 7C 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 76 [12:54:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:54:33]wFMCommunicate OK [12:54:33]requested_item fd.num is exist - process it [12:54:33]SAM_PROTO_GetFieldsCounters [12:54:33]wFMCommunicate request_size=4 [12:54:33]MH_SAM_APDU [12:54:33]CAPDU: 80 13 00 00 [12:54:33]Write to MH i2c: E2 08 00 7D 35 80 13 00 00 00 00 00 00 2E [12:54:33]Write i2c OK [12:54:33]MH_I2C_Read... [12:54:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:54:33]Read from MH i2c: E2 [12:54:33]MH_I2C_Read... [12:54:33]Read from MH i2c: E2 62 00 [12:54:33]MH_I2C_Read... [12:54:33]Read from MH i2c: E2 62 00 7D 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 EF 0A 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 80 [12:54:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 EF 0A 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:54:33]wFMCommunicate OK [12:54:33]SAM_PROTO_GetFieldsCounters done [12:54:33]requested_item shift.num is exist - process it [12:54:33]requested_item shift.opened is exist - process it [12:54:33]req_shift_opened [12:54:33]FM_GetShiftState [12:54:33]SAM_PROTO_GetShiftState [12:54:33]wFMCommunicate request_size=4 [12:54:33]MH_SAM_APDU [12:54:33]CAPDU: 80 13 01 00 [12:54:33]Write to MH i2c: E2 08 00 7E 35 80 13 01 00 00 00 00 00 30 [12:54:33]Write i2c OK [12:54:33]MH_I2C_Read... [12:54:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:33]Read from MH i2c: E2 [12:54:33]MH_I2C_Read... [12:54:33]Read from MH i2c: E2 0E 00 [12:54:33]MH_I2C_Read... [12:54:33]Read from MH i2c: E2 0E 00 7E 35 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 0B [12:54:33]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [12:54:33]wFMCommunicate OK [12:54:33]SAM_PROTO_GetShiftState done [12:54:33]FM_GetShiftState done [12:54:33]req_shift_opened done [12:54:33]requested_item shift.open_date is exist - process it [12:54:33]req_shift_open_date [12:54:33]req_shift_open_date done [12:54:33]produce_requested_data done [12:54:33]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68335,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [12:54:33]process_action_free print_text [12:54:33]json_value_free [12:54:33]json_value_free done [12:54:33]process_json_proto returns [12:54:33]Send response to host [12:54:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68335,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [12:54:33]free response buf [12:54:33]execute_script done [12:54:33]execute_script returns [12:54:33]free content buf [12:54:33]Sock 6.Close socket [12:54:33]Sock 6.Thread stoped [12:54:35]OFD Sender: No OFD packet to send [12:54:40]OFD Sender: No OFD packet to send [12:54:45]OFD Sender: No OFD packet to send [12:54:50]OFD Sender: No OFD packet to send [12:54:55]OFD Sender: No OFD packet to send [12:55:00]OFD Sender: No OFD packet to send [12:55:05]OFD Sender: No OFD packet to send [12:55:10]OFD Sender: No OFD packet to send [12:55:15]OFD Sender: No OFD packet to send [12:55:20]OFD Sender: No OFD packet to send [12:55:25]OFD Sender: No OFD packet to send [12:55:30]OFD Sender: No OFD packet to send [12:55:35]OFD Sender: No OFD packet to send [12:55:40]OFD Sender: No OFD packet to send [12:55:45]OFD Sender: No OFD packet to send [12:55:50]OFD Sender: No OFD packet to send [12:55:55]OFD Sender: No OFD packet to send [12:56:00]OFD Sender: No OFD packet to send [12:56:05]OFD Sender: No OFD packet to send [12:56:10]OFD Sender: No OFD packet to send [12:56:15]OFD Sender: No OFD packet to send [12:56:20]OFD Sender: No OFD packet to send [12:56:25]OFD Sender: No OFD packet to send [12:56:30]OFD Sender: No OFD packet to send [12:56:35]OFD Sender: No OFD packet to send [12:56:40]OFD Sender: No OFD packet to send [12:56:45]OFD Sender: No OFD packet to send [12:56:50]OFD Sender: No OFD packet to send [12:56:55]OFD Sender: No OFD packet to send [12:57:00]OFD Sender: No OFD packet to send [12:57:05]OFD Sender: No OFD packet to send [12:57:10]OFD Sender: No OFD packet to send [12:57:15]OFD Sender: No OFD packet to send [12:57:20]OFD Sender: No OFD packet to send [12:57:25]OFD Sender: No OFD packet to send [12:57:28]accept exits with 5 [12:57:28]New connection [12:57:28]New thread 3066543460 created [12:57:28]Thread 3066686820 joined [12:57:28]Waiting for new connection... [12:57:28] Sock 5.Parse request [12:57:28]Sock 5.Check first char [12:57:28]Sock 5.First char is OK [12:57:28]request: POST /json_proto HTTP/1.0 [12:57:28]Method: POST [12:57:28]URL: /json_proto [12:57:28]Method is POST - this is cgi request [12:57:28]url: /json_proto [12:57:28]query_string will be loaded in cgi processing [12:57:28]execute_cgi json_proto POST (null) [12:57:28]execute_cgi path=json_proto method=POST [12:57:28]POST find Content-Length [12:57:28]Host: 172.17.36.132:8080 [12:57:28]Content-Length: 687 [12:57:28]Content-Type: application/json [12:57:28] [12:57:28]POST finish read [12:57:28]Found Content-Length = 687 [12:57:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706426", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 20.580, "sum" : 1500.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:57:28]execute_script... [12:57:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706426", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 20.580, "sum" : 1500.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:57:28]POST & json_proto [12:57:28]process_json_proto [12:57:28]json parsed OK: [12:57:28]protocol is kg_v1.0 [12:57:28]action value=close_receipt [12:57:28]process_action close_receipt [12:57:28]cmd_close_receipt [12:57:28]MH_GetDate [12:57:28]Write to MH i2c: F0 00 00 7F 35 A3 [12:57:28]Write i2c OK [12:57:28]MH_I2C_Read... [12:57:28]Read from MH i2c: F0 [12:57:28]MH_I2C_Read... [12:57:28]Read from MH i2c: F0 09 00 [12:57:28]MH_I2C_Read... [12:57:28]Read from MH i2c: F0 09 00 7F 35 00 BE BD 5D 66 B2 22 B0 64 D2 [12:57:28]GetLastDocTimeStamp 1717418922 [12:57:28]current date 1717419454 [12:57:28]FM_GetShiftState [12:57:28]SAM_PROTO_GetShiftState [12:57:28]wFMCommunicate request_size=4 [12:57:28]MH_SAM_APDU [12:57:28]CAPDU: 80 13 01 00 [12:57:28]Write to MH i2c: E2 08 00 80 35 80 13 01 00 00 00 00 00 32 [12:57:28]Write i2c OK [12:57:28]MH_I2C_Read... [12:57:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:57:28]Read from MH i2c: E2 [12:57:28]MH_I2C_Read... [12:57:28]Read from MH i2c: E2 0E 00 [12:57:28]MH_I2C_Read... [12:57:28]Read from MH i2c: E2 0E 00 80 35 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 0D [12:57:28]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [12:57:28]wFMCommunicate OK [12:57:28]SAM_PROTO_GetShiftState done [12:57:28]FM_GetShiftState done [12:57:28]opened in 1717378033 [12:57:28]opened+sec_in_day 1717464433 [12:57:28]quantity*price = 150028 [12:57:28]sum+1 = 150029 [12:57:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.32 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 82 03.06.2024 12:57 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68336 ФПД: 233276588948832 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T125734&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68336&fm=233276588948832&tin=02508201610067®Number=0000000000098096&sum=150000 [12:57:30]StoreToDocumentArchive [12:57:30]shift 324 fd 68336 [12:57:30]save to /storage/0324/doc_00068336 [12:57:30]save last doc name /storage/0324/doc_00068336 to /storage/kkm_last_doc_name [12:57:30]save OK [12:57:30]Clear old archive folders... [12:57:30]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:57:30]tlvbuf is B6F17520 [12:57:30]SAM_PROTO_ClearQueue [12:57:30]wFMCommunicate request_size=4 [12:57:30]MH_SAM_APDU [12:57:30]CAPDU: 80 09 00 00 [12:57:30]Write to MH i2c: E2 08 00 8D 35 80 09 00 00 00 00 00 00 34 [12:57:30]Write i2c OK [12:57:30]MH_I2C_Read... [12:57:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:57:30]Read from MH i2c: E2 [12:57:30]MH_I2C_Read... [12:57:30]Read from MH i2c: E2 03 00 [12:57:30]MH_I2C_Read... [12:57:30]Read from MH i2c: E2 03 00 8D 35 00 90 00 36 [12:57:30]RAPDU: 90 00 [12:57:30]wFMCommunicate OK [12:57:30]SAM_PROTO_ClearQueue done [12:57:30]KKMCreateOFDPacket [12:57:30]OFDProtocolAddRootSTLVToBuf [12:57:30]FM_MakeSignedData [12:57:30]FM_MakeSignedData [12:57:30]SAM_PROTO_SignData [12:57:30]wFMCommunicate request_size=4 [12:57:30]MH_SAM_APDU [12:57:30]CAPDU: 80 0D 01 02 [12:57:30]Write to MH i2c: E2 08 00 8E 35 80 0D 01 02 00 00 00 00 3C [12:57:30]Write i2c OK [12:57:30]MH_I2C_Read... [12:57:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:57:30]Read from MH i2c: E2 [12:57:30]MH_I2C_Read... [12:57:30]Read from MH i2c: E2 03 00 [12:57:30]MH_I2C_Read... [12:57:30]Read from MH i2c: E2 03 00 8E 35 00 90 00 37 [12:57:30]RAPDU: 90 00 [12:57:30]wFMCommunicate OK [12:57:30]wFMCommunicate request_size=255 [12:57:30]MH_SAM_APDU [12:57:30]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 64 50 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 BE BD 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F0 0A 01 00 35 04 06 00 [12:57:30]Write to MH i2c: E2 02 01 8F 35 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 34 FF 03 08 00 03 64 50 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 BE BD 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F0 0A 01 00 35 04 06 00 00 00 16 [12:57:30]Write i2c OK [12:57:30]MH_I2C_Read... [12:57:30]OFD Sender: No OFD packet to send [12:57:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:57:30]Read from MH i2c: E2 [12:57:30]MH_I2C_Read... [12:57:30]Read from MH i2c: E2 03 00 [12:57:30]MH_I2C_Read... [12:57:30]Read from MH i2c: E2 03 00 8F 35 00 90 00 38 [12:57:30]RAPDU: 90 00 [12:57:30]wFMCommunicate OK [12:57:30]wFMCommunicate request_size=11 [12:57:30]MH_SAM_APDU [12:57:30]CAPDU: 80 0D 02 02 06 D4 29 F0 37 FD 60 [12:57:30]Write to MH i2c: E2 0E 00 90 35 80 0D 02 02 06 00 D4 29 F0 37 FD 60 00 00 CC [12:57:30]Write i2c OK [12:57:30]MH_I2C_Read... [12:57:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:57:30]Read from MH i2c: E2 [12:57:30]MH_I2C_Read... [12:57:30]Read from MH i2c: E2 03 00 [12:57:30]MH_I2C_Read... [12:57:30]Read from MH i2c: E2 03 00 90 35 00 90 00 39 [12:57:30]RAPDU: 90 00 [12:57:30]wFMCommunicate OK [12:57:30]wFMCommunicate request_size=4 [12:57:30]MH_SAM_APDU [12:57:30]CAPDU: 80 0D 03 02 [12:57:30]Write to MH i2c: E2 08 00 91 35 80 0D 03 02 00 00 00 00 41 [12:57:30]Write i2c OK [12:57:30]MH_I2C_Read... [12:57:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:57:30]Read from MH i2c: E2 [12:57:30]MH_I2C_Read... [12:57:30]Read from MH i2c: E2 0B 00 [12:57:30]MH_I2C_Read... [12:57:30]Read from MH i2c: E2 0B 00 91 35 00 75 B2 9C C0 DE 4B 56 89 90 00 CD [12:57:30]RAPDU: 75 B2 9C C0 DE 4B 56 89 90 00 [12:57:30]wFMCommunicate OK [12:57:30]SAM_PROTO_SignData done [12:57:30]FM_MakeSignedData done [12:57:30]CreateOFDProtocolMessage [12:57:30]wFMCommunicate request_size=4 [12:57:30]MH_SAM_APDU [12:57:30]CAPDU: 80 11 00 00 [12:57:30]Write to MH i2c: E2 08 00 92 35 80 11 00 00 00 00 00 00 41 [12:57:30]Write i2c OK [12:57:30]MH_I2C_Read... [12:57:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:57:30]Read from MH i2c: E2 [12:57:30]MH_I2C_Read... [12:57:30]Read from MH i2c: E2 17 00 [12:57:30]MH_I2C_Read... [12:57:30]Read from MH i2c: E2 17 00 92 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 8C [12:57:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:57:30]wFMCommunicate OK [12:57:30]CreateOFDProtocolMessage done [12:57:30]OFDSenderStorePacket 68336 [12:57:30]StoreOFDPacket docnum=68336 [12:57:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 BD 11 08 01 FE B1 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 34 FF 03 08 00 03 64 50 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 BE BD 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F0 0A 01 00 35 04 06 00 D4 29 F0 37 FD 60 75 B2 9C C0 DE 4B 56 89 [12:57:30]CheckFolder [12:57:30]dirname=/storage/ofd_packets [12:57:30]CheckFolder done [12:57:30]ProducePacketName [12:57:30]name=ofd_packets/00068336 [12:57:30]NVStorageSaveData ofd_packets/00068336 [12:57:30]File name is /storage/ofd_packets/00068336 [12:57:30]Write 302 bytes [12:57:30]NVStorageSaveData done [12:57:30]OFDSenderStorePacket done [12:57:30]KKMCreateOFDPacket done [12:57:30]NVStorageSaveData kkm_last_timestamp [12:57:30]File name is /storage/kkm_last_timestamp [12:57:30]Write 4 bytes [12:57:30]NVStorageSaveData done [12:57:30]ExternCall_PrintAddStr [12:57:30]wPrintStart [12:57:30]Write to MH i2c: 01 00 00 93 35 C8 [12:57:30]Write i2c OK [12:57:30]MH_I2C_Read... [12:57:30]Read from MH i2c: 01 [12:57:30]MH_I2C_Read... [12:57:30]Read from MH i2c: 01 07 00 [12:57:30]MH_I2C_Read... [12:57:30]Read from MH i2c: 01 07 00 93 35 00 00 00 00 00 FF 0F DD [12:57:30]RasterBufferAndPrint [12:57:30]line Счет N : (1)706426 [12:57:30]line ИНН: 02508201610067 [12:57:30]line Контрольно-Кассовый Чек [12:57:30]line ПРОДАЖА [12:57:30]line ТРК (МРК, ГНК) : 11 [12:57:30]line Товар: 2710194210 [12:57:30]line ДТ(л)-К-4 [12:57:30]line 20.580 * 72.90 [12:57:30]line = 1500.28 [12:57:30]line НДС 12% НСП 1% [12:57:30]line > о реализуемом товаре [12:57:30]line ОКРУГЛЕНИЕ: -0.28 [12:57:30]line ИТОГО: 1500.00 [12:57:30]line Внесено: 1500.00 [12:57:30]line СДАЧА: 0.00 [12:57:30]line НСП 1% : 13.28 [12:57:30]line НДС 12% : 159.32 [12:57:30]line Наличными: 1500.00 [12:57:30]line Безнал.: 0.00 [12:57:30]line Место: АЗС № 62 "Партнер Нефть" [12:57:30]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [12:57:30]line СНО: Общий режим [12:57:30]line Чек 82 03.06.2024 12:57 [12:57:30]line Смена: 324 ФФД: 1.0 [12:57:30]line ЗНМ: 0300000181 [12:57:30]line РНМ: 0000000000098096 [12:57:30]line Версия ККМ: 001 [12:57:30]line ФМ: 0000000000965400 [12:57:30]line ФД: 68336 [12:57:30]line ФПД: 233276588948832 [12:57:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T125734&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68336&fm=233276588948832&tin=02508201610067®Number=0000000000098096&sum=150000 [12:57:30]OFD Sender: Processing packet 68336 [packets to send 26, broken 25] [12:57:30]ProducePacketName [12:57:30]name=ofd_packets/00068336 [12:57:30]OFD Sender: To server: pG, [12:57:30]CommunicateWithHost lk.salyk.kg:30040 [12:57:30]ConnectInit lk.salyk.kg [12:57:30]written 0, free lines is 4095 [12:57:30]Connected sock=7 [12:57:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 BD 11 08 01 FE B1 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 34 FF 03 08 00 03 64 50 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 BE BD 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F0 0A 01 00 35 04 06 00 D4 29 F0 37 FD 60 75 B2 9C C0 DE 4B 56 89 [12:57:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 6C FB 47 00 DF CB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F0 0A 01 00 F4 03 04 00 BA 64 5D 66 B6 04 01 00 00 30 07 D8 C9 B7 35 FD 01 [12:57:31]CommunicateWithHost err = 0 [12:57:31]CheckOFDResponse [12:57:31]1017 (14) - 77093643461234 [12:57:31]1041 (16) - 0000000000965400 [12:57:31]1040 (4) - 68336 [12:57:31]1012 (4) - 03.06.2024 06:37 [12:57:31]1206 (1) - 0 [12:57:31]OFD Sender: Remove packet 68336 [12:57:31]ProducePacketName [12:57:31]name=ofd_packets/00068336 [12:57:31]NVStorageDeleteData [12:57:31]Write to MH i2c: 01 00 00 BE 35 F3 [12:57:31]Write i2c OK [12:57:31]MH_I2C_Read... [12:57:31]Read from MH i2c: 01 [12:57:31]MH_I2C_Read... [12:57:31]Read from MH i2c: 01 07 00 [12:57:31]MH_I2C_Read... [12:57:31]Read from MH i2c: 01 07 00 BE 35 00 00 00 00 00 E8 0C EE [12:57:31]RasterBufferAndPrint [12:57:31]line [12:57:31]line [12:57:31]line [12:57:31]line [12:57:31]line [12:57:31]written 0, free lines is 3310 [12:57:31]MH_Cut [12:57:31]Write to MH i2c: D1 01 00 C5 35 01 CC [12:57:31]Write i2c OK [12:57:31]MH_I2C_Read... [12:57:31]Read from MH i2c: D1 [12:57:31]MH_I2C_Read... [12:57:31]Read from MH i2c: D1 01 00 [12:57:31]MH_I2C_Read... [12:57:31]Read from MH i2c: D1 01 00 C5 35 00 CB [12:57:31]Write to MH i2c: 01 00 00 C6 35 FB [12:57:31]Write i2c OK [12:57:31]MH_I2C_Read... [12:57:31]OFD Sender: No OFD packet to send [12:57:32]*** Cut start [12:57:32]*** Partial cut [12:57:32]*** CUTSNS_PIN = 1 [12:57:32]*** CUTSNS_PIN = 0 [12:57:32]*** Brake cut motor [12:57:32]Read from MH i2c: 01 [12:57:32]MH_I2C_Read... [12:57:32]*** Stop cut motor [12:57:32]*** Cut end [12:57:32]Read from MH i2c: 01 07 00 [12:57:32]MH_I2C_Read... [12:57:32]Read from MH i2c: 01 07 00 C6 35 00 00 00 00 00 FF 0F 10 [12:57:32]process_action close_receipt done [12:57:32]requested_data is exist [12:57:32]produce_requested_data [12:57:32]requested_item fm.sn is exist - process it [12:57:32]wFMCommunicate request_size=4 [12:57:32]MH_SAM_APDU [12:57:32]CAPDU: 80 11 00 00 [12:57:32]Write to MH i2c: E2 08 00 C7 35 80 11 00 00 00 00 00 00 76 [12:57:32]Write i2c OK [12:57:32]MH_I2C_Read... [12:57:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:57:32]Read from MH i2c: E2 [12:57:32]MH_I2C_Read... [12:57:32]Read from MH i2c: E2 17 00 [12:57:32]MH_I2C_Read... [12:57:32]Read from MH i2c: E2 17 00 C7 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 C1 [12:57:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:57:32]wFMCommunicate OK [12:57:32]requested_item fd.num is exist - process it [12:57:32]SAM_PROTO_GetFieldsCounters [12:57:32]wFMCommunicate request_size=4 [12:57:32]MH_SAM_APDU [12:57:32]CAPDU: 80 13 00 00 [12:57:32]Write to MH i2c: E2 08 00 C8 35 80 13 00 00 00 00 00 00 79 [12:57:32]Write i2c OK [12:57:32]MH_I2C_Read... [12:57:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:57:32]Read from MH i2c: E2 [12:57:32]MH_I2C_Read... [12:57:32]Read from MH i2c: E2 62 00 [12:57:32]MH_I2C_Read... [12:57:32]Read from MH i2c: E2 62 00 C8 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 F0 0A 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 CF [12:57:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 F0 0A 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:57:32]wFMCommunicate OK [12:57:32]SAM_PROTO_GetFieldsCounters done [12:57:32]requested_item shift.num is exist - process it [12:57:32]requested_item shift.opened is exist - process it [12:57:32]req_shift_opened [12:57:32]FM_GetShiftState [12:57:32]SAM_PROTO_GetShiftState [12:57:32]wFMCommunicate request_size=4 [12:57:32]MH_SAM_APDU [12:57:32]CAPDU: 80 13 01 00 [12:57:32]Write to MH i2c: E2 08 00 C9 35 80 13 01 00 00 00 00 00 7B [12:57:32]Write i2c OK [12:57:32]MH_I2C_Read... [12:57:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:57:32]Read from MH i2c: E2 [12:57:32]MH_I2C_Read... [12:57:32]Read from MH i2c: E2 0E 00 [12:57:32]MH_I2C_Read... [12:57:32]Read from MH i2c: E2 0E 00 C9 35 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 56 [12:57:32]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [12:57:32]wFMCommunicate OK [12:57:32]SAM_PROTO_GetShiftState done [12:57:32]FM_GetShiftState done [12:57:32]req_shift_opened done [12:57:32]requested_item shift.open_date is exist - process it [12:57:32]req_shift_open_date [12:57:32]req_shift_open_date done [12:57:32]produce_requested_data done [12:57:32]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68336,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [12:57:32]process_action_free close_receipt [12:57:32]json_value_free [12:57:32]json_value_free done [12:57:32]process_json_proto returns [12:57:32]Send response to host [12:57:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68336,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [12:57:32]free response buf [12:57:32]execute_script done [12:57:32]execute_script returns [12:57:32]free content buf [12:57:32]Sock 5.Close socket [12:57:32]Sock 5.Thread stoped [12:57:33]accept exits with 6 [12:57:33]New connection [12:57:33]New thread 3066686820 created [12:57:33]Thread 3066543460 joined [12:57:33]Waiting for new connection... [12:57:33] Sock 6.Parse request [12:57:33]Sock 6.Check first char [12:57:33]Sock 6.First char is OK [12:57:33]request: POST /json_proto HTTP/1.0 [12:57:33]Method: POST [12:57:33]URL: /json_proto [12:57:33]Method is POST - this is cgi request [12:57:33]url: /json_proto [12:57:33]query_string will be loaded in cgi processing [12:57:33]execute_cgi json_proto POST (null) [12:57:33]execute_cgi path=json_proto method=POST [12:57:33]POST find Content-Length [12:57:33]Host: 172.17.36.132:8080 [12:57:33]Content-Length: 677 [12:57:33]Content-Type: application/json [12:57:33] [12:57:33]POST finish read [12:57:33]Found Content-Length = 677 [12:57:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706424", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 1.500, "sum" : 100.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:57:33]execute_script... [12:57: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)706424", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 1.500, "sum" : 100.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:57:33]POST & json_proto [12:57:33]process_json_proto [12:57:33]json parsed OK: [12:57:33]protocol is kg_v1.0 [12:57:33]action value=close_receipt [12:57:33]process_action close_receipt [12:57:33]cmd_close_receipt [12:57:33]MH_GetDate [12:57:33]Write to MH i2c: F0 00 00 CA 35 EE [12:57:33]Write i2c OK [12:57:33]MH_I2C_Read... [12:57:33]Read from MH i2c: F0 [12:57:33]MH_I2C_Read... [12:57:33]Read from MH i2c: F0 09 00 [12:57:33]MH_I2C_Read... [12:57:33]Read from MH i2c: F0 09 00 CA 35 00 C2 BD 5D 66 B2 22 B0 64 21 [12:57:33]GetLastDocTimeStamp 1717419454 [12:57:33]current date 1717419458 [12:57:33]FM_GetShiftState [12:57:33]SAM_PROTO_GetShiftState [12:57:33]wFMCommunicate request_size=4 [12:57:33]MH_SAM_APDU [12:57:33]CAPDU: 80 13 01 00 [12:57:33]Write to MH i2c: E2 08 00 CB 35 80 13 01 00 00 00 00 00 7D [12:57:33]Write i2c OK [12:57:33]MH_I2C_Read... [12:57:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:57:33]Read from MH i2c: E2 [12:57:33]MH_I2C_Read... [12:57:33]Read from MH i2c: E2 0E 00 [12:57:33]MH_I2C_Read... [12:57:33]Read from MH i2c: E2 0E 00 CB 35 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 58 [12:57:33]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [12:57:33]wFMCommunicate OK [12:57:33]SAM_PROTO_GetShiftState done [12:57:33]FM_GetShiftState done [12:57:33]opened in 1717378033 [12:57:33]opened+sec_in_day 1717464433 [12:57:33]quantity*price = 10035 [12:57:33]sum+1 = 10036 [12:57:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.66 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 83 03.06.2024 12:57 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68337 ФПД: 123201874565466 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T125738&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68337&fm=123201874565466&tin=02508201610067®Number=0000000000098096&sum=10000 [12:57:35]StoreToDocumentArchive [12:57:35]shift 324 fd 68337 [12:57:35]save to /storage/0324/doc_00068337 [12:57:35]save last doc name /storage/0324/doc_00068337 to /storage/kkm_last_doc_name [12:57:35]save OK [12:57:35]Clear old archive folders... [12:57:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:57:35]tlvbuf is 0019EB40 [12:57:35]SAM_PROTO_ClearQueue [12:57:35]wFMCommunicate request_size=4 [12:57:35]MH_SAM_APDU [12:57:35]CAPDU: 80 09 00 00 [12:57:35]Write to MH i2c: E2 08 00 D8 35 80 09 00 00 00 00 00 00 7F [12:57:35]Write i2c OK [12:57:35]MH_I2C_Read... [12:57:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:57:35]Read from MH i2c: E2 [12:57:35]MH_I2C_Read... [12:57:35]Read from MH i2c: E2 03 00 [12:57:35]MH_I2C_Read... [12:57:35]Read from MH i2c: E2 03 00 D8 35 00 90 00 81 [12:57:35]RAPDU: 90 00 [12:57:35]wFMCommunicate OK [12:57:35]SAM_PROTO_ClearQueue done [12:57:35]KKMCreateOFDPacket [12:57:35]OFDProtocolAddRootSTLVToBuf [12:57:35]FM_MakeSignedData [12:57:35]FM_MakeSignedData [12:57:35]SAM_PROTO_SignData [12:57:35]wFMCommunicate request_size=4 [12:57:35]MH_SAM_APDU [12:57:35]CAPDU: 80 0D 01 02 [12:57:35]Write to MH i2c: E2 08 00 D9 35 80 0D 01 02 00 00 00 00 87 [12:57:35]Write i2c OK [12:57:35]MH_I2C_Read... [12:57:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:57:35]Read from MH i2c: E2 [12:57:35]MH_I2C_Read... [12:57:35]Read from MH i2c: E2 03 00 [12:57:35]MH_I2C_Read... [12:57:35]Read from MH i2c: E2 03 00 D9 35 00 90 00 82 [12:57:35]RAPDU: 90 00 [12:57:35]wFMCommunicate OK [12:57:35]wFMCommunicate request_size=255 [12:57:35]MH_SAM_APDU [12:57:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 C2 BD 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F1 0A 01 00 35 04 06 00 70 [12:57:35]Write to MH i2c: E2 02 01 DA 35 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 C2 BD 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F1 0A 01 00 35 04 06 00 70 00 00 41 [12:57:35]Write i2c OK [12:57:35]MH_I2C_Read... [12:57:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:57:35]Read from MH i2c: E2 [12:57:35]MH_I2C_Read... [12:57:35]Read from MH i2c: E2 03 00 [12:57:35]MH_I2C_Read... [12:57:35]Read from MH i2c: E2 03 00 DA 35 00 90 00 83 [12:57:35]RAPDU: 90 00 [12:57:35]wFMCommunicate OK [12:57:35]wFMCommunicate request_size=10 [12:57:35]MH_SAM_APDU [12:57:35]CAPDU: 80 0D 02 02 05 0D 2B F8 19 5A [12:57:35]Write to MH i2c: E2 0D 00 DB 35 80 0D 02 02 05 00 0D 2B F8 19 5A 00 00 37 [12:57:35]Write i2c OK [12:57:35]MH_I2C_Read... [12:57:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:57:35]Read from MH i2c: E2 [12:57:35]MH_I2C_Read... [12:57:35]Read from MH i2c: E2 03 00 [12:57:35]MH_I2C_Read... [12:57:35]Read from MH i2c: E2 03 00 DB 35 00 90 00 84 [12:57:35]RAPDU: 90 00 [12:57:35]wFMCommunicate OK [12:57:35]wFMCommunicate request_size=4 [12:57:35]MH_SAM_APDU [12:57:35]CAPDU: 80 0D 03 02 [12:57:35]Write to MH i2c: E2 08 00 DC 35 80 0D 03 02 00 00 00 00 8C [12:57:35]Write i2c OK [12:57:35]MH_I2C_Read... [12:57:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:57:35]Read from MH i2c: E2 [12:57:35]MH_I2C_Read... [12:57:35]Read from MH i2c: E2 0B 00 [12:57:35]MH_I2C_Read... [12:57:35]Read from MH i2c: E2 0B 00 DC 35 00 61 D2 EC 13 A5 94 D0 46 90 00 0E [12:57:35]RAPDU: 61 D2 EC 13 A5 94 D0 46 90 00 [12:57:35]wFMCommunicate OK [12:57:35]SAM_PROTO_SignData done [12:57:35]FM_MakeSignedData done [12:57:35]CreateOFDProtocolMessage [12:57:35]wFMCommunicate request_size=4 [12:57:35]MH_SAM_APDU [12:57:35]CAPDU: 80 11 00 00 [12:57:35]Write to MH i2c: E2 08 00 DD 35 80 11 00 00 00 00 00 00 8C [12:57:35]Write i2c OK [12:57:35]MH_I2C_Read... [12:57:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:57:35]Read from MH i2c: E2 [12:57:35]MH_I2C_Read... [12:57:35]Read from MH i2c: E2 17 00 [12:57:35]MH_I2C_Read... [12:57:35]Read from MH i2c: E2 17 00 DD 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 D7 [12:57:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:57:35]wFMCommunicate OK [12:57:35]CreateOFDProtocolMessage done [12:57:35]OFDSenderStorePacket 68337 [12:57:35]StoreOFDPacket docnum=68337 [12:57:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 11 58 07 01 DD 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 C2 BD 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F1 0A 01 00 35 04 06 00 70 0D 2B F8 19 5A 61 D2 EC 13 A5 94 D0 46 [12:57:35]CheckFolder [12:57:35]dirname=/storage/ofd_packets [12:57:35]CheckFolder done [12:57:35]ProducePacketName [12:57:35]name=ofd_packets/00068337 [12:57:35]NVStorageSaveData ofd_packets/00068337 [12:57:35]File name is /storage/ofd_packets/00068337 [12:57:35]Write 301 bytes [12:57:35]NVStorageSaveData done [12:57:35]OFDSenderStorePacket done [12:57:35]KKMCreateOFDPacket done [12:57:35]NVStorageSaveData kkm_last_timestamp [12:57:35]File name is /storage/kkm_last_timestamp [12:57:35]Write 4 bytes [12:57:35]NVStorageSaveData done [12:57:35]ExternCall_PrintAddStr [12:57:35]wPrintStart [12:57:35]Write to MH i2c: 01 00 00 DE 35 13 [12:57:35]Write i2c OK [12:57:35]MH_I2C_Read... [12:57:35]Read from MH i2c: 01 [12:57:35]MH_I2C_Read... [12:57:35]Read from MH i2c: 01 07 00 [12:57:35]MH_I2C_Read... [12:57:35]Read from MH i2c: 01 07 00 DE 35 00 00 00 00 00 FF 0F 28 [12:57:35]RasterBufferAndPrint [12:57:35]line Счет N : (1)706424 [12:57:35]line ИНН: 02508201610067 [12:57:35]line Контрольно-Кассовый Чек [12:57:35]line ПРОДАЖА [12:57:35]line ТРК (МРК, ГНК) : 23 [12:57:35]line Товар: 2710124130 [12:57:35]line Аи-92-К-4 [12:57:35]line 1.500 * 66.90 [12:57:35]line = 100.35 [12:57:35]line НДС 12% НСП 1% [12:57:35]line > о реализуемом товаре [12:57:35]line ОКРУГЛЕНИЕ: -0.35 [12:57:35]line ИТОГО: 100.00 [12:57:35]line Внесено: 100.00 [12:57:35]line СДАЧА: 0.00 [12:57:35]line НСП 1% : 0.89 [12:57:35]line НДС 12% : 10.66 [12:57:35]line Наличными: 100.00 [12:57:35]line Безнал.: 0.00 [12:57:35]line Место: АЗС № 62 "Партнер Нефть" [12:57:36]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [12:57:36]line СНО: Общий режим [12:57:36]line Чек 83 03.06.2024 12:57 [12:57:36]line Смена: 324 ФФД: 1.0 [12:57:36]line ЗНМ: 0300000181 [12:57:36]line РНМ: 0000000000098096 [12:57:36]line Версия ККМ: 001 [12:57:36]line ФМ: 0000000000965400 [12:57:36]line ФД: 68337 [12:57:36]line ФПД: 123201874565466 [12:57:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T125738&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68337&fm=123201874565466&tin=02508201610067®Number=0000000000098096&sum=10000 [12:57:36]OFD Sender: Processing packet 68337 [packets to send 26, broken 25] [12:57:36]ProducePacketName [12:57:36]name=ofd_packets/00068337 [12:57:36]OFD Sender: To server: pG, [12:57:36]CommunicateWithHost lk.salyk.kg:30040 [12:57:36]ConnectInit lk.salyk.kg [12:57:36]written 0, free lines is 4095 [12:57:36]Connected sock=7 [12:57:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 11 58 07 01 DD 96 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 C2 BD 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F1 0A 01 00 35 04 06 00 70 0D 2B F8 19 5A 61 D2 EC 13 A5 94 D0 46 [12:57:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 3B BB 47 00 87 E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F1 0A 01 00 F4 03 04 00 BF 64 5D 66 B6 04 01 00 00 17 6E A5 11 84 C4 DF 8A [12:57:36]CommunicateWithHost err = 0 [12:57:36]CheckOFDResponse [12:57:36]1017 (14) - 77093643461234 [12:57:36]1041 (16) - 0000000000965400 [12:57:36]1040 (4) - 68337 [12:57:36]1012 (4) - 03.06.2024 06:37 [12:57:36]1206 (1) - 0 [12:57:36]OFD Sender: Remove packet 68337 [12:57:36]ProducePacketName [12:57:36]name=ofd_packets/00068337 [12:57:36]NVStorageDeleteData [12:57:36]Write to MH i2c: 01 00 00 09 36 3F [12:57:36]Write i2c OK [12:57:36]MH_I2C_Read... [12:57:36]Read from MH i2c: 01 [12:57:36]MH_I2C_Read... [12:57:36]Read from MH i2c: 01 07 00 [12:57:36]MH_I2C_Read... [12:57:36]Read from MH i2c: 01 07 00 09 36 00 00 00 00 00 D7 0C 29 [12:57:36]RasterBufferAndPrint [12:57:36]line [12:57:36]line [12:57:36]line [12:57:36]line [12:57:36]line [12:57:36]written 0, free lines is 3297 [12:57:36]MH_Cut [12:57:36]Write to MH i2c: D1 01 00 10 36 01 18 [12:57:36]Write i2c OK [12:57:36]MH_I2C_Read... [12:57:36]Read from MH i2c: D1 [12:57:36]MH_I2C_Read... [12:57:36]Read from MH i2c: D1 01 00 [12:57:36]MH_I2C_Read... [12:57:36]Read from MH i2c: D1 01 00 10 36 00 17 [12:57:36]Write to MH i2c: 01 00 00 11 36 47 [12:57:36]Write i2c OK [12:57:36]MH_I2C_Read... [12:57:36]OFD Sender: No OFD packet to send [12:57:37]*** Cut start [12:57:37]*** Partial cut [12:57:37]*** CUTSNS_PIN = 1 [12:57:37]*** CUTSNS_PIN = 0 [12:57:37]*** Brake cut motor [12:57:37]Read from MH i2c: 01 [12:57:37]MH_I2C_Read... [12:57:37]*** Stop cut motor [12:57:37]*** Cut end [12:57:37]Read from MH i2c: 01 07 00 [12:57:37]MH_I2C_Read... [12:57:37]Read from MH i2c: 01 07 00 11 36 00 00 00 00 00 FF 0F 5C [12:57:37]process_action close_receipt done [12:57:37]requested_data is exist [12:57:37]produce_requested_data [12:57:37]requested_item fm.sn is exist - process it [12:57:37]wFMCommunicate request_size=4 [12:57:37]MH_SAM_APDU [12:57:37]CAPDU: 80 11 00 00 [12:57:37]Write to MH i2c: E2 08 00 12 36 80 11 00 00 00 00 00 00 C2 [12:57:37]Write i2c OK [12:57:37]MH_I2C_Read... [12:57:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:57:37]Read from MH i2c: E2 [12:57:37]MH_I2C_Read... [12:57:37]Read from MH i2c: E2 17 00 [12:57:37]MH_I2C_Read... [12:57:37]Read from MH i2c: E2 17 00 12 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 0D [12:57:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:57:37]wFMCommunicate OK [12:57:37]requested_item fd.num is exist - process it [12:57:37]SAM_PROTO_GetFieldsCounters [12:57:37]wFMCommunicate request_size=4 [12:57:37]MH_SAM_APDU [12:57:37]CAPDU: 80 13 00 00 [12:57:37]Write to MH i2c: E2 08 00 13 36 80 13 00 00 00 00 00 00 C5 [12:57:37]Write i2c OK [12:57:37]MH_I2C_Read... [12:57:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:57:38]Read from MH i2c: E2 [12:57:38]MH_I2C_Read... [12:57:38]Read from MH i2c: E2 62 00 [12:57:38]MH_I2C_Read... [12:57:38]Read from MH i2c: E2 62 00 13 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 F1 0A 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 1F [12:57:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 F1 0A 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:57:38]wFMCommunicate OK [12:57:38]SAM_PROTO_GetFieldsCounters done [12:57:38]requested_item shift.num is exist - process it [12:57:38]requested_item shift.opened is exist - process it [12:57:38]req_shift_opened [12:57:38]FM_GetShiftState [12:57:38]SAM_PROTO_GetShiftState [12:57:38]wFMCommunicate request_size=4 [12:57:38]MH_SAM_APDU [12:57:38]CAPDU: 80 13 01 00 [12:57:38]Write to MH i2c: E2 08 00 14 36 80 13 01 00 00 00 00 00 C7 [12:57:38]Write i2c OK [12:57:38]MH_I2C_Read... [12:57:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:57:38]Read from MH i2c: E2 [12:57:38]MH_I2C_Read... [12:57:38]Read from MH i2c: E2 0E 00 [12:57:38]MH_I2C_Read... [12:57:38]Read from MH i2c: E2 0E 00 14 36 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 A2 [12:57:38]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [12:57:38]wFMCommunicate OK [12:57:38]SAM_PROTO_GetShiftState done [12:57:38]FM_GetShiftState done [12:57:38]req_shift_opened done [12:57:38]requested_item shift.open_date is exist - process it [12:57:38]req_shift_open_date [12:57:38]req_shift_open_date done [12:57:38]produce_requested_data done [12:57:38]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68337,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [12:57:38]process_action_free close_receipt [12:57:38]json_value_free [12:57:38]json_value_free done [12:57:38]process_json_proto returns [12:57:38]Send response to host [12:57:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68337,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [12:57:38]free response buf [12:57:38]execute_script done [12:57:38]execute_script returns [12:57:38]free content buf [12:57:38]Sock 6.Close socket [12:57:38]Sock 6.Thread stoped [12:57:38]accept exits with 5 [12:57:38]New connection [12:57:38]New thread 3066543460 created [12:57:38]Thread 3066686820 joined [12:57:38]Waiting for new connection... [12:57:38] Sock 5.Parse request [12:57:38]Sock 5.Check first char [12:57:38]Sock 5.First char is OK [12:57:38]request: POST /json_proto HTTP/1.0 [12:57:38]Method: POST [12:57:38]URL: /json_proto [12:57:38]Method is POST - this is cgi request [12:57:38]url: /json_proto [12:57:38]query_string will be loaded in cgi processing [12:57:38]execute_cgi json_proto POST (null) [12:57:38]execute_cgi path=json_proto method=POST [12:57:38]POST find Content-Length [12:57:38]Host: 172.17.36.132:8080 [12:57:38]Content-Length: 743 [12:57:38]Content-Type: application/json [12:57:38] [12:57:38]POST finish read [12:57:38]Found Content-Length = 743 [12:57:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 68336, "base_FM": "0000000000965400", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706426", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 20.580, "sum" : 1500.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:57:38]execute_script... [12:57:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 68336, "base_FM": "0000000000965400", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706426", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 20.580, "sum" : 1500.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:57:38]POST & json_proto [12:57:38]process_json_proto [12:57:38]json parsed OK: [12:57:38]protocol is kg_v1.0 [12:57:38]action value=close_receipt [12:57:38]process_action close_receipt [12:57:38]cmd_close_receipt [12:57:38]MH_GetDate [12:57:38]Write to MH i2c: F0 00 00 15 36 3A [12:57:38]Write i2c OK [12:57:38]MH_I2C_Read... [12:57:38]Read from MH i2c: F0 [12:57:38]MH_I2C_Read... [12:57:38]Read from MH i2c: F0 09 00 [12:57:38]MH_I2C_Read... [12:57:38]Read from MH i2c: F0 09 00 15 36 00 C7 BD 5D 66 B2 22 B0 64 72 [12:57:38]GetLastDocTimeStamp 1717419458 [12:57:38]current date 1717419463 [12:57:38]FM_GetShiftState [12:57:38]SAM_PROTO_GetShiftState [12:57:38]wFMCommunicate request_size=4 [12:57:38]MH_SAM_APDU [12:57:38]CAPDU: 80 13 01 00 [12:57:38]Write to MH i2c: E2 08 00 16 36 80 13 01 00 00 00 00 00 C9 [12:57:38]Write i2c OK [12:57:38]MH_I2C_Read... [12:57:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:57:38]Read from MH i2c: E2 [12:57:38]MH_I2C_Read... [12:57:38]Read from MH i2c: E2 0E 00 [12:57:38]MH_I2C_Read... [12:57:38]Read from MH i2c: E2 0E 00 16 36 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 A4 [12:57:38]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [12:57:38]wFMCommunicate OK [12:57:38]SAM_PROTO_GetShiftState done [12:57:38]FM_GetShiftState done [12:57:38]opened in 1717378033 [12:57:38]opened+sec_in_day 1717464433 [12:57:38]quantity*price = 150028 [12:57:38]sum+1 = 150029 [12:57:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 1500.00 НСП 1% : 13.28 НДС 12% : 159.32 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 84 03.06.2024 12:57 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФД осн.: 68336 ФМ осн.: 0000000000965400 ФМ: 0000000000965400 ФД: 68338 ФПД: 130752207055861 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T125743&type=2&operation_type=1&fn_number=0000000000965400&fd_number=68338&fm=130752207055861&tin=02508201610067®Number=0000000000098096&sum=150000 [12:57:39]StoreToDocumentArchive [12:57:39]shift 324 fd 68338 [12:57:39]save to /storage/0324/doc_00068338 [12:57:39]save last doc name /storage/0324/doc_00068338 to /storage/kkm_last_doc_name [12:57:39]save OK [12:57:39]Clear old archive folders... [12:57:39]ProcessDocumentItem done err = 0, tmpTLVsize=280 [12:57:39]tlvbuf is 004A4790 [12:57:39]SAM_PROTO_ClearQueue [12:57:39]wFMCommunicate request_size=4 [12:57:39]MH_SAM_APDU [12:57:39]CAPDU: 80 09 00 00 [12:57:39]Write to MH i2c: E2 08 00 25 36 80 09 00 00 00 00 00 00 CD [12:57:39]Write i2c OK [12:57:39]MH_I2C_Read... [12:57:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:57:39]Read from MH i2c: E2 [12:57:39]MH_I2C_Read... [12:57:39]Read from MH i2c: E2 03 00 [12:57:39]MH_I2C_Read... [12:57:39]Read from MH i2c: E2 03 00 25 36 00 90 00 CF [12:57:39]RAPDU: 90 00 [12:57:39]wFMCommunicate OK [12:57:39]SAM_PROTO_ClearQueue done [12:57:39]KKMCreateOFDPacket [12:57:39]OFDProtocolAddRootSTLVToBuf [12:57:39]FM_MakeSignedData [12:57:39]FM_MakeSignedData [12:57:39]SAM_PROTO_SignData [12:57:39]wFMCommunicate request_size=4 [12:57:39]MH_SAM_APDU [12:57:39]CAPDU: 80 0D 01 02 [12:57:39]Write to MH i2c: E2 08 00 26 36 80 0D 01 02 00 00 00 00 D5 [12:57:39]Write i2c OK [12:57:39]MH_I2C_Read... [12:57:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:57:39]Read from MH i2c: E2 [12:57:39]MH_I2C_Read... [12:57:39]Read from MH i2c: E2 03 00 [12:57:39]MH_I2C_Read... [12:57:39]Read from MH i2c: E2 03 00 26 36 00 90 00 D0 [12:57:39]RAPDU: 90 00 [12:57:39]wFMCommunicate OK [12:57:39]wFMCommunicate request_size=255 [12:57:39]MH_SAM_APDU [12:57:39]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 02 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 34 FF 03 08 00 03 64 50 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 C7 BD 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 27 04 04 00 F0 0A 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 11 04 10 00 [12:57:39]Write to MH i2c: E2 02 01 27 36 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 02 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 34 FF 03 08 00 03 64 50 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 C7 BD 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 27 04 04 00 F0 0A 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 11 04 10 00 00 00 EC [12:57:39]Write i2c OK [12:57:39]MH_I2C_Read... [12:57:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:57:40]Read from MH i2c: E2 [12:57:40]MH_I2C_Read... [12:57:40]Read from MH i2c: E2 03 00 [12:57:40]MH_I2C_Read... [12:57:40]Read from MH i2c: E2 03 00 27 36 00 90 00 D1 [12:57:40]RAPDU: 90 00 [12:57:40]wFMCommunicate OK [12:57:40]wFMCommunicate request_size=39 [12:57:40]MH_SAM_APDU [12:57:40]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F2 0A 01 00 35 04 06 00 76 EB 1E DA EB F5 [12:57:40]Write to MH i2c: E2 2A 00 28 36 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F2 0A 01 00 35 04 06 00 76 EB 1E DA EB F5 00 00 C1 [12:57:40]Write i2c OK [12:57:40]MH_I2C_Read... [12:57:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:57:40]Read from MH i2c: E2 [12:57:40]MH_I2C_Read... [12:57:40]Read from MH i2c: E2 03 00 [12:57:40]MH_I2C_Read... [12:57:40]Read from MH i2c: E2 03 00 28 36 00 90 00 D2 [12:57:40]RAPDU: 90 00 [12:57:40]wFMCommunicate OK [12:57:40]wFMCommunicate request_size=4 [12:57:40]MH_SAM_APDU [12:57:40]CAPDU: 80 0D 03 02 [12:57:40]Write to MH i2c: E2 08 00 29 36 80 0D 03 02 00 00 00 00 DA [12:57:40]Write i2c OK [12:57:40]MH_I2C_Read... [12:57:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:57:40]Read from MH i2c: E2 [12:57:40]MH_I2C_Read... [12:57:40]Read from MH i2c: E2 0B 00 [12:57:40]MH_I2C_Read... [12:57:40]Read from MH i2c: E2 0B 00 29 36 00 77 65 62 37 2C E4 D9 B0 90 00 E9 [12:57:40]RAPDU: 77 65 62 37 2C E4 D9 B0 90 00 [12:57:40]wFMCommunicate OK [12:57:40]SAM_PROTO_SignData done [12:57:40]FM_MakeSignedData done [12:57:40]CreateOFDProtocolMessage [12:57:40]wFMCommunicate request_size=4 [12:57:40]MH_SAM_APDU [12:57:40]CAPDU: 80 11 00 00 [12:57:40]Write to MH i2c: E2 08 00 2A 36 80 11 00 00 00 00 00 00 DA [12:57:40]Write i2c OK [12:57:40]MH_I2C_Read... [12:57:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:57:40]Read from MH i2c: E2 [12:57:40]MH_I2C_Read... [12:57:40]Read from MH i2c: E2 17 00 [12:57:40]MH_I2C_Read... [12:57:40]Read from MH i2c: E2 17 00 2A 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 25 [12:57:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:57:40]wFMCommunicate OK [12:57:40]CreateOFDProtocolMessage done [12:57:40]OFDSenderStorePacket 68338 [12:57:40]StoreOFDPacket docnum=68338 [12:57:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 2C 01 00 00 46 9D 24 01 1A 35 5A 03 01 00 03 00 18 01 1E 04 01 00 02 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 34 FF 03 08 00 03 64 50 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 C7 BD 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 27 04 04 00 F0 0A 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F2 0A 01 00 35 04 06 00 76 EB 1E DA EB F5 77 65 62 37 2C E4 D9 B0 [12:57:40]CheckFolder [12:57:40]dirname=/storage/ofd_packets [12:57:40]CheckFolder done [12:57:40]ProducePacketName [12:57:40]name=ofd_packets/00068338 [12:57:40]NVStorageSaveData ofd_packets/00068338 [12:57:40]File name is /storage/ofd_packets/00068338 [12:57:40]Write 330 bytes [12:57:40]NVStorageSaveData done [12:57:40]OFDSenderStorePacket done [12:57:40]KKMCreateOFDPacket done [12:57:40]NVStorageSaveData kkm_last_timestamp [12:57:40]File name is /storage/kkm_last_timestamp [12:57:40]Write 4 bytes [12:57:40]NVStorageSaveData done [12:57:40]ExternCall_PrintAddStr [12:57:40]wPrintStart [12:57:40]Write to MH i2c: 01 00 00 2B 36 61 [12:57:40]Write i2c OK [12:57:40]MH_I2C_Read... [12:57:40]Read from MH i2c: 01 [12:57:40]MH_I2C_Read... [12:57:40]Read from MH i2c: 01 07 00 [12:57:40]MH_I2C_Read... [12:57:40]Read from MH i2c: 01 07 00 2B 36 00 00 00 00 00 FF 0F 76 [12:57:40]RasterBufferAndPrint [12:57:40]line Счет N : (1)706426 [12:57:40]line ИНН: 02508201610067 [12:57:40]line Контрольно-Кассовый Чек [12:57:40]line ВОЗВРАТ ПРОДАЖИ [12:57:40]line ТРК (МРК, ГНК) : 11 [12:57:40]line Товар: 2710194210 [12:57:40]line ДТ(л)-К-4 [12:57:40]line 20.580 * 72.90 [12:57:40]line = 1500.28 [12:57:40]line НДС 12% НСП 1% [12:57:40]line > о реализуемом товаре [12:57:40]line ОКРУГЛЕНИЕ: -0.28 [12:57:40]line ИТОГО: 1500.00 [12:57:40]line НСП 1% : 13.28 [12:57:40]line НДС 12% : 159.32 [12:57:40]line Наличными: 1500.00 [12:57:40]line Безнал.: 0.00 [12:57:40]line Место: АЗС № 62 "Партнер Нефть" [12:57:40]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [12:57:40]line СНО: Общий режим [12:57:40]line Чек 84 03.06.2024 12:57 [12:57:40]line Смена: 324 ФФД: 1.0 [12:57:40]line ЗНМ: 0300000181 [12:57:40]line РНМ: 0000000000098096 [12:57:41]line Версия ККМ: 001 [12:57:41]line ФД осн.: 68336 [12:57:41]line ФМ осн.: 0000000000965400 [12:57:41]line ФМ: 0000000000965400 [12:57:41]line ФД: 68338 [12:57:41]line ФПД: 130752207055861 [12:57:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T125743&type=2&operation_type=1&fn_number=0000000000965400&fd_number=68338&fm=130752207055861&tin=02508201610067®Number=0000000000098096&sum=150000 [12:57:41]OFD Sender: Processing packet 68338 [packets to send 26, broken 25] [12:57:41]ProducePacketName [12:57:41]name=ofd_packets/00068338 [12:57:41]OFD Sender: To server: pG, [12:57:41]CommunicateWithHost lk.salyk.kg:30040 [12:57:41]ConnectInit lk.salyk.kg [12:57:41]written 0, free lines is 4095 [12:57:41]Connected sock=9 [12:57:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 2C 01 00 00 46 9D 24 01 1A 35 5A 03 01 00 03 00 18 01 1E 04 01 00 02 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 34 FF 03 08 00 03 64 50 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 C7 BD 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 27 04 04 00 F0 0A 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F2 0A 01 00 35 04 06 00 76 EB 1E DA EB F5 77 65 62 37 2C E4 D9 B0 [12:57:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 D3 27 47 00 12 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F2 0A 01 00 F4 03 04 00 C4 64 5D 66 B6 04 01 00 00 EC 0A C4 D7 A7 5D 73 E6 [12:57:41]CommunicateWithHost err = 0 [12:57:41]CheckOFDResponse [12:57:41]1017 (14) - 77093643461234 [12:57:41]1041 (16) - 0000000000965400 [12:57:41]1040 (4) - 68338 [12:57:41]1012 (4) - 03.06.2024 06:37 [12:57:41]1206 (1) - 0 [12:57:41]OFD Sender: Remove packet 68338 [12:57:41]ProducePacketName [12:57:41]name=ofd_packets/00068338 [12:57:41]NVStorageDeleteData [12:57:41]Write to MH i2c: 01 00 00 56 36 8C [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 56 36 00 00 00 00 00 F4 0C 93 [12:57:41]RasterBufferAndPrint [12:57:41]line [12:57:41]line [12:57:41]line [12:57:41]line [12:57:41]line [12:57:41]written 0, free lines is 3335 [12:57:41]MH_Cut [12:57:41]Write to MH i2c: D1 01 00 5D 36 01 65 [12:57:41]Write i2c OK [12:57:41]MH_I2C_Read... [12:57:41]Read from MH i2c: D1 [12:57:41]MH_I2C_Read... [12:57:41]Read from MH i2c: D1 01 00 [12:57:41]MH_I2C_Read... [12:57:41]Read from MH i2c: D1 01 00 5D 36 00 64 [12:57:41]Write to MH i2c: 01 00 00 5E 36 94 [12:57:41]Write i2c OK [12:57:41]MH_I2C_Read... [12:57:41]OFD Sender: No OFD packet to send [12:57:42]*** Cut start [12:57:42]*** Partial cut [12:57:42]*** CUTSNS_PIN = 1 [12:57:42]*** CUTSNS_PIN = 0 [12:57:42]*** Brake cut motor [12:57:42]Read from MH i2c: 01 [12:57:42]MH_I2C_Read... [12:57:42]*** Stop cut motor [12:57:42]*** Cut end [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 5E 36 00 00 00 00 00 FF 0F A9 [12:57:42]process_action close_receipt done [12:57:42]requested_data is exist [12:57:42]produce_requested_data [12:57:42]requested_item fm.sn is exist - process it [12:57:42]wFMCommunicate request_size=4 [12:57:42]MH_SAM_APDU [12:57:42]CAPDU: 80 11 00 00 [12:57:42]Write to MH i2c: E2 08 00 5F 36 80 11 00 00 00 00 00 00 0F [12:57:42]Write i2c OK [12:57:42]MH_I2C_Read... [12:57:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:57:42]Read from MH i2c: E2 [12:57:42]MH_I2C_Read... [12:57:42]Read from MH i2c: E2 17 00 [12:57:42]MH_I2C_Read... [12:57:42]Read from MH i2c: E2 17 00 5F 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 5A [12:57:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:57:42]wFMCommunicate OK [12:57:42]requested_item fd.num is exist - process it [12:57:42]SAM_PROTO_GetFieldsCounters [12:57:42]wFMCommunicate request_size=4 [12:57:42]MH_SAM_APDU [12:57:42]CAPDU: 80 13 00 00 [12:57:42]Write to MH i2c: E2 08 00 60 36 80 13 00 00 00 00 00 00 12 [12:57:42]Write i2c OK [12:57:42]MH_I2C_Read... [12:57:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:57:43]Read from MH i2c: E2 [12:57:43]MH_I2C_Read... [12:57:43]Read from MH i2c: E2 62 00 [12:57:43]MH_I2C_Read... [12:57:43]Read from MH i2c: E2 62 00 60 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 F2 0A 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 70 [12:57:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 F2 0A 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:57:43]wFMCommunicate OK [12:57:43]SAM_PROTO_GetFieldsCounters done [12:57:43]requested_item shift.num is exist - process it [12:57:43]requested_item shift.opened is exist - process it [12:57:43]req_shift_opened [12:57:43]FM_GetShiftState [12:57:43]SAM_PROTO_GetShiftState [12:57:43]wFMCommunicate request_size=4 [12:57:43]MH_SAM_APDU [12:57:43]CAPDU: 80 13 01 00 [12:57:43]Write to MH i2c: E2 08 00 61 36 80 13 01 00 00 00 00 00 14 [12:57:43]Write i2c OK [12:57:43]MH_I2C_Read... [12:57:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:57:43]Read from MH i2c: E2 [12:57:43]MH_I2C_Read... [12:57:43]Read from MH i2c: E2 0E 00 [12:57:43]MH_I2C_Read... [12:57:43]Read from MH i2c: E2 0E 00 61 36 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 EF [12:57:43]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [12:57:43]wFMCommunicate OK [12:57:43]SAM_PROTO_GetShiftState done [12:57:43]FM_GetShiftState done [12:57:43]req_shift_opened done [12:57:43]requested_item shift.open_date is exist - process it [12:57:43]req_shift_open_date [12:57:43]req_shift_open_date done [12:57:43]produce_requested_data done [12:57:43]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68338,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [12:57:43]process_action_free close_receipt [12:57:43]json_value_free [12:57:43]json_value_free done [12:57:43]process_json_proto returns [12:57:43]Send response to host [12:57:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68338,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [12:57:43]free response buf [12:57:43]execute_script done [12:57:43]execute_script returns [12:57:43]free content buf [12:57:43]Sock 5.Close socket [12:57:43]Sock 5.Thread stoped [12:57:46]OFD Sender: No OFD packet to send [12:57:46]accept exits with 6 [12:57:46]New connection [12:57:46]New thread 3066686820 created [12:57:46]Thread 3066543460 joined [12:57:46]Waiting for new connection... [12:57:46] Sock 6.Parse request [12:57:46]Sock 6.Check first char [12:57:46]Sock 6.First char is OK [12:57:46]request: POST /json_proto HTTP/1.0 [12:57:46]Method: POST [12:57:46]URL: /json_proto [12:57:46]Method is POST - this is cgi request [12:57:46]url: /json_proto [12:57:46]query_string will be loaded in cgi processing [12:57:46]execute_cgi json_proto POST (null) [12:57:46]execute_cgi path=json_proto method=POST [12:57:46]POST find Content-Length [12:57:46]Host: 172.17.36.132:8080 [12:57:46]Content-Length: 805 [12:57:46]Content-Type: application/json [12:57:46] [12:57:46]POST finish read [12:57:46]Found Content-Length = 805 [12:57:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706425", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:57:46]execute_script... [12:57:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706425", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:57:46]POST & json_proto [12:57:46]process_json_proto [12:57:46]json parsed OK: [12:57:46]protocol is kg_v1.0 [12:57:46]action value=close_receipt [12:57:46]process_action close_receipt [12:57:46]cmd_close_receipt [12:57:46]MH_GetDate [12:57:46]Write to MH i2c: F0 00 00 62 36 87 [12:57:46]Write i2c OK [12:57:46]MH_I2C_Read... [12:57:46]Read from MH i2c: F0 [12:57:46]MH_I2C_Read... [12:57:46]Read from MH i2c: F0 09 00 [12:57:46]MH_I2C_Read... [12:57:46]Read from MH i2c: F0 09 00 62 36 00 D0 BD 5D 66 B2 22 B0 64 C8 [12:57:46]GetLastDocTimeStamp 1717419463 [12:57:46]current date 1717419472 [12:57:46]FM_GetShiftState [12:57:46]SAM_PROTO_GetShiftState [12:57:46]wFMCommunicate request_size=4 [12:57:46]MH_SAM_APDU [12:57:46]CAPDU: 80 13 01 00 [12:57:46]Write to MH i2c: E2 08 00 63 36 80 13 01 00 00 00 00 00 16 [12:57:46]Write i2c OK [12:57:46]MH_I2C_Read... [12:57:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:57:46]Read from MH i2c: E2 [12:57:46]MH_I2C_Read... [12:57:46]Read from MH i2c: E2 0E 00 [12:57:46]MH_I2C_Read... [12:57:46]Read from MH i2c: E2 0E 00 63 36 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 F1 [12:57:46]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [12:57:46]wFMCommunicate OK [12:57:46]SAM_PROTO_GetShiftState done [12:57:46]FM_GetShiftState done [12:57:46]opened in 1717378033 [12:57:46]opened+sec_in_day 1717464433 [12:57:46]quantity*price = 50009 [12:57:46]sum+1 = 50010 [12:57:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.09 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.09 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 85 03.06.2024 12:57 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000965400 ФД: 68339 ФПД: 121479092997476 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T125752&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68339&fm=121479092997476&tin=02508201610067®Number=0000000000098096&sum=50009 [12:57:48]StoreToDocumentArchive [12:57:48]shift 324 fd 68339 [12:57:48]save to /storage/0324/doc_00068339 [12:57:48]save last doc name /storage/0324/doc_00068339 to /storage/kkm_last_doc_name [12:57:48]save OK [12:57:48]Clear old archive folders... [12:57:48]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:57:48]tlvbuf is 001D5E00 [12:57:48]SAM_PROTO_ClearQueue [12:57:48]wFMCommunicate request_size=4 [12:57:48]MH_SAM_APDU [12:57:48]CAPDU: 80 09 00 00 [12:57:48]Write to MH i2c: E2 08 00 70 36 80 09 00 00 00 00 00 00 18 [12:57:48]Write i2c OK [12:57:48]MH_I2C_Read... [12:57:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:57:48]Read from MH i2c: E2 [12:57:48]MH_I2C_Read... [12:57:48]Read from MH i2c: E2 03 00 [12:57:48]MH_I2C_Read... [12:57:48]Read from MH i2c: E2 03 00 70 36 00 90 00 1A [12:57:48]RAPDU: 90 00 [12:57:48]wFMCommunicate OK [12:57:48]SAM_PROTO_ClearQueue done [12:57:48]KKMCreateOFDPacket [12:57:48]OFDProtocolAddRootSTLVToBuf [12:57:48]FM_MakeSignedData [12:57:48]FM_MakeSignedData [12:57:48]SAM_PROTO_SignData [12:57:48]wFMCommunicate request_size=4 [12:57:48]MH_SAM_APDU [12:57:48]CAPDU: 80 0D 01 02 [12:57:48]Write to MH i2c: E2 08 00 71 36 80 0D 01 02 00 00 00 00 20 [12:57:48]Write i2c OK [12:57:48]MH_I2C_Read... [12:57:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:57:48]Read from MH i2c: E2 [12:57:48]MH_I2C_Read... [12:57:48]Read from MH i2c: E2 03 00 [12:57:48]MH_I2C_Read... [12:57:48]Read from MH i2c: E2 03 00 71 36 00 90 00 1B [12:57:48]RAPDU: 90 00 [12:57:48]wFMCommunicate OK [12:57:48]wFMCommunicate request_size=255 [12:57:48]MH_SAM_APDU [12:57: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 34 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 D0 BD 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F3 0A 01 00 35 04 06 00 [12:57:48]Write to MH i2c: E2 02 01 72 36 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 34 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 D0 BD 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F3 0A 01 00 35 04 06 00 00 00 AA [12:57:48]Write i2c OK [12:57:48]MH_I2C_Read... [12:57:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:57:48]Read from MH i2c: E2 [12:57:48]MH_I2C_Read... [12:57:48]Read from MH i2c: E2 03 00 [12:57:48]MH_I2C_Read... [12:57:48]Read from MH i2c: E2 03 00 72 36 00 90 00 1C [12:57:48]RAPDU: 90 00 [12:57:48]wFMCommunicate OK [12:57:48]wFMCommunicate request_size=11 [12:57:48]MH_SAM_APDU [12:57:48]CAPDU: 80 0D 02 02 06 6E 7C 0E 2F 8D 64 [12:57:48]Write to MH i2c: E2 0E 00 73 36 80 0D 02 02 06 00 6E 7C 0E 2F 8D 64 00 00 47 [12:57:48]Write i2c OK [12:57:48]MH_I2C_Read... [12:57:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:57:48]Read from MH i2c: E2 [12:57:48]MH_I2C_Read... [12:57:48]Read from MH i2c: E2 03 00 [12:57:48]MH_I2C_Read... [12:57:48]Read from MH i2c: E2 03 00 73 36 00 90 00 1D [12:57:48]RAPDU: 90 00 [12:57:48]wFMCommunicate OK [12:57:48]wFMCommunicate request_size=4 [12:57:48]MH_SAM_APDU [12:57:48]CAPDU: 80 0D 03 02 [12:57:48]Write to MH i2c: E2 08 00 74 36 80 0D 03 02 00 00 00 00 25 [12:57:48]Write i2c OK [12:57:48]MH_I2C_Read... [12:57:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:57:48]Read from MH i2c: E2 [12:57:48]MH_I2C_Read... [12:57:48]Read from MH i2c: E2 0B 00 [12:57:48]MH_I2C_Read... [12:57:48]Read from MH i2c: E2 0B 00 74 36 00 22 F6 30 35 E2 D9 DC 7E 90 00 B8 [12:57:48]RAPDU: 22 F6 30 35 E2 D9 DC 7E 90 00 [12:57:48]wFMCommunicate OK [12:57:48]SAM_PROTO_SignData done [12:57:48]FM_MakeSignedData done [12:57:48]CreateOFDProtocolMessage [12:57:48]wFMCommunicate request_size=4 [12:57:48]MH_SAM_APDU [12:57:48]CAPDU: 80 11 00 00 [12:57:48]Write to MH i2c: E2 08 00 75 36 80 11 00 00 00 00 00 00 25 [12:57:48]Write i2c OK [12:57:48]MH_I2C_Read... [12:57:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:57:48]Read from MH i2c: E2 [12:57:48]MH_I2C_Read... [12:57:48]Read from MH i2c: E2 17 00 [12:57:48]MH_I2C_Read... [12:57:48]Read from MH i2c: E2 17 00 75 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 70 [12:57:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:57:48]wFMCommunicate OK [12:57:48]CreateOFDProtocolMessage done [12:57:48]OFDSenderStorePacket 68339 [12:57:48]StoreOFDPacket docnum=68339 [12:57:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 19 37 08 01 05 4B 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 34 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 D0 BD 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F3 0A 01 00 35 04 06 00 6E 7C 0E 2F 8D 64 22 F6 30 35 E2 D9 DC 7E [12:57:48]CheckFolder [12:57:48]dirname=/storage/ofd_packets [12:57:48]CheckFolder done [12:57:48]ProducePacketName [12:57:48]name=ofd_packets/00068339 [12:57:48]NVStorageSaveData ofd_packets/00068339 [12:57:48]File name is /storage/ofd_packets/00068339 [12:57:48]Write 302 bytes [12:57:48]NVStorageSaveData done [12:57:48]OFDSenderStorePacket done [12:57:48]KKMCreateOFDPacket done [12:57:48]NVStorageSaveData kkm_last_timestamp [12:57:48]File name is /storage/kkm_last_timestamp [12:57:48]Write 4 bytes [12:57:48]NVStorageSaveData done [12:57:48]ExternCall_PrintAddStr [12:57:48]wPrintStart [12:57:48]Write to MH i2c: 01 00 00 76 36 AC [12:57:48]Write i2c OK [12:57:48]MH_I2C_Read... [12:57:48]Read from MH i2c: 01 [12:57:48]MH_I2C_Read... [12:57:48]Read from MH i2c: 01 07 00 [12:57:48]MH_I2C_Read... [12:57:48]Read from MH i2c: 01 07 00 76 36 00 00 00 00 00 FF 0F C1 [12:57:48]RasterBufferAndPrint [12:57:48]line Счет N : (1)706425 [12:57:48]line ИНН: 02508201610067 [12:57:48]line Контрольно-Кассовый Чек [12:57:48]line ПРОДАЖА [12:57:48]line ТРК (МРК, ГНК) : 51 [12:57:48]line Товар: 2710194210 [12:57:48]line ДТ(л)-К-4 [12:57:48]line 6.860 * 72.90 [12:57:48]line = 500.09 [12:57:48]line НДС 12% НСП 1% [12:57:48]line > о реализуемом товаре [12:57:48]line ИТОГО: 500.09 [12:57:48]line НСП 1% : 4.43 [12:57:48]line НДС 12% : 53.11 [12:57:48]line Наличными: 0.00 [12:57:48]line Безнал.: 500.09 [12:57:48]line Место: АЗС № 62 "Партнер Нефть" [12:57:48]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [12:57:48]line СНО: Общий режим [12:57:48]line Чек 85 03.06.2024 12:57 [12:57:48]line Смена: 324 ФФД: 1.0 [12:57:48]line ЗНМ: 0300000181 [12:57:48]line РНМ: 0000000000098096 [12:57:48]line Версия ККМ: 001 [12:57:48]line Платежная система: O! деньги [12:57:48]line ФМ: 0000000000965400 [12:57:48]line ФД: 68339 [12:57:48]line ФПД: 121479092997476 [12:57:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T125752&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68339&fm=121479092997476&tin=02508201610067®Number=0000000000098096&sum=50009 [12:57:48]OFD Sender: Processing packet 68339 [packets to send 26, broken 25] [12:57:48]ProducePacketName [12:57:48]name=ofd_packets/00068339 [12:57:48]OFD Sender: To server: pG, [12:57:48]CommunicateWithHost lk.salyk.kg:30040 [12:57:48]ConnectInit lk.salyk.kg [12:57:48]written 0, free lines is 4095 [12:57:48]Connected sock=7 [12:57:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 19 37 08 01 05 4B 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 34 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 D0 BD 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F3 0A 01 00 35 04 06 00 6E 7C 0E 2F 8D 64 22 F6 30 35 E2 D9 DC 7E [12:57:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 6D D2 47 00 B5 A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F3 0A 01 00 F4 03 04 00 CC 64 5D 66 B6 04 01 00 00 09 44 95 CB E7 2B 69 EF [12:57:49]CommunicateWithHost err = 0 [12:57:49]CheckOFDResponse [12:57:49]1017 (14) - 77093643461234 [12:57:49]1041 (16) - 0000000000965400 [12:57:49]1040 (4) - 68339 [12:57:49]1012 (4) - 03.06.2024 06:38 [12:57:49]1206 (1) - 0 [12:57:49]OFD Sender: Remove packet 68339 [12:57:49]ProducePacketName [12:57:49]name=ofd_packets/00068339 [12:57:49]NVStorageDeleteData [12:57:49]Write to MH i2c: 01 00 00 A0 36 D6 [12:57:49]Write i2c OK [12:57:49]MH_I2C_Read... [12:57:49]Read from MH i2c: 01 [12:57:49]MH_I2C_Read... [12:57:49]Read from MH i2c: 01 07 00 [12:57:49]MH_I2C_Read... [12:57:49]Read from MH i2c: 01 07 00 A0 36 00 00 00 00 00 09 0D F3 [12:57:49]RasterBufferAndPrint [12:57:49]line [12:57:49]line [12:57:49]line [12:57:49]line [12:57:49]line [12:57:49]written 0, free lines is 3362 [12:57:49]MH_Cut [12:57:49]Write to MH i2c: D1 01 00 A7 36 01 AF [12:57:49]Write i2c OK [12:57:49]MH_I2C_Read... [12:57:49]Read from MH i2c: D1 [12:57:49]MH_I2C_Read... [12:57:49]Read from MH i2c: D1 01 00 [12:57:49]MH_I2C_Read... [12:57:49]Read from MH i2c: D1 01 00 A7 36 00 AE [12:57:49]Write to MH i2c: 01 00 00 A8 36 DE [12:57:49]Write i2c OK [12:57:49]MH_I2C_Read... [12:57:49]OFD Sender: No OFD packet to send [12:57:50]*** Cut start [12:57:50]*** Partial cut [12:57:50]*** CUTSNS_PIN = 1 [12:57:50]*** CUTSNS_PIN = 0 [12:57:50]*** Brake cut motor [12:57:50]Read from MH i2c: 01 [12:57:50]MH_I2C_Read... [12:57:50]*** Stop cut motor [12:57:50]*** Cut end [12:57:50]Read from MH i2c: 01 07 00 [12:57:50]MH_I2C_Read... [12:57:50]Read from MH i2c: 01 07 00 A8 36 00 00 00 00 00 FF 0F F3 [12:57:50]process_action close_receipt done [12:57:50]requested_data is exist [12:57:50]produce_requested_data [12:57:50]requested_item fm.sn is exist - process it [12:57:50]wFMCommunicate request_size=4 [12:57:50]MH_SAM_APDU [12:57:50]CAPDU: 80 11 00 00 [12:57:50]Write to MH i2c: E2 08 00 A9 36 80 11 00 00 00 00 00 00 59 [12:57:50]Write i2c OK [12:57:50]MH_I2C_Read... [12:57:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:57:50]Read from MH i2c: E2 [12:57:50]MH_I2C_Read... [12:57:50]Read from MH i2c: E2 17 00 [12:57:50]MH_I2C_Read... [12:57:50]Read from MH i2c: E2 17 00 A9 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 A4 [12:57:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:57:50]wFMCommunicate OK [12:57:50]requested_item fd.num is exist - process it [12:57:50]SAM_PROTO_GetFieldsCounters [12:57:50]wFMCommunicate request_size=4 [12:57:50]MH_SAM_APDU [12:57:50]CAPDU: 80 13 00 00 [12:57:50]Write to MH i2c: E2 08 00 AA 36 80 13 00 00 00 00 00 00 5C [12:57:50]Write i2c OK [12:57:50]MH_I2C_Read... [12:57:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:57:50]Read from MH i2c: E2 [12:57:50]MH_I2C_Read... [12:57:50]Read from MH i2c: E2 62 00 [12:57:50]MH_I2C_Read... [12:57:51]Read from MH i2c: E2 62 00 AA 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 F3 0A 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 BE [12:57:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 F3 0A 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:57:51]wFMCommunicate OK [12:57:51]SAM_PROTO_GetFieldsCounters done [12:57:51]requested_item shift.num is exist - process it [12:57:51]requested_item shift.opened is exist - process it [12:57:51]req_shift_opened [12:57:51]FM_GetShiftState [12:57:51]SAM_PROTO_GetShiftState [12:57:51]wFMCommunicate request_size=4 [12:57:51]MH_SAM_APDU [12:57:51]CAPDU: 80 13 01 00 [12:57:51]Write to MH i2c: E2 08 00 AB 36 80 13 01 00 00 00 00 00 5E [12:57:51]Write i2c OK [12:57:51]MH_I2C_Read... [12:57:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:57:51]Read from MH i2c: E2 [12:57:51]MH_I2C_Read... [12:57:51]Read from MH i2c: E2 0E 00 [12:57:51]MH_I2C_Read... [12:57:51]Read from MH i2c: E2 0E 00 AB 36 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 39 [12:57:51]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [12:57:51]wFMCommunicate OK [12:57:51]SAM_PROTO_GetShiftState done [12:57:51]FM_GetShiftState done [12:57:51]req_shift_opened done [12:57:51]requested_item shift.open_date is exist - process it [12:57:51]req_shift_open_date [12:57:51]req_shift_open_date done [12:57:51]produce_requested_data done [12:57:51]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68339,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [12:57:51]process_action_free close_receipt [12:57:51]json_value_free [12:57:51]json_value_free done [12:57:51]process_json_proto returns [12:57:51]Send response to host [12:57:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68339,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [12:57:51]free response buf [12:57:51]execute_script done [12:57:51]execute_script returns [12:57:51]free content buf [12:57:51]Sock 6.Close socket [12:57:51]Sock 6.Thread stoped [12:57:54]OFD Sender: No OFD packet to send [12:57:59]OFD Sender: No OFD packet to send [12:58:04]OFD Sender: No OFD packet to send [12:58:09]OFD Sender: No OFD packet to send [12:58:14]OFD Sender: No OFD packet to send [12:58:19]OFD Sender: No OFD packet to send [12:58:24]OFD Sender: No OFD packet to send [12:58:29]OFD Sender: No OFD packet to send [12:58:34]OFD Sender: No OFD packet to send [12:58:39]OFD Sender: No OFD packet to send [12:58:44]OFD Sender: No OFD packet to send [12:58:49]OFD Sender: No OFD packet to send [12:58:54]OFD Sender: No OFD packet to send [12:58:59]OFD Sender: No OFD packet to send [12:59:03]accept exits with 5 [12:59:03]New connection [12:59:03]New thread 3066543460 created [12:59:03]Thread 3066686820 joined [12:59:03]Waiting for new connection... [12:59:03] Sock 5.Parse request [12:59:03]Sock 5.Check first char [12:59:03]Sock 5.First char is OK [12:59:03]request: POST /json_proto HTTP/1.0 [12:59:03]Method: POST [12:59:03]URL: /json_proto [12:59:03]Method is POST - this is cgi request [12:59:03]url: /json_proto [12:59:03]query_string will be loaded in cgi processing [12:59:03]execute_cgi json_proto POST (null) [12:59:03]execute_cgi path=json_proto method=POST [12:59:03]POST find Content-Length [12:59:03]Host: 172.17.36.132:8080 [12:59:03]Content-Length: 675 [12:59:03]Content-Type: application/json [12:59:03] [12:59:03]POST finish read [12:59:03]Found Content-Length = 675 [12:59:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706427", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 59.650, "sum" : 4050.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4050.00, "total" : 4050.00, "payments": [ { "type": 0, "sum" : 4050.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:59:03]execute_script... [12:59:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706427", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 59.650, "sum" : 4050.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4050.00, "total" : 4050.00, "payments": [ { "type": 0, "sum" : 4050.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:59:03]POST & json_proto [12:59:03]process_json_proto [12:59:03]json parsed OK: [12:59:03]protocol is kg_v1.0 [12:59:03]action value=close_receipt [12:59:03]process_action close_receipt [12:59:03]cmd_close_receipt [12:59:03]MH_GetDate [12:59:03]Write to MH i2c: F0 00 00 AC 36 D1 [12:59:03]Write i2c OK [12:59:03]MH_I2C_Read... [12:59:03]Read from MH i2c: F0 [12:59:03]MH_I2C_Read... [12:59:03]Read from MH i2c: F0 09 00 [12:59:03]MH_I2C_Read... [12:59:03]Read from MH i2c: F0 09 00 AC 36 00 1C BE 5D 66 B2 22 B0 64 5F [12:59:03]GetLastDocTimeStamp 1717419472 [12:59:03]current date 1717419548 [12:59:03]FM_GetShiftState [12:59:03]SAM_PROTO_GetShiftState [12:59:03]wFMCommunicate request_size=4 [12:59:03]MH_SAM_APDU [12:59:03]CAPDU: 80 13 01 00 [12:59:03]Write to MH i2c: E2 08 00 AD 36 80 13 01 00 00 00 00 00 60 [12:59:03]Write i2c OK [12:59:03]MH_I2C_Read... [12:59:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:59:03]Read from MH i2c: E2 [12:59:03]MH_I2C_Read... [12:59:03]Read from MH i2c: E2 0E 00 [12:59:03]MH_I2C_Read... [12:59:03]Read from MH i2c: E2 0E 00 AD 36 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 3B [12:59:03]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [12:59:03]wFMCommunicate OK [12:59:03]SAM_PROTO_GetShiftState done [12:59:03]FM_GetShiftState done [12:59:03]opened in 1717378033 [12:59:03]opened+sec_in_day 1717464433 [12:59:03]quantity*price = 405023 [12:59:03]sum+1 = 405025 [12:59:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 4050.00 Внесено: 4050.00 СДАЧА: 0.00 НСП 1% : 35.84 НДС 12% : 430.11 Наличными: 4050.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 86 03.06.2024 12:59 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68340 ФПД: 279543340136479 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T125908&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68340&fm=279543340136479&tin=02508201610067®Number=0000000000098096&sum=405000 [12:59:04]StoreToDocumentArchive [12:59:04]shift 324 fd 68340 [12:59:04]save to /storage/0324/doc_00068340 [12:59:04]save last doc name /storage/0324/doc_00068340 to /storage/kkm_last_doc_name [12:59:04]save OK [12:59:04]Clear old archive folders... [12:59:04]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:59:04]tlvbuf is 004CE470 [12:59:04]SAM_PROTO_ClearQueue [12:59:04]wFMCommunicate request_size=4 [12:59:04]MH_SAM_APDU [12:59:04]CAPDU: 80 09 00 00 [12:59:04]Write to MH i2c: E2 08 00 BA 36 80 09 00 00 00 00 00 00 62 [12:59:04]Write i2c OK [12:59:04]MH_I2C_Read... [12:59:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:59:04]Read from MH i2c: E2 [12:59:04]MH_I2C_Read... [12:59:04]Read from MH i2c: E2 03 00 [12:59:04]MH_I2C_Read... [12:59:04]Read from MH i2c: E2 03 00 BA 36 00 90 00 64 [12:59:04]RAPDU: 90 00 [12:59:04]wFMCommunicate OK [12:59:04]SAM_PROTO_ClearQueue done [12:59:04]KKMCreateOFDPacket [12:59:04]OFDProtocolAddRootSTLVToBuf [12:59:04]FM_MakeSignedData [12:59:04]FM_MakeSignedData [12:59:04]SAM_PROTO_SignData [12:59:04]wFMCommunicate request_size=4 [12:59:04]MH_SAM_APDU [12:59:04]CAPDU: 80 0D 01 02 [12:59:04]Write to MH i2c: E2 08 00 BB 36 80 0D 01 02 00 00 00 00 6A [12:59:04]Write i2c OK [12:59:04]MH_I2C_Read... [12:59:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:59:04]Read from MH i2c: E2 [12:59:04]MH_I2C_Read... [12:59:04]Read from MH i2c: E2 03 00 [12:59:04]MH_I2C_Read... [12:59:04]Read from MH i2c: E2 03 00 BB 36 00 90 00 65 [12:59:04]RAPDU: 90 00 [12:59:04]wFMCommunicate OK [12:59:04]wFMCommunicate request_size=255 [12:59:04]MH_SAM_APDU [12:59:04]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 02 E9 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 20 2E 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 2E 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 A8 00 00 00 00 07 04 06 00 08 2E 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 1C BE 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F4 0A 01 00 35 04 06 00 [12:59:04]Write to MH i2c: E2 02 01 BC 36 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 02 E9 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 20 2E 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 2E 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 A8 00 00 00 00 07 04 06 00 08 2E 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 1C BE 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F4 0A 01 00 35 04 06 00 00 00 E4 [12:59:04]Write i2c OK [12:59:04]MH_I2C_Read... [12:59:04]OFD Sender: No OFD packet to send [12:59:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:59:05]Read from MH i2c: E2 [12:59:05]MH_I2C_Read... [12:59:05]Read from MH i2c: E2 03 00 [12:59:05]MH_I2C_Read... [12:59:05]Read from MH i2c: E2 03 00 BC 36 00 90 00 66 [12:59:05]RAPDU: 90 00 [12:59:05]wFMCommunicate OK [12:59:05]wFMCommunicate request_size=11 [12:59:05]MH_SAM_APDU [12:59:05]CAPDU: 80 0D 02 02 06 FE 3E 41 7C F8 1F [12:59:05]Write to MH i2c: E2 0E 00 BD 36 80 0D 02 02 06 00 FE 3E 41 7C F8 1F 00 00 89 [12:59:05]Write i2c OK [12:59:05]MH_I2C_Read... [12:59:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:59:05]Read from MH i2c: E2 [12:59:05]MH_I2C_Read... [12:59:05]Read from MH i2c: E2 03 00 [12:59:05]MH_I2C_Read... [12:59:05]Read from MH i2c: E2 03 00 BD 36 00 90 00 67 [12:59:05]RAPDU: 90 00 [12:59:05]wFMCommunicate OK [12:59:05]wFMCommunicate request_size=4 [12:59:05]MH_SAM_APDU [12:59:05]CAPDU: 80 0D 03 02 [12:59:05]Write to MH i2c: E2 08 00 BE 36 80 0D 03 02 00 00 00 00 6F [12:59:05]Write i2c OK [12:59:05]MH_I2C_Read... [12:59:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:59:05]Read from MH i2c: E2 [12:59:05]MH_I2C_Read... [12:59:05]Read from MH i2c: E2 0B 00 [12:59:05]MH_I2C_Read... [12:59:05]Read from MH i2c: E2 0B 00 BE 36 00 FE EA D8 C1 5F C8 BB 77 90 00 4A [12:59:05]RAPDU: FE EA D8 C1 5F C8 BB 77 90 00 [12:59:05]wFMCommunicate OK [12:59:05]SAM_PROTO_SignData done [12:59:05]FM_MakeSignedData done [12:59:05]CreateOFDProtocolMessage [12:59:05]wFMCommunicate request_size=4 [12:59:05]MH_SAM_APDU [12:59:05]CAPDU: 80 11 00 00 [12:59:05]Write to MH i2c: E2 08 00 BF 36 80 11 00 00 00 00 00 00 6F [12:59:05]Write i2c OK [12:59:05]MH_I2C_Read... [12:59:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:59:05]Read from MH i2c: E2 [12:59:05]MH_I2C_Read... [12:59:05]Read from MH i2c: E2 17 00 [12:59:05]MH_I2C_Read... [12:59:05]Read from MH i2c: E2 17 00 BF 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 BA [12:59:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:59:05]wFMCommunicate OK [12:59:05]CreateOFDProtocolMessage done [12:59:05]OFDSenderStorePacket 68340 [12:59:05]StoreOFDPacket docnum=68340 [12:59:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 B7 3C 08 01 60 26 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 02 E9 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 20 2E 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 2E 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 A8 00 00 00 00 07 04 06 00 08 2E 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 1C BE 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F4 0A 01 00 35 04 06 00 FE 3E 41 7C F8 1F FE EA D8 C1 5F C8 BB 77 [12:59:05]CheckFolder [12:59:05]dirname=/storage/ofd_packets [12:59:05]CheckFolder done [12:59:05]ProducePacketName [12:59:05]name=ofd_packets/00068340 [12:59:05]NVStorageSaveData ofd_packets/00068340 [12:59:05]File name is /storage/ofd_packets/00068340 [12:59:05]Write 302 bytes [12:59:05]NVStorageSaveData done [12:59:05]OFDSenderStorePacket done [12:59:05]KKMCreateOFDPacket done [12:59:05]NVStorageSaveData kkm_last_timestamp [12:59:05]File name is /storage/kkm_last_timestamp [12:59:05]Write 4 bytes [12:59:05]NVStorageSaveData done [12:59:05]ExternCall_PrintAddStr [12:59:05]wPrintStart [12:59:05]Write to MH i2c: 01 00 00 C0 36 F6 [12:59:05]Write i2c OK [12:59:05]MH_I2C_Read... [12:59:05]Read from MH i2c: 01 [12:59:05]MH_I2C_Read... [12:59:05]Read from MH i2c: 01 07 00 [12:59:05]MH_I2C_Read... [12:59:05]Read from MH i2c: 01 07 00 C0 36 00 00 00 00 00 FF 0F 0B [12:59:05]RasterBufferAndPrint [12:59:05]line Счет N : (1)706427 [12:59:05]line ИНН: 02508201610067 [12:59:05]line Контрольно-Кассовый Чек [12:59:05]line ПРОДАЖА [12:59:05]line ТРК (МРК, ГНК) : 41 [12:59:05]line Товар: 2710124130 [12:59:05]line Super-92-К-5 [12:59:05]line 59.650 * 67.90 [12:59:05]line = 4050.24 [12:59:05]line НДС 12% НСП 1% [12:59:05]line > о реализуемом товаре [12:59:05]line ОКРУГЛЕНИЕ: -0.24 [12:59:05]line ИТОГО: 4050.00 [12:59:05]line Внесено: 4050.00 [12:59:05]line СДАЧА: 0.00 [12:59:05]line НСП 1% : 35.84 [12:59:05]line НДС 12% : 430.11 [12:59:05]line Наличными: 4050.00 [12:59:05]line Безнал.: 0.00 [12:59:05]line Место: АЗС № 62 "Партнер Нефть" [12:59:05]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [12:59:05]line СНО: Общий режим [12:59:05]line Чек 86 03.06.2024 12:59 [12:59:05]line Смена: 324 ФФД: 1.0 [12:59:05]line ЗНМ: 0300000181 [12:59:05]line РНМ: 0000000000098096 [12:59:05]line Версия ККМ: 001 [12:59:05]line ФМ: 0000000000965400 [12:59:05]line ФД: 68340 [12:59:05]line ФПД: 279543340136479 [12:59:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T125908&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68340&fm=279543340136479&tin=02508201610067®Number=0000000000098096&sum=405000 [12:59:05]OFD Sender: Processing packet 68340 [packets to send 26, broken 25] [12:59:05]ProducePacketName [12:59:05]name=ofd_packets/00068340 [12:59:05]OFD Sender: To server: pG, [12:59:05]CommunicateWithHost lk.salyk.kg:30040 [12:59:05]ConnectInit lk.salyk.kg [12:59:05]written 0, free lines is 4095 [12:59:05]Connected sock=7 [12:59:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 B7 3C 08 01 60 26 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 02 E9 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 20 2E 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 2E 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 A8 00 00 00 00 07 04 06 00 08 2E 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 1C BE 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F4 0A 01 00 35 04 06 00 FE 3E 41 7C F8 1F FE EA D8 C1 5F C8 BB 77 [12:59:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 7D DF 47 00 4C 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F4 0A 01 00 F4 03 04 00 18 65 5D 66 B6 04 01 00 00 2B F7 A9 34 58 5C 8F 1E [12:59:05]CommunicateWithHost err = 0 [12:59:05]CheckOFDResponse [12:59:05]1017 (14) - 77093643461234 [12:59:05]1041 (16) - 0000000000965400 [12:59:05]1040 (4) - 68340 [12:59:05]1012 (4) - 03.06.2024 06:39 [12:59:05]1206 (1) - 0 [12:59:05]OFD Sender: Remove packet 68340 [12:59:05]ProducePacketName [12:59:05]name=ofd_packets/00068340 [12:59:05]NVStorageDeleteData [12:59:06]Write to MH i2c: 01 00 00 EB 36 21 [12:59:06]Write i2c OK [12:59:06]MH_I2C_Read... [12:59:06]Read from MH i2c: 01 [12:59:06]MH_I2C_Read... [12:59:06]Read from MH i2c: 01 07 00 [12:59:06]MH_I2C_Read... [12:59:06]Read from MH i2c: 01 07 00 EB 36 00 00 00 00 00 E4 0C 18 [12:59:06]RasterBufferAndPrint [12:59:06]line [12:59:06]line [12:59:06]line [12:59:06]line [12:59:06]line [12:59:06]written 0, free lines is 3306 [12:59:06]MH_Cut [12:59:06]Write to MH i2c: D1 01 00 F2 36 01 FA [12:59:06]Write i2c OK [12:59:06]MH_I2C_Read... [12:59:06]Read from MH i2c: D1 [12:59:06]MH_I2C_Read... [12:59:06]Read from MH i2c: D1 01 00 [12:59:06]MH_I2C_Read... [12:59:06]Read from MH i2c: D1 01 00 F2 36 00 F9 [12:59:06]Write to MH i2c: 01 00 00 F3 36 29 [12:59:06]Write i2c OK [12:59:06]MH_I2C_Read... [12:59:06]OFD Sender: No OFD packet to send [12:59:06]*** Cut start [12:59:06]*** Partial cut [12:59:06]*** CUTSNS_PIN = 1 [12:59:06]*** CUTSNS_PIN = 0 [12:59:07]*** Brake cut motor [12:59:07]Read from MH i2c: 01 [12:59:07]MH_I2C_Read... [12:59:07]*** Stop cut motor [12:59:07]*** Cut end [12:59:07]Read from MH i2c: 01 07 00 [12:59:07]MH_I2C_Read... [12:59:07]Read from MH i2c: 01 07 00 F3 36 00 00 00 00 00 FF 0F 3E [12:59:07]process_action close_receipt done [12:59:07]requested_data is exist [12:59:07]produce_requested_data [12:59:07]requested_item fm.sn is exist - process it [12:59:07]wFMCommunicate request_size=4 [12:59:07]MH_SAM_APDU [12:59:07]CAPDU: 80 11 00 00 [12:59:07]Write to MH i2c: E2 08 00 F4 36 80 11 00 00 00 00 00 00 A4 [12:59:07]Write i2c OK [12:59:07]MH_I2C_Read... [12:59:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:59:07]Read from MH i2c: E2 [12:59:07]MH_I2C_Read... [12:59:07]Read from MH i2c: E2 17 00 [12:59:07]MH_I2C_Read... [12:59:07]Read from MH i2c: E2 17 00 F4 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 EF [12:59:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [12:59:07]wFMCommunicate OK [12:59:07]requested_item fd.num is exist - process it [12:59:07]SAM_PROTO_GetFieldsCounters [12:59:07]wFMCommunicate request_size=4 [12:59:07]MH_SAM_APDU [12:59:07]CAPDU: 80 13 00 00 [12:59:07]Write to MH i2c: E2 08 00 F5 36 80 13 00 00 00 00 00 00 A7 [12:59:07]Write i2c OK [12:59:07]MH_I2C_Read... [12:59:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:59:07]Read from MH i2c: E2 [12:59:07]MH_I2C_Read... [12:59:07]Read from MH i2c: E2 62 00 [12:59:07]MH_I2C_Read... [12:59:07]Read from MH i2c: E2 62 00 F5 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 F4 0A 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 0D [12:59:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 F4 0A 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:59:07]wFMCommunicate OK [12:59:07]SAM_PROTO_GetFieldsCounters done [12:59:07]requested_item shift.num is exist - process it [12:59:07]requested_item shift.opened is exist - process it [12:59:07]req_shift_opened [12:59:07]FM_GetShiftState [12:59:07]SAM_PROTO_GetShiftState [12:59:07]wFMCommunicate request_size=4 [12:59:07]MH_SAM_APDU [12:59:07]CAPDU: 80 13 01 00 [12:59:07]Write to MH i2c: E2 08 00 F6 36 80 13 01 00 00 00 00 00 A9 [12:59:07]Write i2c OK [12:59:07]MH_I2C_Read... [12:59:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:59:07]Read from MH i2c: E2 [12:59:07]MH_I2C_Read... [12:59:07]Read from MH i2c: E2 0E 00 [12:59:07]MH_I2C_Read... [12:59:07]Read from MH i2c: E2 0E 00 F6 36 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 84 [12:59:07]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [12:59:07]wFMCommunicate OK [12:59:07]SAM_PROTO_GetShiftState done [12:59:07]FM_GetShiftState done [12:59:07]req_shift_opened done [12:59:07]requested_item shift.open_date is exist - process it [12:59:07]req_shift_open_date [12:59:07]req_shift_open_date done [12:59:07]produce_requested_data done [12:59:07]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68340,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [12:59:07]process_action_free close_receipt [12:59:07]json_value_free [12:59:07]json_value_free done [12:59:07]process_json_proto returns [12:59:07]Send response to host [12:59:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68340,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [12:59:07]free response buf [12:59:07]execute_script done [12:59:07]execute_script returns [12:59:07]free content buf [12:59:07]Sock 5.Close socket [12:59:07]Sock 5.Thread stoped [12:59:11]OFD Sender: No OFD packet to send [12:59:16]OFD Sender: No OFD packet to send [12:59:21]OFD Sender: No OFD packet to send [12:59:26]OFD Sender: No OFD packet to send [12:59:31]OFD Sender: No OFD packet to send [12:59:36]OFD Sender: No OFD packet to send [12:59:41]OFD Sender: No OFD packet to send [12:59:46]OFD Sender: No OFD packet to send [12:59:51]OFD Sender: No OFD packet to send [12:59:56]OFD Sender: No OFD packet to send [13:00:01]OFD Sender: No OFD packet to send [13:00:06]OFD Sender: No OFD packet to send [13:00:11]OFD Sender: No OFD packet to send [13:00:16]OFD Sender: No OFD packet to send [13:00:21]OFD Sender: No OFD packet to send [13:00:26]OFD Sender: No OFD packet to send [13:00:31]OFD Sender: No OFD packet to send [13:00:36]OFD Sender: No OFD packet to send [13:00:41]OFD Sender: No OFD packet to send [13:00:46]OFD Sender: No OFD packet to send [13:00:51]OFD Sender: No OFD packet to send [13:00:56]OFD Sender: No OFD packet to send [13:01:01]OFD Sender: No OFD packet to send [13:01:06]OFD Sender: No OFD packet to send [13:01:11]OFD Sender: No OFD packet to send [13:01:16]OFD Sender: No OFD packet to send [13:01:21]OFD Sender: No OFD packet to send [13:01:26]OFD Sender: No OFD packet to send [13:01:31]OFD Sender: No OFD packet to send [13:01:36]OFD Sender: No OFD packet to send [13:01:41]OFD Sender: No OFD packet to send [13:01:46]OFD Sender: No OFD packet to send [13:01:51]OFD Sender: No OFD packet to send [13:01:56]OFD Sender: No OFD packet to send [13:02:01]OFD Sender: No OFD packet to send [13:02:06]OFD Sender: No OFD packet to send [13:02:11]OFD Sender: No OFD packet to send [13:02:16]OFD Sender: No OFD packet to send [13:02:21]OFD Sender: No OFD packet to send [13:02:26]OFD Sender: No OFD packet to send [13:02:31]OFD Sender: No OFD packet to send [13:02:36]OFD Sender: No OFD packet to send [13:02:41]OFD Sender: No OFD packet to send [13:02:46]OFD Sender: No OFD packet to send [13:02:51]OFD Sender: No OFD packet to send [13:02:56]OFD Sender: No OFD packet to send [13:03:01]OFD Sender: No OFD packet to send [13:03:06]OFD Sender: No OFD packet to send [13:03:11]OFD Sender: No OFD packet to send [13:03:16]OFD Sender: No OFD packet to send [13:03:21]OFD Sender: No OFD packet to send [13:03:26]OFD Sender: No OFD packet to send [13:03:31]OFD Sender: No OFD packet to send [13:03:36]OFD Sender: No OFD packet to send [13:03:41]OFD Sender: No OFD packet to send [13:03:46]OFD Sender: No OFD packet to send [13:03:51]OFD Sender: No OFD packet to send [13:03:56]OFD Sender: No OFD packet to send [13:04:01]OFD Sender: No OFD packet to send [13:04:06]OFD Sender: No OFD packet to send [13:04:11]OFD Sender: No OFD packet to send [13:04:16]OFD Sender: No OFD packet to send [13:04:21]OFD Sender: No OFD packet to send [13:04:26]OFD Sender: No OFD packet to send [13:04:31]OFD Sender: No OFD packet to send [13:04:36]OFD Sender: No OFD packet to send [13:04:41]OFD Sender: No OFD packet to send [13:04:46]OFD Sender: No OFD packet to send [13:04:51]OFD Sender: No OFD packet to send [13:04:56]OFD Sender: No OFD packet to send [13:05:01]OFD Sender: No OFD packet to send [13:05:06]OFD Sender: No OFD packet to send [13:05:11]OFD Sender: No OFD packet to send [13:05:16]OFD Sender: No OFD packet to send [13:05:21]OFD Sender: No OFD packet to send [13:05:26]OFD Sender: No OFD packet to send [13:05:31]OFD Sender: No OFD packet to send [13:05:36]OFD Sender: No OFD packet to send [13:05:41]OFD Sender: No OFD packet to send [13:05:46]OFD Sender: No OFD packet to send [13:05:51]OFD Sender: No OFD packet to send [13:05:56]OFD Sender: No OFD packet to send [13:06:01]OFD Sender: No OFD packet to send [13:06:06]OFD Sender: No OFD packet to send [13:06:11]OFD Sender: No OFD packet to send [13:06:16]OFD Sender: No OFD packet to send [13:06:21]OFD Sender: No OFD packet to send [13:06:24]accept exits with 6 [13:06:24]New connection [13:06:24]New thread 3066686820 created [13:06:24]Thread 3066543460 joined [13:06:24]Waiting for new connection... [13:06:24] Sock 6.Parse request [13:06:24]Sock 6.Check first char [13:06:24]Sock 6.First char is OK [13:06:24]request: POST /json_proto HTTP/1.0 [13:06:24]Method: POST [13:06:24]URL: /json_proto [13:06:24]Method is POST - this is cgi request [13:06:24]url: /json_proto [13:06:24]query_string will be loaded in cgi processing [13:06:24]execute_cgi json_proto POST (null) [13:06:24]execute_cgi path=json_proto method=POST [13:06:24]POST find Content-Length [13:06:24]Host: 172.17.36.132:8080 [13:06:24]Content-Length: 656 [13:06:24]Content-Type: application/json [13:06:24] [13:06:24]POST finish read [13:06:24]Found Content-Length = 656 [13:06:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706428", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 20.000, "sum" : 1358.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "payments": [ { "type": 0, "sum" : 1358.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:06:24]execute_script... [13:06: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)706428", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 20.000, "sum" : 1358.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "payments": [ { "type": 0, "sum" : 1358.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:06:24]POST & json_proto [13:06:24]process_json_proto [13:06:24]json parsed OK: [13:06:24]protocol is kg_v1.0 [13:06:24]action value=close_receipt [13:06:24]process_action close_receipt [13:06:24]cmd_close_receipt [13:06:24]MH_GetDate [13:06:24]Write to MH i2c: F0 00 00 F7 36 1C [13:06:24]Write i2c OK [13:06:24]MH_I2C_Read... [13:06:24]Read from MH i2c: F0 [13:06:24]MH_I2C_Read... [13:06:24]Read from MH i2c: F0 09 00 [13:06:24]MH_I2C_Read... [13:06:24]Read from MH i2c: F0 09 00 F7 36 00 D5 BF 5D 66 B2 22 B0 64 64 [13:06:24]GetLastDocTimeStamp 1717419548 [13:06:24]current date 1717419989 [13:06:24]FM_GetShiftState [13:06:24]SAM_PROTO_GetShiftState [13:06:24]wFMCommunicate request_size=4 [13:06:24]MH_SAM_APDU [13:06:24]CAPDU: 80 13 01 00 [13:06:24]Write to MH i2c: E2 08 00 F8 36 80 13 01 00 00 00 00 00 AB [13:06:24]Write i2c OK [13:06:24]MH_I2C_Read... [13:06:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:06:24]Read from MH i2c: E2 [13:06:24]MH_I2C_Read... [13:06:24]Read from MH i2c: E2 0E 00 [13:06:24]MH_I2C_Read... [13:06:24]Read from MH i2c: E2 0E 00 F8 36 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 86 [13:06:24]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [13:06:24]wFMCommunicate OK [13:06:24]SAM_PROTO_GetShiftState done [13:06:24]FM_GetShiftState done [13:06:24]opened in 1717378033 [13:06:24]opened+sec_in_day 1717464433 [13:06:24]quantity*price = 135800 [13:06:24]sum+1 = 135801 [13:06:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1358.00 Внесено: 2000.00 СДАЧА: 642.00 НСП 1% : 12.02 НДС 12% : 144.21 Наличными: 1358.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 87 03.06.2024 13:06 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68341 ФПД: 91520490721141 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T130629&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68341&fm=91520490721141&tin=02508201610067®Number=0000000000098096&sum=135800 [13:06:25]StoreToDocumentArchive [13:06:25]shift 324 fd 68341 [13:06:25]save to /storage/0324/doc_00068341 [13:06:25]save last doc name /storage/0324/doc_00068341 to /storage/kkm_last_doc_name [13:06:25]save OK [13:06:25]Clear old archive folders... [13:06:25]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:06:25]tlvbuf is 004D99D0 [13:06:25]SAM_PROTO_ClearQueue [13:06:25]wFMCommunicate request_size=4 [13:06:25]MH_SAM_APDU [13:06:25]CAPDU: 80 09 00 00 [13:06:25]Write to MH i2c: E2 08 00 05 37 80 09 00 00 00 00 00 00 AE [13:06:25]Write i2c OK [13:06:25]MH_I2C_Read... [13:06:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:06:25]Read from MH i2c: E2 [13:06:25]MH_I2C_Read... [13:06:25]Read from MH i2c: E2 03 00 [13:06:25]MH_I2C_Read... [13:06:25]Read from MH i2c: E2 03 00 05 37 00 90 00 B0 [13:06:25]RAPDU: 90 00 [13:06:25]wFMCommunicate OK [13:06:25]SAM_PROTO_ClearQueue done [13:06:25]KKMCreateOFDPacket [13:06:25]OFDProtocolAddRootSTLVToBuf [13:06:25]FM_MakeSignedData [13:06:25]FM_MakeSignedData [13:06:25]SAM_PROTO_SignData [13:06:25]wFMCommunicate request_size=4 [13:06:25]MH_SAM_APDU [13:06:25]CAPDU: 80 0D 01 02 [13:06:25]Write to MH i2c: E2 08 00 06 37 80 0D 01 02 00 00 00 00 B6 [13:06:25]Write i2c OK [13:06:25]MH_I2C_Read... [13:06:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:06:25]Read from MH i2c: E2 [13:06:25]MH_I2C_Read... [13:06:25]Read from MH i2c: E2 03 00 [13:06:25]MH_I2C_Read... [13:06:25]Read from MH i2c: E2 03 00 06 37 00 90 00 B1 [13:06:25]RAPDU: 90 00 [13:06:25]wFMCommunicate OK [13:06:25]wFMCommunicate request_size=255 [13:06:25]MH_SAM_APDU [13:06: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 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 78 12 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 12 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 38 00 00 00 00 07 04 06 00 78 12 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 D5 BF 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F5 0A 01 00 35 04 06 00 [13:06:25]Write to MH i2c: E2 02 01 07 37 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 78 12 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 12 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 38 00 00 00 00 07 04 06 00 78 12 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 D5 BF 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F5 0A 01 00 35 04 06 00 00 00 D1 [13:06:25]Write i2c OK [13:06:25]MH_I2C_Read... [13:06:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:06:26]Read from MH i2c: E2 [13:06:26]MH_I2C_Read... [13:06:26]Read from MH i2c: E2 03 00 [13:06:26]MH_I2C_Read... [13:06:26]Read from MH i2c: E2 03 00 07 37 00 90 00 B2 [13:06:26]RAPDU: 90 00 [13:06:26]wFMCommunicate OK [13:06:26]wFMCommunicate request_size=11 [13:06:26]MH_SAM_APDU [13:06:26]CAPDU: 80 0D 02 02 06 53 3C C6 56 CF 75 [13:06:26]Write to MH i2c: E2 0E 00 08 37 80 0D 02 02 06 00 53 3C C6 56 CF 75 00 00 B4 [13:06:26]Write i2c OK [13:06:26]MH_I2C_Read... [13:06:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:06:26]Read from MH i2c: E2 [13:06:26]MH_I2C_Read... [13:06:26]Read from MH i2c: E2 03 00 [13:06:26]MH_I2C_Read... [13:06:26]Read from MH i2c: E2 03 00 08 37 00 90 00 B3 [13:06:26]RAPDU: 90 00 [13:06:26]wFMCommunicate OK [13:06:26]wFMCommunicate request_size=4 [13:06:26]MH_SAM_APDU [13:06:26]CAPDU: 80 0D 03 02 [13:06:26]Write to MH i2c: E2 08 00 09 37 80 0D 03 02 00 00 00 00 BB [13:06:26]Write i2c OK [13:06:26]MH_I2C_Read... [13:06:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:06:26]Read from MH i2c: E2 [13:06:26]MH_I2C_Read... [13:06:26]Read from MH i2c: E2 0B 00 [13:06:26]MH_I2C_Read... [13:06:26]Read from MH i2c: E2 0B 00 09 37 00 97 71 80 56 2B 34 D6 3A 90 00 09 [13:06:26]RAPDU: 97 71 80 56 2B 34 D6 3A 90 00 [13:06:26]wFMCommunicate OK [13:06:26]SAM_PROTO_SignData done [13:06:26]FM_MakeSignedData done [13:06:26]CreateOFDProtocolMessage [13:06:26]wFMCommunicate request_size=4 [13:06:26]MH_SAM_APDU [13:06:26]CAPDU: 80 11 00 00 [13:06:26]Write to MH i2c: E2 08 00 0A 37 80 11 00 00 00 00 00 00 BB [13:06:26]Write i2c OK [13:06:26]MH_I2C_Read... [13:06:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:06:26]Read from MH i2c: E2 [13:06:26]MH_I2C_Read... [13:06:26]Read from MH i2c: E2 17 00 [13:06:26]MH_I2C_Read... [13:06:26]Read from MH i2c: E2 17 00 0A 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 06 [13:06:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [13:06:26]wFMCommunicate OK [13:06:26]CreateOFDProtocolMessage done [13:06:26]OFDSenderStorePacket 68341 [13:06:26]StoreOFDPacket docnum=68341 [13:06:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 DF 76 08 01 F3 98 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 78 12 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 12 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 38 00 00 00 00 07 04 06 00 78 12 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 D5 BF 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F5 0A 01 00 35 04 06 00 53 3C C6 56 CF 75 97 71 80 56 2B 34 D6 3A [13:06:26]CheckFolder [13:06:26]dirname=/storage/ofd_packets [13:06:26]CheckFolder done [13:06:26]ProducePacketName [13:06:26]name=ofd_packets/00068341 [13:06:26]NVStorageSaveData ofd_packets/00068341 [13:06:26]File name is /storage/ofd_packets/00068341 [13:06:26]Write 302 bytes [13:06:26]NVStorageSaveData done [13:06:26]OFDSenderStorePacket done [13:06:26]KKMCreateOFDPacket done [13:06:26]NVStorageSaveData kkm_last_timestamp [13:06:26]File name is /storage/kkm_last_timestamp [13:06:26]Write 4 bytes [13:06:26]NVStorageSaveData done [13:06:26]ExternCall_PrintAddStr [13:06:26]wPrintStart [13:06:26]Write to MH i2c: 01 00 00 0B 37 42 [13:06:26]Write i2c OK [13:06:26]MH_I2C_Read... [13:06:26]Read from MH i2c: 01 [13:06:26]MH_I2C_Read... [13:06:26]Read from MH i2c: 01 07 00 [13:06:26]MH_I2C_Read... [13:06:26]Read from MH i2c: 01 07 00 0B 37 00 00 00 00 00 FF 0F 57 [13:06:26]RasterBufferAndPrint [13:06:26]line Счет N : (1)706428 [13:06:26]line ИНН: 02508201610067 [13:06:26]line Контрольно-Кассовый Чек [13:06:26]line ПРОДАЖА [13:06:26]line ТРК (МРК, ГНК) : 52 [13:06:26]line Товар: 2710124130 [13:06:26]line Super-92-К-5 [13:06:26]line 20.000 * 67.90 [13:06:26]line = 1358.00 [13:06:26]line НДС 12% НСП 1% [13:06:26]line > о реализуемом товаре [13:06:26]line ИТОГО: 1358.00 [13:06:26]line Внесено: 2000.00 [13:06:26]line СДАЧА: 642.00 [13:06:26]line НСП 1% : 12.02 [13:06:26]line НДС 12% : 144.21 [13:06:26]line Наличными: 1358.00 [13:06:26]line Безнал.: 0.00 [13:06:26]line Место: АЗС № 62 "Партнер Нефть" [13:06:26]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [13:06:26]line СНО: Общий режим [13:06:26]line Чек 87 03.06.2024 13:06 [13:06:26]line Смена: 324 ФФД: 1.0 [13:06:26]line ЗНМ: 0300000181 [13:06:26]line РНМ: 0000000000098096 [13:06:26]line Версия ККМ: 001 [13:06:26]line ФМ: 0000000000965400 [13:06:26]line ФД: 68341 [13:06:26]line ФПД: 91520490721141 [13:06:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T130629&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68341&fm=91520490721141&tin=02508201610067®Number=0000000000098096&sum=135800 [13:06:26]OFD Sender: Processing packet 68341 [packets to send 26, broken 25] [13:06:26]ProducePacketName [13:06:26]name=ofd_packets/00068341 [13:06:26]OFD Sender: To server: pG, [13:06:26]CommunicateWithHost lk.salyk.kg:30040 [13:06:26]ConnectInit lk.salyk.kg [13:06:26]written 0, free lines is 4095 [13:06:26]Connected sock=7 [13:06:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 DF 76 08 01 F3 98 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 78 12 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 12 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 38 00 00 00 00 07 04 06 00 78 12 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 D5 BF 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F5 0A 01 00 35 04 06 00 53 3C C6 56 CF 75 97 71 80 56 2B 34 D6 3A [13:06:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 79 C3 47 00 DF 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F5 0A 01 00 F4 03 04 00 D1 66 5D 66 B6 04 01 00 00 38 D9 B1 CE 5C DA 09 3C [13:06:26]CommunicateWithHost err = 0 [13:06:26]CheckOFDResponse [13:06:26]1017 (14) - 77093643461234 [13:06:26]1041 (16) - 0000000000965400 [13:06:26]1040 (4) - 68341 [13:06:26]1012 (4) - 03.06.2024 06:46 [13:06:26]1206 (1) - 0 [13:06:26]OFD Sender: Remove packet 68341 [13:06:26]ProducePacketName [13:06:26]name=ofd_packets/00068341 [13:06:26]NVStorageDeleteData [13:06:26]Write to MH i2c: 01 00 00 35 37 6C [13:06:26]Write i2c OK [13:06:26]MH_I2C_Read... [13:06:26]Read from MH i2c: 01 [13:06:26]MH_I2C_Read... [13:06:26]Read from MH i2c: 01 07 00 [13:06:26]MH_I2C_Read... [13:06:26]Read from MH i2c: 01 07 00 35 37 00 00 00 00 00 E8 0C 67 [13:06:26]RasterBufferAndPrint [13:06:26]line [13:06:26]line [13:06:26]line [13:06:26]line [13:06:26]line [13:06:26]written 0, free lines is 3311 [13:06:26]MH_Cut [13:06:26]Write to MH i2c: D1 01 00 3C 37 01 45 [13:06:26]Write i2c OK [13:06:26]MH_I2C_Read... [13:06:26]Read from MH i2c: D1 [13:06:26]MH_I2C_Read... [13:06:26]Read from MH i2c: D1 01 00 [13:06:26]MH_I2C_Read... [13:06:26]Read from MH i2c: D1 01 00 3C 37 00 44 [13:06:26]Write to MH i2c: 01 00 00 3D 37 74 [13:06:26]Write i2c OK [13:06:26]MH_I2C_Read... [13:06:27]OFD Sender: No OFD packet to send [13:06:27]*** Cut start [13:06:27]*** Partial cut [13:06:27]*** CUTSNS_PIN = 1 [13:06:27]*** CUTSNS_PIN = 0 [13:06:28]*** Brake cut motor [13:06:28]Read from MH i2c: 01 [13:06:28]MH_I2C_Read... [13:06:28]*** Stop cut motor [13:06:28]*** Cut end [13:06:28]Read from MH i2c: 01 07 00 [13:06:28]MH_I2C_Read... [13:06:28]Read from MH i2c: 01 07 00 3D 37 00 00 00 00 00 FF 0F 89 [13:06:28]process_action close_receipt done [13:06:28]requested_data is exist [13:06:28]produce_requested_data [13:06:28]requested_item fm.sn is exist - process it [13:06:28]wFMCommunicate request_size=4 [13:06:28]MH_SAM_APDU [13:06:28]CAPDU: 80 11 00 00 [13:06:28]Write to MH i2c: E2 08 00 3E 37 80 11 00 00 00 00 00 00 EF [13:06:28]Write i2c OK [13:06:28]MH_I2C_Read... [13:06:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:06:28]Read from MH i2c: E2 [13:06:28]MH_I2C_Read... [13:06:28]Read from MH i2c: E2 17 00 [13:06:28]MH_I2C_Read... [13:06:28]Read from MH i2c: E2 17 00 3E 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 3A [13:06:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [13:06:28]wFMCommunicate OK [13:06:28]requested_item fd.num is exist - process it [13:06:28]SAM_PROTO_GetFieldsCounters [13:06:28]wFMCommunicate request_size=4 [13:06:28]MH_SAM_APDU [13:06:28]CAPDU: 80 13 00 00 [13:06:28]Write to MH i2c: E2 08 00 3F 37 80 13 00 00 00 00 00 00 F2 [13:06:28]Write i2c OK [13:06:28]MH_I2C_Read... [13:06:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:06:28]Read from MH i2c: E2 [13:06:28]MH_I2C_Read... [13:06:28]Read from MH i2c: E2 62 00 [13:06:28]MH_I2C_Read... [13:06:28]Read from MH i2c: E2 62 00 3F 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 F5 0A 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 5C [13:06:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 F5 0A 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:06:28]wFMCommunicate OK [13:06:28]SAM_PROTO_GetFieldsCounters done [13:06:28]requested_item shift.num is exist - process it [13:06:28]requested_item shift.opened is exist - process it [13:06:28]req_shift_opened [13:06:28]FM_GetShiftState [13:06:28]SAM_PROTO_GetShiftState [13:06:28]wFMCommunicate request_size=4 [13:06:28]MH_SAM_APDU [13:06:28]CAPDU: 80 13 01 00 [13:06:28]Write to MH i2c: E2 08 00 40 37 80 13 01 00 00 00 00 00 F4 [13:06:28]Write i2c OK [13:06:28]MH_I2C_Read... [13:06:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:06:28]Read from MH i2c: E2 [13:06:28]MH_I2C_Read... [13:06:28]Read from MH i2c: E2 0E 00 [13:06:28]MH_I2C_Read... [13:06:28]Read from MH i2c: E2 0E 00 40 37 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 CF [13:06:28]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [13:06:28]wFMCommunicate OK [13:06:28]SAM_PROTO_GetShiftState done [13:06:28]FM_GetShiftState done [13:06:28]req_shift_opened done [13:06:28]requested_item shift.open_date is exist - process it [13:06:28]req_shift_open_date [13:06:28]req_shift_open_date done [13:06:28]produce_requested_data done [13:06:28]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68341,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [13:06:28]process_action_free close_receipt [13:06:28]json_value_free [13:06:28]json_value_free done [13:06:28]process_json_proto returns [13:06:28]Send response to host [13:06:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68341,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [13:06:28]free response buf [13:06:28]execute_script done [13:06:28]execute_script returns [13:06:28]free content buf [13:06:28]Sock 6.Close socket [13:06:28]Sock 6.Thread stoped [13:06:32]OFD Sender: No OFD packet to send [13:06:37]OFD Sender: No OFD packet to send [13:06:42]OFD Sender: No OFD packet to send [13:06:47]OFD Sender: No OFD packet to send [13:06:52]OFD Sender: No OFD packet to send [13:06:57]OFD Sender: No OFD packet to send [13:07:02]OFD Sender: No OFD packet to send [13:07:07]OFD Sender: No OFD packet to send [13:07:12]OFD Sender: No OFD packet to send [13:07:17]OFD Sender: No OFD packet to send [13:07:22]OFD Sender: No OFD packet to send [13:07:27]OFD Sender: No OFD packet to send [13:07:32]OFD Sender: No OFD packet to send [13:07:37]OFD Sender: No OFD packet to send [13:07:42]OFD Sender: No OFD packet to send [13:07:47]OFD Sender: No OFD packet to send [13:07:52]OFD Sender: No OFD packet to send [13:07:57]OFD Sender: No OFD packet to send [13:08:02]OFD Sender: No OFD packet to send [13:08:07]OFD Sender: No OFD packet to send [13:08:12]OFD Sender: No OFD packet to send [13:08:17]OFD Sender: No OFD packet to send [13:08:22]OFD Sender: No OFD packet to send [13:08:27]OFD Sender: No OFD packet to send [13:08:32]OFD Sender: No OFD packet to send [13:08:37]OFD Sender: No OFD packet to send [13:08:42]OFD Sender: No OFD packet to send [13:08:47]OFD Sender: No OFD packet to send [13:08:52]OFD Sender: No OFD packet to send [13:08:57]OFD Sender: No OFD packet to send [13:09:02]OFD Sender: No OFD packet to send [13:09:07]OFD Sender: No OFD packet to send [13:09:12]OFD Sender: No OFD packet to send [13:09:17]OFD Sender: No OFD packet to send [13:09:22]OFD Sender: No OFD packet to send [13:09:27]OFD Sender: No OFD packet to send [13:09:32]OFD Sender: No OFD packet to send [13:09:37]OFD Sender: No OFD packet to send [13:09:42]OFD Sender: No OFD packet to send [13:09:47]OFD Sender: No OFD packet to send [13:09:52]OFD Sender: No OFD packet to send [13:09:57]OFD Sender: No OFD packet to send [13:10:02]OFD Sender: No OFD packet to send [13:10:07]OFD Sender: No OFD packet to send [13:10:12]OFD Sender: No OFD packet to send [13:10:17]OFD Sender: No OFD packet to send [13:10:22]OFD Sender: No OFD packet to send [13:10:27]OFD Sender: No OFD packet to send [13:10:32]OFD Sender: No OFD packet to send [13:10:37]OFD Sender: No OFD packet to send [13:10:42]OFD Sender: No OFD packet to send [13:10:47]OFD Sender: No OFD packet to send [13:10:48]accept exits with 5 [13:10:48]New connection [13:10:48]New thread 3066543460 created [13:10:48]Thread 3066686820 joined [13:10:48]Waiting for new connection... [13:10:48] Sock 5.Parse request [13:10:48]Sock 5.Check first char [13:10:48]Sock 5.First char is OK [13:10:48]request: POST /json_proto HTTP/1.0 [13:10:48]Method: POST [13:10:48]URL: /json_proto [13:10:48]Method is POST - this is cgi request [13:10:48]url: /json_proto [13:10:48]query_string will be loaded in cgi processing [13:10:48]execute_cgi json_proto POST (null) [13:10:48]execute_cgi path=json_proto method=POST [13:10:48]POST find Content-Length [13:10:48]Host: 172.17.36.132:8080 [13:10:48]Content-Length: 675 [13:10:48]Content-Type: application/json [13:10:48] [13:10:48]POST finish read [13:10:48]Found Content-Length = 675 [13:10:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706429", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 22.100, "sum" : 1500.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:10:48]execute_script... [13:10:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706429", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 22.100, "sum" : 1500.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:10:48]POST & json_proto [13:10:48]process_json_proto [13:10:48]json parsed OK: [13:10:48]protocol is kg_v1.0 [13:10:48]action value=close_receipt [13:10:48]process_action close_receipt [13:10:48]cmd_close_receipt [13:10:48]MH_GetDate [13:10:48]Write to MH i2c: F0 00 00 41 37 67 [13:10:48]Write i2c OK [13:10:48]MH_I2C_Read... [13:10:48]Read from MH i2c: F0 [13:10:48]MH_I2C_Read... [13:10:48]Read from MH i2c: F0 09 00 [13:10:48]MH_I2C_Read... [13:10:48]Read from MH i2c: F0 09 00 41 37 00 DD C0 5D 66 B2 22 B0 64 B8 [13:10:48]GetLastDocTimeStamp 1717419989 [13:10:48]current date 1717420253 [13:10:48]FM_GetShiftState [13:10:48]SAM_PROTO_GetShiftState [13:10:48]wFMCommunicate request_size=4 [13:10:48]MH_SAM_APDU [13:10:48]CAPDU: 80 13 01 00 [13:10:48]Write to MH i2c: E2 08 00 42 37 80 13 01 00 00 00 00 00 F6 [13:10:48]Write i2c OK [13:10:48]MH_I2C_Read... [13:10:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:10:48]Read from MH i2c: E2 [13:10:48]MH_I2C_Read... [13:10:48]Read from MH i2c: E2 0E 00 [13:10:48]MH_I2C_Read... [13:10:48]Read from MH i2c: E2 0E 00 42 37 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 D1 [13:10:48]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [13:10:48]wFMCommunicate OK [13:10:48]SAM_PROTO_GetShiftState done [13:10:48]FM_GetShiftState done [13:10:48]opened in 1717378033 [13:10:48]opened+sec_in_day 1717464433 [13:10:48]quantity*price = 150059 [13:10:48]sum+1 = 150060 [13:10:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 88 03.06.2024 13:10 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68342 ФПД: 84952465395175 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T131053&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68342&fm=84952465395175&tin=02508201610067®Number=0000000000098096&sum=150000 [13:10:49]StoreToDocumentArchive [13:10:49]shift 324 fd 68342 [13:10:49]save to /storage/0324/doc_00068342 [13:10:49]save last doc name /storage/0324/doc_00068342 to /storage/kkm_last_doc_name [13:10:49]save OK [13:10:49]Clear old archive folders... [13:10:49]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:10:49]tlvbuf is 001FD230 [13:10:49]SAM_PROTO_ClearQueue [13:10:49]wFMCommunicate request_size=4 [13:10:49]MH_SAM_APDU [13:10:49]CAPDU: 80 09 00 00 [13:10:49]Write to MH i2c: E2 08 00 4F 37 80 09 00 00 00 00 00 00 F8 [13:10:49]Write i2c OK [13:10:49]MH_I2C_Read... [13:10:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:10:49]Read from MH i2c: E2 [13:10:49]MH_I2C_Read... [13:10:49]Read from MH i2c: E2 03 00 [13:10:49]MH_I2C_Read... [13:10:49]Read from MH i2c: E2 03 00 4F 37 00 90 00 FA [13:10:49]RAPDU: 90 00 [13:10:49]wFMCommunicate OK [13:10:49]SAM_PROTO_ClearQueue done [13:10:49]KKMCreateOFDPacket [13:10:49]OFDProtocolAddRootSTLVToBuf [13:10:49]FM_MakeSignedData [13:10:49]FM_MakeSignedData [13:10:49]SAM_PROTO_SignData [13:10:49]wFMCommunicate request_size=4 [13:10:49]MH_SAM_APDU [13:10:49]CAPDU: 80 0D 01 02 [13:10:49]Write to MH i2c: E2 08 00 50 37 80 0D 01 02 00 00 00 00 00 [13:10:49]Write i2c OK [13:10:49]MH_I2C_Read... [13:10:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:10:49]Read from MH i2c: E2 [13:10:49]MH_I2C_Read... [13:10:49]Read from MH i2c: E2 03 00 [13:10:49]MH_I2C_Read... [13:10:49]Read from MH i2c: E2 03 00 50 37 00 90 00 FB [13:10:49]RAPDU: 90 00 [13:10:49]wFMCommunicate OK [13:10:49]wFMCommunicate request_size=255 [13:10:49]MH_SAM_APDU [13:10: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 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 54 56 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 2B 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 DD C0 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F6 0A 01 00 35 04 06 00 [13:10:49]Write to MH i2c: E2 02 01 51 37 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 54 56 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 2B 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 DD C0 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F6 0A 01 00 35 04 06 00 00 00 1A [13:10:49]Write i2c OK [13:10:49]MH_I2C_Read... [13:10:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:10:50]Read from MH i2c: E2 [13:10:50]MH_I2C_Read... [13:10:50]Read from MH i2c: E2 03 00 [13:10:50]MH_I2C_Read... [13:10:50]Read from MH i2c: E2 03 00 51 37 00 90 00 FC [13:10:50]RAPDU: 90 00 [13:10:50]wFMCommunicate OK [13:10:50]wFMCommunicate request_size=11 [13:10:50]MH_SAM_APDU [13:10:50]CAPDU: 80 0D 02 02 06 4D 43 89 85 CD E7 [13:10:50]Write to MH i2c: E2 0E 00 52 37 80 0D 02 02 06 00 4D 43 89 85 CD E7 00 00 61 [13:10:50]Write i2c OK [13:10:50]MH_I2C_Read... [13:10:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:10:50]Read from MH i2c: E2 [13:10:50]MH_I2C_Read... [13:10:50]Read from MH i2c: E2 03 00 [13:10:50]MH_I2C_Read... [13:10:50]Read from MH i2c: E2 03 00 52 37 00 90 00 FD [13:10:50]RAPDU: 90 00 [13:10:50]wFMCommunicate OK [13:10:50]wFMCommunicate request_size=4 [13:10:50]MH_SAM_APDU [13:10:50]CAPDU: 80 0D 03 02 [13:10:50]Write to MH i2c: E2 08 00 53 37 80 0D 03 02 00 00 00 00 05 [13:10:50]Write i2c OK [13:10:50]MH_I2C_Read... [13:10:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:10:50]Read from MH i2c: E2 [13:10:50]MH_I2C_Read... [13:10:50]Read from MH i2c: E2 0B 00 [13:10:50]MH_I2C_Read... [13:10:50]Read from MH i2c: E2 0B 00 53 37 00 71 4F 57 40 85 A8 B7 3F 90 00 80 [13:10:50]RAPDU: 71 4F 57 40 85 A8 B7 3F 90 00 [13:10:50]wFMCommunicate OK [13:10:50]SAM_PROTO_SignData done [13:10:50]FM_MakeSignedData done [13:10:50]CreateOFDProtocolMessage [13:10:50]wFMCommunicate request_size=4 [13:10:50]MH_SAM_APDU [13:10:50]CAPDU: 80 11 00 00 [13:10:50]Write to MH i2c: E2 08 00 54 37 80 11 00 00 00 00 00 00 05 [13:10:50]Write i2c OK [13:10:50]MH_I2C_Read... [13:10:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:10:50]Read from MH i2c: E2 [13:10:50]MH_I2C_Read... [13:10:50]Read from MH i2c: E2 17 00 [13:10:50]MH_I2C_Read... [13:10:50]Read from MH i2c: E2 17 00 54 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 50 [13:10:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [13:10:50]wFMCommunicate OK [13:10:50]CreateOFDProtocolMessage done [13:10:50]OFDSenderStorePacket 68342 [13:10:50]StoreOFDPacket docnum=68342 [13:10:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 1F 75 08 01 EF A9 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 54 56 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 2B 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 DD C0 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F6 0A 01 00 35 04 06 00 4D 43 89 85 CD E7 71 4F 57 40 85 A8 B7 3F [13:10:50]CheckFolder [13:10:50]dirname=/storage/ofd_packets [13:10:50]CheckFolder done [13:10:50]ProducePacketName [13:10:50]name=ofd_packets/00068342 [13:10:50]NVStorageSaveData ofd_packets/00068342 [13:10:50]File name is /storage/ofd_packets/00068342 [13:10:50]Write 302 bytes [13:10:50]NVStorageSaveData done [13:10:50]OFDSenderStorePacket done [13:10:50]KKMCreateOFDPacket done [13:10:50]NVStorageSaveData kkm_last_timestamp [13:10:50]File name is /storage/kkm_last_timestamp [13:10:50]Write 4 bytes [13:10:50]NVStorageSaveData done [13:10:50]ExternCall_PrintAddStr [13:10:50]wPrintStart [13:10:50]Write to MH i2c: 01 00 00 55 37 8C [13:10:50]OFD Sender: Processing packet 68342 [packets to send 26, broken 25] [13:10:50]ProducePacketName [13:10:50]name=ofd_packets/00068342 [13:10:50]OFD Sender: To server: pG, [13:10:50]CommunicateWithHost lk.salyk.kg:30040 [13:10:50]ConnectInit lk.salyk.kg [13:10:50]Write i2c OK [13:10:50]MH_I2C_Read... [13:10:50]Read from MH i2c: 01 [13:10:50]MH_I2C_Read... [13:10:50]Read from MH i2c: 01 07 00 [13:10:50]MH_I2C_Read... [13:10:50]Read from MH i2c: 01 07 00 55 37 00 00 00 00 00 FF 0F A1 [13:10:50]RasterBufferAndPrint [13:10:50]line Счет N : (1)706429 [13:10:50]line ИНН: 02508201610067 [13:10:50]line Контрольно-Кассовый Чек [13:10:50]line ПРОДАЖА [13:10:50]line ТРК (МРК, ГНК) : 31 [13:10:50]line Товар: 2710124130 [13:10:50]line Super-92-К-5 [13:10:50]line 22.100 * 67.90 [13:10:50]line = 1500.59 [13:10:50]line НДС 12% НСП 1% [13:10:50]line > о реализуемом товаре [13:10:50]line ОКРУГЛЕНИЕ: -0.59 [13:10:50]line ИТОГО: 1500.00 [13:10:50]line Внесено: 1500.00 [13:10:50]line СДАЧА: 0.00 [13:10:50]line НСП 1% : 13.28 [13:10:50]line НДС 12% : 159.35 [13:10:50]line Наличными: 1500.00 [13:10:50]line Безнал.: 0.00 [13:10:50]line Место: АЗС № 62 "Партнер Нефть" [13:10:50]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [13:10:50]line СНО: Общий режим [13:10:50]line Чек 88 03.06.2024 13:10 [13:10:50]line Смена: 324 ФФД: 1.0 [13:10:50]line ЗНМ: 0300000181 [13:10:50]line РНМ: 0000000000098096 [13:10:50]line Версия ККМ: 001 [13:10:50]line ФМ: 0000000000965400 [13:10:50]line ФД: 68342 [13:10:50]line ФПД: 84952465395175 [13:10:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T131053&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68342&fm=84952465395175&tin=02508201610067®Number=0000000000098096&sum=150000 [13:10:50]Connected sock=6 [13:10:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 1F 75 08 01 EF A9 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D written 0, free lines is 4095 [13:10:50]35 FF 03 08 00 03 54 56 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 2B 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 DD C0 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F6 0A 01 00 35 04 06 00 4D 43 89 85 CD E7 71 4F 57 40 85 A8 B7 3F [13:10:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 D8 DC 47 00 F7 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F6 0A 01 00 F4 03 04 00 D9 67 5D 66 B6 04 01 00 00 22 59 2D 51 DD B0 ED 0A [13:10:50]CommunicateWithHost err = 0 [13:10:50]CheckOFDResponse [13:10:50]1017 (14) - 77093643461234 [13:10:50]1041 (16) - 0000000000965400 [13:10:50]1040 (4) - 68342 [13:10:50]1012 (4) - 03.06.2024 06:51 [13:10:50]1206 (1) - 0 [13:10:50]OFD Sender: Remove packet 68342 [13:10:50]ProducePacketName [13:10:50]name=ofd_packets/00068342 [13:10:50]NVStorageDeleteData [13:10:51]Write to MH i2c: 01 00 00 80 37 B7 [13:10:51]Write i2c OK [13:10:51]MH_I2C_Read... [13:10:51]Read from MH i2c: 01 [13:10:51]MH_I2C_Read... [13:10:51]Read from MH i2c: 01 07 00 [13:10:51]MH_I2C_Read... [13:10:51]Read from MH i2c: 01 07 00 80 37 00 00 00 00 00 DC 0C A6 [13:10:51]RasterBufferAndPrint [13:10:51]line [13:10:51]line [13:10:51]line [13:10:51]line [13:10:51]line [13:10:51]written 0, free lines is 3302 [13:10:51]MH_Cut [13:10:51]Write to MH i2c: D1 01 00 87 37 01 90 [13:10:51]Write i2c OK [13:10:51]MH_I2C_Read... [13:10:51]Read from MH i2c: D1 [13:10:51]MH_I2C_Read... [13:10:51]Read from MH i2c: D1 01 00 [13:10:51]MH_I2C_Read... [13:10:51]Read from MH i2c: D1 01 00 87 37 00 8F [13:10:51]Write to MH i2c: 01 00 00 88 37 BF [13:10:51]Write i2c OK [13:10:51]MH_I2C_Read... [13:10:51]OFD Sender: No OFD packet to send [13:10:51]*** Cut start [13:10:51]*** Partial cut [13:10:51]*** CUTSNS_PIN = 1 [13:10:52]*** CUTSNS_PIN = 0 [13:10:52]*** Brake cut motor [13:10:52]Read from MH i2c: 01 [13:10:52]MH_I2C_Read... [13:10:52]*** Stop cut motor [13:10:52]*** Cut end [13:10:52]Read from MH i2c: 01 07 00 [13:10:52]MH_I2C_Read... [13:10:52]Read from MH i2c: 01 07 00 88 37 00 00 00 00 00 FF 0F D4 [13:10:52]process_action close_receipt done [13:10:52]requested_data is exist [13:10:52]produce_requested_data [13:10:52]requested_item fm.sn is exist - process it [13:10:52]wFMCommunicate request_size=4 [13:10:52]MH_SAM_APDU [13:10:52]CAPDU: 80 11 00 00 [13:10:52]Write to MH i2c: E2 08 00 89 37 80 11 00 00 00 00 00 00 3A [13:10:52]Write i2c OK [13:10:52]MH_I2C_Read... [13:10:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:10:52]Read from MH i2c: E2 [13:10:52]MH_I2C_Read... [13:10:52]Read from MH i2c: E2 17 00 [13:10:52]MH_I2C_Read... [13:10:52]Read from MH i2c: E2 17 00 89 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 85 [13:10:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [13:10:52]wFMCommunicate OK [13:10:52]requested_item fd.num is exist - process it [13:10:52]SAM_PROTO_GetFieldsCounters [13:10:52]wFMCommunicate request_size=4 [13:10:52]MH_SAM_APDU [13:10:52]CAPDU: 80 13 00 00 [13:10:52]Write to MH i2c: E2 08 00 8A 37 80 13 00 00 00 00 00 00 3D [13:10:52]Write i2c OK [13:10:52]MH_I2C_Read... [13:10:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:10:52]Read from MH i2c: E2 [13:10:52]MH_I2C_Read... [13:10:52]Read from MH i2c: E2 62 00 [13:10:52]MH_I2C_Read... [13:10:52]Read from MH i2c: E2 62 00 8A 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 F6 0A 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 AB [13:10:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 F6 0A 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:10:52]wFMCommunicate OK [13:10:52]SAM_PROTO_GetFieldsCounters done [13:10:52]requested_item shift.num is exist - process it [13:10:52]requested_item shift.opened is exist - process it [13:10:52]req_shift_opened [13:10:52]FM_GetShiftState [13:10:52]SAM_PROTO_GetShiftState [13:10:52]wFMCommunicate request_size=4 [13:10:52]MH_SAM_APDU [13:10:52]CAPDU: 80 13 01 00 [13:10:52]Write to MH i2c: E2 08 00 8B 37 80 13 01 00 00 00 00 00 3F [13:10:52]Write i2c OK [13:10:52]MH_I2C_Read... [13:10:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:10:52]Read from MH i2c: E2 [13:10:52]MH_I2C_Read... [13:10:52]Read from MH i2c: E2 0E 00 [13:10:52]MH_I2C_Read... [13:10:52]Read from MH i2c: E2 0E 00 8B 37 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 1A [13:10:52]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [13:10:52]wFMCommunicate OK [13:10:52]SAM_PROTO_GetShiftState done [13:10:52]FM_GetShiftState done [13:10:52]req_shift_opened done [13:10:52]requested_item shift.open_date is exist - process it [13:10:52]req_shift_open_date [13:10:52]req_shift_open_date done [13:10:52]produce_requested_data done [13:10:52]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68342,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [13:10:52]process_action_free close_receipt [13:10:52]json_value_free [13:10:52]json_value_free done [13:10:52]process_json_proto returns [13:10:52]Send response to host [13:10:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68342,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [13:10:52]free response buf [13:10:52]execute_script done [13:10:52]execute_script returns [13:10:52]free content buf [13:10:52]Sock 5.Close socket [13:10:52]Sock 5.Thread stoped [13:10:56]OFD Sender: No OFD packet to send [13:11:01]OFD Sender: No OFD packet to send [13:11:06]OFD Sender: No OFD packet to send [13:11:11]OFD Sender: No OFD packet to send [13:11:16]OFD Sender: No OFD packet to send [13:11:21]OFD Sender: No OFD packet to send [13:11:26]OFD Sender: No OFD packet to send [13:11:31]OFD Sender: No OFD packet to send [13:11:36]OFD Sender: No OFD packet to send [13:11:40]accept exits with 7 [13:11:40]New connection [13:11:40]New thread 3066686820 created [13:11:40]Thread 3066543460 joined [13:11:40]Waiting for new connection... [13:11:40] Sock 7.Parse request [13:11:40]Sock 7.Check first char [13:11:40]Sock 7.First char is OK [13:11:40]request: POST /json_proto HTTP/1.0 [13:11:40]Method: POST [13:11:40]URL: /json_proto [13:11:40]Method is POST - this is cgi request [13:11:40]url: /json_proto [13:11:40]query_string will be loaded in cgi processing [13:11:40]execute_cgi json_proto POST (null) [13:11:40]execute_cgi path=json_proto method=POST [13:11:40]POST find Content-Length [13:11:40]Host: 172.17.36.132:8080 [13:11:40]Content-Length: 677 [13:11:40]Content-Type: application/json [13:11:40] [13:11:40]POST finish read [13:11:40]Found Content-Length = 677 [13:11:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706430", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:11:40]execute_script... [13:11: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)706430", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:11:40]POST & json_proto [13:11:40]process_json_proto [13:11:40]json parsed OK: [13:11:40]protocol is kg_v1.0 [13:11:40]action value=close_receipt [13:11:40]process_action close_receipt [13:11:40]cmd_close_receipt [13:11:40]MH_GetDate [13:11:40]Write to MH i2c: F0 00 00 8C 37 B2 [13:11:40]Write i2c OK [13:11:40]MH_I2C_Read... [13:11:40]Read from MH i2c: F0 [13:11:40]MH_I2C_Read... [13:11:40]Read from MH i2c: F0 09 00 [13:11:40]MH_I2C_Read... [13:11:40]Read from MH i2c: F0 09 00 8C 37 00 11 C1 5D 66 B2 22 B0 64 38 [13:11:40]GetLastDocTimeStamp 1717420253 [13:11:40]current date 1717420305 [13:11:40]FM_GetShiftState [13:11:40]SAM_PROTO_GetShiftState [13:11:40]wFMCommunicate request_size=4 [13:11:40]MH_SAM_APDU [13:11:40]CAPDU: 80 13 01 00 [13:11:40]Write to MH i2c: E2 08 00 8D 37 80 13 01 00 00 00 00 00 41 [13:11:40]Write i2c OK [13:11:40]MH_I2C_Read... [13:11:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:40]Read from MH i2c: E2 [13:11:40]MH_I2C_Read... [13:11:40]Read from MH i2c: E2 0E 00 [13:11:40]MH_I2C_Read... [13:11:40]Read from MH i2c: E2 0E 00 8D 37 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 1C [13:11:40]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [13:11:40]wFMCommunicate OK [13:11:40]SAM_PROTO_GetShiftState done [13:11:40]FM_GetShiftState done [13:11:40]opened in 1717378033 [13:11:40]opened+sec_in_day 1717464433 [13:11:40]quantity*price = 50041 [13:11:40]sum+1 = 50042 [13:11:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 89 03.06.2024 13:11 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68343 ФПД: 3602227796900 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T131145&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68343&fm=3602227796900&tin=02508201610067®Number=0000000000098096&sum=50000 [13:11:41]StoreToDocumentArchive [13:11:41]shift 324 fd 68343 [13:11:41]save to /storage/0324/doc_00068343 [13:11:41]save last doc name /storage/0324/doc_00068343 to /storage/kkm_last_doc_name [13:11:41]save OK [13:11:41]Clear old archive folders... [13:11:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:11:41]tlvbuf is 004A12C0 [13:11:41]SAM_PROTO_ClearQueue [13:11:41]wFMCommunicate request_size=4 [13:11:41]MH_SAM_APDU [13:11:41]CAPDU: 80 09 00 00 [13:11:41]Write to MH i2c: E2 08 00 9A 37 80 09 00 00 00 00 00 00 43 [13:11:41]Write i2c OK [13:11:41]MH_I2C_Read... [13:11:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:11:41]Read from MH i2c: E2 [13:11:41]MH_I2C_Read... [13:11:41]Read from MH i2c: E2 03 00 [13:11:41]MH_I2C_Read... [13:11:41]Read from MH i2c: E2 03 00 9A 37 00 90 00 45 [13:11:41]RAPDU: 90 00 [13:11:41]wFMCommunicate OK [13:11:41]SAM_PROTO_ClearQueue done [13:11:41]KKMCreateOFDPacket [13:11:41]OFDProtocolAddRootSTLVToBuf [13:11:41]FM_MakeSignedData [13:11:41]FM_MakeSignedData [13:11:41]SAM_PROTO_SignData [13:11:41]wFMCommunicate request_size=4 [13:11:41]MH_SAM_APDU [13:11:41]CAPDU: 80 0D 01 02 [13:11:41]Write to MH i2c: E2 08 00 9B 37 80 0D 01 02 00 00 00 00 4B [13:11:41]Write i2c OK [13:11:41]MH_I2C_Read... [13:11:41]Read from MH i2c: E2 [13:11:41]MH_I2C_Read... [13:11:41]Read from MH i2c: E2 03 00 [13:11:41]MH_I2C_Read... [13:11:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:11:41]Read from MH i2c: E2 03 00 9B 37 00 90 00 46 [13:11:41]RAPDU: 90 00 [13:11:41]wFMCommunicate OK [13:11:41]wFMCommunicate request_size=255 [13:11:41]MH_SAM_APDU [13:11: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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 11 C1 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F7 0A 01 00 35 04 06 00 03 [13:11:41]Write to MH i2c: E2 02 01 9C 37 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 11 C1 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F7 0A 01 00 35 04 06 00 03 00 00 10 [13:11:41]Write i2c OK [13:11:41]MH_I2C_Read... [13:11:41]OFD Sender: No OFD packet to send [13:11:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:41]Read from MH i2c: E2 [13:11:41]MH_I2C_Read... [13:11:41]Read from MH i2c: E2 03 00 [13:11:41]MH_I2C_Read... [13:11:41]Read from MH i2c: E2 03 00 9C 37 00 90 00 47 [13:11:41]RAPDU: 90 00 [13:11:41]wFMCommunicate OK [13:11:41]wFMCommunicate request_size=10 [13:11:41]MH_SAM_APDU [13:11:41]CAPDU: 80 0D 02 02 05 46 B5 82 1B A4 [13:11:41]Write to MH i2c: E2 0D 00 9D 37 80 0D 02 02 05 00 46 B5 82 1B A4 00 00 94 [13:11:41]Write i2c OK [13:11:41]MH_I2C_Read... [13:11:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:41]Read from MH i2c: E2 [13:11:41]MH_I2C_Read... [13:11:41]Read from MH i2c: E2 03 00 [13:11:41]MH_I2C_Read... [13:11:41]Read from MH i2c: E2 03 00 9D 37 00 90 00 48 [13:11:41]RAPDU: 90 00 [13:11:41]wFMCommunicate OK [13:11:41]wFMCommunicate request_size=4 [13:11:41]MH_SAM_APDU [13:11:41]CAPDU: 80 0D 03 02 [13:11:41]Write to MH i2c: E2 08 00 9E 37 80 0D 03 02 00 00 00 00 50 [13:11:41]Write i2c OK [13:11:41]MH_I2C_Read... [13:11:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:11:41]Read from MH i2c: E2 [13:11:41]MH_I2C_Read... [13:11:41]Read from MH i2c: E2 0B 00 [13:11:41]MH_I2C_Read... [13:11:41]Read from MH i2c: E2 0B 00 9E 37 00 8C 6F E0 C8 C3 EC 74 23 90 00 3A [13:11:41]RAPDU: 8C 6F E0 C8 C3 EC 74 23 90 00 [13:11:41]wFMCommunicate OK [13:11:41]SAM_PROTO_SignData done [13:11:41]FM_MakeSignedData done [13:11:41]CreateOFDProtocolMessage [13:11:41]wFMCommunicate request_size=4 [13:11:41]MH_SAM_APDU [13:11:41]CAPDU: 80 11 00 00 [13:11:41]Write to MH i2c: E2 08 00 9F 37 80 11 00 00 00 00 00 00 50 [13:11:41]Write i2c OK [13:11:41]MH_I2C_Read... [13:11:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:41]Read from MH i2c: E2 [13:11:41]MH_I2C_Read... [13:11:41]Read from MH i2c: E2 17 00 [13:11:41]MH_I2C_Read... [13:11:41]Read from MH i2c: E2 17 00 9F 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 9B [13:11:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [13:11:41]wFMCommunicate OK [13:11:41]CreateOFDProtocolMessage done [13:11:41]OFDSenderStorePacket 68343 [13:11:41]StoreOFDPacket docnum=68343 [13:11:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 55 76 07 01 D8 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 11 C1 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F7 0A 01 00 35 04 06 00 03 46 B5 82 1B A4 8C 6F E0 C8 C3 EC 74 23 [13:11:41]CheckFolder [13:11:41]dirname=/storage/ofd_packets [13:11:41]CheckFolder done [13:11:41]ProducePacketName [13:11:41]name=ofd_packets/00068343 [13:11:41]NVStorageSaveData ofd_packets/00068343 [13:11:41]File name is /storage/ofd_packets/00068343 [13:11:41]Write 301 bytes [13:11:41]NVStorageSaveData done [13:11:41]OFDSenderStorePacket done [13:11:41]KKMCreateOFDPacket done [13:11:41]NVStorageSaveData kkm_last_timestamp [13:11:41]File name is /storage/kkm_last_timestamp [13:11:41]Write 4 bytes [13:11:41]NVStorageSaveData done [13:11:41]ExternCall_PrintAddStr [13:11:41]wPrintStart [13:11:41]Write to MH i2c: 01 00 00 A0 37 D7 [13:11:41]Write i2c OK [13:11:41]MH_I2C_Read... [13:11:41]Read from MH i2c: 01 [13:11:41]MH_I2C_Read... [13:11:41]Read from MH i2c: 01 07 00 [13:11:41]MH_I2C_Read... [13:11:41]Read from MH i2c: 01 07 00 A0 37 00 00 00 00 00 FF 0F EC [13:11:41]RasterBufferAndPrint [13:11:41]line Счет N : (1)706430 [13:11:41]line ИНН: 02508201610067 [13:11:41]line Контрольно-Кассовый Чек [13:11:41]line ПРОДАЖА [13:11:41]line ТРК (МРК, ГНК) : 53 [13:11:41]line Товар: 2710124130 [13:11:41]line Аи-92-К-4 [13:11:41]line 7.480 * 66.90 [13:11:41]line = 500.41 [13:11:41]line НДС 12% НСП 1% [13:11:41]line > о реализуемом товаре [13:11:41]line ОКРУГЛЕНИЕ: -0.41 [13:11:41]line ИТОГО: 500.00 [13:11:41]line Внесено: 500.00 [13:11:41]line СДАЧА: 0.00 [13:11:41]line НСП 1% : 4.43 [13:11:41]line НДС 12% : 53.14 [13:11:41]line Наличными: 500.00 [13:11:41]line Безнал.: 0.00 [13:11:41]line Место: АЗС № 62 "Партнер Нефть" [13:11:41]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [13:11:41]line СНО: Общий режим [13:11:41]line Чек 89 03.06.2024 13:11 [13:11:42]line Смена: 324 ФФД: 1.0 [13:11:42]line ЗНМ: 0300000181 [13:11:42]line РНМ: 0000000000098096 [13:11:42]line Версия ККМ: 001 [13:11:42]line ФМ: 0000000000965400 [13:11:42]line ФД: 68343 [13:11:42]line ФПД: 3602227796900 [13:11:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T131145&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68343&fm=3602227796900&tin=02508201610067®Number=0000000000098096&sum=50000 [13:11:42]OFD Sender: Processing packet 68343 [packets to send 26, broken 25] [13:11:42]ProducePacketName [13:11:42]name=ofd_packets/00068343 [13:11:42]OFD Sender: To server: pG, [13:11:42]CommunicateWithHost lk.salyk.kg:30040 [13:11:42]ConnectInit lk.salyk.kg [13:11:42]written 0, free lines is 4095 [13:11:42]Connected sock=6 [13:11:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 55 76 07 01 D8 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 11 C1 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F7 0A 01 00 35 04 06 00 03 46 B5 82 1B A4 8C 6F E0 C8 C3 EC 74 23 [13:11:42]Write to MH i2c: 01 00 00 CB 37 02 [13:11:42]Write i2c OK [13:11:42]MH_I2C_Read... [13:11:42]Read from MH i2c: 01 [13:11:42]MH_I2C_Read... [13:11:42]Read from MH i2c: 01 07 00 [13:11:42]MH_I2C_Read... [13:11:42]Read from MH i2c: 01 07 00 CB 37 00 00 00 00 00 DE 0C F3 [13:11:42]RasterBufferAndPrint [13:11:42]line [13:11:42]line [13:11:42]line [13:11:42]line [13:11:42]line [13:11:42]written 0, free lines is 3300 [13:11:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 0B 3C 47 00 27 D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F7 0A 01 00 F4 03 04 00 0D 68 5D 66 B6 04 01 00 00 6C 1E 98 66 D4 39 23 A2 [13:11:42]CommunicateWithHost err = 0 [13:11:42]CheckOFDResponse [13:11:42]1017 (14) - 77093643461234 [13:11:42]1041 (16) - 0000000000965400 [13:11:42]1040 (4) - 68343 [13:11:42]1012 (4) - 03.06.2024 06:51 [13:11:42]1206 (1) - 0 [13:11:42]OFD Sender: Remove packet 68343 [13:11:42]ProducePacketName [13:11:42]name=ofd_packets/00068343 [13:11:42]NVStorageDeleteData [13:11:42]MH_Cut [13:11:42]Write to MH i2c: D1 01 00 D2 37 01 DB [13:11:42]Write i2c OK [13:11:42]MH_I2C_Read... [13:11:42]Read from MH i2c: D1 [13:11:42]MH_I2C_Read... [13:11:42]Read from MH i2c: D1 01 00 [13:11:42]MH_I2C_Read... [13:11:42]Read from MH i2c: D1 01 00 D2 37 00 DA [13:11:42]Write to MH i2c: 01 00 00 D3 37 0A [13:11:42]Write i2c OK [13:11:42]MH_I2C_Read... [13:11:43]OFD Sender: No OFD packet to send [13:11:43]*** Cut start [13:11:43]*** Partial cut [13:11:43]*** CUTSNS_PIN = 1 [13:11:43]*** CUTSNS_PIN = 0 [13:11:43]*** Brake cut motor [13:11:43]Read from MH i2c: 01 [13:11:43]MH_I2C_Read... [13:11:43]*** Stop cut motor [13:11:43]*** Cut end [13:11:43]Read from MH i2c: 01 07 00 [13:11:43]MH_I2C_Read... [13:11:43]Read from MH i2c: 01 07 00 D3 37 00 00 00 00 00 FF 0F 1F [13:11:43]process_action close_receipt done [13:11:43]requested_data is exist [13:11:43]produce_requested_data [13:11:43]requested_item fm.sn is exist - process it [13:11:43]wFMCommunicate request_size=4 [13:11:43]MH_SAM_APDU [13:11:43]CAPDU: 80 11 00 00 [13:11:43]Write to MH i2c: E2 08 00 D4 37 80 11 00 00 00 00 00 00 85 [13:11:43]Write i2c OK [13:11:43]MH_I2C_Read... [13:11:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:44]Read from MH i2c: E2 [13:11:44]MH_I2C_Read... [13:11:44]Read from MH i2c: E2 17 00 [13:11:44]MH_I2C_Read... [13:11:44]Read from MH i2c: E2 17 00 D4 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 D0 [13:11:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [13:11:44]wFMCommunicate OK [13:11:44]requested_item fd.num is exist - process it [13:11:44]SAM_PROTO_GetFieldsCounters [13:11:44]wFMCommunicate request_size=4 [13:11:44]MH_SAM_APDU [13:11:44]CAPDU: 80 13 00 00 [13:11:44]Write to MH i2c: E2 08 00 D5 37 80 13 00 00 00 00 00 00 88 [13:11:44]Write i2c OK [13:11:44]MH_I2C_Read... [13:11:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:11:44]Read from MH i2c: E2 [13:11:44]MH_I2C_Read... [13:11:44]Read from MH i2c: E2 62 00 [13:11:44]MH_I2C_Read... [13:11:44]Read from MH i2c: E2 62 00 D5 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 F7 0A 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 FA [13:11:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 F7 0A 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:11:44]wFMCommunicate OK [13:11:44]SAM_PROTO_GetFieldsCounters done [13:11:44]requested_item shift.num is exist - process it [13:11:44]requested_item shift.opened is exist - process it [13:11:44]req_shift_opened [13:11:44]FM_GetShiftState [13:11:44]SAM_PROTO_GetShiftState [13:11:44]wFMCommunicate request_size=4 [13:11:44]MH_SAM_APDU [13:11:44]CAPDU: 80 13 01 00 [13:11:44]Write to MH i2c: E2 08 00 D6 37 80 13 01 00 00 00 00 00 8A [13:11:44]Write i2c OK [13:11:44]MH_I2C_Read... [13:11:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:44]Read from MH i2c: E2 [13:11:44]MH_I2C_Read... [13:11:44]Read from MH i2c: E2 0E 00 [13:11:44]MH_I2C_Read... [13:11:44]Read from MH i2c: E2 0E 00 D6 37 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 65 [13:11:44]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [13:11:44]wFMCommunicate OK [13:11:44]SAM_PROTO_GetShiftState done [13:11:44]FM_GetShiftState done [13:11:44]req_shift_opened done [13:11:44]requested_item shift.open_date is exist - process it [13:11:44]req_shift_open_date [13:11:44]req_shift_open_date done [13:11:44]produce_requested_data done [13:11:44]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68343,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [13:11:44]process_action_free close_receipt [13:11:44]json_value_free [13:11:44]json_value_free done [13:11:44]process_json_proto returns [13:11:44]Send response to host [13:11:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68343,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [13:11:44]free response buf [13:11:44]execute_script done [13:11:44]execute_script returns [13:11:44]free content buf [13:11:44]Sock 7.Close socket [13:11:44]Sock 7.Thread stoped [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:54]accept exits with 5 [13:12:54]New connection [13:12:54]New thread 3066543460 created [13:12:54]Thread 3066686820 joined [13:12:54]Waiting for new connection... [13:12:54] Sock 5.Parse request [13:12:54]Sock 5.Check first char [13:12:54]Sock 5.First char is OK [13:12:54]request: POST /json_proto HTTP/1.0 [13:12:54]Method: POST [13:12:54]URL: /json_proto [13:12:54]Method is POST - this is cgi request [13:12:54]url: /json_proto [13:12:54]query_string will be loaded in cgi processing [13:12:54]execute_cgi json_proto POST (null) [13:12:54]execute_cgi path=json_proto method=POST [13:12:54]POST find Content-Length [13:12:54]Host: 172.17.36.132:8080 [13:12:54]Content-Length: 800 [13:12:54]Content-Type: application/json [13:12:54] [13:12:54]POST finish read [13:12:54]Found Content-Length = 800 [13:12:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706431", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:12:54]execute_script... [13:12:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706431", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:12:54]POST & json_proto [13:12:54]process_json_proto [13:12:54]json parsed OK: [13:12:54]protocol is kg_v1.0 [13:12:54]action value=close_receipt [13:12:54]process_action close_receipt [13:12:54]cmd_close_receipt [13:12:54]MH_GetDate [13:12:54]Write to MH i2c: F0 00 00 D7 37 FD [13:12:54]Write i2c OK [13:12:54]MH_I2C_Read... [13:12:54]Read from MH i2c: F0 [13:12:54]MH_I2C_Read... [13:12:54]Read from MH i2c: F0 09 00 [13:12:54]MH_I2C_Read... [13:12:54]Read from MH i2c: F0 09 00 D7 37 00 5B C1 5D 66 B2 22 B0 64 CD [13:12:54]GetLastDocTimeStamp 1717420305 [13:12:54]current date 1717420379 [13:12:54]FM_GetShiftState [13:12:54]SAM_PROTO_GetShiftState [13:12:54]wFMCommunicate request_size=4 [13:12:54]MH_SAM_APDU [13:12:54]CAPDU: 80 13 01 00 [13:12:54]Write to MH i2c: E2 08 00 D8 37 80 13 01 00 00 00 00 00 8C [13:12:54]Write i2c OK [13:12:54]MH_I2C_Read... [13:12:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:54]Read from MH i2c: E2 [13:12:54]MH_I2C_Read... [13:12:54]Read from MH i2c: E2 0E 00 [13:12:54]MH_I2C_Read... [13:12:54]Read from MH i2c: E2 0E 00 D8 37 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 67 [13:12:54]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [13:12:54]wFMCommunicate OK [13:12:54]SAM_PROTO_GetShiftState done [13:12:54]FM_GetShiftState done [13:12:54]opened in 1717378033 [13:12:54]opened+sec_in_day 1717464433 [13:12:54]quantity*price = 20003 [13:12:54]sum+1 = 20004 [13:12:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.03 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 0.00 Безнал.: 200.03 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 90 03.06.2024 13:12 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000965400 ФД: 68344 ФПД: 111892323565875 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T131259&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68344&fm=111892323565875&tin=02508201610067®Number=0000000000098096&sum=20003 [13:12:55]StoreToDocumentArchive [13:12:55]shift 324 fd 68344 [13:12:55]save to /storage/0324/doc_00068344 [13:12:55]save last doc name /storage/0324/doc_00068344 to /storage/kkm_last_doc_name [13:12:55]save OK [13:12:55]Clear old archive folders... [13:12:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:12:55]tlvbuf is B6F145C0 [13:12:55]SAM_PROTO_ClearQueue [13:12:55]wFMCommunicate request_size=4 [13:12:55]MH_SAM_APDU [13:12:55]CAPDU: 80 09 00 00 [13:12:55]Write to MH i2c: E2 08 00 E5 37 80 09 00 00 00 00 00 00 8E [13:12:55]Write i2c OK [13:12:55]MH_I2C_Read... [13:12:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:12:55]Read from MH i2c: E2 [13:12:55]MH_I2C_Read... [13:12:55]Read from MH i2c: E2 03 00 [13:12:55]MH_I2C_Read... [13:12:55]Read from MH i2c: E2 03 00 E5 37 00 90 00 90 [13:12:55]RAPDU: 90 00 [13:12:55]wFMCommunicate OK [13:12:55]SAM_PROTO_ClearQueue done [13:12:55]KKMCreateOFDPacket [13:12:55]OFDProtocolAddRootSTLVToBuf [13:12:55]FM_MakeSignedData [13:12:55]FM_MakeSignedData [13:12:55]SAM_PROTO_SignData [13:12:55]wFMCommunicate request_size=4 [13:12:55]MH_SAM_APDU [13:12:55]CAPDU: 80 0D 01 02 [13:12:55]Write to MH i2c: E2 08 00 E6 37 80 0D 01 02 00 00 00 00 96 [13:12:55]Write i2c OK [13:12:55]MH_I2C_Read... [13:12:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:12:55]Read from MH i2c: E2 [13:12:55]MH_I2C_Read... [13:12:55]Read from MH i2c: E2 03 00 [13:12:55]MH_I2C_Read... [13:12:55]Read from MH i2c: E2 03 00 E6 37 00 90 00 91 [13:12:55]RAPDU: 90 00 [13:12:55]wFMCommunicate OK [13:12:55]wFMCommunicate request_size=255 [13:12:55]MH_SAM_APDU [13:12:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 5B C1 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F8 0A 01 00 35 04 06 00 65 [13:12:55]Write to MH i2c: E2 02 01 E7 37 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 5B C1 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F8 0A 01 00 35 04 06 00 65 00 00 D1 [13:12:55]Write i2c OK [13:12:55]MH_I2C_Read... [13:12:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:56]Read from MH i2c: E2 [13:12:56]MH_I2C_Read... [13:12:56]Read from MH i2c: E2 03 00 [13:12:56]MH_I2C_Read... [13:12:56]Read from MH i2c: E2 03 00 E7 37 00 90 00 92 [13:12:56]RAPDU: 90 00 [13:12:56]wFMCommunicate OK [13:12:56]wFMCommunicate request_size=10 [13:12:56]MH_SAM_APDU [13:12:56]CAPDU: 80 0D 02 02 05 C3 F6 33 01 33 [13:12:56]Write to MH i2c: E2 0D 00 E8 37 80 0D 02 02 05 00 C3 F6 33 01 33 00 00 C3 [13:12:56]Write i2c OK [13:12:56]MH_I2C_Read... [13:12:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:56]Read from MH i2c: E2 [13:12:56]MH_I2C_Read... [13:12:56]Read from MH i2c: E2 03 00 [13:12:56]MH_I2C_Read... [13:12:56]Read from MH i2c: E2 03 00 E8 37 00 90 00 93 [13:12:56]RAPDU: 90 00 [13:12:56]wFMCommunicate OK [13:12:56]wFMCommunicate request_size=4 [13:12:56]MH_SAM_APDU [13:12:56]CAPDU: 80 0D 03 02 [13:12:56]Write to MH i2c: E2 08 00 E9 37 80 0D 03 02 00 00 00 00 9B [13:12:56]Write i2c OK [13:12:56]MH_I2C_Read... [13:12:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:12:56]Read from MH i2c: E2 [13:12:56]MH_I2C_Read... [13:12:56]Read from MH i2c: E2 0B 00 [13:12:56]MH_I2C_Read... [13:12:56]Read from MH i2c: E2 0B 00 E9 37 00 30 FA F8 F6 B8 58 0F D6 90 00 A9 [13:12:56]RAPDU: 30 FA F8 F6 B8 58 0F D6 90 00 [13:12:56]wFMCommunicate OK [13:12:56]SAM_PROTO_SignData done [13:12:56]FM_MakeSignedData done [13:12:56]CreateOFDProtocolMessage [13:12:56]wFMCommunicate request_size=4 [13:12:56]MH_SAM_APDU [13:12:56]CAPDU: 80 11 00 00 [13:12:56]Write to MH i2c: E2 08 00 EA 37 80 11 00 00 00 00 00 00 9B [13:12:56]Write i2c OK [13:12:56]MH_I2C_Read... [13:12:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:56]Read from MH i2c: E2 [13:12:56]MH_I2C_Read... [13:12:56]Read from MH i2c: E2 17 00 [13:12:56]MH_I2C_Read... [13:12:56]Read from MH i2c: E2 17 00 EA 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 E6 [13:12:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [13:12:56]wFMCommunicate OK [13:12:56]CreateOFDProtocolMessage done [13:12:56]OFDSenderStorePacket 68344 [13:12:56]StoreOFDPacket docnum=68344 [13:12:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 97 35 07 01 B6 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 5B C1 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F8 0A 01 00 35 04 06 00 65 C3 F6 33 01 33 30 FA F8 F6 B8 58 0F D6 [13:12:56]CheckFolder [13:12:56]dirname=/storage/ofd_packets [13:12:56]CheckFolder done [13:12:56]ProducePacketName [13:12:56]name=ofd_packets/00068344 [13:12:56]NVStorageSaveData ofd_packets/00068344 [13:12:56]File name is /storage/ofd_packets/00068344 [13:12:56]Write 301 bytes [13:12:56]NVStorageSaveData done [13:12:56]OFDSenderStorePacket done [13:12:56]KKMCreateOFDPacket done [13:12:56]NVStorageSaveData kkm_last_timestamp [13:12:56]File name is /storage/kkm_last_timestamp [13:12:56]Write 4 bytes [13:12:56]NVStorageSaveData done [13:12:56]ExternCall_PrintAddStr [13:12:56]wPrintStart [13:12:56]Write to MH i2c: 01 00 00 EB 37 22 [13:12:56]Write i2c OK [13:12:56]MH_I2C_Read... [13:12:56]Read from MH i2c: 01 [13:12:56]MH_I2C_Read... [13:12:56]Read from MH i2c: 01 07 00 [13:12:56]MH_I2C_Read... [13:12:56]Read from MH i2c: 01 07 00 EB 37 00 00 00 00 00 FF 0F 37 [13:12:56]RasterBufferAndPrint [13:12:56]line Счет N : (1)706431 [13:12:56]line ИНН: 02508201610067 [13:12:56]line Контрольно-Кассовый Чек [13:12:56]line ПРОДАЖА [13:12:56]line ТРК (МРК, ГНК) : 13 [13:12:56]line Товар: 2710124130 [13:12:56]line Аи-92-К-4 [13:12:56]line 2.990 * 66.90 [13:12:56]line = 200.03 [13:12:56]line НДС 12% НСП 1% [13:12:56]line > о реализуемом товаре [13:12:56]line ИТОГО: 200.03 [13:12:56]line НСП 1% : 1.77 [13:12:56]line НДС 12% : 21.24 [13:12:56]line Наличными: 0.00 [13:12:56]line Безнал.: 200.03 [13:12:56]line Место: АЗС № 62 "Партнер Нефть" [13:12:56]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [13:12:56]line СНО: Общий режим [13:12:56]line Чек 90 03.06.2024 13:12 [13:12:56]line Смена: 324 ФФД: 1.0 [13:12:56]line ЗНМ: 0300000181 [13:12:56]line РНМ: 0000000000098096 [13:12:56]line Версия ККМ: 001 [13:12:56]line Платежная система: O! деньги [13:12:56]line ФМ: 0000000000965400 [13:12:56]line ФД: 68344 [13:12:56]line ФПД: 111892323565875 [13:12:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T131259&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68344&fm=111892323565875&tin=02508201610067®Number=0000000000098096&sum=20003 [13:12:56]OFD Sender: Processing packet 68344 [packets to send 26, broken 25] [13:12:56]ProducePacketName [13:12:56]name=ofd_packets/00068344 [13:12:56]OFD Sender: To server: pG, [13:12:56]CommunicateWithHost lk.salyk.kg:30040 [13:12:56]ConnectInit lk.salyk.kg [13:12:56]written 0, free lines is 4095 [13:12:56]Connected sock=7 [13:12:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 97 35 07 01 B6 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 5B C1 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F8 0A 01 00 35 04 06 00 65 C3 F6 33 01 33 30 FA F8 F6 B8 58 0F D6 [13:12:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 43 77 47 00 78 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F8 0A 01 00 F4 03 04 00 57 68 5D 66 B6 04 01 00 00 2D 7F B8 80 F8 95 0D 7F [13:12:56]CommunicateWithHost err = 0 [13:12:56]CheckOFDResponse [13:12:56]1017 (14) - 77093643461234 [13:12:56]1041 (16) - 0000000000965400 [13:12:56]1040 (4) - 68344 [13:12:56]1012 (4) - 03.06.2024 06:53 [13:12:56]1206 (1) - 0 [13:12:56]OFD Sender: Remove packet 68344 [13:12:56]ProducePacketName [13:12:56]name=ofd_packets/00068344 [13:12:56]NVStorageDeleteData [13:12:57]Write to MH i2c: 01 00 00 15 38 4D [13:12:57]Write i2c OK [13:12:57]MH_I2C_Read... [13:12:57]Read from MH i2c: 01 [13:12:57]MH_I2C_Read... [13:12:57]Read from MH i2c: 01 07 00 [13:12:57]MH_I2C_Read... [13:12:57]Read from MH i2c: 01 07 00 15 38 00 00 00 00 00 F8 0C 58 [13:12:57]RasterBufferAndPrint [13:12:57]line [13:12:57]line [13:12:57]line [13:12:57]line [13:12:57]line [13:12:57]written 0, free lines is 3331 [13:12:57]MH_Cut [13:12:57]Write to MH i2c: D1 01 00 1C 38 01 26 [13:12:57]Write i2c OK [13:12:57]MH_I2C_Read... [13:12:57]Read from MH i2c: D1 [13:12:57]MH_I2C_Read... [13:12:57]Read from MH i2c: D1 01 00 [13:12:57]MH_I2C_Read... [13:12:57]Read from MH i2c: D1 01 00 1C 38 00 25 [13:12:57]Write to MH i2c: 01 00 00 1D 38 55 [13:12:57]Write i2c OK [13:12:57]MH_I2C_Read... [13:12:57]OFD Sender: No OFD packet to send [13:12:57]*** Cut start [13:12:57]*** Partial cut [13:12:57]*** CUTSNS_PIN = 1 [13:12:57]*** CUTSNS_PIN = 0 [13:12:58]*** Brake cut motor [13:12:58]Read from MH i2c: 01 [13:12:58]MH_I2C_Read... [13:12:58]*** Stop cut motor [13:12:58]*** Cut end [13:12:58]Read from MH i2c: 01 07 00 [13:12:58]MH_I2C_Read... [13:12:58]Read from MH i2c: 01 07 00 1D 38 00 00 00 00 00 FF 0F 6A [13:12:58]process_action close_receipt done [13:12:58]requested_data is exist [13:12:58]produce_requested_data [13:12:58]requested_item fm.sn is exist - process it [13:12:58]wFMCommunicate request_size=4 [13:12:58]MH_SAM_APDU [13:12:58]CAPDU: 80 11 00 00 [13:12:58]Write to MH i2c: E2 08 00 1E 38 80 11 00 00 00 00 00 00 D0 [13:12:58]Write i2c OK [13:12:58]MH_I2C_Read... [13:12:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:58]Read from MH i2c: E2 [13:12:58]MH_I2C_Read... [13:12:58]Read from MH i2c: E2 17 00 [13:12:58]MH_I2C_Read... [13:12:58]Read from MH i2c: E2 17 00 1E 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 1B [13:12:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [13:12:58]wFMCommunicate OK [13:12:58]requested_item fd.num is exist - process it [13:12:58]SAM_PROTO_GetFieldsCounters [13:12:58]wFMCommunicate request_size=4 [13:12:58]MH_SAM_APDU [13:12:58]CAPDU: 80 13 00 00 [13:12:58]Write to MH i2c: E2 08 00 1F 38 80 13 00 00 00 00 00 00 D3 [13:12:58]Write i2c OK [13:12:58]MH_I2C_Read... [13:12:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:12:58]Read from MH i2c: E2 [13:12:58]MH_I2C_Read... [13:12:58]Read from MH i2c: E2 62 00 [13:12:58]MH_I2C_Read... [13:12:58]Read from MH i2c: E2 62 00 1F 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 F8 0A 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 49 [13:12:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 F8 0A 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:12:58]wFMCommunicate OK [13:12:58]SAM_PROTO_GetFieldsCounters done [13:12:58]requested_item shift.num is exist - process it [13:12:58]requested_item shift.opened is exist - process it [13:12:58]req_shift_opened [13:12:58]FM_GetShiftState [13:12:58]SAM_PROTO_GetShiftState [13:12:58]wFMCommunicate request_size=4 [13:12:58]MH_SAM_APDU [13:12:58]CAPDU: 80 13 01 00 [13:12:58]Write to MH i2c: E2 08 00 20 38 80 13 01 00 00 00 00 00 D5 [13:12:58]Write i2c OK [13:12:58]MH_I2C_Read... [13:12:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:58]Read from MH i2c: E2 [13:12:58]MH_I2C_Read... [13:12:58]Read from MH i2c: E2 0E 00 [13:12:58]MH_I2C_Read... [13:12:58]Read from MH i2c: E2 0E 00 20 38 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 B0 [13:12:58]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [13:12:58]wFMCommunicate OK [13:12:58]SAM_PROTO_GetShiftState done [13:12:58]FM_GetShiftState done [13:12:58]req_shift_opened done [13:12:58]requested_item shift.open_date is exist - process it [13:12:58]req_shift_open_date [13:12:58]req_shift_open_date done [13:12:58]produce_requested_data done [13:12:58]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68344,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [13:12:58]process_action_free close_receipt [13:12:58]json_value_free [13:12:58]json_value_free done [13:12:58]process_json_proto returns [13:12:58]Send response to host [13:12:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68344,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [13:12:58]free response buf [13:12:58]execute_script done [13:12:58]execute_script returns [13:12:58]free content buf [13:12:58]Sock 5.Close socket [13:12:58]Sock 5.Thread stoped [13:13:02]OFD Sender: No OFD packet to send [13:13:07]OFD Sender: No OFD packet to send [13:13:12]OFD Sender: No OFD packet to send [13:13:17]OFD Sender: No OFD packet to send [13:13:22]OFD Sender: No OFD packet to send [13:13:27]OFD Sender: No OFD packet to send [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:57]OFD Sender: No OFD packet to send [13:14:02]OFD Sender: No OFD packet to send [13:14:07]OFD Sender: No OFD packet to send [13:14:12]OFD Sender: No OFD packet to send [13:14:17]OFD Sender: No OFD packet to send [13:14:22]OFD Sender: No OFD packet to send [13:14:27]OFD Sender: No OFD packet to send [13:14:28]accept exits with 6 [13:14:28]New connection [13:14:28]New thread 3066686820 created [13:14:28]Thread 3066543460 joined [13:14:28]Waiting for new connection... [13:14:28] Sock 6.Parse request [13:14:28]Sock 6.Check first char [13:14:28]Sock 6.First char is OK [13:14:28]request: POST /json_proto HTTP/1.0 [13:14:28]Method: POST [13:14:28]URL: /json_proto [13:14:28]Method is POST - this is cgi request [13:14:28]url: /json_proto [13:14:28]query_string will be loaded in cgi processing [13:14:28]execute_cgi json_proto POST (null) [13:14:28]execute_cgi path=json_proto method=POST [13:14:28]POST find Content-Length [13:14:28]Host: 172.17.36.132:8080 [13:14:28]Content-Length: 678 [13:14:28]Content-Type: application/json [13:14:28] [13:14:28]POST finish read [13:14:28]Found Content-Length = 678 [13:14:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706432", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:14:28]execute_script... [13:14:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706432", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:14:28]POST & json_proto [13:14:28]process_json_proto [13:14:28]json parsed OK: [13:14:28]protocol is kg_v1.0 [13:14:28]action value=close_receipt [13:14:28]process_action close_receipt [13:14:28]cmd_close_receipt [13:14:28]MH_GetDate [13:14:28]Write to MH i2c: F0 00 00 21 38 48 [13:14:28]Write i2c OK [13:14:28]MH_I2C_Read... [13:14:28]Read from MH i2c: F0 [13:14:28]MH_I2C_Read... [13:14:28]Read from MH i2c: F0 09 00 [13:14:28]MH_I2C_Read... [13:14:28]Read from MH i2c: F0 09 00 21 38 00 B9 C1 5D 66 B2 22 B0 64 76 [13:14:28]GetLastDocTimeStamp 1717420379 [13:14:28]current date 1717420473 [13:14:28]FM_GetShiftState [13:14:28]SAM_PROTO_GetShiftState [13:14:28]wFMCommunicate request_size=4 [13:14:28]MH_SAM_APDU [13:14:28]CAPDU: 80 13 01 00 [13:14:28]Write to MH i2c: E2 08 00 22 38 80 13 01 00 00 00 00 00 D7 [13:14:28]Write i2c OK [13:14:28]MH_I2C_Read... [13:14:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:14:28]Read from MH i2c: E2 [13:14:28]MH_I2C_Read... [13:14:28]Read from MH i2c: E2 0E 00 [13:14:28]MH_I2C_Read... [13:14:28]Read from MH i2c: E2 0E 00 22 38 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 B2 [13:14:28]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [13:14:28]wFMCommunicate OK [13:14:28]SAM_PROTO_GetShiftState done [13:14:28]FM_GetShiftState done [13:14:28]opened in 1717378033 [13:14:28]opened+sec_in_day 1717464433 [13:14:28]quantity*price = 70044 [13:14:28]sum+1 = 70045 [13:14:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 91 03.06.2024 13:14 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68345 ФПД: 243454101457080 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T131433&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68345&fm=243454101457080&tin=02508201610067®Number=0000000000098096&sum=70000 [13:14:29]StoreToDocumentArchive [13:14:29]shift 324 fd 68345 [13:14:29]save to /storage/0324/doc_00068345 [13:14:29]save last doc name /storage/0324/doc_00068345 to /storage/kkm_last_doc_name [13:14:29]save OK [13:14:29]Clear old archive folders... [13:14:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:14:29]tlvbuf is 001BCBB0 [13:14:29]SAM_PROTO_ClearQueue [13:14:29]wFMCommunicate request_size=4 [13:14:29]MH_SAM_APDU [13:14:29]CAPDU: 80 09 00 00 [13:14:29]Write to MH i2c: E2 08 00 2F 38 80 09 00 00 00 00 00 00 D9 [13:14:29]Write i2c OK [13:14:29]MH_I2C_Read... [13:14:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:14:29]Read from MH i2c: E2 [13:14:29]MH_I2C_Read... [13:14:29]Read from MH i2c: E2 03 00 [13:14:29]MH_I2C_Read... [13:14:29]Read from MH i2c: E2 03 00 2F 38 00 90 00 DB [13:14:29]RAPDU: 90 00 [13:14:29]wFMCommunicate OK [13:14:29]SAM_PROTO_ClearQueue done [13:14:29]KKMCreateOFDPacket [13:14:29]OFDProtocolAddRootSTLVToBuf [13:14:29]FM_MakeSignedData [13:14:29]FM_MakeSignedData [13:14:29]SAM_PROTO_SignData [13:14:29]wFMCommunicate request_size=4 [13:14:29]MH_SAM_APDU [13:14:29]CAPDU: 80 0D 01 02 [13:14:29]Write to MH i2c: E2 08 00 30 38 80 0D 01 02 00 00 00 00 E1 [13:14:29]Write i2c OK [13:14:29]MH_I2C_Read... [13:14:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:14:29]Read from MH i2c: E2 [13:14:29]MH_I2C_Read... [13:14:29]Read from MH i2c: E2 03 00 [13:14:29]MH_I2C_Read... [13:14:29]Read from MH i2c: E2 03 00 30 38 00 90 00 DC [13:14:29]RAPDU: 90 00 [13:14:29]wFMCommunicate OK [13:14:29]wFMCommunicate request_size=255 [13:14:29]MH_SAM_APDU [13:14:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 B9 C1 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F9 0A 01 00 35 04 06 00 DD [13:14:29]Write to MH i2c: E2 02 01 31 38 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 B9 C1 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F9 0A 01 00 35 04 06 00 DD 00 00 3C [13:14:29]Write i2c OK [13:14:29]MH_I2C_Read... [13:14:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:14:29]Read from MH i2c: E2 [13:14:29]MH_I2C_Read... [13:14:29]Read from MH i2c: E2 03 00 [13:14:29]MH_I2C_Read... [13:14:29]Read from MH i2c: E2 03 00 31 38 00 90 00 DD [13:14:29]RAPDU: 90 00 [13:14:29]wFMCommunicate OK [13:14:29]wFMCommunicate request_size=10 [13:14:29]MH_SAM_APDU [13:14:29]CAPDU: 80 0D 02 02 05 6B 93 3C 88 B8 [13:14:29]Write to MH i2c: E2 0D 00 32 38 80 0D 02 02 05 00 6B 93 3C 88 B8 00 00 68 [13:14:29]Write i2c OK [13:14:29]MH_I2C_Read... [13:14:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:14:29]Read from MH i2c: E2 [13:14:29]MH_I2C_Read... [13:14:29]Read from MH i2c: E2 03 00 [13:14:29]MH_I2C_Read... [13:14:29]Read from MH i2c: E2 03 00 32 38 00 90 00 DE [13:14:29]RAPDU: 90 00 [13:14:29]wFMCommunicate OK [13:14:29]wFMCommunicate request_size=4 [13:14:29]MH_SAM_APDU [13:14:29]CAPDU: 80 0D 03 02 [13:14:29]Write to MH i2c: E2 08 00 33 38 80 0D 03 02 00 00 00 00 E6 [13:14:29]Write i2c OK [13:14:29]MH_I2C_Read... [13:14:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:14:29]Read from MH i2c: E2 [13:14:29]MH_I2C_Read... [13:14:29]Read from MH i2c: E2 0B 00 [13:14:29]MH_I2C_Read... [13:14:29]Read from MH i2c: E2 0B 00 33 38 00 8A 83 0A 96 D1 CD 73 8E 90 00 33 [13:14:29]RAPDU: 8A 83 0A 96 D1 CD 73 8E 90 00 [13:14:29]wFMCommunicate OK [13:14:29]SAM_PROTO_SignData done [13:14:29]FM_MakeSignedData done [13:14:29]CreateOFDProtocolMessage [13:14:29]wFMCommunicate request_size=4 [13:14:29]MH_SAM_APDU [13:14:29]CAPDU: 80 11 00 00 [13:14:29]Write to MH i2c: E2 08 00 34 38 80 11 00 00 00 00 00 00 E6 [13:14:29]Write i2c OK [13:14:29]MH_I2C_Read... [13:14:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:14:29]Read from MH i2c: E2 [13:14:29]MH_I2C_Read... [13:14:29]Read from MH i2c: E2 17 00 [13:14:29]MH_I2C_Read... [13:14:29]Read from MH i2c: E2 17 00 34 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 31 [13:14:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [13:14:29]wFMCommunicate OK [13:14:29]CreateOFDProtocolMessage done [13:14:29]OFDSenderStorePacket 68345 [13:14:29]StoreOFDPacket docnum=68345 [13:14:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 EB 1A 07 01 B2 C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 B9 C1 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F9 0A 01 00 35 04 06 00 DD 6B 93 3C 88 B8 8A 83 0A 96 D1 CD 73 8E [13:14:29]CheckFolder [13:14:29]dirname=/storage/ofd_packets [13:14:29]CheckFolder done [13:14:29]ProducePacketName [13:14:29]name=ofd_packets/00068345 [13:14:29]NVStorageSaveData ofd_packets/00068345 [13:14:29]File name is /storage/ofd_packets/00068345 [13:14:29]Write 301 bytes [13:14:29]NVStorageSaveData done [13:14:29]OFDSenderStorePacket done [13:14:29]KKMCreateOFDPacket done [13:14:29]NVStorageSaveData kkm_last_timestamp [13:14:29]File name is /storage/kkm_last_timestamp [13:14:29]Write 4 bytes [13:14:29]NVStorageSaveData done [13:14:29]ExternCall_PrintAddStr [13:14:29]wPrintStart [13:14:29]Write to MH i2c: 01 00 00 35 38 6D [13:14:29]Write i2c OK [13:14:29]MH_I2C_Read... [13:14:29]Read from MH i2c: 01 [13:14:29]MH_I2C_Read... [13:14:29]Read from MH i2c: 01 07 00 [13:14:29]MH_I2C_Read... [13:14:29]Read from MH i2c: 01 07 00 35 38 00 00 00 00 00 FF 0F 82 [13:14:29]RasterBufferAndPrint [13:14:29]line Счет N : (1)706432 [13:14:29]line ИНН: 02508201610067 [13:14:29]line Контрольно-Кассовый Чек [13:14:29]line ПРОДАЖА [13:14:29]line ТРК (МРК, ГНК) : 23 [13:14:29]line Товар: 2710124130 [13:14:29]line Аи-92-К-4 [13:14:29]line 10.470 * 66.90 [13:14:29]line = 700.44 [13:14:29]line НДС 12% НСП 1% [13:14:29]line > о реализуемом товаре [13:14:29]line ОКРУГЛЕНИЕ: -0.44 [13:14:29]line ИТОГО: 700.00 [13:14:29]line Внесено: 700.00 [13:14:29]line СДАЧА: 0.00 [13:14:29]line НСП 1% : 6.20 [13:14:29]line НДС 12% : 74.38 [13:14:29]line Наличными: 700.00 [13:14:29]line Безнал.: 0.00 [13:14:29]line Место: АЗС № 62 "Партнер Нефть" [13:14:29]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [13:14:29]line СНО: Общий режим [13:14:29]line Чек 91 03.06.2024 13:14 [13:14:29]line Смена: 324 ФФД: 1.0 [13:14:29]line ЗНМ: 0300000181 [13:14:29]line РНМ: 0000000000098096 [13:14:29]line Версия ККМ: 001 [13:14:29]line ФМ: 0000000000965400 [13:14:30]line ФД: 68345 [13:14:30]line ФПД: 243454101457080 [13:14:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T131433&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68345&fm=243454101457080&tin=02508201610067®Number=0000000000098096&sum=70000 [13:14:30]OFD Sender: Processing packet 68345 [packets to send 26, broken 25] [13:14:30]ProducePacketName [13:14:30]name=ofd_packets/00068345 [13:14:30]OFD Sender: To server: pG, [13:14:30]CommunicateWithHost lk.salyk.kg:30040 [13:14:30]ConnectInit lk.salyk.kg [13:14:30]written 0, free lines is 4095 [13:14:30]Connected sock=7 [13:14:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 EB 1A 07 01 B2 C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 B9 C1 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F9 0A 01 00 35 04 06 00 DD 6B 93 3C 88 B8 8A 83 0A 96 D1 CD 73 8E [13:14:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 93 94 47 00 BE 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 F9 0A 01 00 F4 03 04 00 B5 68 5D 66 B6 04 01 00 00 51 FB C3 DD 7E 61 39 55 [13:14:30]CommunicateWithHost err = 0 [13:14:30]CheckOFDResponse [13:14:30]1017 (14) - 77093643461234 [13:14:30]1041 (16) - 0000000000965400 [13:14:30]1040 (4) - 68345 [13:14:30]1012 (4) - 03.06.2024 06:54 [13:14:30]1206 (1) - 0 [13:14:30]OFD Sender: Remove packet 68345 [13:14:30]ProducePacketName [13:14:30]name=ofd_packets/00068345 [13:14:30]NVStorageDeleteData [13:14:30]Write to MH i2c: 01 00 00 60 38 98 [13:14:30]Write i2c OK [13:14:30]MH_I2C_Read... [13:14:30]Read from MH i2c: 01 [13:14:30]MH_I2C_Read... [13:14:30]Read from MH i2c: 01 07 00 [13:14:30]MH_I2C_Read... [13:14:30]Read from MH i2c: 01 07 00 60 38 00 00 00 00 00 D7 0C 82 [13:14:30]RasterBufferAndPrint [13:14:30]line [13:14:30]line [13:14:30]line [13:14:30]line [13:14:30]line [13:14:30]written 0, free lines is 3294 [13:14:30]MH_Cut [13:14:30]Write to MH i2c: D1 01 00 67 38 01 71 [13:14:30]Write i2c OK [13:14:30]MH_I2C_Read... [13:14:30]Read from MH i2c: D1 [13:14:30]MH_I2C_Read... [13:14:30]Read from MH i2c: D1 01 00 [13:14:30]MH_I2C_Read... [13:14:30]Read from MH i2c: D1 01 00 67 38 00 70 [13:14:30]Write to MH i2c: 01 00 00 68 38 A0 [13:14:30]Write i2c OK [13:14:30]MH_I2C_Read... [13:14:31]OFD Sender: No OFD packet to send [13:14:31]*** Cut start [13:14:31]*** Partial cut [13:14:31]*** CUTSNS_PIN = 1 [13:14:31]*** CUTSNS_PIN = 0 [13:14:31]*** Brake cut motor [13:14:32]Read from MH i2c: 01 [13:14:32]MH_I2C_Read... [13:14:32]*** Stop cut motor [13:14:32]*** Cut end [13:14:32]Read from MH i2c: 01 07 00 [13:14:32]MH_I2C_Read... [13:14:32]Read from MH i2c: 01 07 00 68 38 00 00 00 00 00 FF 0F B5 [13:14:32]process_action close_receipt done [13:14:32]requested_data is exist [13:14:32]produce_requested_data [13:14:32]requested_item fm.sn is exist - process it [13:14:32]wFMCommunicate request_size=4 [13:14:32]MH_SAM_APDU [13:14:32]CAPDU: 80 11 00 00 [13:14:32]Write to MH i2c: E2 08 00 69 38 80 11 00 00 00 00 00 00 1B [13:14:32]Write i2c OK [13:14:32]MH_I2C_Read... [13:14:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:14:32]Read from MH i2c: E2 [13:14:32]MH_I2C_Read... [13:14:32]Read from MH i2c: E2 17 00 [13:14:32]MH_I2C_Read... [13:14:32]Read from MH i2c: E2 17 00 69 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 66 [13:14:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [13:14:32]wFMCommunicate OK [13:14:32]requested_item fd.num is exist - process it [13:14:32]SAM_PROTO_GetFieldsCounters [13:14:32]wFMCommunicate request_size=4 [13:14:32]MH_SAM_APDU [13:14:32]CAPDU: 80 13 00 00 [13:14:32]Write to MH i2c: E2 08 00 6A 38 80 13 00 00 00 00 00 00 1E [13:14:32]Write i2c OK [13:14:32]MH_I2C_Read... [13:14:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:14:32]Read from MH i2c: E2 [13:14:32]MH_I2C_Read... [13:14:32]Read from MH i2c: E2 62 00 [13:14:32]MH_I2C_Read... [13:14:32]Read from MH i2c: E2 62 00 6A 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 F9 0A 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 98 [13:14:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 F9 0A 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:14:32]wFMCommunicate OK [13:14:32]SAM_PROTO_GetFieldsCounters done [13:14:32]requested_item shift.num is exist - process it [13:14:32]requested_item shift.opened is exist - process it [13:14:32]req_shift_opened [13:14:32]FM_GetShiftState [13:14:32]SAM_PROTO_GetShiftState [13:14:32]wFMCommunicate request_size=4 [13:14:32]MH_SAM_APDU [13:14:32]CAPDU: 80 13 01 00 [13:14:32]Write to MH i2c: E2 08 00 6B 38 80 13 01 00 00 00 00 00 20 [13:14:32]Write i2c OK [13:14:32]MH_I2C_Read... [13:14:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:14:32]Read from MH i2c: E2 [13:14:32]MH_I2C_Read... [13:14:32]Read from MH i2c: E2 0E 00 [13:14:32]MH_I2C_Read... [13:14:32]Read from MH i2c: E2 0E 00 6B 38 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 FB [13:14:32]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [13:14:32]wFMCommunicate OK [13:14:32]SAM_PROTO_GetShiftState done [13:14:32]FM_GetShiftState done [13:14:32]req_shift_opened done [13:14:32]requested_item shift.open_date is exist - process it [13:14:32]req_shift_open_date [13:14:32]req_shift_open_date done [13:14:32]produce_requested_data done [13:14:32]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68345,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [13:14:32]process_action_free close_receipt [13:14:32]json_value_free [13:14:32]json_value_free done [13:14:32]process_json_proto returns [13:14:32]Send response to host [13:14:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68345,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [13:14:32]free response buf [13:14:32]execute_script done [13:14:32]execute_script returns [13:14:32]free content buf [13:14:32]Sock 6.Close socket [13:14:32]Sock 6.Thread stoped [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:05]accept exits with 5 [13:15:05]New connection [13:15:05]New thread 3066543460 created [13:15:05]Thread 3066686820 joined [13:15:05]Waiting for new connection... [13:15:05] Sock 5.Parse request [13:15:05]Sock 5.Check first char [13:15:05]Sock 5.First char is OK [13:15:05]request: POST /json_proto HTTP/1.0 [13:15:05]Method: POST [13:15:05]URL: /json_proto [13:15:05]Method is POST - this is cgi request [13:15:05]url: /json_proto [13:15:05]query_string will be loaded in cgi processing [13:15:05]execute_cgi json_proto POST (null) [13:15:05]execute_cgi path=json_proto method=POST [13:15:05]POST find Content-Length [13:15:05]Host: 172.17.36.132:8080 [13:15:05]Content-Length: 677 [13:15:05]Content-Type: application/json [13:15:05] [13:15:05]POST finish read [13:15:05]Found Content-Length = 677 [13:15:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706433", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:15:05]execute_script... [13:15:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706433", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:15:05]POST & json_proto [13:15:05]process_json_proto [13:15:05]json parsed OK: [13:15:05]protocol is kg_v1.0 [13:15:05]action value=close_receipt [13:15:05]process_action close_receipt [13:15:05]cmd_close_receipt [13:15:05]MH_GetDate [13:15:05]Write to MH i2c: F0 00 00 6C 38 93 [13:15:05]Write i2c OK [13:15:05]MH_I2C_Read... [13:15:05]Read from MH i2c: F0 [13:15:05]MH_I2C_Read... [13:15:05]Read from MH i2c: F0 09 00 [13:15:05]MH_I2C_Read... [13:15:05]Read from MH i2c: F0 09 00 6C 38 00 DE C1 5D 66 B2 22 B0 64 E6 [13:15:05]GetLastDocTimeStamp 1717420473 [13:15:05]current date 1717420510 [13:15:05]FM_GetShiftState [13:15:05]SAM_PROTO_GetShiftState [13:15:05]wFMCommunicate request_size=4 [13:15:05]MH_SAM_APDU [13:15:05]CAPDU: 80 13 01 00 [13:15:05]Write to MH i2c: E2 08 00 6D 38 80 13 01 00 00 00 00 00 22 [13:15:05]Write i2c OK [13:15:05]MH_I2C_Read... [13:15:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:05]Read from MH i2c: E2 [13:15:05]MH_I2C_Read... [13:15:05]Read from MH i2c: E2 0E 00 [13:15:05]MH_I2C_Read... [13:15:05]Read from MH i2c: E2 0E 00 6D 38 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 FD [13:15:05]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [13:15:05]wFMCommunicate OK [13:15:05]SAM_PROTO_GetShiftState done [13:15:05]FM_GetShiftState done [13:15:05]opened in 1717378033 [13:15:05]opened+sec_in_day 1717464433 [13:15:05]quantity*price = 30038 [13:15:05]sum+1 = 30039 [13:15:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 92 03.06.2024 13:15 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68346 ФПД: 2428526045121 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T131511&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68346&fm=2428526045121&tin=02508201610067®Number=0000000000098096&sum=30000 [13:15:06]StoreToDocumentArchive [13:15:06]shift 324 fd 68346 [13:15:06]save to /storage/0324/doc_00068346 [13:15:06]save last doc name /storage/0324/doc_00068346 to /storage/kkm_last_doc_name [13:15:06]save OK [13:15:06]Clear old archive folders... [13:15:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:15:06]tlvbuf is 005AD130 [13:15:06]SAM_PROTO_ClearQueue [13:15:06]wFMCommunicate request_size=4 [13:15:06]MH_SAM_APDU [13:15:06]CAPDU: 80 09 00 00 [13:15:06]Write to MH i2c: E2 08 00 7A 38 80 09 00 00 00 00 00 00 24 [13:15:06]Write i2c OK [13:15:06]MH_I2C_Read... [13:15:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:15:06]Read from MH i2c: E2 [13:15:06]MH_I2C_Read... [13:15:06]Read from MH i2c: E2 03 00 [13:15:06]MH_I2C_Read... [13:15:06]Read from MH i2c: E2 03 00 7A 38 00 90 00 26 [13:15:06]RAPDU: 90 00 [13:15:06]wFMCommunicate OK [13:15:06]SAM_PROTO_ClearQueue done [13:15:06]KKMCreateOFDPacket [13:15:06]OFDProtocolAddRootSTLVToBuf [13:15:06]FM_MakeSignedData [13:15:06]FM_MakeSignedData [13:15:06]SAM_PROTO_SignData [13:15:06]wFMCommunicate request_size=4 [13:15:06]MH_SAM_APDU [13:15:06]CAPDU: 80 0D 01 02 [13:15:06]Write to MH i2c: E2 08 00 7B 38 80 0D 01 02 00 00 00 00 2C [13:15:06]Write i2c OK [13:15:06]MH_I2C_Read... [13:15:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:15:06]Read from MH i2c: E2 [13:15:06]MH_I2C_Read... [13:15:06]Read from MH i2c: E2 03 00 [13:15:06]MH_I2C_Read... [13:15:06]Read from MH i2c: E2 03 00 7B 38 00 90 00 27 [13:15:06]RAPDU: 90 00 [13:15:06]wFMCommunicate OK [13:15:06]wFMCommunicate request_size=255 [13:15:06]MH_SAM_APDU [13:15:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 DF C1 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 FA 0A 01 00 35 04 06 00 02 [13:15:06]Write to MH i2c: E2 02 01 7C 38 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 DF C1 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 FA 0A 01 00 35 04 06 00 02 00 00 B8 [13:15:06]Write i2c OK [13:15:06]MH_I2C_Read... [13:15:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:07]Read from MH i2c: E2 [13:15:07]MH_I2C_Read... [13:15:07]Read from MH i2c: E2 03 00 [13:15:07]MH_I2C_Read... [13:15:07]Read from MH i2c: E2 03 00 7C 38 00 90 00 28 [13:15:07]RAPDU: 90 00 [13:15:07]wFMCommunicate OK [13:15:07]wFMCommunicate request_size=10 [13:15:07]MH_SAM_APDU [13:15:07]CAPDU: 80 0D 02 02 05 35 6F 6E A7 C1 [13:15:07]Write to MH i2c: E2 0D 00 7D 38 80 0D 02 02 05 00 35 6F 6E A7 C1 00 00 B3 [13:15:07]Write i2c OK [13:15:07]MH_I2C_Read... [13:15:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:07]Read from MH i2c: E2 [13:15:07]MH_I2C_Read... [13:15:07]Read from MH i2c: E2 03 00 [13:15:07]MH_I2C_Read... [13:15:07]Read from MH i2c: E2 03 00 7D 38 00 90 00 29 [13:15:07]RAPDU: 90 00 [13:15:07]wFMCommunicate OK [13:15:07]wFMCommunicate request_size=4 [13:15:07]MH_SAM_APDU [13:15:07]CAPDU: 80 0D 03 02 [13:15:07]Write to MH i2c: E2 08 00 7E 38 80 0D 03 02 00 00 00 00 31 [13:15:07]Write i2c OK [13:15:07]MH_I2C_Read... [13:15:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:15:07]Read from MH i2c: E2 [13:15:07]MH_I2C_Read... [13:15:07]Read from MH i2c: E2 0B 00 [13:15:07]MH_I2C_Read... [13:15:07]Read from MH i2c: E2 0B 00 7E 38 00 AA 44 8A 0A FF A3 08 BB 90 00 19 [13:15:07]RAPDU: AA 44 8A 0A FF A3 08 BB 90 00 [13:15:07]wFMCommunicate OK [13:15:07]SAM_PROTO_SignData done [13:15:07]FM_MakeSignedData done [13:15:07]CreateOFDProtocolMessage [13:15:07]wFMCommunicate request_size=4 [13:15:07]MH_SAM_APDU [13:15:07]CAPDU: 80 11 00 00 [13:15:07]Write to MH i2c: E2 08 00 7F 38 80 11 00 00 00 00 00 00 31 [13:15:07]Write i2c OK [13:15:07]MH_I2C_Read... [13:15:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:07]Read from MH i2c: E2 [13:15:07]MH_I2C_Read... [13:15:07]Read from MH i2c: E2 17 00 [13:15:07]MH_I2C_Read... [13:15:07]Read from MH i2c: E2 17 00 7F 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 7C [13:15:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [13:15:07]wFMCommunicate OK [13:15:07]CreateOFDProtocolMessage done [13:15:07]OFDSenderStorePacket 68346 [13:15:07]StoreOFDPacket docnum=68346 [13:15:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 CA 2C 07 01 B2 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 DF C1 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 FA 0A 01 00 35 04 06 00 02 35 6F 6E A7 C1 AA 44 8A 0A FF A3 08 BB [13:15:07]CheckFolder [13:15:07]dirname=/storage/ofd_packets [13:15:07]CheckFolder done [13:15:07]ProducePacketName [13:15:07]name=ofd_packets/00068346 [13:15:07]NVStorageSaveData ofd_packets/00068346 [13:15:07]File name is /storage/ofd_packets/00068346 [13:15:07]Write 301 bytes [13:15:07]NVStorageSaveData done [13:15:07]OFDSenderStorePacket done [13:15:07]KKMCreateOFDPacket done [13:15:07]NVStorageSaveData kkm_last_timestamp [13:15:07]File name is /storage/kkm_last_timestamp [13:15:07]Write 4 bytes [13:15:07]NVStorageSaveData done [13:15:07]ExternCall_PrintAddStr [13:15:07]wPrintStart [13:15:07]Write to MH i2c: 01 00 00 80 38 B8 [13:15:07]Write i2c OK [13:15:07]MH_I2C_Read... [13:15:07]Read from MH i2c: 01 [13:15:07]MH_I2C_Read... [13:15:07]Read from MH i2c: 01 07 00 [13:15:07]MH_I2C_Read... [13:15:07]Read from MH i2c: 01 07 00 80 38 00 00 00 00 00 FF 0F CD [13:15:07]RasterBufferAndPrint [13:15:07]line Счет N : (1)706433 [13:15:07]line ИНН: 02508201610067 [13:15:07]line Контрольно-Кассовый Чек [13:15:07]line ПРОДАЖА [13:15:07]line ТРК (МРК, ГНК) : 63 [13:15:07]line Товар: 2710124130 [13:15:07]line Аи-92-К-4 [13:15:07]line 4.490 * 66.90 [13:15:07]line = 300.38 [13:15:07]line НДС 12% НСП 1% [13:15:07]line > о реализуемом товаре [13:15:07]line ОКРУГЛЕНИЕ: -0.38 [13:15:07]line ИТОГО: 300.00 [13:15:07]line Внесено: 300.00 [13:15:07]line СДАЧА: 0.00 [13:15:07]line НСП 1% : 2.66 [13:15:07]line НДС 12% : 31.90 [13:15:07]line Наличными: 300.00 [13:15:07]line Безнал.: 0.00 [13:15:07]line Место: АЗС № 62 "Партнер Нефть" [13:15:07]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [13:15:07]line СНО: Общий режим [13:15:07]line Чек 92 03.06.2024 13:15 [13:15:07]line Смена: 324 ФФД: 1.0 [13:15:07]line ЗНМ: 0300000181 [13:15:07]line РНМ: 0000000000098096 [13:15:07]line Версия ККМ: 001 [13:15:07]line ФМ: 0000000000965400 [13:15:07]line ФД: 68346 [13:15:07]line ФПД: 2428526045121 [13:15:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T131511&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68346&fm=2428526045121&tin=02508201610067®Number=0000000000098096&sum=30000 [13:15:07]OFD Sender: Processing packet 68346 [packets to send 26, broken 25] [13:15:07]ProducePacketName [13:15:07]name=ofd_packets/00068346 [13:15:07]OFD Sender: To server: pG, [13:15:07]CommunicateWithHost lk.salyk.kg:30040 [13:15:07]ConnectInit lk.salyk.kg [13:15:07]written 0, free lines is 4095 [13:15:07]Connected sock=6 [13:15:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 CA 2C 07 01 B2 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 DF C1 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 FA 0A 01 00 35 04 06 00 02 35 6F 6E A7 C1 AA 44 8A 0A FF A3 08 BB [13:15:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 DB E0 47 00 41 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 39 36 35 34 30 30 10 04 04 00 FA 0A 01 00 F4 03 04 00 DA 68 5D 66 B6 04 01 00 00 59 B6 FC 85 2E 12 23 3F [13:15:08]CommunicateWithHost err = 0 [13:15:08]CheckOFDResponse [13:15:08]1017 (14) - 77093643461234 [13:15:08]1041 (16) - 0000000000965400 [13:15:08]1040 (4) - 68346 [13:15:08]1012 (4) - 03.06.2024 06:55 [13:15:08]1206 (1) - 0 [13:15:08]OFD Sender: Remove packet 68346 [13:15:08]ProducePacketName [13:15:08]name=ofd_packets/00068346 [13:15:08]NVStorageDeleteData [13:15:08]Write to MH i2c: 01 00 00 AB 38 E3 [13:15:08]Write i2c OK [13:15:08]MH_I2C_Read... [13:15:08]Read from MH i2c: 01 [13:15:08]MH_I2C_Read... [13:15:08]Read from MH i2c: 01 07 00 [13:15:08]MH_I2C_Read... [13:15:08]Read from MH i2c: 01 07 00 AB 38 00 00 00 00 00 E4 0C DA [13:15:08]RasterBufferAndPrint [13:15:08]line [13:15:08]line [13:15:08]line [13:15:08]line [13:15:08]line [13:15:08]written 0, free lines is 3306 [13:15:08]MH_Cut [13:15:08]Write to MH i2c: D1 01 00 B2 38 01 BC [13:15:08]Write i2c OK [13:15:08]MH_I2C_Read... [13:15:08]Read from MH i2c: D1 [13:15:08]MH_I2C_Read... [13:15:08]Read from MH i2c: D1 01 00 [13:15:08]MH_I2C_Read... [13:15:08]Read from MH i2c: D1 01 00 B2 38 00 BB [13:15:08]Write to MH i2c: 01 00 00 B3 38 EB [13:15:08]Write i2c OK [13:15:08]MH_I2C_Read... [13:15:08]OFD Sender: No OFD packet to send [13:15:08]*** Cut start [13:15:08]*** Partial cut [13:15:08]*** CUTSNS_PIN = 1 [13:15:08]*** CUTSNS_PIN = 0 [13:15:09]*** Brake cut motor [13:15:09]Read from MH i2c: 01 [13:15:09]MH_I2C_Read... [13:15:09]*** Stop cut motor [13:15:09]*** Cut end [13:15:09]Read from MH i2c: 01 07 00 [13:15:09]MH_I2C_Read... [13:15:09]Read from MH i2c: 01 07 00 B3 38 00 00 00 00 00 FF 0F 00 [13:15:09]process_action close_receipt done [13:15:09]requested_data is exist [13:15:09]produce_requested_data [13:15:09]requested_item fm.sn is exist - process it [13:15:09]wFMCommunicate request_size=4 [13:15:09]MH_SAM_APDU [13:15:09]CAPDU: 80 11 00 00 [13:15:09]Write to MH i2c: E2 08 00 B4 38 80 11 00 00 00 00 00 00 66 [13:15:09]Write i2c OK [13:15:09]MH_I2C_Read... [13:15:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:09]Read from MH i2c: E2 [13:15:09]MH_I2C_Read... [13:15:09]Read from MH i2c: E2 17 00 [13:15:09]MH_I2C_Read... [13:15:09]Read from MH i2c: E2 17 00 B4 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 B1 [13:15:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [13:15:09]wFMCommunicate OK [13:15:09]requested_item fd.num is exist - process it [13:15:09]SAM_PROTO_GetFieldsCounters [13:15:09]wFMCommunicate request_size=4 [13:15:09]MH_SAM_APDU [13:15:09]CAPDU: 80 13 00 00 [13:15:09]Write to MH i2c: E2 08 00 B5 38 80 13 00 00 00 00 00 00 69 [13:15:09]Write i2c OK [13:15:09]MH_I2C_Read... [13:15:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:15:09]Read from MH i2c: E2 [13:15:09]MH_I2C_Read... [13:15:09]Read from MH i2c: E2 62 00 [13:15:09]MH_I2C_Read... [13:15:09]Read from MH i2c: E2 62 00 B5 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 FA 0A 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 E7 [13:15:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 FA 0A 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:15:09]wFMCommunicate OK [13:15:09]SAM_PROTO_GetFieldsCounters done [13:15:09]requested_item shift.num is exist - process it [13:15:09]requested_item shift.opened is exist - process it [13:15:09]req_shift_opened [13:15:09]FM_GetShiftState [13:15:09]SAM_PROTO_GetShiftState [13:15:09]wFMCommunicate request_size=4 [13:15:09]MH_SAM_APDU [13:15:09]CAPDU: 80 13 01 00 [13:15:09]Write to MH i2c: E2 08 00 B6 38 80 13 01 00 00 00 00 00 6B [13:15:09]Write i2c OK [13:15:09]MH_I2C_Read... [13:15:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:09]Read from MH i2c: E2 [13:15:09]MH_I2C_Read... [13:15:09]Read from MH i2c: E2 0E 00 [13:15:09]MH_I2C_Read... [13:15:09]Read from MH i2c: E2 0E 00 B6 38 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 46 [13:15:09]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [13:15:09]wFMCommunicate OK [13:15:09]SAM_PROTO_GetShiftState done [13:15:09]FM_GetShiftState done [13:15:09]req_shift_opened done [13:15:09]requested_item shift.open_date is exist - process it [13:15:09]req_shift_open_date [13:15:09]req_shift_open_date done [13:15:09]produce_requested_data done [13:15:09]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68346,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [13:15:09]process_action_free close_receipt [13:15:09]json_value_free [13:15:09]json_value_free done [13:15:09]process_json_proto returns [13:15:09]Send response to host [13:15:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68346,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [13:15:09]free response buf [13:15:09]execute_script done [13:15:09]execute_script returns [13:15:09]free content buf [13:15:09]Sock 5.Close socket [13:15:09]Sock 5.Thread stoped [13:15:13]OFD Sender: No OFD packet to send [13:15:18]OFD Sender: No OFD packet to send [13:15:23]OFD Sender: No OFD packet to send [13:15:28]OFD Sender: No OFD packet to send [13:15:33]OFD Sender: No OFD packet to send [13:15:38]OFD Sender: No OFD packet to send [13:15:43]OFD Sender: No OFD packet to send [13:15:48]OFD Sender: No OFD packet to send [13:15:53]OFD Sender: No OFD packet to send [13:15:58]OFD Sender: No OFD packet to send [13:16:03]OFD Sender: No OFD packet to send [13:16:08]OFD Sender: No OFD packet to send [13:16:13]OFD Sender: No OFD packet to send [13:16:18]OFD Sender: No OFD packet to send [13:16:23]OFD Sender: No OFD packet to send [13:16:28]OFD Sender: No OFD packet to send [13:16:33]OFD Sender: No OFD packet to send [13:16:38]OFD Sender: No OFD packet to send [13:16:43]OFD Sender: No OFD packet to send [13:16:48]OFD Sender: No OFD packet to send [13:16:53]OFD Sender: No OFD packet to send [13:16:58]OFD Sender: No OFD packet to send [13:17:03]OFD Sender: No OFD packet to send [13:17:08]OFD Sender: No OFD packet to send [13:17:13]OFD Sender: No OFD packet to send [13:17:18]OFD Sender: No OFD packet to send [13:17:23]OFD Sender: No OFD packet to send [13:17:28]OFD Sender: No OFD packet to send [13:17:33]OFD Sender: No OFD packet to send [13:17:38]OFD Sender: No OFD packet to send [13:17:43]OFD Sender: No OFD packet to send [13:17:48]OFD Sender: No OFD packet to send [13:17:53]OFD Sender: No OFD packet to send [13:17:58]OFD Sender: No OFD packet to send [13:18:03]accept exits with 7 [13:18:03]New connection [13:18:03]New thread 3066686820 created [13:18:03]Thread 3066543460 joined [13:18:03]Waiting for new connection... [13:18:03] Sock 7.Parse request [13:18:03]Sock 7.Check first char [13:18:03]Sock 7.First char is OK [13:18:03]request: POST /json_proto HTTP/1.0 [13:18:03]Method: POST [13:18:03]URL: /json_proto [13:18:03]Method is POST - this is cgi request [13:18:03]url: /json_proto [13:18:03]query_string will be loaded in cgi processing [13:18:03]execute_cgi json_proto POST (null) [13:18:03]execute_cgi path=json_proto method=POST [13:18:03]POST find Content-Length [13:18:03]Host: 172.17.36.132:8080 [13:18:03]Content-Length: 1149 [13:18:03]Content-Type: application/json [13:18:03] [13:18:03]POST finish read [13:18:03]Found Content-Length = 1149 [13:18:03]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706434\u000A03.06.2024 12:55\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-4\u000A 10.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 729.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30111845\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:18:03]execute_script... [13:18:03]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706434\u000A03.06.2024 12:55\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-4\u000A 10.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 729.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30111845\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:18:03]POST & json_proto [13:18:03]process_json_proto [13:18:03]json parsed OK: [13:18:03]protocol is kg_v1.0 [13:18:03]action value=print_text [13:18:03]process_action print_text [13:18:03]cmd_print_text [13:18:03]ExternCall_PrintAddStr [13:18:03]wPrintStart [13:18:03]Write to MH i2c: 01 00 00 B7 38 EF [13:18:03]Write i2c OK [13:18:03]MH_I2C_Read... [13:18:03]Read from MH i2c: 01 [13:18:03]MH_I2C_Read... [13:18:03]Read from MH i2c: 01 07 00 [13:18:03]MH_I2C_Read... [13:18:03]Read from MH i2c: 01 07 00 B7 38 00 00 00 00 00 FF 0F 04 [13:18:03]RasterBufferAndPrint [13:18:03]line *****ТОВАРНЫЙ ЧЕК***** [13:18:03]line АЗС 62 [13:18:03]line Партнер нефть [13:18:03]line 02508201610067 [13:18:03]line Кассир : Балаев А. [13:18:03]line Счет N : (1)706434 [13:18:03]line 03.06.2024 12:55 [13:18:03]line ПРОДАЖА [13:18:03]line ТРК (МРК, ГНК): 21 [13:18:03]line Вид ГСМ : 2710194210 [13:18:03]line ДТ(л)-К-4 [13:18:03]line 10.000 x 72.90 [13:18:03]line ИТОГ: 729.00 [13:18:03]line Тип оплаты: Талоны: ТК ГПНА Online [13:18:03]line 30111845 [13:18:03]line ______________________ [13:18:03]line (подпись) [13:18:03]written 0, free lines is 4095 [13:18:03]OFD Sender: No OFD packet to send [13:18:03]Write to MH i2c: 01 00 00 CB 38 03 [13:18:03]Write i2c OK [13:18:03]MH_I2C_Read... [13:18:03]Read from MH i2c: 01 [13:18:03]MH_I2C_Read... [13:18:03]Read from MH i2c: 01 07 00 [13:18:03]MH_I2C_Read... [13:18:03]Read from MH i2c: 01 07 00 CB 38 00 00 00 00 00 0E 0E 26 [13:18:03]RasterBufferAndPrint [13:18:03]line [13:18:03]line [13:18:03]line [13:18:03]line [13:18:03]line [13:18:03]written 0, free lines is 3599 [13:18:03]MH_Cut [13:18:03]Write to MH i2c: D1 01 00 D2 38 01 DC [13:18:03]Write i2c OK [13:18:03]MH_I2C_Read... [13:18:03]Read from MH i2c: D1 [13:18:03]MH_I2C_Read... [13:18:03]Read from MH i2c: D1 01 00 [13:18:03]MH_I2C_Read... [13:18:03]Read from MH i2c: D1 01 00 D2 38 00 DB [13:18:03]Write to MH i2c: 01 00 00 D3 38 0B [13:18:03]Write i2c OK [13:18:03]MH_I2C_Read... [13:18:04]*** Cut start [13:18:04]*** Partial cut [13:18:04]*** CUTSNS_PIN = 1 [13:18:04]*** CUTSNS_PIN = 0 [13:18:04]*** Brake cut motor [13:18:04]Read from MH i2c: 01 [13:18:04]MH_I2C_Read... [13:18:04]Read from MH i2c: 01 07 00 [13:18:04]MH_I2C_Read... [13:18:04]*** Stop cut motor [13:18:04]*** Cut end [13:18:04]Read from MH i2c: 01 07 00 D3 38 00 00 00 00 00 FF 0F 20 [13:18:04]process_action print_text done [13:18:04]requested_data is exist [13:18:04]produce_requested_data [13:18:04]requested_item fm.sn is exist - process it [13:18:04]wFMCommunicate request_size=4 [13:18:04]MH_SAM_APDU [13:18:04]CAPDU: 80 11 00 00 [13:18:04]Write to MH i2c: E2 08 00 D4 38 80 11 00 00 00 00 00 00 86 [13:18:04]Write i2c OK [13:18:04]MH_I2C_Read... [13:18:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:18:04]Read from MH i2c: E2 [13:18:04]MH_I2C_Read... [13:18:04]Read from MH i2c: E2 17 00 [13:18:04]MH_I2C_Read... [13:18:04]Read from MH i2c: E2 17 00 D4 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 D1 [13:18:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [13:18:04]wFMCommunicate OK [13:18:04]requested_item fd.num is exist - process it [13:18:04]SAM_PROTO_GetFieldsCounters [13:18:04]wFMCommunicate request_size=4 [13:18:04]MH_SAM_APDU [13:18:04]CAPDU: 80 13 00 00 [13:18:04]Write to MH i2c: E2 08 00 D5 38 80 13 00 00 00 00 00 00 89 [13:18:04]Write i2c OK [13:18:04]MH_I2C_Read... [13:18:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:18:05]Read from MH i2c: E2 [13:18:05]MH_I2C_Read... [13:18:05]Read from MH i2c: E2 62 00 [13:18:05]MH_I2C_Read... [13:18:05]Read from MH i2c: E2 62 00 D5 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 FA 0A 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 07 [13:18:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 FA 0A 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:18:05]wFMCommunicate OK [13:18:05]SAM_PROTO_GetFieldsCounters done [13:18:05]requested_item shift.num is exist - process it [13:18:05]requested_item shift.opened is exist - process it [13:18:05]req_shift_opened [13:18:05]FM_GetShiftState [13:18:05]SAM_PROTO_GetShiftState [13:18:05]wFMCommunicate request_size=4 [13:18:05]MH_SAM_APDU [13:18:05]CAPDU: 80 13 01 00 [13:18:05]Write to MH i2c: E2 08 00 D6 38 80 13 01 00 00 00 00 00 8B [13:18:05]Write i2c OK [13:18:05]MH_I2C_Read... [13:18:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:18:05]Read from MH i2c: E2 [13:18:05]MH_I2C_Read... [13:18:05]Read from MH i2c: E2 0E 00 [13:18:05]MH_I2C_Read... [13:18:05]Read from MH i2c: E2 0E 00 D6 38 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 66 [13:18:05]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [13:18:05]wFMCommunicate OK [13:18:05]SAM_PROTO_GetShiftState done [13:18:05]FM_GetShiftState done [13:18:05]req_shift_opened done [13:18:05]requested_item shift.open_date is exist - process it [13:18:05]req_shift_open_date [13:18:05]req_shift_open_date done [13:18:05]produce_requested_data done [13:18:05]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68346,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [13:18:05]process_action_free print_text [13:18:05]json_value_free [13:18:05]json_value_free done [13:18:05]process_json_proto returns [13:18:05]Send response to host [13:18:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68346,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [13:18:05]free response buf [13:18:05]execute_script done [13:18:05]execute_script returns [13:18:05]free content buf [13:18:05]Sock 7.Close socket [13:18:05]Sock 7.Thread stoped [13:18:08]OFD Sender: No OFD packet to send [13:18:13]OFD Sender: No OFD packet to send [13:18:18]OFD Sender: No OFD packet to send [13:18:23]OFD Sender: No OFD packet to send [13:18:28]OFD Sender: No OFD packet to send [13:18:33]OFD Sender: No OFD packet to send [13:18:38]OFD Sender: No OFD packet to send [13:18:43]OFD Sender: No OFD packet to send [13:18:48]OFD Sender: No OFD packet to send [13:18:53]OFD Sender: No OFD packet to send [13:18:58]OFD Sender: No OFD packet to send [13:19:03]OFD Sender: No OFD packet to send [13:19:08]OFD Sender: No OFD packet to send [13:19:13]OFD Sender: No OFD packet to send [13:19:18]OFD Sender: No OFD packet to send [13:19:23]OFD Sender: No OFD packet to send [13:19:28]OFD Sender: No OFD packet to send [13:19:33]OFD Sender: No OFD packet to send [13:19:38]OFD Sender: No OFD packet to send [13:19:43]OFD Sender: No OFD packet to send [13:19:48]OFD Sender: No OFD packet to send [13:19:53]OFD Sender: No OFD packet to send [13:19:58]OFD Sender: No OFD packet to send [13:20:03]OFD Sender: No OFD packet to send [13:20:08]OFD Sender: No OFD packet to send [13:20:13]OFD Sender: No OFD packet to send [13:20:18]OFD Sender: No OFD packet to send [13:20:23]OFD Sender: No OFD packet to send [13:20:28]OFD Sender: No OFD packet to send [13:20:33]OFD Sender: No OFD packet to send [13:20:38]OFD Sender: No OFD packet to send [13:20:43]OFD Sender: No OFD packet to send [13:20:48]OFD Sender: No OFD packet to send [13:20:53]OFD Sender: No OFD packet to send [13:20:58]OFD Sender: No OFD packet to send [13:21:03]OFD Sender: No OFD packet to send [13:21:08]OFD Sender: No OFD packet to send [13:21:13]OFD Sender: No OFD packet to send [13:21:18]OFD Sender: No OFD packet to send [13:21:23]OFD Sender: No OFD packet to send [13:21:28]OFD Sender: No OFD packet to send [13:21:33]OFD Sender: No OFD packet to send [13:21:38]OFD Sender: No OFD packet to send [13:21:43]OFD Sender: No OFD packet to send [13:21:48]OFD Sender: No OFD packet to send [13:21:53]OFD Sender: No OFD packet to send [13:21:58]OFD Sender: No OFD packet to send [13:22:03]OFD Sender: No OFD packet to send [13:22:08]OFD Sender: No OFD packet to send [13:22:13]OFD Sender: No OFD packet to send [13:22:18]OFD Sender: No OFD packet to send [13:22:23]OFD Sender: No OFD packet to send [13:22:28]OFD Sender: No OFD packet to send [13:22:33]OFD Sender: No OFD packet to send [13:22:38]OFD Sender: No OFD packet to send [13:22:43]OFD Sender: No OFD packet to send [13:22:48]OFD Sender: No OFD packet to send [13:22:53]OFD Sender: No OFD packet to send [13:22:58]OFD Sender: No OFD packet to send [13:23:03]OFD Sender: No OFD packet to send [13:23:08]OFD Sender: No OFD packet to send [13:23:13]accept exits with 5 [13:23:13]New connection [13:23:13]New thread 3066543460 created [13:23:13]Thread 3066686820 joined [13:23:13]Waiting for new connection... [13:23:13] Sock 5.Parse request [13:23:13]Sock 5.Check first char [13:23:13]Sock 5.First char is OK [13:23:13]request: POST /json_proto HTTP/1.0 [13:23:13]Method: POST [13:23:13]URL: /json_proto [13:23:13]Method is POST - this is cgi request [13:23:13]url: /json_proto [13:23:13]query_string will be loaded in cgi processing [13:23:13]execute_cgi json_proto POST (null) [13:23:13]execute_cgi path=json_proto method=POST [13:23:13]POST find Content-Length [13:23:13]Host: 172.17.36.132:8080 [13:23:13]Content-Length: 840 [13:23:13]Content-Type: application/json [13:23:13] [13:23:13]POST finish read [13:23:13]Found Content-Length = 840 [13:23:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706435", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:23:13]execute_script... [13:23:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706435", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:23:13]POST & json_proto [13:23:13]process_json_proto [13:23:13]json parsed OK: [13:23:13]protocol is kg_v1.0 [13:23:13]action value=close_receipt [13:23:13]process_action close_receipt [13:23:13]cmd_close_receipt [13:23:13]MH_GetDate [13:23:13]Write to MH i2c: F0 00 00 D7 38 FE [13:23:13]Write i2c OK [13:23:13]MH_I2C_Read... [13:23:13]Read from MH i2c: F0 [13:23:13]MH_I2C_Read... [13:23:13]Read from MH i2c: F0 09 00 [13:23:13]MH_I2C_Read... [13:23:13]Read from MH i2c: F0 09 00 D7 38 00 C6 C3 5D 66 B2 22 B0 64 3B [13:23:13]GetLastDocTimeStamp 1717420511 [13:23:13]current date 1717420998 [13:23:13]FM_GetShiftState [13:23:13]SAM_PROTO_GetShiftState [13:23:13]wFMCommunicate request_size=4 [13:23:13]MH_SAM_APDU [13:23:13]CAPDU: 80 13 01 00 [13:23:13]Write to MH i2c: E2 08 00 D8 38 80 13 01 00 00 00 00 00 8D [13:23:13]Write i2c OK [13:23:13]MH_I2C_Read... [13:23:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:23:13]Read from MH i2c: E2 [13:23:13]MH_I2C_Read... [13:23:13]Read from MH i2c: E2 0E 00 [13:23:13]MH_I2C_Read... [13:23:13]Read from MH i2c: E2 0E 00 D8 38 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 68 [13:23:13]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [13:23:13]wFMCommunicate OK [13:23:13]SAM_PROTO_GetShiftState done [13:23:13]FM_GetShiftState done [13:23:13]opened in 1717378033 [13:23:13]opened+sec_in_day 1717464433 [13:23:13]quantity*price = 50041 [13:23:13]sum+1 = 50042 [13:23:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 93 03.06.2024 13:23 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68347 ФПД: 94661376413977 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T132318&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68347&fm=94661376413977&tin=02508201610067®Number=0000000000098096&sum=50041 [13:23:14]StoreToDocumentArchive [13:23:14]shift 324 fd 68347 [13:23:14]save to /storage/0324/doc_00068347 [13:23:14]save last doc name /storage/0324/doc_00068347 to /storage/kkm_last_doc_name [13:23:14]save OK [13:23:14]Clear old archive folders... [13:23:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:23:14]tlvbuf is B6E99890 [13:23:14]SAM_PROTO_ClearQueue [13:23:14]wFMCommunicate request_size=4 [13:23:14]MH_SAM_APDU [13:23:14]CAPDU: 80 09 00 00 [13:23:14]Write to MH i2c: E2 08 00 E5 38 80 09 00 00 00 00 00 00 8F [13:23:14]Write i2c OK [13:23:14]MH_I2C_Read... [13:23:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:23:14]Read from MH i2c: E2 [13:23:14]MH_I2C_Read... [13:23:14]Read from MH i2c: E2 03 00 [13:23:14]MH_I2C_Read... [13:23:14]Read from MH i2c: E2 03 00 E5 38 00 90 00 91 [13:23:14]RAPDU: 90 00 [13:23:14]wFMCommunicate OK [13:23:14]SAM_PROTO_ClearQueue done [13:23:14]KKMCreateOFDPacket [13:23:14]OFDProtocolAddRootSTLVToBuf [13:23:14]FM_MakeSignedData [13:23:14]FM_MakeSignedData [13:23:14]SAM_PROTO_SignData [13:23:14]wFMCommunicate request_size=4 [13:23:14]MH_SAM_APDU [13:23:14]CAPDU: 80 0D 01 02 [13:23:14]Write to MH i2c: E2 08 00 E6 38 80 0D 01 02 00 00 00 00 97 [13:23:14]Write i2c OK [13:23:14]MH_I2C_Read... [13:23:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:23:14]Read from MH i2c: E2 [13:23:14]MH_I2C_Read... [13:23:14]Read from MH i2c: E2 03 00 [13:23:14]MH_I2C_Read... [13:23:14]Read from MH i2c: E2 03 00 E6 38 00 90 00 92 [13:23:14]RAPDU: 90 00 [13:23:14]wFMCommunicate OK [13:23:14]wFMCommunicate request_size=255 [13:23:14]MH_SAM_APDU [13:23:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 C6 C3 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 FB 0A 01 00 35 04 06 00 56 [13:23:14]Write to MH i2c: E2 02 01 E7 38 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 C6 C3 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 FB 0A 01 00 35 04 06 00 56 00 00 C0 [13:23:14]Write i2c OK [13:23:14]MH_I2C_Read... [13:23:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:23:14]Read from MH i2c: E2 [13:23:14]MH_I2C_Read... [13:23:14]Read from MH i2c: E2 03 00 [13:23:14]MH_I2C_Read... [13:23:14]Read from MH i2c: E2 03 00 E7 38 00 90 00 93 [13:23:14]RAPDU: 90 00 [13:23:14]wFMCommunicate OK [13:23:14]wFMCommunicate request_size=10 [13:23:14]MH_SAM_APDU [13:23:14]CAPDU: 80 0D 02 02 05 18 11 B7 11 19 [13:23:14]Write to MH i2c: E2 0D 00 E8 38 80 0D 02 02 05 00 18 11 B7 11 19 00 00 AE [13:23:14]Write i2c OK [13:23:14]MH_I2C_Read... [13:23:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:23:14]Read from MH i2c: E2 [13:23:14]MH_I2C_Read... [13:23:14]Read from MH i2c: E2 03 00 [13:23:14]MH_I2C_Read... [13:23:14]Read from MH i2c: E2 03 00 E8 38 00 90 00 94 [13:23:14]RAPDU: 90 00 [13:23:14]wFMCommunicate OK [13:23:14]wFMCommunicate request_size=4 [13:23:14]MH_SAM_APDU [13:23:14]CAPDU: 80 0D 03 02 [13:23:14]Write to MH i2c: E2 08 00 E9 38 80 0D 03 02 00 00 00 00 9C [13:23:14]Write i2c OK [13:23:14]MH_I2C_Read... [13:23:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:23:14]Read from MH i2c: E2 [13:23:14]MH_I2C_Read... [13:23:14]Read from MH i2c: E2 0B 00 [13:23:14]MH_I2C_Read... [13:23:14]Read from MH i2c: E2 0B 00 E9 38 00 40 C6 E8 4C 7E 82 7A 23 90 00 74 [13:23:14]RAPDU: 40 C6 E8 4C 7E 82 7A 23 90 00 [13:23:14]wFMCommunicate OK [13:23:14]SAM_PROTO_SignData done [13:23:14]FM_MakeSignedData done [13:23:14]CreateOFDProtocolMessage [13:23:14]wFMCommunicate request_size=4 [13:23:14]MH_SAM_APDU [13:23:14]CAPDU: 80 11 00 00 [13:23:14]Write to MH i2c: E2 08 00 EA 38 80 11 00 00 00 00 00 00 9C [13:23:14]Write i2c OK [13:23:14]MH_I2C_Read... [13:23:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:23:14]Read from MH i2c: E2 [13:23:14]MH_I2C_Read... [13:23:14]Read from MH i2c: E2 17 00 [13:23:14]MH_I2C_Read... [13:23:14]Read from MH i2c: E2 17 00 EA 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 E7 [13:23:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [13:23:14]wFMCommunicate OK [13:23:14]CreateOFDProtocolMessage done [13:23:14]OFDSenderStorePacket 68347 [13:23:14]StoreOFDPacket docnum=68347 [13:23:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 5B 8E 07 01 D6 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 C6 C3 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 FB 0A 01 00 35 04 06 00 56 18 11 B7 11 19 40 C6 E8 4C 7E 82 7A 23 [13:23:14]CheckFolder [13:23:14]dirname=/storage/ofd_packets [13:23:14]CheckFolder done [13:23:14]ProducePacketName [13:23:14]name=ofd_packets/00068347 [13:23:14]NVStorageSaveData ofd_packets/00068347 [13:23:14]File name is /storage/ofd_packets/00068347 [13:23:14]Write 301 bytes [13:23:14]NVStorageSaveData done [13:23:14]OFDSenderStorePacket done [13:23:14]KKMCreateOFDPacket done [13:23:14]NVStorageSaveData kkm_last_timestamp [13:23:14]File name is /storage/kkm_last_timestamp [13:23:14]Write 4 bytes [13:23:14]NVStorageSaveData done [13:23:14]ExternCall_PrintAddStr [13:23:14]wPrintStart [13:23:14]Write to MH i2c: 01 00 00 EB 38 23 [13:23:14]Write i2c OK [13:23:14]MH_I2C_Read... [13:23:14]Read from MH i2c: 01 [13:23:14]MH_I2C_Read... [13:23:14]Read from MH i2c: 01 07 00 [13:23:14]MH_I2C_Read... [13:23:14]Read from MH i2c: 01 07 00 EB 38 00 00 00 00 00 FF 0F 38 [13:23:14]RasterBufferAndPrint [13:23:14]line Счет N : (1)706435 [13:23:14]line ИНН: 02508201610067 [13:23:14]line Контрольно-Кассовый Чек [13:23:14]line ПРОДАЖА [13:23:14]line ТРК (МРК, ГНК) : 63 [13:23:14]line Товар: 2710124130 [13:23:14]line Аи-92-К-4 [13:23:14]line 7.480 * 66.90 [13:23:14]line = 500.41 [13:23:14]line НДС 12% НСП 1% [13:23:14]line > о реализуемом товаре [13:23:14]line ИТОГО: 500.41 [13:23:14]line НСП 1% : 4.43 [13:23:14]line НДС 12% : 53.14 [13:23:14]line Наличными: 0.00 [13:23:14]line Безнал.: 500.41 [13:23:14]line Место: АЗС № 62 "Партнер Нефть" [13:23:14]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [13:23:14]line СНО: Общий режим [13:23:14]line Чек 93 03.06.2024 13:23 [13:23:14]line Смена: 324 ФФД: 1.0 [13:23:14]line ЗНМ: 0300000181 [13:23:14]line РНМ: 0000000000098096 [13:23:14]line Версия ККМ: 001 [13:23:14]line Платежная система: АКБ Кыргызстан [13:23:14]line ФМ: 0000000000965400 [13:23:14]line ФД: 68347 [13:23:14]line ФПД: 94661376413977 [13:23:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T132318&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68347&fm=94661376413977&tin=02508201610067®Number=0000000000098096&sum=50041 [13:23:15]written 0, free lines is 4095 [13:23:15]OFD Sender: Processing packet 68347 [packets to send 26, broken 25] [13:23:15]ProducePacketName [13:23:15]name=ofd_packets/00068347 [13:23:15]OFD Sender: To server: pG, [13:23:15]CommunicateWithHost lk.salyk.kg:30040 [13:23:15]ConnectInit lk.salyk.kg [13:23:15]Connected sock=7 [13:23:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 5B 8E 07 01 D6 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 C6 C3 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 FB 0A 01 00 35 04 06 00 56 18 11 B7 11 19 40 C6 E8 4C 7E 82 7A 23 [13:23:15]Write to MH i2c: 01 00 00 15 39 4E [13:23:15]Write i2c OK [13:23:15]MH_I2C_Read... [13:23:15]Read from MH i2c: 01 [13:23:15]MH_I2C_Read... [13:23:15]Read from MH i2c: 01 07 00 [13:23:15]MH_I2C_Read... [13:23:15]Read from MH i2c: 01 07 00 15 39 00 00 00 00 00 ED 0C 4E [13:23:15]RasterBufferAndPrint [13:23:15]line [13:23:15]line [13:23:15]line [13:23:15]line [13:23:15]line [13:23:15]written 0, free lines is 3316 [13:23:15]MH_Cut [13:23:15]Write to MH i2c: D1 01 00 1C 39 01 27 [13:23:15]Write i2c OK [13:23:15]MH_I2C_Read... [13:23:15]Read from MH i2c: D1 [13:23:15]MH_I2C_Read... [13:23:15]Read from MH i2c: D1 01 00 [13:23:15]MH_I2C_Read... [13:23:15]Read from MH i2c: D1 01 00 1C 39 00 26 [13:23:15]Write to MH i2c: 01 00 00 1D 39 56 [13:23:15]Write i2c OK [13:23:15]MH_I2C_Read... [13:23:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 E7 5E 47 00 5D 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 FB 0A 01 00 F4 03 04 00 C2 6A 5D 66 B6 04 01 00 00 85 D4 F2 AB D9 9A 1D 5C [13:23:15]CommunicateWithHost err = 0 [13:23:15]CheckOFDResponse [13:23:15]1017 (14) - 77093643461234 [13:23:15]1041 (16) - 0000000000965400 [13:23:15]1040 (4) - 68347 [13:23:15]1012 (4) - 03.06.2024 07:03 [13:23:15]1206 (1) - 0 [13:23:15]OFD Sender: Remove packet 68347 [13:23:15]ProducePacketName [13:23:15]name=ofd_packets/00068347 [13:23:15]NVStorageDeleteData [13:23:16]OFD Sender: No OFD packet to send [13:23:16]*** Cut start [13:23:16]*** Partial cut [13:23:16]*** CUTSNS_PIN = 1 [13:23:16]*** CUTSNS_PIN = 0 [13:23:16]*** Brake cut motor [13:23:17]Read from MH i2c: 01 [13:23:17]MH_I2C_Read... [13:23:17]*** Stop cut motor [13:23:17]*** Cut end [13:23:17]Read from MH i2c: 01 07 00 [13:23:17]MH_I2C_Read... [13:23:17]Read from MH i2c: 01 07 00 1D 39 00 00 00 00 00 FF 0F 6B [13:23:17]process_action close_receipt done [13:23:17]requested_data is exist [13:23:17]produce_requested_data [13:23:17]requested_item fm.sn is exist - process it [13:23:17]wFMCommunicate request_size=4 [13:23:17]MH_SAM_APDU [13:23:17]CAPDU: 80 11 00 00 [13:23:17]Write to MH i2c: E2 08 00 1E 39 80 11 00 00 00 00 00 00 D1 [13:23:17]Write i2c OK [13:23:17]MH_I2C_Read... [13:23:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:23:17]Read from MH i2c: E2 [13:23:17]MH_I2C_Read... [13:23:17]Read from MH i2c: E2 17 00 [13:23:17]MH_I2C_Read... [13:23:17]Read from MH i2c: E2 17 00 1E 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 1C [13:23:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [13:23:17]wFMCommunicate OK [13:23:17]requested_item fd.num is exist - process it [13:23:17]SAM_PROTO_GetFieldsCounters [13:23:17]wFMCommunicate request_size=4 [13:23:17]MH_SAM_APDU [13:23:17]CAPDU: 80 13 00 00 [13:23:17]Write to MH i2c: E2 08 00 1F 39 80 13 00 00 00 00 00 00 D4 [13:23:17]Write i2c OK [13:23:17]MH_I2C_Read... [13:23:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:23:17]Read from MH i2c: E2 [13:23:17]MH_I2C_Read... [13:23:17]Read from MH i2c: E2 62 00 [13:23:17]MH_I2C_Read... [13:23:17]Read from MH i2c: E2 62 00 1F 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 FB 0A 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 56 [13:23:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 FB 0A 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:23:17]wFMCommunicate OK [13:23:17]SAM_PROTO_GetFieldsCounters done [13:23:17]requested_item shift.num is exist - process it [13:23:17]requested_item shift.opened is exist - process it [13:23:17]req_shift_opened [13:23:17]FM_GetShiftState [13:23:17]SAM_PROTO_GetShiftState [13:23:17]wFMCommunicate request_size=4 [13:23:17]MH_SAM_APDU [13:23:17]CAPDU: 80 13 01 00 [13:23:17]Write to MH i2c: E2 08 00 20 39 80 13 01 00 00 00 00 00 D6 [13:23:17]Write i2c OK [13:23:17]MH_I2C_Read... [13:23:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:23:17]Read from MH i2c: E2 [13:23:17]MH_I2C_Read... [13:23:17]Read from MH i2c: E2 0E 00 [13:23:17]MH_I2C_Read... [13:23:17]Read from MH i2c: E2 0E 00 20 39 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 B1 [13:23:17]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [13:23:17]wFMCommunicate OK [13:23:17]SAM_PROTO_GetShiftState done [13:23:17]FM_GetShiftState done [13:23:17]req_shift_opened done [13:23:17]requested_item shift.open_date is exist - process it [13:23:17]req_shift_open_date [13:23:17]req_shift_open_date done [13:23:17]produce_requested_data done [13:23:17]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68347,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [13:23:17]process_action_free close_receipt [13:23:17]json_value_free [13:23:17]json_value_free done [13:23:17]process_json_proto returns [13:23:17]Send response to host [13:23:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68347,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [13:23:17]free response buf [13:23:17]execute_script done [13:23:17]execute_script returns [13:23:17]free content buf [13:23:17]Sock 5.Close socket [13:23:17]Sock 5.Thread stoped [13:23:21]OFD Sender: No OFD packet to send [13:23:26]OFD Sender: No OFD packet to send [13:23:31]OFD Sender: No OFD packet to send [13:23:36]OFD Sender: No OFD packet to send [13:23:41]OFD Sender: No OFD packet to send [13:23:46]OFD Sender: No OFD packet to send [13:23:51]OFD Sender: No OFD packet to send [13:23:51]accept exits with 6 [13:23:51]New connection [13:23:51]New thread 3066686820 created [13:23:51]Thread 3066543460 joined [13:23:51]Waiting for new connection... [13:23:51] Sock 6.Parse request [13:23:51]Sock 6.Check first char [13:23:51]Sock 6.First char is OK [13:23:51]request: POST /json_proto HTTP/1.0 [13:23:51]Method: POST [13:23:51]URL: /json_proto [13:23:51]Method is POST - this is cgi request [13:23:51]url: /json_proto [13:23:51]query_string will be loaded in cgi processing [13:23:51]execute_cgi json_proto POST (null) [13:23:51]execute_cgi path=json_proto method=POST [13:23:51]POST find Content-Length [13:23:51]Host: 172.17.36.132:8080 [13:23:51]Content-Length: 677 [13:23:51]Content-Type: application/json [13:23:51] [13:23:51]POST finish read [13:23:51]Found Content-Length = 677 [13:23:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706436", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:23:51]execute_script... [13:23:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706436", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:23:51]POST & json_proto [13:23:51]process_json_proto [13:23:51]json parsed OK: [13:23:51]protocol is kg_v1.0 [13:23:51]action value=close_receipt [13:23:51]process_action close_receipt [13:23:51]cmd_close_receipt [13:23:51]MH_GetDate [13:23:51]Write to MH i2c: F0 00 00 21 39 49 [13:23:51]Write i2c OK [13:23:51]MH_I2C_Read... [13:23:51]Read from MH i2c: F0 [13:23:51]MH_I2C_Read... [13:23:51]Read from MH i2c: F0 09 00 [13:23:51]MH_I2C_Read... [13:23:51]Read from MH i2c: F0 09 00 21 39 00 ED C3 5D 66 B2 22 B0 64 AD [13:23:51]GetLastDocTimeStamp 1717420998 [13:23:51]current date 1717421037 [13:23:51]FM_GetShiftState [13:23:51]SAM_PROTO_GetShiftState [13:23:51]wFMCommunicate request_size=4 [13:23:51]MH_SAM_APDU [13:23:51]CAPDU: 80 13 01 00 [13:23:51]Write to MH i2c: E2 08 00 22 39 80 13 01 00 00 00 00 00 D8 [13:23:51]Write i2c OK [13:23:51]MH_I2C_Read... [13:23:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:23:51]Read from MH i2c: E2 [13:23:51]MH_I2C_Read... [13:23:51]Read from MH i2c: E2 0E 00 [13:23:51]MH_I2C_Read... [13:23:51]Read from MH i2c: E2 0E 00 22 39 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 B3 [13:23:51]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [13:23:51]wFMCommunicate OK [13:23:51]SAM_PROTO_GetShiftState done [13:23:51]FM_GetShiftState done [13:23:51]opened in 1717378033 [13:23:51]opened+sec_in_day 1717464433 [13:23:51]quantity*price = 50041 [13:23:51]sum+1 = 50042 [13:23:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 94 03.06.2024 13:23 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68348 ФПД: 105049344915148 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T132357&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68348&fm=105049344915148&tin=02508201610067®Number=0000000000098096&sum=50000 [13:23:53]StoreToDocumentArchive [13:23:53]shift 324 fd 68348 [13:23:53]save to /storage/0324/doc_00068348 [13:23:53]save last doc name /storage/0324/doc_00068348 to /storage/kkm_last_doc_name [13:23:53]save OK [13:23:53]Clear old archive folders... [13:23:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:23:53]tlvbuf is 001FD2C0 [13:23:53]SAM_PROTO_ClearQueue [13:23:53]wFMCommunicate request_size=4 [13:23:53]MH_SAM_APDU [13:23:53]CAPDU: 80 09 00 00 [13:23:53]Write to MH i2c: E2 08 00 2F 39 80 09 00 00 00 00 00 00 DA [13:23:53]Write i2c OK [13:23:53]MH_I2C_Read... [13:23:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:23:53]Read from MH i2c: E2 [13:23:53]MH_I2C_Read... [13:23:53]Read from MH i2c: E2 03 00 [13:23:53]MH_I2C_Read... [13:23:53]Read from MH i2c: E2 03 00 2F 39 00 90 00 DC [13:23:53]RAPDU: 90 00 [13:23:53]wFMCommunicate OK [13:23:53]SAM_PROTO_ClearQueue done [13:23:53]KKMCreateOFDPacket [13:23:53]OFDProtocolAddRootSTLVToBuf [13:23:53]FM_MakeSignedData [13:23:53]FM_MakeSignedData [13:23:53]SAM_PROTO_SignData [13:23:53]wFMCommunicate request_size=4 [13:23:53]MH_SAM_APDU [13:23:53]CAPDU: 80 0D 01 02 [13:23:53]Write to MH i2c: E2 08 00 30 39 80 0D 01 02 00 00 00 00 E2 [13:23:53]Write i2c OK [13:23:53]MH_I2C_Read... [13:23:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:23:53]Read from MH i2c: E2 [13:23:53]MH_I2C_Read... [13:23:53]Read from MH i2c: E2 03 00 [13:23:53]MH_I2C_Read... [13:23:53]Read from MH i2c: E2 03 00 30 39 00 90 00 DD [13:23:53]RAPDU: 90 00 [13:23:53]wFMCommunicate OK [13:23:53]wFMCommunicate request_size=255 [13:23:53]MH_SAM_APDU [13:23:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 ED C3 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 FC 0A 01 00 35 04 06 00 5F [13:23:53]Write to MH i2c: E2 02 01 31 39 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 ED C3 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 FC 0A 01 00 35 04 06 00 5F 00 00 EB [13:23:53]Write i2c OK [13:23:53]MH_I2C_Read... [13:23:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:23:53]Read from MH i2c: E2 [13:23:53]MH_I2C_Read... [13:23:53]Read from MH i2c: E2 03 00 [13:23:53]MH_I2C_Read... [13:23:53]Read from MH i2c: E2 03 00 31 39 00 90 00 DE [13:23:53]RAPDU: 90 00 [13:23:53]wFMCommunicate OK [13:23:53]wFMCommunicate request_size=10 [13:23:53]MH_SAM_APDU [13:23:53]CAPDU: 80 0D 02 02 05 8A B4 E3 36 CC [13:23:53]Write to MH i2c: E2 0D 00 32 39 80 0D 02 02 05 00 8A B4 E3 36 CC 00 00 12 [13:23:53]Write i2c OK [13:23:53]MH_I2C_Read... [13:23:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:23:53]Read from MH i2c: E2 [13:23:53]MH_I2C_Read... [13:23:53]Read from MH i2c: E2 03 00 [13:23:53]MH_I2C_Read... [13:23:53]Read from MH i2c: E2 03 00 32 39 00 90 00 DF [13:23:53]RAPDU: 90 00 [13:23:53]wFMCommunicate OK [13:23:53]wFMCommunicate request_size=4 [13:23:53]MH_SAM_APDU [13:23:53]CAPDU: 80 0D 03 02 [13:23:53]Write to MH i2c: E2 08 00 33 39 80 0D 03 02 00 00 00 00 E7 [13:23:53]Write i2c OK [13:23:53]MH_I2C_Read... [13:23:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:23:53]Read from MH i2c: E2 [13:23:53]MH_I2C_Read... [13:23:53]Read from MH i2c: E2 0B 00 [13:23:53]MH_I2C_Read... [13:23:53]Read from MH i2c: E2 0B 00 33 39 00 9B 48 82 EE 9B 97 70 56 90 00 33 [13:23:53]RAPDU: 9B 48 82 EE 9B 97 70 56 90 00 [13:23:53]wFMCommunicate OK [13:23:53]SAM_PROTO_SignData done [13:23:53]FM_MakeSignedData done [13:23:53]CreateOFDProtocolMessage [13:23:53]wFMCommunicate request_size=4 [13:23:53]MH_SAM_APDU [13:23:53]CAPDU: 80 11 00 00 [13:23:53]Write to MH i2c: E2 08 00 34 39 80 11 00 00 00 00 00 00 E7 [13:23:53]Write i2c OK [13:23:53]MH_I2C_Read... [13:23:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:23:53]Read from MH i2c: E2 [13:23:53]MH_I2C_Read... [13:23:53]Read from MH i2c: E2 17 00 [13:23:53]MH_I2C_Read... [13:23:53]Read from MH i2c: E2 17 00 34 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 32 [13:23:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [13:23:53]wFMCommunicate OK [13:23:53]CreateOFDProtocolMessage done [13:23:53]OFDSenderStorePacket 68348 [13:23:53]StoreOFDPacket docnum=68348 [13:23:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 60 B0 07 01 93 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 ED C3 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 FC 0A 01 00 35 04 06 00 5F 8A B4 E3 36 CC 9B 48 82 EE 9B 97 70 56 [13:23:53]CheckFolder [13:23:53]dirname=/storage/ofd_packets [13:23:53]CheckFolder done [13:23:53]ProducePacketName [13:23:53]name=ofd_packets/00068348 [13:23:53]NVStorageSaveData ofd_packets/00068348 [13:23:53]File name is /storage/ofd_packets/00068348 [13:23:53]Write 301 bytes [13:23:53]NVStorageSaveData done [13:23:53]OFDSenderStorePacket done [13:23:53]KKMCreateOFDPacket done [13:23:53]NVStorageSaveData kkm_last_timestamp [13:23:53]File name is /storage/kkm_last_timestamp [13:23:53]Write 4 bytes [13:23:53]NVStorageSaveData done [13:23:53]ExternCall_PrintAddStr [13:23:53]wPrintStart [13:23:53]Write to MH i2c: 01 00 00 35 39 6E [13:23:53]Write i2c OK [13:23:53]MH_I2C_Read... [13:23:53]Read from MH i2c: 01 [13:23:53]MH_I2C_Read... [13:23:53]Read from MH i2c: 01 07 00 [13:23:53]MH_I2C_Read... [13:23:53]Read from MH i2c: 01 07 00 35 39 00 00 00 00 00 FF 0F 83 [13:23:53]RasterBufferAndPrint [13:23:53]line Счет N : (1)706436 [13:23:53]line ИНН: 02508201610067 [13:23:53]line Контрольно-Кассовый Чек [13:23:53]line ПРОДАЖА [13:23:53]line ТРК (МРК, ГНК) : 63 [13:23:53]line Товар: 2710124130 [13:23:53]line Аи-92-К-4 [13:23:53]line 7.480 * 66.90 [13:23:53]line = 500.41 [13:23:53]line НДС 12% НСП 1% [13:23:53]line > о реализуемом товаре [13:23:53]line ОКРУГЛЕНИЕ: -0.41 [13:23:53]line ИТОГО: 500.00 [13:23:53]line Внесено: 500.00 [13:23:53]line СДАЧА: 0.00 [13:23:53]line НСП 1% : 4.43 [13:23:53]line НДС 12% : 53.14 [13:23:53]line Наличными: 500.00 [13:23:53]line Безнал.: 0.00 [13:23:53]line Место: АЗС № 62 "Партнер Нефть" [13:23:53]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [13:23:53]line СНО: Общий режим [13:23:53]line Чек 94 03.06.2024 13:23 [13:23:53]line Смена: 324 ФФД: 1.0 [13:23:53]line ЗНМ: 0300000181 [13:23:53]line РНМ: 0000000000098096 [13:23:53]line Версия ККМ: 001 [13:23:53]line ФМ: 0000000000965400 [13:23:53]line ФД: 68348 [13:23:53]line ФПД: 105049344915148 [13:23:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T132357&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68348&fm=105049344915148&tin=02508201610067®Number=0000000000098096&sum=50000 [13:23:53]OFD Sender: Processing packet 68348 [packets to send 26, broken 25] [13:23:53]ProducePacketName [13:23:53]name=ofd_packets/00068348 [13:23:53]OFD Sender: To server: pG, [13:23:53]CommunicateWithHost lk.salyk.kg:30040 [13:23:53]ConnectInit lk.salyk.kg [13:23:53]written 0, free lines is 4095 [13:23:54]Connected sock=5 [13:23:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 60 B0 07 01 93 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 ED C3 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 FC 0A 01 00 35 04 06 00 5F 8A B4 E3 36 CC 9B 48 82 EE 9B 97 70 56 [13:23:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 99 B3 47 00 F1 AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 FC 0A 01 00 F4 03 04 00 E9 6A 5D 66 B6 04 01 00 00 94 C7 4C 5F 50 91 DA 77 [13:23:54]CommunicateWithHost err = 0 [13:23:54]CheckOFDResponse [13:23:54]1017 (14) - 77093643461234 [13:23:54]1041 (16) - 0000000000965400 [13:23:54]1040 (4) - 68348 [13:23:54]1012 (4) - 03.06.2024 07:04 [13:23:54]1206 (1) - 0 [13:23:54]OFD Sender: Remove packet 68348 [13:23:54]ProducePacketName [13:23:54]name=ofd_packets/00068348 [13:23:54]NVStorageDeleteData [13:23:54]Write to MH i2c: 01 00 00 60 39 99 [13:23:54]Write i2c OK [13:23:54]MH_I2C_Read... [13:23:54]Read from MH i2c: 01 [13:23:54]MH_I2C_Read... [13:23:54]Read from MH i2c: 01 07 00 [13:23:54]MH_I2C_Read... [13:23:54]Read from MH i2c: 01 07 00 60 39 00 00 00 00 00 E4 0C 90 [13:23:54]RasterBufferAndPrint [13:23:54]line [13:23:54]line [13:23:54]line [13:23:54]line [13:23:54]line [13:23:54]written 0, free lines is 3306 [13:23:54]MH_Cut [13:23:54]Write to MH i2c: D1 01 00 67 39 01 72 [13:23:54]Write i2c OK [13:23:54]MH_I2C_Read... [13:23:54]Read from MH i2c: D1 [13:23:54]MH_I2C_Read... [13:23:54]Read from MH i2c: D1 01 00 [13:23:54]MH_I2C_Read... [13:23:54]Read from MH i2c: D1 01 00 67 39 00 71 [13:23:54]Write to MH i2c: 01 00 00 68 39 A1 [13:23:54]Write i2c OK [13:23:54]MH_I2C_Read... [13:23:54]OFD Sender: No OFD packet to send [13:23:55]*** Cut start [13:23:55]*** Partial cut [13:23:55]*** CUTSNS_PIN = 1 [13:23:55]*** CUTSNS_PIN = 0 [13:23:55]*** Brake cut motor [13:23:55]Read from MH i2c: 01 [13:23:55]MH_I2C_Read... [13:23:55]*** Stop cut motor [13:23:55]*** Cut end [13:23:55]Read from MH i2c: 01 07 00 [13:23:55]MH_I2C_Read... [13:23:55]Read from MH i2c: 01 07 00 68 39 00 00 00 00 00 FF 0F B6 [13:23:55]process_action close_receipt done [13:23:55]requested_data is exist [13:23:55]produce_requested_data [13:23:55]requested_item fm.sn is exist - process it [13:23:55]wFMCommunicate request_size=4 [13:23:55]MH_SAM_APDU [13:23:55]CAPDU: 80 11 00 00 [13:23:55]Write to MH i2c: E2 08 00 69 39 80 11 00 00 00 00 00 00 1C [13:23:55]Write i2c OK [13:23:55]MH_I2C_Read... [13:23:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:23:55]Read from MH i2c: E2 [13:23:55]MH_I2C_Read... [13:23:55]Read from MH i2c: E2 17 00 [13:23:55]MH_I2C_Read... [13:23:55]Read from MH i2c: E2 17 00 69 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 67 [13:23:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [13:23:55]wFMCommunicate OK [13:23:55]requested_item fd.num is exist - process it [13:23:55]SAM_PROTO_GetFieldsCounters [13:23:55]wFMCommunicate request_size=4 [13:23:55]MH_SAM_APDU [13:23:55]CAPDU: 80 13 00 00 [13:23:55]Write to MH i2c: E2 08 00 6A 39 80 13 00 00 00 00 00 00 1F [13:23:55]Write i2c OK [13:23:55]MH_I2C_Read... [13:23:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:23:55]Read from MH i2c: E2 [13:23:55]MH_I2C_Read... [13:23:55]Read from MH i2c: E2 62 00 [13:23:55]MH_I2C_Read... [13:23:55]Read from MH i2c: E2 62 00 6A 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 FC 0A 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 A5 [13:23:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 FC 0A 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:23:55]wFMCommunicate OK [13:23:55]SAM_PROTO_GetFieldsCounters done [13:23:55]requested_item shift.num is exist - process it [13:23:55]requested_item shift.opened is exist - process it [13:23:55]req_shift_opened [13:23:55]FM_GetShiftState [13:23:55]SAM_PROTO_GetShiftState [13:23:55]wFMCommunicate request_size=4 [13:23:55]MH_SAM_APDU [13:23:55]CAPDU: 80 13 01 00 [13:23:55]Write to MH i2c: E2 08 00 6B 39 80 13 01 00 00 00 00 00 21 [13:23:55]Write i2c OK [13:23:55]MH_I2C_Read... [13:23:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:23:56]Read from MH i2c: E2 [13:23:56]MH_I2C_Read... [13:23:56]Read from MH i2c: E2 0E 00 [13:23:56]MH_I2C_Read... [13:23:56]Read from MH i2c: E2 0E 00 6B 39 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 FC [13:23:56]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [13:23:56]wFMCommunicate OK [13:23:56]SAM_PROTO_GetShiftState done [13:23:56]FM_GetShiftState done [13:23:56]req_shift_opened done [13:23:56]requested_item shift.open_date is exist - process it [13:23:56]req_shift_open_date [13:23:56]req_shift_open_date done [13:23:56]produce_requested_data done [13:23:56]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68348,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [13:23:56]process_action_free close_receipt [13:23:56]json_value_free [13:23:56]json_value_free done [13:23:56]process_json_proto returns [13:23:56]Send response to host [13:23:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68348,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [13:23:56]free response buf [13:23:56]execute_script done [13:23:56]execute_script returns [13:23:56]free content buf [13:23:56]Sock 6.Close socket [13:23:56]Sock 6.Thread stoped [13:23:59]OFD Sender: No OFD packet to send [13:24:04]OFD Sender: No OFD packet to send [13:24:09]OFD Sender: No OFD packet to send [13:24:14]OFD Sender: No OFD packet to send [13:24:19]OFD Sender: No OFD packet to send [13:24:24]OFD Sender: No OFD packet to send [13:24:29]OFD Sender: No OFD packet to send [13:24:34]OFD Sender: No OFD packet to send [13:24:39]OFD Sender: No OFD packet to send [13:24:44]OFD Sender: No OFD packet to send [13:24:49]OFD Sender: No OFD packet to send [13:24:54]OFD Sender: No OFD packet to send [13:24:59]OFD Sender: No OFD packet to send [13:25:04]OFD Sender: No OFD packet to send [13:25:09]OFD Sender: No OFD packet to send [13:25:14]OFD Sender: No OFD packet to send [13:25:19]OFD Sender: No OFD packet to send [13:25:24]OFD Sender: No OFD packet to send [13:25:29]OFD Sender: No OFD packet to send [13:25:34]OFD Sender: No OFD packet to send [13:25:39]OFD Sender: No OFD packet to send [13:25:44]OFD Sender: No OFD packet to send [13:25:49]OFD Sender: No OFD packet to send [13:25:54]OFD Sender: No OFD packet to send [13:25:59]OFD Sender: No OFD packet to send [13:26:04]OFD Sender: No OFD packet to send [13:26:09]OFD Sender: No OFD packet to send [13:26:14]OFD Sender: No OFD packet to send [13:26:19]OFD Sender: No OFD packet to send [13:26:24]OFD Sender: No OFD packet to send [13:26:29]OFD Sender: No OFD packet to send [13:26:34]OFD Sender: No OFD packet to send [13:26:39]OFD Sender: No OFD packet to send [13:26:44]OFD Sender: No OFD packet to send [13:26:49]OFD Sender: No OFD packet to send [13:26:54]OFD Sender: No OFD packet to send [13:26:59]OFD Sender: No OFD packet to send [13:27:04]OFD Sender: No OFD packet to send [13:27:09]OFD Sender: No OFD packet to send [13:27:14]OFD Sender: No OFD packet to send [13:27:19]OFD Sender: No OFD packet to send [13:27:24]OFD Sender: No OFD packet to send [13:27:29]OFD Sender: No OFD packet to send [13:27:34]OFD Sender: No OFD packet to send [13:27:39]OFD Sender: No OFD packet to send [13:27:44]OFD Sender: No OFD packet to send [13:27:49]OFD Sender: No OFD packet to send [13:27:54]OFD Sender: No OFD packet to send [13:27:59]OFD Sender: No OFD packet to send [13:28:04]OFD Sender: No OFD packet to send [13:28:09]OFD Sender: No OFD packet to send [13:28:14]OFD Sender: No OFD packet to send [13:28:19]OFD Sender: No OFD packet to send [13:28:24]OFD Sender: No OFD packet to send [13:28:29]OFD Sender: No OFD packet to send [13:28:34]OFD Sender: No OFD packet to send [13:28:39]OFD Sender: No OFD packet to send [13:28:44]OFD Sender: No OFD packet to send [13:28:49]OFD Sender: No OFD packet to send [13:28:54]OFD Sender: No OFD packet to send [13:28:59]OFD Sender: No OFD packet to send [13:29:04]OFD Sender: No OFD packet to send [13:29:10]OFD Sender: No OFD packet to send [13:29:15]OFD Sender: No OFD packet to send [13:29:20]OFD Sender: No OFD packet to send [13:29:25]OFD Sender: No OFD packet to send [13:29:30]OFD Sender: No OFD packet to send [13:29:35]OFD Sender: No OFD packet to send [13:29:40]OFD Sender: No OFD packet to send [13:29:45]OFD Sender: No OFD packet to send [13:29:50]OFD Sender: No OFD packet to send [13:29:55]OFD Sender: No OFD packet to send [13:30:00]OFD Sender: No OFD packet to send [13:30:05]OFD Sender: No OFD packet to send [13:30:10]OFD Sender: No OFD packet to send [13:30:15]OFD Sender: No OFD packet to send [13:30:20]OFD Sender: No OFD packet to send [13:30:25]OFD Sender: No OFD packet to send [13:30:30]OFD Sender: No OFD packet to send [13:30:35]OFD Sender: No OFD packet to send [13:30:40]OFD Sender: No OFD packet to send [13:30:45]OFD Sender: No OFD packet to send [13:30:50]OFD Sender: No OFD packet to send [13:30:55]OFD Sender: No OFD packet to send [13:31:00]OFD Sender: No OFD packet to send [13:31:05]OFD Sender: No OFD packet to send [13:31:10]OFD Sender: No OFD packet to send [13:31:15]OFD Sender: No OFD packet to send [13:31:20]OFD Sender: No OFD packet to send [13:31:25]OFD Sender: No OFD packet to send [13:31:30]OFD Sender: No OFD packet to send [13:31:35]OFD Sender: No OFD packet to send [13:31:40]OFD Sender: No OFD packet to send [13:31:45]OFD Sender: No OFD packet to send [13:31:50]OFD Sender: No OFD packet to send [13:31:55]OFD Sender: No OFD packet to send [13:32:00]OFD Sender: No OFD packet to send [13:32:05]OFD Sender: No OFD packet to send [13:32:10]OFD Sender: No OFD packet to send [13:32:15]OFD Sender: No OFD packet to send [13:32:20]OFD Sender: No OFD packet to send [13:32:25]OFD Sender: No OFD packet to send [13:32:30]OFD Sender: No OFD packet to send [13:32:35]OFD Sender: No OFD packet to send [13:32:40]OFD Sender: No OFD packet to send [13:32:45]OFD Sender: No OFD packet to send [13:32:50]OFD Sender: No OFD packet to send [13:32:55]OFD Sender: No OFD packet to send [13:33:00]OFD Sender: No OFD packet to send [13:33:05]OFD Sender: No OFD packet to send [13:33:10]OFD Sender: No OFD packet to send [13:33:15]OFD Sender: No OFD packet to send [13:33:20]OFD Sender: No OFD packet to send [13:33:25]OFD Sender: No OFD packet to send [13:33:30]OFD Sender: No OFD packet to send [13:33:35]OFD Sender: No OFD packet to send [13:33:40]OFD Sender: No OFD packet to send [13:33:45]OFD Sender: No OFD packet to send [13:33:50]OFD Sender: No OFD packet to send [13:33:55]OFD Sender: No OFD packet to send [13:34:00]OFD Sender: No OFD packet to send [13:34:05]OFD Sender: No OFD packet to send [13:34:10]OFD Sender: No OFD packet to send [13:34:15]OFD Sender: No OFD packet to send [13:34:20]OFD Sender: No OFD packet to send [13:34:25]OFD Sender: No OFD packet to send [13:34:30]OFD Sender: No OFD packet to send [13:34:35]OFD Sender: No OFD packet to send [13:34:40]OFD Sender: No OFD packet to send [13:34:45]OFD Sender: No OFD packet to send [13:34:50]OFD Sender: No OFD packet to send [13:34:55]OFD Sender: No OFD packet to send [13:35:00]OFD Sender: No OFD packet to send [13:35:05]OFD Sender: No OFD packet to send [13:35:10]OFD Sender: No OFD packet to send [13:35:15]OFD Sender: No OFD packet to send [13:35:20]OFD Sender: No OFD packet to send [13:35:25]OFD Sender: No OFD packet to send [13:35:30]OFD Sender: No OFD packet to send [13:35:35]OFD Sender: No OFD packet to send [13:35:40]OFD Sender: No OFD packet to send [13:35:45]OFD Sender: No OFD packet to send [13:35:50]OFD Sender: No OFD packet to send [13:35:55]OFD Sender: No OFD packet to send [13:36:00]OFD Sender: No OFD packet to send [13:36:05]OFD Sender: No OFD packet to send [13:36:10]OFD Sender: No OFD packet to send [13:36:15]OFD Sender: No OFD packet to send [13:36:20]OFD Sender: No OFD packet to send [13:36:25]OFD Sender: No OFD packet to send [13:36:30]OFD Sender: No OFD packet to send [13:36:35]OFD Sender: No OFD packet to send [13:36:40]OFD Sender: No OFD packet to send [13:36:45]OFD Sender: No OFD packet to send [13:36:50]OFD Sender: No OFD packet to send [13:36:55]OFD Sender: No OFD packet to send [13:36:56]accept exits with 7 [13:36:56]New connection [13:36:56]New thread 3066543460 created [13:36:56]Thread 3066686820 joined [13:36:56]Waiting for new connection... [13:36:56] Sock 7.Parse request [13:36:56]Sock 7.Check first char [13:36:56]Sock 7.First char is OK [13:36:56]request: POST /json_proto HTTP/1.0 [13:36:56]Method: POST [13:36:56]URL: /json_proto [13:36:56]Method is POST - this is cgi request [13:36:56]url: /json_proto [13:36:56]query_string will be loaded in cgi processing [13:36:56]execute_cgi json_proto POST (null) [13:36:56]execute_cgi path=json_proto method=POST [13:36:56]POST find Content-Length [13:36:56]Host: 172.17.36.132:8080 [13:36:56]Content-Length: 675 [13:36:56]Content-Type: application/json [13:36:56] [13:36:56]POST finish read [13:36:56]Found Content-Length = 675 [13:36:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706437", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 22.100, "sum" : 1500.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:36:56]execute_script... [13:36:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706437", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 22.100, "sum" : 1500.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:36:56]POST & json_proto [13:36:56]process_json_proto [13:36:56]json parsed OK: [13:36:56]protocol is kg_v1.0 [13:36:56]action value=close_receipt [13:36:56]process_action close_receipt [13:36:56]cmd_close_receipt [13:36:56]MH_GetDate [13:36:56]Write to MH i2c: F0 00 00 6C 39 94 [13:36:56]Write i2c OK [13:36:56]MH_I2C_Read... [13:36:56]Read from MH i2c: F0 [13:36:56]MH_I2C_Read... [13:36:56]Read from MH i2c: F0 09 00 [13:36:56]MH_I2C_Read... [13:36:56]Read from MH i2c: F0 09 00 6C 39 00 FD C6 5D 66 B2 22 B0 64 0B [13:36:56]GetLastDocTimeStamp 1717421037 [13:36:56]current date 1717421821 [13:36:56]FM_GetShiftState [13:36:56]SAM_PROTO_GetShiftState [13:36:56]wFMCommunicate request_size=4 [13:36:56]MH_SAM_APDU [13:36:56]CAPDU: 80 13 01 00 [13:36:56]Write to MH i2c: E2 08 00 6D 39 80 13 01 00 00 00 00 00 23 [13:36:56]Write i2c OK [13:36:56]MH_I2C_Read... [13:36:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:36:56]Read from MH i2c: E2 [13:36:56]MH_I2C_Read... [13:36:56]Read from MH i2c: E2 0E 00 [13:36:56]MH_I2C_Read... [13:36:56]Read from MH i2c: E2 0E 00 6D 39 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 FE [13:36:56]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [13:36:56]wFMCommunicate OK [13:36:56]SAM_PROTO_GetShiftState done [13:36:56]FM_GetShiftState done [13:36:56]opened in 1717378033 [13:36:56]opened+sec_in_day 1717464433 [13:36:56]quantity*price = 150059 [13:36:56]sum+1 = 150060 [13:36:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 95 03.06.2024 13:37 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68349 ФПД: 10862590253438 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T133701&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68349&fm=10862590253438&tin=02508201610067®Number=0000000000098096&sum=150000 [13:36:57]StoreToDocumentArchive [13:36:57]shift 324 fd 68349 [13:36:57]save to /storage/0324/doc_00068349 [13:36:57]save last doc name /storage/0324/doc_00068349 to /storage/kkm_last_doc_name [13:36:57]save OK [13:36:57]Clear old archive folders... [13:36:57]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:36:57]tlvbuf is 00464230 [13:36:57]SAM_PROTO_ClearQueue [13:36:57]wFMCommunicate request_size=4 [13:36:57]MH_SAM_APDU [13:36:57]CAPDU: 80 09 00 00 [13:36:57]Write to MH i2c: E2 08 00 7A 39 80 09 00 00 00 00 00 00 25 [13:36:57]Write i2c OK [13:36:57]MH_I2C_Read... [13:36:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:36:57]Read from MH i2c: E2 [13:36:57]MH_I2C_Read... [13:36:57]Read from MH i2c: E2 03 00 [13:36:57]MH_I2C_Read... [13:36:57]Read from MH i2c: E2 03 00 7A 39 00 90 00 27 [13:36:57]RAPDU: 90 00 [13:36:57]wFMCommunicate OK [13:36:57]SAM_PROTO_ClearQueue done [13:36:57]KKMCreateOFDPacket [13:36:57]OFDProtocolAddRootSTLVToBuf [13:36:57]FM_MakeSignedData [13:36:57]FM_MakeSignedData [13:36:57]SAM_PROTO_SignData [13:36:57]wFMCommunicate request_size=4 [13:36:57]MH_SAM_APDU [13:36:57]CAPDU: 80 0D 01 02 [13:36:57]Write to MH i2c: E2 08 00 7B 39 80 0D 01 02 00 00 00 00 2D [13:36:57]Write i2c OK [13:36:57]MH_I2C_Read... [13:36:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:36:57]Read from MH i2c: E2 [13:36:57]MH_I2C_Read... [13:36:57]Read from MH i2c: E2 03 00 [13:36:57]MH_I2C_Read... [13:36:57]Read from MH i2c: E2 03 00 7B 39 00 90 00 28 [13:36:57]RAPDU: 90 00 [13:36:57]wFMCommunicate OK [13:36:57]wFMCommunicate request_size=255 [13:36:57]MH_SAM_APDU [13:36: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 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 54 56 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 2B 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 FD C6 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 FD 0A 01 00 35 04 06 00 [13:36:57]Write to MH i2c: E2 02 01 7C 39 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 54 56 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 2B 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 FD C6 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 FD 0A 01 00 35 04 06 00 00 00 7B [13:36:57]Write i2c OK [13:36:57]MH_I2C_Read... [13:36:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:36:57]Read from MH i2c: E2 [13:36:57]MH_I2C_Read... [13:36:57]Read from MH i2c: E2 03 00 [13:36:57]MH_I2C_Read... [13:36:57]Read from MH i2c: E2 03 00 7C 39 00 90 00 29 [13:36:57]RAPDU: 90 00 [13:36:57]wFMCommunicate OK [13:36:57]wFMCommunicate request_size=11 [13:36:57]MH_SAM_APDU [13:36:57]CAPDU: 80 0D 02 02 06 09 E1 24 D5 59 7E [13:36:57]Write to MH i2c: E2 0E 00 7D 39 80 0D 02 02 06 00 09 E1 24 D5 59 7E 00 00 F6 [13:36:57]Write i2c OK [13:36:57]MH_I2C_Read... [13:36:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:36:57]Read from MH i2c: E2 [13:36:57]MH_I2C_Read... [13:36:57]Read from MH i2c: E2 03 00 [13:36:57]MH_I2C_Read... [13:36:57]Read from MH i2c: E2 03 00 7D 39 00 90 00 2A [13:36:57]RAPDU: 90 00 [13:36:57]wFMCommunicate OK [13:36:57]wFMCommunicate request_size=4 [13:36:57]MH_SAM_APDU [13:36:57]CAPDU: 80 0D 03 02 [13:36:57]Write to MH i2c: E2 08 00 7E 39 80 0D 03 02 00 00 00 00 32 [13:36:57]Write i2c OK [13:36:57]MH_I2C_Read... [13:36:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:36:57]Read from MH i2c: E2 [13:36:57]MH_I2C_Read... [13:36:57]Read from MH i2c: E2 0B 00 [13:36:57]MH_I2C_Read... [13:36:57]Read from MH i2c: E2 0B 00 7E 39 00 F0 2D 1D 9A 66 B9 B2 F8 90 00 D0 [13:36:57]RAPDU: F0 2D 1D 9A 66 B9 B2 F8 90 00 [13:36:57]wFMCommunicate OK [13:36:57]SAM_PROTO_SignData done [13:36:57]FM_MakeSignedData done [13:36:57]CreateOFDProtocolMessage [13:36:57]wFMCommunicate request_size=4 [13:36:57]MH_SAM_APDU [13:36:57]CAPDU: 80 11 00 00 [13:36:57]Write to MH i2c: E2 08 00 7F 39 80 11 00 00 00 00 00 00 32 [13:36:57]Write i2c OK [13:36:57]MH_I2C_Read... [13:36:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:36:57]Read from MH i2c: E2 [13:36:57]MH_I2C_Read... [13:36:57]Read from MH i2c: E2 17 00 [13:36:57]MH_I2C_Read... [13:36:57]Read from MH i2c: E2 17 00 7F 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 7D [13:36:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [13:36:57]wFMCommunicate OK [13:36:57]CreateOFDProtocolMessage done [13:36:57]OFDSenderStorePacket 68349 [13:36:57]StoreOFDPacket docnum=68349 [13:36:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 2E DB 08 01 9C 71 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 54 56 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 2B 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 FD C6 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 FD 0A 01 00 35 04 06 00 09 E1 24 D5 59 7E F0 2D 1D 9A 66 B9 B2 F8 [13:36:57]CheckFolder [13:36:57]dirname=/storage/ofd_packets [13:36:57]CheckFolder done [13:36:57]ProducePacketName [13:36:57]name=ofd_packets/00068349 [13:36:57]NVStorageSaveData ofd_packets/00068349 [13:36:57]File name is /storage/ofd_packets/00068349 [13:36:57]Write 302 bytes [13:36:57]NVStorageSaveData done [13:36:57]OFDSenderStorePacket done [13:36:57]KKMCreateOFDPacket done [13:36:57]NVStorageSaveData kkm_last_timestamp [13:36:57]File name is /storage/kkm_last_timestamp [13:36:57]Write 4 bytes [13:36:57]NVStorageSaveData done [13:36:57]ExternCall_PrintAddStr [13:36:57]wPrintStart [13:36:57]Write to MH i2c: 01 00 00 80 39 B9 [13:36:57]Write i2c OK [13:36:57]MH_I2C_Read... [13:36:57]Read from MH i2c: 01 [13:36:57]MH_I2C_Read... [13:36:57]Read from MH i2c: 01 07 00 [13:36:57]MH_I2C_Read... [13:36:57]Read from MH i2c: 01 07 00 80 39 00 00 00 00 00 FF 0F CE [13:36:57]RasterBufferAndPrint [13:36:57]line Счет N : (1)706437 [13:36:57]line ИНН: 02508201610067 [13:36:57]line Контрольно-Кассовый Чек [13:36:57]line ПРОДАЖА [13:36:57]line ТРК (МРК, ГНК) : 41 [13:36:57]line Товар: 2710124130 [13:36:57]line Super-92-К-5 [13:36:57]line 22.100 * 67.90 [13:36:57]line = 1500.59 [13:36:57]line НДС 12% НСП 1% [13:36:57]line > о реализуемом товаре [13:36:57]line ОКРУГЛЕНИЕ: -0.59 [13:36:57]line ИТОГО: 1500.00 [13:36:57]line Внесено: 1500.00 [13:36:57]line СДАЧА: 0.00 [13:36:57]line НСП 1% : 13.28 [13:36:57]line НДС 12% : 159.35 [13:36:57]line Наличными: 1500.00 [13:36:57]line Безнал.: 0.00 [13:36:57]line Место: АЗС № 62 "Партнер Нефть" [13:36:57]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [13:36:57]line СНО: Общий режим [13:36:57]line Чек 95 03.06.2024 13:37 [13:36:57]line Смена: 324 ФФД: 1.0 [13:36:57]line ЗНМ: 0300000181 [13:36:57]line РНМ: 0000000000098096 [13:36:57]line Версия ККМ: 001 [13:36:57]line ФМ: 0000000000965400 [13:36:57]line ФД: 68349 [13:36:57]line ФПД: 10862590253438 [13:36:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T133701&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68349&fm=10862590253438&tin=02508201610067®Number=0000000000098096&sum=150000 [13:36:58]OFD Sender: Processing packet 68349 [packets to send 26, broken 25] [13:36:58]ProducePacketName [13:36:58]name=ofd_packets/00068349 [13:36:58]OFD Sender: To server: pG, [13:36:58]CommunicateWithHost lk.salyk.kg:30040 [13:36:58]ConnectInit lk.salyk.kg [13:36:58]written 0, free lines is 4095 [13:36:58]Connected sock=6 [13:36:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 2E DB 08 01 9C 71 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 54 56 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 2B 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 FD C6 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 FD 0A 01 00 35 04 06 00 09 E1 24 D5 59 7E F0 2D 1D 9A 66 B9 B2 F8 [13:36:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 FF BF 47 00 1F 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 FD 0A 01 00 F4 03 04 00 F9 6D 5D 66 B6 04 01 00 00 A1 7D 1A 38 A0 35 A2 77 [13:36:58]CommunicateWithHost err = 0 [13:36:58]CheckOFDResponse [13:36:58]1017 (14) - 77093643461234 [13:36:58]1041 (16) - 0000000000965400 [13:36:58]1040 (4) - 68349 [13:36:58]1012 (4) - 03.06.2024 07:17 [13:36:58]1206 (1) - 0 [13:36:58]OFD Sender: Remove packet 68349 [13:36:58]ProducePacketName [13:36:58]name=ofd_packets/00068349 [13:36:58]NVStorageDeleteData [13:36:58]Write to MH i2c: 01 00 00 AB 39 E4 [13:36:58]Write i2c OK [13:36:58]MH_I2C_Read... [13:36:58]Read from MH i2c: 01 [13:36:58]MH_I2C_Read... [13:36:58]Read from MH i2c: 01 07 00 [13:36:58]MH_I2C_Read... [13:36:58]Read from MH i2c: 01 07 00 AB 39 00 00 00 00 00 ED 0C E4 [13:36:58]RasterBufferAndPrint [13:36:58]line [13:36:58]line [13:36:58]line [13:36:58]line [13:36:58]line [13:36:58]written 0, free lines is 3315 [13:36:58]MH_Cut [13:36:58]Write to MH i2c: D1 01 00 B2 39 01 BD [13:36:58]Write i2c OK [13:36:58]MH_I2C_Read... [13:36:58]Read from MH i2c: D1 [13:36:58]MH_I2C_Read... [13:36:58]Read from MH i2c: D1 01 00 [13:36:58]MH_I2C_Read... [13:36:58]Read from MH i2c: D1 01 00 B2 39 00 BC [13:36:58]Write to MH i2c: 01 00 00 B3 39 EC [13:36:58]Write i2c OK [13:36:58]MH_I2C_Read... [13:36:58]OFD Sender: No OFD packet to send [13:36:59]*** Cut start [13:36:59]*** Partial cut [13:36:59]*** CUTSNS_PIN = 1 [13:36:59]*** CUTSNS_PIN = 0 [13:36:59]*** Brake cut motor [13:37:00]Read from MH i2c: 01 [13:37:00]MH_I2C_Read... [13:37:00]*** Stop cut motor [13:37:00]*** Cut end [13:37:00]Read from MH i2c: 01 07 00 [13:37:00]MH_I2C_Read... [13:37:00]Read from MH i2c: 01 07 00 B3 39 00 00 00 00 00 FF 0F 01 [13:37:00]process_action close_receipt done [13:37:00]requested_data is exist [13:37:00]produce_requested_data [13:37:00]requested_item fm.sn is exist - process it [13:37:00]wFMCommunicate request_size=4 [13:37:00]MH_SAM_APDU [13:37:00]CAPDU: 80 11 00 00 [13:37:00]Write to MH i2c: E2 08 00 B4 39 80 11 00 00 00 00 00 00 67 [13:37:00]Write i2c OK [13:37:00]MH_I2C_Read... [13:37:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:37:00]Read from MH i2c: E2 [13:37:00]MH_I2C_Read... [13:37:00]Read from MH i2c: E2 17 00 [13:37:00]MH_I2C_Read... [13:37:00]Read from MH i2c: E2 17 00 B4 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 B2 [13:37:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [13:37:00]wFMCommunicate OK [13:37:00]requested_item fd.num is exist - process it [13:37:00]SAM_PROTO_GetFieldsCounters [13:37:00]wFMCommunicate request_size=4 [13:37:00]MH_SAM_APDU [13:37:00]CAPDU: 80 13 00 00 [13:37:00]Write to MH i2c: E2 08 00 B5 39 80 13 00 00 00 00 00 00 6A [13:37:00]Write i2c OK [13:37:00]MH_I2C_Read... [13:37:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:37:00]Read from MH i2c: E2 [13:37:00]MH_I2C_Read... [13:37:00]Read from MH i2c: E2 62 00 [13:37:00]MH_I2C_Read... [13:37:00]Read from MH i2c: E2 62 00 B5 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 FD 0A 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [13:37:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 FD 0A 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:37:00]wFMCommunicate OK [13:37:00]SAM_PROTO_GetFieldsCounters done [13:37:00]requested_item shift.num is exist - process it [13:37:00]requested_item shift.opened is exist - process it [13:37:00]req_shift_opened [13:37:00]FM_GetShiftState [13:37:00]SAM_PROTO_GetShiftState [13:37:00]wFMCommunicate request_size=4 [13:37:00]MH_SAM_APDU [13:37:00]CAPDU: 80 13 01 00 [13:37:00]Write to MH i2c: E2 08 00 B6 39 80 13 01 00 00 00 00 00 6C [13:37:00]Write i2c OK [13:37:00]MH_I2C_Read... [13:37:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:37:00]Read from MH i2c: E2 [13:37:00]MH_I2C_Read... [13:37:00]Read from MH i2c: E2 0E 00 [13:37:00]MH_I2C_Read... [13:37:00]Read from MH i2c: E2 0E 00 B6 39 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 47 [13:37:00]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [13:37:00]wFMCommunicate OK [13:37:00]SAM_PROTO_GetShiftState done [13:37:00]FM_GetShiftState done [13:37:00]req_shift_opened done [13:37:00]requested_item shift.open_date is exist - process it [13:37:00]req_shift_open_date [13:37:00]req_shift_open_date done [13:37:00]produce_requested_data done [13:37:00]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68349,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [13:37:00]process_action_free close_receipt [13:37:00]json_value_free [13:37:00]json_value_free done [13:37:00]process_json_proto returns [13:37:00]Send response to host [13:37:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68349,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [13:37:00]free response buf [13:37:00]execute_script done [13:37:00]execute_script returns [13:37:00]free content buf [13:37:00]Sock 7.Close socket [13:37:00]Sock 7.Thread stoped [13:37:03]OFD Sender: No OFD packet to send [13:37:08]OFD Sender: No OFD packet to send [13:37:14]OFD Sender: No OFD packet to send [13:37:19]OFD Sender: No OFD packet to send [13:37:24]OFD Sender: No OFD packet to send [13:37:29]OFD Sender: No OFD packet to send [13:37:34]OFD Sender: No OFD packet to send [13:37:39]OFD Sender: No OFD packet to send [13:37:44]OFD Sender: No OFD packet to send [13:37:44]accept exits with 5 [13:37:44]New connection [13:37:44]New thread 3066686820 created [13:37:44]Thread 3066543460 joined [13:37:44]Waiting for new connection... [13:37:44] Sock 5.Parse request [13:37:44]Sock 5.Check first char [13:37:44]Sock 5.First char is OK [13:37:44]request: POST /json_proto HTTP/1.0 [13:37:44]Method: POST [13:37:44]URL: /json_proto [13:37:44]Method is POST - this is cgi request [13:37:44]url: /json_proto [13:37:44]query_string will be loaded in cgi processing [13:37:44]execute_cgi json_proto POST (null) [13:37:44]execute_cgi path=json_proto method=POST [13:37:44]POST find Content-Length [13:37:44]Host: 172.17.36.132:8080 [13:37:44]Content-Length: 834 [13:37:44]Content-Type: application/json [13:37:44] [13:37:44]POST finish read [13:37:44]Found Content-Length = 834 [13:37:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706438", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 10.000, "sum" : 679.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 679.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:37:44]execute_script... [13:37:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706438", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 10.000, "sum" : 679.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 679.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:37:44]POST & json_proto [13:37:44]process_json_proto [13:37:44]json parsed OK: [13:37:44]protocol is kg_v1.0 [13:37:44]action value=close_receipt [13:37:44]process_action close_receipt [13:37:44]cmd_close_receipt [13:37:44]MH_GetDate [13:37:44]Write to MH i2c: F0 00 00 B7 39 DF [13:37:44]Write i2c OK [13:37:44]MH_I2C_Read... [13:37:44]Read from MH i2c: F0 [13:37:44]MH_I2C_Read... [13:37:44]Read from MH i2c: F0 09 00 [13:37:44]MH_I2C_Read... [13:37:44]Read from MH i2c: F0 09 00 B7 39 00 2E C7 5D 66 B2 22 B0 64 88 [13:37:44]GetLastDocTimeStamp 1717421821 [13:37:44]current date 1717421870 [13:37:44]FM_GetShiftState [13:37:44]SAM_PROTO_GetShiftState [13:37:44]wFMCommunicate request_size=4 [13:37:44]MH_SAM_APDU [13:37:44]CAPDU: 80 13 01 00 [13:37:44]Write to MH i2c: E2 08 00 B8 39 80 13 01 00 00 00 00 00 6E [13:37:44]Write i2c OK [13:37:44]MH_I2C_Read... [13:37:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:37:44]Read from MH i2c: E2 [13:37:44]MH_I2C_Read... [13:37:44]Read from MH i2c: E2 0E 00 [13:37:44]MH_I2C_Read... [13:37:44]Read from MH i2c: E2 0E 00 B8 39 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 49 [13:37:44]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [13:37:44]wFMCommunicate OK [13:37:44]SAM_PROTO_GetShiftState done [13:37:44]FM_GetShiftState done [13:37:44]opened in 1717378033 [13:37:44]opened+sec_in_day 1717464433 [13:37:44]quantity*price = 67900 [13:37:44]sum+1 = 67901 [13:37:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 679.00 НСП 1% : 6.01 НДС 12% : 72.11 Наличными: 0.00 Безнал.: 679.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 96 03.06.2024 13:37 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68350 ФПД: 30543417280422 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T133750&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68350&fm=30543417280422&tin=02508201610067®Number=0000000000098096&sum=67900 [13:37:45]StoreToDocumentArchive [13:37:45]shift 324 fd 68350 [13:37:45]save to /storage/0324/doc_00068350 [13:37:45]save last doc name /storage/0324/doc_00068350 to /storage/kkm_last_doc_name [13:37:45]save OK [13:37:45]Clear old archive folders... [13:37:45]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:37:45]tlvbuf is 004641D0 [13:37:45]SAM_PROTO_ClearQueue [13:37:45]wFMCommunicate request_size=4 [13:37:45]MH_SAM_APDU [13:37:45]CAPDU: 80 09 00 00 [13:37:45]Write to MH i2c: E2 08 00 C5 39 80 09 00 00 00 00 00 00 70 [13:37:45]Write i2c OK [13:37:45]MH_I2C_Read... [13:37:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:37:45]Read from MH i2c: E2 [13:37:45]MH_I2C_Read... [13:37:45]Read from MH i2c: E2 03 00 [13:37:45]MH_I2C_Read... [13:37:45]Read from MH i2c: E2 03 00 C5 39 00 90 00 72 [13:37:45]RAPDU: 90 00 [13:37:45]wFMCommunicate OK [13:37:45]SAM_PROTO_ClearQueue done [13:37:45]KKMCreateOFDPacket [13:37:45]OFDProtocolAddRootSTLVToBuf [13:37:45]FM_MakeSignedData [13:37:45]FM_MakeSignedData [13:37:45]SAM_PROTO_SignData [13:37:45]wFMCommunicate request_size=4 [13:37:45]MH_SAM_APDU [13:37:45]CAPDU: 80 0D 01 02 [13:37:45]Write to MH i2c: E2 08 00 C6 39 80 0D 01 02 00 00 00 00 78 [13:37:45]Write i2c OK [13:37:45]MH_I2C_Read... [13:37:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:37:45]Read from MH i2c: E2 [13:37:45]MH_I2C_Read... [13:37:45]Read from MH i2c: E2 03 00 [13:37:45]MH_I2C_Read... [13:37:45]Read from MH i2c: E2 03 00 C6 39 00 90 00 73 [13:37:45]RAPDU: 90 00 [13:37:45]wFMCommunicate OK [13:37:45]wFMCommunicate request_size=255 [13:37:45]MH_SAM_APDU [13:37:45]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 3C 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 1C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3C 09 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 2E C7 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 FE 0A 01 00 35 04 06 00 [13:37:45]Write to MH i2c: E2 02 01 C7 39 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 3C 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 1C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3C 09 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 2E C7 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 FE 0A 01 00 35 04 06 00 00 00 5C [13:37:45]Write i2c OK [13:37:45]MH_I2C_Read... [13:37:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:37:46]Read from MH i2c: E2 [13:37:46]MH_I2C_Read... [13:37:46]Read from MH i2c: E2 03 00 [13:37:46]MH_I2C_Read... [13:37:46]Read from MH i2c: E2 03 00 C7 39 00 90 00 74 [13:37:46]RAPDU: 90 00 [13:37:46]wFMCommunicate OK [13:37:46]wFMCommunicate request_size=11 [13:37:46]MH_SAM_APDU [13:37:46]CAPDU: 80 0D 02 02 06 1B C7 71 89 87 A6 [13:37:46]Write to MH i2c: E2 0E 00 C8 39 80 0D 02 02 06 00 1B C7 71 89 87 A6 00 00 90 [13:37:46]Write i2c OK [13:37:46]MH_I2C_Read... [13:37:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:37:46]Read from MH i2c: E2 [13:37:46]MH_I2C_Read... [13:37:46]Read from MH i2c: E2 03 00 [13:37:46]MH_I2C_Read... [13:37:46]Read from MH i2c: E2 03 00 C8 39 00 90 00 75 [13:37:46]RAPDU: 90 00 [13:37:46]wFMCommunicate OK [13:37:46]wFMCommunicate request_size=4 [13:37:46]MH_SAM_APDU [13:37:46]CAPDU: 80 0D 03 02 [13:37:46]Write to MH i2c: E2 08 00 C9 39 80 0D 03 02 00 00 00 00 7D [13:37:46]Write i2c OK [13:37:46]MH_I2C_Read... [13:37:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:37:46]Read from MH i2c: E2 [13:37:46]MH_I2C_Read... [13:37:46]Read from MH i2c: E2 0B 00 [13:37:46]MH_I2C_Read... [13:37:46]Read from MH i2c: E2 0B 00 C9 39 00 00 89 0A 89 86 E0 15 63 90 00 78 [13:37:46]RAPDU: 00 89 0A 89 86 E0 15 63 90 00 [13:37:46]wFMCommunicate OK [13:37:46]SAM_PROTO_SignData done [13:37:46]FM_MakeSignedData done [13:37:46]CreateOFDProtocolMessage [13:37:46]wFMCommunicate request_size=4 [13:37:46]MH_SAM_APDU [13:37:46]CAPDU: 80 11 00 00 [13:37:46]Write to MH i2c: E2 08 00 CA 39 80 11 00 00 00 00 00 00 7D [13:37:46]Write i2c OK [13:37:46]MH_I2C_Read... [13:37:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:37:46]Read from MH i2c: E2 [13:37:46]MH_I2C_Read... [13:37:46]Read from MH i2c: E2 17 00 [13:37:46]MH_I2C_Read... [13:37:46]Read from MH i2c: E2 17 00 CA 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 C8 [13:37:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [13:37:46]wFMCommunicate OK [13:37:46]CreateOFDProtocolMessage done [13:37:46]OFDSenderStorePacket 68350 [13:37:46]StoreOFDPacket docnum=68350 [13:37:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 E3 85 08 01 CF AA 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 3C 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 1C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3C 09 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 2E C7 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 FE 0A 01 00 35 04 06 00 1B C7 71 89 87 A6 00 89 0A 89 86 E0 15 63 [13:37:46]CheckFolder [13:37:46]dirname=/storage/ofd_packets [13:37:46]CheckFolder done [13:37:46]ProducePacketName [13:37:46]name=ofd_packets/00068350 [13:37:46]NVStorageSaveData ofd_packets/00068350 [13:37:46]File name is /storage/ofd_packets/00068350 [13:37:46]Write 302 bytes [13:37:46]NVStorageSaveData done [13:37:46]OFDSenderStorePacket done [13:37:46]KKMCreateOFDPacket done [13:37:46]NVStorageSaveData kkm_last_timestamp [13:37:46]File name is /storage/kkm_last_timestamp [13:37:46]Write 4 bytes [13:37:46]NVStorageSaveData done [13:37:46]ExternCall_PrintAddStr [13:37:46]wPrintStart [13:37:46]Write to MH i2c: 01 00 00 CB 39 04 [13:37:46]Write i2c OK [13:37:46]MH_I2C_Read... [13:37:46]Read from MH i2c: 01 [13:37:46]MH_I2C_Read... [13:37:46]Read from MH i2c: 01 07 00 [13:37:46]MH_I2C_Read... [13:37:46]Read from MH i2c: 01 07 00 CB 39 00 00 00 00 00 FF 0F 19 [13:37:46]RasterBufferAndPrint [13:37:46]line Счет N : (1)706438 [13:37:46]line ИНН: 02508201610067 [13:37:46]line Контрольно-Кассовый Чек [13:37:46]line ПРОДАЖА [13:37:46]line ТРК (МРК, ГНК) : 22 [13:37:46]line Товар: 2710124130 [13:37:46]line Super-92-К-5 [13:37:46]line 10.000 * 67.90 [13:37:46]line = 679.00 [13:37:46]line НДС 12% НСП 1% [13:37:46]line > о реализуемом товаре [13:37:46]line ИТОГО: 679.00 [13:37:46]line НСП 1% : 6.01 [13:37:46]line НДС 12% : 72.11 [13:37:46]line Наличными: 0.00 [13:37:46]line Безнал.: 679.00 [13:37:46]line Место: АЗС № 62 "Партнер Нефть" [13:37:46]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [13:37:46]line СНО: Общий режим [13:37:46]line Чек 96 03.06.2024 13:37 [13:37:46]line Смена: 324 ФФД: 1.0 [13:37:46]line ЗНМ: 0300000181 [13:37:46]line РНМ: 0000000000098096 [13:37:46]line Версия ККМ: 001 [13:37:46]line Платежная система: АКБ Кыргызстан [13:37:46]line ФМ: 0000000000965400 [13:37:46]line ФД: 68350 [13:37:46]line ФПД: 30543417280422 [13:37:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T133750&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68350&fm=30543417280422&tin=02508201610067®Number=0000000000098096&sum=67900 [13:37:46]written 0, free lines is 4095 [13:37:46]OFD Sender: Processing packet 68350 [packets to send 26, broken 25] [13:37:46]ProducePacketName [13:37:46]name=ofd_packets/00068350 [13:37:46]OFD Sender: To server: pG, [13:37:46]CommunicateWithHost lk.salyk.kg:30040 [13:37:46]ConnectInit lk.salyk.kg [13:37:46]Connected sock=7 [13:37:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 E3 85 08 01 CF AA 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 3C 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 1C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3C 09 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 2E C7 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 FE 0A 01 00 35 04 06 00 1B C7 71 89 87 A6 00 89 0A 89 86 E0 15 63 [13:37:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 46 4D 47 00 4D 01 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 FE 0A 01 00 F4 03 04 00 29 6E 5D 66 B6 04 01 00 00 11 D1 DF 85 2A DA 61 AC [13:37:46]CommunicateWithHost err = 0 [13:37:46]CheckOFDResponse [13:37:46]1017 (14) - 77093643461234 [13:37:46]1041 (16) - 0000000000965400 [13:37:46]1040 (4) - 68350 [13:37:46]1012 (4) - 03.06.2024 07:18 [13:37:46]1206 (1) - 0 [13:37:46]OFD Sender: Remove packet 68350 [13:37:46]ProducePacketName [13:37:46]name=ofd_packets/00068350 [13:37:46]NVStorageDeleteData [13:37:46]Write to MH i2c: 01 00 00 F5 39 2E [13:37:46]Write i2c OK [13:37:46]MH_I2C_Read... [13:37:46]Read from MH i2c: 01 [13:37:46]MH_I2C_Read... [13:37:46]Read from MH i2c: 01 07 00 [13:37:46]MH_I2C_Read... [13:37:46]Read from MH i2c: 01 07 00 F5 39 00 00 00 00 00 EC 0C 2D [13:37:46]RasterBufferAndPrint [13:37:46]line [13:37:46]line [13:37:46]line [13:37:46]line [13:37:46]line [13:37:46]written 0, free lines is 3318 [13:37:46]MH_Cut [13:37:46]Write to MH i2c: D1 01 00 FC 39 01 07 [13:37:46]Write i2c OK [13:37:46]MH_I2C_Read... [13:37:46]Read from MH i2c: D1 [13:37:46]MH_I2C_Read... [13:37:46]Read from MH i2c: D1 01 00 [13:37:46]MH_I2C_Read... [13:37:46]Read from MH i2c: D1 01 00 FC 39 00 06 [13:37:46]Write to MH i2c: 01 00 00 FD 39 36 [13:37:46]Write i2c OK [13:37:46]MH_I2C_Read... [13:37:47]OFD Sender: No OFD packet to send [13:37:47]*** Cut start [13:37:47]*** Partial cut [13:37:47]*** CUTSNS_PIN = 1 [13:37:47]*** CUTSNS_PIN = 0 [13:37:47]*** Brake cut motor [13:37:48]Read from MH i2c: 01 [13:37:48]MH_I2C_Read... [13:37:48]*** Stop cut motor [13:37:48]*** Cut end [13:37:48]Read from MH i2c: 01 07 00 [13:37:48]MH_I2C_Read... [13:37:48]Read from MH i2c: 01 07 00 FD 39 00 00 00 00 00 FF 0F 4B [13:37:48]process_action close_receipt done [13:37:48]requested_data is exist [13:37:48]produce_requested_data [13:37:48]requested_item fm.sn is exist - process it [13:37:48]wFMCommunicate request_size=4 [13:37:48]MH_SAM_APDU [13:37:48]CAPDU: 80 11 00 00 [13:37:48]Write to MH i2c: E2 08 00 FE 39 80 11 00 00 00 00 00 00 B1 [13:37:48]Write i2c OK [13:37:48]MH_I2C_Read... [13:37:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:37:48]Read from MH i2c: E2 [13:37:48]MH_I2C_Read... [13:37:48]Read from MH i2c: E2 17 00 [13:37:48]MH_I2C_Read... [13:37:48]Read from MH i2c: E2 17 00 FE 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 FC [13:37:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [13:37:48]wFMCommunicate OK [13:37:48]requested_item fd.num is exist - process it [13:37:48]SAM_PROTO_GetFieldsCounters [13:37:48]wFMCommunicate request_size=4 [13:37:48]MH_SAM_APDU [13:37:48]CAPDU: 80 13 00 00 [13:37:48]Write to MH i2c: E2 08 00 FF 39 80 13 00 00 00 00 00 00 B4 [13:37:48]Write i2c OK [13:37:48]MH_I2C_Read... [13:37:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:37:48]Read from MH i2c: E2 [13:37:48]MH_I2C_Read... [13:37:48]Read from MH i2c: E2 62 00 [13:37:48]MH_I2C_Read... [13:37:48]Read from MH i2c: E2 62 00 FF 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 FE 0A 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 42 [13:37:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 FE 0A 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:37:48]wFMCommunicate OK [13:37:48]SAM_PROTO_GetFieldsCounters done [13:37:48]requested_item shift.num is exist - process it [13:37:48]requested_item shift.opened is exist - process it [13:37:48]req_shift_opened [13:37:48]FM_GetShiftState [13:37:48]SAM_PROTO_GetShiftState [13:37:48]wFMCommunicate request_size=4 [13:37:48]MH_SAM_APDU [13:37:48]CAPDU: 80 13 01 00 [13:37:48]Write to MH i2c: E2 08 00 00 3A 80 13 01 00 00 00 00 00 B7 [13:37:48]Write i2c OK [13:37:48]MH_I2C_Read... [13:37:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:37:48]Read from MH i2c: E2 [13:37:48]MH_I2C_Read... [13:37:48]Read from MH i2c: E2 0E 00 [13:37:48]MH_I2C_Read... [13:37:48]Read from MH i2c: E2 0E 00 00 3A 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 92 [13:37:48]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [13:37:48]wFMCommunicate OK [13:37:48]SAM_PROTO_GetShiftState done [13:37:48]FM_GetShiftState done [13:37:48]req_shift_opened done [13:37:48]requested_item shift.open_date is exist - process it [13:37:48]req_shift_open_date [13:37:48]req_shift_open_date done [13:37:48]produce_requested_data done [13:37:48]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68350,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [13:37:48]process_action_free close_receipt [13:37:48]json_value_free [13:37:48]json_value_free done [13:37:48]process_json_proto returns [13:37:48]Send response to host [13:37:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68350,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [13:37:48]free response buf [13:37:48]execute_script done [13:37:48]execute_script returns [13:37:48]free content buf [13:37:48]Sock 5.Close socket [13:37:48]Sock 5.Thread stoped [13:37:52]OFD Sender: No OFD packet to send [13:37:57]OFD Sender: No OFD packet to send [13:38:02]OFD Sender: No OFD packet to send [13:38:07]OFD Sender: No OFD packet to send [13:38:12]OFD Sender: No OFD packet to send [13:38:17]OFD Sender: No OFD packet to send [13:38:22]OFD Sender: No OFD packet to send [13:38:27]OFD Sender: No OFD packet to send [13:38:32]OFD Sender: No OFD packet to send [13:38:37]OFD Sender: No OFD packet to send [13:38:42]OFD Sender: No OFD packet to send [13:38:47]OFD Sender: No OFD packet to send [13:38:52]OFD Sender: No OFD packet to send [13:38:57]OFD Sender: No OFD packet to send [13:39:02]OFD Sender: No OFD packet to send [13:39:07]OFD Sender: No OFD packet to send [13:39:12]OFD Sender: No OFD packet to send [13:39:17]OFD Sender: No OFD packet to send [13:39:22]OFD Sender: No OFD packet to send [13:39:27]OFD Sender: No OFD packet to send [13:39:32]OFD Sender: No OFD packet to send [13:39:37]OFD Sender: No OFD packet to send [13:39:42]OFD Sender: No OFD packet to send [13:39:47]OFD Sender: No OFD packet to send [13:39:52]OFD Sender: No OFD packet to send [13:39:57]OFD Sender: No OFD packet to send [13:40:02]OFD Sender: No OFD packet to send [13:40:07]OFD Sender: No OFD packet to send [13:40:12]OFD Sender: No OFD packet to send [13:40:17]OFD Sender: No OFD packet to send [13:40:22]OFD Sender: No OFD packet to send [13:40:27]OFD Sender: No OFD packet to send [13:40:32]OFD Sender: No OFD packet to send [13:40:37]OFD Sender: No OFD packet to send [13:40:42]OFD Sender: No OFD packet to send [13:40:47]OFD Sender: No OFD packet to send [13:40:52]OFD Sender: No OFD packet to send [13:40:57]OFD Sender: No OFD packet to send [13:41:02]OFD Sender: No OFD packet to send [13:41:07]OFD Sender: No OFD packet to send [13:41:12]OFD Sender: No OFD packet to send [13:41:17]OFD Sender: No OFD packet to send [13:41:22]OFD Sender: No OFD packet to send [13:41:27]OFD Sender: No OFD packet to send [13:41:32]OFD Sender: No OFD packet to send [13:41:37]OFD Sender: No OFD packet to send [13:41:42]OFD Sender: No OFD packet to send [13:41:47]OFD Sender: No OFD packet to send [13:41:52]OFD Sender: No OFD packet to send [13:41:57]OFD Sender: No OFD packet to send [13:42:02]OFD Sender: No OFD packet to send [13:42:07]OFD Sender: No OFD packet to send [13:42:12]OFD Sender: No OFD packet to send [13:42:17]OFD Sender: No OFD packet to send [13:42:20]accept exits with 6 [13:42:20]New connection [13:42:20]New thread 3066543460 created [13:42:20]Thread 3066686820 joined [13:42:20]Waiting for new connection... [13:42:20] Sock 6.Parse request [13:42:20]Sock 6.Check first char [13:42:20]Sock 6.First char is OK [13:42:20]request: POST /json_proto HTTP/1.0 [13:42:20]Method: POST [13:42:20]URL: /json_proto [13:42:20]Method is POST - this is cgi request [13:42:20]url: /json_proto [13:42:20]query_string will be loaded in cgi processing [13:42:20]execute_cgi json_proto POST (null) [13:42:20]execute_cgi path=json_proto method=POST [13:42:20]POST find Content-Length [13:42:20]Host: 172.17.36.132:8080 [13:42:20]Content-Length: 677 [13:42:20]Content-Type: application/json [13:42:20] [13:42:20]POST finish read [13:42:20]Found Content-Length = 677 [13:42:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706439", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.310, "sum" : 489.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 489.00, "total" : 489.00, "payments": [ { "type": 0, "sum" : 489.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:42:20]execute_script... [13:42: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)706439", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.310, "sum" : 489.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 489.00, "total" : 489.00, "payments": [ { "type": 0, "sum" : 489.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:42:20]POST & json_proto [13:42:20]process_json_proto [13:42:20]json parsed OK: [13:42:20]protocol is kg_v1.0 [13:42:20]action value=close_receipt [13:42:20]process_action close_receipt [13:42:20]cmd_close_receipt [13:42:20]MH_GetDate [13:42:20]Write to MH i2c: F0 00 00 01 3A 2A [13:42:20]Write i2c OK [13:42:20]MH_I2C_Read... [13:42:20]Read from MH i2c: F0 [13:42:20]MH_I2C_Read... [13:42:20]Read from MH i2c: F0 09 00 [13:42:20]MH_I2C_Read... [13:42:20]Read from MH i2c: F0 09 00 01 3A 00 41 C8 5D 66 B2 22 B0 64 E7 [13:42:20]GetLastDocTimeStamp 1717421870 [13:42:20]current date 1717422145 [13:42:20]FM_GetShiftState [13:42:20]SAM_PROTO_GetShiftState [13:42:20]wFMCommunicate request_size=4 [13:42:20]MH_SAM_APDU [13:42:20]CAPDU: 80 13 01 00 [13:42:20]Write to MH i2c: E2 08 00 02 3A 80 13 01 00 00 00 00 00 B9 [13:42:20]Write i2c OK [13:42:20]MH_I2C_Read... [13:42:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:42:20]Read from MH i2c: E2 [13:42:20]MH_I2C_Read... [13:42:20]Read from MH i2c: E2 0E 00 [13:42:20]MH_I2C_Read... [13:42:20]Read from MH i2c: E2 0E 00 02 3A 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 94 [13:42:20]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [13:42:20]wFMCommunicate OK [13:42:20]SAM_PROTO_GetShiftState done [13:42:20]FM_GetShiftState done [13:42:20]opened in 1717378033 [13:42:20]opened+sec_in_day 1717464433 [13:42:20]quantity*price = 48903 [13:42:20]sum+1 = 48905 [13:42:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 489.00 Внесено: 489.00 СДАЧА: 0.00 НСП 1% : 4.33 НДС 12% : 51.93 Наличными: 489.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 97 03.06.2024 13:42 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68351 ФПД: 106532281642585 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T134225&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68351&fm=106532281642585&tin=02508201610067®Number=0000000000098096&sum=48900 [13:42:21]StoreToDocumentArchive [13:42:21]shift 324 fd 68351 [13:42:21]save to /storage/0324/doc_00068351 [13:42:21]save last doc name /storage/0324/doc_00068351 to /storage/kkm_last_doc_name [13:42:21]save OK [13:42:21]Clear old archive folders... [13:42:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:42:21]tlvbuf is 002365D0 [13:42:21]SAM_PROTO_ClearQueue [13:42:21]wFMCommunicate request_size=4 [13:42:21]MH_SAM_APDU [13:42:21]CAPDU: 80 09 00 00 [13:42:21]Write to MH i2c: E2 08 00 0F 3A 80 09 00 00 00 00 00 00 BB [13:42:21]Write i2c OK [13:42:21]MH_I2C_Read... [13:42:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:42:21]Read from MH i2c: E2 [13:42:21]MH_I2C_Read... [13:42:21]Read from MH i2c: E2 03 00 [13:42:21]MH_I2C_Read... [13:42:21]Read from MH i2c: E2 03 00 0F 3A 00 90 00 BD [13:42:21]RAPDU: 90 00 [13:42:21]wFMCommunicate OK [13:42:21]SAM_PROTO_ClearQueue done [13:42:21]KKMCreateOFDPacket [13:42:21]OFDProtocolAddRootSTLVToBuf [13:42:21]FM_MakeSignedData [13:42:21]FM_MakeSignedData [13:42:21]SAM_PROTO_SignData [13:42:21]wFMCommunicate request_size=4 [13:42:21]MH_SAM_APDU [13:42:21]CAPDU: 80 0D 01 02 [13:42:21]Write to MH i2c: E2 08 00 10 3A 80 0D 01 02 00 00 00 00 C3 [13:42:21]Write i2c OK [13:42:21]MH_I2C_Read... [13:42:21]Read from MH i2c: E2 [13:42:21]MH_I2C_Read... [13:42:21]Read from MH i2c: E2 03 00 [13:42:21]MH_I2C_Read... [13:42:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:42:21]Read from MH i2c: E2 03 00 10 3A 00 90 00 BE [13:42:21]RAPDU: 90 00 [13:42:21]wFMCommunicate OK [13:42:21]wFMCommunicate request_size=255 [13:42:21]MH_SAM_APDU [13:42: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 34 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 08 BF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 49 14 00 00 00 00 07 04 06 00 04 BF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 41 C8 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 FF 0A 01 00 35 04 06 00 60 [13:42:21]Write to MH i2c: E2 02 01 11 3A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 08 BF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 49 14 00 00 00 00 07 04 06 00 04 BF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 41 C8 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 FF 0A 01 00 35 04 06 00 60 00 00 E9 [13:42:21]Write i2c OK [13:42:21]MH_I2C_Read... [13:42:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:42:21]Read from MH i2c: E2 [13:42:21]MH_I2C_Read... [13:42:21]Read from MH i2c: E2 03 00 [13:42:21]MH_I2C_Read... [13:42:21]Read from MH i2c: E2 03 00 11 3A 00 90 00 BF [13:42:21]RAPDU: 90 00 [13:42:21]wFMCommunicate OK [13:42:21]wFMCommunicate request_size=10 [13:42:21]MH_SAM_APDU [13:42:21]CAPDU: 80 0D 02 02 05 E3 FA CD EE 59 [13:42:21]Write to MH i2c: E2 0D 00 12 3A 80 0D 02 02 05 00 E3 FA CD EE 59 00 00 C1 [13:42:21]Write i2c OK [13:42:21]MH_I2C_Read... [13:42:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:42:21]Read from MH i2c: E2 [13:42:21]MH_I2C_Read... [13:42:21]Read from MH i2c: E2 03 00 [13:42:21]MH_I2C_Read... [13:42:21]Read from MH i2c: E2 03 00 12 3A 00 90 00 C0 [13:42:21]RAPDU: 90 00 [13:42:21]wFMCommunicate OK [13:42:21]wFMCommunicate request_size=4 [13:42:21]MH_SAM_APDU [13:42:21]CAPDU: 80 0D 03 02 [13:42:21]Write to MH i2c: E2 08 00 13 3A 80 0D 03 02 00 00 00 00 C8 [13:42:21]Write i2c OK [13:42:21]MH_I2C_Read... [13:42:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:42:22]Read from MH i2c: E2 [13:42:22]MH_I2C_Read... [13:42:22]Read from MH i2c: E2 0B 00 [13:42:22]MH_I2C_Read... [13:42:22]Read from MH i2c: E2 0B 00 13 3A 00 3A A1 09 9C 81 31 8A AB 90 00 30 [13:42:22]RAPDU: 3A A1 09 9C 81 31 8A AB 90 00 [13:42:22]wFMCommunicate OK [13:42:22]SAM_PROTO_SignData done [13:42:22]FM_MakeSignedData done [13:42:22]CreateOFDProtocolMessage [13:42:22]wFMCommunicate request_size=4 [13:42:22]MH_SAM_APDU [13:42:22]CAPDU: 80 11 00 00 [13:42:22]Write to MH i2c: E2 08 00 14 3A 80 11 00 00 00 00 00 00 C8 [13:42:22]Write i2c OK [13:42:22]MH_I2C_Read... [13:42:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:42:22]Read from MH i2c: E2 [13:42:22]MH_I2C_Read... [13:42:22]Read from MH i2c: E2 17 00 [13:42:22]MH_I2C_Read... [13:42:22]Read from MH i2c: E2 17 00 14 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 13 [13:42:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [13:42:22]wFMCommunicate OK [13:42:22]CreateOFDProtocolMessage done [13:42:22]OFDSenderStorePacket 68351 [13:42:22]StoreOFDPacket docnum=68351 [13:42:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 A5 BF 07 01 0F 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 08 BF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 49 14 00 00 00 00 07 04 06 00 04 BF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 41 C8 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 FF 0A 01 00 35 04 06 00 60 E3 FA CD EE 59 3A A1 09 9C 81 31 8A AB [13:42:22]CheckFolder [13:42:22]dirname=/storage/ofd_packets [13:42:22]CheckFolder done [13:42:22]ProducePacketName [13:42:22]name=ofd_packets/00068351 [13:42:22]NVStorageSaveData ofd_packets/00068351 [13:42:22]File name is /storage/ofd_packets/00068351 [13:42:22]Write 301 bytes [13:42:22]NVStorageSaveData done [13:42:22]OFDSenderStorePacket done [13:42:22]KKMCreateOFDPacket done [13:42:22]NVStorageSaveData kkm_last_timestamp [13:42:22]File name is /storage/kkm_last_timestamp [13:42:22]Write 4 bytes [13:42:22]NVStorageSaveData done [13:42:22]ExternCall_PrintAddStr [13:42:22]wPrintStart [13:42:22]Write to MH i2c: 01 00 00 15 3A 4F [13:42:22]Write i2c OK [13:42:22]MH_I2C_Read... [13:42:22]Read from MH i2c: 01 [13:42:22]MH_I2C_Read... [13:42:22]Read from MH i2c: 01 07 00 [13:42:22]MH_I2C_Read... [13:42:22]Read from MH i2c: 01 07 00 15 3A 00 00 00 00 00 FF 0F 64 [13:42:22]RasterBufferAndPrint [13:42:22]line Счет N : (1)706439 [13:42:22]line ИНН: 02508201610067 [13:42:22]line Контрольно-Кассовый Чек [13:42:22]line ПРОДАЖА [13:42:22]line ТРК (МРК, ГНК) : 42 [13:42:22]line Товар: 2710124130 [13:42:22]line Аи-92-К-4 [13:42:22]line 7.310 * 66.90 [13:42:22]line = 489.04 [13:42:22]line НДС 12% НСП 1% [13:42:22]line > о реализуемом товаре [13:42:22]line ОКРУГЛЕНИЕ: -0.04 [13:42:22]line ИТОГО: 489.00 [13:42:22]line Внесено: 489.00 [13:42:22]line СДАЧА: 0.00 [13:42:22]line НСП 1% : 4.33 [13:42:22]line НДС 12% : 51.93 [13:42:22]line Наличными: 489.00 [13:42:22]line Безнал.: 0.00 [13:42:22]line Место: АЗС № 62 "Партнер Нефть" [13:42:22]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [13:42:22]line СНО: Общий режим [13:42:22]line Чек 97 03.06.2024 13:42 [13:42:22]line Смена: 324 ФФД: 1.0 [13:42:22]line ЗНМ: 0300000181 [13:42:22]line РНМ: 0000000000098096 [13:42:22]line Версия ККМ: 001 [13:42:22]line ФМ: 0000000000965400 [13:42:22]line ФД: 68351 [13:42:22]line ФПД: 106532281642585 [13:42:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T134225&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68351&fm=106532281642585&tin=02508201610067®Number=0000000000098096&sum=48900 [13:42:22]OFD Sender: Processing packet 68351 [packets to send 26, broken 25] [13:42:22]ProducePacketName [13:42:22]name=ofd_packets/00068351 [13:42:22]OFD Sender: To server: pG, [13:42:22]CommunicateWithHost lk.salyk.kg:30040 [13:42:22]ConnectInit lk.salyk.kg [13:42:22]written 0, free lines is 4095 [13:42:22]Connected sock=7 [13:42:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 A5 BF 07 01 0F 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 08 BF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 49 14 00 00 00 00 07 04 06 00 04 BF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 41 C8 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 FF 0A 01 00 35 04 06 00 60 E3 FA CD EE 59 3A A1 09 9C 81 31 8A AB [13:42:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 1F D4 47 00 B5 B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 FF 0A 01 00 F4 03 04 00 3D 6F 5D 66 B6 04 01 00 00 5D 2C 36 16 68 2A 82 52 [13:42:22]CommunicateWithHost err = 0 [13:42:22]CheckOFDResponse [13:42:22]1017 (14) - 77093643461234 [13:42:22]1041 (16) - 0000000000965400 [13:42:22]1040 (4) - 68351 [13:42:22]1012 (4) - 03.06.2024 07:22 [13:42:22]1206 (1) - 0 [13:42:22]OFD Sender: Remove packet 68351 [13:42:22]ProducePacketName [13:42:22]name=ofd_packets/00068351 [13:42:22]NVStorageDeleteData [13:42:22]Write to MH i2c: 01 00 00 40 3A 7A [13:42:22]Write i2c OK [13:42:22]MH_I2C_Read... [13:42:22]Read from MH i2c: 01 [13:42:22]MH_I2C_Read... [13:42:22]Read from MH i2c: 01 07 00 [13:42:22]MH_I2C_Read... [13:42:22]Read from MH i2c: 01 07 00 40 3A 00 00 00 00 00 E1 0C 6E [13:42:22]RasterBufferAndPrint [13:42:22]line [13:42:22]line [13:42:22]line [13:42:22]line [13:42:22]line [13:42:22]written 0, free lines is 3303 [13:42:22]MH_Cut [13:42:22]Write to MH i2c: D1 01 00 47 3A 01 53 [13:42:22]Write i2c OK [13:42:22]MH_I2C_Read... [13:42:22]Read from MH i2c: D1 [13:42:22]MH_I2C_Read... [13:42:22]Read from MH i2c: D1 01 00 [13:42:22]MH_I2C_Read... [13:42:22]Read from MH i2c: D1 01 00 47 3A 00 52 [13:42:22]Write to MH i2c: 01 00 00 48 3A 82 [13:42:22]Write i2c OK [13:42:22]MH_I2C_Read... [13:42:23]OFD Sender: No OFD packet to send [13:42:23]*** Cut start [13:42:23]*** Partial cut [13:42:23]*** CUTSNS_PIN = 1 [13:42:23]*** CUTSNS_PIN = 0 [13:42:23]*** Brake cut motor [13:42:24]Read from MH i2c: 01 [13:42:24]MH_I2C_Read... [13:42:24]*** Stop cut motor [13:42:24]*** Cut end [13:42:24]Read from MH i2c: 01 07 00 [13:42:24]MH_I2C_Read... [13:42:24]Read from MH i2c: 01 07 00 48 3A 00 00 00 00 00 FF 0F 97 [13:42:24]process_action close_receipt done [13:42:24]requested_data is exist [13:42:24]produce_requested_data [13:42:24]requested_item fm.sn is exist - process it [13:42:24]wFMCommunicate request_size=4 [13:42:24]MH_SAM_APDU [13:42:24]CAPDU: 80 11 00 00 [13:42:24]Write to MH i2c: E2 08 00 49 3A 80 11 00 00 00 00 00 00 FD [13:42:24]Write i2c OK [13:42:24]MH_I2C_Read... [13:42:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:42:24]Read from MH i2c: E2 [13:42:24]MH_I2C_Read... [13:42:24]Read from MH i2c: E2 17 00 [13:42:24]MH_I2C_Read... [13:42:24]Read from MH i2c: E2 17 00 49 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 48 [13:42:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [13:42:24]wFMCommunicate OK [13:42:24]requested_item fd.num is exist - process it [13:42:24]SAM_PROTO_GetFieldsCounters [13:42:24]wFMCommunicate request_size=4 [13:42:24]MH_SAM_APDU [13:42:24]CAPDU: 80 13 00 00 [13:42:24]Write to MH i2c: E2 08 00 4A 3A 80 13 00 00 00 00 00 00 00 [13:42:24]Write i2c OK [13:42:24]MH_I2C_Read... [13:42:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:42:24]Read from MH i2c: E2 [13:42:24]MH_I2C_Read... [13:42:24]Read from MH i2c: E2 62 00 [13:42:24]MH_I2C_Read... [13:42:24]Read from MH i2c: E2 62 00 4A 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 FF 0A 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 92 [13:42:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 FF 0A 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:42:24]wFMCommunicate OK [13:42:24]SAM_PROTO_GetFieldsCounters done [13:42:24]requested_item shift.num is exist - process it [13:42:24]requested_item shift.opened is exist - process it [13:42:24]req_shift_opened [13:42:24]FM_GetShiftState [13:42:24]SAM_PROTO_GetShiftState [13:42:24]wFMCommunicate request_size=4 [13:42:24]MH_SAM_APDU [13:42:24]CAPDU: 80 13 01 00 [13:42:24]Write to MH i2c: E2 08 00 4B 3A 80 13 01 00 00 00 00 00 02 [13:42:24]Write i2c OK [13:42:24]MH_I2C_Read... [13:42:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:42:24]Read from MH i2c: E2 [13:42:24]MH_I2C_Read... [13:42:24]Read from MH i2c: E2 0E 00 [13:42:24]MH_I2C_Read... [13:42:24]Read from MH i2c: E2 0E 00 4B 3A 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 DD [13:42:24]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [13:42:24]wFMCommunicate OK [13:42:24]SAM_PROTO_GetShiftState done [13:42:24]FM_GetShiftState done [13:42:24]req_shift_opened done [13:42:24]requested_item shift.open_date is exist - process it [13:42:24]req_shift_open_date [13:42:24]req_shift_open_date done [13:42:24]produce_requested_data done [13:42:24]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68351,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [13:42:24]process_action_free close_receipt [13:42:24]json_value_free [13:42:24]json_value_free done [13:42:24]process_json_proto returns [13:42:24]Send response to host [13:42:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68351,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [13:42:24]free response buf [13:42:24]execute_script done [13:42:24]execute_script returns [13:42:24]free content buf [13:42:24]Sock 6.Close socket [13:42:24]Sock 6.Thread stoped [13:42:28]OFD Sender: No OFD packet to send [13:42:33]OFD Sender: No OFD packet to send [13:42:38]OFD Sender: No OFD packet to send [13:42:43]OFD Sender: No OFD packet to send [13:42:48]OFD Sender: No OFD packet to send [13:42:53]OFD Sender: No OFD packet to send [13:42:58]OFD Sender: No OFD packet to send [13:43:03]OFD Sender: No OFD packet to send [13:43:08]OFD Sender: No OFD packet to send [13:43:13]OFD Sender: No OFD packet to send [13:43:18]OFD Sender: No OFD packet to send [13:43:23]OFD Sender: No OFD packet to send [13:43:28]OFD Sender: No OFD packet to send [13:43:33]OFD Sender: No OFD packet to send [13:43:38]OFD Sender: No OFD packet to send [13:43:43]OFD Sender: No OFD packet to send [13:43:48]OFD Sender: No OFD packet to send [13:43:53]OFD Sender: No OFD packet to send [13:43:58]OFD Sender: No OFD packet to send [13:44:03]OFD Sender: No OFD packet to send [13:44:08]OFD Sender: No OFD packet to send [13:44:13]OFD Sender: No OFD packet to send [13:44:18]OFD Sender: No OFD packet to send [13:44:23]OFD Sender: No OFD packet to send [13:44:28]OFD Sender: No OFD packet to send [13:44:33]OFD Sender: No OFD packet to send [13:44:38]OFD Sender: No OFD packet to send [13:44:43]OFD Sender: No OFD packet to send [13:44:48]OFD Sender: No OFD packet to send [13:44:53]OFD Sender: No OFD packet to send [13:44:58]OFD Sender: No OFD packet to send [13:45:03]OFD Sender: No OFD packet to send [13:45:08]OFD Sender: No OFD packet to send [13:45:13]OFD Sender: No OFD packet to send [13:45:18]OFD Sender: No OFD packet to send [13:45:23]OFD Sender: No OFD packet to send [13:45:28]OFD Sender: No OFD packet to send [13:45:33]OFD Sender: No OFD packet to send [13:45:38]OFD Sender: No OFD packet to send [13:45:43]OFD Sender: No OFD packet to send [13:45:48]OFD Sender: No OFD packet to send [13:45:53]OFD Sender: No OFD packet to send [13:45:58]OFD Sender: No OFD packet to send [13:46:03]OFD Sender: No OFD packet to send [13:46:08]OFD Sender: No OFD packet to send [13:46:13]OFD Sender: No OFD packet to send [13:46:18]OFD Sender: No OFD packet to send [13:46:23]OFD Sender: No OFD packet to send [13:46:28]OFD Sender: No OFD packet to send [13:46:33]OFD Sender: No OFD packet to send [13:46:38]OFD Sender: No OFD packet to send [13:46:43]OFD Sender: No OFD packet to send [13:46:48]OFD Sender: No OFD packet to send [13:46:53]OFD Sender: No OFD packet to send [13:46:58]OFD Sender: No OFD packet to send [13:47:03]OFD Sender: No OFD packet to send [13:47:08]OFD Sender: No OFD packet to send [13:47:13]OFD Sender: No OFD packet to send [13:47:18]OFD Sender: No OFD packet to send [13:47:23]OFD Sender: No OFD packet to send [13:47:28]OFD Sender: No OFD packet to send [13:47:33]OFD Sender: No OFD packet to send [13:47:38]OFD Sender: No OFD packet to send [13:47:43]OFD Sender: No OFD packet to send [13:47:48]OFD Sender: No OFD packet to send [13:47:53]OFD Sender: No OFD packet to send [13:47:58]OFD Sender: No OFD packet to send [13:48:03]OFD Sender: No OFD packet to send [13:48:08]OFD Sender: No OFD packet to send [13:48:13]OFD Sender: No OFD packet to send [13:48:18]OFD Sender: No OFD packet to send [13:48:23]OFD Sender: No OFD packet to send [13:48:28]OFD Sender: No OFD packet to send [13:48:33]OFD Sender: No OFD packet to send [13:48:38]OFD Sender: No OFD packet to send [13:48:43]OFD Sender: No OFD packet to send [13:48:48]OFD Sender: No OFD packet to send [13:48:53]OFD Sender: No OFD packet to send [13:48:58]OFD Sender: No OFD packet to send [13:49:03]OFD Sender: No OFD packet to send [13:49:08]OFD Sender: No OFD packet to send [13:49:13]OFD Sender: No OFD packet to send [13:49:18]OFD Sender: No OFD packet to send [13:49:23]OFD Sender: No OFD packet to send [13:49:28]OFD Sender: No OFD packet to send [13:49:33]OFD Sender: No OFD packet to send [13:49:38]OFD Sender: No OFD packet to send [13:49:43]OFD Sender: No OFD packet to send [13:49:48]OFD Sender: No OFD packet to send [13:49:49]accept exits with 5 [13:49:49]New connection [13:49:49]New thread 3066686820 created [13:49:49]Thread 3066543460 joined [13:49:49]Waiting for new connection... [13:49:49] Sock 5.Parse request [13:49:49]Sock 5.Check first char [13:49:49]Sock 5.First char is OK [13:49:49]request: POST /json_proto HTTP/1.0 [13:49:49]Method: POST [13:49:49]URL: /json_proto [13:49:49]Method is POST - this is cgi request [13:49:49]url: /json_proto [13:49:49]query_string will be loaded in cgi processing [13:49:49]execute_cgi json_proto POST (null) [13:49:49]execute_cgi path=json_proto method=POST [13:49:49]POST find Content-Length [13:49:49]Host: 172.17.36.132:8080 [13:49:49]Content-Length: 675 [13:49:49]Content-Type: application/json [13:49:49] [13:49:49]POST finish read [13:49:49]Found Content-Length = 675 [13:49:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706440", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 14.730, "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" ] } } [13:49:49]execute_script... [13:49: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)706440", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 14.730, "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" ] } } [13:49:49]POST & json_proto [13:49:49]process_json_proto [13:49:49]json parsed OK: [13:49:49]protocol is kg_v1.0 [13:49:49]action value=close_receipt [13:49:49]process_action close_receipt [13:49:49]cmd_close_receipt [13:49:49]MH_GetDate [13:49:49]Write to MH i2c: F0 00 00 4C 3A 75 [13:49:49]Write i2c OK [13:49:49]MH_I2C_Read... [13:49:49]Read from MH i2c: F0 [13:49:49]MH_I2C_Read... [13:49:49]Read from MH i2c: F0 09 00 [13:49:49]MH_I2C_Read... [13:49:49]Read from MH i2c: F0 09 00 4C 3A 00 02 CA 5D 66 B2 22 B0 64 F5 [13:49:49]GetLastDocTimeStamp 1717422145 [13:49:49]current date 1717422594 [13:49:49]FM_GetShiftState [13:49:49]SAM_PROTO_GetShiftState [13:49:49]wFMCommunicate request_size=4 [13:49:49]MH_SAM_APDU [13:49:49]CAPDU: 80 13 01 00 [13:49:49]Write to MH i2c: E2 08 00 4D 3A 80 13 01 00 00 00 00 00 04 [13:49:49]Write i2c OK [13:49:49]MH_I2C_Read... [13:49:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:49:49]Read from MH i2c: E2 [13:49:49]MH_I2C_Read... [13:49:49]Read from MH i2c: E2 0E 00 [13:49:49]MH_I2C_Read... [13:49:49]Read from MH i2c: E2 0E 00 4D 3A 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 DF [13:49:49]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [13:49:49]wFMCommunicate OK [13:49:49]SAM_PROTO_GetShiftState done [13:49:49]FM_GetShiftState done [13:49:49]opened in 1717378033 [13:49:49]opened+sec_in_day 1717464433 [13:49:49]quantity*price = 100016 [13:49:49]sum+1 = 100018 [13:49:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 98 03.06.2024 13:49 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68352 ФПД: 256982607554297 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T134954&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68352&fm=256982607554297&tin=02508201610067®Number=0000000000098096&sum=100000 [13:49:50]StoreToDocumentArchive [13:49:50]shift 324 fd 68352 [13:49:50]save to /storage/0324/doc_00068352 [13:49:50]save last doc name /storage/0324/doc_00068352 to /storage/kkm_last_doc_name [13:49:50]save OK [13:49:50]Clear old archive folders... [13:49:50]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:49:50]tlvbuf is 00464830 [13:49:50]SAM_PROTO_ClearQueue [13:49:50]wFMCommunicate request_size=4 [13:49:50]MH_SAM_APDU [13:49:50]CAPDU: 80 09 00 00 [13:49:50]Write to MH i2c: E2 08 00 5A 3A 80 09 00 00 00 00 00 00 06 [13:49:50]Write i2c OK [13:49:50]MH_I2C_Read... [13:49:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:49:50]Read from MH i2c: E2 [13:49:50]MH_I2C_Read... [13:49:50]Read from MH i2c: E2 03 00 [13:49:50]MH_I2C_Read... [13:49:50]Read from MH i2c: E2 03 00 5A 3A 00 90 00 08 [13:49:50]RAPDU: 90 00 [13:49:50]wFMCommunicate OK [13:49:50]SAM_PROTO_ClearQueue done [13:49:50]KKMCreateOFDPacket [13:49:50]OFDProtocolAddRootSTLVToBuf [13:49:50]FM_MakeSignedData [13:49:50]FM_MakeSignedData [13:49:50]SAM_PROTO_SignData [13:49:50]wFMCommunicate request_size=4 [13:49:50]MH_SAM_APDU [13:49:50]CAPDU: 80 0D 01 02 [13:49:50]Write to MH i2c: E2 08 00 5B 3A 80 0D 01 02 00 00 00 00 0E [13:49:50]Write i2c OK [13:49:50]MH_I2C_Read... [13:49:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:49:50]Read from MH i2c: E2 [13:49:50]MH_I2C_Read... [13:49:50]Read from MH i2c: E2 03 00 [13:49:50]MH_I2C_Read... [13:49:50]Read from MH i2c: E2 03 00 5B 3A 00 90 00 09 [13:49:50]RAPDU: 90 00 [13:49:50]wFMCommunicate OK [13:49:50]wFMCommunicate request_size=255 [13:49:50]MH_SAM_APDU [13:49:50]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 39 00 00 00 00 00 37 04 06 00 86 1A 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 62 00 00 00 F4 03 04 00 02 CA 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 00 0B 01 00 35 04 06 00 [13:49:50]Write to MH i2c: E2 02 01 5C 3A 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 39 00 00 00 00 00 37 04 06 00 86 1A 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 62 00 00 00 F4 03 04 00 02 CA 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 00 0B 01 00 35 04 06 00 00 00 8A [13:49:50]Write i2c OK [13:49:50]MH_I2C_Read... [13:49:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:49:50]Read from MH i2c: E2 [13:49:50]MH_I2C_Read... [13:49:50]Read from MH i2c: E2 03 00 [13:49:50]MH_I2C_Read... [13:49:50]Read from MH i2c: E2 03 00 5C 3A 00 90 00 0A [13:49:50]RAPDU: 90 00 [13:49:50]wFMCommunicate OK [13:49:50]wFMCommunicate request_size=11 [13:49:50]MH_SAM_APDU [13:49:50]CAPDU: 80 0D 02 02 06 E9 B9 6D 09 66 F9 [13:49:50]Write to MH i2c: E2 0E 00 5D 3A 80 0D 02 02 06 00 E9 B9 6D 09 66 F9 00 00 94 [13:49:50]Write i2c OK [13:49:50]MH_I2C_Read... [13:49:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:49:50]Read from MH i2c: E2 [13:49:50]MH_I2C_Read... [13:49:50]Read from MH i2c: E2 03 00 [13:49:50]MH_I2C_Read... [13:49:50]Read from MH i2c: E2 03 00 5D 3A 00 90 00 0B [13:49:50]RAPDU: 90 00 [13:49:50]wFMCommunicate OK [13:49:50]wFMCommunicate request_size=4 [13:49:50]MH_SAM_APDU [13:49:50]CAPDU: 80 0D 03 02 [13:49:50]Write to MH i2c: E2 08 00 5E 3A 80 0D 03 02 00 00 00 00 13 [13:49:50]Write i2c OK [13:49:50]MH_I2C_Read... [13:49:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:49:50]Read from MH i2c: E2 [13:49:50]MH_I2C_Read... [13:49:50]Read from MH i2c: E2 0B 00 [13:49:50]MH_I2C_Read... [13:49:50]Read from MH i2c: E2 0B 00 5E 3A 00 94 84 51 5A C2 EE F9 BA 90 00 3A [13:49:50]RAPDU: 94 84 51 5A C2 EE F9 BA 90 00 [13:49:50]wFMCommunicate OK [13:49:50]SAM_PROTO_SignData done [13:49:50]FM_MakeSignedData done [13:49:50]CreateOFDProtocolMessage [13:49:50]wFMCommunicate request_size=4 [13:49:50]MH_SAM_APDU [13:49:50]CAPDU: 80 11 00 00 [13:49:50]Write to MH i2c: E2 08 00 5F 3A 80 11 00 00 00 00 00 00 13 [13:49:50]Write i2c OK [13:49:50]MH_I2C_Read... [13:49:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:49:50]Read from MH i2c: E2 [13:49:50]MH_I2C_Read... [13:49:50]Read from MH i2c: E2 17 00 [13:49:50]MH_I2C_Read... [13:49:50]Read from MH i2c: E2 17 00 5F 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 5E [13:49:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [13:49:50]wFMCommunicate OK [13:49:50]CreateOFDProtocolMessage done [13:49:50]OFDSenderStorePacket 68352 [13:49:50]StoreOFDPacket docnum=68352 [13:49:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 A1 9B 08 01 E9 16 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 39 00 00 00 00 00 37 04 06 00 86 1A 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 62 00 00 00 F4 03 04 00 02 CA 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 00 0B 01 00 35 04 06 00 E9 B9 6D 09 66 F9 94 84 51 5A C2 EE F9 BA [13:49:50]CheckFolder [13:49:50]dirname=/storage/ofd_packets [13:49:50]CheckFolder done [13:49:50]ProducePacketName [13:49:50]name=ofd_packets/00068352 [13:49:50]NVStorageSaveData ofd_packets/00068352 [13:49:50]File name is /storage/ofd_packets/00068352 [13:49:50]Write 302 bytes [13:49:50]NVStorageSaveData done [13:49:50]OFDSenderStorePacket done [13:49:50]KKMCreateOFDPacket done [13:49:50]NVStorageSaveData kkm_last_timestamp [13:49:50]File name is /storage/kkm_last_timestamp [13:49:50]Write 4 bytes [13:49:50]NVStorageSaveData done [13:49:50]ExternCall_PrintAddStr [13:49:50]wPrintStart [13:49:50]Write to MH i2c: 01 00 00 60 3A 9A [13:49:50]Write i2c OK [13:49:50]MH_I2C_Read... [13:49:50]Read from MH i2c: 01 [13:49:50]MH_I2C_Read... [13:49:50]Read from MH i2c: 01 07 00 [13:49:50]MH_I2C_Read... [13:49:50]Read from MH i2c: 01 07 00 60 3A 00 00 00 00 00 FF 0F AF [13:49:50]RasterBufferAndPrint [13:49:50]line Счет N : (1)706440 [13:49:50]line ИНН: 02508201610067 [13:49:50]line Контрольно-Кассовый Чек [13:49:50]line ПРОДАЖА [13:49:50]line ТРК (МРК, ГНК) : 52 [13:49:50]line Товар: 2710124130 [13:49:50]line Super-92-К-5 [13:49:50]line 14.730 * 67.90 [13:49:50]line = 1000.17 [13:49:50]line НДС 12% НСП 1% [13:49:50]line > о реализуемом товаре [13:49:50]line ОКРУГЛЕНИЕ: -0.17 [13:49:50]line ИТОГО: 1000.00 [13:49:50]line Внесено: 1000.00 [13:49:50]line СДАЧА: 0.00 [13:49:50]line НСП 1% : 8.85 [13:49:50]line НДС 12% : 106.21 [13:49:50]line Наличными: 1000.00 [13:49:50]line Безнал.: 0.00 [13:49:50]line Место: АЗС № 62 "Партнер Нефть" [13:49:50]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [13:49:50]line СНО: Общий режим [13:49:50]line Чек 98 03.06.2024 13:49 [13:49:50]line Смена: 324 ФФД: 1.0 [13:49:50]line ЗНМ: 0300000181 [13:49:50]line РНМ: 0000000000098096 [13:49:50]line Версия ККМ: 001 [13:49:50]line ФМ: 0000000000965400 [13:49:50]line ФД: 68352 [13:49:50]line ФПД: 256982607554297 [13:49:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T134954&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68352&fm=256982607554297&tin=02508201610067®Number=0000000000098096&sum=100000 [13:49:51]OFD Sender: Processing packet 68352 [packets to send 26, broken 25] [13:49:51]ProducePacketName [13:49:51]name=ofd_packets/00068352 [13:49:51]OFD Sender: To server: pG, [13:49:51]CommunicateWithHost lk.salyk.kg:30040 [13:49:51]ConnectInit lk.salyk.kg [13:49:51]written 0, free lines is 4095 [13:49:51]Connected sock=7 [13:49:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 A1 9B 08 01 E9 16 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 39 00 00 00 00 00 37 04 06 00 86 1A 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 62 00 00 00 F4 03 04 00 02 CA 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 00 0B 01 00 35 04 06 00 E9 B9 6D 09 66 F9 94 84 51 5A C2 EE F9 BA [13:49:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 8F DB 47 00 A7 EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 00 0B 01 00 F4 03 04 00 FE 70 5D 66 B6 04 01 00 00 F3 CA BE E3 4E 8A 18 3A [13:49:51]CommunicateWithHost err = 0 [13:49:51]CheckOFDResponse [13:49:51]1017 (14) - 77093643461234 [13:49:51]1041 (16) - 0000000000965400 [13:49:51]1040 (4) - 68352 [13:49:51]1012 (4) - 03.06.2024 07:30 [13:49:51]1206 (1) - 0 [13:49:51]OFD Sender: Remove packet 68352 [13:49:51]ProducePacketName [13:49:51]name=ofd_packets/00068352 [13:49:51]NVStorageDeleteData [13:49:51]Write to MH i2c: 01 00 00 8B 3A C5 [13:49:51]Write i2c OK [13:49:51]MH_I2C_Read... [13:49:51]Read from MH i2c: 01 [13:49:51]MH_I2C_Read... [13:49:51]Read from MH i2c: 01 07 00 [13:49:51]MH_I2C_Read... [13:49:51]Read from MH i2c: 01 07 00 8B 3A 00 00 00 00 00 E4 0C BC [13:49:51]RasterBufferAndPrint [13:49:51]line [13:49:51]line [13:49:51]line [13:49:51]line [13:49:51]line [13:49:51]written 0, free lines is 3306 [13:49:51]MH_Cut [13:49:51]Write to MH i2c: D1 01 00 92 3A 01 9E [13:49:51]Write i2c OK [13:49:51]MH_I2C_Read... [13:49:51]Read from MH i2c: D1 [13:49:51]MH_I2C_Read... [13:49:51]Read from MH i2c: D1 01 00 [13:49:51]MH_I2C_Read... [13:49:51]Read from MH i2c: D1 01 00 92 3A 00 9D [13:49:51]Write to MH i2c: 01 00 00 93 3A CD [13:49:51]Write i2c OK [13:49:51]MH_I2C_Read... [13:49:51]OFD Sender: No OFD packet to send [13:49:52]*** Cut start [13:49:52]*** Partial cut [13:49:52]*** CUTSNS_PIN = 1 [13:49:52]*** CUTSNS_PIN = 0 [13:49:52]*** Brake cut motor [13:49:52]Read from MH i2c: 01 [13:49:53]MH_I2C_Read... [13:49:53]*** Stop cut motor [13:49:53]*** Cut end [13:49:53]Read from MH i2c: 01 07 00 [13:49:53]MH_I2C_Read... [13:49:53]Read from MH i2c: 01 07 00 93 3A 00 00 00 00 00 FF 0F E2 [13:49:53]process_action close_receipt done [13:49:53]requested_data is exist [13:49:53]produce_requested_data [13:49:53]requested_item fm.sn is exist - process it [13:49:53]wFMCommunicate request_size=4 [13:49:53]MH_SAM_APDU [13:49:53]CAPDU: 80 11 00 00 [13:49:53]Write to MH i2c: E2 08 00 94 3A 80 11 00 00 00 00 00 00 48 [13:49:53]Write i2c OK [13:49:53]MH_I2C_Read... [13:49:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:49:53]Read from MH i2c: E2 [13:49:53]MH_I2C_Read... [13:49:53]Read from MH i2c: E2 17 00 [13:49:53]MH_I2C_Read... [13:49:53]Read from MH i2c: E2 17 00 94 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 93 [13:49:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [13:49:53]wFMCommunicate OK [13:49:53]requested_item fd.num is exist - process it [13:49:53]SAM_PROTO_GetFieldsCounters [13:49:53]wFMCommunicate request_size=4 [13:49:53]MH_SAM_APDU [13:49:53]CAPDU: 80 13 00 00 [13:49:53]Write to MH i2c: E2 08 00 95 3A 80 13 00 00 00 00 00 00 4B [13:49:53]Write i2c OK [13:49:53]MH_I2C_Read... [13:49:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:49:53]Read from MH i2c: E2 [13:49:53]MH_I2C_Read... [13:49:53]Read from MH i2c: E2 62 00 [13:49:53]MH_I2C_Read... [13:49:53]Read from MH i2c: E2 62 00 95 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 00 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [13:49:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 00 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:49:53]wFMCommunicate OK [13:49:53]SAM_PROTO_GetFieldsCounters done [13:49:53]requested_item shift.num is exist - process it [13:49:53]requested_item shift.opened is exist - process it [13:49:53]req_shift_opened [13:49:53]FM_GetShiftState [13:49:53]SAM_PROTO_GetShiftState [13:49:53]wFMCommunicate request_size=4 [13:49:53]MH_SAM_APDU [13:49:53]CAPDU: 80 13 01 00 [13:49:53]Write to MH i2c: E2 08 00 96 3A 80 13 01 00 00 00 00 00 4D [13:49:53]Write i2c OK [13:49:53]MH_I2C_Read... [13:49:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:49:53]Read from MH i2c: E2 [13:49:53]MH_I2C_Read... [13:49:53]Read from MH i2c: E2 0E 00 [13:49:53]MH_I2C_Read... [13:49:53]Read from MH i2c: E2 0E 00 96 3A 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 28 [13:49:53]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [13:49:53]wFMCommunicate OK [13:49:53]SAM_PROTO_GetShiftState done [13:49:53]FM_GetShiftState done [13:49:53]req_shift_opened done [13:49:53]requested_item shift.open_date is exist - process it [13:49:53]req_shift_open_date [13:49:53]req_shift_open_date done [13:49:53]produce_requested_data done [13:49:53]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68352,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [13:49:53]process_action_free close_receipt [13:49:53]json_value_free [13:49:53]json_value_free done [13:49:53]process_json_proto returns [13:49:53]Send response to host [13:49:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68352,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [13:49:53]free response buf [13:49:53]execute_script done [13:49:53]execute_script returns [13:49:53]free content buf [13:49:53]Sock 5.Close socket [13:49:53]Sock 5.Thread stoped [13:49:56]OFD Sender: No OFD packet to send [13:50:01]OFD Sender: No OFD packet to send [13:50:06]OFD Sender: No OFD packet to send [13:50:11]OFD Sender: No OFD packet to send [13:50:16]OFD Sender: No OFD packet to send [13:50:21]OFD Sender: No OFD packet to send [13:50:26]OFD Sender: No OFD packet to send [13:50:31]OFD Sender: No OFD packet to send [13:50:36]OFD Sender: No OFD packet to send [13:50:41]OFD Sender: No OFD packet to send [13:50:46]OFD Sender: No OFD packet to send [13:50:51]OFD Sender: No OFD packet to send [13:50:56]OFD Sender: No OFD packet to send [13:51:01]OFD Sender: No OFD packet to send [13:51:06]OFD Sender: No OFD packet to send [13:51:11]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:19]accept exits with 6 [14:04:19]New connection [14:04:19]New thread 3066543460 created [14:04:19]Thread 3066686820 joined [14:04:19]Waiting for new connection... [14:04:19] Sock 6.Parse request [14:04:19]Sock 6.Check first char [14:04:19]Sock 6.First char is OK [14:04:19]request: POST /json_proto HTTP/1.0 [14:04:19]Method: POST [14:04:19]URL: /json_proto [14:04:19]Method is POST - this is cgi request [14:04:19]url: /json_proto [14:04:19]query_string will be loaded in cgi processing [14:04:19]execute_cgi json_proto POST (null) [14:04:19]execute_cgi path=json_proto method=POST [14:04:19]POST find Content-Length [14:04:19]Host: 172.17.36.132:8080 [14:04:19]Content-Length: 682 [14:04:19]Content-Type: application/json [14:04:19] [14:04:19]POST finish read [14:04:19]Found Content-Length = 682 [14:04:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706442", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 20.930, "sum" : 1400.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:04:19]execute_script... [14:04:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706442", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 20.930, "sum" : 1400.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:04:19]POST & json_proto [14:04:19]process_json_proto [14:04:19]json parsed OK: [14:04:19]protocol is kg_v1.0 [14:04:19]action value=close_receipt [14:04:19]process_action close_receipt [14:04:19]cmd_close_receipt [14:04:19]MH_GetDate [14:04:19]Write to MH i2c: F0 00 00 97 3A C0 [14:04:19]Write i2c OK [14:04:19]MH_I2C_Read... [14:04:19]Read from MH i2c: F0 [14:04:19]MH_I2C_Read... [14:04:19]Read from MH i2c: F0 09 00 [14:04:19]MH_I2C_Read... [14:04:19]Read from MH i2c: F0 09 00 97 3A 00 68 CD 5D 66 B2 22 B0 64 A9 [14:04:19]GetLastDocTimeStamp 1717422594 [14:04:19]current date 1717423464 [14:04:19]FM_GetShiftState [14:04:19]SAM_PROTO_GetShiftState [14:04:19]wFMCommunicate request_size=4 [14:04:19]MH_SAM_APDU [14:04:19]CAPDU: 80 13 01 00 [14:04:19]Write to MH i2c: E2 08 00 98 3A 80 13 01 00 00 00 00 00 4F [14:04:19]Write i2c OK [14:04:19]MH_I2C_Read... [14:04:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:04:19]Read from MH i2c: E2 [14:04:19]MH_I2C_Read... [14:04:19]Read from MH i2c: E2 0E 00 [14:04:19]MH_I2C_Read... [14:04:19]Read from MH i2c: E2 0E 00 98 3A 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 2A [14:04:19]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [14:04:19]wFMCommunicate OK [14:04:19]SAM_PROTO_GetShiftState done [14:04:19]FM_GetShiftState done [14:04:19]opened in 1717378033 [14:04:19]opened+sec_in_day 1717464433 [14:04:19]quantity*price = 140021 [14:04:19]sum+1 = 140023 [14:04:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.70 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 99 03.06.2024 14:04 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68353 ФПД: 34543119135390 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T140425&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68353&fm=34543119135390&tin=02508201610067®Number=0000000000098096&sum=140000 [14:04:20]StoreToDocumentArchive [14:04:20]shift 324 fd 68353 [14:04:20]save to /storage/0324/doc_00068353 [14:04:20]save last doc name /storage/0324/doc_00068353 to /storage/kkm_last_doc_name [14:04:20]save OK [14:04:20]Clear old archive folders... [14:04:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:04:20]tlvbuf is B6F17A40 [14:04:20]SAM_PROTO_ClearQueue [14:04:20]wFMCommunicate request_size=4 [14:04:20]MH_SAM_APDU [14:04:20]CAPDU: 80 09 00 00 [14:04:20]Write to MH i2c: E2 08 00 A5 3A 80 09 00 00 00 00 00 00 51 [14:04:20]Write i2c OK [14:04:20]MH_I2C_Read... [14:04:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:04:20]Read from MH i2c: E2 [14:04:20]MH_I2C_Read... [14:04:20]Read from MH i2c: E2 03 00 [14:04:20]MH_I2C_Read... [14:04:20]Read from MH i2c: E2 03 00 A5 3A 00 90 00 53 [14:04:20]RAPDU: 90 00 [14:04:20]wFMCommunicate OK [14:04:20]SAM_PROTO_ClearQueue done [14:04:20]KKMCreateOFDPacket [14:04:20]OFDProtocolAddRootSTLVToBuf [14:04:20]FM_MakeSignedData [14:04:20]FM_MakeSignedData [14:04:20]SAM_PROTO_SignData [14:04:20]wFMCommunicate request_size=4 [14:04:20]MH_SAM_APDU [14:04:20]CAPDU: 80 0D 01 02 [14:04:20]Write to MH i2c: E2 08 00 A6 3A 80 0D 01 02 00 00 00 00 59 [14:04:20]Write i2c OK [14:04:20]MH_I2C_Read... [14:04:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:04:20]Read from MH i2c: E2 [14:04:20]MH_I2C_Read... [14:04:20]Read from MH i2c: E2 03 00 [14:04:20]MH_I2C_Read... [14:04:20]Read from MH i2c: E2 03 00 A6 3A 00 90 00 54 [14:04:20]RAPDU: 90 00 [14:04:20]wFMCommunicate OK [14:04:20]wFMCommunicate request_size=255 [14:04:20]MH_SAM_APDU [14:04: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 34 FF 03 08 00 03 C2 51 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 69 CD 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 01 0B 01 00 35 04 06 00 1F [14:04:20]Write to MH i2c: E2 02 01 A7 3A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 C2 51 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 69 CD 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 01 0B 01 00 35 04 06 00 1F 00 00 CA [14:04:20]Write i2c OK [14:04:20]MH_I2C_Read... [14:04:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:04:21]Read from MH i2c: E2 [14:04:21]MH_I2C_Read... [14:04:21]Read from MH i2c: E2 03 00 [14:04:21]MH_I2C_Read... [14:04:21]Read from MH i2c: E2 03 00 A7 3A 00 90 00 55 [14:04:21]RAPDU: 90 00 [14:04:21]wFMCommunicate OK [14:04:21]wFMCommunicate request_size=10 [14:04:21]MH_SAM_APDU [14:04:21]CAPDU: 80 0D 02 02 05 6A B2 58 72 9E [14:04:21]Write to MH i2c: E2 0D 00 A8 3A 80 0D 02 02 05 00 6A B2 58 72 9E 00 00 EA [14:04:21]Write i2c OK [14:04:21]MH_I2C_Read... [14:04:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:04:21]Read from MH i2c: E2 [14:04:21]MH_I2C_Read... [14:04:21]Read from MH i2c: E2 03 00 [14:04:21]MH_I2C_Read... [14:04:21]Read from MH i2c: E2 03 00 A8 3A 00 90 00 56 [14:04:21]RAPDU: 90 00 [14:04:21]wFMCommunicate OK [14:04:21]wFMCommunicate request_size=4 [14:04:21]MH_SAM_APDU [14:04:21]CAPDU: 80 0D 03 02 [14:04:21]Write to MH i2c: E2 08 00 A9 3A 80 0D 03 02 00 00 00 00 5E [14:04:21]Write i2c OK [14:04:21]MH_I2C_Read... [14:04:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:04:21]Read from MH i2c: E2 [14:04:21]MH_I2C_Read... [14:04:21]Read from MH i2c: E2 0B 00 [14:04:21]MH_I2C_Read... [14:04:21]Read from MH i2c: E2 0B 00 A9 3A 00 4A 2F CD 0C 89 63 7C F5 90 00 0E [14:04:21]RAPDU: 4A 2F CD 0C 89 63 7C F5 90 00 [14:04:21]wFMCommunicate OK [14:04:21]SAM_PROTO_SignData done [14:04:21]FM_MakeSignedData done [14:04:21]CreateOFDProtocolMessage [14:04:21]wFMCommunicate request_size=4 [14:04:21]MH_SAM_APDU [14:04:21]CAPDU: 80 11 00 00 [14:04:21]Write to MH i2c: E2 08 00 AA 3A 80 11 00 00 00 00 00 00 5E [14:04:21]Write i2c OK [14:04:21]MH_I2C_Read... [14:04:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:04:21]Read from MH i2c: E2 [14:04:21]MH_I2C_Read... [14:04:21]Read from MH i2c: E2 17 00 [14:04:21]MH_I2C_Read... [14:04:21]Read from MH i2c: E2 17 00 AA 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 A9 [14:04:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:04:21]wFMCommunicate OK [14:04:21]CreateOFDProtocolMessage done [14:04:21]OFDSenderStorePacket 68353 [14:04:21]StoreOFDPacket docnum=68353 [14:04:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 61 D1 07 01 E6 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 C2 51 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 69 CD 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 01 0B 01 00 35 04 06 00 1F 6A B2 58 72 9E 4A 2F CD 0C 89 63 7C F5 [14:04:21]CheckFolder [14:04:21]dirname=/storage/ofd_packets [14:04:21]CheckFolder done [14:04:21]ProducePacketName [14:04:21]name=ofd_packets/00068353 [14:04:21]NVStorageSaveData ofd_packets/00068353 [14:04:21]File name is /storage/ofd_packets/00068353 [14:04:21]Write 301 bytes [14:04:21]NVStorageSaveData done [14:04:21]OFDSenderStorePacket done [14:04:21]KKMCreateOFDPacket done [14:04:21]NVStorageSaveData kkm_last_timestamp [14:04:21]File name is /storage/kkm_last_timestamp [14:04:21]Write 4 bytes [14:04:21]NVStorageSaveData done [14:04:21]OFD Sender: Processing packet 68353 [packets to send 26, broken 25] [14:04:21]ProducePacketName [14:04:21]name=ofd_packets/00068353 [14:04:21]OFD Sender: To server: pG, [14:04:21]CommunicateWithHost lk.salyk.kg:30040 [14:04:21]ConnectInit lk.salyk.kg [14:04:21]ExternCall_PrintAddStr [14:04:21]wPrintStart [14:04:21]Write to MH i2c: 01 00 00 AB 3A E5 [14:04:21]Write i2c OK [14:04:21]MH_I2C_Read... [14:04:21]Read from MH i2c: 01 [14:04:21]MH_I2C_Read... [14:04:21]Read from MH i2c: 01 07 00 [14:04:21]MH_I2C_Read... [14:04:21]Read from MH i2c: 01 07 00 AB 3A 00 00 00 00 00 FF 0F FA [14:04:21]RasterBufferAndPrint [14:04:21]line Счет N : (1)706442 [14:04:21]line ИНН: 02508201610067 [14:04:21]line Контрольно-Кассовый Чек [14:04:21]line ПРОДАЖА [14:04:21]line ТРК (МРК, ГНК) : 53 [14:04:21]line Товар: 2710124130 [14:04:21]line Аи-92-К-4 [14:04:21]line 20.930 * 66.90 [14:04:21]line = 1400.22 [14:04:21]line НДС 12% НСП 1% [14:04:21]line > о реализуемом товаре [14:04:21]line ОКРУГЛЕНИЕ: -0.22 [14:04:21]line ИТОГО: 1400.00 [14:04:21]line Внесено: 1400.00 [14:04:21]line СДАЧА: 0.00 [14:04:21]line НСП 1% : 12.39 [14:04:21]line НДС 12% : 148.70 [14:04:21]line Наличными: 1400.00 [14:04:21]line Безнал.: 0.00 [14:04:21]line Место: АЗС № 62 "Партнер Нефть" [14:04:21]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [14:04:21]line СНО: Общий режим [14:04:21]line Чек 99 03.06.2024 14:04 [14:04:21]line Смена: 324 ФФД: 1.0 [14:04:21]line ЗНМ: 0300000181 [14:04:21]line РНМ: 0000000000098096 [14:04:21]line Версия ККМ: 001 [14:04:21]line ФМ: 0000000000965400 [14:04:21]line ФД: 68353 [14:04:21]line ФПД: 34543119135390 [14:04:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T140425&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68353&fm=34543119135390&tin=02508201610067®Number=0000000000098096&sum=140000 [14:04:21]Connected sock=9 [14:04:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 61 D1 07 01 E6 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 C2 51 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 69 CD 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 01 0B 01 00 35 04 06 00 1F 6A B2 58 72 9E 4A 2F CD 0C 89 63 7C F5 [14:04:21]written 0, free lines is 4095 [14:04:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 50 01 47 00 3F B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 01 0B 01 00 F4 03 04 00 64 74 5D 66 B6 04 01 00 00 58 18 22 BE 4E B2 01 32 [14:04:21]CommunicateWithHost err = 0 [14:04:21]CheckOFDResponse [14:04:21]1017 (14) - 77093643461234 [14:04:21]1041 (16) - 0000000000965400 [14:04:21]1040 (4) - 68353 [14:04:21]1012 (4) - 03.06.2024 07:44 [14:04:21]1206 (1) - 0 [14:04:21]OFD Sender: Remove packet 68353 [14:04:21]ProducePacketName [14:04:21]name=ofd_packets/00068353 [14:04:21]NVStorageDeleteData [14:04:21]Write to MH i2c: 01 00 00 D6 3A 10 [14:04:21]Write i2c OK [14:04:21]MH_I2C_Read... [14:04:21]Read from MH i2c: 01 [14:04:21]MH_I2C_Read... [14:04:21]Read from MH i2c: 01 07 00 [14:04:21]MH_I2C_Read... [14:04:21]Read from MH i2c: 01 07 00 D6 3A 00 00 00 00 00 D9 0C FC [14:04:21]RasterBufferAndPrint [14:04:21]line [14:04:21]line [14:04:21]line [14:04:21]line [14:04:21]line [14:04:21]written 0, free lines is 3296 [14:04:22]MH_Cut [14:04:22]Write to MH i2c: D1 01 00 DD 3A 01 E9 [14:04:22]Write i2c OK [14:04:22]MH_I2C_Read... [14:04:22]Read from MH i2c: D1 [14:04:22]MH_I2C_Read... [14:04:22]Read from MH i2c: D1 01 00 [14:04:22]MH_I2C_Read... [14:04:22]Read from MH i2c: D1 01 00 DD 3A 00 E8 [14:04:22]Write to MH i2c: 01 00 00 DE 3A 18 [14:04:22]Write i2c OK [14:04:22]MH_I2C_Read... [14:04:22]OFD Sender: No OFD packet to send [14:04:22]*** Cut start [14:04:22]*** Partial cut [14:04:22]*** CUTSNS_PIN = 1 [14:04:22]*** CUTSNS_PIN = 0 [14:04:23]*** Brake cut motor [14:04:23]Read from MH i2c: 01 [14:04:23]MH_I2C_Read... [14:04:23]*** Stop cut motor [14:04:23]*** Cut end [14:04:23]Read from MH i2c: 01 07 00 [14:04:23]MH_I2C_Read... [14:04:23]Read from MH i2c: 01 07 00 DE 3A 00 00 00 00 00 FF 0F 2D [14:04:23]process_action close_receipt done [14:04:23]requested_data is exist [14:04:23]produce_requested_data [14:04:23]requested_item fm.sn is exist - process it [14:04:23]wFMCommunicate request_size=4 [14:04:23]MH_SAM_APDU [14:04:23]CAPDU: 80 11 00 00 [14:04:23]Write to MH i2c: E2 08 00 DF 3A 80 11 00 00 00 00 00 00 93 [14:04:23]Write i2c OK [14:04:23]MH_I2C_Read... [14:04:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:04:23]Read from MH i2c: E2 [14:04:23]MH_I2C_Read... [14:04:23]Read from MH i2c: E2 17 00 [14:04:23]MH_I2C_Read... [14:04:23]Read from MH i2c: E2 17 00 DF 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 DE [14:04:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:04:23]wFMCommunicate OK [14:04:23]requested_item fd.num is exist - process it [14:04:23]SAM_PROTO_GetFieldsCounters [14:04:23]wFMCommunicate request_size=4 [14:04:23]MH_SAM_APDU [14:04:23]CAPDU: 80 13 00 00 [14:04:23]Write to MH i2c: E2 08 00 E0 3A 80 13 00 00 00 00 00 00 96 [14:04:23]Write i2c OK [14:04:23]MH_I2C_Read... [14:04:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:04:23]Read from MH i2c: E2 [14:04:23]MH_I2C_Read... [14:04:23]Read from MH i2c: E2 62 00 [14:04:23]MH_I2C_Read... [14:04:23]Read from MH i2c: E2 62 00 E0 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 01 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 31 [14:04:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 01 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:04:23]wFMCommunicate OK [14:04:23]SAM_PROTO_GetFieldsCounters done [14:04:23]requested_item shift.num is exist - process it [14:04:23]requested_item shift.opened is exist - process it [14:04:23]req_shift_opened [14:04:23]FM_GetShiftState [14:04:23]SAM_PROTO_GetShiftState [14:04:23]wFMCommunicate request_size=4 [14:04:23]MH_SAM_APDU [14:04:23]CAPDU: 80 13 01 00 [14:04:23]Write to MH i2c: E2 08 00 E1 3A 80 13 01 00 00 00 00 00 98 [14:04:23]Write i2c OK [14:04:23]MH_I2C_Read... [14:04:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:04:23]Read from MH i2c: E2 [14:04:23]MH_I2C_Read... [14:04:23]Read from MH i2c: E2 0E 00 [14:04:23]MH_I2C_Read... [14:04:23]Read from MH i2c: E2 0E 00 E1 3A 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 73 [14:04:23]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [14:04:23]wFMCommunicate OK [14:04:23]SAM_PROTO_GetShiftState done [14:04:23]FM_GetShiftState done [14:04:23]req_shift_opened done [14:04:23]requested_item shift.open_date is exist - process it [14:04:23]req_shift_open_date [14:04:23]req_shift_open_date done [14:04:23]produce_requested_data done [14:04:23]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68353,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [14:04:23]process_action_free close_receipt [14:04:23]json_value_free [14:04:23]json_value_free done [14:04:23]process_json_proto returns [14:04:23]Send response to host [14:04:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68353,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [14:04:23]free response buf [14:04:23]execute_script done [14:04:23]execute_script returns [14:04:23]free content buf [14:04:23]Sock 6.Close socket [14:04:23]Sock 6.Thread stoped [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:52]accept exits with 5 [14:04:52]New connection [14:04:52]New thread 3066686820 created [14:04:52]Thread 3066543460 joined [14:04:52]Waiting for new connection... [14:04:52] Sock 5.Parse request [14:04:52]Sock 5.Check first char [14:04:52]Sock 5.First char is OK [14:04:52]request: POST /json_proto HTTP/1.0 [14:04:52]Method: POST [14:04:52]URL: /json_proto [14:04:52]Method is POST - this is cgi request [14:04:52]url: /json_proto [14:04:52]query_string will be loaded in cgi processing [14:04:52]execute_cgi json_proto POST (null) [14:04:52]execute_cgi path=json_proto method=POST [14:04:52]POST find Content-Length [14:04:52]Host: 172.17.36.132:8080 [14:04:52]Content-Length: 843 [14:04:52]Content-Type: application/json [14:04:52] [14:04:52]POST finish read [14:04:52]Found Content-Length = 843 [14:04:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706441", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 33.830, "sum" : 2500.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 2500.04 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:04:52]execute_script... [14:04:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706441", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 33.830, "sum" : 2500.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 2500.04 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:04:52]POST & json_proto [14:04:52]process_json_proto [14:04:52]json parsed OK: [14:04:52]protocol is kg_v1.0 [14:04:52]action value=close_receipt [14:04:52]process_action close_receipt [14:04:52]cmd_close_receipt [14:04:52]MH_GetDate [14:04:52]Write to MH i2c: F0 00 00 E2 3A 0B [14:04:52]Write i2c OK [14:04:52]MH_I2C_Read... [14:04:52]Read from MH i2c: F0 [14:04:52]MH_I2C_Read... [14:04:52]Read from MH i2c: F0 09 00 [14:04:52]MH_I2C_Read... [14:04:52]Read from MH i2c: F0 09 00 E2 3A 00 8A CD 5D 66 B2 22 B0 64 16 [14:04:52]GetLastDocTimeStamp 1717423465 [14:04:52]current date 1717423498 [14:04:52]FM_GetShiftState [14:04:52]SAM_PROTO_GetShiftState [14:04:52]wFMCommunicate request_size=4 [14:04:52]MH_SAM_APDU [14:04:52]CAPDU: 80 13 01 00 [14:04:52]Write to MH i2c: E2 08 00 E3 3A 80 13 01 00 00 00 00 00 9A [14:04:52]Write i2c OK [14:04:52]MH_I2C_Read... [14:04:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:04:52]Read from MH i2c: E2 [14:04:52]MH_I2C_Read... [14:04:52]Read from MH i2c: E2 0E 00 [14:04:52]MH_I2C_Read... [14:04:52]Read from MH i2c: E2 0E 00 E3 3A 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 75 [14:04:52]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [14:04:52]wFMCommunicate OK [14:04:52]SAM_PROTO_GetShiftState done [14:04:52]FM_GetShiftState done [14:04:52]opened in 1717378033 [14:04:52]opened+sec_in_day 1717464433 [14:04:52]quantity*price = 250003 [14:04:52]sum+1 = 250005 [14:04:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2500.04 НСП 1% : 22.12 НДС 12% : 265.49 Наличными: 0.00 Безнал.: 2500.04 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 100 03.06.2024 14:04 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68354 ФПД: 28344912998979 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T140458&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68354&fm=28344912998979&tin=02508201610067®Number=0000000000098096&sum=250004 [14:04:53]StoreToDocumentArchive [14:04:53]shift 324 fd 68354 [14:04:53]save to /storage/0324/doc_00068354 [14:04:53]save last doc name /storage/0324/doc_00068354 to /storage/kkm_last_doc_name [14:04:53]save OK [14:04:53]Clear old archive folders... [14:04:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:04:53]tlvbuf is 0024EE00 [14:04:53]SAM_PROTO_ClearQueue [14:04:53]wFMCommunicate request_size=4 [14:04:53]MH_SAM_APDU [14:04:53]CAPDU: 80 09 00 00 [14:04:53]Write to MH i2c: E2 08 00 F0 3A 80 09 00 00 00 00 00 00 9C [14:04:53]Write i2c OK [14:04:53]MH_I2C_Read... [14:04:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:04:53]Read from MH i2c: E2 [14:04:53]MH_I2C_Read... [14:04:53]Read from MH i2c: E2 03 00 [14:04:53]MH_I2C_Read... [14:04:53]Read from MH i2c: E2 03 00 F0 3A 00 90 00 9E [14:04:53]RAPDU: 90 00 [14:04:53]wFMCommunicate OK [14:04:53]SAM_PROTO_ClearQueue done [14:04:53]KKMCreateOFDPacket [14:04:53]OFDProtocolAddRootSTLVToBuf [14:04:53]FM_MakeSignedData [14:04:53]FM_MakeSignedData [14:04:53]SAM_PROTO_SignData [14:04:53]wFMCommunicate request_size=4 [14:04:53]MH_SAM_APDU [14:04:53]CAPDU: 80 0D 01 02 [14:04:53]Write to MH i2c: E2 08 00 F1 3A 80 0D 01 02 00 00 00 00 A4 [14:04:53]Write i2c OK [14:04:53]MH_I2C_Read... [14:04:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:04:53]Read from MH i2c: E2 [14:04:53]MH_I2C_Read... [14:04:53]Read from MH i2c: E2 03 00 [14:04:53]MH_I2C_Read... [14:04:53]Read from MH i2c: E2 03 00 F1 3A 00 90 00 9F [14:04:53]RAPDU: 90 00 [14:04:53]wFMCommunicate OK [14:04:53]wFMCommunicate request_size=255 [14:04:53]MH_SAM_APDU [14:04:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 84 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 94 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 8A CD 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 02 0B 01 00 35 04 06 00 19 [14:04:53]Write to MH i2c: E2 02 01 F2 3A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 84 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 94 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 8A CD 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 02 0B 01 00 35 04 06 00 19 00 00 3C [14:04:53]Write i2c OK [14:04:53]MH_I2C_Read... [14:04:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:04:54]Read from MH i2c: E2 [14:04:54]MH_I2C_Read... [14:04:54]Read from MH i2c: E2 03 00 [14:04:54]MH_I2C_Read... [14:04:54]Read from MH i2c: E2 03 00 F2 3A 00 90 00 A0 [14:04:54]RAPDU: 90 00 [14:04:54]wFMCommunicate OK [14:04:54]wFMCommunicate request_size=10 [14:04:54]MH_SAM_APDU [14:04:54]CAPDU: 80 0D 02 02 05 C7 90 78 72 43 [14:04:54]Write to MH i2c: E2 0D 00 F3 3A 80 0D 02 02 05 00 C7 90 78 72 43 00 00 35 [14:04:54]Write i2c OK [14:04:54]MH_I2C_Read... [14:04:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:04:54]Read from MH i2c: E2 [14:04:54]MH_I2C_Read... [14:04:54]Read from MH i2c: E2 03 00 [14:04:54]MH_I2C_Read... [14:04:54]Read from MH i2c: E2 03 00 F3 3A 00 90 00 A1 [14:04:54]RAPDU: 90 00 [14:04:54]wFMCommunicate OK [14:04:54]wFMCommunicate request_size=4 [14:04:54]MH_SAM_APDU [14:04:54]CAPDU: 80 0D 03 02 [14:04:54]Write to MH i2c: E2 08 00 F4 3A 80 0D 03 02 00 00 00 00 A9 [14:04:54]Write i2c OK [14:04:54]MH_I2C_Read... [14:04:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:04:54]Read from MH i2c: E2 [14:04:54]MH_I2C_Read... [14:04:54]Read from MH i2c: E2 0B 00 [14:04:54]MH_I2C_Read... [14:04:54]Read from MH i2c: E2 0B 00 F4 3A 00 7B 91 91 C3 55 AE 59 A6 90 00 0C [14:04:54]RAPDU: 7B 91 91 C3 55 AE 59 A6 90 00 [14:04:54]wFMCommunicate OK [14:04:54]SAM_PROTO_SignData done [14:04:54]FM_MakeSignedData done [14:04:54]CreateOFDProtocolMessage [14:04:54]wFMCommunicate request_size=4 [14:04:54]MH_SAM_APDU [14:04:54]CAPDU: 80 11 00 00 [14:04:54]Write to MH i2c: E2 08 00 F5 3A 80 11 00 00 00 00 00 00 A9 [14:04:54]Write i2c OK [14:04:54]MH_I2C_Read... [14:04:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:04:54]Read from MH i2c: E2 [14:04:54]MH_I2C_Read... [14:04:54]Read from MH i2c: E2 17 00 [14:04:54]MH_I2C_Read... [14:04:54]Read from MH i2c: E2 17 00 F5 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 F4 [14:04:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:04:54]wFMCommunicate OK [14:04:54]CreateOFDProtocolMessage done [14:04:54]OFDSenderStorePacket 68354 [14:04:54]StoreOFDPacket docnum=68354 [14:04:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 53 7A 07 01 F3 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 26 84 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 94 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 8A CD 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 02 0B 01 00 35 04 06 00 19 C7 90 78 72 43 7B 91 91 C3 55 AE 59 A6 [14:04:54]CheckFolder [14:04:54]dirname=/storage/ofd_packets [14:04:54]CheckFolder done [14:04:54]ProducePacketName [14:04:54]name=ofd_packets/00068354 [14:04:54]NVStorageSaveData ofd_packets/00068354 [14:04:54]File name is /storage/ofd_packets/00068354 [14:04:54]Write 301 bytes [14:04:54]NVStorageSaveData done [14:04:54]OFDSenderStorePacket done [14:04:54]KKMCreateOFDPacket done [14:04:54]NVStorageSaveData kkm_last_timestamp [14:04:54]File name is /storage/kkm_last_timestamp [14:04:54]Write 4 bytes [14:04:54]NVStorageSaveData done [14:04:54]ExternCall_PrintAddStr [14:04:54]wPrintStart [14:04:54]Write to MH i2c: 01 00 00 F6 3A 30 [14:04:54]Write i2c OK [14:04:54]MH_I2C_Read... [14:04:54]Read from MH i2c: 01 [14:04:54]MH_I2C_Read... [14:04:54]Read from MH i2c: 01 07 00 [14:04:54]MH_I2C_Read... [14:04:54]Read from MH i2c: 01 07 00 F6 3A 00 00 00 00 00 FF 0F 45 [14:04:54]RasterBufferAndPrint [14:04:54]line Счет N : (1)706441 [14:04:54]line ИНН: 02508201610067 [14:04:54]line Контрольно-Кассовый Чек [14:04:54]line ПРОДАЖА [14:04:54]line ТРК (МРК, ГНК) : 33 [14:04:54]line Товар: 2710124500 [14:04:54]line Аи-95-К-5 [14:04:54]line 33.830 * 73.90 [14:04:54]line = 2500.04 [14:04:54]line НДС 12% НСП 1% [14:04:54]line > о реализуемом товаре [14:04:54]line ИТОГО: 2500.04 [14:04:54]line НСП 1% : 22.12 [14:04:54]line НДС 12% : 265.49 [14:04:54]line Наличными: 0.00 [14:04:54]line Безнал.: 2500.04 [14:04:54]line Место: АЗС № 62 "Партнер Нефть" [14:04:54]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [14:04:54]line СНО: Общий режим [14:04:54]line Чек 100 03.06.2024 14:04 [14:04:54]line Смена: 324 ФФД: 1.0 [14:04:54]line ЗНМ: 0300000181 [14:04:54]line РНМ: 0000000000098096 [14:04:54]line Версия ККМ: 001 [14:04:54]line Платежная система: АКБ Кыргызстан [14:04:54]line ФМ: 0000000000965400 [14:04:54]line ФД: 68354 [14:04:54]line ФПД: 28344912998979 [14:04:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T140458&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68354&fm=28344912998979&tin=02508201610067®Number=0000000000098096&sum=250004 [14:04:54]OFD Sender: Processing packet 68354 [packets to send 26, broken 25] [14:04:54]ProducePacketName [14:04:54]name=ofd_packets/00068354 [14:04:54]OFD Sender: To server: pG, [14:04:54]CommunicateWithHost lk.salyk.kg:30040 [14:04:54]ConnectInit lk.salyk.kg [14:04:54]written 0, free lines is 4095 [14:04:54]Connected sock=7 [14:04:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 53 7A 07 01 F3 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 26 84 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 94 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 8A CD 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 02 0B 01 00 35 04 06 00 19 C7 90 78 72 43 7B 91 91 C3 55 AE 59 A6 [14:04:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 80 4B 47 00 F3 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 02 0B 01 00 F4 03 04 00 86 74 5D 66 B6 04 01 00 00 63 26 E3 1F DE 3A BB F5 [14:04:54]CommunicateWithHost err = 0 [14:04:54]CheckOFDResponse [14:04:54]1017 (14) - 77093643461234 [14:04:54]1041 (16) - 0000000000965400 [14:04:54]1040 (4) - 68354 [14:04:54]1012 (4) - 03.06.2024 07:45 [14:04:54]1206 (1) - 0 [14:04:54]OFD Sender: Remove packet 68354 [14:04:54]ProducePacketName [14:04:54]name=ofd_packets/00068354 [14:04:54]NVStorageDeleteData [14:04:55]Write to MH i2c: 01 00 00 20 3B 5B [14:04:55]Write i2c OK [14:04:55]MH_I2C_Read... [14:04:55]Read from MH i2c: 01 [14:04:55]MH_I2C_Read... [14:04:55]Read from MH i2c: 01 07 00 [14:04:55]MH_I2C_Read... [14:04:55]Read from MH i2c: 01 07 00 20 3B 00 00 00 00 00 FA 0C 68 [14:04:55]RasterBufferAndPrint [14:04:55]line [14:04:55]line [14:04:55]line [14:04:55]line [14:04:55]line [14:04:55]written 0, free lines is 3326 [14:04:55]MH_Cut [14:04:55]Write to MH i2c: D1 01 00 27 3B 01 34 [14:04:55]Write i2c OK [14:04:55]MH_I2C_Read... [14:04:55]Read from MH i2c: D1 [14:04:55]MH_I2C_Read... [14:04:55]Read from MH i2c: D1 01 00 [14:04:55]MH_I2C_Read... [14:04:55]Read from MH i2c: D1 01 00 27 3B 00 33 [14:04:55]Write to MH i2c: 01 00 00 28 3B 63 [14:04:55]Write i2c OK [14:04:55]MH_I2C_Read... [14:04:55]OFD Sender: No OFD packet to send [14:04:55]*** Cut start [14:04:55]*** Partial cut [14:04:55]*** CUTSNS_PIN = 1 [14:04:55]*** CUTSNS_PIN = 0 [14:04:56]*** Brake cut motor [14:04:56]Read from MH i2c: 01 [14:04:56]MH_I2C_Read... [14:04:56]*** Stop cut motor [14:04:56]*** Cut end [14:04:56]Read from MH i2c: 01 07 00 [14:04:56]MH_I2C_Read... [14:04:56]Read from MH i2c: 01 07 00 28 3B 00 00 00 00 00 FF 0F 78 [14:04:56]process_action close_receipt done [14:04:56]requested_data is exist [14:04:56]produce_requested_data [14:04:56]requested_item fm.sn is exist - process it [14:04:56]wFMCommunicate request_size=4 [14:04:56]MH_SAM_APDU [14:04:56]CAPDU: 80 11 00 00 [14:04:56]Write to MH i2c: E2 08 00 29 3B 80 11 00 00 00 00 00 00 DE [14:04:56]Write i2c OK [14:04:56]MH_I2C_Read... [14:04:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:04:56]Read from MH i2c: E2 [14:04:56]MH_I2C_Read... [14:04:56]Read from MH i2c: E2 17 00 [14:04:56]MH_I2C_Read... [14:04:56]Read from MH i2c: E2 17 00 29 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 29 [14:04:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:04:56]wFMCommunicate OK [14:04:56]requested_item fd.num is exist - process it [14:04:56]SAM_PROTO_GetFieldsCounters [14:04:56]wFMCommunicate request_size=4 [14:04:56]MH_SAM_APDU [14:04:56]CAPDU: 80 13 00 00 [14:04:56]Write to MH i2c: E2 08 00 2A 3B 80 13 00 00 00 00 00 00 E1 [14:04:56]Write i2c OK [14:04:56]MH_I2C_Read... [14:04:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:04:56]Read from MH i2c: E2 [14:04:56]MH_I2C_Read... [14:04:56]Read from MH i2c: E2 62 00 [14:04:56]MH_I2C_Read... [14:04:56]Read from MH i2c: E2 62 00 2A 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 02 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 80 [14:04:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 02 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:04:56]wFMCommunicate OK [14:04:56]SAM_PROTO_GetFieldsCounters done [14:04:56]requested_item shift.num is exist - process it [14:04:56]requested_item shift.opened is exist - process it [14:04:56]req_shift_opened [14:04:56]FM_GetShiftState [14:04:56]SAM_PROTO_GetShiftState [14:04:56]wFMCommunicate request_size=4 [14:04:56]MH_SAM_APDU [14:04:56]CAPDU: 80 13 01 00 [14:04:56]Write to MH i2c: E2 08 00 2B 3B 80 13 01 00 00 00 00 00 E3 [14:04:56]Write i2c OK [14:04:56]MH_I2C_Read... [14:04:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:04:56]Read from MH i2c: E2 [14:04:56]MH_I2C_Read... [14:04:56]Read from MH i2c: E2 0E 00 [14:04:56]MH_I2C_Read... [14:04:56]Read from MH i2c: E2 0E 00 2B 3B 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 BE [14:04:56]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [14:04:56]wFMCommunicate OK [14:04:56]SAM_PROTO_GetShiftState done [14:04:56]FM_GetShiftState done [14:04:56]req_shift_opened done [14:04:56]requested_item shift.open_date is exist - process it [14:04:56]req_shift_open_date [14:04:56]req_shift_open_date done [14:04:56]produce_requested_data done [14:04:56]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68354,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [14:04:56]process_action_free close_receipt [14:04:56]json_value_free [14:04:56]json_value_free done [14:04:56]process_json_proto returns [14:04:56]Send response to host [14:04:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68354,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [14:04:56]free response buf [14:04:56]execute_script done [14:04:56]execute_script returns [14:04:56]free content buf [14:04:56]Sock 5.Close socket [14:04:56]Sock 5.Thread stoped [14:05:00]OFD Sender: No OFD packet to send [14:05:05]OFD Sender: No OFD packet to send [14:05:10]OFD Sender: No OFD packet to send [14:05:15]OFD Sender: No OFD packet to send [14:05:20]OFD Sender: No OFD packet to send [14:05:25]OFD Sender: No OFD packet to send [14:05:30]OFD Sender: No OFD packet to send [14:05:35]OFD Sender: No OFD packet to send [14:05:40]OFD Sender: No OFD packet to send [14:05:45]OFD Sender: No OFD packet to send [14:05:50]OFD Sender: No OFD packet to send [14:05:55]OFD Sender: No OFD packet to send [14:06:00]OFD Sender: No OFD packet to send [14:06:05]OFD Sender: No OFD packet to send [14:06:10]OFD Sender: No OFD packet to send [14:06:15]OFD Sender: No OFD packet to send [14:06:20]OFD Sender: No OFD packet to send [14:06:25]OFD Sender: No OFD packet to send [14:06:30]OFD Sender: No OFD packet to send [14:06:35]OFD Sender: No OFD packet to send [14:06:40]OFD Sender: No OFD packet to send [14:06:45]OFD Sender: No OFD packet to send [14:06:50]OFD Sender: No OFD packet to send [14:06:55]OFD Sender: No OFD packet to send [14:07:00]OFD Sender: No OFD packet to send [14:07:05]OFD Sender: No OFD packet to send [14:07:10]OFD Sender: No OFD packet to send [14:07:15]OFD Sender: No OFD packet to send [14:07:20]OFD Sender: No OFD packet to send [14:07:25]OFD Sender: No OFD packet to send [14:07:30]OFD Sender: No OFD packet to send [14:07:35]OFD Sender: No OFD packet to send [14:07:40]OFD Sender: No OFD packet to send [14:07:45]OFD Sender: No OFD packet to send [14:07:50]OFD Sender: No OFD packet to send [14:07:55]OFD Sender: No OFD packet to send [14:08:00]OFD Sender: No OFD packet to send [14:08:05]OFD Sender: No OFD packet to send [14:08:10]OFD Sender: No OFD packet to send [14:08:10]accept exits with 6 [14:08:10]New connection [14:08:10]New thread 3066543460 created [14:08:10]Thread 3066686820 joined [14:08:10]Waiting for new connection... [14:08:10] Sock 6.Parse request [14:08:10]Sock 6.Check first char [14:08:10]Sock 6.First char is OK [14:08:10]request: POST /json_proto HTTP/1.0 [14:08:10]Method: POST [14:08:10]URL: /json_proto [14:08:10]Method is POST - this is cgi request [14:08:10]url: /json_proto [14:08:10]query_string will be loaded in cgi processing [14:08:10]execute_cgi json_proto POST (null) [14:08:10]execute_cgi path=json_proto method=POST [14:08:10]POST find Content-Length [14:08:10]Host: 172.17.36.132:8080 [14:08:10]Content-Length: 848 [14:08:10]Content-Type: application/json [14:08:10] [14:08:10]POST finish read [14:08:10]Found Content-Length = 848 [14:08:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706443", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 20.580, "sum" : 1500.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1500.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:08:10]execute_script... [14:08:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706443", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 20.580, "sum" : 1500.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1500.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:08:10]POST & json_proto [14:08:10]process_json_proto [14:08:10]json parsed OK: [14:08:10]protocol is kg_v1.0 [14:08:10]action value=close_receipt [14:08:10]process_action close_receipt [14:08:10]cmd_close_receipt [14:08:10]MH_GetDate [14:08:10]Write to MH i2c: F0 00 00 2C 3B 56 [14:08:10]Write i2c OK [14:08:10]MH_I2C_Read... [14:08:10]Read from MH i2c: F0 [14:08:10]MH_I2C_Read... [14:08:10]Read from MH i2c: F0 09 00 [14:08:10]MH_I2C_Read... [14:08:10]Read from MH i2c: F0 09 00 2C 3B 00 50 CE 5D 66 B2 22 B0 64 28 [14:08:10]GetLastDocTimeStamp 1717423498 [14:08:10]current date 1717423696 [14:08:10]FM_GetShiftState [14:08:10]SAM_PROTO_GetShiftState [14:08:10]wFMCommunicate request_size=4 [14:08:10]MH_SAM_APDU [14:08:10]CAPDU: 80 13 01 00 [14:08:10]Write to MH i2c: E2 08 00 2D 3B 80 13 01 00 00 00 00 00 E5 [14:08:10]Write i2c OK [14:08:10]MH_I2C_Read... [14:08:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:08:10]Read from MH i2c: E2 [14:08:10]MH_I2C_Read... [14:08:10]Read from MH i2c: E2 0E 00 [14:08:10]MH_I2C_Read... [14:08:10]Read from MH i2c: E2 0E 00 2D 3B 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 C0 [14:08:10]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [14:08:10]wFMCommunicate OK [14:08:10]SAM_PROTO_GetShiftState done [14:08:10]FM_GetShiftState done [14:08:10]opened in 1717378033 [14:08:10]opened+sec_in_day 1717464433 [14:08:10]quantity*price = 150028 [14:08:10]sum+1 = 150029 [14:08:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.28 НСП 1% : 13.28 НДС 12% : 159.32 Наличными: 0.00 Безнал.: 1500.28 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 101 03.06.2024 14:08 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68355 ФПД: 124723922628756 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T140816&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68355&fm=124723922628756&tin=02508201610067®Number=0000000000098096&sum=150028 [14:08:12]StoreToDocumentArchive [14:08:12]shift 324 fd 68355 [14:08:12]save to /storage/0324/doc_00068355 [14:08:12]save last doc name /storage/0324/doc_00068355 to /storage/kkm_last_doc_name [14:08:12]save OK [14:08:12]Clear old archive folders... [14:08:12]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:08:12]tlvbuf is B6F148A0 [14:08:12]SAM_PROTO_ClearQueue [14:08:12]wFMCommunicate request_size=4 [14:08:12]MH_SAM_APDU [14:08:12]CAPDU: 80 09 00 00 [14:08:12]Write to MH i2c: E2 08 00 3A 3B 80 09 00 00 00 00 00 00 E7 [14:08:12]Write i2c OK [14:08:12]MH_I2C_Read... [14:08:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:08:12]Read from MH i2c: E2 [14:08:12]MH_I2C_Read... [14:08:12]Read from MH i2c: E2 03 00 [14:08:12]MH_I2C_Read... [14:08:12]Read from MH i2c: E2 03 00 3A 3B 00 90 00 E9 [14:08:12]RAPDU: 90 00 [14:08:12]wFMCommunicate OK [14:08:12]SAM_PROTO_ClearQueue done [14:08:12]KKMCreateOFDPacket [14:08:12]OFDProtocolAddRootSTLVToBuf [14:08:12]FM_MakeSignedData [14:08:12]FM_MakeSignedData [14:08:12]SAM_PROTO_SignData [14:08:12]wFMCommunicate request_size=4 [14:08:12]MH_SAM_APDU [14:08:12]CAPDU: 80 0D 01 02 [14:08:12]Write to MH i2c: E2 08 00 3B 3B 80 0D 01 02 00 00 00 00 EF [14:08:12]Write i2c OK [14:08:12]MH_I2C_Read... [14:08:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:08:12]Read from MH i2c: E2 [14:08:12]MH_I2C_Read... [14:08:12]Read from MH i2c: E2 03 00 [14:08:12]MH_I2C_Read... [14:08:12]Read from MH i2c: E2 03 00 3B 3B 00 90 00 EA [14:08:12]RAPDU: 90 00 [14:08:12]wFMCommunicate OK [14:08:12]wFMCommunicate request_size=255 [14:08:12]MH_SAM_APDU [14:08:12]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 34 FF 03 08 00 03 64 50 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 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 3C 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0C 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 50 CE 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 03 0B 01 00 35 04 06 00 [14:08:12]Write to MH i2c: E2 02 01 3C 3B 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 34 FF 03 08 00 03 64 50 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 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 3C 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0C 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 50 CE 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 03 0B 01 00 35 04 06 00 00 00 CD [14:08:12]Write i2c OK [14:08:12]MH_I2C_Read... [14:08:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:08:12]Read from MH i2c: E2 [14:08:12]MH_I2C_Read... [14:08:12]Read from MH i2c: E2 03 00 [14:08:12]MH_I2C_Read... [14:08:12]Read from MH i2c: E2 03 00 3C 3B 00 90 00 EB [14:08:12]RAPDU: 90 00 [14:08:12]wFMCommunicate OK [14:08:12]wFMCommunicate request_size=11 [14:08:12]MH_SAM_APDU [14:08:12]CAPDU: 80 0D 02 02 06 71 6F 8D 1A 70 94 [14:08:12]Write to MH i2c: E2 0E 00 3D 3B 80 0D 02 02 06 00 71 6F 8D 1A 70 94 00 00 89 [14:08:12]Write i2c OK [14:08:12]MH_I2C_Read... [14:08:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:08:12]Read from MH i2c: E2 [14:08:12]MH_I2C_Read... [14:08:12]Read from MH i2c: E2 03 00 [14:08:12]MH_I2C_Read... [14:08:12]Read from MH i2c: E2 03 00 3D 3B 00 90 00 EC [14:08:12]RAPDU: 90 00 [14:08:12]wFMCommunicate OK [14:08:12]wFMCommunicate request_size=4 [14:08:12]MH_SAM_APDU [14:08:12]CAPDU: 80 0D 03 02 [14:08:12]Write to MH i2c: E2 08 00 3E 3B 80 0D 03 02 00 00 00 00 F4 [14:08:12]Write i2c OK [14:08:12]MH_I2C_Read... [14:08:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:08:12]Read from MH i2c: E2 [14:08:12]MH_I2C_Read... [14:08:12]Read from MH i2c: E2 0B 00 [14:08:12]MH_I2C_Read... [14:08:12]Read from MH i2c: E2 0B 00 3E 3B 00 EA CE 6E 90 54 3C E0 91 90 00 AC [14:08:12]RAPDU: EA CE 6E 90 54 3C E0 91 90 00 [14:08:12]wFMCommunicate OK [14:08:12]SAM_PROTO_SignData done [14:08:12]FM_MakeSignedData done [14:08:12]CreateOFDProtocolMessage [14:08:12]wFMCommunicate request_size=4 [14:08:12]MH_SAM_APDU [14:08:12]CAPDU: 80 11 00 00 [14:08:12]Write to MH i2c: E2 08 00 3F 3B 80 11 00 00 00 00 00 00 F4 [14:08:12]Write i2c OK [14:08:12]MH_I2C_Read... [14:08:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:08:12]Read from MH i2c: E2 [14:08:12]MH_I2C_Read... [14:08:12]Read from MH i2c: E2 17 00 [14:08:12]MH_I2C_Read... [14:08:12]Read from MH i2c: E2 17 00 3F 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 3F [14:08:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:08:12]wFMCommunicate OK [14:08:12]CreateOFDProtocolMessage done [14:08:12]OFDSenderStorePacket 68355 [14:08:12]StoreOFDPacket docnum=68355 [14:08:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 74 35 08 01 EE AF 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 34 FF 03 08 00 03 64 50 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 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 3C 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0C 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 50 CE 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 03 0B 01 00 35 04 06 00 71 6F 8D 1A 70 94 EA CE 6E 90 54 3C E0 91 [14:08:12]CheckFolder [14:08:12]dirname=/storage/ofd_packets [14:08:12]CheckFolder done [14:08:12]ProducePacketName [14:08:12]name=ofd_packets/00068355 [14:08:12]NVStorageSaveData ofd_packets/00068355 [14:08:12]File name is /storage/ofd_packets/00068355 [14:08:12]Write 302 bytes [14:08:12]NVStorageSaveData done [14:08:12]OFDSenderStorePacket done [14:08:12]KKMCreateOFDPacket done [14:08:12]NVStorageSaveData kkm_last_timestamp [14:08:12]File name is /storage/kkm_last_timestamp [14:08:12]Write 4 bytes [14:08:12]NVStorageSaveData done [14:08:12]ExternCall_PrintAddStr [14:08:12]wPrintStart [14:08:12]Write to MH i2c: 01 00 00 40 3B 7B [14:08:12]Write i2c OK [14:08:12]MH_I2C_Read... [14:08:12]Read from MH i2c: 01 [14:08:12]MH_I2C_Read... [14:08:12]Read from MH i2c: 01 07 00 [14:08:12]MH_I2C_Read... [14:08:12]Read from MH i2c: 01 07 00 40 3B 00 00 00 00 00 FF 0F 90 [14:08:12]RasterBufferAndPrint [14:08:12]line Счет N : (1)706443 [14:08:12]line ИНН: 02508201610067 [14:08:12]line Контрольно-Кассовый Чек [14:08:12]line ПРОДАЖА [14:08:12]line ТРК (МРК, ГНК) : 11 [14:08:12]line Товар: 2710194210 [14:08:12]line ДТ(л)-К-4 [14:08:12]line 20.580 * 72.90 [14:08:12]line = 1500.28 [14:08:12]line НДС 12% НСП 1% [14:08:12]line > о реализуемом товаре [14:08:12]line ИТОГО: 1500.28 [14:08:12]line НСП 1% : 13.28 [14:08:12]line НДС 12% : 159.32 [14:08:12]line Наличными: 0.00 [14:08:12]line Безнал.: 1500.28 [14:08:12]line Место: АЗС № 62 "Партнер Нефть" [14:08:12]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [14:08:12]line СНО: Общий режим [14:08:12]line Чек 101 03.06.2024 14:08 [14:08:12]line Смена: 324 ФФД: 1.0 [14:08:12]line ЗНМ: 0300000181 [14:08:12]line РНМ: 0000000000098096 [14:08:12]line Версия ККМ: 001 [14:08:12]line Платежная система: АКБ Кыргызстан [14:08:12]line ФМ: 0000000000965400 [14:08:12]line ФД: 68355 [14:08:12]line ФПД: 124723922628756 [14:08:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T140816&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68355&fm=124723922628756&tin=02508201610067®Number=0000000000098096&sum=150028 [14:08:12]OFD Sender: Processing packet 68355 [packets to send 26, broken 25] [14:08:12]ProducePacketName [14:08:12]name=ofd_packets/00068355 [14:08:12]OFD Sender: To server: pG, [14:08:12]CommunicateWithHost lk.salyk.kg:30040 [14:08:12]ConnectInit lk.salyk.kg [14:08:12]written 0, free lines is 4095 [14:08:13]Connected sock=7 [14:08:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 74 35 08 01 EE AF 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 34 FF 03 08 00 03 64 50 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 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 3C 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0C 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 50 CE 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 03 0B 01 00 35 04 06 00 71 6F 8D 1A 70 94 EA CE 6E 90 54 3C E0 91 [14:08:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 09 5D 47 00 0E 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 03 0B 01 00 F4 03 04 00 4C 75 5D 66 B6 04 01 00 00 CD 35 8B D6 21 BC 5A 0A [14:08:13]CommunicateWithHost err = 0 [14:08:13]CheckOFDResponse [14:08:13]1017 (14) - 77093643461234 [14:08:13]1041 (16) - 0000000000965400 [14:08:13]1040 (4) - 68355 [14:08:13]1012 (4) - 03.06.2024 07:48 [14:08:13]1206 (1) - 0 [14:08:13]OFD Sender: Remove packet 68355 [14:08:13]ProducePacketName [14:08:13]name=ofd_packets/00068355 [14:08:13]NVStorageDeleteData [14:08:13]Write to MH i2c: 01 00 00 6A 3B A5 [14:08:13]Write i2c OK [14:08:13]MH_I2C_Read... [14:08:13]Read from MH i2c: 01 [14:08:13]MH_I2C_Read... [14:08:13]Read from MH i2c: 01 07 00 [14:08:13]MH_I2C_Read... [14:08:13]Read from MH i2c: 01 07 00 6A 3B 00 00 00 00 00 ED 0C A5 [14:08:13]RasterBufferAndPrint [14:08:13]line [14:08:13]line [14:08:13]line [14:08:13]line [14:08:13]line [14:08:13]written 0, free lines is 3314 [14:08:13]MH_Cut [14:08:13]Write to MH i2c: D1 01 00 71 3B 01 7E [14:08:13]Write i2c OK [14:08:13]MH_I2C_Read... [14:08:13]Read from MH i2c: D1 [14:08:13]MH_I2C_Read... [14:08:13]Read from MH i2c: D1 01 00 [14:08:13]MH_I2C_Read... [14:08:13]Read from MH i2c: D1 01 00 71 3B 00 7D [14:08:13]Write to MH i2c: 01 00 00 72 3B AD [14:08:13]Write i2c OK [14:08:13]MH_I2C_Read... [14:08:13]OFD Sender: No OFD packet to send [14:08:14]*** Cut start [14:08:14]*** Partial cut [14:08:14]*** CUTSNS_PIN = 1 [14:08:14]*** CUTSNS_PIN = 0 [14:08:14]*** Brake cut motor [14:08:14]Read from MH i2c: 01 [14:08:14]MH_I2C_Read... [14:08:14]*** Stop cut motor [14:08:14]*** Cut end [14:08:14]Read from MH i2c: 01 07 00 [14:08:14]MH_I2C_Read... [14:08:14]Read from MH i2c: 01 07 00 72 3B 00 00 00 00 00 FF 0F C2 [14:08:14]process_action close_receipt done [14:08:14]requested_data is exist [14:08:14]produce_requested_data [14:08:14]requested_item fm.sn is exist - process it [14:08:14]wFMCommunicate request_size=4 [14:08:14]MH_SAM_APDU [14:08:14]CAPDU: 80 11 00 00 [14:08:14]Write to MH i2c: E2 08 00 73 3B 80 11 00 00 00 00 00 00 28 [14:08:14]Write i2c OK [14:08:14]MH_I2C_Read... [14:08:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:08:14]Read from MH i2c: E2 [14:08:14]MH_I2C_Read... [14:08:14]Read from MH i2c: E2 17 00 [14:08:14]MH_I2C_Read... [14:08:14]Read from MH i2c: E2 17 00 73 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 73 [14:08:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:08:14]wFMCommunicate OK [14:08:14]requested_item fd.num is exist - process it [14:08:14]SAM_PROTO_GetFieldsCounters [14:08:14]wFMCommunicate request_size=4 [14:08:14]MH_SAM_APDU [14:08:14]CAPDU: 80 13 00 00 [14:08:14]Write to MH i2c: E2 08 00 74 3B 80 13 00 00 00 00 00 00 2B [14:08:14]Write i2c OK [14:08:14]MH_I2C_Read... [14:08:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:08:14]Read from MH i2c: E2 [14:08:14]MH_I2C_Read... [14:08:14]Read from MH i2c: E2 62 00 [14:08:14]MH_I2C_Read... [14:08:14]Read from MH i2c: E2 62 00 74 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 03 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 CE [14:08:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 03 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:08:14]wFMCommunicate OK [14:08:14]SAM_PROTO_GetFieldsCounters done [14:08:14]requested_item shift.num is exist - process it [14:08:14]requested_item shift.opened is exist - process it [14:08:14]req_shift_opened [14:08:14]FM_GetShiftState [14:08:14]SAM_PROTO_GetShiftState [14:08:14]wFMCommunicate request_size=4 [14:08:14]MH_SAM_APDU [14:08:14]CAPDU: 80 13 01 00 [14:08:14]Write to MH i2c: E2 08 00 75 3B 80 13 01 00 00 00 00 00 2D [14:08:14]Write i2c OK [14:08:14]MH_I2C_Read... [14:08:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:08:15]Read from MH i2c: E2 [14:08:15]MH_I2C_Read... [14:08:15]Read from MH i2c: E2 0E 00 [14:08:15]MH_I2C_Read... [14:08:15]Read from MH i2c: E2 0E 00 75 3B 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 08 [14:08:15]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [14:08:15]wFMCommunicate OK [14:08:15]SAM_PROTO_GetShiftState done [14:08:15]FM_GetShiftState done [14:08:15]req_shift_opened done [14:08:15]requested_item shift.open_date is exist - process it [14:08:15]req_shift_open_date [14:08:15]req_shift_open_date done [14:08:15]produce_requested_data done [14:08:15]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68355,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [14:08:15]process_action_free close_receipt [14:08:15]json_value_free [14:08:15]json_value_free done [14:08:15]process_json_proto returns [14:08:15]Send response to host [14:08:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68355,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [14:08:15]free response buf [14:08:15]execute_script done [14:08:15]execute_script returns [14:08:15]free content buf [14:08:15]Sock 6.Close socket [14:08:15]Sock 6.Thread stoped [14:08:18]OFD Sender: No OFD packet to send [14:08:19]accept exits with 5 [14:08:19]New connection [14:08:19]New thread 3066686820 created [14:08:19]Thread 3066543460 joined [14:08:19]Waiting for new connection... [14:08:19] Sock 5.Parse request [14:08:19]Sock 5.Check first char [14:08:19]Sock 5.First char is OK [14:08:19]request: POST /json_proto HTTP/1.0 [14:08:19]Method: POST [14:08:19]URL: /json_proto [14:08:19]Method is POST - this is cgi request [14:08:19]url: /json_proto [14:08:19]query_string will be loaded in cgi processing [14:08:19]execute_cgi json_proto POST (null) [14:08:19]execute_cgi path=json_proto method=POST [14:08:19]POST find Content-Length [14:08:19]Host: 172.17.36.132:8080 [14:08:19]Content-Length: 687 [14:08:19]Content-Type: application/json [14:08:19] [14:08:19]POST finish read [14:08:19]Found Content-Length = 687 [14:08:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706446", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 82.310, "sum" : 6000.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [14:08:19]execute_script... [14:08: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)706446", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 82.310, "sum" : 6000.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [14:08:19]POST & json_proto [14:08:19]process_json_proto [14:08:19]json parsed OK: [14:08:19]protocol is kg_v1.0 [14:08:19]action value=close_receipt [14:08:19]process_action close_receipt [14:08:19]cmd_close_receipt [14:08:19]MH_GetDate [14:08:19]Write to MH i2c: F0 00 00 76 3B A0 [14:08:19]Write i2c OK [14:08:19]MH_I2C_Read... [14:08:19]Read from MH i2c: F0 [14:08:19]MH_I2C_Read... [14:08:19]Read from MH i2c: F0 09 00 [14:08:19]MH_I2C_Read... [14:08:19]Read from MH i2c: F0 09 00 76 3B 00 58 CE 5D 66 B2 22 B0 64 7A [14:08:19]GetLastDocTimeStamp 1717423696 [14:08:19]current date 1717423704 [14:08:19]FM_GetShiftState [14:08:19]SAM_PROTO_GetShiftState [14:08:19]wFMCommunicate request_size=4 [14:08:19]MH_SAM_APDU [14:08:19]CAPDU: 80 13 01 00 [14:08:19]Write to MH i2c: E2 08 00 77 3B 80 13 01 00 00 00 00 00 2F [14:08:19]Write i2c OK [14:08:19]MH_I2C_Read... [14:08:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:08:19]Read from MH i2c: E2 [14:08:19]MH_I2C_Read... [14:08:19]Read from MH i2c: E2 0E 00 [14:08:19]MH_I2C_Read... [14:08:19]Read from MH i2c: E2 0E 00 77 3B 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 0A [14:08:19]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [14:08:19]wFMCommunicate OK [14:08:19]SAM_PROTO_GetShiftState done [14:08:19]FM_GetShiftState done [14:08:19]opened in 1717378033 [14:08:19]opened+sec_in_day 1717464433 [14:08:19]quantity*price = 600039 [14:08:19]sum+1 = 600041 [14:08:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 6000.00 Внесено: 6000.00 СДАЧА: 0.00 НСП 1% : 53.10 НДС 12% : 637.21 Наличными: 6000.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 102 03.06.2024 14:08 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68356 ФПД: 30356722120960 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T140824&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68356&fm=30356722120960&tin=02508201610067®Number=0000000000098096&sum=600000 [14:08:20]StoreToDocumentArchive [14:08:20]shift 324 fd 68356 [14:08:20]save to /storage/0324/doc_00068356 [14:08:20]save last doc name /storage/0324/doc_00068356 to /storage/kkm_last_doc_name [14:08:20]save OK [14:08:20]Clear old archive folders... [14:08:20]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:08:20]tlvbuf is 0023FFA0 [14:08:20]SAM_PROTO_ClearQueue [14:08:20]wFMCommunicate request_size=4 [14:08:20]MH_SAM_APDU [14:08:20]CAPDU: 80 09 00 00 [14:08:20]Write to MH i2c: E2 08 00 84 3B 80 09 00 00 00 00 00 00 31 [14:08:20]Write i2c OK [14:08:20]MH_I2C_Read... [14:08:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:08:20]Read from MH i2c: E2 [14:08:20]MH_I2C_Read... [14:08:20]Read from MH i2c: E2 03 00 [14:08:20]MH_I2C_Read... [14:08:20]Read from MH i2c: E2 03 00 84 3B 00 90 00 33 [14:08:20]RAPDU: 90 00 [14:08:20]wFMCommunicate OK [14:08:20]SAM_PROTO_ClearQueue done [14:08:20]KKMCreateOFDPacket [14:08:20]OFDProtocolAddRootSTLVToBuf [14:08:20]FM_MakeSignedData [14:08:20]FM_MakeSignedData [14:08:20]SAM_PROTO_SignData [14:08:20]wFMCommunicate request_size=4 [14:08:20]MH_SAM_APDU [14:08:20]CAPDU: 80 0D 01 02 [14:08:20]Write to MH i2c: E2 08 00 85 3B 80 0D 01 02 00 00 00 00 39 [14:08:20]Write i2c OK [14:08:20]MH_I2C_Read... [14:08:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:08:20]Read from MH i2c: E2 [14:08:20]MH_I2C_Read... [14:08:20]Read from MH i2c: E2 03 00 [14:08:20]MH_I2C_Read... [14:08:20]Read from MH i2c: E2 03 00 85 3B 00 90 00 34 [14:08:20]RAPDU: 90 00 [14:08:20]wFMCommunicate OK [14:08:20]wFMCommunicate request_size=255 [14:08:20]MH_SAM_APDU [14:08: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 34 FF 03 08 00 03 86 41 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 E8 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 E9 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 66 00 00 00 F4 03 04 00 58 CE 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 04 0B 01 00 35 04 06 00 [14:08:20]Write to MH i2c: E2 02 01 86 3B 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 34 FF 03 08 00 03 86 41 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 E8 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 E9 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 66 00 00 00 F4 03 04 00 58 CE 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 04 0B 01 00 35 04 06 00 00 00 29 [14:08:20]Write i2c OK [14:08:20]MH_I2C_Read... [14:08:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:08:20]Read from MH i2c: E2 [14:08:20]MH_I2C_Read... [14:08:20]Read from MH i2c: E2 03 00 [14:08:20]MH_I2C_Read... [14:08:20]Read from MH i2c: E2 03 00 86 3B 00 90 00 35 [14:08:20]RAPDU: 90 00 [14:08:20]wFMCommunicate OK [14:08:20]wFMCommunicate request_size=11 [14:08:20]MH_SAM_APDU [14:08:20]CAPDU: 80 0D 02 02 06 1B 9B F9 A3 79 00 [14:08:20]Write to MH i2c: E2 0E 00 87 3B 80 0D 02 02 06 00 1B 9B F9 A3 79 00 00 00 13 [14:08:20]Write i2c OK [14:08:20]MH_I2C_Read... [14:08:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:08:20]Read from MH i2c: E2 [14:08:20]MH_I2C_Read... [14:08:20]Read from MH i2c: E2 03 00 [14:08:20]MH_I2C_Read... [14:08:20]Read from MH i2c: E2 03 00 87 3B 00 90 00 36 [14:08:20]RAPDU: 90 00 [14:08:20]wFMCommunicate OK [14:08:20]wFMCommunicate request_size=4 [14:08:20]MH_SAM_APDU [14:08:20]CAPDU: 80 0D 03 02 [14:08:20]Write to MH i2c: E2 08 00 88 3B 80 0D 03 02 00 00 00 00 3E [14:08:20]Write i2c OK [14:08:20]MH_I2C_Read... [14:08:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:08:20]Read from MH i2c: E2 [14:08:20]MH_I2C_Read... [14:08:20]Read from MH i2c: E2 0B 00 [14:08:20]MH_I2C_Read... [14:08:20]Read from MH i2c: E2 0B 00 88 3B 00 76 4F 87 02 E8 A8 78 18 90 00 AD [14:08:20]RAPDU: 76 4F 87 02 E8 A8 78 18 90 00 [14:08:20]wFMCommunicate OK [14:08:20]SAM_PROTO_SignData done [14:08:20]FM_MakeSignedData done [14:08:20]CreateOFDProtocolMessage [14:08:20]wFMCommunicate request_size=4 [14:08:20]MH_SAM_APDU [14:08:20]CAPDU: 80 11 00 00 [14:08:20]Write to MH i2c: E2 08 00 89 3B 80 11 00 00 00 00 00 00 3E [14:08:20]Write i2c OK [14:08:20]MH_I2C_Read... [14:08:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:08:20]Read from MH i2c: E2 [14:08:20]MH_I2C_Read... [14:08:20]Read from MH i2c: E2 17 00 [14:08:20]MH_I2C_Read... [14:08:20]Read from MH i2c: E2 17 00 89 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 89 [14:08:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:08:20]wFMCommunicate OK [14:08:20]CreateOFDProtocolMessage done [14:08:20]OFDSenderStorePacket 68356 [14:08:20]StoreOFDPacket docnum=68356 [14:08:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 9A F0 08 01 0B AF 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 34 FF 03 08 00 03 86 41 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 E8 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 E9 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 66 00 00 00 F4 03 04 00 58 CE 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 04 0B 01 00 35 04 06 00 1B 9B F9 A3 79 00 76 4F 87 02 E8 A8 78 18 [14:08:20]CheckFolder [14:08:20]dirname=/storage/ofd_packets [14:08:20]CheckFolder done [14:08:20]ProducePacketName [14:08:20]name=ofd_packets/00068356 [14:08:20]NVStorageSaveData ofd_packets/00068356 [14:08:20]File name is /storage/ofd_packets/00068356 [14:08:20]Write 302 bytes [14:08:20]NVStorageSaveData done [14:08:20]OFDSenderStorePacket done [14:08:20]KKMCreateOFDPacket done [14:08:20]NVStorageSaveData kkm_last_timestamp [14:08:20]File name is /storage/kkm_last_timestamp [14:08:20]Write 4 bytes [14:08:20]NVStorageSaveData done [14:08:20]ExternCall_PrintAddStr [14:08:20]wPrintStart [14:08:20]Write to MH i2c: 01 00 00 8A 3B C5 [14:08:20]Write i2c OK [14:08:20]MH_I2C_Read... [14:08:20]Read from MH i2c: 01 [14:08:20]MH_I2C_Read... [14:08:20]Read from MH i2c: 01 07 00 [14:08:20]MH_I2C_Read... [14:08:20]Read from MH i2c: 01 07 00 8A 3B 00 00 00 00 00 FF 0F DA [14:08:20]RasterBufferAndPrint [14:08:20]line Счет N : (1)706446 [14:08:20]line ИНН: 02508201610067 [14:08:20]line Контрольно-Кассовый Чек [14:08:20]line ПРОДАЖА [14:08:20]line ТРК (МРК, ГНК) : 51 [14:08:20]line Товар: 2710194210 [14:08:20]line ДТ(л)-К-4 [14:08:20]line 82.310 * 72.90 [14:08:20]line = 6000.40 [14:08:20]line НДС 12% НСП 1% [14:08:20]line > о реализуемом товаре [14:08:20]line ОКРУГЛЕНИЕ: -0.40 [14:08:20]line ИТОГО: 6000.00 [14:08:20]line Внесено: 6000.00 [14:08:20]line СДАЧА: 0.00 [14:08:20]line НСП 1% : 53.10 [14:08:20]line НДС 12% : 637.21 [14:08:20]line Наличными: 6000.00 [14:08:20]line Безнал.: 0.00 [14:08:20]line Место: АЗС № 62 "Партнер Нефть" [14:08:20]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [14:08:20]line СНО: Общий режим [14:08:20]line Чек 102 03.06.2024 14:08 [14:08:20]line Смена: 324 ФФД: 1.0 [14:08:20]line ЗНМ: 0300000181 [14:08:20]line РНМ: 0000000000098096 [14:08:20]line Версия ККМ: 001 [14:08:20]line ФМ: 0000000000965400 [14:08:20]line ФД: 68356 [14:08:20]line ФПД: 30356722120960 [14:08:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T140824&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68356&fm=30356722120960&tin=02508201610067®Number=0000000000098096&sum=600000 [14:08:20]OFD Sender: Processing packet 68356 [packets to send 26, broken 25] [14:08:20]ProducePacketName [14:08:21]name=ofd_packets/00068356 [14:08:21]OFD Sender: To server: pG, [14:08:21]CommunicateWithHost lk.salyk.kg:30040 [14:08:21]ConnectInit lk.salyk.kg [14:08:21]written 0, free lines is 4095 [14:08:21]Connected sock=7 [14:08:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 9A F0 08 01 0B AF 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 34 FF 03 08 00 03 86 41 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 E8 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 E9 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 66 00 00 00 F4 03 04 00 58 CE 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 04 0B 01 00 35 04 06 00 1B 9B F9 A3 79 00 76 4F 87 02 E8 A8 78 18 [14:08:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 AC A7 47 00 0B C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 04 0B 01 00 F4 03 04 00 54 75 5D 66 B6 04 01 00 00 DF 15 BE 9A 2B E9 D5 28 [14:08:21]CommunicateWithHost err = 0 [14:08:21]CheckOFDResponse [14:08:21]1017 (14) - 77093643461234 [14:08:21]1041 (16) - 0000000000965400 [14:08:21]1040 (4) - 68356 [14:08:21]1012 (4) - 03.06.2024 07:48 [14:08:21]1206 (1) - 0 [14:08:21]OFD Sender: Remove packet 68356 [14:08:21]ProducePacketName [14:08:21]name=ofd_packets/00068356 [14:08:21]NVStorageDeleteData [14:08:21]Write to MH i2c: 01 00 00 B5 3B F0 [14:08:21]Write i2c OK [14:08:21]MH_I2C_Read... [14:08:21]Read from MH i2c: 01 [14:08:21]MH_I2C_Read... [14:08:21]Read from MH i2c: 01 07 00 [14:08:21]MH_I2C_Read... [14:08:21]Read from MH i2c: 01 07 00 B5 3B 00 00 00 00 00 E8 0C EB [14:08:21]RasterBufferAndPrint [14:08:21]line [14:08:21]line [14:08:21]line [14:08:21]line [14:08:21]line [14:08:21]written 0, free lines is 3316 [14:08:21]MH_Cut [14:08:21]Write to MH i2c: D1 01 00 BC 3B 01 C9 [14:08:21]Write i2c OK [14:08:21]MH_I2C_Read... [14:08:21]Read from MH i2c: D1 [14:08:21]MH_I2C_Read... [14:08:21]Read from MH i2c: D1 01 00 [14:08:21]MH_I2C_Read... [14:08:21]Read from MH i2c: D1 01 00 BC 3B 00 C8 [14:08:21]Write to MH i2c: 01 00 00 BD 3B F8 [14:08:21]Write i2c OK [14:08:21]MH_I2C_Read... [14:08:22]OFD Sender: No OFD packet to send [14:08:22]*** Cut start [14:08:22]*** Partial cut [14:08:22]*** CUTSNS_PIN = 1 [14:08:22]*** CUTSNS_PIN = 0 [14:08:22]*** Brake cut motor [14:08:23]Read from MH i2c: 01 [14:08:23]MH_I2C_Read... [14:08:23]*** Stop cut motor [14:08:23]*** Cut end [14:08:23]Read from MH i2c: 01 07 00 [14:08:23]MH_I2C_Read... [14:08:23]Read from MH i2c: 01 07 00 BD 3B 00 00 00 00 00 FF 0F 0D [14:08:23]process_action close_receipt done [14:08:23]requested_data is exist [14:08:23]produce_requested_data [14:08:23]requested_item fm.sn is exist - process it [14:08:23]wFMCommunicate request_size=4 [14:08:23]MH_SAM_APDU [14:08:23]CAPDU: 80 11 00 00 [14:08:23]Write to MH i2c: E2 08 00 BE 3B 80 11 00 00 00 00 00 00 73 [14:08:23]Write i2c OK [14:08:23]MH_I2C_Read... [14:08:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:08:23]Read from MH i2c: E2 [14:08:23]MH_I2C_Read... [14:08:23]Read from MH i2c: E2 17 00 [14:08:23]MH_I2C_Read... [14:08:23]Read from MH i2c: E2 17 00 BE 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 BE [14:08:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:08:23]wFMCommunicate OK [14:08:23]requested_item fd.num is exist - process it [14:08:23]SAM_PROTO_GetFieldsCounters [14:08:23]wFMCommunicate request_size=4 [14:08:23]MH_SAM_APDU [14:08:23]CAPDU: 80 13 00 00 [14:08:23]Write to MH i2c: E2 08 00 BF 3B 80 13 00 00 00 00 00 00 76 [14:08:23]Write i2c OK [14:08:23]MH_I2C_Read... [14:08:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:08:23]Read from MH i2c: E2 [14:08:23]MH_I2C_Read... [14:08:23]Read from MH i2c: E2 62 00 [14:08:23]MH_I2C_Read... [14:08:23]Read from MH i2c: E2 62 00 BF 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 04 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 1D [14:08:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 04 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:08:23]wFMCommunicate OK [14:08:23]SAM_PROTO_GetFieldsCounters done [14:08:23]requested_item shift.num is exist - process it [14:08:23]requested_item shift.opened is exist - process it [14:08:23]req_shift_opened [14:08:23]FM_GetShiftState [14:08:23]SAM_PROTO_GetShiftState [14:08:23]wFMCommunicate request_size=4 [14:08:23]MH_SAM_APDU [14:08:23]CAPDU: 80 13 01 00 [14:08:23]Write to MH i2c: E2 08 00 C0 3B 80 13 01 00 00 00 00 00 78 [14:08:23]Write i2c OK [14:08:23]MH_I2C_Read... [14:08:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:08:23]Read from MH i2c: E2 [14:08:23]MH_I2C_Read... [14:08:23]Read from MH i2c: E2 0E 00 [14:08:23]MH_I2C_Read... [14:08:23]Read from MH i2c: E2 0E 00 C0 3B 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 53 [14:08:23]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [14:08:23]wFMCommunicate OK [14:08:23]SAM_PROTO_GetShiftState done [14:08:23]FM_GetShiftState done [14:08:23]req_shift_opened done [14:08:23]requested_item shift.open_date is exist - process it [14:08:23]req_shift_open_date [14:08:23]req_shift_open_date done [14:08:23]produce_requested_data done [14:08:23]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68356,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [14:08:23]process_action_free close_receipt [14:08:23]json_value_free [14:08:23]json_value_free done [14:08:23]process_json_proto returns [14:08:23]Send response to host [14:08:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68356,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [14:08:23]free response buf [14:08:23]execute_script done [14:08:23]execute_script returns [14:08:23]free content buf [14:08:23]Sock 5.Close socket [14:08:23]Sock 5.Thread stoped [14:08:25]accept exits with 6 [14:08:25]New connection [14:08:25]New thread 3066543460 created [14:08:25]Thread 3066686820 joined [14:08:25]Waiting for new connection... [14:08:25] Sock 6.Parse request [14:08:25]Sock 6.Check first char [14:08:25]Sock 6.First char is OK [14:08:25]request: POST /json_proto HTTP/1.0 [14:08:25]Method: POST [14:08:25]URL: /json_proto [14:08:25]Method is POST - this is cgi request [14:08:25]url: /json_proto [14:08:25]query_string will be loaded in cgi processing [14:08:25]execute_cgi json_proto POST (null) [14:08:25]execute_cgi path=json_proto method=POST [14:08:25]POST find Content-Length [14:08:25]Host: 172.17.36.132:8080 [14:08:25]Content-Length: 743 [14:08:25]Content-Type: application/json [14:08:25] [14:08:25]POST finish read [14:08:25]Found Content-Length = 743 [14:08:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 68356, "base_FM": "0000000000965400", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706446", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 82.310, "sum" : 6000.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [14:08:25]execute_script... [14:08:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 68356, "base_FM": "0000000000965400", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706446", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 82.310, "sum" : 6000.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [14:08:25]POST & json_proto [14:08:25]process_json_proto [14:08:25]json parsed OK: [14:08:25]protocol is kg_v1.0 [14:08:25]action value=close_receipt [14:08:25]process_action close_receipt [14:08:25]cmd_close_receipt [14:08:25]MH_GetDate [14:08:25]Write to MH i2c: F0 00 00 C1 3B EB [14:08:25]Write i2c OK [14:08:25]MH_I2C_Read... [14:08:25]Read from MH i2c: F0 [14:08:25]MH_I2C_Read... [14:08:25]Read from MH i2c: F0 09 00 [14:08:25]MH_I2C_Read... [14:08:25]Read from MH i2c: F0 09 00 C1 3B 00 5E CE 5D 66 B2 22 B0 64 CB [14:08:25]GetLastDocTimeStamp 1717423704 [14:08:25]current date 1717423710 [14:08:25]FM_GetShiftState [14:08:25]SAM_PROTO_GetShiftState [14:08:25]wFMCommunicate request_size=4 [14:08:25]MH_SAM_APDU [14:08:25]CAPDU: 80 13 01 00 [14:08:25]Write to MH i2c: E2 08 00 C2 3B 80 13 01 00 00 00 00 00 7A [14:08:25]Write i2c OK [14:08:25]MH_I2C_Read... [14:08:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:08:25]Read from MH i2c: E2 [14:08:25]MH_I2C_Read... [14:08:25]Read from MH i2c: E2 0E 00 [14:08:25]MH_I2C_Read... [14:08:25]Read from MH i2c: E2 0E 00 C2 3B 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 55 [14:08:25]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [14:08:25]wFMCommunicate OK [14:08:25]SAM_PROTO_GetShiftState done [14:08:25]FM_GetShiftState done [14:08:25]opened in 1717378033 [14:08:25]opened+sec_in_day 1717464433 [14:08:25]quantity*price = 600039 [14:08:25]sum+1 = 600041 [14:08:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 6000.00 НСП 1% : 53.10 НДС 12% : 637.21 Наличными: 6000.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 103 03.06.2024 14:08 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФД осн.: 68356 ФМ осн.: 0000000000965400 ФМ: 0000000000965400 ФД: 68357 ФПД: 233107056020209 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T140830&type=2&operation_type=1&fn_number=0000000000965400&fd_number=68357&fm=233107056020209&tin=02508201610067®Number=0000000000098096&sum=600000 [14:08:26]StoreToDocumentArchive [14:08:26]shift 324 fd 68357 [14:08:26]save to /storage/0324/doc_00068357 [14:08:26]save last doc name /storage/0324/doc_00068357 to /storage/kkm_last_doc_name [14:08:26]save OK [14:08:26]Clear old archive folders... [14:08:26]ProcessDocumentItem done err = 0, tmpTLVsize=280 [14:08:26]tlvbuf is B6E67090 [14:08:26]SAM_PROTO_ClearQueue [14:08:26]wFMCommunicate request_size=4 [14:08:26]MH_SAM_APDU [14:08:26]CAPDU: 80 09 00 00 [14:08:26]Write to MH i2c: E2 08 00 D1 3B 80 09 00 00 00 00 00 00 7E [14:08:26]Write i2c OK [14:08:26]MH_I2C_Read... [14:08:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:08:26]Read from MH i2c: E2 [14:08:26]MH_I2C_Read... [14:08:26]Read from MH i2c: E2 03 00 [14:08:26]MH_I2C_Read... [14:08:26]Read from MH i2c: E2 03 00 D1 3B 00 90 00 80 [14:08:26]RAPDU: 90 00 [14:08:26]wFMCommunicate OK [14:08:26]SAM_PROTO_ClearQueue done [14:08:26]KKMCreateOFDPacket [14:08:26]OFDProtocolAddRootSTLVToBuf [14:08:26]FM_MakeSignedData [14:08:26]FM_MakeSignedData [14:08:26]SAM_PROTO_SignData [14:08:26]wFMCommunicate request_size=4 [14:08:26]MH_SAM_APDU [14:08:26]CAPDU: 80 0D 01 02 [14:08:26]Write to MH i2c: E2 08 00 D2 3B 80 0D 01 02 00 00 00 00 86 [14:08:26]Write i2c OK [14:08:26]MH_I2C_Read... [14:08:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:08:26]Read from MH i2c: E2 [14:08:26]MH_I2C_Read... [14:08:26]Read from MH i2c: E2 03 00 [14:08:26]MH_I2C_Read... [14:08:26]Read from MH i2c: E2 03 00 D2 3B 00 90 00 81 [14:08:26]RAPDU: 90 00 [14:08:26]wFMCommunicate OK [14:08:26]wFMCommunicate request_size=255 [14:08:26]MH_SAM_APDU [14:08:26]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 02 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 34 FF 03 08 00 03 86 41 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 E8 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 E9 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 67 00 00 00 F4 03 04 00 5E CE 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 27 04 04 00 04 0B 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 11 04 10 00 [14:08:26]Write to MH i2c: E2 02 01 D3 3B 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 02 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 34 FF 03 08 00 03 86 41 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 E8 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 E9 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 67 00 00 00 F4 03 04 00 5E CE 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 27 04 04 00 04 0B 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 11 04 10 00 00 00 AF [14:08:26]Write i2c OK [14:08:26]MH_I2C_Read... [14:08:27]OFD Sender: No OFD packet to send [14:08:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:08:27]Read from MH i2c: E2 [14:08:27]MH_I2C_Read... [14:08:27]Read from MH i2c: E2 03 00 [14:08:27]MH_I2C_Read... [14:08:27]Read from MH i2c: E2 03 00 D3 3B 00 90 00 82 [14:08:27]RAPDU: 90 00 [14:08:27]wFMCommunicate OK [14:08:27]wFMCommunicate request_size=39 [14:08:27]MH_SAM_APDU [14:08:27]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 05 0B 01 00 35 04 06 00 D4 02 77 44 CA F1 [14:08:27]Write to MH i2c: E2 2A 00 D4 3B 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 05 0B 01 00 35 04 06 00 D4 02 77 44 CA F1 00 00 99 [14:08:27]Write i2c OK [14:08:27]MH_I2C_Read... [14:08:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:08:27]Read from MH i2c: E2 [14:08:27]MH_I2C_Read... [14:08:27]Read from MH i2c: E2 03 00 [14:08:27]MH_I2C_Read... [14:08:27]Read from MH i2c: E2 03 00 D4 3B 00 90 00 83 [14:08:27]RAPDU: 90 00 [14:08:27]wFMCommunicate OK [14:08:27]wFMCommunicate request_size=4 [14:08:27]MH_SAM_APDU [14:08:27]CAPDU: 80 0D 03 02 [14:08:27]Write to MH i2c: E2 08 00 D5 3B 80 0D 03 02 00 00 00 00 8B [14:08:27]Write i2c OK [14:08:27]MH_I2C_Read... [14:08:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:08:27]Read from MH i2c: E2 [14:08:27]MH_I2C_Read... [14:08:27]Read from MH i2c: E2 0B 00 [14:08:27]MH_I2C_Read... [14:08:27]Read from MH i2c: E2 0B 00 D5 3B 00 4C 80 14 88 5F 25 2F B3 90 00 5A [14:08:27]RAPDU: 4C 80 14 88 5F 25 2F B3 90 00 [14:08:27]wFMCommunicate OK [14:08:27]SAM_PROTO_SignData done [14:08:27]FM_MakeSignedData done [14:08:27]CreateOFDProtocolMessage [14:08:27]wFMCommunicate request_size=4 [14:08:27]MH_SAM_APDU [14:08:27]CAPDU: 80 11 00 00 [14:08:27]Write to MH i2c: E2 08 00 D6 3B 80 11 00 00 00 00 00 00 8B [14:08:27]Write i2c OK [14:08:27]MH_I2C_Read... [14:08:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:08:27]Read from MH i2c: E2 [14:08:27]MH_I2C_Read... [14:08:27]Read from MH i2c: E2 17 00 [14:08:27]MH_I2C_Read... [14:08:27]Read from MH i2c: E2 17 00 D6 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 D6 [14:08:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:08:27]wFMCommunicate OK [14:08:27]CreateOFDProtocolMessage done [14:08:27]OFDSenderStorePacket 68357 [14:08:27]StoreOFDPacket docnum=68357 [14:08:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 2C 01 00 00 0C 4D 24 01 A2 C1 5A 03 01 00 03 00 18 01 1E 04 01 00 02 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 34 FF 03 08 00 03 86 41 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 E8 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 E9 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 67 00 00 00 F4 03 04 00 5E CE 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 27 04 04 00 04 0B 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 05 0B 01 00 35 04 06 00 D4 02 77 44 CA F1 4C 80 14 88 5F 25 2F B3 [14:08:27]CheckFolder [14:08:27]dirname=/storage/ofd_packets [14:08:27]CheckFolder done [14:08:27]ProducePacketName [14:08:27]name=ofd_packets/00068357 [14:08:27]NVStorageSaveData ofd_packets/00068357 [14:08:27]File name is /storage/ofd_packets/00068357 [14:08:27]Write 330 bytes [14:08:27]NVStorageSaveData done [14:08:27]OFDSenderStorePacket done [14:08:27]KKMCreateOFDPacket done [14:08:27]NVStorageSaveData kkm_last_timestamp [14:08:27]File name is /storage/kkm_last_timestamp [14:08:27]Write 4 bytes [14:08:27]NVStorageSaveData done [14:08:27]ExternCall_PrintAddStr [14:08:27]wPrintStart [14:08:27]Write to MH i2c: 01 00 00 D7 3B 12 [14:08:27]Write i2c OK [14:08:27]MH_I2C_Read... [14:08:27]Read from MH i2c: 01 [14:08:27]MH_I2C_Read... [14:08:27]Read from MH i2c: 01 07 00 [14:08:27]MH_I2C_Read... [14:08:27]Read from MH i2c: 01 07 00 D7 3B 00 00 00 00 00 FF 0F 27 [14:08:27]RasterBufferAndPrint [14:08:27]line Счет N : (1)706446 [14:08:27]line ИНН: 02508201610067 [14:08:27]line Контрольно-Кассовый Чек [14:08:27]line ВОЗВРАТ ПРОДАЖИ [14:08:27]line ТРК (МРК, ГНК) : 51 [14:08:27]line Товар: 2710194210 [14:08:27]line ДТ(л)-К-4 [14:08:27]line 82.310 * 72.90 [14:08:27]line = 6000.40 [14:08:27]line НДС 12% НСП 1% [14:08:27]line > о реализуемом товаре [14:08:27]line ОКРУГЛЕНИЕ: -0.40 [14:08:27]OFD Sender: Processing packet 68357 [packets to send 26, broken 25] [14:08:27]ProducePacketName [14:08:27]name=ofd_packets/00068357 [14:08:27]OFD Sender: To server: pG, [14:08:27]CommunicateWithHost lk.salyk.kg:30040 [14:08:27]ConnectInit lk.salyk.kg [14:08:27]line ИТОГО: 6000.00 [14:08:27]line НСП 1% : 53.10 [14:08:27]line НДС 12% : 637.21 [14:08:27]line Наличными: 6000.00 [14:08:27]line Безнал.: 0.00 [14:08:27]line Место: АЗС № 62 "Партнер Нефть" [14:08:27]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [14:08:27]line СНО: Общий режим [14:08:27]line Чек 103 03.06.2024 14:08 [14:08:27]line Смена: 324 ФФД: 1.0 [14:08:27]line ЗНМ: 0300000181 [14:08:27]line РНМ: 0000000000098096 [14:08:27]line Версия ККМ: 001 [14:08:27]line ФД осн.: 68356 [14:08:27]line ФМ осн.: 0000000000965400 [14:08:27]line ФМ: 0000000000965400 [14:08:27]line ФД: 68357 [14:08:27]line ФПД: 233107056020209 [14:08:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T140830&type=2&operation_type=1&fn_number=0000000000965400&fd_number=68357&fm=233107056020209&tin=02508201610067®Number=0000000000098096&sum=600000 [14:08:27]written 0, free lines is 4095 [14:08:27]Connected sock=7 [14:08:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 2C 01 00 00 0C 4D 24 01 A2 C1 5A 03 01 00 03 00 18 01 1E 04 01 00 02 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 34 FF 03 08 00 03 86 41 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 E8 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 E9 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 67 00 00 00 F4 03 04 00 5E CE 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 27 04 04 00 04 0B 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 05 0B 01 00 35 04 06 00 D4 02 77 44 CA F1 4C 80 14 88 5F 25 2F B3 [14:08:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 C0 26 47 00 12 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 05 0B 01 00 F4 03 04 00 5A 75 5D 66 B6 04 01 00 00 8A 04 BC 3C 1C DD E4 1E [14:08:27]CommunicateWithHost err = 0 [14:08:27]CheckOFDResponse [14:08:27]1017 (14) - 77093643461234 [14:08:27]1041 (16) - 0000000000965400 [14:08:27]1040 (4) - 68357 [14:08:27]1012 (4) - 03.06.2024 07:48 [14:08:27]1206 (1) - 0 [14:08:27]OFD Sender: Remove packet 68357 [14:08:27]ProducePacketName [14:08:27]name=ofd_packets/00068357 [14:08:27]NVStorageDeleteData [14:08:27]Write to MH i2c: 01 00 00 02 3C 3E [14:08:27]Write i2c OK [14:08:27]MH_I2C_Read... [14:08:27]Read from MH i2c: 01 [14:08:27]MH_I2C_Read... [14:08:27]Read from MH i2c: 01 07 00 [14:08:27]MH_I2C_Read... [14:08:27]Read from MH i2c: 01 07 00 02 3C 00 00 00 00 00 EF 0C 40 [14:08:27]RasterBufferAndPrint [14:08:27]line [14:08:27]line [14:08:27]line [14:08:27]line [14:08:27]line [14:08:27]written 0, free lines is 3330 [14:08:27]MH_Cut [14:08:27]Write to MH i2c: D1 01 00 09 3C 01 17 [14:08:27]Write i2c OK [14:08:27]MH_I2C_Read... [14:08:27]Read from MH i2c: D1 [14:08:27]MH_I2C_Read... [14:08:27]Read from MH i2c: D1 01 00 [14:08:27]MH_I2C_Read... [14:08:27]Read from MH i2c: D1 01 00 09 3C 00 16 [14:08:27]Write to MH i2c: 01 00 00 0A 3C 46 [14:08:27]Write i2c OK [14:08:27]MH_I2C_Read... [14:08:28]OFD Sender: No OFD packet to send [14:08:28]*** Cut start [14:08:28]*** Partial cut [14:08:28]*** CUTSNS_PIN = 1 [14:08:28]*** CUTSNS_PIN = 0 [14:08:28]*** Brake cut motor [14:08:29]Read from MH i2c: 01 [14:08:29]MH_I2C_Read... [14:08:29]*** Stop cut motor [14:08:29]*** Cut end [14:08:29]Read from MH i2c: 01 07 00 [14:08:29]MH_I2C_Read... [14:08:29]Read from MH i2c: 01 07 00 0A 3C 00 00 00 00 00 FF 0F 5B [14:08:29]process_action close_receipt done [14:08:29]requested_data is exist [14:08:29]produce_requested_data [14:08:29]requested_item fm.sn is exist - process it [14:08:29]wFMCommunicate request_size=4 [14:08:29]MH_SAM_APDU [14:08:29]CAPDU: 80 11 00 00 [14:08:29]Write to MH i2c: E2 08 00 0B 3C 80 11 00 00 00 00 00 00 C1 [14:08:29]Write i2c OK [14:08:29]MH_I2C_Read... [14:08:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:08:29]Read from MH i2c: E2 [14:08:29]MH_I2C_Read... [14:08:29]Read from MH i2c: E2 17 00 [14:08:29]MH_I2C_Read... [14:08:29]Read from MH i2c: E2 17 00 0B 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 0C [14:08:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:08:29]wFMCommunicate OK [14:08:29]requested_item fd.num is exist - process it [14:08:29]SAM_PROTO_GetFieldsCounters [14:08:29]wFMCommunicate request_size=4 [14:08:29]MH_SAM_APDU [14:08:29]CAPDU: 80 13 00 00 [14:08:29]Write to MH i2c: E2 08 00 0C 3C 80 13 00 00 00 00 00 00 C4 [14:08:29]Write i2c OK [14:08:29]MH_I2C_Read... [14:08:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:08:29]Read from MH i2c: E2 [14:08:29]MH_I2C_Read... [14:08:29]Read from MH i2c: E2 62 00 [14:08:29]MH_I2C_Read... [14:08:29]Read from MH i2c: E2 62 00 0C 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 05 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 6F [14:08:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 05 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:08:29]wFMCommunicate OK [14:08:29]SAM_PROTO_GetFieldsCounters done [14:08:29]requested_item shift.num is exist - process it [14:08:29]requested_item shift.opened is exist - process it [14:08:29]req_shift_opened [14:08:29]FM_GetShiftState [14:08:29]SAM_PROTO_GetShiftState [14:08:29]wFMCommunicate request_size=4 [14:08:29]MH_SAM_APDU [14:08:29]CAPDU: 80 13 01 00 [14:08:29]Write to MH i2c: E2 08 00 0D 3C 80 13 01 00 00 00 00 00 C6 [14:08:29]Write i2c OK [14:08:29]MH_I2C_Read... [14:08:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:08:29]Read from MH i2c: E2 [14:08:29]MH_I2C_Read... [14:08:29]Read from MH i2c: E2 0E 00 [14:08:29]MH_I2C_Read... [14:08:29]Read from MH i2c: E2 0E 00 0D 3C 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 A1 [14:08:29]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [14:08:29]wFMCommunicate OK [14:08:29]SAM_PROTO_GetShiftState done [14:08:29]FM_GetShiftState done [14:08:29]req_shift_opened done [14:08:29]requested_item shift.open_date is exist - process it [14:08:29]req_shift_open_date [14:08:29]req_shift_open_date done [14:08:29]produce_requested_data done [14:08:29]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68357,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [14:08:29]process_action_free close_receipt [14:08:29]json_value_free [14:08:29]json_value_free done [14:08:29]process_json_proto returns [14:08:29]Send response to host [14:08:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68357,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [14:08:29]free response buf [14:08:29]execute_script done [14:08:29]execute_script returns [14:08:29]free content buf [14:08:29]Sock 6.Close socket [14:08:29]Sock 6.Thread stoped [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:52]accept exits with 5 [14:08:52]New connection [14:08:52]New thread 3066686820 created [14:08:52]Thread 3066543460 joined [14:08:52]Waiting for new connection... [14:08:52] Sock 5.Parse request [14:08:52]Sock 5.Check first char [14:08:52]Sock 5.First char is OK [14:08:52]request: POST /json_proto HTTP/1.0 [14:08:52]Method: POST [14:08:52]URL: /json_proto [14:08:52]Method is POST - this is cgi request [14:08:52]url: /json_proto [14:08:52]query_string will be loaded in cgi processing [14:08:52]execute_cgi json_proto POST (null) [14:08:52]execute_cgi path=json_proto method=POST [14:08:52]POST find Content-Length [14:08:52]Host: 172.17.36.132:8080 [14:08:52]Content-Length: 1182 [14:08:52]Content-Type: application/json [14:08:52] [14:08:52]POST finish read [14:08:52]Found Content-Length = 1182 [14:08:52]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706444\u000A03.06.2024 13:46\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 63\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 10.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 669.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A91351\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:08:52]execute_script... [14:08:52]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706444\u000A03.06.2024 13:46\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 63\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 10.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 669.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A91351\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:08:52]POST & json_proto [14:08:52]process_json_proto [14:08:52]json parsed OK: [14:08:52]protocol is kg_v1.0 [14:08:52]action value=print_text [14:08:52]process_action print_text [14:08:52]cmd_print_text [14:08:52]ExternCall_PrintAddStr [14:08:52]wPrintStart [14:08:52]Write to MH i2c: 01 00 00 0E 3C 4A [14:08:52]Write i2c OK [14:08:52]MH_I2C_Read... [14:08:52]Read from MH i2c: 01 [14:08:52]MH_I2C_Read... [14:08:52]Read from MH i2c: 01 07 00 [14:08:52]MH_I2C_Read... [14:08:52]Read from MH i2c: 01 07 00 0E 3C 00 00 00 00 00 FF 0F 5F [14:08:52]RasterBufferAndPrint [14:08:52]line *****ТОВАРНЫЙ ЧЕК***** [14:08:52]line АЗС 62 [14:08:52]line Партнер нефть [14:08:52]line 02508201610067 [14:08:52]line Кассир : Балаев А. [14:08:52]line Счет N : (1)706444 [14:08:52]line 03.06.2024 13:46 [14:08:52]line ПРОДАЖА [14:08:52]line ТРК (МРК, ГНК): 63 [14:08:52]line Вид ГСМ : 2710124130 [14:08:52]line Аи-92-К-4 [14:08:52]line 10.000 x 66.90 [14:08:52]line ИТОГ: 669.00 [14:08:52]line Тип оплаты: Талоны: Топливная Карта [14:08:52]line 91351 [14:08:52]line ______________________ [14:08:52]line (подпись) [14:08:52]written 0, free lines is 4095 [14:08:53]Write to MH i2c: 01 00 00 22 3C 5E [14:08:53]Write i2c OK [14:08:53]MH_I2C_Read... [14:08:53]Read from MH i2c: 01 [14:08:53]MH_I2C_Read... [14:08:53]Read from MH i2c: 01 07 00 [14:08:53]MH_I2C_Read... [14:08:53]Read from MH i2c: 01 07 00 22 3C 00 00 00 00 00 10 0E 83 [14:08:53]RasterBufferAndPrint [14:08:53]line [14:08:53]line [14:08:53]line [14:08:53]line [14:08:53]line [14:08:53]written 0, free lines is 3602 [14:08:53]MH_Cut [14:08:53]Write to MH i2c: D1 01 00 29 3C 01 37 [14:08:53]Write i2c OK [14:08:53]MH_I2C_Read... [14:08:53]Read from MH i2c: D1 [14:08:53]MH_I2C_Read... [14:08:53]Read from MH i2c: D1 01 00 [14:08:53]MH_I2C_Read... [14:08:53]Read from MH i2c: D1 01 00 29 3C 00 36 [14:08:53]Write to MH i2c: 01 00 00 2A 3C 66 [14:08:53]Write i2c OK [14:08:53]MH_I2C_Read... [14:08:53]OFD Sender: No OFD packet to send [14:08:53]*** Cut start [14:08:53]*** Partial cut [14:08:53]*** CUTSNS_PIN = 1 [14:08:53]*** CUTSNS_PIN = 0 [14:08:53]*** Brake cut motor [14:08:54]Read from MH i2c: 01 [14:08:54]MH_I2C_Read... [14:08:54]*** Stop cut motor [14:08:54]Read from MH i2c: 01 07 00 [14:08:54]MH_I2C_Read... [14:08:54]*** Cut end [14:08:54]Read from MH i2c: 01 07 00 2A 3C 00 00 00 00 00 FF 0F 7B [14:08:54]process_action print_text done [14:08:54]requested_data is exist [14:08:54]produce_requested_data [14:08:54]requested_item fm.sn is exist - process it [14:08:54]wFMCommunicate request_size=4 [14:08:54]MH_SAM_APDU [14:08:54]CAPDU: 80 11 00 00 [14:08:54]Write to MH i2c: E2 08 00 2B 3C 80 11 00 00 00 00 00 00 E1 [14:08:54]Write i2c OK [14:08:54]MH_I2C_Read... [14:08:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:08:54]Read from MH i2c: E2 [14:08:54]MH_I2C_Read... [14:08:54]Read from MH i2c: E2 17 00 [14:08:54]MH_I2C_Read... [14:08:54]Read from MH i2c: E2 17 00 2B 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 2C [14:08:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:08:54]wFMCommunicate OK [14:08:54]requested_item fd.num is exist - process it [14:08:54]SAM_PROTO_GetFieldsCounters [14:08:54]wFMCommunicate request_size=4 [14:08:54]MH_SAM_APDU [14:08:54]CAPDU: 80 13 00 00 [14:08:54]Write to MH i2c: E2 08 00 2C 3C 80 13 00 00 00 00 00 00 E4 [14:08:54]Write i2c OK [14:08:54]MH_I2C_Read... [14:08:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:08:54]Read from MH i2c: E2 [14:08:54]MH_I2C_Read... [14:08:54]Read from MH i2c: E2 62 00 [14:08:54]MH_I2C_Read... [14:08:54]Read from MH i2c: E2 62 00 2C 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 05 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 8F [14:08:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 05 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:08:54]wFMCommunicate OK [14:08:54]SAM_PROTO_GetFieldsCounters done [14:08:54]requested_item shift.num is exist - process it [14:08:54]requested_item shift.opened is exist - process it [14:08:54]req_shift_opened [14:08:54]FM_GetShiftState [14:08:54]SAM_PROTO_GetShiftState [14:08:54]wFMCommunicate request_size=4 [14:08:54]MH_SAM_APDU [14:08:54]CAPDU: 80 13 01 00 [14:08:54]Write to MH i2c: E2 08 00 2D 3C 80 13 01 00 00 00 00 00 E6 [14:08:54]Write i2c OK [14:08:54]MH_I2C_Read... [14:08:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:08:54]Read from MH i2c: E2 [14:08:54]MH_I2C_Read... [14:08:54]Read from MH i2c: E2 0E 00 [14:08:54]MH_I2C_Read... [14:08:54]Read from MH i2c: E2 0E 00 2D 3C 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 C1 [14:08:54]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [14:08:54]wFMCommunicate OK [14:08:54]SAM_PROTO_GetShiftState done [14:08:54]FM_GetShiftState done [14:08:54]req_shift_opened done [14:08:54]requested_item shift.open_date is exist - process it [14:08:54]req_shift_open_date [14:08:54]req_shift_open_date done [14:08:54]produce_requested_data done [14:08:54]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68357,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [14:08:54]process_action_free print_text [14:08:54]json_value_free [14:08:54]json_value_free done [14:08:54]process_json_proto returns [14:08:54]Send response to host [14:08:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68357,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [14:08:54]free response buf [14:08:54]execute_script done [14:08:54]execute_script returns [14:08:54]free content buf [14:08:54]Sock 5.Close socket [14:08:54]Sock 5.Thread stoped [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:42]accept exits with 6 [14:09:42]New connection [14:09:42]New thread 3066543460 created [14:09:42]Thread 3066686820 joined [14:09:42]Waiting for new connection... [14:09:42] Sock 6.Parse request [14:09:42]Sock 6.Check first char [14:09:42]Sock 6.First char is OK [14:09:42]request: POST /json_proto HTTP/1.0 [14:09:42]Method: POST [14:09:42]URL: /json_proto [14:09:42]Method is POST - this is cgi request [14:09:42]url: /json_proto [14:09:42]query_string will be loaded in cgi processing [14:09:42]execute_cgi json_proto POST (null) [14:09:42]execute_cgi path=json_proto method=POST [14:09:42]POST find Content-Length [14:09:42]Host: 172.17.36.132:8080 [14:09:42]Content-Length: 677 [14:09:42]Content-Type: application/json [14:09:42] [14:09:42]POST finish read [14:09:42]Found Content-Length = 677 [14:09:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706450", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:09:42]execute_script... [14:09:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706450", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:09:42]POST & json_proto [14:09:42]process_json_proto [14:09:42]json parsed OK: [14:09:42]protocol is kg_v1.0 [14:09:42]action value=close_receipt [14:09:42]process_action close_receipt [14:09:42]cmd_close_receipt [14:09:42]MH_GetDate [14:09:42]Write to MH i2c: F0 00 00 2E 3C 59 [14:09:42]Write i2c OK [14:09:42]MH_I2C_Read... [14:09:42]Read from MH i2c: F0 [14:09:42]MH_I2C_Read... [14:09:42]Read from MH i2c: F0 09 00 [14:09:42]MH_I2C_Read... [14:09:42]Read from MH i2c: F0 09 00 2E 3C 00 AC CE 5D 66 B2 22 B0 64 87 [14:09:42]GetLastDocTimeStamp 1717423710 [14:09:42]current date 1717423788 [14:09:42]FM_GetShiftState [14:09:42]SAM_PROTO_GetShiftState [14:09:42]wFMCommunicate request_size=4 [14:09:42]MH_SAM_APDU [14:09:42]CAPDU: 80 13 01 00 [14:09:42]Write to MH i2c: E2 08 00 2F 3C 80 13 01 00 00 00 00 00 E8 [14:09:42]Write i2c OK [14:09:42]MH_I2C_Read... [14:09:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:09:42]Read from MH i2c: E2 [14:09:42]MH_I2C_Read... [14:09:42]Read from MH i2c: E2 0E 00 [14:09:42]MH_I2C_Read... [14:09:42]Read from MH i2c: E2 0E 00 2F 3C 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 C3 [14:09:42]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [14:09:42]wFMCommunicate OK [14:09:42]SAM_PROTO_GetShiftState done [14:09:42]FM_GetShiftState done [14:09:42]opened in 1717378033 [14:09:42]opened+sec_in_day 1717464433 [14:09:42]quantity*price = 50041 [14:09:42]sum+1 = 50042 [14:09:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 104 03.06.2024 14:09 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68358 ФПД: 188085433580475 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T140948&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68358&fm=188085433580475&tin=02508201610067®Number=0000000000098096&sum=50000 [14:09:44]StoreToDocumentArchive [14:09:44]shift 324 fd 68358 [14:09:44]save to /storage/0324/doc_00068358 [14:09:44]save last doc name /storage/0324/doc_00068358 to /storage/kkm_last_doc_name [14:09:44]save OK [14:09:44]Clear old archive folders... [14:09:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:09:44]tlvbuf is B6E998D0 [14:09:44]SAM_PROTO_ClearQueue [14:09:44]wFMCommunicate request_size=4 [14:09:44]MH_SAM_APDU [14:09:44]CAPDU: 80 09 00 00 [14:09:44]Write to MH i2c: E2 08 00 3C 3C 80 09 00 00 00 00 00 00 EA [14:09:44]Write i2c OK [14:09:44]MH_I2C_Read... [14:09:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:09:44]Read from MH i2c: E2 [14:09:44]MH_I2C_Read... [14:09:44]Read from MH i2c: E2 03 00 [14:09:44]MH_I2C_Read... [14:09:44]Read from MH i2c: E2 03 00 3C 3C 00 90 00 EC [14:09:44]RAPDU: 90 00 [14:09:44]wFMCommunicate OK [14:09:44]SAM_PROTO_ClearQueue done [14:09:44]KKMCreateOFDPacket [14:09:44]OFDProtocolAddRootSTLVToBuf [14:09:44]FM_MakeSignedData [14:09:44]FM_MakeSignedData [14:09:44]SAM_PROTO_SignData [14:09:44]wFMCommunicate request_size=4 [14:09:44]MH_SAM_APDU [14:09:44]CAPDU: 80 0D 01 02 [14:09:44]Write to MH i2c: E2 08 00 3D 3C 80 0D 01 02 00 00 00 00 F2 [14:09:44]Write i2c OK [14:09:44]MH_I2C_Read... [14:09:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:09:44]Read from MH i2c: E2 [14:09:44]MH_I2C_Read... [14:09:44]Read from MH i2c: E2 03 00 [14:09:44]MH_I2C_Read... [14:09:44]Read from MH i2c: E2 03 00 3D 3C 00 90 00 ED [14:09:44]RAPDU: 90 00 [14:09:44]wFMCommunicate OK [14:09:44]wFMCommunicate request_size=255 [14:09:44]MH_SAM_APDU [14:09: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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 AC CE 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 06 0B 01 00 35 04 06 00 AB [14:09:44]Write to MH i2c: E2 02 01 3E 3C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 AC CE 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 06 0B 01 00 35 04 06 00 AB 00 00 26 [14:09:44]Write i2c OK [14:09:44]MH_I2C_Read... [14:09:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:09:44]Read from MH i2c: E2 [14:09:44]MH_I2C_Read... [14:09:44]Read from MH i2c: E2 03 00 [14:09:44]MH_I2C_Read... [14:09:44]Read from MH i2c: E2 03 00 3E 3C 00 90 00 EE [14:09:44]RAPDU: 90 00 [14:09:44]wFMCommunicate OK [14:09:44]wFMCommunicate request_size=10 [14:09:44]MH_SAM_APDU [14:09:44]CAPDU: 80 0D 02 02 05 10 0D 74 BB BB [14:09:44]Write to MH i2c: E2 0D 00 3F 3C 80 0D 02 02 05 00 10 0D 74 BB BB 00 00 06 [14:09:44]Write i2c OK [14:09:44]MH_I2C_Read... [14:09:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:09:44]Read from MH i2c: E2 [14:09:44]MH_I2C_Read... [14:09:44]Read from MH i2c: E2 03 00 [14:09:44]MH_I2C_Read... [14:09:44]Read from MH i2c: E2 03 00 3F 3C 00 90 00 EF [14:09:44]RAPDU: 90 00 [14:09:44]wFMCommunicate OK [14:09:44]wFMCommunicate request_size=4 [14:09:44]MH_SAM_APDU [14:09:44]CAPDU: 80 0D 03 02 [14:09:44]Write to MH i2c: E2 08 00 40 3C 80 0D 03 02 00 00 00 00 F7 [14:09:44]Write i2c OK [14:09:44]MH_I2C_Read... [14:09:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:09:44]Read from MH i2c: E2 [14:09:44]MH_I2C_Read... [14:09:44]Read from MH i2c: E2 0B 00 [14:09:44]MH_I2C_Read... [14:09:44]Read from MH i2c: E2 0B 00 40 3C 00 10 CB 11 5B 26 2A F6 9C 90 00 21 [14:09:44]RAPDU: 10 CB 11 5B 26 2A F6 9C 90 00 [14:09:44]wFMCommunicate OK [14:09:44]SAM_PROTO_SignData done [14:09:44]FM_MakeSignedData done [14:09:44]CreateOFDProtocolMessage [14:09:44]wFMCommunicate request_size=4 [14:09:44]MH_SAM_APDU [14:09:44]CAPDU: 80 11 00 00 [14:09:44]Write to MH i2c: E2 08 00 41 3C 80 11 00 00 00 00 00 00 F7 [14:09:44]Write i2c OK [14:09:44]MH_I2C_Read... [14:09:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:09:44]Read from MH i2c: E2 [14:09:44]MH_I2C_Read... [14:09:44]Read from MH i2c: E2 17 00 [14:09:44]MH_I2C_Read... [14:09:44]Read from MH i2c: E2 17 00 41 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 42 [14:09:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:09:44]wFMCommunicate OK [14:09:44]CreateOFDProtocolMessage done [14:09:44]OFDSenderStorePacket 68358 [14:09:44]StoreOFDPacket docnum=68358 [14:09:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 44 19 07 01 D2 50 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 AC CE 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 06 0B 01 00 35 04 06 00 AB 10 0D 74 BB BB 10 CB 11 5B 26 2A F6 9C [14:09:44]CheckFolder [14:09:44]dirname=/storage/ofd_packets [14:09:44]CheckFolder done [14:09:44]ProducePacketName [14:09:44]name=ofd_packets/00068358 [14:09:44]NVStorageSaveData ofd_packets/00068358 [14:09:44]File name is /storage/ofd_packets/00068358 [14:09:44]Write 301 bytes [14:09:44]NVStorageSaveData done [14:09:44]OFDSenderStorePacket done [14:09:44]KKMCreateOFDPacket done [14:09:44]NVStorageSaveData kkm_last_timestamp [14:09:44]File name is /storage/kkm_last_timestamp [14:09:44]Write 4 bytes [14:09:44]NVStorageSaveData done [14:09:44]ExternCall_PrintAddStr [14:09:44]wPrintStart [14:09:44]Write to MH i2c: 01 00 00 42 3C 7E [14:09:44]Write i2c OK [14:09:44]MH_I2C_Read... [14:09:44]Read from MH i2c: 01 [14:09:44]MH_I2C_Read... [14:09:44]Read from MH i2c: 01 07 00 [14:09:44]MH_I2C_Read... [14:09:44]Read from MH i2c: 01 07 00 42 3C 00 00 00 00 00 FF 0F 93 [14:09:44]RasterBufferAndPrint [14:09:44]line Счет N : (1)706450 [14:09:44]line ИНН: 02508201610067 [14:09:44]line Контрольно-Кассовый Чек [14:09:44]line ПРОДАЖА [14:09:44]line ТРК (МРК, ГНК) : 63 [14:09:44]line Товар: 2710124130 [14:09:44]line Аи-92-К-4 [14:09:44]line 7.480 * 66.90 [14:09:44]line = 500.41 [14:09:44]line НДС 12% НСП 1% [14:09:44]line > о реализуемом товаре [14:09:44]line ОКРУГЛЕНИЕ: -0.41 [14:09:44]line ИТОГО: 500.00 [14:09:44]line Внесено: 500.00 [14:09:44]line СДАЧА: 0.00 [14:09:44]line НСП 1% : 4.43 [14:09:44]line НДС 12% : 53.14 [14:09:44]line Наличными: 500.00 [14:09:44]line Безнал.: 0.00 [14:09:44]line Место: АЗС № 62 "Партнер Нефть" [14:09:44]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [14:09:44]line СНО: Общий режим [14:09:44]line Чек 104 03.06.2024 14:09 [14:09:44]line Смена: 324 ФФД: 1.0 [14:09:44]line ЗНМ: 0300000181 [14:09:44]line РНМ: 0000000000098096 [14:09:44]line Версия ККМ: 001 [14:09:44]line ФМ: 0000000000965400 [14:09:44]line ФД: 68358 [14:09:44]line ФПД: 188085433580475 [14:09:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T140948&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68358&fm=188085433580475&tin=02508201610067®Number=0000000000098096&sum=50000 [14:09:44]OFD Sender: Processing packet 68358 [packets to send 26, broken 25] [14:09:44]ProducePacketName [14:09:44]name=ofd_packets/00068358 [14:09:44]OFD Sender: To server: pG, [14:09:44]CommunicateWithHost lk.salyk.kg:30040 [14:09:44]ConnectInit lk.salyk.kg [14:09:44]written 0, free lines is 4095 [14:09:44]Connected sock=7 [14:09:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 44 19 07 01 D2 50 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 AC CE 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 06 0B 01 00 35 04 06 00 AB 10 0D 74 BB BB 10 CB 11 5B 26 2A F6 9C [14:09:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 81 98 47 00 F0 E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 06 0B 01 00 F4 03 04 00 A8 75 5D 66 B6 04 01 00 00 75 7B 41 8A 0D CB FA 8D [14:09:45]CommunicateWithHost err = 0 [14:09:45]CheckOFDResponse [14:09:45]1017 (14) - 77093643461234 [14:09:45]1041 (16) - 0000000000965400 [14:09:45]1040 (4) - 68358 [14:09:45]1012 (4) - 03.06.2024 07:50 [14:09:45]1206 (1) - 0 [14:09:45]OFD Sender: Remove packet 68358 [14:09:45]ProducePacketName [14:09:45]name=ofd_packets/00068358 [14:09:45]NVStorageDeleteData [14:09:45]Write to MH i2c: 01 00 00 6D 3C A9 [14:09:45]Write i2c OK [14:09:45]MH_I2C_Read... [14:09:45]Read from MH i2c: 01 [14:09:45]MH_I2C_Read... [14:09:45]Read from MH i2c: 01 07 00 [14:09:45]MH_I2C_Read... [14:09:45]Read from MH i2c: 01 07 00 6D 3C 00 00 00 00 00 E4 0C A0 [14:09:45]RasterBufferAndPrint [14:09:45]line [14:09:45]line [14:09:45]line [14:09:45]line [14:09:45]line [14:09:45]written 0, free lines is 3306 [14:09:45]MH_Cut [14:09:45]Write to MH i2c: D1 01 00 74 3C 01 82 [14:09:45]Write i2c OK [14:09:45]MH_I2C_Read... [14:09:45]Read from MH i2c: D1 [14:09:45]MH_I2C_Read... [14:09:45]Read from MH i2c: D1 01 00 [14:09:45]MH_I2C_Read... [14:09:45]Read from MH i2c: D1 01 00 74 3C 00 81 [14:09:45]Write to MH i2c: 01 00 00 75 3C B1 [14:09:45]Write i2c OK [14:09:45]MH_I2C_Read... [14:09:45]OFD Sender: No OFD packet to send [14:09:46]*** Cut start [14:09:46]*** Partial cut [14:09:46]*** CUTSNS_PIN = 1 [14:09:46]*** CUTSNS_PIN = 0 [14:09:46]*** Brake cut motor [14:09:46]Read from MH i2c: 01 [14:09:46]MH_I2C_Read... [14:09:46]*** Stop cut motor [14:09:46]*** Cut end [14:09:46]Read from MH i2c: 01 07 00 [14:09:46]MH_I2C_Read... [14:09:46]Read from MH i2c: 01 07 00 75 3C 00 00 00 00 00 FF 0F C6 [14:09:46]process_action close_receipt done [14:09:46]requested_data is exist [14:09:46]produce_requested_data [14:09:46]requested_item fm.sn is exist - process it [14:09:46]wFMCommunicate request_size=4 [14:09:46]MH_SAM_APDU [14:09:46]CAPDU: 80 11 00 00 [14:09:46]Write to MH i2c: E2 08 00 76 3C 80 11 00 00 00 00 00 00 2C [14:09:46]Write i2c OK [14:09:46]MH_I2C_Read... [14:09:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:09:46]Read from MH i2c: E2 [14:09:46]MH_I2C_Read... [14:09:46]Read from MH i2c: E2 17 00 [14:09:46]MH_I2C_Read... [14:09:46]Read from MH i2c: E2 17 00 76 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 77 [14:09:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:09:46]wFMCommunicate OK [14:09:46]requested_item fd.num is exist - process it [14:09:46]SAM_PROTO_GetFieldsCounters [14:09:46]wFMCommunicate request_size=4 [14:09:46]MH_SAM_APDU [14:09:46]CAPDU: 80 13 00 00 [14:09:46]Write to MH i2c: E2 08 00 77 3C 80 13 00 00 00 00 00 00 2F [14:09:46]Write i2c OK [14:09:46]MH_I2C_Read... [14:09:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:09:46]Read from MH i2c: E2 [14:09:46]MH_I2C_Read... [14:09:46]Read from MH i2c: E2 62 00 [14:09:46]MH_I2C_Read... [14:09:46]Read from MH i2c: E2 62 00 77 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 06 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 DE [14:09:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 06 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:09:46]wFMCommunicate OK [14:09:46]SAM_PROTO_GetFieldsCounters done [14:09:46]requested_item shift.num is exist - process it [14:09:46]requested_item shift.opened is exist - process it [14:09:46]req_shift_opened [14:09:46]FM_GetShiftState [14:09:46]SAM_PROTO_GetShiftState [14:09:46]wFMCommunicate request_size=4 [14:09:46]MH_SAM_APDU [14:09:46]CAPDU: 80 13 01 00 [14:09:46]Write to MH i2c: E2 08 00 78 3C 80 13 01 00 00 00 00 00 31 [14:09:46]Write i2c OK [14:09:46]MH_I2C_Read... [14:09:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:09:46]Read from MH i2c: E2 [14:09:46]MH_I2C_Read... [14:09:46]Read from MH i2c: E2 0E 00 [14:09:46]MH_I2C_Read... [14:09:46]Read from MH i2c: E2 0E 00 78 3C 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 0C [14:09:46]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [14:09:47]wFMCommunicate OK [14:09:47]SAM_PROTO_GetShiftState done [14:09:47]FM_GetShiftState done [14:09:47]req_shift_opened done [14:09:47]requested_item shift.open_date is exist - process it [14:09:47]req_shift_open_date [14:09:47]req_shift_open_date done [14:09:47]produce_requested_data done [14:09:47]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68358,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [14:09:47]process_action_free close_receipt [14:09:47]json_value_free [14:09:47]json_value_free done [14:09:47]process_json_proto returns [14:09:47]Send response to host [14:09:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68358,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [14:09:47]free response buf [14:09:47]execute_script done [14:09:47]execute_script returns [14:09:47]free content buf [14:09:47]Sock 6.Close socket [14:09:47]Sock 6.Thread stoped [14:09:48]accept exits with 5 [14:09:48]New connection [14:09:48]New thread 3066686820 created [14:09:48]Thread 3066543460 joined [14:09:48]Waiting for new connection... [14:09:48] Sock 5.Parse request [14:09:48]Sock 5.Check first char [14:09:48]Sock 5.First char is OK [14:09:48]request: POST /json_proto HTTP/1.0 [14:09:48]Method: POST [14:09:48]URL: /json_proto [14:09:48]Method is POST - this is cgi request [14:09:48]url: /json_proto [14:09:48]query_string will be loaded in cgi processing [14:09:48]execute_cgi json_proto POST (null) [14:09:48]execute_cgi path=json_proto method=POST [14:09:48]POST find Content-Length [14:09:48]Host: 172.17.36.132:8080 [14:09:48]Content-Length: 733 [14:09:48]Content-Type: application/json [14:09:48] [14:09:48]POST finish read [14:09:48]Found Content-Length = 733 [14:09:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 68358, "base_FM": "0000000000965400", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706450", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:09:48]execute_script... [14:09:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 68358, "base_FM": "0000000000965400", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706450", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:09:48]POST & json_proto [14:09:48]process_json_proto [14:09:48]json parsed OK: [14:09:48]protocol is kg_v1.0 [14:09:48]action value=close_receipt [14:09:48]process_action close_receipt [14:09:48]cmd_close_receipt [14:09:48]MH_GetDate [14:09:48]Write to MH i2c: F0 00 00 79 3C A4 [14:09:48]Write i2c OK [14:09:48]MH_I2C_Read... [14:09:48]Read from MH i2c: F0 [14:09:48]MH_I2C_Read... [14:09:48]Read from MH i2c: F0 09 00 [14:09:48]MH_I2C_Read... [14:09:48]Read from MH i2c: F0 09 00 79 3C 00 B2 CE 5D 66 B2 22 B0 64 D8 [14:09:48]GetLastDocTimeStamp 1717423788 [14:09:48]current date 1717423794 [14:09:48]FM_GetShiftState [14:09:48]SAM_PROTO_GetShiftState [14:09:48]wFMCommunicate request_size=4 [14:09:48]MH_SAM_APDU [14:09:48]CAPDU: 80 13 01 00 [14:09:48]Write to MH i2c: E2 08 00 7A 3C 80 13 01 00 00 00 00 00 33 [14:09:48]Write i2c OK [14:09:48]MH_I2C_Read... [14:09:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:09:48]Read from MH i2c: E2 [14:09:48]MH_I2C_Read... [14:09:48]Read from MH i2c: E2 0E 00 [14:09:48]MH_I2C_Read... [14:09:48]Read from MH i2c: E2 0E 00 7A 3C 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 0E [14:09:48]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [14:09:48]wFMCommunicate OK [14:09:48]SAM_PROTO_GetShiftState done [14:09:48]FM_GetShiftState done [14:09:48]opened in 1717378033 [14:09:48]opened+sec_in_day 1717464433 [14:09:48]quantity*price = 50041 [14:09:48]sum+1 = 50042 [14:09:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 105 03.06.2024 14:09 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФД осн.: 68358 ФМ осн.: 0000000000965400 ФМ: 0000000000965400 ФД: 68359 ФПД: 208717135109953 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T140954&type=2&operation_type=1&fn_number=0000000000965400&fd_number=68359&fm=208717135109953&tin=02508201610067®Number=0000000000098096&sum=50000 [14:09:50]StoreToDocumentArchive [14:09:50]shift 324 fd 68359 [14:09:50]save to /storage/0324/doc_00068359 [14:09:50]save last doc name /storage/0324/doc_00068359 to /storage/kkm_last_doc_name [14:09:50]save OK [14:09:50]Clear old archive folders... [14:09:50]ProcessDocumentItem done err = 0, tmpTLVsize=279 [14:09:50]tlvbuf is 00257890 [14:09:50]SAM_PROTO_ClearQueue [14:09:50]wFMCommunicate request_size=4 [14:09:50]MH_SAM_APDU [14:09:50]CAPDU: 80 09 00 00 [14:09:50]Write to MH i2c: E2 08 00 89 3C 80 09 00 00 00 00 00 00 37 [14:09:50]Write i2c OK [14:09:50]MH_I2C_Read... [14:09:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:09:50]Read from MH i2c: E2 [14:09:50]MH_I2C_Read... [14:09:50]Read from MH i2c: E2 03 00 [14:09:50]MH_I2C_Read... [14:09:50]Read from MH i2c: E2 03 00 89 3C 00 90 00 39 [14:09:50]RAPDU: 90 00 [14:09:50]wFMCommunicate OK [14:09:50]SAM_PROTO_ClearQueue done [14:09:50]KKMCreateOFDPacket [14:09:50]OFDProtocolAddRootSTLVToBuf [14:09:50]FM_MakeSignedData [14:09:50]FM_MakeSignedData [14:09:50]SAM_PROTO_SignData [14:09:50]wFMCommunicate request_size=4 [14:09:50]MH_SAM_APDU [14:09:50]CAPDU: 80 0D 01 02 [14:09:50]Write to MH i2c: E2 08 00 8A 3C 80 0D 01 02 00 00 00 00 3F [14:09:50]Write i2c OK [14:09:50]MH_I2C_Read... [14:09:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:09:50]Read from MH i2c: E2 [14:09:50]MH_I2C_Read... [14:09:50]Read from MH i2c: E2 03 00 [14:09:50]MH_I2C_Read... [14:09:50]Read from MH i2c: E2 03 00 8A 3C 00 90 00 3A [14:09:50]RAPDU: 90 00 [14:09:50]wFMCommunicate OK [14:09:50]wFMCommunicate request_size=255 [14:09:50]MH_SAM_APDU [14:09:50]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 B2 CE 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 27 04 04 00 06 0B 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 11 04 10 00 30 [14:09:50]Write to MH i2c: E2 02 01 8B 3C 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 B2 CE 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 27 04 04 00 06 0B 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 11 04 10 00 30 00 00 31 [14:09:50]Write i2c OK [14:09:50]MH_I2C_Read... [14:09:50]Read from MH i2c: E2 [14:09:50]MH_I2C_Read... [14:09:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:09:50]Read from MH i2c: E2 03 00 [14:09:50]MH_I2C_Read... [14:09:50]Read from MH i2c: E2 03 00 8B 3C 00 90 00 3B [14:09:50]RAPDU: 90 00 [14:09:50]wFMCommunicate OK [14:09:50]wFMCommunicate request_size=38 [14:09:50]MH_SAM_APDU [14:09:50]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 07 0B 01 00 35 04 06 00 BD D3 BE B2 5F 41 [14:09:50]Write to MH i2c: E2 29 00 8C 3C 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 07 0B 01 00 35 04 06 00 BD D3 BE B2 5F 41 00 00 76 [14:09:50]Write i2c OK [14:09:50]MH_I2C_Read... [14:09:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:09:50]Read from MH i2c: E2 [14:09:50]MH_I2C_Read... [14:09:50]Read from MH i2c: E2 03 00 [14:09:50]MH_I2C_Read... [14:09:50]Read from MH i2c: E2 03 00 8C 3C 00 90 00 3C [14:09:50]RAPDU: 90 00 [14:09:50]wFMCommunicate OK [14:09:50]wFMCommunicate request_size=4 [14:09:50]MH_SAM_APDU [14:09:50]CAPDU: 80 0D 03 02 [14:09:50]Write to MH i2c: E2 08 00 8D 3C 80 0D 03 02 00 00 00 00 44 [14:09:50]Write i2c OK [14:09:50]MH_I2C_Read... [14:09:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:09:50]Read from MH i2c: E2 [14:09:50]MH_I2C_Read... [14:09:50]Read from MH i2c: E2 0B 00 [14:09:50]MH_I2C_Read... [14:09:50]Read from MH i2c: E2 0B 00 8D 3C 00 7D 8D 22 99 6D 30 36 77 90 00 54 [14:09:50]RAPDU: 7D 8D 22 99 6D 30 36 77 90 00 [14:09:50]wFMCommunicate OK [14:09:50]SAM_PROTO_SignData done [14:09:50]FM_MakeSignedData done [14:09:50]CreateOFDProtocolMessage [14:09:50]wFMCommunicate request_size=4 [14:09:50]MH_SAM_APDU [14:09:50]CAPDU: 80 11 00 00 [14:09:50]Write to MH i2c: E2 08 00 8E 3C 80 11 00 00 00 00 00 00 44 [14:09:50]Write i2c OK [14:09:50]MH_I2C_Read... [14:09:50]OFD Sender: No OFD packet to send [14:09:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:09:50]Read from MH i2c: E2 [14:09:50]MH_I2C_Read... [14:09:50]Read from MH i2c: E2 17 00 [14:09:50]MH_I2C_Read... [14:09:50]Read from MH i2c: E2 17 00 8E 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 8F [14:09:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:09:50]wFMCommunicate OK [14:09:50]CreateOFDProtocolMessage done [14:09:50]OFDSenderStorePacket 68359 [14:09:50]StoreOFDPacket docnum=68359 [14:09:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 2B 01 00 00 C7 36 23 01 78 2F 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 B2 CE 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 27 04 04 00 06 0B 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 07 0B 01 00 35 04 06 00 BD D3 BE B2 5F 41 7D 8D 22 99 6D 30 36 77 [14:09:50]CheckFolder [14:09:50]dirname=/storage/ofd_packets [14:09:50]CheckFolder done [14:09:50]ProducePacketName [14:09:50]name=ofd_packets/00068359 [14:09:50]NVStorageSaveData ofd_packets/00068359 [14:09:50]File name is /storage/ofd_packets/00068359 [14:09:50]Write 329 bytes [14:09:50]NVStorageSaveData done [14:09:50]OFDSenderStorePacket done [14:09:50]KKMCreateOFDPacket done [14:09:50]NVStorageSaveData kkm_last_timestamp [14:09:50]File name is /storage/kkm_last_timestamp [14:09:50]Write 4 bytes [14:09:50]NVStorageSaveData done [14:09:50]ExternCall_PrintAddStr [14:09:50]wPrintStart [14:09:50]Write to MH i2c: 01 00 00 8F 3C CB [14:09:50]Write i2c OK [14:09:50]MH_I2C_Read... [14:09:50]Read from MH i2c: 01 [14:09:50]MH_I2C_Read... [14:09:50]Read from MH i2c: 01 07 00 [14:09:50]MH_I2C_Read... [14:09:50]Read from MH i2c: 01 07 00 8F 3C 00 00 00 00 00 FF 0F E0 [14:09:50]RasterBufferAndPrint [14:09:50]line Счет N : (1)706450 [14:09:50]line ИНН: 02508201610067 [14:09:50]line Контрольно-Кассовый Чек [14:09:50]line ВОЗВРАТ ПРОДАЖИ [14:09:50]line ТРК (МРК, ГНК) : 63 [14:09:50]line Товар: 2710124130 [14:09:50]line Аи-92-К-4 [14:09:50]line 7.480 * 66.90 [14:09:50]line = 500.41 [14:09:50]line НДС 12% НСП 1% [14:09:50]line > о реализуемом товаре [14:09:50]line ОКРУГЛЕНИЕ: -0.41 [14:09:50]line ИТОГО: 500.00 [14:09:50]line НСП 1% : 4.43 [14:09:50]line НДС 12% : 53.14 [14:09:50]line Наличными: 500.00 [14:09:50]line Безнал.: 0.00 [14:09:50]line Место: АЗС № 62 "Партнер Нефть" [14:09:50]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [14:09:50]line СНО: Общий режим [14:09:50]line Чек 105 03.06.2024 14:09 [14:09:50]line Смена: 324 ФФД: 1.0 [14:09:50]line ЗНМ: 0300000181 [14:09:50]line РНМ: 0000000000098096 [14:09:50]line Версия ККМ: 001 [14:09:50]line ФД осн.: 68358 [14:09:50]line ФМ осн.: 0000000000965400 [14:09:50]line ФМ: 0000000000965400 [14:09:50]line ФД: 68359 [14:09:50]line ФПД: 208717135109953 [14:09:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T140954&type=2&operation_type=1&fn_number=0000000000965400&fd_number=68359&fm=208717135109953&tin=02508201610067®Number=0000000000098096&sum=50000 [14:09:50]written 0, free lines is 4095 [14:09:50]OFD Sender: Processing packet 68359 [packets to send 26, broken 25] [14:09:50]ProducePacketName [14:09:50]name=ofd_packets/00068359 [14:09:50]OFD Sender: To server: pG, [14:09:50]CommunicateWithHost lk.salyk.kg:30040 [14:09:50]ConnectInit lk.salyk.kg [14:09:50]Connected sock=7 [14:09:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 2B 01 00 00 C7 36 23 01 78 2F 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 B2 CE 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 27 04 04 00 06 0B 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 07 0B 01 00 35 04 06 00 BD D3 BE B2 5F 41 7D 8D 22 99 6D 30 36 77 [14:09:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 E7 EF 47 00 61 A6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 07 0B 01 00 F4 03 04 00 AE 75 5D 66 B6 04 01 00 00 95 F9 19 CD 82 39 6F 1E [14:09:51]CommunicateWithHost err = 0 [14:09:51]CheckOFDResponse [14:09:51]1017 (14) - 77093643461234 [14:09:51]1041 (16) - 0000000000965400 [14:09:51]1040 (4) - 68359 [14:09:51]1012 (4) - 03.06.2024 07:50 [14:09:51]1206 (1) - 0 [14:09:51]OFD Sender: Remove packet 68359 [14:09:51]ProducePacketName [14:09:51]name=ofd_packets/00068359 [14:09:51]NVStorageDeleteData [14:09:51]Write to MH i2c: 01 00 00 BA 3C F6 [14:09:51]Write i2c OK [14:09:51]MH_I2C_Read... [14:09:51]Read from MH i2c: 01 [14:09:51]MH_I2C_Read... [14:09:51]Read from MH i2c: 01 07 00 [14:09:51]MH_I2C_Read... [14:09:51]Read from MH i2c: 01 07 00 BA 3C 00 00 00 00 00 01 0D 0B [14:09:51]RasterBufferAndPrint [14:09:51]line [14:09:51]line [14:09:51]line [14:09:51]line [14:09:51]line [14:09:51]written 0, free lines is 3344 [14:09:51]MH_Cut [14:09:51]Write to MH i2c: D1 01 00 C1 3C 01 CF [14:09:51]Write i2c OK [14:09:51]MH_I2C_Read... [14:09:51]Read from MH i2c: D1 [14:09:51]MH_I2C_Read... [14:09:51]Read from MH i2c: D1 01 00 [14:09:51]MH_I2C_Read... [14:09:51]Read from MH i2c: D1 01 00 C1 3C 00 CE [14:09:51]Write to MH i2c: 01 00 00 C2 3C FE [14:09:51]Write i2c OK [14:09:51]MH_I2C_Read... [14:09:51]OFD Sender: No OFD packet to send [14:09:52]*** Cut start [14:09:52]*** Partial cut [14:09:52]*** CUTSNS_PIN = 1 [14:09:52]*** CUTSNS_PIN = 0 [14:09:52]*** Brake cut motor [14:09:52]Read from MH i2c: 01 [14:09:52]MH_I2C_Read... [14:09:52]*** Stop cut motor [14:09:52]*** Cut end [14:09:52]Read from MH i2c: 01 07 00 [14:09:52]MH_I2C_Read... [14:09:52]Read from MH i2c: 01 07 00 C2 3C 00 00 00 00 00 FF 0F 13 [14:09:52]process_action close_receipt done [14:09:52]requested_data is exist [14:09:52]produce_requested_data [14:09:52]requested_item fm.sn is exist - process it [14:09:52]wFMCommunicate request_size=4 [14:09:52]MH_SAM_APDU [14:09:52]CAPDU: 80 11 00 00 [14:09:52]Write to MH i2c: E2 08 00 C3 3C 80 11 00 00 00 00 00 00 79 [14:09:52]Write i2c OK [14:09:52]MH_I2C_Read... [14:09:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:09:52]Read from MH i2c: E2 [14:09:52]MH_I2C_Read... [14:09:52]Read from MH i2c: E2 17 00 [14:09:52]MH_I2C_Read... [14:09:52]Read from MH i2c: E2 17 00 C3 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 C4 [14:09:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:09:52]wFMCommunicate OK [14:09:52]requested_item fd.num is exist - process it [14:09:52]SAM_PROTO_GetFieldsCounters [14:09:52]wFMCommunicate request_size=4 [14:09:52]MH_SAM_APDU [14:09:52]CAPDU: 80 13 00 00 [14:09:52]Write to MH i2c: E2 08 00 C4 3C 80 13 00 00 00 00 00 00 7C [14:09:52]Write i2c OK [14:09:52]MH_I2C_Read... [14:09:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:09:52]Read from MH i2c: E2 [14:09:52]MH_I2C_Read... [14:09:52]Read from MH i2c: E2 62 00 [14:09:52]MH_I2C_Read... [14:09:52]Read from MH i2c: E2 62 00 C4 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 07 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 2F [14:09:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 07 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:09:52]wFMCommunicate OK [14:09:52]SAM_PROTO_GetFieldsCounters done [14:09:52]requested_item shift.num is exist - process it [14:09:52]requested_item shift.opened is exist - process it [14:09:52]req_shift_opened [14:09:52]FM_GetShiftState [14:09:52]SAM_PROTO_GetShiftState [14:09:52]wFMCommunicate request_size=4 [14:09:52]MH_SAM_APDU [14:09:52]CAPDU: 80 13 01 00 [14:09:52]Write to MH i2c: E2 08 00 C5 3C 80 13 01 00 00 00 00 00 7E [14:09:52]Write i2c OK [14:09:52]MH_I2C_Read... [14:09:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:09:52]Read from MH i2c: E2 [14:09:52]MH_I2C_Read... [14:09:52]Read from MH i2c: E2 0E 00 [14:09:52]MH_I2C_Read... [14:09:52]Read from MH i2c: E2 0E 00 C5 3C 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 59 [14:09:52]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [14:09:52]wFMCommunicate OK [14:09:52]SAM_PROTO_GetShiftState done [14:09:52]FM_GetShiftState done [14:09:52]req_shift_opened done [14:09:52]requested_item shift.open_date is exist - process it [14:09:52]req_shift_open_date [14:09:52]req_shift_open_date done [14:09:52]produce_requested_data done [14:09:53]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68359,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [14:09:53]process_action_free close_receipt [14:09:53]json_value_free [14:09:53]json_value_free done [14:09:53]process_json_proto returns [14:09:53]Send response to host [14:09:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68359,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [14:09:53]free response buf [14:09:53]execute_script done [14:09:53]execute_script returns [14:09:53]free content buf [14:09:53]Sock 5.Close socket [14:09:53]Sock 5.Thread stoped [14:09:56]OFD Sender: No OFD packet to send [14:10:00]accept exits with 6 [14:10:00]New connection [14:10:00]New thread 3066543460 created [14:10:00]Thread 3066686820 joined [14:10:00]Waiting for new connection... [14:10:00] Sock 6.Parse request [14:10:00]Sock 6.Check first char [14:10:00]Sock 6.First char is OK [14:10:00]request: POST /json_proto HTTP/1.0 [14:10:00]Method: POST [14:10:00]URL: /json_proto [14:10:00]Method is POST - this is cgi request [14:10:00]url: /json_proto [14:10:00]query_string will be loaded in cgi processing [14:10:00]execute_cgi json_proto POST (null) [14:10:00]execute_cgi path=json_proto method=POST [14:10:00]POST find Content-Length [14:10:00]Host: 172.17.36.132:8080 [14:10:00]Content-Length: 677 [14:10:00]Content-Type: application/json [14:10:00] [14:10:00]POST finish read [14:10:00]Found Content-Length = 677 [14:10:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706449", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:10:00]execute_script... [14:10:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706449", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:10:00]POST & json_proto [14:10:00]process_json_proto [14:10:00]json parsed OK: [14:10:00]protocol is kg_v1.0 [14:10:00]action value=close_receipt [14:10:00]process_action close_receipt [14:10:00]cmd_close_receipt [14:10:00]MH_GetDate [14:10:00]Write to MH i2c: F0 00 00 C6 3C F1 [14:10:00]Write i2c OK [14:10:00]MH_I2C_Read... [14:10:00]Read from MH i2c: F0 [14:10:00]MH_I2C_Read... [14:10:00]Read from MH i2c: F0 09 00 [14:10:00]MH_I2C_Read... [14:10:00]Read from MH i2c: F0 09 00 C6 3C 00 BD CE 5D 66 B2 22 B0 64 30 [14:10:00]GetLastDocTimeStamp 1717423794 [14:10:00]current date 1717423805 [14:10:00]FM_GetShiftState [14:10:00]SAM_PROTO_GetShiftState [14:10:00]wFMCommunicate request_size=4 [14:10:00]MH_SAM_APDU [14:10:00]CAPDU: 80 13 01 00 [14:10:00]Write to MH i2c: E2 08 00 C7 3C 80 13 01 00 00 00 00 00 80 [14:10:00]Write i2c OK [14:10:00]MH_I2C_Read... [14:10:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:10:00]Read from MH i2c: E2 [14:10:00]MH_I2C_Read... [14:10:00]Read from MH i2c: E2 0E 00 [14:10:00]MH_I2C_Read... [14:10:00]Read from MH i2c: E2 0E 00 C7 3C 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 5B [14:10:00]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [14:10:00]wFMCommunicate OK [14:10:00]SAM_PROTO_GetShiftState done [14:10:00]FM_GetShiftState done [14:10:00]opened in 1717378033 [14:10:00]opened+sec_in_day 1717464433 [14:10:00]quantity*price = 60009 [14:10:00]sum+1 = 60010 [14:10:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 106 03.06.2024 14:10 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68360 ФПД: 163451222093437 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T141006&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68360&fm=163451222093437&tin=02508201610067®Number=0000000000098096&sum=60000 [14:10:01]StoreToDocumentArchive [14:10:01]shift 324 fd 68360 [14:10:01]save to /storage/0324/doc_00068360 [14:10:01]save last doc name /storage/0324/doc_00068360 to /storage/kkm_last_doc_name [14:10:01]save OK [14:10:01]Clear old archive folders... [14:10:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:10:01]tlvbuf is B6E67560 [14:10:01]SAM_PROTO_ClearQueue [14:10:01]wFMCommunicate request_size=4 [14:10:01]MH_SAM_APDU [14:10:01]CAPDU: 80 09 00 00 [14:10:01]Write to MH i2c: E2 08 00 D4 3C 80 09 00 00 00 00 00 00 82 [14:10:01]Write i2c OK [14:10:01]MH_I2C_Read... [14:10:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:10:01]Read from MH i2c: E2 [14:10:01]MH_I2C_Read... [14:10:01]Read from MH i2c: E2 03 00 [14:10:01]MH_I2C_Read... [14:10:01]Read from MH i2c: E2 03 00 D4 3C 00 90 00 84 [14:10:01]RAPDU: 90 00 [14:10:01]wFMCommunicate OK [14:10:01]SAM_PROTO_ClearQueue done [14:10:01]KKMCreateOFDPacket [14:10:01]OFDProtocolAddRootSTLVToBuf [14:10:01]FM_MakeSignedData [14:10:01]FM_MakeSignedData [14:10:01]SAM_PROTO_SignData [14:10:01]wFMCommunicate request_size=4 [14:10:01]MH_SAM_APDU [14:10:01]CAPDU: 80 0D 01 02 [14:10:01]Write to MH i2c: E2 08 00 D5 3C 80 0D 01 02 00 00 00 00 8A [14:10:01]Write i2c OK [14:10:01]MH_I2C_Read... [14:10:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:10:01]Read from MH i2c: E2 [14:10:01]MH_I2C_Read... [14:10:01]Read from MH i2c: E2 03 00 [14:10:01]MH_I2C_Read... [14:10:01]Read from MH i2c: E2 03 00 D5 3C 00 90 00 85 [14:10:01]RAPDU: 90 00 [14:10:01]wFMCommunicate OK [14:10:01]wFMCommunicate request_size=255 [14:10:01]MH_SAM_APDU [14:10:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 BE CE 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 08 0B 01 00 35 04 06 00 94 [14:10:01]Write to MH i2c: E2 02 01 D6 3C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 BE CE 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 08 0B 01 00 35 04 06 00 94 00 00 9A [14:10:01]Write i2c OK [14:10:01]MH_I2C_Read... [14:10:01]OFD Sender: No OFD packet to send [14:10:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:10:01]Read from MH i2c: E2 [14:10:01]MH_I2C_Read... [14:10:01]Read from MH i2c: E2 03 00 [14:10:01]MH_I2C_Read... [14:10:01]Read from MH i2c: E2 03 00 D6 3C 00 90 00 86 [14:10:01]RAPDU: 90 00 [14:10:01]wFMCommunicate OK [14:10:01]wFMCommunicate request_size=10 [14:10:01]MH_SAM_APDU [14:10:01]CAPDU: 80 0D 02 02 05 A8 74 07 EE 7D [14:10:01]Write to MH i2c: E2 0D 00 D7 3C 80 0D 02 02 05 00 A8 74 07 EE 7D 00 00 25 [14:10:01]Write i2c OK [14:10:01]MH_I2C_Read... [14:10:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:10:01]Read from MH i2c: E2 [14:10:01]MH_I2C_Read... [14:10:01]Read from MH i2c: E2 03 00 [14:10:01]MH_I2C_Read... [14:10:01]Read from MH i2c: E2 03 00 D7 3C 00 90 00 87 [14:10:01]RAPDU: 90 00 [14:10:01]wFMCommunicate OK [14:10:01]wFMCommunicate request_size=4 [14:10:01]MH_SAM_APDU [14:10:01]CAPDU: 80 0D 03 02 [14:10:01]Write to MH i2c: E2 08 00 D8 3C 80 0D 03 02 00 00 00 00 8F [14:10:01]Write i2c OK [14:10:01]MH_I2C_Read... [14:10:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:10:01]Read from MH i2c: E2 [14:10:01]MH_I2C_Read... [14:10:01]Read from MH i2c: E2 0B 00 [14:10:01]MH_I2C_Read... [14:10:01]Read from MH i2c: E2 0B 00 D8 3C 00 A2 60 DA 6D AB AB 7A 43 90 00 EC [14:10:01]RAPDU: A2 60 DA 6D AB AB 7A 43 90 00 [14:10:02]wFMCommunicate OK [14:10:02]SAM_PROTO_SignData done [14:10:02]FM_MakeSignedData done [14:10:02]CreateOFDProtocolMessage [14:10:02]wFMCommunicate request_size=4 [14:10:02]MH_SAM_APDU [14:10:02]CAPDU: 80 11 00 00 [14:10:02]Write to MH i2c: E2 08 00 D9 3C 80 11 00 00 00 00 00 00 8F [14:10:02]Write i2c OK [14:10:02]MH_I2C_Read... [14:10:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:10:02]Read from MH i2c: E2 [14:10:02]MH_I2C_Read... [14:10:02]Read from MH i2c: E2 17 00 [14:10:02]MH_I2C_Read... [14:10:02]Read from MH i2c: E2 17 00 D9 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 DA [14:10:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:10:02]wFMCommunicate OK [14:10:02]CreateOFDProtocolMessage done [14:10:02]OFDSenderStorePacket 68360 [14:10:02]StoreOFDPacket docnum=68360 [14:10:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 77 57 07 01 46 A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 BE CE 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 08 0B 01 00 35 04 06 00 94 A8 74 07 EE 7D A2 60 DA 6D AB AB 7A 43 [14:10:02]CheckFolder [14:10:02]dirname=/storage/ofd_packets [14:10:02]CheckFolder done [14:10:02]ProducePacketName [14:10:02]name=ofd_packets/00068360 [14:10:02]NVStorageSaveData ofd_packets/00068360 [14:10:02]File name is /storage/ofd_packets/00068360 [14:10:02]Write 301 bytes [14:10:02]NVStorageSaveData done [14:10:02]OFDSenderStorePacket done [14:10:02]KKMCreateOFDPacket done [14:10:02]NVStorageSaveData kkm_last_timestamp [14:10:02]File name is /storage/kkm_last_timestamp [14:10:02]Write 4 bytes [14:10:02]NVStorageSaveData done [14:10:02]ExternCall_PrintAddStr [14:10:02]wPrintStart [14:10:02]Write to MH i2c: 01 00 00 DA 3C 16 [14:10:02]Write i2c OK [14:10:02]MH_I2C_Read... [14:10:02]Read from MH i2c: 01 [14:10:02]MH_I2C_Read... [14:10:02]Read from MH i2c: 01 07 00 [14:10:02]MH_I2C_Read... [14:10:02]Read from MH i2c: 01 07 00 DA 3C 00 00 00 00 00 FF 0F 2B [14:10:02]RasterBufferAndPrint [14:10:02]line Счет N : (1)706449 [14:10:02]line ИНН: 02508201610067 [14:10:02]line Контрольно-Кассовый Чек [14:10:02]line ПРОДАЖА [14:10:02]line ТРК (МРК, ГНК) : 32 [14:10:02]line Товар: 2710124130 [14:10:02]line Аи-92-К-4 [14:10:02]line 8.970 * 66.90 [14:10:02]line = 600.09 [14:10:02]line НДС 12% НСП 1% [14:10:02]line > о реализуемом товаре [14:10:02]line ОКРУГЛЕНИЕ: -0.09 [14:10:02]line ИТОГО: 600.00 [14:10:02]line Внесено: 600.00 [14:10:02]line СДАЧА: 0.00 [14:10:02]line НСП 1% : 5.31 [14:10:02]line НДС 12% : 63.73 [14:10:02]line Наличными: 600.00 [14:10:02]line Безнал.: 0.00 [14:10:02]line Место: АЗС № 62 "Партнер Нефть" [14:10:02]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [14:10:02]line СНО: Общий режим [14:10:02]line Чек 106 03.06.2024 14:10 [14:10:02]line Смена: 324 ФФД: 1.0 [14:10:02]line ЗНМ: 0300000181 [14:10:02]line РНМ: 0000000000098096 [14:10:02]line Версия ККМ: 001 [14:10:02]line ФМ: 0000000000965400 [14:10:02]line ФД: 68360 [14:10:02]line ФПД: 163451222093437 [14:10:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T141006&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68360&fm=163451222093437&tin=02508201610067®Number=0000000000098096&sum=60000 [14:10:02]OFD Sender: Processing packet 68360 [packets to send 26, broken 25] [14:10:02]ProducePacketName [14:10:02]name=ofd_packets/00068360 [14:10:02]OFD Sender: To server: pG, [14:10:02]CommunicateWithHost lk.salyk.kg:30040 [14:10:02]ConnectInit lk.salyk.kg [14:10:02]written 0, free lines is 4095 [14:10:02]Connected sock=7 [14:10:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 77 57 07 01 46 A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 BE CE 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 08 0B 01 00 35 04 06 00 94 A8 74 07 EE 7D A2 60 DA 6D AB AB 7A 43 [14:10:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 8A 96 47 00 93 DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 08 0B 01 00 F4 03 04 00 B9 75 5D 66 B6 04 01 00 00 07 1D 82 98 A1 7F A2 C3 [14:10:02]CommunicateWithHost err = 0 [14:10:02]CheckOFDResponse [14:10:02]1017 (14) - 77093643461234 [14:10:02]1041 (16) - 0000000000965400 [14:10:02]1040 (4) - 68360 [14:10:02]1012 (4) - 03.06.2024 07:50 [14:10:02]1206 (1) - 0 [14:10:02]OFD Sender: Remove packet 68360 [14:10:02]ProducePacketName [14:10:02]name=ofd_packets/00068360 [14:10:02]NVStorageDeleteData [14:10:02]Write to MH i2c: 01 00 00 05 3D 42 [14:10:02]Write i2c OK [14:10:02]MH_I2C_Read... [14:10:02]Read from MH i2c: 01 [14:10:02]MH_I2C_Read... [14:10:02]Read from MH i2c: 01 07 00 [14:10:02]MH_I2C_Read... [14:10:02]Read from MH i2c: 01 07 00 05 3D 00 00 00 00 00 05 0D 5B [14:10:02]RasterBufferAndPrint [14:10:02]line [14:10:02]line [14:10:02]line [14:10:02]line [14:10:02]line [14:10:02]written 0, free lines is 3353 [14:10:02]MH_Cut [14:10:02]Write to MH i2c: D1 01 00 0C 3D 01 1B [14:10:02]Write i2c OK [14:10:02]MH_I2C_Read... [14:10:02]Read from MH i2c: D1 [14:10:02]MH_I2C_Read... [14:10:02]Read from MH i2c: D1 01 00 [14:10:02]MH_I2C_Read... [14:10:02]Read from MH i2c: D1 01 00 0C 3D 00 1A [14:10:02]Write to MH i2c: 01 00 00 0D 3D 4A [14:10:02]Write i2c OK [14:10:02]MH_I2C_Read... [14:10:03]OFD Sender: No OFD packet to send [14:10:03]*** Cut start [14:10:03]*** Partial cut [14:10:03]*** CUTSNS_PIN = 1 [14:10:03]*** CUTSNS_PIN = 0 [14:10:03]*** Brake cut motor [14:10:04]Read from MH i2c: 01 [14:10:04]MH_I2C_Read... [14:10:04]*** Stop cut motor [14:10:04]*** Cut end [14:10:04]Read from MH i2c: 01 07 00 [14:10:04]MH_I2C_Read... [14:10:04]Read from MH i2c: 01 07 00 0D 3D 00 00 00 00 00 FF 0F 5F [14:10:04]process_action close_receipt done [14:10:04]requested_data is exist [14:10:04]produce_requested_data [14:10:04]requested_item fm.sn is exist - process it [14:10:04]wFMCommunicate request_size=4 [14:10:04]MH_SAM_APDU [14:10:04]CAPDU: 80 11 00 00 [14:10:04]Write to MH i2c: E2 08 00 0E 3D 80 11 00 00 00 00 00 00 C5 [14:10:04]Write i2c OK [14:10:04]MH_I2C_Read... [14:10:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:10:04]Read from MH i2c: E2 [14:10:04]MH_I2C_Read... [14:10:04]Read from MH i2c: E2 17 00 [14:10:04]MH_I2C_Read... [14:10:04]Read from MH i2c: E2 17 00 0E 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 10 [14:10:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:10:04]wFMCommunicate OK [14:10:04]requested_item fd.num is exist - process it [14:10:04]SAM_PROTO_GetFieldsCounters [14:10:04]wFMCommunicate request_size=4 [14:10:04]MH_SAM_APDU [14:10:04]CAPDU: 80 13 00 00 [14:10:04]Write to MH i2c: E2 08 00 0F 3D 80 13 00 00 00 00 00 00 C8 [14:10:04]Write i2c OK [14:10:04]MH_I2C_Read... [14:10:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:10:04]Read from MH i2c: E2 [14:10:04]MH_I2C_Read... [14:10:04]Read from MH i2c: E2 62 00 [14:10:04]MH_I2C_Read... [14:10:04]Read from MH i2c: E2 62 00 0F 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 08 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 7F [14:10:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 08 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:10:04]wFMCommunicate OK [14:10:04]SAM_PROTO_GetFieldsCounters done [14:10:04]requested_item shift.num is exist - process it [14:10:04]requested_item shift.opened is exist - process it [14:10:04]req_shift_opened [14:10:04]FM_GetShiftState [14:10:04]SAM_PROTO_GetShiftState [14:10:04]wFMCommunicate request_size=4 [14:10:04]MH_SAM_APDU [14:10:04]CAPDU: 80 13 01 00 [14:10:04]Write to MH i2c: E2 08 00 10 3D 80 13 01 00 00 00 00 00 CA [14:10:04]Write i2c OK [14:10:04]MH_I2C_Read... [14:10:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:10:04]Read from MH i2c: E2 [14:10:04]MH_I2C_Read... [14:10:04]Read from MH i2c: E2 0E 00 [14:10:04]MH_I2C_Read... [14:10:04]Read from MH i2c: E2 0E 00 10 3D 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 A5 [14:10:04]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [14:10:04]wFMCommunicate OK [14:10:04]SAM_PROTO_GetShiftState done [14:10:04]FM_GetShiftState done [14:10:04]req_shift_opened done [14:10:04]requested_item shift.open_date is exist - process it [14:10:04]req_shift_open_date [14:10:04]req_shift_open_date done [14:10:04]produce_requested_data done [14:10:04]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68360,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [14:10:04]process_action_free close_receipt [14:10:04]json_value_free [14:10:04]json_value_free done [14:10:04]process_json_proto returns [14:10:04]Send response to host [14:10:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68360,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [14:10:04]free response buf [14:10:04]execute_script done [14:10:04]execute_script returns [14:10:04]free content buf [14:10:04]Sock 6.Close socket [14:10:04]Sock 6.Thread stoped [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:37]accept exits with 5 [14:10:37]New connection [14:10:37]New thread 3066686820 created [14:10:37]Thread 3066543460 joined [14:10:37]Waiting for new connection... [14:10:37] Sock 5.Parse request [14:10:37]Sock 5.Check first char [14:10:37]Sock 5.First char is OK [14:10:37]request: POST /json_proto HTTP/1.0 [14:10:37]Method: POST [14:10:37]URL: /json_proto [14:10:37]Method is POST - this is cgi request [14:10:37]url: /json_proto [14:10:37]query_string will be loaded in cgi processing [14:10:37]execute_cgi json_proto POST (null) [14:10:37]execute_cgi path=json_proto method=POST [14:10:37]POST find Content-Length [14:10:37]Host: 172.17.36.132:8080 [14:10:37]Content-Length: 833 [14:10:37]Content-Type: application/json [14:10:37] [14:10:37]POST finish read [14:10:37]Found Content-Length = 833 [14:10:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706448", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 7.370, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:10:37]execute_script... [14:10:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706448", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 7.370, "sum" : 500.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:10:37]POST & json_proto [14:10:37]process_json_proto [14:10:37]json parsed OK: [14:10:37]protocol is kg_v1.0 [14:10:37]action value=close_receipt [14:10:37]process_action close_receipt [14:10:37]cmd_close_receipt [14:10:37]MH_GetDate [14:10:37]Write to MH i2c: F0 00 00 11 3D 3D [14:10:37]Write i2c OK [14:10:37]MH_I2C_Read... [14:10:37]Read from MH i2c: F0 [14:10:37]MH_I2C_Read... [14:10:37]Read from MH i2c: F0 09 00 [14:10:37]MH_I2C_Read... [14:10:37]Read from MH i2c: F0 09 00 11 3D 00 E3 CE 5D 66 B2 22 B0 64 A2 [14:10:37]GetLastDocTimeStamp 1717423806 [14:10:37]current date 1717423843 [14:10:37]FM_GetShiftState [14:10:37]SAM_PROTO_GetShiftState [14:10:37]wFMCommunicate request_size=4 [14:10:37]MH_SAM_APDU [14:10:37]CAPDU: 80 13 01 00 [14:10:37]Write to MH i2c: E2 08 00 12 3D 80 13 01 00 00 00 00 00 CC [14:10:37]Write i2c OK [14:10:37]MH_I2C_Read... [14:10:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:10:37]Read from MH i2c: E2 [14:10:37]MH_I2C_Read... [14:10:37]Read from MH i2c: E2 0E 00 [14:10:37]MH_I2C_Read... [14:10:37]Read from MH i2c: E2 0E 00 12 3D 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 A7 [14:10:37]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [14:10:37]wFMCommunicate OK [14:10:37]SAM_PROTO_GetShiftState done [14:10:37]FM_GetShiftState done [14:10:37]opened in 1717378033 [14:10:37]opened+sec_in_day 1717464433 [14:10:37]quantity*price = 50042 [14:10:37]sum+1 = 50043 [14:10:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.42 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.42 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 107 03.06.2024 14:10 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68361 ФПД: 254522337803937 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T141043&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68361&fm=254522337803937&tin=02508201610067®Number=0000000000098096&sum=50042 [14:10:38]StoreToDocumentArchive [14:10:38]shift 324 fd 68361 [14:10:38]save to /storage/0324/doc_00068361 [14:10:38]save last doc name /storage/0324/doc_00068361 to /storage/kkm_last_doc_name [14:10:38]save OK [14:10:38]Clear old archive folders... [14:10:38]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:10:38]tlvbuf is 0046B790 [14:10:38]SAM_PROTO_ClearQueue [14:10:38]wFMCommunicate request_size=4 [14:10:38]MH_SAM_APDU [14:10:38]CAPDU: 80 09 00 00 [14:10:38]Write to MH i2c: E2 08 00 1F 3D 80 09 00 00 00 00 00 00 CE [14:10:38]Write i2c OK [14:10:38]MH_I2C_Read... [14:10:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:10:39]Read from MH i2c: E2 [14:10:39]MH_I2C_Read... [14:10:39]Read from MH i2c: E2 03 00 [14:10:39]MH_I2C_Read... [14:10:39]Read from MH i2c: E2 03 00 1F 3D 00 90 00 D0 [14:10:39]RAPDU: 90 00 [14:10:39]wFMCommunicate OK [14:10:39]SAM_PROTO_ClearQueue done [14:10:39]KKMCreateOFDPacket [14:10:39]OFDProtocolAddRootSTLVToBuf [14:10:39]FM_MakeSignedData [14:10:39]FM_MakeSignedData [14:10:39]SAM_PROTO_SignData [14:10:39]wFMCommunicate request_size=4 [14:10:39]MH_SAM_APDU [14:10:39]CAPDU: 80 0D 01 02 [14:10:39]Write to MH i2c: E2 08 00 20 3D 80 0D 01 02 00 00 00 00 D6 [14:10:39]Write i2c OK [14:10:39]MH_I2C_Read... [14:10:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:10:39]Read from MH i2c: E2 [14:10:39]MH_I2C_Read... [14:10:39]Read from MH i2c: E2 03 00 [14:10:39]MH_I2C_Read... [14:10:39]Read from MH i2c: E2 03 00 20 3D 00 90 00 D1 [14:10:39]RAPDU: 90 00 [14:10:39]wFMCommunicate OK [14:10:39]wFMCommunicate request_size=255 [14:10:39]MH_SAM_APDU [14:10:39]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 1C 00 00 00 00 00 37 04 06 00 86 1A 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 7A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 E3 CE 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 09 0B 01 00 35 04 06 00 [14:10:39]Write to MH i2c: E2 02 01 21 3D 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 1C 00 00 00 00 00 37 04 06 00 86 1A 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 7A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 E3 CE 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 09 0B 01 00 35 04 06 00 00 00 11 [14:10:39]Write i2c OK [14:10:39]MH_I2C_Read... [14:10:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:10:39]Read from MH i2c: E2 [14:10:39]MH_I2C_Read... [14:10:39]Read from MH i2c: E2 03 00 [14:10:39]MH_I2C_Read... [14:10:39]Read from MH i2c: E2 03 00 21 3D 00 90 00 D2 [14:10:39]RAPDU: 90 00 [14:10:39]wFMCommunicate OK [14:10:39]wFMCommunicate request_size=11 [14:10:39]MH_SAM_APDU [14:10:39]CAPDU: 80 0D 02 02 06 E7 7C 99 88 3E A1 [14:10:39]Write to MH i2c: E2 0E 00 22 3D 80 0D 02 02 06 00 E7 7C 99 88 3E A1 00 00 48 [14:10:39]Write i2c OK [14:10:39]MH_I2C_Read... [14:10:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:10:39]Read from MH i2c: E2 [14:10:39]MH_I2C_Read... [14:10:39]Read from MH i2c: E2 03 00 [14:10:39]MH_I2C_Read... [14:10:39]Read from MH i2c: E2 03 00 22 3D 00 90 00 D3 [14:10:39]RAPDU: 90 00 [14:10:39]wFMCommunicate OK [14:10:39]wFMCommunicate request_size=4 [14:10:39]MH_SAM_APDU [14:10:39]CAPDU: 80 0D 03 02 [14:10:39]Write to MH i2c: E2 08 00 23 3D 80 0D 03 02 00 00 00 00 DB [14:10:39]Write i2c OK [14:10:39]MH_I2C_Read... [14:10:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:10:39]Read from MH i2c: E2 [14:10:39]MH_I2C_Read... [14:10:39]Read from MH i2c: E2 0B 00 [14:10:39]MH_I2C_Read... [14:10:39]Read from MH i2c: E2 0B 00 23 3D 00 EC 87 2F B6 DF 63 C7 77 90 00 B4 [14:10:39]RAPDU: EC 87 2F B6 DF 63 C7 77 90 00 [14:10:39]wFMCommunicate OK [14:10:39]SAM_PROTO_SignData done [14:10:39]FM_MakeSignedData done [14:10:39]CreateOFDProtocolMessage [14:10:39]wFMCommunicate request_size=4 [14:10:39]MH_SAM_APDU [14:10:39]CAPDU: 80 11 00 00 [14:10:39]Write to MH i2c: E2 08 00 24 3D 80 11 00 00 00 00 00 00 DB [14:10:39]Write i2c OK [14:10:39]MH_I2C_Read... [14:10:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:10:39]Read from MH i2c: E2 [14:10:39]MH_I2C_Read... [14:10:39]Read from MH i2c: E2 17 00 [14:10:39]MH_I2C_Read... [14:10:39]Read from MH i2c: E2 17 00 24 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 26 [14:10:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:10:39]wFMCommunicate OK [14:10:39]CreateOFDProtocolMessage done [14:10:39]OFDSenderStorePacket 68361 [14:10:39]StoreOFDPacket docnum=68361 [14:10:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 0C CC 08 01 18 92 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 1C 00 00 00 00 00 37 04 06 00 86 1A 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 7A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 E3 CE 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 09 0B 01 00 35 04 06 00 E7 7C 99 88 3E A1 EC 87 2F B6 DF 63 C7 77 [14:10:39]CheckFolder [14:10:39]dirname=/storage/ofd_packets [14:10:39]CheckFolder done [14:10:39]ProducePacketName [14:10:39]name=ofd_packets/00068361 [14:10:39]NVStorageSaveData ofd_packets/00068361 [14:10:39]File name is /storage/ofd_packets/00068361 [14:10:39]Write 302 bytes [14:10:39]NVStorageSaveData done [14:10:39]OFDSenderStorePacket done [14:10:39]KKMCreateOFDPacket done [14:10:39]NVStorageSaveData kkm_last_timestamp [14:10:39]File name is /storage/kkm_last_timestamp [14:10:39]Write 4 bytes [14:10:39]NVStorageSaveData done [14:10:39]ExternCall_PrintAddStr [14:10:39]wPrintStart [14:10:39]Write to MH i2c: 01 00 00 25 3D 62 [14:10:39]Write i2c OK [14:10:39]MH_I2C_Read... [14:10:39]Read from MH i2c: 01 [14:10:39]MH_I2C_Read... [14:10:39]Read from MH i2c: 01 07 00 [14:10:39]MH_I2C_Read... [14:10:39]Read from MH i2c: 01 07 00 25 3D 00 00 00 00 00 FF 0F 77 [14:10:39]RasterBufferAndPrint [14:10:39]line Счет N : (1)706448 [14:10:39]line ИНН: 02508201610067 [14:10:39]line Контрольно-Кассовый Чек [14:10:39]line ПРОДАЖА [14:10:39]line ТРК (МРК, ГНК) : 41 [14:10:39]line Товар: 2710124130 [14:10:39]line Super-92-К-5 [14:10:39]line 7.370 * 67.90 [14:10:39]line = 500.42 [14:10:39]line НДС 12% НСП 1% [14:10:39]line > о реализуемом товаре [14:10:39]line ИТОГО: 500.42 [14:10:39]line НСП 1% : 4.43 [14:10:39]line НДС 12% : 53.14 [14:10:39]line Наличными: 0.00 [14:10:39]line Безнал.: 500.42 [14:10:39]line Место: АЗС № 62 "Партнер Нефть" [14:10:39]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [14:10:39]line СНО: Общий режим [14:10:39]line Чек 107 03.06.2024 14:10 [14:10:39]line Смена: 324 ФФД: 1.0 [14:10:39]line ЗНМ: 0300000181 [14:10:39]line РНМ: 0000000000098096 [14:10:39]line Версия ККМ: 001 [14:10:39]line Платежная система: АКБ Кыргызстан [14:10:39]line ФМ: 0000000000965400 [14:10:39]line ФД: 68361 [14:10:39]line ФПД: 254522337803937 [14:10:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T141043&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68361&fm=254522337803937&tin=02508201610067®Number=0000000000098096&sum=50042 [14:10:39]OFD Sender: Processing packet 68361 [packets to send 26, broken 25] [14:10:39]ProducePacketName [14:10:39]name=ofd_packets/00068361 [14:10:39]OFD Sender: To server: pG, [14:10:39]CommunicateWithHost lk.salyk.kg:30040 [14:10:39]ConnectInit lk.salyk.kg [14:10:39]written 0, free lines is 4095 [14:10:39]Connected sock=7 [14:10:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 0C CC 08 01 18 92 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 1C 00 00 00 00 00 37 04 06 00 86 1A 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 7A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 E3 CE 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 09 0B 01 00 35 04 06 00 E7 7C 99 88 3E A1 EC 87 2F B6 DF 63 C7 77 [14:10:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 A3 4F 47 00 B1 E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 09 0B 01 00 F4 03 04 00 DF 75 5D 66 B6 04 01 00 00 8D AA 88 7F E4 70 E2 CC [14:10:40]CommunicateWithHost err = 0 [14:10:40]CheckOFDResponse [14:10:40]1017 (14) - 77093643461234 [14:10:40]1041 (16) - 0000000000965400 [14:10:40]1040 (4) - 68361 [14:10:40]1012 (4) - 03.06.2024 07:50 [14:10:40]1206 (1) - 0 [14:10:40]OFD Sender: Remove packet 68361 [14:10:40]ProducePacketName [14:10:40]name=ofd_packets/00068361 [14:10:40]NVStorageDeleteData [14:10:40]Write to MH i2c: 01 00 00 4F 3D 8C [14:10:40]Write i2c OK [14:10:40]MH_I2C_Read... [14:10:40]Read from MH i2c: 01 [14:10:40]MH_I2C_Read... [14:10:40]Read from MH i2c: 01 07 00 [14:10:40]MH_I2C_Read... [14:10:40]Read from MH i2c: 01 07 00 4F 3D 00 00 00 00 00 03 0D A3 [14:10:40]RasterBufferAndPrint [14:10:40]line [14:10:40]line [14:10:40]line [14:10:40]line [14:10:40]line [14:10:40]written 0, free lines is 3337 [14:10:40]MH_Cut [14:10:40]Write to MH i2c: D1 01 00 56 3D 01 65 [14:10:40]Write i2c OK [14:10:40]MH_I2C_Read... [14:10:40]Read from MH i2c: D1 [14:10:40]MH_I2C_Read... [14:10:40]Read from MH i2c: D1 01 00 [14:10:40]MH_I2C_Read... [14:10:40]Read from MH i2c: D1 01 00 56 3D 00 64 [14:10:40]Write to MH i2c: 01 00 00 57 3D 94 [14:10:40]Write i2c OK [14:10:40]MH_I2C_Read... [14:10:40]OFD Sender: No OFD packet to send [14:10:41]*** Cut start [14:10:41]*** Partial cut [14:10:41]*** CUTSNS_PIN = 1 [14:10:41]*** CUTSNS_PIN = 0 [14:10:41]*** Brake cut motor [14:10:41]Read from MH i2c: 01 [14:10:41]MH_I2C_Read... [14:10:41]*** Stop cut motor [14:10:41]*** Cut end [14:10:41]Read from MH i2c: 01 07 00 [14:10:41]MH_I2C_Read... [14:10:41]Read from MH i2c: 01 07 00 57 3D 00 00 00 00 00 FF 0F A9 [14:10:41]process_action close_receipt done [14:10:41]requested_data is exist [14:10:41]produce_requested_data [14:10:41]requested_item fm.sn is exist - process it [14:10:41]wFMCommunicate request_size=4 [14:10:41]MH_SAM_APDU [14:10:41]CAPDU: 80 11 00 00 [14:10:41]Write to MH i2c: E2 08 00 58 3D 80 11 00 00 00 00 00 00 0F [14:10:41]Write i2c OK [14:10:41]MH_I2C_Read... [14:10:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:10:41]Read from MH i2c: E2 [14:10:41]MH_I2C_Read... [14:10:41]Read from MH i2c: E2 17 00 [14:10:41]MH_I2C_Read... [14:10:41]Read from MH i2c: E2 17 00 58 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 5A [14:10:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:10:41]wFMCommunicate OK [14:10:41]requested_item fd.num is exist - process it [14:10:41]SAM_PROTO_GetFieldsCounters [14:10:41]wFMCommunicate request_size=4 [14:10:41]MH_SAM_APDU [14:10:41]CAPDU: 80 13 00 00 [14:10:41]Write to MH i2c: E2 08 00 59 3D 80 13 00 00 00 00 00 00 12 [14:10:41]Write i2c OK [14:10:41]MH_I2C_Read... [14:10:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:10:41]Read from MH i2c: E2 [14:10:41]MH_I2C_Read... [14:10:41]Read from MH i2c: E2 62 00 [14:10:41]MH_I2C_Read... [14:10:41]Read from MH i2c: E2 62 00 59 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 09 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 CD [14:10:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 09 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:10:41]wFMCommunicate OK [14:10:41]SAM_PROTO_GetFieldsCounters done [14:10:41]requested_item shift.num is exist - process it [14:10:41]requested_item shift.opened is exist - process it [14:10:41]req_shift_opened [14:10:41]FM_GetShiftState [14:10:41]SAM_PROTO_GetShiftState [14:10:41]wFMCommunicate request_size=4 [14:10:41]MH_SAM_APDU [14:10:41]CAPDU: 80 13 01 00 [14:10:41]Write to MH i2c: E2 08 00 5A 3D 80 13 01 00 00 00 00 00 14 [14:10:41]Write i2c OK [14:10:41]MH_I2C_Read... [14:10:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:10:41]Read from MH i2c: E2 [14:10:41]MH_I2C_Read... [14:10:41]Read from MH i2c: E2 0E 00 [14:10:41]MH_I2C_Read... [14:10:41]Read from MH i2c: E2 0E 00 5A 3D 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 EF [14:10:41]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [14:10:41]wFMCommunicate OK [14:10:41]SAM_PROTO_GetShiftState done [14:10:41]FM_GetShiftState done [14:10:41]req_shift_opened done [14:10:41]requested_item shift.open_date is exist - process it [14:10:41]req_shift_open_date [14:10:41]req_shift_open_date done [14:10:41]produce_requested_data done [14:10:41]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68361,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [14:10:41]process_action_free close_receipt [14:10:41]json_value_free [14:10:41]json_value_free done [14:10:41]process_json_proto returns [14:10:41]Send response to host [14:10:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68361,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [14:10:41]free response buf [14:10:41]execute_script done [14:10:41]execute_script returns [14:10:41]free content buf [14:10:41]Sock 5.Close socket [14:10:41]Sock 5.Thread stoped [14:10:45]OFD Sender: No OFD packet to send [14:10:50]OFD Sender: No OFD packet to send [14:10:55]OFD Sender: No OFD packet to send [14:11:00]OFD Sender: No OFD packet to send [14:11:05]OFD Sender: No OFD packet to send [14:11:10]OFD Sender: No OFD packet to send [14:11:15]OFD Sender: No OFD packet to send [14:11:20]OFD Sender: No OFD packet to send [14:11:25]OFD Sender: No OFD packet to send [14:11:30]OFD Sender: No OFD packet to send [14:11:35]OFD Sender: No OFD packet to send [14:11:40]OFD Sender: No OFD packet to send [14:11:41]accept exits with 6 [14:11:41]New connection [14:11:41]New thread 3066543460 created [14:11:41]Thread 3066686820 joined [14:11:41]Waiting for new connection... [14:11:41] Sock 6.Parse request [14:11:41]Sock 6.Check first char [14:11:41]Sock 6.First char is OK [14:11:41]request: POST /json_proto HTTP/1.0 [14:11:41]Method: POST [14:11:41]URL: /json_proto [14:11:41]Method is POST - this is cgi request [14:11:41]url: /json_proto [14:11:41]query_string will be loaded in cgi processing [14:11:41]execute_cgi json_proto POST (null) [14:11:41]execute_cgi path=json_proto method=POST [14:11:41]POST find Content-Length [14:11:41]Host: 172.17.36.132:8080 [14:11:41]Content-Length: 1150 [14:11:41]Content-Type: application/json [14:11:41] [14:11:41]POST finish read [14:11:41]Found Content-Length = 1150 [14:11:41]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706451\u000A03.06.2024 13:48\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-4\u000A 30.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 2187.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30111845\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:11:41]execute_script... [14:11:41]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706451\u000A03.06.2024 13:48\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-4\u000A 30.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 2187.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30111845\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:11:41]POST & json_proto [14:11:41]process_json_proto [14:11:41]json parsed OK: [14:11:41]protocol is kg_v1.0 [14:11:41]action value=print_text [14:11:41]process_action print_text [14:11:41]cmd_print_text [14:11:41]ExternCall_PrintAddStr [14:11:41]wPrintStart [14:11:41]Write to MH i2c: 01 00 00 5B 3D 98 [14:11:41]Write i2c OK [14:11:41]MH_I2C_Read... [14:11:41]Read from MH i2c: 01 [14:11:41]MH_I2C_Read... [14:11:41]Read from MH i2c: 01 07 00 [14:11:41]MH_I2C_Read... [14:11:41]Read from MH i2c: 01 07 00 5B 3D 00 00 00 00 00 FF 0F AD [14:11:41]RasterBufferAndPrint [14:11:41]line *****ТОВАРНЫЙ ЧЕК***** [14:11:41]line АЗС 62 [14:11:41]line Партнер нефть [14:11:41]line 02508201610067 [14:11:41]line Кассир : Балаев А. [14:11:41]line Счет N : (1)706451 [14:11:41]line 03.06.2024 13:48 [14:11:41]line ПРОДАЖА [14:11:41]line ТРК (МРК, ГНК): 21 [14:11:41]line Вид ГСМ : 2710194210 [14:11:41]line ДТ(л)-К-4 [14:11:41]line 30.000 x 72.90 [14:11:41]line ИТОГ: 2187.00 [14:11:41]line Тип оплаты: Талоны: ТК ГПНА Online [14:11:41]line 30111845 [14:11:41]line ______________________ [14:11:41]line (подпись) [14:11:41]written 0, free lines is 4095 [14:11:41]Write to MH i2c: 01 00 00 6F 3D AC [14:11:41]Write i2c OK [14:11:41]MH_I2C_Read... [14:11:41]Read from MH i2c: 01 [14:11:41]MH_I2C_Read... [14:11:41]Read from MH i2c: 01 07 00 [14:11:41]MH_I2C_Read... [14:11:41]Read from MH i2c: 01 07 00 6F 3D 00 00 00 00 00 10 0E D1 [14:11:41]RasterBufferAndPrint [14:11:41]line [14:11:41]line [14:11:41]line [14:11:41]line [14:11:41]line [14:11:41]written 0, free lines is 3601 [14:11:41]MH_Cut [14:11:41]Write to MH i2c: D1 01 00 76 3D 01 85 [14:11:41]Write i2c OK [14:11:41]MH_I2C_Read... [14:11:41]Read from MH i2c: D1 [14:11:41]MH_I2C_Read... [14:11:41]Read from MH i2c: D1 01 00 [14:11:41]MH_I2C_Read... [14:11:41]Read from MH i2c: D1 01 00 76 3D 00 84 [14:11:41]Write to MH i2c: 01 00 00 77 3D B4 [14:11:41]Write i2c OK [14:11:41]MH_I2C_Read... [14:11:41]*** Cut start [14:11:41]*** Partial cut [14:11:41]*** CUTSNS_PIN = 1 [14:11:41]*** CUTSNS_PIN = 0 [14:11:42]*** Brake cut motor [14:11:42]Read from MH i2c: 01 [14:11:42]MH_I2C_Read... [14:11:42]*** Stop cut motor [14:11:42]*** Cut end [14:11:42]Read from MH i2c: 01 07 00 [14:11:42]MH_I2C_Read... [14:11:42]Read from MH i2c: 01 07 00 77 3D 00 00 00 00 00 FF 0F C9 [14:11:42]process_action print_text done [14:11:42]requested_data is exist [14:11:42]produce_requested_data [14:11:42]requested_item fm.sn is exist - process it [14:11:42]wFMCommunicate request_size=4 [14:11:42]MH_SAM_APDU [14:11:42]CAPDU: 80 11 00 00 [14:11:42]Write to MH i2c: E2 08 00 78 3D 80 11 00 00 00 00 00 00 2F [14:11:42]Write i2c OK [14:11:42]MH_I2C_Read... [14:11:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:11:42]Read from MH i2c: E2 [14:11:42]MH_I2C_Read... [14:11:42]Read from MH i2c: E2 17 00 [14:11:42]MH_I2C_Read... [14:11:42]Read from MH i2c: E2 17 00 78 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 7A [14:11:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:11:42]wFMCommunicate OK [14:11:42]requested_item fd.num is exist - process it [14:11:42]SAM_PROTO_GetFieldsCounters [14:11:42]wFMCommunicate request_size=4 [14:11:42]MH_SAM_APDU [14:11:42]CAPDU: 80 13 00 00 [14:11:42]Write to MH i2c: E2 08 00 79 3D 80 13 00 00 00 00 00 00 32 [14:11:42]Write i2c OK [14:11:42]MH_I2C_Read... [14:11:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:11:42]Read from MH i2c: E2 [14:11:42]MH_I2C_Read... [14:11:42]Read from MH i2c: E2 62 00 [14:11:42]MH_I2C_Read... [14:11:42]Read from MH i2c: E2 62 00 79 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 09 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 ED [14:11:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 09 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:11:42]wFMCommunicate OK [14:11:42]SAM_PROTO_GetFieldsCounters done [14:11:42]requested_item shift.num is exist - process it [14:11:42]requested_item shift.opened is exist - process it [14:11:42]req_shift_opened [14:11:42]FM_GetShiftState [14:11:42]SAM_PROTO_GetShiftState [14:11:42]wFMCommunicate request_size=4 [14:11:42]MH_SAM_APDU [14:11:42]CAPDU: 80 13 01 00 [14:11:42]Write to MH i2c: E2 08 00 7A 3D 80 13 01 00 00 00 00 00 34 [14:11:42]Write i2c OK [14:11:42]MH_I2C_Read... [14:11:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:11:42]Read from MH i2c: E2 [14:11:42]MH_I2C_Read... [14:11:42]Read from MH i2c: E2 0E 00 [14:11:42]MH_I2C_Read... [14:11:42]Read from MH i2c: E2 0E 00 7A 3D 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 0F [14:11:42]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [14:11:42]wFMCommunicate OK [14:11:42]SAM_PROTO_GetShiftState done [14:11:42]FM_GetShiftState done [14:11:42]req_shift_opened done [14:11:42]requested_item shift.open_date is exist - process it [14:11:42]req_shift_open_date [14:11:42]req_shift_open_date done [14:11:42]produce_requested_data done [14:11:42]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68361,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [14:11:42]process_action_free print_text [14:11:42]json_value_free [14:11:42]json_value_free done [14:11:42]process_json_proto returns [14:11:42]Send response to host [14:11:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68361,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [14:11:42]free response buf [14:11:42]execute_script done [14:11:42]execute_script returns [14:11:42]free content buf [14:11:42]Sock 6.Close socket [14:11:42]Sock 6.Thread stoped [14:11:45]OFD Sender: No OFD packet to send [14:11:50]OFD Sender: No OFD packet to send [14:11:51]accept exits with 5 [14:11:51]New connection [14:11:51]New thread 3066686820 created [14:11:51]Thread 3066543460 joined [14:11:51]Waiting for new connection... [14:11:51] Sock 5.Parse request [14:11:51]Sock 5.Check first char [14:11:51]Sock 5.First char is OK [14:11:51]request: POST /json_proto HTTP/1.0 [14:11:51]Method: POST [14:11:51]URL: /json_proto [14:11:51]Method is POST - this is cgi request [14:11:51]url: /json_proto [14:11:51]query_string will be loaded in cgi processing [14:11:51]execute_cgi json_proto POST (null) [14:11:51]execute_cgi path=json_proto method=POST [14:11:51]POST find Content-Length [14:11:51]Host: 172.17.36.132:8080 [14:11:51]Content-Length: 678 [14:11:51]Content-Type: application/json [14:11:51] [14:11:51]POST finish read [14:11:51]Found Content-Length = 678 [14:11:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706452", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:11:51]execute_script... [14:11:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706452", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:11:51]POST & json_proto [14:11:51]process_json_proto [14:11:51]json parsed OK: [14:11:51]protocol is kg_v1.0 [14:11:51]action value=close_receipt [14:11:51]process_action close_receipt [14:11:51]cmd_close_receipt [14:11:51]MH_GetDate [14:11:51]Write to MH i2c: F0 00 00 7B 3D A7 [14:11:51]Write i2c OK [14:11:51]MH_I2C_Read... [14:11:51]Read from MH i2c: F0 [14:11:51]MH_I2C_Read... [14:11:51]Read from MH i2c: F0 09 00 [14:11:51]MH_I2C_Read... [14:11:51]Read from MH i2c: F0 09 00 7B 3D 00 2D CF 5D 66 B2 22 B0 64 57 [14:11:51]GetLastDocTimeStamp 1717423843 [14:11:51]current date 1717423917 [14:11:51]FM_GetShiftState [14:11:51]SAM_PROTO_GetShiftState [14:11:51]wFMCommunicate request_size=4 [14:11:51]MH_SAM_APDU [14:11:51]CAPDU: 80 13 01 00 [14:11:51]Write to MH i2c: E2 08 00 7C 3D 80 13 01 00 00 00 00 00 36 [14:11:51]Write i2c OK [14:11:51]MH_I2C_Read... [14:11:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:11:51]Read from MH i2c: E2 [14:11:51]MH_I2C_Read... [14:11:51]Read from MH i2c: E2 0E 00 [14:11:51]MH_I2C_Read... [14:11:51]Read from MH i2c: E2 0E 00 7C 3D 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 11 [14:11:51]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [14:11:51]wFMCommunicate OK [14:11:51]SAM_PROTO_GetShiftState done [14:11:51]FM_GetShiftState done [14:11:51]opened in 1717378033 [14:11:51]opened+sec_in_day 1717464433 [14:11:51]quantity*price = 70044 [14:11:51]sum+1 = 70045 [14:11:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 108 03.06.2024 14:11 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68362 ФПД: 263114923684264 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T141157&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68362&fm=263114923684264&tin=02508201610067®Number=0000000000098096&sum=70000 [14:11:52]StoreToDocumentArchive [14:11:52]shift 324 fd 68362 [14:11:52]save to /storage/0324/doc_00068362 [14:11:52]save last doc name /storage/0324/doc_00068362 to /storage/kkm_last_doc_name [14:11:52]save OK [14:11:52]Clear old archive folders... [14:11:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:11:52]tlvbuf is 001FC880 [14:11:52]SAM_PROTO_ClearQueue [14:11:52]wFMCommunicate request_size=4 [14:11:52]MH_SAM_APDU [14:11:52]CAPDU: 80 09 00 00 [14:11:52]Write to MH i2c: E2 08 00 89 3D 80 09 00 00 00 00 00 00 38 [14:11:52]Write i2c OK [14:11:52]MH_I2C_Read... [14:11:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:11:52]Read from MH i2c: E2 [14:11:52]MH_I2C_Read... [14:11:52]Read from MH i2c: E2 03 00 [14:11:52]MH_I2C_Read... [14:11:52]Read from MH i2c: E2 03 00 89 3D 00 90 00 3A [14:11:52]RAPDU: 90 00 [14:11:52]wFMCommunicate OK [14:11:52]SAM_PROTO_ClearQueue done [14:11:52]KKMCreateOFDPacket [14:11:52]OFDProtocolAddRootSTLVToBuf [14:11:52]FM_MakeSignedData [14:11:52]FM_MakeSignedData [14:11:52]SAM_PROTO_SignData [14:11:52]wFMCommunicate request_size=4 [14:11:52]MH_SAM_APDU [14:11:52]CAPDU: 80 0D 01 02 [14:11:52]Write to MH i2c: E2 08 00 8A 3D 80 0D 01 02 00 00 00 00 40 [14:11:52]Write i2c OK [14:11:52]MH_I2C_Read... [14:11:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:11:52]Read from MH i2c: E2 [14:11:52]MH_I2C_Read... [14:11:52]Read from MH i2c: E2 03 00 [14:11:52]MH_I2C_Read... [14:11:52]Read from MH i2c: E2 03 00 8A 3D 00 90 00 3B [14:11:52]RAPDU: 90 00 [14:11:52]wFMCommunicate OK [14:11:52]wFMCommunicate request_size=255 [14:11:52]MH_SAM_APDU [14:11:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 2D CF 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 0A 0B 01 00 35 04 06 00 EF [14:11:52]Write to MH i2c: E2 02 01 8B 3D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 2D CF 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 0A 0B 01 00 35 04 06 00 EF 00 00 52 [14:11:52]Write i2c OK [14:11:52]MH_I2C_Read... [14:11:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:11:53]Read from MH i2c: E2 [14:11:53]MH_I2C_Read... [14:11:53]Read from MH i2c: E2 03 00 [14:11:53]MH_I2C_Read... [14:11:53]Read from MH i2c: E2 03 00 8B 3D 00 90 00 3C [14:11:53]RAPDU: 90 00 [14:11:53]wFMCommunicate OK [14:11:53]wFMCommunicate request_size=10 [14:11:53]MH_SAM_APDU [14:11:53]CAPDU: 80 0D 02 02 05 4D 37 8F B1 A8 [14:11:53]Write to MH i2c: E2 0D 00 8C 3D 80 0D 02 02 05 00 4D 37 8F B1 A8 00 00 B9 [14:11:53]Write i2c OK [14:11:53]MH_I2C_Read... [14:11:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:11:53]Read from MH i2c: E2 [14:11:53]MH_I2C_Read... [14:11:53]Read from MH i2c: E2 03 00 [14:11:53]MH_I2C_Read... [14:11:53]Read from MH i2c: E2 03 00 8C 3D 00 90 00 3D [14:11:53]RAPDU: 90 00 [14:11:53]wFMCommunicate OK [14:11:53]wFMCommunicate request_size=4 [14:11:53]MH_SAM_APDU [14:11:53]CAPDU: 80 0D 03 02 [14:11:53]Write to MH i2c: E2 08 00 8D 3D 80 0D 03 02 00 00 00 00 45 [14:11:53]Write i2c OK [14:11:53]MH_I2C_Read... [14:11:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:11:53]Read from MH i2c: E2 [14:11:53]MH_I2C_Read... [14:11:53]Read from MH i2c: E2 0B 00 [14:11:53]MH_I2C_Read... [14:11:53]Read from MH i2c: E2 0B 00 8D 3D 00 72 C0 A0 72 9F 71 63 D6 90 00 D3 [14:11:53]RAPDU: 72 C0 A0 72 9F 71 63 D6 90 00 [14:11:53]wFMCommunicate OK [14:11:53]SAM_PROTO_SignData done [14:11:53]FM_MakeSignedData done [14:11:53]CreateOFDProtocolMessage [14:11:53]wFMCommunicate request_size=4 [14:11:53]MH_SAM_APDU [14:11:53]CAPDU: 80 11 00 00 [14:11:53]Write to MH i2c: E2 08 00 8E 3D 80 11 00 00 00 00 00 00 45 [14:11:53]Write i2c OK [14:11:53]MH_I2C_Read... [14:11:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:11:53]Read from MH i2c: E2 [14:11:53]MH_I2C_Read... [14:11:53]Read from MH i2c: E2 17 00 [14:11:53]MH_I2C_Read... [14:11:53]Read from MH i2c: E2 17 00 8E 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 90 [14:11:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:11:53]wFMCommunicate OK [14:11:53]CreateOFDProtocolMessage done [14:11:53]OFDSenderStorePacket 68362 [14:11:53]StoreOFDPacket docnum=68362 [14:11:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 D3 3F 07 01 BA AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 2D CF 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 0A 0B 01 00 35 04 06 00 EF 4D 37 8F B1 A8 72 C0 A0 72 9F 71 63 D6 [14:11:53]CheckFolder [14:11:53]dirname=/storage/ofd_packets [14:11:53]CheckFolder done [14:11:53]ProducePacketName [14:11:53]name=ofd_packets/00068362 [14:11:53]NVStorageSaveData ofd_packets/00068362 [14:11:53]File name is /storage/ofd_packets/00068362 [14:11:53]Write 301 bytes [14:11:53]NVStorageSaveData done [14:11:53]OFDSenderStorePacket done [14:11:53]KKMCreateOFDPacket done [14:11:53]NVStorageSaveData kkm_last_timestamp [14:11:53]File name is /storage/kkm_last_timestamp [14:11:53]Write 4 bytes [14:11:53]NVStorageSaveData done [14:11:53]ExternCall_PrintAddStr [14:11:53]wPrintStart [14:11:53]Write to MH i2c: 01 00 00 8F 3D CC [14:11:53]Write i2c OK [14:11:53]MH_I2C_Read... [14:11:53]Read from MH i2c: 01 [14:11:53]MH_I2C_Read... [14:11:53]Read from MH i2c: 01 07 00 [14:11:53]MH_I2C_Read... [14:11:53]Read from MH i2c: 01 07 00 8F 3D 00 00 00 00 00 FF 0F E1 [14:11:53]RasterBufferAndPrint [14:11:53]line Счет N : (1)706452 [14:11:53]line ИНН: 02508201610067 [14:11:53]line Контрольно-Кассовый Чек [14:11:53]line ПРОДАЖА [14:11:53]line ТРК (МРК, ГНК) : 53 [14:11:53]line Товар: 2710124130 [14:11:53]line Аи-92-К-4 [14:11:53]line 10.470 * 66.90 [14:11:53]line = 700.44 [14:11:53]line НДС 12% НСП 1% [14:11:53]line > о реализуемом товаре [14:11:53]line ОКРУГЛЕНИЕ: -0.44 [14:11:53]line ИТОГО: 700.00 [14:11:53]line Внесено: 700.00 [14:11:53]line СДАЧА: 0.00 [14:11:53]line НСП 1% : 6.20 [14:11:53]line НДС 12% : 74.38 [14:11:53]line Наличными: 700.00 [14:11:53]line Безнал.: 0.00 [14:11:53]line Место: АЗС № 62 "Партнер Нефть" [14:11:53]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [14:11:53]line СНО: Общий режим [14:11:53]line Чек 108 03.06.2024 14:11 [14:11:53]line Смена: 324 ФФД: 1.0 [14:11:53]line ЗНМ: 0300000181 [14:11:53]line РНМ: 0000000000098096 [14:11:53]line Версия ККМ: 001 [14:11:53]line ФМ: 0000000000965400 [14:11:53]line ФД: 68362 [14:11:53]line ФПД: 263114923684264 [14:11:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T141157&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68362&fm=263114923684264&tin=02508201610067®Number=0000000000098096&sum=70000 [14:11:53]OFD Sender: Processing packet 68362 [packets to send 26, broken 25] [14:11:53]ProducePacketName [14:11:53]name=ofd_packets/00068362 [14:11:53]OFD Sender: To server: pG, [14:11:53]CommunicateWithHost lk.salyk.kg:30040 [14:11:53]ConnectInit lk.salyk.kg [14:11:53]written 0, free lines is 4095 [14:11:54]Write to MH i2c: 01 00 00 BA 3D F7 [14:11:54]Write i2c OK [14:11:54]MH_I2C_Read... [14:11:54]Read from MH i2c: 01 [14:11:54]MH_I2C_Read... [14:11:54]Read from MH i2c: 01 07 00 [14:11:54]MH_I2C_Read... [14:11:54]Read from MH i2c: 01 07 00 BA 3D 00 00 00 00 00 E4 0C EE [14:11:54]RasterBufferAndPrint [14:11:54]line [14:11:54]line [14:11:54]line [14:11:54]line [14:11:54]line [14:11:54]written 0, free lines is 3306 [14:11:54]MH_Cut [14:11:54]Write to MH i2c: D1 01 00 C1 3D 01 D0 [14:11:54]Write i2c OK [14:11:54]MH_I2C_Read... [14:11:54]Read from MH i2c: D1 [14:11:54]MH_I2C_Read... [14:11:54]Read from MH i2c: D1 01 00 [14:11:54]MH_I2C_Read... [14:11:54]Read from MH i2c: D1 01 00 C1 3D 00 CF [14:11:54]Write to MH i2c: 01 00 00 C2 3D FF [14:11:54]Write i2c OK [14:11:54]MH_I2C_Read... [14:11:54]*** Cut start [14:11:54]*** Partial cut [14:11:54]*** CUTSNS_PIN = 1 [14:11:54]*** CUTSNS_PIN = 0 [14:11:55]*** Brake cut motor [14:11:55]Read from MH i2c: 01 [14:11:55]MH_I2C_Read... [14:11:55]*** Stop cut motor [14:11:55]*** Cut end [14:11:55]Read from MH i2c: 01 07 00 [14:11:55]MH_I2C_Read... [14:11:55]Read from MH i2c: 01 07 00 C2 3D 00 00 00 00 00 FF 0F 14 [14:11:55]process_action close_receipt done [14:11:55]requested_data is exist [14:11:55]produce_requested_data [14:11:55]requested_item fm.sn is exist - process it [14:11:55]wFMCommunicate request_size=4 [14:11:55]MH_SAM_APDU [14:11:55]CAPDU: 80 11 00 00 [14:11:55]Write to MH i2c: E2 08 00 C3 3D 80 11 00 00 00 00 00 00 7A [14:11:55]Write i2c OK [14:11:55]MH_I2C_Read... [14:11:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:11:55]Read from MH i2c: E2 [14:11:55]MH_I2C_Read... [14:11:55]Read from MH i2c: E2 17 00 [14:11:55]MH_I2C_Read... [14:11:55]Read from MH i2c: E2 17 00 C3 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 C5 [14:11:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:11:55]wFMCommunicate OK [14:11:55]requested_item fd.num is exist - process it [14:11:55]SAM_PROTO_GetFieldsCounters [14:11:55]wFMCommunicate request_size=4 [14:11:55]MH_SAM_APDU [14:11:55]CAPDU: 80 13 00 00 [14:11:55]Write to MH i2c: E2 08 00 C4 3D 80 13 00 00 00 00 00 00 7D [14:11:55]Write i2c OK [14:11:55]MH_I2C_Read... [14:11:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:11:55]Read from MH i2c: E2 [14:11:55]MH_I2C_Read... [14:11:55]Read from MH i2c: E2 62 00 [14:11:55]MH_I2C_Read... [14:11:55]Read from MH i2c: E2 62 00 C4 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 0A 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 3C [14:11:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 0A 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:11:55]wFMCommunicate OK [14:11:55]SAM_PROTO_GetFieldsCounters done [14:11:55]requested_item shift.num is exist - process it [14:11:55]requested_item shift.opened is exist - process it [14:11:55]req_shift_opened [14:11:55]FM_GetShiftState [14:11:55]SAM_PROTO_GetShiftState [14:11:55]wFMCommunicate request_size=4 [14:11:55]MH_SAM_APDU [14:11:55]CAPDU: 80 13 01 00 [14:11:55]Write to MH i2c: E2 08 00 C5 3D 80 13 01 00 00 00 00 00 7F [14:11:55]Write i2c OK [14:11:55]MH_I2C_Read... [14:11:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:11:55]Read from MH i2c: E2 [14:11:55]MH_I2C_Read... [14:11:55]Read from MH i2c: E2 0E 00 [14:11:55]MH_I2C_Read... [14:11:55]Read from MH i2c: E2 0E 00 C5 3D 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 5A [14:11:55]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [14:11:55]wFMCommunicate OK [14:11:55]SAM_PROTO_GetShiftState done [14:11:55]FM_GetShiftState done [14:11:55]req_shift_opened done [14:11:55]requested_item shift.open_date is exist - process it [14:11:55]req_shift_open_date [14:11:55]req_shift_open_date done [14:11:55]produce_requested_data done [14:11:55]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68362,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [14:11:55]process_action_free close_receipt [14:11:55]json_value_free [14:11:55]json_value_free done [14:11:55]process_json_proto returns [14:11:55]Send response to host [14:11:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68362,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [14:11:55]free response buf [14:11:55]execute_script done [14:11:55]execute_script returns [14:11:55]free content buf [14:11:55]Sock 5.Close socket [14:11:55]Sock 5.Thread stoped [14:13:34]accept exits with 6 [14:13:34]New connection [14:13:34]New thread 3066543460 created [14:13:34]Thread 3066686820 joined [14:13:34]Waiting for new connection... [14:13:34] Sock 6.Parse request [14:13:34]Sock 6.Check first char [14:13:34]Sock 6.First char is OK [14:13:34]request: POST /json_proto HTTP/1.0 [14:13:34]Method: POST [14:13:34]URL: /json_proto [14:13:34]Method is POST - this is cgi request [14:13:34]url: /json_proto [14:13:34]query_string will be loaded in cgi processing [14:13:34]execute_cgi json_proto POST (null) [14:13:34]execute_cgi path=json_proto method=POST [14:13:34]POST find Content-Length [14:13:34]Host: 172.17.36.132:8080 [14:13:34]Content-Length: 1188 [14:13:34]Content-Type: application/json [14:13:34] [14:13:34]POST finish read [14:13:34]Found Content-Length = 1188 [14:13:34]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706453\u000A03.06.2024 13:50\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-4\u000A 30.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 2187.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A00250\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:13:34]execute_script... [14:13:34]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706453\u000A03.06.2024 13:50\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-4\u000A 30.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 2187.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A00250\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:13:34]POST & json_proto [14:13:34]process_json_proto [14:13:34]json parsed OK: [14:13:34]protocol is kg_v1.0 [14:13:34]action value=print_text [14:13:34]process_action print_text [14:13:34]cmd_print_text [14:13:34]ExternCall_PrintAddStr [14:13:34]wPrintStart [14:13:34]Write to MH i2c: 01 00 00 C6 3D 03 [14:13:34]Write i2c OK [14:13:34]MH_I2C_Read... [14:13:34]Read from MH i2c: 01 [14:13:34]MH_I2C_Read... [14:13:34]Read from MH i2c: 01 07 00 [14:13:34]MH_I2C_Read... [14:13:34]Read from MH i2c: 01 07 00 C6 3D 00 00 00 00 00 FF 0F 18 [14:13:34]RasterBufferAndPrint [14:13:34]line *****ТОВАРНЫЙ ЧЕК***** [14:13:34]line АЗС 62 [14:13:34]line Партнер нефть [14:13:34]line 02508201610067 [14:13:34]line Кассир : Балаев А. [14:13:34]line Счет N : (1)706453 [14:13:34]line 03.06.2024 13:50 [14:13:34]line ПРОДАЖА [14:13:34]line ТРК (МРК, ГНК): 21 [14:13:34]line Вид ГСМ : 2710194210 [14:13:34]line ДТ(л)-К-4 [14:13:34]line 30.000 x 72.90 [14:13:34]line ИТОГ: 2187.00 [14:13:34]line Тип оплаты: Талоны: Топливная Карта [14:13:34]line 00250 [14:13:34]line ______________________ [14:13:34]line (подпись) [14:13:34]written 0, free lines is 4095 [14:13:34]Write to MH i2c: 01 00 00 DA 3D 17 [14:13:34]Write i2c OK [14:13:34]MH_I2C_Read... [14:13:34]Read from MH i2c: 01 [14:13:34]MH_I2C_Read... [14:13:34]Read from MH i2c: 01 07 00 [14:13:34]MH_I2C_Read... [14:13:34]Read from MH i2c: 01 07 00 DA 3D 00 00 00 00 00 10 0E 3C [14:13:34]RasterBufferAndPrint [14:13:34]line [14:13:34]line [14:13:34]line [14:13:34]line [14:13:34]line [14:13:34]written 0, free lines is 3602 [14:13:34]MH_Cut [14:13:34]Write to MH i2c: D1 01 00 E1 3D 01 F0 [14:13:34]Write i2c OK [14:13:34]MH_I2C_Read... [14:13:34]Read from MH i2c: D1 [14:13:34]MH_I2C_Read... [14:13:34]Read from MH i2c: D1 01 00 [14:13:34]MH_I2C_Read... [14:13:34]Read from MH i2c: D1 01 00 E1 3D 00 EF [14:13:34]Write to MH i2c: 01 00 00 E2 3D 1F [14:13:34]Write i2c OK [14:13:34]MH_I2C_Read... [14:13:34]*** Cut start [14:13:34]*** Partial cut [14:13:34]*** CUTSNS_PIN = 1 [14:13:34]*** CUTSNS_PIN = 0 [14:13:35]*** Brake cut motor [14:13:35]Read from MH i2c: 01 [14:13:35]MH_I2C_Read... [14:13:35]*** Stop cut motor [14:13:35]*** Cut end [14:13:35]Read from MH i2c: 01 07 00 [14:13:35]MH_I2C_Read... [14:13:35]Read from MH i2c: 01 07 00 E2 3D 00 00 00 00 00 FF 0F 34 [14:13:35]process_action print_text done [14:13:35]requested_data is exist [14:13:35]produce_requested_data [14:13:35]requested_item fm.sn is exist - process it [14:13:35]wFMCommunicate request_size=4 [14:13:35]MH_SAM_APDU [14:13:35]CAPDU: 80 11 00 00 [14:13:35]Write to MH i2c: E2 08 00 E3 3D 80 11 00 00 00 00 00 00 9A [14:13:35]Write i2c OK [14:13:35]MH_I2C_Read... [14:13:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:35]Read from MH i2c: E2 [14:13:35]MH_I2C_Read... [14:13:35]Read from MH i2c: E2 17 00 [14:13:35]MH_I2C_Read... [14:13:35]Read from MH i2c: E2 17 00 E3 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 E5 [14:13:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:13:35]wFMCommunicate OK [14:13:35]requested_item fd.num is exist - process it [14:13:35]SAM_PROTO_GetFieldsCounters [14:13:35]wFMCommunicate request_size=4 [14:13:35]MH_SAM_APDU [14:13:35]CAPDU: 80 13 00 00 [14:13:35]Write to MH i2c: E2 08 00 E4 3D 80 13 00 00 00 00 00 00 9D [14:13:35]Write i2c OK [14:13:35]MH_I2C_Read... [14:13:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:13:35]Read from MH i2c: E2 [14:13:35]MH_I2C_Read... [14:13:35]Read from MH i2c: E2 62 00 [14:13:35]MH_I2C_Read... [14:13:35]Read from MH i2c: E2 62 00 E4 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 0A 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 5C [14:13:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 0A 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:13:35]wFMCommunicate OK [14:13:35]SAM_PROTO_GetFieldsCounters done [14:13:35]requested_item shift.num is exist - process it [14:13:35]requested_item shift.opened is exist - process it [14:13:35]req_shift_opened [14:13:35]FM_GetShiftState [14:13:35]SAM_PROTO_GetShiftState [14:13:35]wFMCommunicate request_size=4 [14:13:35]MH_SAM_APDU [14:13:35]CAPDU: 80 13 01 00 [14:13:35]Write to MH i2c: E2 08 00 E5 3D 80 13 01 00 00 00 00 00 9F [14:13:35]Write i2c OK [14:13:35]MH_I2C_Read... [14:13:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:35]Read from MH i2c: E2 [14:13:35]MH_I2C_Read... [14:13:35]Read from MH i2c: E2 0E 00 [14:13:35]MH_I2C_Read... [14:13:35]Read from MH i2c: E2 0E 00 E5 3D 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 7A [14:13:35]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [14:13:35]wFMCommunicate OK [14:13:35]SAM_PROTO_GetShiftState done [14:13:35]FM_GetShiftState done [14:13:35]req_shift_opened done [14:13:35]requested_item shift.open_date is exist - process it [14:13:35]req_shift_open_date [14:13:35]req_shift_open_date done [14:13:35]produce_requested_data done [14:13:35]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68362,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [14:13:35]process_action_free print_text [14:13:35]json_value_free [14:13:35]json_value_free done [14:13:35]process_json_proto returns [14:13:35]Send response to host [14:13:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68362,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [14:13:35]free response buf [14:13:35]execute_script done [14:13:35]execute_script returns [14:13:35]free content buf [14:13:35]Sock 6.Close socket [14:13:35]Sock 6.Thread stoped [14:14:01]accept exits with 5 [14:14:01]New connection [14:14:01]New thread 3066686820 created [14:14:01]Thread 3066543460 joined [14:14:01]Waiting for new connection... [14:14:01] Sock 5.Parse request [14:14:01]Sock 5.Check first char [14:14:01]Sock 5.First char is OK [14:14:01]request: POST /json_proto HTTP/1.0 [14:14:01]Method: POST [14:14:01]URL: /json_proto [14:14:01]Method is POST - this is cgi request [14:14:01]url: /json_proto [14:14:01]query_string will be loaded in cgi processing [14:14:01]execute_cgi json_proto POST (null) [14:14:01]execute_cgi path=json_proto method=POST [14:14:01]POST find Content-Length [14:14:01]Host: 172.17.36.132:8080 [14:14:01]Content-Length: 1182 [14:14:01]Content-Type: application/json [14:14:01] [14:14:01]POST finish read [14:14:01]Found Content-Length = 1182 [14:14:01]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706454\u000A03.06.2024 13:51\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 10.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 669.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A91330\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:14:01]execute_script... [14:14:01]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706454\u000A03.06.2024 13:51\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 10.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 669.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A91330\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:14:01]POST & json_proto [14:14:01]process_json_proto [14:14:01]json parsed OK: [14:14:01]protocol is kg_v1.0 [14:14:01]action value=print_text [14:14:01]process_action print_text [14:14:01]cmd_print_text [14:14:01]ExternCall_PrintAddStr [14:14:01]wPrintStart [14:14:01]Write to MH i2c: 01 00 00 E6 3D 23 [14:14:01]Write i2c OK [14:14:01]MH_I2C_Read... [14:14:01]Read from MH i2c: 01 [14:14:01]MH_I2C_Read... [14:14:01]Read from MH i2c: 01 07 00 [14:14:01]MH_I2C_Read... [14:14:01]Read from MH i2c: 01 07 00 E6 3D 00 00 00 00 00 FF 0F 38 [14:14:01]RasterBufferAndPrint [14:14:01]line *****ТОВАРНЫЙ ЧЕК***** [14:14:01]line АЗС 62 [14:14:01]line Партнер нефть [14:14:01]line 02508201610067 [14:14:01]line Кассир : Балаев А. [14:14:01]line Счет N : (1)706454 [14:14:01]line 03.06.2024 13:51 [14:14:01]line ПРОДАЖА [14:14:01]line ТРК (МРК, ГНК): 32 [14:14:01]line Вид ГСМ : 2710124130 [14:14:01]line Аи-92-К-4 [14:14:01]line 10.000 x 66.90 [14:14:01]line ИТОГ: 669.00 [14:14:01]line Тип оплаты: Талоны: Топливная Карта [14:14:01]line 91330 [14:14:01]line ______________________ [14:14:01]line (подпись) [14:14:01]written 0, free lines is 4095 [14:14:02]Write to MH i2c: 01 00 00 FA 3D 37 [14:14:02]Write i2c OK [14:14:02]MH_I2C_Read... [14:14:02]Read from MH i2c: 01 [14:14:02]MH_I2C_Read... [14:14:02]Read from MH i2c: 01 07 00 [14:14:02]MH_I2C_Read... [14:14:02]Read from MH i2c: 01 07 00 FA 3D 00 00 00 00 00 10 0E 5C [14:14:02]RasterBufferAndPrint [14:14:02]line [14:14:02]line [14:14:02]line [14:14:02]line [14:14:02]line [14:14:02]written 0, free lines is 3602 [14:14:02]MH_Cut [14:14:02]Write to MH i2c: D1 01 00 01 3E 01 11 [14:14:02]Write i2c OK [14:14:02]MH_I2C_Read... [14:14:02]Read from MH i2c: D1 [14:14:02]MH_I2C_Read... [14:14:02]Read from MH i2c: D1 01 00 [14:14:02]MH_I2C_Read... [14:14:02]Read from MH i2c: D1 01 00 01 3E 00 10 [14:14:02]Write to MH i2c: 01 00 00 02 3E 40 [14:14:02]Write i2c OK [14:14:02]MH_I2C_Read... [14:14:02]*** Cut start [14:14:02]*** Partial cut [14:14:02]*** CUTSNS_PIN = 1 [14:14:02]*** CUTSNS_PIN = 0 [14:14:02]*** Brake cut motor [14:14:03]Read from MH i2c: 01 [14:14:03]MH_I2C_Read... [14:14:03]*** Stop cut motor [14:14:03]*** Cut end [14:14:03]Read from MH i2c: 01 07 00 [14:14:03]MH_I2C_Read... [14:14:03]Read from MH i2c: 01 07 00 02 3E 00 00 00 00 00 FF 0F 55 [14:14:03]process_action print_text done [14:14:03]requested_data is exist [14:14:03]produce_requested_data [14:14:03]requested_item fm.sn is exist - process it [14:14:03]wFMCommunicate request_size=4 [14:14:03]MH_SAM_APDU [14:14:03]CAPDU: 80 11 00 00 [14:14:03]Write to MH i2c: E2 08 00 03 3E 80 11 00 00 00 00 00 00 BB [14:14:03]Write i2c OK [14:14:03]MH_I2C_Read... [14:14:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:14:03]Read from MH i2c: E2 [14:14:03]MH_I2C_Read... [14:14:03]Read from MH i2c: E2 17 00 [14:14:03]MH_I2C_Read... [14:14:03]Read from MH i2c: E2 17 00 03 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 06 [14:14:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:14:03]wFMCommunicate OK [14:14:03]requested_item fd.num is exist - process it [14:14:03]SAM_PROTO_GetFieldsCounters [14:14:03]wFMCommunicate request_size=4 [14:14:03]MH_SAM_APDU [14:14:03]CAPDU: 80 13 00 00 [14:14:03]Write to MH i2c: E2 08 00 04 3E 80 13 00 00 00 00 00 00 BE [14:14:03]Write i2c OK [14:14:03]MH_I2C_Read... [14:14:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:14:03]Read from MH i2c: E2 [14:14:03]MH_I2C_Read... [14:14:03]Read from MH i2c: E2 62 00 [14:14:03]MH_I2C_Read... [14:14:03]Read from MH i2c: E2 62 00 04 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 0A 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 7D [14:14:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 0A 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:14:03]wFMCommunicate OK [14:14:03]SAM_PROTO_GetFieldsCounters done [14:14:03]requested_item shift.num is exist - process it [14:14:03]requested_item shift.opened is exist - process it [14:14:03]req_shift_opened [14:14:03]FM_GetShiftState [14:14:03]SAM_PROTO_GetShiftState [14:14:03]wFMCommunicate request_size=4 [14:14:03]MH_SAM_APDU [14:14:03]CAPDU: 80 13 01 00 [14:14:03]Write to MH i2c: E2 08 00 05 3E 80 13 01 00 00 00 00 00 C0 [14:14:03]Write i2c OK [14:14:03]MH_I2C_Read... [14:14:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:14:03]Read from MH i2c: E2 [14:14:03]MH_I2C_Read... [14:14:03]Read from MH i2c: E2 0E 00 [14:14:03]MH_I2C_Read... [14:14:03]Read from MH i2c: E2 0E 00 05 3E 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 9B [14:14:03]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [14:14:03]wFMCommunicate OK [14:14:03]SAM_PROTO_GetShiftState done [14:14:03]FM_GetShiftState done [14:14:03]req_shift_opened done [14:14:03]requested_item shift.open_date is exist - process it [14:14:03]req_shift_open_date [14:14:03]req_shift_open_date done [14:14:03]produce_requested_data done [14:14:03]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68362,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [14:14:03]process_action_free print_text [14:14:03]json_value_free [14:14:03]json_value_free done [14:14:03]process_json_proto returns [14:14:03]Send response to host [14:14:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68362,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [14:14:03]free response buf [14:14:03]execute_script done [14:14:03]execute_script returns [14:14:03]free content buf [14:14:03]Sock 5.Close socket [14:14:03]Sock 5.Thread stoped [14:14:05]ConnectInit Can't connect to host [14:14:05]CommunicateWithHost connect error [14:14:05]CommunicateWithHost err = -1 [14:14:05]OFD Sender: Server communicate error [14:14:10]OFD Sender: Processing packet 68362 [packets to send 26, broken 25] [14:14:10]ProducePacketName [14:14:10]name=ofd_packets/00068362 [14:14:10]OFD Sender: To server: pG, [14:14:10]CommunicateWithHost lk.salyk.kg:30040 [14:14:10]ConnectInit lk.salyk.kg [14:14:11]Connected sock=5 [14:14:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 D3 3F 07 01 BA AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 2D CF 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 0A 0B 01 00 35 04 06 00 EF 4D 37 8F B1 A8 72 C0 A0 72 9F 71 63 D6 [14:14:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 E6 74 47 00 E0 C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 0A 0B 01 00 F4 03 04 00 B2 76 5D 66 B6 04 01 00 00 2A A4 5E AD 7A E5 58 92 [14:14:11]CommunicateWithHost err = 0 [14:14:11]CheckOFDResponse [14:14:11]1017 (14) - 77093643461234 [14:14:11]1041 (16) - 0000000000965400 [14:14:11]1040 (4) - 68362 [14:14:11]1012 (4) - 03.06.2024 07:54 [14:14:11]1206 (1) - 0 [14:14:11]OFD Sender: Remove packet 68362 [14:14:11]ProducePacketName [14:14:11]name=ofd_packets/00068362 [14:14:11]NVStorageDeleteData [14:14:11]OFD Sender: No OFD packet to send [14:14:16]OFD Sender: No OFD packet to send [14:14:21]OFD Sender: No OFD packet to send [14:14:26]OFD Sender: No OFD packet to send [14:14:31]OFD Sender: No OFD packet to send [14:14:36]OFD Sender: No OFD packet to send [14:14:41]OFD Sender: No OFD packet to send [14:14:46]OFD Sender: No OFD packet to send [14:14:51]OFD Sender: No OFD packet to send [14:14:56]OFD Sender: No OFD packet to send [14:14:58]accept exits with 6 [14:14:58]New connection [14:14:58]New thread 3066543460 created [14:14:58]Thread 3066686820 joined [14:14:58]Waiting for new connection... [14:14:58] Sock 6.Parse request [14:14:58]Sock 6.Check first char [14:14:58]Sock 6.First char is OK [14:14:58]request: POST /json_proto HTTP/1.0 [14:14:58]Method: POST [14:14:58]URL: /json_proto [14:14:58]Method is POST - this is cgi request [14:14:58]url: /json_proto [14:14:58]query_string will be loaded in cgi processing [14:14:58]execute_cgi json_proto POST (null) [14:14:58]execute_cgi path=json_proto method=POST [14:14:58]POST find Content-Length [14:14:58]Host: 172.17.36.132:8080 [14:14:58]Content-Length: 687 [14:14:58]Content-Type: application/json [14:14:58] [14:14:58]POST finish read [14:14:58]Found Content-Length = 687 [14:14:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706455", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 21.810, "sum" : 1589.95, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1626.00, "total" : 1589.00, "payments": [ { "type": 0, "sum" : 1589.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:14:58]execute_script... [14:14: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)706455", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 21.810, "sum" : 1589.95, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1626.00, "total" : 1589.00, "payments": [ { "type": 0, "sum" : 1589.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:14:58]POST & json_proto [14:14:58]process_json_proto [14:14:58]json parsed OK: [14:14:58]protocol is kg_v1.0 [14:14:58]action value=close_receipt [14:14:58]process_action close_receipt [14:14:58]cmd_close_receipt [14:14:58]MH_GetDate [14:14:58]Write to MH i2c: F0 00 00 06 3E 33 [14:14:58]Write i2c OK [14:14:58]MH_I2C_Read... [14:14:58]Read from MH i2c: F0 [14:14:58]MH_I2C_Read... [14:14:58]Read from MH i2c: F0 09 00 [14:14:58]MH_I2C_Read... [14:14:58]Read from MH i2c: F0 09 00 06 3E 00 E8 CF 5D 66 B2 22 B0 64 9E [14:14:58]GetLastDocTimeStamp 1717423917 [14:14:58]current date 1717424104 [14:14:58]FM_GetShiftState [14:14:58]SAM_PROTO_GetShiftState [14:14:58]wFMCommunicate request_size=4 [14:14:58]MH_SAM_APDU [14:14:58]CAPDU: 80 13 01 00 [14:14:58]Write to MH i2c: E2 08 00 07 3E 80 13 01 00 00 00 00 00 C2 [14:14:58]Write i2c OK [14:14:58]MH_I2C_Read... [14:14:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:14:58]Read from MH i2c: E2 [14:14:58]MH_I2C_Read... [14:14:58]Read from MH i2c: E2 0E 00 [14:14:58]MH_I2C_Read... [14:14:58]Read from MH i2c: E2 0E 00 07 3E 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 9D [14:14:58]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [14:14:58]wFMCommunicate OK [14:14:58]SAM_PROTO_GetShiftState done [14:14:58]FM_GetShiftState done [14:14:58]opened in 1717378033 [14:14:58]opened+sec_in_day 1717464433 [14:14:58]quantity*price = 158994 [14:14:58]sum+1 = 158996 [14:14:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.95 ИТОГО: 1589.00 Внесено: 1626.00 СДАЧА: 37.00 НСП 1% : 14.07 НДС 12% : 168.84 Наличными: 1589.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 109 03.06.2024 14:15 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68363 ФПД: 216950996954327 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T141504&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68363&fm=216950996954327&tin=02508201610067®Number=0000000000098096&sum=158900 [14:15:00]StoreToDocumentArchive [14:15:00]shift 324 fd 68363 [14:15:00]save to /storage/0324/doc_00068363 [14:15:00]save last doc name /storage/0324/doc_00068363 to /storage/kkm_last_doc_name [14:15:00]save OK [14:15:00]Clear old archive folders... [14:15:00]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:15:00]tlvbuf is 001FC880 [14:15:00]SAM_PROTO_ClearQueue [14:15:00]wFMCommunicate request_size=4 [14:15:00]MH_SAM_APDU [14:15:00]CAPDU: 80 09 00 00 [14:15:00]Write to MH i2c: E2 08 00 14 3E 80 09 00 00 00 00 00 00 C4 [14:15:00]Write i2c OK [14:15:00]MH_I2C_Read... [14:15:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:15:00]Read from MH i2c: E2 [14:15:00]MH_I2C_Read... [14:15:00]Read from MH i2c: E2 03 00 [14:15:00]MH_I2C_Read... [14:15:00]Read from MH i2c: E2 03 00 14 3E 00 90 00 C6 [14:15:00]RAPDU: 90 00 [14:15:00]wFMCommunicate OK [14:15:00]SAM_PROTO_ClearQueue done [14:15:00]KKMCreateOFDPacket [14:15:00]OFDProtocolAddRootSTLVToBuf [14:15:00]FM_MakeSignedData [14:15:00]FM_MakeSignedData [14:15:00]SAM_PROTO_SignData [14:15:00]wFMCommunicate request_size=4 [14:15:00]MH_SAM_APDU [14:15:00]CAPDU: 80 0D 01 02 [14:15:00]Write to MH i2c: E2 08 00 15 3E 80 0D 01 02 00 00 00 00 CC [14:15:00]Write i2c OK [14:15:00]MH_I2C_Read... [14:15:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:15:00]Read from MH i2c: E2 [14:15:00]MH_I2C_Read... [14:15:00]Read from MH i2c: E2 03 00 [14:15:00]MH_I2C_Read... [14:15:00]Read from MH i2c: E2 03 00 15 3E 00 90 00 C7 [14:15:00]RAPDU: 90 00 [14:15:00]wFMCommunicate OK [14:15:00]wFMCommunicate request_size=255 [14:15:00]MH_SAM_APDU [14:15: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 34 FF 03 08 00 03 32 55 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 13 6D 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 6C 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F4 41 00 00 00 00 07 04 06 00 B4 6C 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 E8 CF 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 0B 0B 01 00 35 04 06 00 [14:15:00]Write to MH i2c: E2 02 01 16 3E 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 34 FF 03 08 00 03 32 55 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 13 6D 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 6C 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F4 41 00 00 00 00 07 04 06 00 B4 6C 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 E8 CF 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 0B 0B 01 00 35 04 06 00 00 00 EE [14:15:00]Write i2c OK [14:15:00]MH_I2C_Read... [14:15:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:15:00]Read from MH i2c: E2 [14:15:00]MH_I2C_Read... [14:15:00]Read from MH i2c: E2 03 00 [14:15:00]MH_I2C_Read... [14:15:00]Read from MH i2c: E2 03 00 16 3E 00 90 00 C8 [14:15:00]RAPDU: 90 00 [14:15:00]wFMCommunicate OK [14:15:00]wFMCommunicate request_size=11 [14:15:00]MH_SAM_APDU [14:15:00]CAPDU: 80 0D 02 02 06 C5 50 D7 1B 6C D7 [14:15:00]Write to MH i2c: E2 0E 00 17 3E 80 0D 02 02 06 00 C5 50 D7 1B 6C D7 00 00 25 [14:15:00]Write i2c OK [14:15:00]MH_I2C_Read... [14:15:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:15:00]Read from MH i2c: E2 [14:15:00]MH_I2C_Read... [14:15:00]Read from MH i2c: E2 03 00 [14:15:00]MH_I2C_Read... [14:15:00]Read from MH i2c: E2 03 00 17 3E 00 90 00 C9 [14:15:00]RAPDU: 90 00 [14:15:00]wFMCommunicate OK [14:15:00]wFMCommunicate request_size=4 [14:15:00]MH_SAM_APDU [14:15:00]CAPDU: 80 0D 03 02 [14:15:00]Write to MH i2c: E2 08 00 18 3E 80 0D 03 02 00 00 00 00 D1 [14:15:00]Write i2c OK [14:15:00]MH_I2C_Read... [14:15:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:15:00]Read from MH i2c: E2 [14:15:00]MH_I2C_Read... [14:15:00]Read from MH i2c: E2 0B 00 [14:15:00]MH_I2C_Read... [14:15:00]Read from MH i2c: E2 0B 00 18 3E 00 4C 22 F4 54 48 85 A4 C0 90 00 B9 [14:15:00]RAPDU: 4C 22 F4 54 48 85 A4 C0 90 00 [14:15:00]wFMCommunicate OK [14:15:00]SAM_PROTO_SignData done [14:15:00]FM_MakeSignedData done [14:15:00]CreateOFDProtocolMessage [14:15:00]wFMCommunicate request_size=4 [14:15:00]MH_SAM_APDU [14:15:00]CAPDU: 80 11 00 00 [14:15:00]Write to MH i2c: E2 08 00 19 3E 80 11 00 00 00 00 00 00 D1 [14:15:00]Write i2c OK [14:15:00]MH_I2C_Read... [14:15:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:15:00]Read from MH i2c: E2 [14:15:00]MH_I2C_Read... [14:15:00]Read from MH i2c: E2 17 00 [14:15:00]MH_I2C_Read... [14:15:00]Read from MH i2c: E2 17 00 19 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 1C [14:15:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:15:00]wFMCommunicate OK [14:15:00]CreateOFDProtocolMessage done [14:15:00]OFDSenderStorePacket 68363 [14:15:00]StoreOFDPacket docnum=68363 [14:15:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 CE 43 08 01 12 A1 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 34 FF 03 08 00 03 32 55 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 13 6D 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 6C 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F4 41 00 00 00 00 07 04 06 00 B4 6C 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 E8 CF 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 0B 0B 01 00 35 04 06 00 C5 50 D7 1B 6C D7 4C 22 F4 54 48 85 A4 C0 [14:15:00]CheckFolder [14:15:00]dirname=/storage/ofd_packets [14:15:00]CheckFolder done [14:15:00]ProducePacketName [14:15:00]name=ofd_packets/00068363 [14:15:00]NVStorageSaveData ofd_packets/00068363 [14:15:00]File name is /storage/ofd_packets/00068363 [14:15:00]Write 302 bytes [14:15:00]NVStorageSaveData done [14:15:00]OFDSenderStorePacket done [14:15:00]KKMCreateOFDPacket done [14:15:00]NVStorageSaveData kkm_last_timestamp [14:15:00]File name is /storage/kkm_last_timestamp [14:15:00]Write 4 bytes [14:15:00]NVStorageSaveData done [14:15:00]ExternCall_PrintAddStr [14:15:00]wPrintStart [14:15:00]Write to MH i2c: 01 00 00 1A 3E 58 [14:15:00]Write i2c OK [14:15:00]MH_I2C_Read... [14:15:00]Read from MH i2c: 01 [14:15:00]MH_I2C_Read... [14:15:00]Read from MH i2c: 01 07 00 [14:15:00]MH_I2C_Read... [14:15:00]Read from MH i2c: 01 07 00 1A 3E 00 00 00 00 00 FF 0F 6D [14:15:00]RasterBufferAndPrint [14:15:00]line Счет N : (1)706455 [14:15:00]line ИНН: 02508201610067 [14:15:00]line Контрольно-Кассовый Чек [14:15:00]line ПРОДАЖА [14:15:00]line ТРК (МРК, ГНК) : 21 [14:15:00]line Товар: 2710194210 [14:15:00]line ДТ(л)-К-4 [14:15:00]line 21.810 * 72.90 [14:15:00]line = 1589.95 [14:15:00]line НДС 12% НСП 1% [14:15:00]line > о реализуемом товаре [14:15:00]line ОКРУГЛЕНИЕ: -0.95 [14:15:00]line ИТОГО: 1589.00 [14:15:00]line Внесено: 1626.00 [14:15:00]line СДАЧА: 37.00 [14:15:00]line НСП 1% : 14.07 [14:15:00]line НДС 12% : 168.84 [14:15:00]line Наличными: 1589.00 [14:15:00]line Безнал.: 0.00 [14:15:00]line Место: АЗС № 62 "Партнер Нефть" [14:15:00]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [14:15:00]line СНО: Общий режим [14:15:00]line Чек 109 03.06.2024 14:15 [14:15:00]line Смена: 324 ФФД: 1.0 [14:15:00]line ЗНМ: 0300000181 [14:15:00]line РНМ: 0000000000098096 [14:15:00]line Версия ККМ: 001 [14:15:00]line ФМ: 0000000000965400 [14:15:00]line ФД: 68363 [14:15:00]line ФПД: 216950996954327 [14:15:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T141504&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68363&fm=216950996954327&tin=02508201610067®Number=0000000000098096&sum=158900 [14:15:00]OFD Sender: Processing packet 68363 [packets to send 26, broken 25] [14:15:00]ProducePacketName [14:15:00]name=ofd_packets/00068363 [14:15:00]OFD Sender: To server: pG, [14:15:00]CommunicateWithHost lk.salyk.kg:30040 [14:15:00]ConnectInit lk.salyk.kg [14:15:00]written 0, free lines is 4095 [14:15:00]Connected sock=7 [14:15:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 CE 43 08 01 12 A1 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 34 FF 03 08 00 03 32 55 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 13 6D 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 6C 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F4 41 00 00 00 00 07 04 06 00 B4 6C 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 E8 CF 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 0B 0B 01 00 35 04 06 00 C5 50 D7 1B 6C D7 4C 22 F4 54 48 85 A4 C0 [14:15:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 D6 C3 47 00 49 33 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 0B 0B 01 00 F4 03 04 00 E4 76 5D 66 B6 04 01 00 00 A6 98 3B 23 F0 EE C9 60 [14:15:01]CommunicateWithHost err = 0 [14:15:01]CheckOFDResponse [14:15:01]1017 (14) - 77093643461234 [14:15:01]1041 (16) - 0000000000965400 [14:15:01]1040 (4) - 68363 [14:15:01]1012 (4) - 03.06.2024 07:55 [14:15:01]1206 (1) - 0 [14:15:01]OFD Sender: Remove packet 68363 [14:15:01]ProducePacketName [14:15:01]name=ofd_packets/00068363 [14:15:01]NVStorageDeleteData [14:15:01]Write to MH i2c: 01 00 00 45 3E 83 [14:15:01]Write i2c OK [14:15:01]MH_I2C_Read... [14:15:01]Read from MH i2c: 01 [14:15:01]MH_I2C_Read... [14:15:01]Read from MH i2c: 01 07 00 [14:15:01]MH_I2C_Read... [14:15:01]Read from MH i2c: 01 07 00 45 3E 00 00 00 00 00 EE 0C 84 [14:15:01]RasterBufferAndPrint [14:15:01]line [14:15:01]line [14:15:01]line [14:15:01]line [14:15:01]line [14:15:01]written 0, free lines is 3319 [14:15:01]MH_Cut [14:15:01]Write to MH i2c: D1 01 00 4C 3E 01 5C [14:15:01]Write i2c OK [14:15:01]MH_I2C_Read... [14:15:01]Read from MH i2c: D1 [14:15:01]MH_I2C_Read... [14:15:01]Read from MH i2c: D1 01 00 [14:15:01]MH_I2C_Read... [14:15:01]Read from MH i2c: D1 01 00 4C 3E 00 5B [14:15:01]Write to MH i2c: 01 00 00 4D 3E 8B [14:15:01]Write i2c OK [14:15:01]MH_I2C_Read... [14:15:01]OFD Sender: No OFD packet to send [14:15:02]*** Cut start [14:15:02]*** Partial cut [14:15:02]*** CUTSNS_PIN = 1 [14:15:02]*** CUTSNS_PIN = 0 [14:15:02]*** Brake cut motor [14:15:02]Read from MH i2c: 01 [14:15:02]MH_I2C_Read... [14:15:02]*** Stop cut motor [14:15:02]*** Cut end [14:15:02]Read from MH i2c: 01 07 00 [14:15:02]MH_I2C_Read... [14:15:02]Read from MH i2c: 01 07 00 4D 3E 00 00 00 00 00 FF 0F A0 [14:15:02]process_action close_receipt done [14:15:02]requested_data is exist [14:15:02]produce_requested_data [14:15:02]requested_item fm.sn is exist - process it [14:15:02]wFMCommunicate request_size=4 [14:15:02]MH_SAM_APDU [14:15:02]CAPDU: 80 11 00 00 [14:15:02]Write to MH i2c: E2 08 00 4E 3E 80 11 00 00 00 00 00 00 06 [14:15:02]Write i2c OK [14:15:02]MH_I2C_Read... [14:15:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:15:02]Read from MH i2c: E2 [14:15:02]MH_I2C_Read... [14:15:02]Read from MH i2c: E2 17 00 [14:15:02]MH_I2C_Read... [14:15:02]Read from MH i2c: E2 17 00 4E 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 51 [14:15:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:15:02]wFMCommunicate OK [14:15:02]requested_item fd.num is exist - process it [14:15:02]SAM_PROTO_GetFieldsCounters [14:15:02]wFMCommunicate request_size=4 [14:15:02]MH_SAM_APDU [14:15:02]CAPDU: 80 13 00 00 [14:15:02]Write to MH i2c: E2 08 00 4F 3E 80 13 00 00 00 00 00 00 09 [14:15:02]Write i2c OK [14:15:02]MH_I2C_Read... [14:15:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:15:02]Read from MH i2c: E2 [14:15:02]MH_I2C_Read... [14:15:02]Read from MH i2c: E2 62 00 [14:15:02]MH_I2C_Read... [14:15:02]Read from MH i2c: E2 62 00 4F 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 0B 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 CC [14:15:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 0B 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:15:02]wFMCommunicate OK [14:15:02]SAM_PROTO_GetFieldsCounters done [14:15:02]requested_item shift.num is exist - process it [14:15:02]requested_item shift.opened is exist - process it [14:15:02]req_shift_opened [14:15:02]FM_GetShiftState [14:15:02]SAM_PROTO_GetShiftState [14:15:02]wFMCommunicate request_size=4 [14:15:02]MH_SAM_APDU [14:15:02]CAPDU: 80 13 01 00 [14:15:02]Write to MH i2c: E2 08 00 50 3E 80 13 01 00 00 00 00 00 0B [14:15:02]Write i2c OK [14:15:02]MH_I2C_Read... [14:15:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:15:03]Read from MH i2c: E2 [14:15:03]MH_I2C_Read... [14:15:03]Read from MH i2c: E2 0E 00 [14:15:03]MH_I2C_Read... [14:15:03]Read from MH i2c: E2 0E 00 50 3E 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 E6 [14:15:03]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [14:15:03]wFMCommunicate OK [14:15:03]SAM_PROTO_GetShiftState done [14:15:03]FM_GetShiftState done [14:15:03]req_shift_opened done [14:15:03]requested_item shift.open_date is exist - process it [14:15:03]req_shift_open_date [14:15:03]req_shift_open_date done [14:15:03]produce_requested_data done [14:15:03]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68363,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [14:15:03]process_action_free close_receipt [14:15:03]json_value_free [14:15:03]json_value_free done [14:15:03]process_json_proto returns [14:15:03]Send response to host [14:15:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68363,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [14:15:03]free response buf [14:15:03]execute_script done [14:15:03]execute_script returns [14:15:03]free content buf [14:15:03]Sock 6.Close socket [14:15:03]Sock 6.Thread stoped [14:15:06]OFD Sender: No OFD packet to send [14:15:11]OFD Sender: No OFD packet to send [14:15:16]OFD Sender: No OFD packet to send [14:15:21]OFD Sender: No OFD packet to send [14:15:26]OFD Sender: No OFD packet to send [14:15:31]OFD Sender: No OFD packet to send [14:15:36]OFD Sender: No OFD packet to send [14:15:41]OFD Sender: No OFD packet to send [14:15:46]OFD Sender: No OFD packet to send [14:15:51]OFD Sender: No OFD packet to send [14:15:56]OFD Sender: No OFD packet to send [14:16:01]OFD Sender: No OFD packet to send [14:16:06]OFD Sender: No OFD packet to send [14:16:11]OFD Sender: No OFD packet to send [14:16:16]OFD Sender: No OFD packet to send [14:16:21]OFD Sender: No OFD packet to send [14:16:26]OFD Sender: No OFD packet to send [14:16:31]OFD Sender: No OFD packet to send [14:16:36]OFD Sender: No OFD packet to send [14:16:41]OFD Sender: No OFD packet to send [14:16:45]accept exits with 5 [14:16:45]New connection [14:16:45]New thread 3066686820 created [14:16:45]Thread 3066543460 joined [14:16:45]Waiting for new connection... [14:16:45] Sock 5.Parse request [14:16:45]Sock 5.Check first char [14:16:45]Sock 5.First char is OK [14:16:45]request: POST /json_proto HTTP/1.0 [14:16:45]Method: POST [14:16:45]URL: /json_proto [14:16:45]Method is POST - this is cgi request [14:16:45]url: /json_proto [14:16:45]query_string will be loaded in cgi processing [14:16:45]execute_cgi json_proto POST (null) [14:16:45]execute_cgi path=json_proto method=POST [14:16:45]POST find Content-Length [14:16:45]Host: 172.17.36.132:8080 [14:16:45]Content-Length: 840 [14:16:45]Content-Type: application/json [14:16:45] [14:16:45]POST finish read [14:16:45]Found Content-Length = 840 [14:16:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706456", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 600.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:16:45]execute_script... [14:16: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)706456", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 600.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:16:45]POST & json_proto [14:16:45]process_json_proto [14:16:45]json parsed OK: [14:16:45]protocol is kg_v1.0 [14:16:45]action value=close_receipt [14:16:45]process_action close_receipt [14:16:45]cmd_close_receipt [14:16:45]MH_GetDate [14:16:45]Write to MH i2c: F0 00 00 51 3E 7E [14:16:45]Write i2c OK [14:16:45]MH_I2C_Read... [14:16:45]Read from MH i2c: F0 [14:16:45]MH_I2C_Read... [14:16:45]Read from MH i2c: F0 09 00 [14:16:45]MH_I2C_Read... [14:16:45]Read from MH i2c: F0 09 00 51 3E 00 52 D0 5D 66 B2 22 B0 64 54 [14:16:45]GetLastDocTimeStamp 1717424104 [14:16:45]current date 1717424210 [14:16:45]FM_GetShiftState [14:16:45]SAM_PROTO_GetShiftState [14:16:45]wFMCommunicate request_size=4 [14:16:45]MH_SAM_APDU [14:16:45]CAPDU: 80 13 01 00 [14:16:45]Write to MH i2c: E2 08 00 52 3E 80 13 01 00 00 00 00 00 0D [14:16:45]Write i2c OK [14:16:45]MH_I2C_Read... [14:16:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:45]Read from MH i2c: E2 [14:16:45]MH_I2C_Read... [14:16:45]Read from MH i2c: E2 0E 00 [14:16:45]MH_I2C_Read... [14:16:45]Read from MH i2c: E2 0E 00 52 3E 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 E8 [14:16:45]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [14:16:45]wFMCommunicate OK [14:16:45]SAM_PROTO_GetShiftState done [14:16:45]FM_GetShiftState done [14:16:45]opened in 1717378033 [14:16:45]opened+sec_in_day 1717464433 [14:16:45]quantity*price = 60009 [14:16:45]sum+1 = 60010 [14:16:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.09 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 0.00 Безнал.: 600.09 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 110 03.06.2024 14:16 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68364 ФПД: 44594012364509 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T141650&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68364&fm=44594012364509&tin=02508201610067®Number=0000000000098096&sum=60009 [14:16:46]StoreToDocumentArchive [14:16:46]shift 324 fd 68364 [14:16:46]save to /storage/0324/doc_00068364 [14:16:46]save last doc name /storage/0324/doc_00068364 to /storage/kkm_last_doc_name [14:16:46]save OK [14:16:46]Clear old archive folders... [14:16:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:16:46]tlvbuf is 001FC970 [14:16:46]SAM_PROTO_ClearQueue [14:16:46]wFMCommunicate request_size=4 [14:16:46]MH_SAM_APDU [14:16:46]CAPDU: 80 09 00 00 [14:16:46]Write to MH i2c: E2 08 00 5F 3E 80 09 00 00 00 00 00 00 0F [14:16:46]Write i2c OK [14:16:46]MH_I2C_Read... [14:16:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:16:46]Read from MH i2c: E2 [14:16:46]MH_I2C_Read... [14:16:46]Read from MH i2c: E2 03 00 [14:16:46]MH_I2C_Read... [14:16:46]Read from MH i2c: E2 03 00 5F 3E 00 90 00 11 [14:16:46]RAPDU: 90 00 [14:16:46]wFMCommunicate OK [14:16:46]SAM_PROTO_ClearQueue done [14:16:46]KKMCreateOFDPacket [14:16:46]OFDProtocolAddRootSTLVToBuf [14:16:46]FM_MakeSignedData [14:16:46]FM_MakeSignedData [14:16:46]SAM_PROTO_SignData [14:16:46]wFMCommunicate request_size=4 [14:16:46]MH_SAM_APDU [14:16:46]CAPDU: 80 0D 01 02 [14:16:46]Write to MH i2c: E2 08 00 60 3E 80 0D 01 02 00 00 00 00 17 [14:16:46]Write i2c OK [14:16:46]MH_I2C_Read... [14:16:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:16:46]Read from MH i2c: E2 [14:16:46]MH_I2C_Read... [14:16:46]Read from MH i2c: E2 03 00 [14:16:46]MH_I2C_Read... [14:16:46]Read from MH i2c: E2 03 00 60 3E 00 90 00 12 [14:16:46]RAPDU: 90 00 [14:16:46]wFMCommunicate OK [14:16:46]wFMCommunicate request_size=255 [14:16:46]MH_SAM_APDU [14:16: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 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 52 D0 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 0C 0B 01 00 35 04 06 00 28 [14:16:46]Write to MH i2c: E2 02 01 61 3E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 52 D0 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 0C 0B 01 00 35 04 06 00 28 00 00 6B [14:16:46]Write i2c OK [14:16:46]MH_I2C_Read... [14:16:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:46]Read from MH i2c: E2 [14:16:46]MH_I2C_Read... [14:16:46]Read from MH i2c: E2 03 00 [14:16:46]MH_I2C_Read... [14:16:46]Read from MH i2c: E2 03 00 61 3E 00 90 00 13 [14:16:46]RAPDU: 90 00 [14:16:46]wFMCommunicate OK [14:16:46]wFMCommunicate request_size=10 [14:16:46]MH_SAM_APDU [14:16:46]CAPDU: 80 0D 02 02 05 8E DA 44 1E DD [14:16:46]Write to MH i2c: E2 0D 00 62 3E 80 0D 02 02 05 00 8E DA 44 1E DD 00 00 CB [14:16:46]Write i2c OK [14:16:46]MH_I2C_Read... [14:16:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:46]Read from MH i2c: E2 [14:16:46]MH_I2C_Read... [14:16:46]Read from MH i2c: E2 03 00 [14:16:46]MH_I2C_Read... [14:16:46]Read from MH i2c: E2 03 00 62 3E 00 90 00 14 [14:16:46]RAPDU: 90 00 [14:16:46]wFMCommunicate OK [14:16:46]wFMCommunicate request_size=4 [14:16:46]MH_SAM_APDU [14:16:46]CAPDU: 80 0D 03 02 [14:16:46]Write to MH i2c: E2 08 00 63 3E 80 0D 03 02 00 00 00 00 1C [14:16:46]Write i2c OK [14:16:46]MH_I2C_Read... [14:16:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:16:46]Read from MH i2c: E2 [14:16:46]MH_I2C_Read... [14:16:46]Read from MH i2c: E2 0B 00 [14:16:46]MH_I2C_Read... [14:16:46]Read from MH i2c: E2 0B 00 63 3E 00 64 5C C8 44 49 EC F2 65 90 00 75 [14:16:46]RAPDU: 64 5C C8 44 49 EC F2 65 90 00 [14:16:46]wFMCommunicate OK [14:16:46]SAM_PROTO_SignData done [14:16:46]FM_MakeSignedData done [14:16:46]CreateOFDProtocolMessage [14:16:46]wFMCommunicate request_size=4 [14:16:46]MH_SAM_APDU [14:16:46]CAPDU: 80 11 00 00 [14:16:46]Write to MH i2c: E2 08 00 64 3E 80 11 00 00 00 00 00 00 1C [14:16:46]Write i2c OK [14:16:46]MH_I2C_Read... [14:16:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:46]Read from MH i2c: E2 [14:16:46]MH_I2C_Read... [14:16:46]Read from MH i2c: E2 17 00 [14:16:46]MH_I2C_Read... [14:16:46]Read from MH i2c: E2 17 00 64 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 67 [14:16:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:16:46]wFMCommunicate OK [14:16:46]CreateOFDProtocolMessage done [14:16:46]OFDSenderStorePacket 68364 [14:16:46]StoreOFDPacket docnum=68364 [14:16:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 41 D5 07 01 B0 B5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 52 D0 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 0C 0B 01 00 35 04 06 00 28 8E DA 44 1E DD 64 5C C8 44 49 EC F2 65 [14:16:46]CheckFolder [14:16:46]dirname=/storage/ofd_packets [14:16:46]CheckFolder done [14:16:46]ProducePacketName [14:16:46]name=ofd_packets/00068364 [14:16:46]NVStorageSaveData ofd_packets/00068364 [14:16:46]File name is /storage/ofd_packets/00068364 [14:16:46]Write 301 bytes [14:16:46]NVStorageSaveData done [14:16:46]OFDSenderStorePacket done [14:16:46]KKMCreateOFDPacket done [14:16:46]NVStorageSaveData kkm_last_timestamp [14:16:46]File name is /storage/kkm_last_timestamp [14:16:46]Write 4 bytes [14:16:46]NVStorageSaveData done [14:16:46]ExternCall_PrintAddStr [14:16:46]wPrintStart [14:16:46]Write to MH i2c: 01 00 00 65 3E A3 [14:16:46]Write i2c OK [14:16:46]MH_I2C_Read... [14:16:46]Read from MH i2c: 01 [14:16:46]MH_I2C_Read... [14:16:46]Read from MH i2c: 01 07 00 [14:16:46]MH_I2C_Read... [14:16:46]Read from MH i2c: 01 07 00 65 3E 00 00 00 00 00 FF 0F B8 [14:16:46]RasterBufferAndPrint [14:16:46]line Счет N : (1)706456 [14:16:46]line ИНН: 02508201610067 [14:16:46]line Контрольно-Кассовый Чек [14:16:46]line ПРОДАЖА [14:16:46]line ТРК (МРК, ГНК) : 13 [14:16:46]line Товар: 2710124130 [14:16:46]line Аи-92-К-4 [14:16:46]line 8.970 * 66.90 [14:16:46]line = 600.09 [14:16:46]line НДС 12% НСП 1% [14:16:46]line > о реализуемом товаре [14:16:46]line ИТОГО: 600.09 [14:16:46]line НСП 1% : 5.31 [14:16:46]line НДС 12% : 63.73 [14:16:46]line Наличными: 0.00 [14:16:46]line Безнал.: 600.09 [14:16:46]line Место: АЗС № 62 "Партнер Нефть" [14:16:46]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [14:16:46]line СНО: Общий режим [14:16:46]line Чек 110 03.06.2024 14:16 [14:16:46]line Смена: 324 ФФД: 1.0 [14:16:46]line ЗНМ: 0300000181 [14:16:46]line РНМ: 0000000000098096 [14:16:46]line Версия ККМ: 001 [14:16:46]line Платежная система: АКБ Кыргызстан [14:16:46]line ФМ: 0000000000965400 [14:16:46]line ФД: 68364 [14:16:46]line ФПД: 44594012364509 [14:16:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T141650&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68364&fm=44594012364509&tin=02508201610067®Number=0000000000098096&sum=60009 [14:16:46]written 0, free lines is 4095 [14:16:46]OFD Sender: Processing packet 68364 [packets to send 26, broken 25] [14:16:46]ProducePacketName [14:16:46]name=ofd_packets/00068364 [14:16:46]OFD Sender: To server: pG, [14:16:46]CommunicateWithHost lk.salyk.kg:30040 [14:16:46]ConnectInit lk.salyk.kg [14:16:46]Connected sock=7 [14:16:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 41 D5 07 01 B0 B5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 52 D0 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 0C 0B 01 00 35 04 06 00 28 8E DA 44 1E DD 64 5C C8 44 49 EC F2 65 [14:16:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 75 5F 47 00 34 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 0C 0B 01 00 F4 03 04 00 4E 77 5D 66 B6 04 01 00 00 B5 BF 7A BD B4 58 AD 10 [14:16:47]CommunicateWithHost err = 0 [14:16:47]CheckOFDResponse [14:16:47]1017 (14) - 77093643461234 [14:16:47]1041 (16) - 0000000000965400 [14:16:47]1040 (4) - 68364 [14:16:47]1012 (4) - 03.06.2024 07:57 [14:16:47]1206 (1) - 0 [14:16:47]OFD Sender: Remove packet 68364 [14:16:47]ProducePacketName [14:16:47]name=ofd_packets/00068364 [14:16:47]NVStorageDeleteData [14:16:47]Write to MH i2c: 01 00 00 8F 3E CD [14:16:47]Write i2c OK [14:16:47]MH_I2C_Read... [14:16:47]Read from MH i2c: 01 [14:16:47]MH_I2C_Read... [14:16:47]Read from MH i2c: 01 07 00 [14:16:47]MH_I2C_Read... [14:16:47]Read from MH i2c: 01 07 00 8F 3E 00 00 00 00 00 FA 0C DA [14:16:47]RasterBufferAndPrint [14:16:47]line [14:16:47]line [14:16:47]line [14:16:47]line [14:16:47]line [14:16:47]written 0, free lines is 3332 [14:16:47]MH_Cut [14:16:47]Write to MH i2c: D1 01 00 96 3E 01 A6 [14:16:47]Write i2c OK [14:16:47]MH_I2C_Read... [14:16:47]Read from MH i2c: D1 [14:16:47]MH_I2C_Read... [14:16:47]Read from MH i2c: D1 01 00 [14:16:47]MH_I2C_Read... [14:16:47]Read from MH i2c: D1 01 00 96 3E 00 A5 [14:16:47]Write to MH i2c: 01 00 00 97 3E D5 [14:16:47]Write i2c OK [14:16:47]MH_I2C_Read... [14:16:47]OFD Sender: No OFD packet to send [14:16:48]*** Cut start [14:16:48]*** Partial cut [14:16:48]*** CUTSNS_PIN = 1 [14:16:48]*** CUTSNS_PIN = 0 [14:16:48]*** Brake cut motor [14:16:48]Read from MH i2c: 01 [14:16:48]MH_I2C_Read... [14:16:48]*** Stop cut motor [14:16:48]*** Cut end [14:16:48]Read from MH i2c: 01 07 00 [14:16:48]MH_I2C_Read... [14:16:48]Read from MH i2c: 01 07 00 97 3E 00 00 00 00 00 FF 0F EA [14:16:48]process_action close_receipt done [14:16:48]requested_data is exist [14:16:48]produce_requested_data [14:16:48]requested_item fm.sn is exist - process it [14:16:48]wFMCommunicate request_size=4 [14:16:48]MH_SAM_APDU [14:16:48]CAPDU: 80 11 00 00 [14:16:48]Write to MH i2c: E2 08 00 98 3E 80 11 00 00 00 00 00 00 50 [14:16:48]Write i2c OK [14:16:48]MH_I2C_Read... [14:16:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:48]Read from MH i2c: E2 [14:16:48]MH_I2C_Read... [14:16:48]Read from MH i2c: E2 17 00 [14:16:48]MH_I2C_Read... [14:16:48]Read from MH i2c: E2 17 00 98 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 9B [14:16:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:16:48]wFMCommunicate OK [14:16:48]requested_item fd.num is exist - process it [14:16:48]SAM_PROTO_GetFieldsCounters [14:16:48]wFMCommunicate request_size=4 [14:16:48]MH_SAM_APDU [14:16:48]CAPDU: 80 13 00 00 [14:16:48]Write to MH i2c: E2 08 00 99 3E 80 13 00 00 00 00 00 00 53 [14:16:48]Write i2c OK [14:16:48]MH_I2C_Read... [14:16:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:16:48]Read from MH i2c: E2 [14:16:48]MH_I2C_Read... [14:16:48]Read from MH i2c: E2 62 00 [14:16:48]MH_I2C_Read... [14:16:48]Read from MH i2c: E2 62 00 99 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 0C 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [14:16:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 0C 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:16:48]wFMCommunicate OK [14:16:48]SAM_PROTO_GetFieldsCounters done [14:16:48]requested_item shift.num is exist - process it [14:16:48]requested_item shift.opened is exist - process it [14:16:48]req_shift_opened [14:16:48]FM_GetShiftState [14:16:48]SAM_PROTO_GetShiftState [14:16:48]wFMCommunicate request_size=4 [14:16:48]MH_SAM_APDU [14:16:48]CAPDU: 80 13 01 00 [14:16:48]Write to MH i2c: E2 08 00 9A 3E 80 13 01 00 00 00 00 00 55 [14:16:48]Write i2c OK [14:16:48]MH_I2C_Read... [14:16:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:48]Read from MH i2c: E2 [14:16:48]MH_I2C_Read... [14:16:48]Read from MH i2c: E2 0E 00 [14:16:48]MH_I2C_Read... [14:16:48]Read from MH i2c: E2 0E 00 9A 3E 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 30 [14:16:48]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [14:16:48]wFMCommunicate OK [14:16:48]SAM_PROTO_GetShiftState done [14:16:48]FM_GetShiftState done [14:16:48]req_shift_opened done [14:16:48]requested_item shift.open_date is exist - process it [14:16:48]req_shift_open_date [14:16:48]req_shift_open_date done [14:16:48]produce_requested_data done [14:16:48]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68364,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [14:16:48]process_action_free close_receipt [14:16:48]json_value_free [14:16:48]json_value_free done [14:16:48]process_json_proto returns [14:16:48]Send response to host [14:16:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68364,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [14:16:48]free response buf [14:16:48]execute_script done [14:16:48]execute_script returns [14:16:48]free content buf [14:16:48]Sock 5.Close socket [14:16:48]Sock 5.Thread stoped [14:16:52]OFD Sender: No OFD packet to send [14:16:54]accept exits with 6 [14:16:54]New connection [14:16:54]New thread 3066543460 created [14:16:54]Thread 3066686820 joined [14:16:54]Waiting for new connection... [14:16:54] Sock 6.Parse request [14:16:54]Sock 6.Check first char [14:16:54]Sock 6.First char is OK [14:16:54]request: POST /json_proto HTTP/1.0 [14:16:54]Method: POST [14:16:54]URL: /json_proto [14:16:54]Method is POST - this is cgi request [14:16:54]url: /json_proto [14:16:54]query_string will be loaded in cgi processing [14:16:54]execute_cgi json_proto POST (null) [14:16:54]execute_cgi path=json_proto method=POST [14:16:54]POST find Content-Length [14:16:54]Host: 172.17.36.132:8080 [14:16:54]Content-Length: 682 [14:16:54]Content-Type: application/json [14:16:54] [14:16:54]POST finish read [14:16:54]Found Content-Length = 682 [14:16:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706457", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:16:54]execute_script... [14:16:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706457", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:16:54]POST & json_proto [14:16:54]process_json_proto [14:16:54]json parsed OK: [14:16:54]protocol is kg_v1.0 [14:16:54]action value=close_receipt [14:16:54]process_action close_receipt [14:16:54]cmd_close_receipt [14:16:54]MH_GetDate [14:16:54]Write to MH i2c: F0 00 00 9B 3E C8 [14:16:54]Write i2c OK [14:16:54]MH_I2C_Read... [14:16:54]Read from MH i2c: F0 [14:16:54]MH_I2C_Read... [14:16:54]Read from MH i2c: F0 09 00 [14:16:54]MH_I2C_Read... [14:16:54]Read from MH i2c: F0 09 00 9B 3E 00 5C D0 5D 66 B2 22 B0 64 A8 [14:16:54]GetLastDocTimeStamp 1717424210 [14:16:54]current date 1717424220 [14:16:54]FM_GetShiftState [14:16:54]SAM_PROTO_GetShiftState [14:16:54]wFMCommunicate request_size=4 [14:16:54]MH_SAM_APDU [14:16:54]CAPDU: 80 13 01 00 [14:16:54]Write to MH i2c: E2 08 00 9C 3E 80 13 01 00 00 00 00 00 57 [14:16:54]Write i2c OK [14:16:54]MH_I2C_Read... [14:16:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:54]Read from MH i2c: E2 [14:16:54]MH_I2C_Read... [14:16:54]Read from MH i2c: E2 0E 00 [14:16:54]MH_I2C_Read... [14:16:54]Read from MH i2c: E2 0E 00 9C 3E 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 32 [14:16:54]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [14:16:54]wFMCommunicate OK [14:16:54]SAM_PROTO_GetShiftState done [14:16:54]FM_GetShiftState done [14:16:54]opened in 1717378033 [14:16:54]opened+sec_in_day 1717464433 [14:16:54]quantity*price = 100015 [14:16:54]sum+1 = 100017 [14:16:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 111 03.06.2024 14:17 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68365 ФПД: 151881395945852 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T141700&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68365&fm=151881395945852&tin=02508201610067®Number=0000000000098096&sum=100000 [14:16:55]StoreToDocumentArchive [14:16:55]shift 324 fd 68365 [14:16:55]save to /storage/0324/doc_00068365 [14:16:55]save last doc name /storage/0324/doc_00068365 to /storage/kkm_last_doc_name [14:16:55]save OK [14:16:55]Clear old archive folders... [14:16:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:16:55]tlvbuf is 00332650 [14:16:55]SAM_PROTO_ClearQueue [14:16:55]wFMCommunicate request_size=4 [14:16:55]MH_SAM_APDU [14:16:55]CAPDU: 80 09 00 00 [14:16:55]Write to MH i2c: E2 08 00 A9 3E 80 09 00 00 00 00 00 00 59 [14:16:55]Write i2c OK [14:16:55]MH_I2C_Read... [14:16:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:16:55]Read from MH i2c: E2 [14:16:55]MH_I2C_Read... [14:16:55]Read from MH i2c: E2 03 00 [14:16:55]MH_I2C_Read... [14:16:55]Read from MH i2c: E2 03 00 A9 3E 00 90 00 5B [14:16:55]RAPDU: 90 00 [14:16:55]wFMCommunicate OK [14:16:55]SAM_PROTO_ClearQueue done [14:16:55]KKMCreateOFDPacket [14:16:55]OFDProtocolAddRootSTLVToBuf [14:16:55]FM_MakeSignedData [14:16:55]FM_MakeSignedData [14:16:55]SAM_PROTO_SignData [14:16:55]wFMCommunicate request_size=4 [14:16:55]MH_SAM_APDU [14:16:55]CAPDU: 80 0D 01 02 [14:16:55]Write to MH i2c: E2 08 00 AA 3E 80 0D 01 02 00 00 00 00 61 [14:16:55]Write i2c OK [14:16:55]MH_I2C_Read... [14:16:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:16:56]Read from MH i2c: E2 [14:16:56]MH_I2C_Read... [14:16:56]Read from MH i2c: E2 03 00 [14:16:56]MH_I2C_Read... [14:16:56]Read from MH i2c: E2 03 00 AA 3E 00 90 00 5C [14:16:56]RAPDU: 90 00 [14:16:56]wFMCommunicate OK [14:16:56]wFMCommunicate request_size=255 [14:16:56]MH_SAM_APDU [14:16:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 5C D0 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 0D 0B 01 00 35 04 06 00 8A [14:16:56]Write to MH i2c: E2 02 01 AB 3E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 5C D0 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 0D 0B 01 00 35 04 06 00 8A 00 00 2E [14:16:56]Write i2c OK [14:16:56]MH_I2C_Read... [14:16:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:56]Read from MH i2c: E2 [14:16:56]MH_I2C_Read... [14:16:56]Read from MH i2c: E2 03 00 [14:16:56]MH_I2C_Read... [14:16:56]Read from MH i2c: E2 03 00 AB 3E 00 90 00 5D [14:16:56]RAPDU: 90 00 [14:16:56]wFMCommunicate OK [14:16:56]wFMCommunicate request_size=10 [14:16:56]MH_SAM_APDU [14:16:56]CAPDU: 80 0D 02 02 05 22 A4 A7 41 7C [14:16:56]Write to MH i2c: E2 0D 00 AC 3E 80 0D 02 02 05 00 22 A4 A7 41 7C 00 00 98 [14:16:56]Write i2c OK [14:16:56]MH_I2C_Read... [14:16:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:56]Read from MH i2c: E2 [14:16:56]MH_I2C_Read... [14:16:56]Read from MH i2c: E2 03 00 [14:16:56]MH_I2C_Read... [14:16:56]Read from MH i2c: E2 03 00 AC 3E 00 90 00 5E [14:16:56]RAPDU: 90 00 [14:16:56]wFMCommunicate OK [14:16:56]wFMCommunicate request_size=4 [14:16:56]MH_SAM_APDU [14:16:56]CAPDU: 80 0D 03 02 [14:16:56]Write to MH i2c: E2 08 00 AD 3E 80 0D 03 02 00 00 00 00 66 [14:16:56]Write i2c OK [14:16:56]MH_I2C_Read... [14:16:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:16:56]Read from MH i2c: E2 [14:16:56]MH_I2C_Read... [14:16:56]Read from MH i2c: E2 0B 00 [14:16:56]MH_I2C_Read... [14:16:56]Read from MH i2c: E2 0B 00 AD 3E 00 15 81 61 24 74 92 98 B0 90 00 D0 [14:16:56]RAPDU: 15 81 61 24 74 92 98 B0 90 00 [14:16:56]wFMCommunicate OK [14:16:56]SAM_PROTO_SignData done [14:16:56]FM_MakeSignedData done [14:16:56]CreateOFDProtocolMessage [14:16:56]wFMCommunicate request_size=4 [14:16:56]MH_SAM_APDU [14:16:56]CAPDU: 80 11 00 00 [14:16:56]Write to MH i2c: E2 08 00 AE 3E 80 11 00 00 00 00 00 00 66 [14:16:56]Write i2c OK [14:16:56]MH_I2C_Read... [14:16:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:56]Read from MH i2c: E2 [14:16:56]MH_I2C_Read... [14:16:56]Read from MH i2c: E2 17 00 [14:16:56]MH_I2C_Read... [14:16:56]Read from MH i2c: E2 17 00 AE 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 B1 [14:16:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:16:56]wFMCommunicate OK [14:16:56]CreateOFDProtocolMessage done [14:16:56]OFDSenderStorePacket 68365 [14:16:56]StoreOFDPacket docnum=68365 [14:16:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 2F B7 07 01 F7 F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 5C D0 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 0D 0B 01 00 35 04 06 00 8A 22 A4 A7 41 7C 15 81 61 24 74 92 98 B0 [14:16:56]CheckFolder [14:16:56]dirname=/storage/ofd_packets [14:16:56]CheckFolder done [14:16:56]ProducePacketName [14:16:56]name=ofd_packets/00068365 [14:16:56]NVStorageSaveData ofd_packets/00068365 [14:16:56]File name is /storage/ofd_packets/00068365 [14:16:56]Write 301 bytes [14:16:56]NVStorageSaveData done [14:16:56]OFDSenderStorePacket done [14:16:56]KKMCreateOFDPacket done [14:16:56]NVStorageSaveData kkm_last_timestamp [14:16:56]File name is /storage/kkm_last_timestamp [14:16:56]Write 4 bytes [14:16:56]NVStorageSaveData done [14:16:56]ExternCall_PrintAddStr [14:16:56]wPrintStart [14:16:56]Write to MH i2c: 01 00 00 AF 3E ED [14:16:56]Write i2c OK [14:16:56]MH_I2C_Read... [14:16:56]Read from MH i2c: 01 [14:16:56]MH_I2C_Read... [14:16:56]Read from MH i2c: 01 07 00 [14:16:56]MH_I2C_Read... [14:16:56]Read from MH i2c: 01 07 00 AF 3E 00 00 00 00 00 FF 0F 02 [14:16:56]RasterBufferAndPrint [14:16:56]line Счет N : (1)706457 [14:16:56]line ИНН: 02508201610067 [14:16:56]line Контрольно-Кассовый Чек [14:16:56]line ПРОДАЖА [14:16:56]line ТРК (МРК, ГНК) : 53 [14:16:56]line Товар: 2710124130 [14:16:56]line Аи-92-К-4 [14:16:56]line 14.950 * 66.90 [14:16:56]line = 1000.16 [14:16:56]line НДС 12% НСП 1% [14:16:56]line > о реализуемом товаре [14:16:56]line ОКРУГЛЕНИЕ: -0.16 [14:16:56]line ИТОГО: 1000.00 [14:16:56]line Внесено: 1000.00 [14:16:56]line СДАЧА: 0.00 [14:16:56]line НСП 1% : 8.85 [14:16:56]line НДС 12% : 106.21 [14:16:56]line Наличными: 1000.00 [14:16:56]line Безнал.: 0.00 [14:16:56]line Место: АЗС № 62 "Партнер Нефть" [14:16:56]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [14:16:56]line СНО: Общий режим [14:16:56]line Чек 111 03.06.2024 14:17 [14:16:56]line Смена: 324 ФФД: 1.0 [14:16:56]line ЗНМ: 0300000181 [14:16:56]line РНМ: 0000000000098096 [14:16:56]line Версия ККМ: 001 [14:16:56]line ФМ: 0000000000965400 [14:16:56]line ФД: 68365 [14:16:56]line ФПД: 151881395945852 [14:16:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T141700&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68365&fm=151881395945852&tin=02508201610067®Number=0000000000098096&sum=100000 [14:16:56]written 0, free lines is 4095 [14:16:56]OFD Sender: Processing packet 68365 [packets to send 26, broken 25] [14:16:56]ProducePacketName [14:16:56]name=ofd_packets/00068365 [14:16:56]OFD Sender: To server: pG, [14:16:56]CommunicateWithHost lk.salyk.kg:30040 [14:16:56]ConnectInit lk.salyk.kg [14:16:56]Connected sock=7 [14:16:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 2F B7 07 01 F7 F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 5C D0 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 0D 0B 01 00 35 04 06 00 8A 22 A4 A7 41 7C 15 81 61 24 74 92 98 B0 [14:16:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 54 1E 47 00 1E 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 0D 0B 01 00 F4 03 04 00 57 77 5D 66 B6 04 01 00 00 05 58 0F D0 4C BF D1 42 [14:16:56]CommunicateWithHost err = 0 [14:16:56]CheckOFDResponse [14:16:56]1017 (14) - 77093643461234 [14:16:56]1041 (16) - 0000000000965400 [14:16:56]1040 (4) - 68365 [14:16:56]1012 (4) - 03.06.2024 07:57 [14:16:56]1206 (1) - 0 [14:16:56]OFD Sender: Remove packet 68365 [14:16:56]ProducePacketName [14:16:56]name=ofd_packets/00068365 [14:16:56]NVStorageDeleteData [14:16:56]Write to MH i2c: 01 00 00 DA 3E 18 [14:16:56]Write i2c OK [14:16:56]MH_I2C_Read... [14:16:56]Read from MH i2c: 01 [14:16:56]MH_I2C_Read... [14:16:56]Read from MH i2c: 01 07 00 [14:16:56]MH_I2C_Read... [14:16:56]Read from MH i2c: 01 07 00 DA 3E 00 00 00 00 00 FB 0C 26 [14:16:56]RasterBufferAndPrint [14:16:56]line [14:16:56]line [14:16:56]line [14:16:56]line [14:16:56]line [14:16:56]written 0, free lines is 3335 [14:16:57]MH_Cut [14:16:57]Write to MH i2c: D1 01 00 E1 3E 01 F1 [14:16:57]Write i2c OK [14:16:57]MH_I2C_Read... [14:16:57]Read from MH i2c: D1 [14:16:57]MH_I2C_Read... [14:16:57]Read from MH i2c: D1 01 00 [14:16:57]MH_I2C_Read... [14:16:57]Read from MH i2c: D1 01 00 E1 3E 00 F0 [14:16:57]Write to MH i2c: 01 00 00 E2 3E 20 [14:16:57]Write i2c OK [14:16:57]MH_I2C_Read... [14:16:57]OFD Sender: No OFD packet to send [14:16:57]*** Cut start [14:16:57]*** Partial cut [14:16:57]*** CUTSNS_PIN = 1 [14:16:57]*** CUTSNS_PIN = 0 [14:16:57]*** Brake cut motor [14:16:58]Read from MH i2c: 01 [14:16:58]MH_I2C_Read... [14:16:58]*** Stop cut motor [14:16:58]*** Cut end [14:16:58]Read from MH i2c: 01 07 00 [14:16:58]MH_I2C_Read... [14:16:58]Read from MH i2c: 01 07 00 E2 3E 00 00 00 00 00 FF 0F 35 [14:16:58]process_action close_receipt done [14:16:58]requested_data is exist [14:16:58]produce_requested_data [14:16:58]requested_item fm.sn is exist - process it [14:16:58]wFMCommunicate request_size=4 [14:16:58]MH_SAM_APDU [14:16:58]CAPDU: 80 11 00 00 [14:16:58]Write to MH i2c: E2 08 00 E3 3E 80 11 00 00 00 00 00 00 9B [14:16:58]Write i2c OK [14:16:58]MH_I2C_Read... [14:16:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:58]Read from MH i2c: E2 [14:16:58]MH_I2C_Read... [14:16:58]Read from MH i2c: E2 17 00 [14:16:58]MH_I2C_Read... [14:16:58]Read from MH i2c: E2 17 00 E3 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 E6 [14:16:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:16:58]wFMCommunicate OK [14:16:58]requested_item fd.num is exist - process it [14:16:58]SAM_PROTO_GetFieldsCounters [14:16:58]wFMCommunicate request_size=4 [14:16:58]MH_SAM_APDU [14:16:58]CAPDU: 80 13 00 00 [14:16:58]Write to MH i2c: E2 08 00 E4 3E 80 13 00 00 00 00 00 00 9E [14:16:58]Write i2c OK [14:16:58]MH_I2C_Read... [14:16:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:16:58]Read from MH i2c: E2 [14:16:58]MH_I2C_Read... [14:16:58]Read from MH i2c: E2 62 00 [14:16:58]MH_I2C_Read... [14:16:58]Read from MH i2c: E2 62 00 E4 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 0D 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 69 [14:16:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 0D 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:16:58]wFMCommunicate OK [14:16:58]SAM_PROTO_GetFieldsCounters done [14:16:58]requested_item shift.num is exist - process it [14:16:58]requested_item shift.opened is exist - process it [14:16:58]req_shift_opened [14:16:58]FM_GetShiftState [14:16:58]SAM_PROTO_GetShiftState [14:16:58]wFMCommunicate request_size=4 [14:16:58]MH_SAM_APDU [14:16:58]CAPDU: 80 13 01 00 [14:16:58]Write to MH i2c: E2 08 00 E5 3E 80 13 01 00 00 00 00 00 A0 [14:16:58]Write i2c OK [14:16:58]MH_I2C_Read... [14:16:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:58]Read from MH i2c: E2 [14:16:58]MH_I2C_Read... [14:16:58]Read from MH i2c: E2 0E 00 [14:16:58]MH_I2C_Read... [14:16:58]Read from MH i2c: E2 0E 00 E5 3E 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 7B [14:16:58]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [14:16:58]wFMCommunicate OK [14:16:58]SAM_PROTO_GetShiftState done [14:16:58]FM_GetShiftState done [14:16:58]req_shift_opened done [14:16:58]requested_item shift.open_date is exist - process it [14:16:58]req_shift_open_date [14:16:58]req_shift_open_date done [14:16:58]produce_requested_data done [14:16:58]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68365,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [14:16:58]process_action_free close_receipt [14:16:58]json_value_free [14:16:58]json_value_free done [14:16:58]process_json_proto returns [14:16:58]Send response to host [14:16:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68365,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [14:16:58]free response buf [14:16:58]execute_script done [14:16:58]execute_script returns [14:16:58]free content buf [14:16:58]Sock 6.Close socket [14:16:58]Sock 6.Thread stoped [14:17:02]OFD Sender: No OFD packet to send [14:17:07]OFD Sender: No OFD packet to send [14:17:12]OFD Sender: No OFD packet to send [14:17:17]OFD Sender: No OFD packet to send [14:17:22]OFD Sender: No OFD packet to send [14:17:27]OFD Sender: No OFD packet to send [14:17:32]OFD Sender: No OFD packet to send [14:17:37]OFD Sender: No OFD packet to send [14:17:42]OFD Sender: No OFD packet to send [14:17:47]OFD Sender: No OFD packet to send [14:17:52]OFD Sender: No OFD packet to send [14:17:57]OFD Sender: No OFD packet to send [14:18:02]OFD Sender: No OFD packet to send [14:18:07]OFD Sender: No OFD packet to send [14:18:12]OFD Sender: No OFD packet to send [14:18:17]OFD Sender: No OFD packet to send [14:18:22]OFD Sender: No OFD packet to send [14:18:27]OFD Sender: No OFD packet to send [14:18:32]OFD Sender: No OFD packet to send [14:18:37]OFD Sender: No OFD packet to send [14:18:42]OFD Sender: No OFD packet to send [14:18:47]OFD Sender: No OFD packet to send [14:18:52]OFD Sender: No OFD packet to send [14:18:57]OFD Sender: No OFD packet to send [14:19:02]OFD Sender: No OFD packet to send [14:19:07]OFD Sender: No OFD packet to send [14:19:12]OFD Sender: No OFD packet to send [14:19:17]OFD Sender: No OFD packet to send [14:19:22]OFD Sender: No OFD packet to send [14:19:27]OFD Sender: No OFD packet to send [14:19:32]OFD Sender: No OFD packet to send [14:19:37]OFD Sender: No OFD packet to send [14:19:42]OFD Sender: No OFD packet to send [14:19:47]OFD Sender: No OFD packet to send [14:19:52]OFD Sender: No OFD packet to send [14:19:53]accept exits with 5 [14:19:53]New connection [14:19:53]New thread 3066686820 created [14:19:53]Thread 3066543460 joined [14:19:53]Waiting for new connection... [14:19:53] Sock 5.Parse request [14:19:53]Sock 5.Check first char [14:19:53]Sock 5.First char is OK [14:19:53]request: POST /json_proto HTTP/1.0 [14:19:53]Method: POST [14:19:53]URL: /json_proto [14:19:53]Method is POST - this is cgi request [14:19:53]url: /json_proto [14:19:53]query_string will be loaded in cgi processing [14:19:53]execute_cgi json_proto POST (null) [14:19:53]execute_cgi path=json_proto method=POST [14:19:53]POST find Content-Length [14:19:53]Host: 172.17.36.132:8080 [14:19:53]Content-Length: 843 [14:19:53]Content-Type: application/json [14:19:53] [14:19:53]POST finish read [14:19:53]Found Content-Length = 843 [14:19:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706458", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:19:53]execute_script... [14:19:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706458", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:19:53]POST & json_proto [14:19:53]process_json_proto [14:19:53]json parsed OK: [14:19:53]protocol is kg_v1.0 [14:19:53]action value=close_receipt [14:19:53]process_action close_receipt [14:19:53]cmd_close_receipt [14:19:53]MH_GetDate [14:19:53]Write to MH i2c: F0 00 00 E6 3E 13 [14:19:53]Write i2c OK [14:19:53]MH_I2C_Read... [14:19:53]Read from MH i2c: F0 [14:19:53]MH_I2C_Read... [14:19:53]Read from MH i2c: F0 09 00 [14:19:53]MH_I2C_Read... [14:19:53]Read from MH i2c: F0 09 00 E6 3E 00 0E D1 5D 66 B2 22 B0 64 A6 [14:19:53]GetLastDocTimeStamp 1717424220 [14:19:53]current date 1717424398 [14:19:53]FM_GetShiftState [14:19:53]SAM_PROTO_GetShiftState [14:19:53]wFMCommunicate request_size=4 [14:19:53]MH_SAM_APDU [14:19:53]CAPDU: 80 13 01 00 [14:19:53]Write to MH i2c: E2 08 00 E7 3E 80 13 01 00 00 00 00 00 A2 [14:19:53]Write i2c OK [14:19:53]MH_I2C_Read... [14:19:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:53]Read from MH i2c: E2 [14:19:53]MH_I2C_Read... [14:19:53]Read from MH i2c: E2 0E 00 [14:19:53]MH_I2C_Read... [14:19:53]Read from MH i2c: E2 0E 00 E7 3E 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 7D [14:19:53]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [14:19:53]wFMCommunicate OK [14:19:53]SAM_PROTO_GetShiftState done [14:19:53]FM_GetShiftState done [14:19:53]opened in 1717378033 [14:19:53]opened+sec_in_day 1717464433 [14:19:53]quantity*price = 100015 [14:19:53]sum+1 = 100017 [14:19:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 112 03.06.2024 14:19 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68366 ФПД: 239766524216593 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T141958&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68366&fm=239766524216593&tin=02508201610067®Number=0000000000098096&sum=100016 [14:19:54]StoreToDocumentArchive [14:19:54]shift 324 fd 68366 [14:19:54]save to /storage/0324/doc_00068366 [14:19:54]save last doc name /storage/0324/doc_00068366 to /storage/kkm_last_doc_name [14:19:54]save OK [14:19:54]Clear old archive folders... [14:19:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:19:54]tlvbuf is B6E99600 [14:19:54]SAM_PROTO_ClearQueue [14:19:54]wFMCommunicate request_size=4 [14:19:54]MH_SAM_APDU [14:19:54]CAPDU: 80 09 00 00 [14:19:54]Write to MH i2c: E2 08 00 F4 3E 80 09 00 00 00 00 00 00 A4 [14:19:54]Write i2c OK [14:19:54]MH_I2C_Read... [14:19:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:19:54]Read from MH i2c: E2 [14:19:54]MH_I2C_Read... [14:19:54]Read from MH i2c: E2 03 00 [14:19:54]MH_I2C_Read... [14:19:54]Read from MH i2c: E2 03 00 F4 3E 00 90 00 A6 [14:19:54]RAPDU: 90 00 [14:19:54]wFMCommunicate OK [14:19:54]SAM_PROTO_ClearQueue done [14:19:54]KKMCreateOFDPacket [14:19:54]OFDProtocolAddRootSTLVToBuf [14:19:54]FM_MakeSignedData [14:19:54]FM_MakeSignedData [14:19:54]SAM_PROTO_SignData [14:19:54]wFMCommunicate request_size=4 [14:19:54]MH_SAM_APDU [14:19:54]CAPDU: 80 0D 01 02 [14:19:54]Write to MH i2c: E2 08 00 F5 3E 80 0D 01 02 00 00 00 00 AC [14:19:54]Write i2c OK [14:19:54]MH_I2C_Read... [14:19:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:19:54]Read from MH i2c: E2 [14:19:54]MH_I2C_Read... [14:19:54]Read from MH i2c: E2 03 00 [14:19:54]MH_I2C_Read... [14:19:54]Read from MH i2c: E2 03 00 F5 3E 00 90 00 A7 [14:19:54]RAPDU: 90 00 [14:19:54]wFMCommunicate OK [14:19:54]wFMCommunicate request_size=255 [14:19:54]MH_SAM_APDU [14:19:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 0E D1 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 0E 0B 01 00 35 04 06 00 DA [14:19:54]Write to MH i2c: E2 02 01 F6 3E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 0E D1 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 0E 0B 01 00 35 04 06 00 DA 00 00 9E [14:19:54]Write i2c OK [14:19:54]MH_I2C_Read... [14:19:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:19:54]Read from MH i2c: E2 [14:19:54]MH_I2C_Read... [14:19:54]Read from MH i2c: E2 03 00 [14:19:54]MH_I2C_Read... [14:19:54]Read from MH i2c: E2 03 00 F6 3E 00 90 00 A8 [14:19:54]RAPDU: 90 00 [14:19:54]wFMCommunicate OK [14:19:54]wFMCommunicate request_size=10 [14:19:54]MH_SAM_APDU [14:19:54]CAPDU: 80 0D 02 02 05 10 FE 81 45 11 [14:19:54]Write to MH i2c: E2 0D 00 F7 3E 80 0D 02 02 05 00 10 FE 81 45 11 00 00 9E [14:19:54]Write i2c OK [14:19:54]MH_I2C_Read... [14:19:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:19:54]Read from MH i2c: E2 [14:19:54]MH_I2C_Read... [14:19:54]Read from MH i2c: E2 03 00 [14:19:54]MH_I2C_Read... [14:19:54]Read from MH i2c: E2 03 00 F7 3E 00 90 00 A9 [14:19:54]RAPDU: 90 00 [14:19:54]wFMCommunicate OK [14:19:54]wFMCommunicate request_size=4 [14:19:54]MH_SAM_APDU [14:19:54]CAPDU: 80 0D 03 02 [14:19:54]Write to MH i2c: E2 08 00 F8 3E 80 0D 03 02 00 00 00 00 B1 [14:19:54]Write i2c OK [14:19:54]MH_I2C_Read... [14:19:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:19:54]Read from MH i2c: E2 [14:19:54]MH_I2C_Read... [14:19:54]Read from MH i2c: E2 0B 00 [14:19:54]MH_I2C_Read... [14:19:54]Read from MH i2c: E2 0B 00 F8 3E 00 AC 55 E8 BA 71 D8 41 B2 90 00 91 [14:19:54]RAPDU: AC 55 E8 BA 71 D8 41 B2 90 00 [14:19:54]wFMCommunicate OK [14:19:54]SAM_PROTO_SignData done [14:19:54]FM_MakeSignedData done [14:19:54]CreateOFDProtocolMessage [14:19:54]wFMCommunicate request_size=4 [14:19:54]MH_SAM_APDU [14:19:54]CAPDU: 80 11 00 00 [14:19:54]Write to MH i2c: E2 08 00 F9 3E 80 11 00 00 00 00 00 00 B1 [14:19:54]Write i2c OK [14:19:54]MH_I2C_Read... [14:19:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:54]Read from MH i2c: E2 [14:19:54]MH_I2C_Read... [14:19:54]Read from MH i2c: E2 17 00 [14:19:54]MH_I2C_Read... [14:19:54]Read from MH i2c: E2 17 00 F9 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 FC [14:19:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:19:54]wFMCommunicate OK [14:19:54]CreateOFDProtocolMessage done [14:19:54]OFDSenderStorePacket 68366 [14:19:54]StoreOFDPacket docnum=68366 [14:19:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 A9 D3 07 01 6D 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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 0E D1 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 0E 0B 01 00 35 04 06 00 DA 10 FE 81 45 11 AC 55 E8 BA 71 D8 41 B2 [14:19:54]CheckFolder [14:19:54]dirname=/storage/ofd_packets [14:19:54]CheckFolder done [14:19:54]ProducePacketName [14:19:54]name=ofd_packets/00068366 [14:19:54]NVStorageSaveData ofd_packets/00068366 [14:19:54]File name is /storage/ofd_packets/00068366 [14:19:54]Write 301 bytes [14:19:54]NVStorageSaveData done [14:19:54]OFDSenderStorePacket done [14:19:54]KKMCreateOFDPacket done [14:19:54]NVStorageSaveData kkm_last_timestamp [14:19:54]File name is /storage/kkm_last_timestamp [14:19:54]Write 4 bytes [14:19:54]NVStorageSaveData done [14:19:54]ExternCall_PrintAddStr [14:19:54]wPrintStart [14:19:54]Write to MH i2c: 01 00 00 FA 3E 38 [14:19:54]Write i2c OK [14:19:54]MH_I2C_Read... [14:19:54]Read from MH i2c: 01 [14:19:54]MH_I2C_Read... [14:19:54]Read from MH i2c: 01 07 00 [14:19:54]MH_I2C_Read... [14:19:54]Read from MH i2c: 01 07 00 FA 3E 00 00 00 00 00 FF 0F 4D [14:19:54]RasterBufferAndPrint [14:19:54]line Счет N : (1)706458 [14:19:54]line ИНН: 02508201610067 [14:19:54]line Контрольно-Кассовый Чек [14:19:54]line ПРОДАЖА [14:19:54]line ТРК (МРК, ГНК) : 63 [14:19:54]line Товар: 2710124130 [14:19:54]line Аи-92-К-4 [14:19:54]line 14.950 * 66.90 [14:19:54]line = 1000.16 [14:19:54]line НДС 12% НСП 1% [14:19:54]line > о реализуемом товаре [14:19:54]line ИТОГО: 1000.16 [14:19:54]line НСП 1% : 8.85 [14:19:54]line НДС 12% : 106.21 [14:19:54]line Наличными: 0.00 [14:19:54]line Безнал.: 1000.16 [14:19:54]line Место: АЗС № 62 "Партнер Нефть" [14:19:54]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [14:19:54]line СНО: Общий режим [14:19:54]line Чек 112 03.06.2024 14:19 [14:19:54]line Смена: 324 ФФД: 1.0 [14:19:54]line ЗНМ: 0300000181 [14:19:54]line РНМ: 0000000000098096 [14:19:54]line Версия ККМ: 001 [14:19:54]line Платежная система: АКБ Кыргызстан [14:19:54]line ФМ: 0000000000965400 [14:19:54]line ФД: 68366 [14:19:54]line ФПД: 239766524216593 [14:19:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T141958&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68366&fm=239766524216593&tin=02508201610067®Number=0000000000098096&sum=100016 [14:19:55]OFD Sender: Processing packet 68366 [packets to send 26, broken 25] [14:19:55]ProducePacketName [14:19:55]name=ofd_packets/00068366 [14:19:55]OFD Sender: To server: pG, [14:19:55]CommunicateWithHost lk.salyk.kg:30040 [14:19:55]ConnectInit lk.salyk.kg [14:19:55]written 0, free lines is 4095 [14:19:55]Connected sock=7 [14:19:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 A9 D3 07 01 6D 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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 0E D1 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 0E 0B 01 00 35 04 06 00 DA 10 FE 81 45 11 AC 55 E8 BA 71 D8 41 B2 [14:19:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 B3 72 47 00 41 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 0E 0B 01 00 F4 03 04 00 0A 78 5D 66 B6 04 01 00 00 C6 28 D6 AA 72 B2 A0 FE [14:19:55]CommunicateWithHost err = 0 [14:19:55]CheckOFDResponse [14:19:55]1017 (14) - 77093643461234 [14:19:55]1041 (16) - 0000000000965400 [14:19:55]1040 (4) - 68366 [14:19:55]1012 (4) - 03.06.2024 08:00 [14:19:55]1206 (1) - 0 [14:19:55]OFD Sender: Remove packet 68366 [14:19:55]ProducePacketName [14:19:55]name=ofd_packets/00068366 [14:19:55]NVStorageDeleteData [14:19:55]Write to MH i2c: 01 00 00 24 3F 63 [14:19:55]Write i2c OK [14:19:55]MH_I2C_Read... [14:19:55]Read from MH i2c: 01 [14:19:55]MH_I2C_Read... [14:19:55]Read from MH i2c: 01 07 00 [14:19:55]MH_I2C_Read... [14:19:55]Read from MH i2c: 01 07 00 24 3F 00 00 00 00 00 02 0D 79 [14:19:55]RasterBufferAndPrint [14:19:55]line [14:19:55]line [14:19:55]line [14:19:55]line [14:19:55]line [14:19:55]written 0, free lines is 3339 [14:19:55]MH_Cut [14:19:55]Write to MH i2c: D1 01 00 2B 3F 01 3C [14:19:55]Write i2c OK [14:19:55]MH_I2C_Read... [14:19:55]Read from MH i2c: D1 [14:19:55]MH_I2C_Read... [14:19:55]Read from MH i2c: D1 01 00 [14:19:55]MH_I2C_Read... [14:19:55]Read from MH i2c: D1 01 00 2B 3F 00 3B [14:19:55]Write to MH i2c: 01 00 00 2C 3F 6B [14:19:55]Write i2c OK [14:19:55]MH_I2C_Read... [14:19:55]OFD Sender: No OFD packet to send [14:19:56]*** Cut start [14:19:56]*** Partial cut [14:19:56]*** CUTSNS_PIN = 1 [14:19:56]*** CUTSNS_PIN = 0 [14:19:56]*** Brake cut motor [14:19:56]Read from MH i2c: 01 [14:19:56]MH_I2C_Read... [14:19:56]*** Stop cut motor [14:19:56]*** Cut end [14:19:56]Read from MH i2c: 01 07 00 [14:19:56]MH_I2C_Read... [14:19:56]Read from MH i2c: 01 07 00 2C 3F 00 00 00 00 00 FF 0F 80 [14:19:56]process_action close_receipt done [14:19:56]requested_data is exist [14:19:56]produce_requested_data [14:19:56]requested_item fm.sn is exist - process it [14:19:56]wFMCommunicate request_size=4 [14:19:56]MH_SAM_APDU [14:19:56]CAPDU: 80 11 00 00 [14:19:56]Write to MH i2c: E2 08 00 2D 3F 80 11 00 00 00 00 00 00 E6 [14:19:56]Write i2c OK [14:19:56]MH_I2C_Read... [14:19:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:56]Read from MH i2c: E2 [14:19:56]MH_I2C_Read... [14:19:56]Read from MH i2c: E2 17 00 [14:19:56]MH_I2C_Read... [14:19:56]Read from MH i2c: E2 17 00 2D 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 31 [14:19:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:19:56]wFMCommunicate OK [14:19:56]requested_item fd.num is exist - process it [14:19:56]SAM_PROTO_GetFieldsCounters [14:19:56]wFMCommunicate request_size=4 [14:19:56]MH_SAM_APDU [14:19:56]CAPDU: 80 13 00 00 [14:19:56]Write to MH i2c: E2 08 00 2E 3F 80 13 00 00 00 00 00 00 E9 [14:19:56]Write i2c OK [14:19:56]MH_I2C_Read... [14:19:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:19:57]Read from MH i2c: E2 [14:19:57]MH_I2C_Read... [14:19:57]Read from MH i2c: E2 62 00 [14:19:57]MH_I2C_Read... [14:19:57]Read from MH i2c: E2 62 00 2E 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 0E 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 B8 [14:19:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 0E 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:19:57]wFMCommunicate OK [14:19:57]SAM_PROTO_GetFieldsCounters done [14:19:57]requested_item shift.num is exist - process it [14:19:57]requested_item shift.opened is exist - process it [14:19:57]req_shift_opened [14:19:57]FM_GetShiftState [14:19:57]SAM_PROTO_GetShiftState [14:19:57]wFMCommunicate request_size=4 [14:19:57]MH_SAM_APDU [14:19:57]CAPDU: 80 13 01 00 [14:19:57]Write to MH i2c: E2 08 00 2F 3F 80 13 01 00 00 00 00 00 EB [14:19:57]Write i2c OK [14:19:57]MH_I2C_Read... [14:19:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:57]Read from MH i2c: E2 [14:19:57]MH_I2C_Read... [14:19:57]Read from MH i2c: E2 0E 00 [14:19:57]MH_I2C_Read... [14:19:57]Read from MH i2c: E2 0E 00 2F 3F 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 C6 [14:19:57]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [14:19:57]wFMCommunicate OK [14:19:57]SAM_PROTO_GetShiftState done [14:19:57]FM_GetShiftState done [14:19:57]req_shift_opened done [14:19:57]requested_item shift.open_date is exist - process it [14:19:57]req_shift_open_date [14:19:57]req_shift_open_date done [14:19:57]produce_requested_data done [14:19:57]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68366,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [14:19:57]process_action_free close_receipt [14:19:57]json_value_free [14:19:57]json_value_free done [14:19:57]process_json_proto returns [14:19:57]Send response to host [14:19:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68366,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [14:19:57]free response buf [14:19:57]execute_script done [14:19:57]execute_script returns [14:19:57]free content buf [14:19:57]Sock 5.Close socket [14:19:57]Sock 5.Thread stoped [14:20:00]OFD Sender: No OFD packet to send [14:20:05]OFD Sender: No OFD packet to send [14:20:10]OFD Sender: No OFD packet to send [14:20:15]OFD Sender: No OFD packet to send [14:20:20]OFD Sender: No OFD packet to send [14:20:25]OFD Sender: No OFD packet to send [14:20:30]OFD Sender: No OFD packet to send [14:20:35]OFD Sender: No OFD packet to send [14:20:40]OFD Sender: No OFD packet to send [14:20:45]OFD Sender: No OFD packet to send [14:20:49]accept exits with 6 [14:20:49]New connection [14:20:49]New thread 3066543460 created [14:20:49]Thread 3066686820 joined [14:20:49]Waiting for new connection... [14:20:49] Sock 6.Parse request [14:20:49]Sock 6.Check first char [14:20:49]Sock 6.First char is OK [14:20:49]request: POST /json_proto HTTP/1.0 [14:20:49]Method: POST [14:20:49]URL: /json_proto [14:20:49]Method is POST - this is cgi request [14:20:49]url: /json_proto [14:20:49]query_string will be loaded in cgi processing [14:20:49]execute_cgi json_proto POST (null) [14:20:49]execute_cgi path=json_proto method=POST [14:20:49]POST find Content-Length [14:20:49]Host: 172.17.36.132:8080 [14:20:49]Content-Length: 1188 [14:20:49]Content-Type: application/json [14:20:49] [14:20:49]POST finish read [14:20:49]Found Content-Length = 1188 [14:20:49]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706459\u000A03.06.2024 13:58\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-4\u000A 20.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 1458.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A01887\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:20:49]execute_script... [14:20:49]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706459\u000A03.06.2024 13:58\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-4\u000A 20.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 1458.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A01887\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:20:49]POST & json_proto [14:20:49]process_json_proto [14:20:49]json parsed OK: [14:20:49]protocol is kg_v1.0 [14:20:49]action value=print_text [14:20:49]process_action print_text [14:20:49]cmd_print_text [14:20:49]ExternCall_PrintAddStr [14:20:49]wPrintStart [14:20:49]Write to MH i2c: 01 00 00 30 3F 6F [14:20:49]Write i2c OK [14:20:49]MH_I2C_Read... [14:20:49]Read from MH i2c: 01 [14:20:49]MH_I2C_Read... [14:20:49]Read from MH i2c: 01 07 00 [14:20:49]MH_I2C_Read... [14:20:49]Read from MH i2c: 01 07 00 30 3F 00 00 00 00 00 FF 0F 84 [14:20:49]RasterBufferAndPrint [14:20:49]line *****ТОВАРНЫЙ ЧЕК***** [14:20:49]line АЗС 62 [14:20:49]line Партнер нефть [14:20:49]line 02508201610067 [14:20:49]line Кассир : Балаев А. [14:20:49]line Счет N : (1)706459 [14:20:49]line 03.06.2024 13:58 [14:20:49]line ПРОДАЖА [14:20:49]line ТРК (МРК, ГНК): 51 [14:20:49]line Вид ГСМ : 2710194210 [14:20:49]line ДТ(л)-К-4 [14:20:49]line 20.000 x 72.90 [14:20:49]line ИТОГ: 1458.00 [14:20:49]line Тип оплаты: Талоны: Топливная Карта [14:20:49]line 01887 [14:20:49]line ______________________ [14:20:49]line (подпись) [14:20:49]written 0, free lines is 4095 [14:20:49]Write to MH i2c: 01 00 00 44 3F 83 [14:20:49]Write i2c OK [14:20:49]MH_I2C_Read... [14:20:49]Read from MH i2c: 01 [14:20:49]MH_I2C_Read... [14:20:49]Read from MH i2c: 01 07 00 [14:20:49]MH_I2C_Read... [14:20:49]Read from MH i2c: 01 07 00 44 3F 00 00 00 00 00 10 0E A8 [14:20:49]RasterBufferAndPrint [14:20:49]line [14:20:49]line [14:20:49]line [14:20:49]line [14:20:49]line [14:20:49]written 0, free lines is 3602 [14:20:49]MH_Cut [14:20:49]Write to MH i2c: D1 01 00 4B 3F 01 5C [14:20:49]Write i2c OK [14:20:49]MH_I2C_Read... [14:20:49]Read from MH i2c: D1 [14:20:49]MH_I2C_Read... [14:20:49]Read from MH i2c: D1 01 00 [14:20:49]MH_I2C_Read... [14:20:49]Read from MH i2c: D1 01 00 4B 3F 00 5B [14:20:49]Write to MH i2c: 01 00 00 4C 3F 8B [14:20:49]Write i2c OK [14:20:49]MH_I2C_Read... [14:20:49]*** Cut start [14:20:49]*** Partial cut [14:20:49]*** CUTSNS_PIN = 1 [14:20:49]*** CUTSNS_PIN = 0 [14:20:50]*** Brake cut motor [14:20:50]Read from MH i2c: 01 [14:20:50]MH_I2C_Read... [14:20:50]*** Stop cut motor [14:20:50]*** Cut end [14:20:50]Read from MH i2c: 01 07 00 [14:20:50]MH_I2C_Read... [14:20:50]Read from MH i2c: 01 07 00 4C 3F 00 00 00 00 00 FF 0F A0 [14:20:50]process_action print_text done [14:20:50]requested_data is exist [14:20:50]produce_requested_data [14:20:50]requested_item fm.sn is exist - process it [14:20:50]wFMCommunicate request_size=4 [14:20:50]MH_SAM_APDU [14:20:50]CAPDU: 80 11 00 00 [14:20:50]Write to MH i2c: E2 08 00 4D 3F 80 11 00 00 00 00 00 00 06 [14:20:50]Write i2c OK [14:20:50]MH_I2C_Read... [14:20:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:20:50]Read from MH i2c: E2 [14:20:50]MH_I2C_Read... [14:20:50]Read from MH i2c: E2 17 00 [14:20:50]MH_I2C_Read... [14:20:50]Read from MH i2c: E2 17 00 4D 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 51 [14:20:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:20:50]wFMCommunicate OK [14:20:50]requested_item fd.num is exist - process it [14:20:50]SAM_PROTO_GetFieldsCounters [14:20:50]wFMCommunicate request_size=4 [14:20:50]MH_SAM_APDU [14:20:50]CAPDU: 80 13 00 00 [14:20:50]Write to MH i2c: E2 08 00 4E 3F 80 13 00 00 00 00 00 00 09 [14:20:50]Write i2c OK [14:20:50]MH_I2C_Read... [14:20:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:20:50]Read from MH i2c: E2 [14:20:50]MH_I2C_Read... [14:20:50]Read from MH i2c: E2 62 00 [14:20:50]MH_I2C_Read... [14:20:50]Read from MH i2c: E2 62 00 4E 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 0E 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 D8 [14:20:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 0E 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:20:50]wFMCommunicate OK [14:20:50]SAM_PROTO_GetFieldsCounters done [14:20:50]requested_item shift.num is exist - process it [14:20:50]requested_item shift.opened is exist - process it [14:20:50]req_shift_opened [14:20:50]FM_GetShiftState [14:20:50]SAM_PROTO_GetShiftState [14:20:50]wFMCommunicate request_size=4 [14:20:50]MH_SAM_APDU [14:20:50]CAPDU: 80 13 01 00 [14:20:50]Write to MH i2c: E2 08 00 4F 3F 80 13 01 00 00 00 00 00 0B [14:20:50]Write i2c OK [14:20:50]MH_I2C_Read... [14:20:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:20:50]Read from MH i2c: E2 [14:20:50]MH_I2C_Read... [14:20:50]Read from MH i2c: E2 0E 00 [14:20:50]MH_I2C_Read... [14:20:50]Read from MH i2c: E2 0E 00 4F 3F 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 E6 [14:20:50]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [14:20:50]wFMCommunicate OK [14:20:50]SAM_PROTO_GetShiftState done [14:20:50]FM_GetShiftState done [14:20:50]req_shift_opened done [14:20:50]requested_item shift.open_date is exist - process it [14:20:50]req_shift_open_date [14:20:50]req_shift_open_date done [14:20:50]produce_requested_data done [14:20:50]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68366,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [14:20:50]process_action_free print_text [14:20:50]json_value_free [14:20:50]json_value_free done [14:20:50]process_json_proto returns [14:20:50]Send response to host [14:20:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68366,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [14:20:50]free response buf [14:20:50]execute_script done [14:20:50]execute_script returns [14:20:50]free content buf [14:20:50]Sock 6.Close socket [14:20:50]Sock 6.Thread stoped [14:20:50]OFD Sender: No OFD packet to send [14:20:55]OFD Sender: No OFD packet to send [14:21:00]OFD Sender: No OFD packet to send [14:21:05]OFD Sender: No OFD packet to send [14:21:10]OFD Sender: No OFD packet to send [14:21:15]OFD Sender: No OFD packet to send [14:21:20]OFD Sender: No OFD packet to send [14:21:25]OFD Sender: No OFD packet to send [14:21:30]accept exits with 5 [14:21:30]New connection [14:21:30]New thread 3066686820 created [14:21:30]Thread 3066543460 joined [14:21:30]Waiting for new connection... [14:21:30] Sock 5.Parse request [14:21:30]Sock 5.Check first char [14:21:30]Sock 5.First char is OK [14:21:30]request: POST /json_proto HTTP/1.0 [14:21:30]Method: POST [14:21:30]URL: /json_proto [14:21:30]Method is POST - this is cgi request [14:21:30]url: /json_proto [14:21:30]query_string will be loaded in cgi processing [14:21:30]execute_cgi json_proto POST (null) [14:21:30]execute_cgi path=json_proto method=POST [14:21:30]POST find Content-Length [14:21:30]Host: 172.17.36.132:8080 [14:21:30]Content-Length: 661 [14:21:30]Content-Type: application/json [14:21:30] [14:21:30]POST finish read [14:21:30]Found Content-Length = 661 [14:21:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706460", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.000, "sum" : 669.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "payments": [ { "type": 0, "sum" : 669.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:21:30]execute_script... [14:21: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)706460", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.000, "sum" : 669.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "payments": [ { "type": 0, "sum" : 669.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:21:30]POST & json_proto [14:21:30]process_json_proto [14:21:30]json parsed OK: [14:21:30]protocol is kg_v1.0 [14:21:30]action value=close_receipt [14:21:30]process_action close_receipt [14:21:30]cmd_close_receipt [14:21:30]MH_GetDate [14:21:30]Write to MH i2c: F0 00 00 50 3F 7E [14:21:30]Write i2c OK [14:21:30]MH_I2C_Read... [14:21:30]Read from MH i2c: F0 [14:21:30]MH_I2C_Read... [14:21:30]Read from MH i2c: F0 09 00 [14:21:30]MH_I2C_Read... [14:21:30]Read from MH i2c: F0 09 00 50 3F 00 6F D1 5D 66 B2 22 B0 64 72 [14:21:30]GetLastDocTimeStamp 1717424398 [14:21:30]current date 1717424495 [14:21:30]FM_GetShiftState [14:21:30]SAM_PROTO_GetShiftState [14:21:30]wFMCommunicate request_size=4 [14:21:30]MH_SAM_APDU [14:21:30]CAPDU: 80 13 01 00 [14:21:30]Write to MH i2c: E2 08 00 51 3F 80 13 01 00 00 00 00 00 0D [14:21:30]Write i2c OK [14:21:30]MH_I2C_Read... [14:21:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:30]Read from MH i2c: E2 [14:21:30]MH_I2C_Read... [14:21:30]Read from MH i2c: E2 0E 00 [14:21:30]MH_I2C_Read... [14:21:30]Read from MH i2c: E2 0E 00 51 3F 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 E8 [14:21:30]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [14:21:30]wFMCommunicate OK [14:21:30]SAM_PROTO_GetShiftState done [14:21:30]FM_GetShiftState done [14:21:30]opened in 1717378033 [14:21:30]opened+sec_in_day 1717464433 [14:21:30]quantity*price = 66900 [14:21:30]sum+1 = 66901 [14:21:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 669.00 Внесено: 1000.00 СДАЧА: 331.00 НСП 1% : 5.92 НДС 12% : 71.04 Наличными: 669.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 113 03.06.2024 14:21 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68367 ФПД: 200460434018593 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T142135&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68367&fm=200460434018593&tin=02508201610067®Number=0000000000098096&sum=66900 [14:21:31]StoreToDocumentArchive [14:21:31]shift 324 fd 68367 [14:21:31]save to /storage/0324/doc_00068367 [14:21:31]save last doc name /storage/0324/doc_00068367 to /storage/kkm_last_doc_name [14:21:31]save OK [14:21:31]Clear old archive folders... [14:21:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:21:31]tlvbuf is 0026B380 [14:21:31]SAM_PROTO_ClearQueue [14:21:31]wFMCommunicate request_size=4 [14:21:31]MH_SAM_APDU [14:21:31]CAPDU: 80 09 00 00 [14:21:31]Write to MH i2c: E2 08 00 5E 3F 80 09 00 00 00 00 00 00 0F [14:21:31]Write i2c OK [14:21:31]MH_I2C_Read... [14:21:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:21:31]Read from MH i2c: E2 [14:21:31]MH_I2C_Read... [14:21:31]Read from MH i2c: E2 03 00 [14:21:31]MH_I2C_Read... [14:21:31]Read from MH i2c: E2 03 00 5E 3F 00 90 00 11 [14:21:31]RAPDU: 90 00 [14:21:31]wFMCommunicate OK [14:21:31]SAM_PROTO_ClearQueue done [14:21:31]KKMCreateOFDPacket [14:21:31]OFDProtocolAddRootSTLVToBuf [14:21:31]FM_MakeSignedData [14:21:31]FM_MakeSignedData [14:21:31]SAM_PROTO_SignData [14:21:31]wFMCommunicate request_size=4 [14:21:31]MH_SAM_APDU [14:21:31]CAPDU: 80 0D 01 02 [14:21:31]Write to MH i2c: E2 08 00 5F 3F 80 0D 01 02 00 00 00 00 17 [14:21:31]Write i2c OK [14:21:31]MH_I2C_Read... [14:21:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:21:31]Read from MH i2c: E2 [14:21:31]MH_I2C_Read... [14:21:31]Read from MH i2c: E2 03 00 [14:21:31]MH_I2C_Read... [14:21:31]Read from MH i2c: E2 03 00 5F 3F 00 90 00 12 [14:21:31]RAPDU: 90 00 [14:21:31]wFMCommunicate OK [14:21:31]wFMCommunicate request_size=255 [14:21:31]MH_SAM_APDU [14:21:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 54 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 6F D1 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 0F 0B 01 00 35 04 06 00 B6 [14:21:31]Write to MH i2c: E2 02 01 60 3F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 54 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 6F D1 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 0F 0B 01 00 35 04 06 00 B6 00 00 57 [14:21:31]Write i2c OK [14:21:31]MH_I2C_Read... [14:21:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:31]Read from MH i2c: E2 [14:21:31]MH_I2C_Read... [14:21:31]Read from MH i2c: E2 03 00 [14:21:31]MH_I2C_Read... [14:21:31]Read from MH i2c: E2 03 00 60 3F 00 90 00 13 [14:21:31]RAPDU: 90 00 [14:21:31]wFMCommunicate OK [14:21:31]wFMCommunicate request_size=10 [14:21:31]MH_SAM_APDU [14:21:31]CAPDU: 80 0D 02 02 05 51 54 F6 11 21 [14:21:31]Write to MH i2c: E2 0D 00 61 3F 80 0D 02 02 05 00 51 54 F6 11 21 00 00 F1 [14:21:31]Write i2c OK [14:21:31]MH_I2C_Read... [14:21:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:31]Read from MH i2c: E2 [14:21:31]MH_I2C_Read... [14:21:31]Read from MH i2c: E2 03 00 [14:21:31]MH_I2C_Read... [14:21:31]Read from MH i2c: E2 03 00 61 3F 00 90 00 14 [14:21:31]RAPDU: 90 00 [14:21:31]wFMCommunicate OK [14:21:31]wFMCommunicate request_size=4 [14:21:31]MH_SAM_APDU [14:21:31]CAPDU: 80 0D 03 02 [14:21:31]Write to MH i2c: E2 08 00 62 3F 80 0D 03 02 00 00 00 00 1C [14:21:31]Write i2c OK [14:21:31]MH_I2C_Read... [14:21:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:21:31]Read from MH i2c: E2 [14:21:31]MH_I2C_Read... [14:21:31]Read from MH i2c: E2 0B 00 [14:21:31]MH_I2C_Read... [14:21:31]Read from MH i2c: E2 0B 00 62 3F 00 3E 21 D7 F3 D3 92 89 4C 90 00 80 [14:21:31]RAPDU: 3E 21 D7 F3 D3 92 89 4C 90 00 [14:21:31]wFMCommunicate OK [14:21:31]SAM_PROTO_SignData done [14:21:31]FM_MakeSignedData done [14:21:31]CreateOFDProtocolMessage [14:21:31]wFMCommunicate request_size=4 [14:21:31]MH_SAM_APDU [14:21:31]CAPDU: 80 11 00 00 [14:21:31]Write to MH i2c: E2 08 00 63 3F 80 11 00 00 00 00 00 00 1C [14:21:31]Write i2c OK [14:21:31]MH_I2C_Read... [14:21:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:31]Read from MH i2c: E2 [14:21:31]MH_I2C_Read... [14:21:31]Read from MH i2c: E2 17 00 [14:21:31]MH_I2C_Read... [14:21:31]Read from MH i2c: E2 17 00 63 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 67 [14:21:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:21:31]wFMCommunicate OK [14:21:31]CreateOFDProtocolMessage done [14:21:31]OFDSenderStorePacket 68367 [14:21:31]StoreOFDPacket docnum=68367 [14:21:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 07 00 07 01 DC 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 54 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 6F D1 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 0F 0B 01 00 35 04 06 00 B6 51 54 F6 11 21 3E 21 D7 F3 D3 92 89 4C [14:21:31]CheckFolder [14:21:31]dirname=/storage/ofd_packets [14:21:31]CheckFolder done [14:21:31]ProducePacketName [14:21:31]name=ofd_packets/00068367 [14:21:31]NVStorageSaveData ofd_packets/00068367 [14:21:31]File name is /storage/ofd_packets/00068367 [14:21:31]Write 301 bytes [14:21:31]NVStorageSaveData done [14:21:31]OFDSenderStorePacket done [14:21:31]KKMCreateOFDPacket done [14:21:31]NVStorageSaveData kkm_last_timestamp [14:21:31]File name is /storage/kkm_last_timestamp [14:21:31]Write 4 bytes [14:21:31]NVStorageSaveData done [14:21:31]ExternCall_PrintAddStr [14:21:31]wPrintStart [14:21:31]Write to MH i2c: 01 00 00 64 3F A3 [14:21:31]Write i2c OK [14:21:31]MH_I2C_Read... [14:21:31]Read from MH i2c: 01 [14:21:31]MH_I2C_Read... [14:21:31]Read from MH i2c: 01 07 00 [14:21:31]MH_I2C_Read... [14:21:31]Read from MH i2c: 01 07 00 64 3F 00 00 00 00 00 FF 0F B8 [14:21:31]RasterBufferAndPrint [14:21:31]line Счет N : (1)706460 [14:21:31]line ИНН: 02508201610067 [14:21:31]line Контрольно-Кассовый Чек [14:21:31]line ПРОДАЖА [14:21:31]line ТРК (МРК, ГНК) : 42 [14:21:31]line Товар: 2710124130 [14:21:31]line Аи-92-К-4 [14:21:31]line 10.000 * 66.90 [14:21:31]line = 669.00 [14:21:31]line НДС 12% НСП 1% [14:21:31]line > о реализуемом товаре [14:21:31]line ИТОГО: 669.00 [14:21:31]line Внесено: 1000.00 [14:21:31]line СДАЧА: 331.00 [14:21:31]line НСП 1% : 5.92 [14:21:31]line НДС 12% : 71.04 [14:21:31]line Наличными: 669.00 [14:21:31]line Безнал.: 0.00 [14:21:31]line Место: АЗС № 62 "Партнер Нефть" [14:21:31]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [14:21:31]line СНО: Общий режим [14:21:31]line Чек 113 03.06.2024 14:21 [14:21:31]line Смена: 324 ФФД: 1.0 [14:21:31]line ЗНМ: 0300000181 [14:21:31]line РНМ: 0000000000098096 [14:21:31]line Версия ККМ: 001 [14:21:31]line ФМ: 0000000000965400 [14:21:31]line ФД: 68367 [14:21:31]line ФПД: 200460434018593 [14:21:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T142135&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68367&fm=200460434018593&tin=02508201610067®Number=0000000000098096&sum=66900 [14:21:32]OFD Sender: Processing packet 68367 [packets to send 26, broken 25] [14:21:32]ProducePacketName [14:21:32]name=ofd_packets/00068367 [14:21:32]OFD Sender: To server: pG, [14:21:32]CommunicateWithHost lk.salyk.kg:30040 [14:21:32]ConnectInit lk.salyk.kg [14:21:32]written 0, free lines is 4095 [14:21:32]Connected sock=7 [14:21:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 07 00 07 01 DC 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 54 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 6F D1 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 0F 0B 01 00 35 04 06 00 B6 51 54 F6 11 21 3E 21 D7 F3 D3 92 89 4C [14:21:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 07 7E 47 00 C7 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 0F 0B 01 00 F4 03 04 00 6B 78 5D 66 B6 04 01 00 00 7C BD 54 4C 12 2E 51 99 [14:21:32]CommunicateWithHost err = 0 [14:21:32]CheckOFDResponse [14:21:32]1017 (14) - 77093643461234 [14:21:32]1041 (16) - 0000000000965400 [14:21:32]1040 (4) - 68367 [14:21:32]1012 (4) - 03.06.2024 08:01 [14:21:32]1206 (1) - 0 [14:21:32]OFD Sender: Remove packet 68367 [14:21:32]ProducePacketName [14:21:32]name=ofd_packets/00068367 [14:21:32]NVStorageDeleteData [14:21:32]Write to MH i2c: 01 00 00 8E 3F CD [14:21:32]Write i2c OK [14:21:32]MH_I2C_Read... [14:21:32]Read from MH i2c: 01 [14:21:32]MH_I2C_Read... [14:21:32]Read from MH i2c: 01 07 00 [14:21:32]MH_I2C_Read... [14:21:32]Read from MH i2c: 01 07 00 8E 3F 00 00 00 00 00 F3 0C D3 [14:21:32]RasterBufferAndPrint [14:21:32]line [14:21:32]line [14:21:32]line [14:21:32]line [14:21:32]line [14:21:32]written 0, free lines is 3321 [14:21:32]MH_Cut [14:21:32]Write to MH i2c: D1 01 00 95 3F 01 A6 [14:21:32]Write i2c OK [14:21:32]MH_I2C_Read... [14:21:32]Read from MH i2c: D1 [14:21:32]MH_I2C_Read... [14:21:32]Read from MH i2c: D1 01 00 [14:21:32]MH_I2C_Read... [14:21:32]Read from MH i2c: D1 01 00 95 3F 00 A5 [14:21:32]Write to MH i2c: 01 00 00 96 3F D5 [14:21:32]Write i2c OK [14:21:32]MH_I2C_Read... [14:21:33]OFD Sender: No OFD packet to send [14:21:33]*** Cut start [14:21:33]*** Partial cut [14:21:33]*** CUTSNS_PIN = 1 [14:21:33]*** CUTSNS_PIN = 0 [14:21:33]*** Brake cut motor [14:21:34]Read from MH i2c: 01 [14:21:34]MH_I2C_Read... [14:21:34]*** Stop cut motor [14:21:34]*** Cut end [14:21:34]Read from MH i2c: 01 07 00 [14:21:34]MH_I2C_Read... [14:21:34]Read from MH i2c: 01 07 00 96 3F 00 00 00 00 00 FF 0F EA [14:21:34]process_action close_receipt done [14:21:34]requested_data is exist [14:21:34]produce_requested_data [14:21:34]requested_item fm.sn is exist - process it [14:21:34]wFMCommunicate request_size=4 [14:21:34]MH_SAM_APDU [14:21:34]CAPDU: 80 11 00 00 [14:21:34]Write to MH i2c: E2 08 00 97 3F 80 11 00 00 00 00 00 00 50 [14:21:34]Write i2c OK [14:21:34]MH_I2C_Read... [14:21:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:34]Read from MH i2c: E2 [14:21:34]MH_I2C_Read... [14:21:34]Read from MH i2c: E2 17 00 [14:21:34]MH_I2C_Read... [14:21:34]Read from MH i2c: E2 17 00 97 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 9B [14:21:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:21:34]wFMCommunicate OK [14:21:34]requested_item fd.num is exist - process it [14:21:34]SAM_PROTO_GetFieldsCounters [14:21:34]wFMCommunicate request_size=4 [14:21:34]MH_SAM_APDU [14:21:34]CAPDU: 80 13 00 00 [14:21:34]Write to MH i2c: E2 08 00 98 3F 80 13 00 00 00 00 00 00 53 [14:21:34]Write i2c OK [14:21:34]MH_I2C_Read... [14:21:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:21:34]Read from MH i2c: E2 [14:21:34]MH_I2C_Read... [14:21:34]Read from MH i2c: E2 62 00 [14:21:34]MH_I2C_Read... [14:21:34]Read from MH i2c: E2 62 00 98 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 0F 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 26 [14:21:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 0F 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:21:34]wFMCommunicate OK [14:21:34]SAM_PROTO_GetFieldsCounters done [14:21:34]requested_item shift.num is exist - process it [14:21:34]requested_item shift.opened is exist - process it [14:21:34]req_shift_opened [14:21:34]FM_GetShiftState [14:21:34]SAM_PROTO_GetShiftState [14:21:34]wFMCommunicate request_size=4 [14:21:34]MH_SAM_APDU [14:21:34]CAPDU: 80 13 01 00 [14:21:34]Write to MH i2c: E2 08 00 99 3F 80 13 01 00 00 00 00 00 55 [14:21:34]Write i2c OK [14:21:34]MH_I2C_Read... [14:21:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:34]Read from MH i2c: E2 [14:21:34]MH_I2C_Read... [14:21:34]Read from MH i2c: E2 0E 00 [14:21:34]MH_I2C_Read... [14:21:34]Read from MH i2c: E2 0E 00 99 3F 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 30 [14:21:34]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [14:21:34]wFMCommunicate OK [14:21:34]SAM_PROTO_GetShiftState done [14:21:34]FM_GetShiftState done [14:21:34]req_shift_opened done [14:21:34]requested_item shift.open_date is exist - process it [14:21:34]req_shift_open_date [14:21:34]req_shift_open_date done [14:21:34]produce_requested_data done [14:21:34]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68367,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [14:21:34]process_action_free close_receipt [14:21:34]json_value_free [14:21:34]json_value_free done [14:21:34]process_json_proto returns [14:21:34]Send response to host [14:21:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68367,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [14:21:34]free response buf [14:21:34]execute_script done [14:21:34]execute_script returns [14:21:34]free content buf [14:21:34]Sock 5.Close socket [14:21:34]Sock 5.Thread stoped [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]OFD Sender: No OFD packet to send [14:24:03]OFD Sender: No OFD packet to send [14:24:08]OFD Sender: No OFD packet to send [14:24:13]OFD Sender: No OFD packet to send [14:24:18]OFD Sender: No OFD packet to send [14:24:23]OFD Sender: No OFD packet to send [14:24:28]OFD Sender: No OFD packet to send [14:24:33]OFD Sender: No OFD packet to send [14:24:38]OFD Sender: No OFD packet to send [14:24:40]accept exits with 6 [14:24:40]New connection [14:24:40]New thread 3066543460 created [14:24:40]Thread 3066686820 joined [14:24:40]Waiting for new connection... [14:24:40] Sock 6.Parse request [14:24:40]Sock 6.Check first char [14:24:40]Sock 6.First char is OK [14:24:40]request: POST /json_proto HTTP/1.0 [14:24:40]Method: POST [14:24:40]URL: /json_proto [14:24:40]Method is POST - this is cgi request [14:24:40]url: /json_proto [14:24:40]query_string will be loaded in cgi processing [14:24:40]execute_cgi json_proto POST (null) [14:24:40]execute_cgi path=json_proto method=POST [14:24:40]POST find Content-Length [14:24:40]Host: 172.17.36.132:8080 [14:24:40]Content-Length: 1183 [14:24:40]Content-Type: application/json [14:24:40] [14:24:40]POST finish read [14:24:40]Found Content-Length = 1183 [14:24:40]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706461\u000A03.06.2024 14:01\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 63\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 30.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 2007.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A68582\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:40]execute_script... [14:24:40]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706461\u000A03.06.2024 14:01\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 63\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 30.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 2007.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A68582\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:40]POST & json_proto [14:24:40]process_json_proto [14:24:40]json parsed OK: [14:24:40]protocol is kg_v1.0 [14:24:40]action value=print_text [14:24:40]process_action print_text [14:24:40]cmd_print_text [14:24:40]ExternCall_PrintAddStr [14:24:40]wPrintStart [14:24:40]Write to MH i2c: 01 00 00 9A 3F D9 [14:24:40]Write i2c OK [14:24:40]MH_I2C_Read... [14:24:40]Read from MH i2c: 01 [14:24:40]MH_I2C_Read... [14:24:40]Read from MH i2c: 01 07 00 [14:24:40]MH_I2C_Read... [14:24:40]Read from MH i2c: 01 07 00 9A 3F 00 00 00 00 00 FF 0F EE [14:24:40]RasterBufferAndPrint [14:24:40]line *****ТОВАРНЫЙ ЧЕК***** [14:24:40]line АЗС 62 [14:24:40]line Партнер нефть [14:24:40]line 02508201610067 [14:24:40]line Кассир : Балаев А. [14:24:40]line Счет N : (1)706461 [14:24:40]line 03.06.2024 14:01 [14:24:40]line ПРОДАЖА [14:24:40]line ТРК (МРК, ГНК): 63 [14:24:40]line Вид ГСМ : 2710124130 [14:24:40]line Аи-92-К-4 [14:24:40]line 30.000 x 66.90 [14:24:40]line ИТОГ: 2007.00 [14:24:40]line Тип оплаты: Талоны: Топливная Карта [14:24:40]line 68582 [14:24:40]line ______________________ [14:24:40]line (подпись) [14:24:40]written 0, free lines is 4095 [14:24:40]Write to MH i2c: 01 00 00 AE 3F ED [14:24:40]Write i2c OK [14:24:40]MH_I2C_Read... [14:24:40]Read from MH i2c: 01 [14:24:40]MH_I2C_Read... [14:24:40]Read from MH i2c: 01 07 00 [14:24:40]MH_I2C_Read... [14:24:40]Read from MH i2c: 01 07 00 AE 3F 00 00 00 00 00 12 0E 14 [14:24:40]RasterBufferAndPrint [14:24:40]line [14:24:40]line [14:24:40]line [14:24:40]line [14:24:40]line [14:24:40]written 0, free lines is 3604 [14:24:40]MH_Cut [14:24:40]Write to MH i2c: D1 01 00 B5 3F 01 C6 [14:24:40]Write i2c OK [14:24:40]MH_I2C_Read... [14:24:40]Read from MH i2c: D1 [14:24:40]MH_I2C_Read... [14:24:40]Read from MH i2c: D1 01 00 [14:24:40]MH_I2C_Read... [14:24:40]Read from MH i2c: D1 01 00 B5 3F 00 C5 [14:24:40]Write to MH i2c: 01 00 00 B6 3F F5 [14:24:40]Write i2c OK [14:24:40]MH_I2C_Read... [14:24:41]*** Cut start [14:24:41]*** Partial cut [14:24:41]*** CUTSNS_PIN = 1 [14:24:41]*** CUTSNS_PIN = 0 [14:24:41]*** Brake cut motor [14:24:41]Read from MH i2c: 01 [14:24:41]MH_I2C_Read... [14:24:41]*** Stop cut motor [14:24:41]*** Cut end [14:24:41]Read from MH i2c: 01 07 00 [14:24:41]MH_I2C_Read... [14:24:41]Read from MH i2c: 01 07 00 B6 3F 00 00 00 00 00 FF 0F 0A [14:24:41]process_action print_text done [14:24:41]requested_data is exist [14:24:41]produce_requested_data [14:24:41]requested_item fm.sn is exist - process it [14:24:41]wFMCommunicate request_size=4 [14:24:41]MH_SAM_APDU [14:24:41]CAPDU: 80 11 00 00 [14:24:41]Write to MH i2c: E2 08 00 B7 3F 80 11 00 00 00 00 00 00 70 [14:24:41]Write i2c OK [14:24:41]MH_I2C_Read... [14:24:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:41]Read from MH i2c: E2 [14:24:41]MH_I2C_Read... [14:24:41]Read from MH i2c: E2 17 00 [14:24:41]MH_I2C_Read... [14:24:41]Read from MH i2c: E2 17 00 B7 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 BB [14:24:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:24:41]wFMCommunicate OK [14:24:41]requested_item fd.num is exist - process it [14:24:41]SAM_PROTO_GetFieldsCounters [14:24:41]wFMCommunicate request_size=4 [14:24:41]MH_SAM_APDU [14:24:41]CAPDU: 80 13 00 00 [14:24:41]Write to MH i2c: E2 08 00 B8 3F 80 13 00 00 00 00 00 00 73 [14:24:41]Write i2c OK [14:24:41]MH_I2C_Read... [14:24:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:24:41]Read from MH i2c: E2 [14:24:41]MH_I2C_Read... [14:24:41]Read from MH i2c: E2 62 00 [14:24:41]MH_I2C_Read... [14:24:41]Read from MH i2c: E2 62 00 B8 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 0F 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 46 [14:24:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 0F 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:24:41]wFMCommunicate OK [14:24:41]SAM_PROTO_GetFieldsCounters done [14:24:41]requested_item shift.num is exist - process it [14:24:41]requested_item shift.opened is exist - process it [14:24:41]req_shift_opened [14:24:41]FM_GetShiftState [14:24:41]SAM_PROTO_GetShiftState [14:24:41]wFMCommunicate request_size=4 [14:24:41]MH_SAM_APDU [14:24:41]CAPDU: 80 13 01 00 [14:24:41]Write to MH i2c: E2 08 00 B9 3F 80 13 01 00 00 00 00 00 75 [14:24:41]Write i2c OK [14:24:41]MH_I2C_Read... [14:24:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:41]Read from MH i2c: E2 [14:24:41]MH_I2C_Read... [14:24:41]Read from MH i2c: E2 0E 00 [14:24:41]MH_I2C_Read... [14:24:41]Read from MH i2c: E2 0E 00 B9 3F 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 50 [14:24:41]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [14:24:41]wFMCommunicate OK [14:24:41]SAM_PROTO_GetShiftState done [14:24:41]FM_GetShiftState done [14:24:41]req_shift_opened done [14:24:41]requested_item shift.open_date is exist - process it [14:24:41]req_shift_open_date [14:24:41]req_shift_open_date done [14:24:41]produce_requested_data done [14:24:41]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68367,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [14:24:41]process_action_free print_text [14:24:41]json_value_free [14:24:41]json_value_free done [14:24:41]process_json_proto returns [14:24:41]Send response to host [14:24:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68367,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [14:24:41]free response buf [14:24:41]execute_script done [14:24:41]execute_script returns [14:24:41]free content buf [14:24:41]Sock 6.Close socket [14:24:41]Sock 6.Thread stoped [14:24:43]OFD Sender: No OFD packet to send [14:24:48]OFD Sender: No OFD packet to send [14:24:53]OFD Sender: No OFD packet to send [14:24:58]OFD Sender: No OFD packet to send [14:25:03]OFD Sender: No OFD packet to send [14:25:08]OFD Sender: No OFD packet to send [14:25:13]OFD Sender: No OFD packet to send [14:25:18]OFD Sender: No OFD packet to send [14:25:23]OFD Sender: No OFD packet to send [14:25:28]OFD Sender: No OFD packet to send [14:25:33]OFD Sender: No OFD packet to send [14:25:38]OFD Sender: No OFD packet to send [14:25:43]OFD Sender: No OFD packet to send [14:25:48]OFD Sender: No OFD packet to send [14:25:53]OFD Sender: No OFD packet to send [14:25:58]OFD Sender: No OFD packet to send [14:26:03]OFD Sender: No OFD packet to send [14:26:08]OFD Sender: No OFD packet to send [14:26:13]OFD Sender: No OFD packet to send [14:26:18]OFD Sender: No OFD packet to send [14:26:23]OFD Sender: No OFD packet to send [14:26:26]accept exits with 5 [14:26:26]New connection [14:26:26]New thread 3066686820 created [14:26:26]Thread 3066543460 joined [14:26:26]Waiting for new connection... [14:26:26] Sock 5.Parse request [14:26:26]Sock 5.Check first char [14:26:26]Sock 5.First char is OK [14:26:26]request: POST /json_proto HTTP/1.0 [14:26:26]Method: POST [14:26:26]URL: /json_proto [14:26:26]Method is POST - this is cgi request [14:26:26]url: /json_proto [14:26:26]query_string will be loaded in cgi processing [14:26:26]execute_cgi json_proto POST (null) [14:26:26]execute_cgi path=json_proto method=POST [14:26:26]POST find Content-Length [14:26:26]Host: 172.17.36.132:8080 [14:26:26]Content-Length: 675 [14:26:26]Content-Type: application/json [14:26:26] [14:26:26]POST finish read [14:26:26]Found Content-Length = 675 [14:26:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706462", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 14.730, "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" ] } } [14:26:26]execute_script... [14:26:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706462", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 14.730, "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" ] } } [14:26:26]POST & json_proto [14:26:26]process_json_proto [14:26:26]json parsed OK: [14:26:26]protocol is kg_v1.0 [14:26:26]action value=close_receipt [14:26:26]process_action close_receipt [14:26:26]cmd_close_receipt [14:26:26]MH_GetDate [14:26:26]Write to MH i2c: F0 00 00 BA 3F E8 [14:26:26]Write i2c OK [14:26:26]MH_I2C_Read... [14:26:26]Read from MH i2c: F0 [14:26:26]MH_I2C_Read... [14:26:26]Read from MH i2c: F0 09 00 [14:26:26]MH_I2C_Read... [14:26:26]Read from MH i2c: F0 09 00 BA 3F 00 98 D2 5D 66 B2 22 B0 64 06 [14:26:26]GetLastDocTimeStamp 1717424495 [14:26:26]current date 1717424792 [14:26:26]FM_GetShiftState [14:26:26]SAM_PROTO_GetShiftState [14:26:26]wFMCommunicate request_size=4 [14:26:26]MH_SAM_APDU [14:26:26]CAPDU: 80 13 01 00 [14:26:26]Write to MH i2c: E2 08 00 BB 3F 80 13 01 00 00 00 00 00 77 [14:26:26]Write i2c OK [14:26:26]MH_I2C_Read... [14:26:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:26]Read from MH i2c: E2 [14:26:26]MH_I2C_Read... [14:26:26]Read from MH i2c: E2 0E 00 [14:26:26]MH_I2C_Read... [14:26:26]Read from MH i2c: E2 0E 00 BB 3F 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 52 [14:26:26]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [14:26:26]wFMCommunicate OK [14:26:26]SAM_PROTO_GetShiftState done [14:26:26]FM_GetShiftState done [14:26:26]opened in 1717378033 [14:26:26]opened+sec_in_day 1717464433 [14:26:26]quantity*price = 100016 [14:26:26]sum+1 = 100018 [14:26:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 114 03.06.2024 14:26 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68368 ФПД: 124121478134922 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T142632&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68368&fm=124121478134922&tin=02508201610067®Number=0000000000098096&sum=100000 [14:26:27]StoreToDocumentArchive [14:26:27]shift 324 fd 68368 [14:26:27]save to /storage/0324/doc_00068368 [14:26:27]save last doc name /storage/0324/doc_00068368 to /storage/kkm_last_doc_name [14:26:27]save OK [14:26:27]Clear old archive folders... [14:26:27]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:26:27]tlvbuf is 004CEDC0 [14:26:27]SAM_PROTO_ClearQueue [14:26:27]wFMCommunicate request_size=4 [14:26:27]MH_SAM_APDU [14:26:27]CAPDU: 80 09 00 00 [14:26:27]Write to MH i2c: E2 08 00 C8 3F 80 09 00 00 00 00 00 00 79 [14:26:27]Write i2c OK [14:26:27]MH_I2C_Read... [14:26:27]Read from MH i2c: E2 [14:26:27]MH_I2C_Read... [14:26:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:26:27]Read from MH i2c: E2 03 00 [14:26:27]MH_I2C_Read... [14:26:27]Read from MH i2c: E2 03 00 C8 3F 00 90 00 7B [14:26:27]RAPDU: 90 00 [14:26:27]wFMCommunicate OK [14:26:27]SAM_PROTO_ClearQueue done [14:26:27]KKMCreateOFDPacket [14:26:27]OFDProtocolAddRootSTLVToBuf [14:26:27]FM_MakeSignedData [14:26:27]FM_MakeSignedData [14:26:27]SAM_PROTO_SignData [14:26:27]wFMCommunicate request_size=4 [14:26:27]MH_SAM_APDU [14:26:27]CAPDU: 80 0D 01 02 [14:26:27]Write to MH i2c: E2 08 00 C9 3F 80 0D 01 02 00 00 00 00 81 [14:26:27]Write i2c OK [14:26:27]MH_I2C_Read... [14:26:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:26:28]Read from MH i2c: E2 [14:26:28]MH_I2C_Read... [14:26:28]Read from MH i2c: E2 03 00 [14:26:28]MH_I2C_Read... [14:26:28]Read from MH i2c: E2 03 00 C9 3F 00 90 00 7C [14:26:28]RAPDU: 90 00 [14:26:28]wFMCommunicate OK [14:26:28]wFMCommunicate request_size=255 [14:26:28]MH_SAM_APDU [14:26:28]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 39 00 00 00 00 00 37 04 06 00 86 1A 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 72 00 00 00 F4 03 04 00 98 D2 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 10 0B 01 00 35 04 06 00 [14:26:28]Write to MH i2c: E2 02 01 CA 3F 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 39 00 00 00 00 00 37 04 06 00 86 1A 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 72 00 00 00 F4 03 04 00 98 D2 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 10 0B 01 00 35 04 06 00 00 00 BB [14:26:28]Write i2c OK [14:26:28]MH_I2C_Read... [14:26:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:28]Read from MH i2c: E2 [14:26:28]MH_I2C_Read... [14:26:28]Read from MH i2c: E2 03 00 [14:26:28]MH_I2C_Read... [14:26:28]Read from MH i2c: E2 03 00 CA 3F 00 90 00 7D [14:26:28]RAPDU: 90 00 [14:26:28]wFMCommunicate OK [14:26:28]wFMCommunicate request_size=11 [14:26:28]MH_SAM_APDU [14:26:28]CAPDU: 80 0D 02 02 06 70 E3 48 9C FC 8A [14:26:28]Write to MH i2c: E2 0E 00 CB 3F 80 0D 02 02 06 00 70 E3 48 9C FC 8A 00 00 4D [14:26:28]Write i2c OK [14:26:28]MH_I2C_Read... [14:26:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:28]Read from MH i2c: E2 [14:26:28]MH_I2C_Read... [14:26:28]Read from MH i2c: E2 03 00 [14:26:28]MH_I2C_Read... [14:26:28]Read from MH i2c: E2 03 00 CB 3F 00 90 00 7E [14:26:28]RAPDU: 90 00 [14:26:28]wFMCommunicate OK [14:26:28]wFMCommunicate request_size=4 [14:26:28]MH_SAM_APDU [14:26:28]CAPDU: 80 0D 03 02 [14:26:28]Write to MH i2c: E2 08 00 CC 3F 80 0D 03 02 00 00 00 00 86 [14:26:28]Write i2c OK [14:26:28]MH_I2C_Read... [14:26:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:26:28]Read from MH i2c: E2 [14:26:28]MH_I2C_Read... [14:26:28]Read from MH i2c: E2 0B 00 [14:26:28]MH_I2C_Read... [14:26:28]Read from MH i2c: E2 0B 00 CC 3F 00 5A B6 B8 1A 23 64 3E 3A 90 00 68 [14:26:28]RAPDU: 5A B6 B8 1A 23 64 3E 3A 90 00 [14:26:28]wFMCommunicate OK [14:26:28]SAM_PROTO_SignData done [14:26:28]FM_MakeSignedData done [14:26:28]CreateOFDProtocolMessage [14:26:28]wFMCommunicate request_size=4 [14:26:28]MH_SAM_APDU [14:26:28]CAPDU: 80 11 00 00 [14:26:28]Write to MH i2c: E2 08 00 CD 3F 80 11 00 00 00 00 00 00 86 [14:26:28]Write i2c OK [14:26:28]MH_I2C_Read... [14:26:28]OFD Sender: No OFD packet to send [14:26:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:28]Read from MH i2c: E2 [14:26:28]MH_I2C_Read... [14:26:28]Read from MH i2c: E2 17 00 [14:26:28]MH_I2C_Read... [14:26:28]Read from MH i2c: E2 17 00 CD 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 D1 [14:26:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:26:28]wFMCommunicate OK [14:26:28]CreateOFDProtocolMessage done [14:26:28]OFDSenderStorePacket 68368 [14:26:28]StoreOFDPacket docnum=68368 [14:26:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 56 14 08 01 65 43 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 39 00 00 00 00 00 37 04 06 00 86 1A 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 72 00 00 00 F4 03 04 00 98 D2 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 10 0B 01 00 35 04 06 00 70 E3 48 9C FC 8A 5A B6 B8 1A 23 64 3E 3A [14:26:28]CheckFolder [14:26:28]dirname=/storage/ofd_packets [14:26:28]CheckFolder done [14:26:28]ProducePacketName [14:26:28]name=ofd_packets/00068368 [14:26:28]NVStorageSaveData ofd_packets/00068368 [14:26:28]File name is /storage/ofd_packets/00068368 [14:26:28]Write 302 bytes [14:26:28]NVStorageSaveData done [14:26:28]OFDSenderStorePacket done [14:26:28]KKMCreateOFDPacket done [14:26:28]NVStorageSaveData kkm_last_timestamp [14:26:28]File name is /storage/kkm_last_timestamp [14:26:28]Write 4 bytes [14:26:28]NVStorageSaveData done [14:26:28]ExternCall_PrintAddStr [14:26:28]wPrintStart [14:26:28]Write to MH i2c: 01 00 00 CE 3F 0D [14:26:28]Write i2c OK [14:26:28]MH_I2C_Read... [14:26:28]Read from MH i2c: 01 [14:26:28]MH_I2C_Read... [14:26:28]Read from MH i2c: 01 07 00 [14:26:28]MH_I2C_Read... [14:26:28]Read from MH i2c: 01 07 00 CE 3F 00 00 00 00 00 FF 0F 22 [14:26:28]RasterBufferAndPrint [14:26:28]line Счет N : (1)706462 [14:26:28]line ИНН: 02508201610067 [14:26:28]line Контрольно-Кассовый Чек [14:26:28]line ПРОДАЖА [14:26:28]line ТРК (МРК, ГНК) : 52 [14:26:28]line Товар: 2710124130 [14:26:28]line Super-92-К-5 [14:26:28]line 14.730 * 67.90 [14:26:28]line = 1000.17 [14:26:28]line НДС 12% НСП 1% [14:26:28]line > о реализуемом товаре [14:26:28]line ОКРУГЛЕНИЕ: -0.17 [14:26:28]line ИТОГО: 1000.00 [14:26:28]line Внесено: 1000.00 [14:26:28]line СДАЧА: 0.00 [14:26:28]line НСП 1% : 8.85 [14:26:28]line НДС 12% : 106.21 [14:26:28]line Наличными: 1000.00 [14:26:28]line Безнал.: 0.00 [14:26:28]line Место: АЗС № 62 "Партнер Нефть" [14:26:28]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [14:26:28]line СНО: Общий режим [14:26:28]line Чек 114 03.06.2024 14:26 [14:26:28]line Смена: 324 ФФД: 1.0 [14:26:28]line ЗНМ: 0300000181 [14:26:28]line РНМ: 0000000000098096 [14:26:28]line Версия ККМ: 001 [14:26:28]line ФМ: 0000000000965400 [14:26:28]line ФД: 68368 [14:26:28]line ФПД: 124121478134922 [14:26:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T142632&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68368&fm=124121478134922&tin=02508201610067®Number=0000000000098096&sum=100000 [14:26:28]OFD Sender: Processing packet 68368 [packets to send 26, broken 25] [14:26:28]ProducePacketName [14:26:28]name=ofd_packets/00068368 [14:26:28]OFD Sender: To server: pG, [14:26:28]CommunicateWithHost lk.salyk.kg:30040 [14:26:28]ConnectInit lk.salyk.kg [14:26:28]written 0, free lines is 4095 [14:26:28]Connected sock=7 [14:26:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 56 14 08 01 65 43 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 39 00 00 00 00 00 37 04 06 00 86 1A 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 72 00 00 00 F4 03 04 00 98 D2 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 10 0B 01 00 35 04 06 00 70 E3 48 9C FC 8A 5A B6 B8 1A 23 64 3E 3A [14:26:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 75 3F 47 00 AA 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 10 0B 01 00 F4 03 04 00 94 79 5D 66 B6 04 01 00 00 59 A2 42 78 07 5C CB 00 [14:26:29]CommunicateWithHost err = 0 [14:26:29]CheckOFDResponse [14:26:29]1017 (14) - 77093643461234 [14:26:29]1041 (16) - 0000000000965400 [14:26:29]1040 (4) - 68368 [14:26:29]1012 (4) - 03.06.2024 08:06 [14:26:29]1206 (1) - 0 [14:26:29]OFD Sender: Remove packet 68368 [14:26:29]ProducePacketName [14:26:29]name=ofd_packets/00068368 [14:26:29]NVStorageDeleteData [14:26:29]Write to MH i2c: 01 00 00 F9 3F 38 [14:26:29]Write i2c OK [14:26:29]MH_I2C_Read... [14:26:29]Read from MH i2c: 01 [14:26:29]MH_I2C_Read... [14:26:29]Read from MH i2c: 01 07 00 [14:26:29]MH_I2C_Read... [14:26:29]Read from MH i2c: 01 07 00 F9 3F 00 00 00 00 00 EF 0C 3A [14:26:29]RasterBufferAndPrint [14:26:29]line [14:26:29]line [14:26:29]line [14:26:29]line [14:26:29]line [14:26:29]written 0, free lines is 3320 [14:26:29]MH_Cut [14:26:29]Write to MH i2c: D1 01 00 00 40 01 12 [14:26:29]Write i2c OK [14:26:29]MH_I2C_Read... [14:26:29]Read from MH i2c: D1 [14:26:29]MH_I2C_Read... [14:26:29]Read from MH i2c: D1 01 00 [14:26:29]MH_I2C_Read... [14:26:29]Read from MH i2c: D1 01 00 00 40 00 11 [14:26:29]Write to MH i2c: 01 00 00 01 40 41 [14:26:29]Write i2c OK [14:26:29]MH_I2C_Read... [14:26:29]OFD Sender: No OFD packet to send [14:26:30]*** Cut start [14:26:30]*** Partial cut [14:26:30]*** CUTSNS_PIN = 1 [14:26:30]*** CUTSNS_PIN = 0 [14:26:30]*** Brake cut motor [14:26:30]Read from MH i2c: 01 [14:26:30]MH_I2C_Read... [14:26:30]*** Stop cut motor [14:26:30]*** Cut end [14:26:30]Read from MH i2c: 01 07 00 [14:26:30]MH_I2C_Read... [14:26:30]Read from MH i2c: 01 07 00 01 40 00 00 00 00 00 FF 0F 56 [14:26:30]process_action close_receipt done [14:26:30]requested_data is exist [14:26:30]produce_requested_data [14:26:30]requested_item fm.sn is exist - process it [14:26:30]wFMCommunicate request_size=4 [14:26:30]MH_SAM_APDU [14:26:30]CAPDU: 80 11 00 00 [14:26:30]Write to MH i2c: E2 08 00 02 40 80 11 00 00 00 00 00 00 BC [14:26:30]Write i2c OK [14:26:30]MH_I2C_Read... [14:26:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:30]Read from MH i2c: E2 [14:26:30]MH_I2C_Read... [14:26:30]Read from MH i2c: E2 17 00 [14:26:30]MH_I2C_Read... [14:26:30]Read from MH i2c: E2 17 00 02 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 07 [14:26:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:26:30]wFMCommunicate OK [14:26:30]requested_item fd.num is exist - process it [14:26:30]SAM_PROTO_GetFieldsCounters [14:26:30]wFMCommunicate request_size=4 [14:26:30]MH_SAM_APDU [14:26:30]CAPDU: 80 13 00 00 [14:26:30]Write to MH i2c: E2 08 00 03 40 80 13 00 00 00 00 00 00 BF [14:26:30]Write i2c OK [14:26:30]MH_I2C_Read... [14:26:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:26:30]Read from MH i2c: E2 [14:26:30]MH_I2C_Read... [14:26:30]Read from MH i2c: E2 62 00 [14:26:30]MH_I2C_Read... [14:26:30]Read from MH i2c: E2 62 00 03 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 10 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 96 [14:26:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 10 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:26:30]wFMCommunicate OK [14:26:30]SAM_PROTO_GetFieldsCounters done [14:26:30]requested_item shift.num is exist - process it [14:26:30]requested_item shift.opened is exist - process it [14:26:30]req_shift_opened [14:26:30]FM_GetShiftState [14:26:30]SAM_PROTO_GetShiftState [14:26:30]wFMCommunicate request_size=4 [14:26:30]MH_SAM_APDU [14:26:30]CAPDU: 80 13 01 00 [14:26:30]Write to MH i2c: E2 08 00 04 40 80 13 01 00 00 00 00 00 C1 [14:26:30]Write i2c OK [14:26:30]MH_I2C_Read... [14:26:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:30]Read from MH i2c: E2 [14:26:30]MH_I2C_Read... [14:26:30]Read from MH i2c: E2 0E 00 [14:26:30]MH_I2C_Read... [14:26:30]Read from MH i2c: E2 0E 00 04 40 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 9C [14:26:30]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [14:26:30]wFMCommunicate OK [14:26:30]SAM_PROTO_GetShiftState done [14:26:30]FM_GetShiftState done [14:26:30]req_shift_opened done [14:26:30]requested_item shift.open_date is exist - process it [14:26:30]req_shift_open_date [14:26:30]req_shift_open_date done [14:26:30]produce_requested_data done [14:26:30]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68368,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [14:26:30]process_action_free close_receipt [14:26:30]json_value_free [14:26:30]json_value_free done [14:26:30]process_json_proto returns [14:26:30]Send response to host [14:26:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68368,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [14:26:30]free response buf [14:26:30]execute_script done [14:26:30]execute_script returns [14:26:30]free content buf [14:26:30]Sock 5.Close socket [14:26:30]Sock 5.Thread stoped [14:26:34]OFD Sender: No OFD packet to send [14:26:39]OFD Sender: No OFD packet to send [14:26:44]OFD Sender: No OFD packet to send [14:26:49]OFD Sender: No OFD packet to send [14:26:54]OFD Sender: No OFD packet to send [14:26:59]OFD Sender: No OFD packet to send [14:27:04]OFD Sender: No OFD packet to send [14:27:09]OFD Sender: No OFD packet to send [14:27:14]OFD Sender: No OFD packet to send [14:27:19]OFD Sender: No OFD packet to send [14:27:24]OFD Sender: No OFD packet to send [14:27:29]OFD Sender: No OFD packet to send [14:27:34]OFD Sender: No OFD packet to send [14:27:39]OFD Sender: No OFD packet to send [14:27:44]OFD Sender: No OFD packet to send [14:27:49]OFD Sender: No OFD packet to send [14:27:54]OFD Sender: No OFD packet to send [14:27:59]OFD Sender: No OFD packet to send [14:28:04]OFD Sender: No OFD packet to send [14:28:09]OFD Sender: No OFD packet to send [14:28:14]OFD Sender: No OFD packet to send [14:28:19]OFD Sender: No OFD packet to send [14:28:24]OFD Sender: No OFD packet to send [14:28:29]OFD Sender: No OFD packet to send [14:28:34]OFD Sender: No OFD packet to send [14:28:39]OFD Sender: No OFD packet to send [14:28:44]OFD Sender: No OFD packet to send [14:28:49]OFD Sender: No OFD packet to send [14:28:54]OFD Sender: No OFD packet to send [14:28:59]OFD Sender: No OFD packet to send [14:29:04]OFD Sender: No OFD packet to send [14:29:09]OFD Sender: No OFD packet to send [14:29:14]OFD Sender: No OFD packet to send [14:29:19]OFD Sender: No OFD packet to send [14:29:24]OFD Sender: No OFD packet to send [14:29:29]OFD Sender: No OFD packet to send [14:29:34]OFD Sender: No OFD packet to send [14:29:39]OFD Sender: No OFD packet to send [14:29:44]OFD Sender: No OFD packet to send [14:29:49]OFD Sender: No OFD packet to send [14:29:54]OFD Sender: No OFD packet to send [14:29:59]OFD Sender: No OFD packet to send [14:30:04]OFD Sender: No OFD packet to send [14:30:09]OFD Sender: No OFD packet to send [14:30:14]OFD Sender: No OFD packet to send [14:30:19]OFD Sender: No OFD packet to send [14:30:24]OFD Sender: No OFD packet to send [14:30:29]OFD Sender: No OFD packet to send [14:30:34]OFD Sender: No OFD packet to send [14:30:39]OFD Sender: No OFD packet to send [14:30:44]OFD Sender: No OFD packet to send [14:30:49]OFD Sender: No OFD packet to send [14:30:54]OFD Sender: No OFD packet to send [14:30:59]OFD Sender: No OFD packet to send [14:31:04]OFD Sender: No OFD packet to send [14:31:09]OFD Sender: No OFD packet to send [14:31:14]OFD Sender: No OFD packet to send [14:31:19]OFD Sender: No OFD packet to send [14:31:24]OFD Sender: No OFD packet to send [14:31:29]OFD Sender: No OFD packet to send [14:31:34]OFD Sender: No OFD packet to send [14:31:39]OFD Sender: No OFD packet to send [14:31:44]OFD Sender: No OFD packet to send [14:31:49]OFD Sender: No OFD packet to send [14:31:54]OFD Sender: No OFD packet to send [14:31:59]OFD Sender: No OFD packet to send [14:32:04]OFD Sender: No OFD packet to send [14:32:09]OFD Sender: No OFD packet to send [14:32:14]OFD Sender: No OFD packet to send [14:32:19]OFD Sender: No OFD packet to send [14:32:24]OFD Sender: No OFD packet to send [14:32:29]OFD Sender: No OFD packet to send [14:32:34]OFD Sender: No OFD packet to send [14:32:39]OFD Sender: No OFD packet to send [14:32:44]OFD Sender: No OFD packet to send [14:32:49]OFD Sender: No OFD packet to send [14:32:54]OFD Sender: No OFD packet to send [14:32:59]OFD Sender: No OFD packet to send [14:33:04]OFD Sender: No OFD packet to send [14:33:09]OFD Sender: No OFD packet to send [14:33:14]OFD Sender: No OFD packet to send [14:33:19]OFD Sender: No OFD packet to send [14:33:24]OFD Sender: No OFD packet to send [14:33:29]OFD Sender: No OFD packet to send [14:33:34]OFD Sender: No OFD packet to send [14:33:39]OFD Sender: No OFD packet to send [14:33:44]OFD Sender: No OFD packet to send [14:33:49]OFD Sender: No OFD packet to send [14:33:54]accept exits with 6 [14:33:54]New connection [14:33:54]New thread 3066543460 created [14:33:54]Thread 3066686820 joined [14:33:54]Waiting for new connection... [14:33:54] Sock 6.Parse request [14:33:54]Sock 6.Check first char [14:33:54]Sock 6.First char is OK [14:33:54]request: POST /json_proto HTTP/1.0 [14:33:54]Method: POST [14:33:54]URL: /json_proto [14:33:54]Method is POST - this is cgi request [14:33:54]url: /json_proto [14:33:54]query_string will be loaded in cgi processing [14:33:54]execute_cgi json_proto POST (null) [14:33:54]execute_cgi path=json_proto method=POST [14:33:54]POST find Content-Length [14:33:54]Host: 172.17.36.132:8080 [14:33:54]Content-Length: 1143 [14:33:54]Content-Type: application/json [14:33:54] [14:33:54]POST finish read [14:33:54]Found Content-Length = 1143 [14:33:54]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706463\u000A03.06.2024 14:11\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 9.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 602.10\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30111787\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:54]execute_script... [14:33:54]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706463\u000A03.06.2024 14:11\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 9.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 602.10\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30111787\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:54]POST & json_proto [14:33:54]process_json_proto [14:33:54]json parsed OK: [14:33:54]protocol is kg_v1.0 [14:33:54]action value=print_text [14:33:54]process_action print_text [14:33:54]cmd_print_text [14:33:54]ExternCall_PrintAddStr [14:33:54]wPrintStart [14:33:54]Write to MH i2c: 01 00 00 05 40 45 [14:33:54]Write i2c OK [14:33:54]MH_I2C_Read... [14:33:54]Read from MH i2c: 01 [14:33:54]MH_I2C_Read... [14:33:54]Read from MH i2c: 01 07 00 [14:33:54]MH_I2C_Read... [14:33:54]Read from MH i2c: 01 07 00 05 40 00 00 00 00 00 FF 0F 5A [14:33:54]RasterBufferAndPrint [14:33:54]line *****ТОВАРНЫЙ ЧЕК***** [14:33:54]line АЗС 62 [14:33:54]line Партнер нефть [14:33:54]line 02508201610067 [14:33:54]line Кассир : Балаев А. [14:33:54]line Счет N : (1)706463 [14:33:54]line 03.06.2024 14:11 [14:33:54]line ПРОДАЖА [14:33:54]line ТРК (МРК, ГНК): 42 [14:33:54]line Вид ГСМ : 2710124130 [14:33:54]line Аи-92-К-4 [14:33:54]line 9.000 x 66.90 [14:33:54]line ИТОГ: 602.10 [14:33:54]line Тип оплаты: Талоны: ТК ГПНА Online [14:33:54]line 30111787 [14:33:54]line ______________________ [14:33:54]line (подпись) [14:33:54]written 0, free lines is 4095 [14:33:54]Write to MH i2c: 01 00 00 19 40 59 [14:33:54]Write i2c OK [14:33:54]MH_I2C_Read... [14:33:54]Read from MH i2c: 01 [14:33:54]MH_I2C_Read... [14:33:54]Read from MH i2c: 01 07 00 [14:33:54]MH_I2C_Read... [14:33:54]Read from MH i2c: 01 07 00 19 40 00 00 00 00 00 0F 0E 7D [14:33:54]RasterBufferAndPrint [14:33:54]line [14:33:54]line [14:33:54]line [14:33:54]line [14:33:54]line [14:33:54]written 0, free lines is 3600 [14:33:54]MH_Cut [14:33:54]Write to MH i2c: D1 01 00 20 40 01 32 [14:33:54]Write i2c OK [14:33:54]MH_I2C_Read... [14:33:54]Read from MH i2c: D1 [14:33:54]MH_I2C_Read... [14:33:54]Read from MH i2c: D1 01 00 [14:33:54]MH_I2C_Read... [14:33:54]Read from MH i2c: D1 01 00 20 40 00 31 [14:33:54]Write to MH i2c: 01 00 00 21 40 61 [14:33:54]Write i2c OK [14:33:54]MH_I2C_Read... [14:33:54]OFD Sender: No OFD packet to send [14:33:55]*** Cut start [14:33:55]*** Partial cut [14:33:55]*** CUTSNS_PIN = 1 [14:33:55]*** CUTSNS_PIN = 0 [14:33:55]*** Brake cut motor [14:33:55]Read from MH i2c: 01 [14:33:55]MH_I2C_Read... [14:33:55]*** Stop cut motor [14:33:55]*** Cut end [14:33:55]Read from MH i2c: 01 07 00 [14:33:55]MH_I2C_Read... [14:33:55]Read from MH i2c: 01 07 00 21 40 00 00 00 00 00 FF 0F 76 [14:33:55]process_action print_text done [14:33:55]requested_data is exist [14:33:55]produce_requested_data [14:33:55]requested_item fm.sn is exist - process it [14:33:55]wFMCommunicate request_size=4 [14:33:55]MH_SAM_APDU [14:33:55]CAPDU: 80 11 00 00 [14:33:55]Write to MH i2c: E2 08 00 22 40 80 11 00 00 00 00 00 00 DC [14:33:55]Write i2c OK [14:33:55]MH_I2C_Read... [14:33:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:55]Read from MH i2c: E2 [14:33:55]MH_I2C_Read... [14:33:55]Read from MH i2c: E2 17 00 [14:33:55]MH_I2C_Read... [14:33:55]Read from MH i2c: E2 17 00 22 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 27 [14:33:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:33:55]wFMCommunicate OK [14:33:55]requested_item fd.num is exist - process it [14:33:55]SAM_PROTO_GetFieldsCounters [14:33:55]wFMCommunicate request_size=4 [14:33:55]MH_SAM_APDU [14:33:55]CAPDU: 80 13 00 00 [14:33:55]Write to MH i2c: E2 08 00 23 40 80 13 00 00 00 00 00 00 DF [14:33:55]Write i2c OK [14:33:55]MH_I2C_Read... [14:33:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:33:55]Read from MH i2c: E2 [14:33:55]MH_I2C_Read... [14:33:55]Read from MH i2c: E2 62 00 [14:33:55]MH_I2C_Read... [14:33:55]Read from MH i2c: E2 62 00 23 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 10 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 B6 [14:33:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 10 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:33:55]wFMCommunicate OK [14:33:55]SAM_PROTO_GetFieldsCounters done [14:33:55]requested_item shift.num is exist - process it [14:33:55]requested_item shift.opened is exist - process it [14:33:55]req_shift_opened [14:33:55]FM_GetShiftState [14:33:55]SAM_PROTO_GetShiftState [14:33:55]wFMCommunicate request_size=4 [14:33:55]MH_SAM_APDU [14:33:55]CAPDU: 80 13 01 00 [14:33:55]Write to MH i2c: E2 08 00 24 40 80 13 01 00 00 00 00 00 E1 [14:33:55]Write i2c OK [14:33:55]MH_I2C_Read... [14:33:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:56]Read from MH i2c: E2 [14:33:56]MH_I2C_Read... [14:33:56]Read from MH i2c: E2 0E 00 [14:33:56]MH_I2C_Read... [14:33:56]Read from MH i2c: E2 0E 00 24 40 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 BC [14:33:56]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [14:33:56]wFMCommunicate OK [14:33:56]SAM_PROTO_GetShiftState done [14:33:56]FM_GetShiftState done [14:33:56]req_shift_opened done [14:33:56]requested_item shift.open_date is exist - process it [14:33:56]req_shift_open_date [14:33:56]req_shift_open_date done [14:33:56]produce_requested_data done [14:33:56]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68368,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [14:33:56]process_action_free print_text [14:33:56]json_value_free [14:33:56]json_value_free done [14:33:56]process_json_proto returns [14:33:56]Send response to host [14:33:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68368,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [14:33:56]free response buf [14:33:56]execute_script done [14:33:56]execute_script returns [14:33:56]free content buf [14:33:56]Sock 6.Close socket [14:33:56]Sock 6.Thread stoped [14:33:59]OFD Sender: No OFD packet to send [14:34:04]OFD Sender: No OFD packet to send [14:34:09]OFD Sender: No OFD packet to send [14:34:14]OFD Sender: No OFD packet to send [14:34:19]OFD Sender: No OFD packet to send [14:34:24]OFD Sender: No OFD packet to send [14:34:29]OFD Sender: No OFD packet to send [14:34:34]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:49]accept exits with 5 [14:37:49]New connection [14:37:49]New thread 3066686820 created [14:37:49]Thread 3066543460 joined [14:37:49]Waiting for new connection... [14:37:49] Sock 5.Parse request [14:37:49]Sock 5.Check first char [14:37:49]Sock 5.First char is OK [14:37:49]request: POST /json_proto HTTP/1.0 [14:37:49]Method: POST [14:37:49]URL: /json_proto [14:37:49]Method is POST - this is cgi request [14:37:49]url: /json_proto [14:37:49]query_string will be loaded in cgi processing [14:37:49]execute_cgi json_proto POST (null) [14:37:49]execute_cgi path=json_proto method=POST [14:37:49]POST find Content-Length [14:37:49]Host: 172.17.36.132:8080 [14:37:49]Content-Length: 675 [14:37:49]Content-Type: application/json [14:37:49] [14:37:49]POST finish read [14:37:49]Found Content-Length = 675 [14:37:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706464", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 14.730, "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" ] } } [14:37:49]execute_script... [14:37: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)706464", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 14.730, "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" ] } } [14:37:49]POST & json_proto [14:37:49]process_json_proto [14:37:49]json parsed OK: [14:37:49]protocol is kg_v1.0 [14:37:49]action value=close_receipt [14:37:49]process_action close_receipt [14:37:49]cmd_close_receipt [14:37:49]MH_GetDate [14:37:49]Write to MH i2c: F0 00 00 25 40 54 [14:37:49]Write i2c OK [14:37:49]MH_I2C_Read... [14:37:49]Read from MH i2c: F0 [14:37:49]MH_I2C_Read... [14:37:49]Read from MH i2c: F0 09 00 [14:37:49]MH_I2C_Read... [14:37:49]Read from MH i2c: F0 09 00 25 40 00 43 D5 5D 66 B2 22 B0 64 20 [14:37:49]GetLastDocTimeStamp 1717424792 [14:37:49]current date 1717425475 [14:37:49]FM_GetShiftState [14:37:49]SAM_PROTO_GetShiftState [14:37:49]wFMCommunicate request_size=4 [14:37:49]MH_SAM_APDU [14:37:49]CAPDU: 80 13 01 00 [14:37:49]Write to MH i2c: E2 08 00 26 40 80 13 01 00 00 00 00 00 E3 [14:37:49]Write i2c OK [14:37:49]MH_I2C_Read... [14:37:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:49]Read from MH i2c: E2 [14:37:49]MH_I2C_Read... [14:37:49]Read from MH i2c: E2 0E 00 [14:37:49]MH_I2C_Read... [14:37:49]Read from MH i2c: E2 0E 00 26 40 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 BE [14:37:49]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [14:37:49]wFMCommunicate OK [14:37:49]SAM_PROTO_GetShiftState done [14:37:49]FM_GetShiftState done [14:37:49]opened in 1717378033 [14:37:49]opened+sec_in_day 1717464433 [14:37:49]quantity*price = 100016 [14:37:49]sum+1 = 100018 [14:37:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 115 03.06.2024 14:37 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68369 ФПД: 2368896689203 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T143755&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68369&fm=2368896689203&tin=02508201610067®Number=0000000000098096&sum=100000 [14:37:50]StoreToDocumentArchive [14:37:50]shift 324 fd 68369 [14:37:50]save to /storage/0324/doc_00068369 [14:37:50]save last doc name /storage/0324/doc_00068369 to /storage/kkm_last_doc_name [14:37:50]save OK [14:37:50]Clear old archive folders... [14:37:50]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:37:50]tlvbuf is 002658D0 [14:37:50]SAM_PROTO_ClearQueue [14:37:50]wFMCommunicate request_size=4 [14:37:50]MH_SAM_APDU [14:37:50]CAPDU: 80 09 00 00 [14:37:50]Write to MH i2c: E2 08 00 33 40 80 09 00 00 00 00 00 00 E5 [14:37:50]Write i2c OK [14:37:50]MH_I2C_Read... [14:37:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:37:51]Read from MH i2c: E2 [14:37:51]MH_I2C_Read... [14:37:51]Read from MH i2c: E2 03 00 [14:37:51]MH_I2C_Read... [14:37:51]Read from MH i2c: E2 03 00 33 40 00 90 00 E7 [14:37:51]RAPDU: 90 00 [14:37:51]wFMCommunicate OK [14:37:51]SAM_PROTO_ClearQueue done [14:37:51]KKMCreateOFDPacket [14:37:51]OFDProtocolAddRootSTLVToBuf [14:37:51]FM_MakeSignedData [14:37:51]FM_MakeSignedData [14:37:51]SAM_PROTO_SignData [14:37:51]wFMCommunicate request_size=4 [14:37:51]MH_SAM_APDU [14:37:51]CAPDU: 80 0D 01 02 [14:37:51]Write to MH i2c: E2 08 00 34 40 80 0D 01 02 00 00 00 00 ED [14:37:51]Write i2c OK [14:37:51]MH_I2C_Read... [14:37:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:37:51]Read from MH i2c: E2 [14:37:51]MH_I2C_Read... [14:37:51]Read from MH i2c: E2 03 00 [14:37:51]MH_I2C_Read... [14:37:51]Read from MH i2c: E2 03 00 34 40 00 90 00 E8 [14:37:51]RAPDU: 90 00 [14:37:51]wFMCommunicate OK [14:37:51]wFMCommunicate request_size=255 [14:37:51]MH_SAM_APDU [14:37: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 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 39 00 00 00 00 00 37 04 06 00 86 1A 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 73 00 00 00 F4 03 04 00 43 D5 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 11 0B 01 00 35 04 06 00 [14:37:51]Write to MH i2c: E2 02 01 35 40 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 39 00 00 00 00 00 37 04 06 00 86 1A 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 73 00 00 00 F4 03 04 00 43 D5 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 11 0B 01 00 35 04 06 00 00 00 D7 [14:37:51]Write i2c OK [14:37:51]MH_I2C_Read... [14:37:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:51]Read from MH i2c: E2 [14:37:51]MH_I2C_Read... [14:37:51]Read from MH i2c: E2 03 00 [14:37:51]MH_I2C_Read... [14:37:51]Read from MH i2c: E2 03 00 35 40 00 90 00 E9 [14:37:51]RAPDU: 90 00 [14:37:51]wFMCommunicate OK [14:37:51]wFMCommunicate request_size=11 [14:37:51]MH_SAM_APDU [14:37:51]CAPDU: 80 0D 02 02 06 02 27 8D 3E E4 33 [14:37:51]Write to MH i2c: E2 0E 00 36 40 80 0D 02 02 06 00 02 27 8D 3E E4 33 00 00 07 [14:37:51]Write i2c OK [14:37:51]MH_I2C_Read... [14:37:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:51]Read from MH i2c: E2 [14:37:51]MH_I2C_Read... [14:37:51]Read from MH i2c: E2 03 00 [14:37:51]MH_I2C_Read... [14:37:51]Read from MH i2c: E2 03 00 36 40 00 90 00 EA [14:37:51]RAPDU: 90 00 [14:37:51]wFMCommunicate OK [14:37:51]wFMCommunicate request_size=4 [14:37:51]MH_SAM_APDU [14:37:51]CAPDU: 80 0D 03 02 [14:37:51]Write to MH i2c: E2 08 00 37 40 80 0D 03 02 00 00 00 00 F2 [14:37:51]Write i2c OK [14:37:51]MH_I2C_Read... [14:37:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:37:51]Read from MH i2c: E2 [14:37:51]MH_I2C_Read... [14:37:51]Read from MH i2c: E2 0B 00 [14:37:51]MH_I2C_Read... [14:37:51]Read from MH i2c: E2 0B 00 37 40 00 C4 EE 9E 3E EA 87 DC 32 90 00 00 [14:37:51]RAPDU: C4 EE 9E 3E EA 87 DC 32 90 00 [14:37:51]wFMCommunicate OK [14:37:51]SAM_PROTO_SignData done [14:37:51]FM_MakeSignedData done [14:37:51]CreateOFDProtocolMessage [14:37:51]wFMCommunicate request_size=4 [14:37:51]MH_SAM_APDU [14:37:51]CAPDU: 80 11 00 00 [14:37:51]Write to MH i2c: E2 08 00 38 40 80 11 00 00 00 00 00 00 F2 [14:37:51]Write i2c OK [14:37:51]MH_I2C_Read... [14:37:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:51]Read from MH i2c: E2 [14:37:51]MH_I2C_Read... [14:37:51]Read from MH i2c: E2 17 00 [14:37:51]MH_I2C_Read... [14:37:51]Read from MH i2c: E2 17 00 38 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 3D [14:37:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:37:51]wFMCommunicate OK [14:37:51]CreateOFDProtocolMessage done [14:37:51]OFDSenderStorePacket 68369 [14:37:51]StoreOFDPacket docnum=68369 [14:37:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 52 EA 08 01 37 6E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 39 00 00 00 00 00 37 04 06 00 86 1A 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 73 00 00 00 F4 03 04 00 43 D5 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 11 0B 01 00 35 04 06 00 02 27 8D 3E E4 33 C4 EE 9E 3E EA 87 DC 32 [14:37:51]CheckFolder [14:37:51]dirname=/storage/ofd_packets [14:37:51]CheckFolder done [14:37:51]ProducePacketName [14:37:51]name=ofd_packets/00068369 [14:37:51]NVStorageSaveData ofd_packets/00068369 [14:37:51]File name is /storage/ofd_packets/00068369 [14:37:51]Write 302 bytes [14:37:51]NVStorageSaveData done [14:37:51]OFDSenderStorePacket done [14:37:51]KKMCreateOFDPacket done [14:37:51]NVStorageSaveData kkm_last_timestamp [14:37:51]File name is /storage/kkm_last_timestamp [14:37:51]Write 4 bytes [14:37:51]NVStorageSaveData done [14:37:51]ExternCall_PrintAddStr [14:37:51]wPrintStart [14:37:51]Write to MH i2c: 01 00 00 39 40 79 [14:37:51]Write i2c OK [14:37:51]MH_I2C_Read... [14:37:51]Read from MH i2c: 01 [14:37:51]MH_I2C_Read... [14:37:51]Read from MH i2c: 01 07 00 [14:37:51]MH_I2C_Read... [14:37:51]Read from MH i2c: 01 07 00 39 40 00 00 00 00 00 FF 0F 8E [14:37:51]RasterBufferAndPrint [14:37:51]line Счет N : (1)706464 [14:37:51]line ИНН: 02508201610067 [14:37:51]line Контрольно-Кассовый Чек [14:37:51]line ПРОДАЖА [14:37:51]line ТРК (МРК, ГНК) : 31 [14:37:51]line Товар: 2710124130 [14:37:51]line Super-92-К-5 [14:37:51]line 14.730 * 67.90 [14:37:51]line = 1000.17 [14:37:51]line НДС 12% НСП 1% [14:37:51]line > о реализуемом товаре [14:37:51]line ОКРУГЛЕНИЕ: -0.17 [14:37:51]line ИТОГО: 1000.00 [14:37:51]line Внесено: 1000.00 [14:37:51]line СДАЧА: 0.00 [14:37:51]line НСП 1% : 8.85 [14:37:51]line НДС 12% : 106.21 [14:37:51]line Наличными: 1000.00 [14:37:51]line Безнал.: 0.00 [14:37:51]line Место: АЗС № 62 "Партнер Нефть" [14:37:51]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [14:37:51]line СНО: Общий режим [14:37:51]line Чек 115 03.06.2024 14:37 [14:37:51]line Смена: 324 ФФД: 1.0 [14:37:51]line ЗНМ: 0300000181 [14:37:51]line РНМ: 0000000000098096 [14:37:51]line Версия ККМ: 001 [14:37:51]line ФМ: 0000000000965400 [14:37:51]line ФД: 68369 [14:37:51]line ФПД: 2368896689203 [14:37:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T143755&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68369&fm=2368896689203&tin=02508201610067®Number=0000000000098096&sum=100000 [14:37:51]OFD Sender: Processing packet 68369 [packets to send 26, broken 25] [14:37:51]ProducePacketName [14:37:51]name=ofd_packets/00068369 [14:37:51]OFD Sender: To server: pG, [14:37:51]CommunicateWithHost lk.salyk.kg:30040 [14:37:51]ConnectInit lk.salyk.kg [14:37:51]written 0, free lines is 4095 [14:37:51]Connected sock=7 [14:37:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 52 EA 08 01 37 6E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 39 00 00 00 00 00 37 04 06 00 86 1A 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 73 00 00 00 F4 03 04 00 43 D5 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 11 0B 01 00 35 04 06 00 02 27 8D 3E E4 33 C4 EE 9E 3E EA 87 DC 32 [14:37:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 01 14 47 00 E2 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 11 0B 01 00 F4 03 04 00 3F 7C 5D 66 B6 04 01 00 00 68 55 DE 1A FB D8 F9 0F [14:37:52]CommunicateWithHost err = 0 [14:37:52]CheckOFDResponse [14:37:52]1017 (14) - 77093643461234 [14:37:52]1041 (16) - 0000000000965400 [14:37:52]1040 (4) - 68369 [14:37:52]1012 (4) - 03.06.2024 08:18 [14:37:52]1206 (1) - 0 [14:37:52]OFD Sender: Remove packet 68369 [14:37:52]ProducePacketName [14:37:52]name=ofd_packets/00068369 [14:37:52]NVStorageDeleteData [14:37:52]Write to MH i2c: 01 00 00 64 40 A4 [14:37:52]Write i2c OK [14:37:52]MH_I2C_Read... [14:37:52]Read from MH i2c: 01 [14:37:52]MH_I2C_Read... [14:37:52]Read from MH i2c: 01 07 00 [14:37:52]MH_I2C_Read... [14:37:52]Read from MH i2c: 01 07 00 64 40 00 00 00 00 00 EB 0C A2 [14:37:52]RasterBufferAndPrint [14:37:52]line [14:37:52]line [14:37:52]line [14:37:52]line [14:37:52]line [14:37:52]written 0, free lines is 3314 [14:37:52]MH_Cut [14:37:52]Write to MH i2c: D1 01 00 6B 40 01 7D [14:37:52]Write i2c OK [14:37:52]MH_I2C_Read... [14:37:52]Read from MH i2c: D1 [14:37:52]MH_I2C_Read... [14:37:52]Read from MH i2c: D1 01 00 [14:37:52]MH_I2C_Read... [14:37:52]Read from MH i2c: D1 01 00 6B 40 00 7C [14:37:52]Write to MH i2c: 01 00 00 6C 40 AC [14:37:52]Write i2c OK [14:37:52]MH_I2C_Read... [14:37:52]OFD Sender: No OFD packet to send [14:37:53]*** Cut start [14:37:53]*** Partial cut [14:37:53]*** CUTSNS_PIN = 1 [14:37:53]*** CUTSNS_PIN = 0 [14:37:53]*** Brake cut motor [14:37:53]Read from MH i2c: 01 [14:37:53]MH_I2C_Read... [14:37:53]*** Stop cut motor [14:37:53]*** Cut end [14:37:53]Read from MH i2c: 01 07 00 [14:37:53]MH_I2C_Read... [14:37:53]Read from MH i2c: 01 07 00 6C 40 00 00 00 00 00 FF 0F C1 [14:37:53]process_action close_receipt done [14:37:53]requested_data is exist [14:37:53]produce_requested_data [14:37:53]requested_item fm.sn is exist - process it [14:37:53]wFMCommunicate request_size=4 [14:37:53]MH_SAM_APDU [14:37:53]CAPDU: 80 11 00 00 [14:37:53]Write to MH i2c: E2 08 00 6D 40 80 11 00 00 00 00 00 00 27 [14:37:53]Write i2c OK [14:37:53]MH_I2C_Read... [14:37:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:53]Read from MH i2c: E2 [14:37:53]MH_I2C_Read... [14:37:53]Read from MH i2c: E2 17 00 [14:37:53]MH_I2C_Read... [14:37:53]Read from MH i2c: E2 17 00 6D 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 72 [14:37:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:37:53]wFMCommunicate OK [14:37:53]requested_item fd.num is exist - process it [14:37:53]SAM_PROTO_GetFieldsCounters [14:37:53]wFMCommunicate request_size=4 [14:37:53]MH_SAM_APDU [14:37:53]CAPDU: 80 13 00 00 [14:37:53]Write to MH i2c: E2 08 00 6E 40 80 13 00 00 00 00 00 00 2A [14:37:53]Write i2c OK [14:37:53]MH_I2C_Read... [14:37:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:37:53]Read from MH i2c: E2 [14:37:53]MH_I2C_Read... [14:37:53]Read from MH i2c: E2 62 00 [14:37:53]MH_I2C_Read... [14:37:53]Read from MH i2c: E2 62 00 6E 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 11 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 05 [14:37:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 11 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:37:53]wFMCommunicate OK [14:37:53]SAM_PROTO_GetFieldsCounters done [14:37:53]requested_item shift.num is exist - process it [14:37:53]requested_item shift.opened is exist - process it [14:37:53]req_shift_opened [14:37:53]FM_GetShiftState [14:37:53]SAM_PROTO_GetShiftState [14:37:53]wFMCommunicate request_size=4 [14:37:53]MH_SAM_APDU [14:37:53]CAPDU: 80 13 01 00 [14:37:53]Write to MH i2c: E2 08 00 6F 40 80 13 01 00 00 00 00 00 2C [14:37:53]Write i2c OK [14:37:53]MH_I2C_Read... [14:37:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:53]Read from MH i2c: E2 [14:37:53]MH_I2C_Read... [14:37:53]Read from MH i2c: E2 0E 00 [14:37:53]MH_I2C_Read... [14:37:53]Read from MH i2c: E2 0E 00 6F 40 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 07 [14:37:53]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [14:37:53]wFMCommunicate OK [14:37:53]SAM_PROTO_GetShiftState done [14:37:53]FM_GetShiftState done [14:37:53]req_shift_opened done [14:37:53]requested_item shift.open_date is exist - process it [14:37:53]req_shift_open_date [14:37:53]req_shift_open_date done [14:37:53]produce_requested_data done [14:37:53]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68369,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [14:37:53]process_action_free close_receipt [14:37:53]json_value_free [14:37:53]json_value_free done [14:37:53]process_json_proto returns [14:37:53]Send response to host [14:37:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68369,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [14:37:53]free response buf [14:37:53]execute_script done [14:37:53]execute_script returns [14:37:53]free content buf [14:37:53]Sock 5.Close socket [14:37:53]Sock 5.Thread stoped [14:37:57]OFD Sender: No OFD packet to send [14:38:02]OFD Sender: No OFD packet to send [14:38:07]OFD Sender: No OFD packet to send [14:38:12]OFD Sender: No OFD packet to send [14:38:17]OFD Sender: No OFD packet to send [14:38:22]OFD Sender: No OFD packet to send [14:38:27]OFD Sender: No OFD packet to send [14:38:31]accept exits with 6 [14:38:31]New connection [14:38:31]New thread 3066543460 created [14:38:31]Thread 3066686820 joined [14:38:31]Waiting for new connection... [14:38:31] Sock 6.Parse request [14:38:31]Sock 6.Check first char [14:38:31]Sock 6.First char is OK [14:38:31]request: POST /json_proto HTTP/1.0 [14:38:31]Method: POST [14:38:31]URL: /json_proto [14:38:31]Method is POST - this is cgi request [14:38:31]url: /json_proto [14:38:31]query_string will be loaded in cgi processing [14:38:31]execute_cgi json_proto POST (null) [14:38:31]execute_cgi path=json_proto method=POST [14:38:31]POST find Content-Length [14:38:31]Host: 172.17.36.132:8080 [14:38:31]Content-Length: 678 [14:38:31]Content-Type: application/json [14:38:31] [14:38:31]POST finish read [14:38:31]Found Content-Length = 678 [14:38:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706465", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.020, "sum" : 670.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:38:31]execute_script... [14:38:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706465", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.020, "sum" : 670.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:38:31]POST & json_proto [14:38:31]process_json_proto [14:38:31]json parsed OK: [14:38:31]protocol is kg_v1.0 [14:38:31]action value=close_receipt [14:38:31]process_action close_receipt [14:38:31]cmd_close_receipt [14:38:31]MH_GetDate [14:38:31]Write to MH i2c: F0 00 00 70 40 9F [14:38:31]Write i2c OK [14:38:31]MH_I2C_Read... [14:38:31]Read from MH i2c: F0 [14:38:31]MH_I2C_Read... [14:38:31]Read from MH i2c: F0 09 00 [14:38:31]MH_I2C_Read... [14:38:31]Read from MH i2c: F0 09 00 70 40 00 6D D5 5D 66 B2 22 B0 64 95 [14:38:31]GetLastDocTimeStamp 1717425475 [14:38:31]current date 1717425517 [14:38:31]FM_GetShiftState [14:38:31]SAM_PROTO_GetShiftState [14:38:31]wFMCommunicate request_size=4 [14:38:31]MH_SAM_APDU [14:38:31]CAPDU: 80 13 01 00 [14:38:31]Write to MH i2c: E2 08 00 71 40 80 13 01 00 00 00 00 00 2E [14:38:31]Write i2c OK [14:38:31]MH_I2C_Read... [14:38:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:31]Read from MH i2c: E2 [14:38:31]MH_I2C_Read... [14:38:31]Read from MH i2c: E2 0E 00 [14:38:31]MH_I2C_Read... [14:38:31]Read from MH i2c: E2 0E 00 71 40 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 09 [14:38:31]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [14:38:31]wFMCommunicate OK [14:38:31]SAM_PROTO_GetShiftState done [14:38:31]FM_GetShiftState done [14:38:31]opened in 1717378033 [14:38:31]opened+sec_in_day 1717464433 [14:38:31]quantity*price = 67033 [14:38:31]sum+1 = 67035 [14:38:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 670.00 Внесено: 670.00 СДАЧА: 0.00 НСП 1% : 5.93 НДС 12% : 71.19 Наличными: 670.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 116 03.06.2024 14:38 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68370 ФПД: 271280937409162 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T143837&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68370&fm=271280937409162&tin=02508201610067®Number=0000000000098096&sum=67000 [14:38:32]StoreToDocumentArchive [14:38:32]shift 324 fd 68370 [14:38:32]save to /storage/0324/doc_00068370 [14:38:32]save last doc name /storage/0324/doc_00068370 to /storage/kkm_last_doc_name [14:38:32]save OK [14:38:32]Clear old archive folders... [14:38:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:38:32]tlvbuf is 001FD300 [14:38:32]SAM_PROTO_ClearQueue [14:38:32]wFMCommunicate request_size=4 [14:38:32]MH_SAM_APDU [14:38:32]CAPDU: 80 09 00 00 [14:38:32]Write to MH i2c: E2 08 00 7E 40 80 09 00 00 00 00 00 00 30 [14:38:32]Write i2c OK [14:38:32]MH_I2C_Read... [14:38:32]Read from MH i2c: E2 [14:38:32]MH_I2C_Read... [14:38:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:38:32]Read from MH i2c: E2 03 00 [14:38:32]MH_I2C_Read... [14:38:32]Read from MH i2c: E2 03 00 7E 40 00 90 00 32 [14:38:32]RAPDU: 90 00 [14:38:32]wFMCommunicate OK [14:38:32]SAM_PROTO_ClearQueue done [14:38:32]KKMCreateOFDPacket [14:38:32]OFDProtocolAddRootSTLVToBuf [14:38:32]FM_MakeSignedData [14:38:32]FM_MakeSignedData [14:38:32]SAM_PROTO_SignData [14:38:32]wFMCommunicate request_size=4 [14:38:32]MH_SAM_APDU [14:38:32]CAPDU: 80 0D 01 02 [14:38:32]Write to MH i2c: E2 08 00 7F 40 80 0D 01 02 00 00 00 00 38 [14:38:32]Write i2c OK [14:38:32]MH_I2C_Read... [14:38:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:38:32]Read from MH i2c: E2 [14:38:32]MH_I2C_Read... [14:38:32]Read from MH i2c: E2 03 00 [14:38:32]MH_I2C_Read... [14:38:32]Read from MH i2c: E2 03 00 7F 40 00 90 00 33 [14:38:32]RAPDU: 90 00 [14:38:32]wFMCommunicate OK [14:38:32]wFMCommunicate request_size=255 [14:38:32]MH_SAM_APDU [14:38: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 34 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DA 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 6D D5 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 12 0B 01 00 35 04 06 00 F6 [14:38:32]Write to MH i2c: E2 02 01 80 40 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DA 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 6D D5 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 12 0B 01 00 35 04 06 00 F6 00 00 32 [14:38:32]Write i2c OK [14:38:32]MH_I2C_Read... [14:38:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:33]Read from MH i2c: E2 [14:38:33]MH_I2C_Read... [14:38:33]Read from MH i2c: E2 03 00 [14:38:33]MH_I2C_Read... [14:38:33]Read from MH i2c: E2 03 00 80 40 00 90 00 34 [14:38:33]RAPDU: 90 00 [14:38:33]wFMCommunicate OK [14:38:33]wFMCommunicate request_size=10 [14:38:33]MH_SAM_APDU [14:38:33]CAPDU: 80 0D 02 02 05 BA 83 E8 9A 8A [14:38:33]Write to MH i2c: E2 0D 00 81 40 80 0D 02 02 05 00 BA 83 E8 9A 8A 00 00 8E [14:38:33]Write i2c OK [14:38:33]MH_I2C_Read... [14:38:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:38:33]Read from MH i2c: E2 [14:38:33]MH_I2C_Read... [14:38:33]Read from MH i2c: E2 03 00 [14:38:33]MH_I2C_Read... [14:38:33]Read from MH i2c: E2 03 00 81 40 00 90 00 35 [14:38:33]RAPDU: 90 00 [14:38:33]wFMCommunicate OK [14:38:33]wFMCommunicate request_size=4 [14:38:33]MH_SAM_APDU [14:38:33]CAPDU: 80 0D 03 02 [14:38:33]Write to MH i2c: E2 08 00 82 40 80 0D 03 02 00 00 00 00 3D [14:38:33]Write i2c OK [14:38:33]MH_I2C_Read... [14:38:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:38:33]Read from MH i2c: E2 [14:38:33]MH_I2C_Read... [14:38:33]Read from MH i2c: E2 0B 00 [14:38:33]MH_I2C_Read... [14:38:33]Read from MH i2c: E2 0B 00 82 40 00 18 0D FC 44 92 7B 14 F3 90 00 B7 [14:38:33]RAPDU: 18 0D FC 44 92 7B 14 F3 90 00 [14:38:33]wFMCommunicate OK [14:38:33]SAM_PROTO_SignData done [14:38:33]FM_MakeSignedData done [14:38:33]CreateOFDProtocolMessage [14:38:33]wFMCommunicate request_size=4 [14:38:33]MH_SAM_APDU [14:38:33]CAPDU: 80 11 00 00 [14:38:33]Write to MH i2c: E2 08 00 83 40 80 11 00 00 00 00 00 00 3D [14:38:33]Write i2c OK [14:38:33]MH_I2C_Read... [14:38:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:33]Read from MH i2c: E2 [14:38:33]MH_I2C_Read... [14:38:33]Read from MH i2c: E2 17 00 [14:38:33]MH_I2C_Read... [14:38:33]Read from MH i2c: E2 17 00 83 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 88 [14:38:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:38:33]wFMCommunicate OK [14:38:33]CreateOFDProtocolMessage done [14:38:33]OFDSenderStorePacket 68370 [14:38:33]StoreOFDPacket docnum=68370 [14:38:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 46 71 07 01 AD B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DA 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 6D D5 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 12 0B 01 00 35 04 06 00 F6 BA 83 E8 9A 8A 18 0D FC 44 92 7B 14 F3 [14:38:33]CheckFolder [14:38:33]dirname=/storage/ofd_packets [14:38:33]CheckFolder done [14:38:33]ProducePacketName [14:38:33]name=ofd_packets/00068370 [14:38:33]NVStorageSaveData ofd_packets/00068370 [14:38:33]File name is /storage/ofd_packets/00068370 [14:38:33]Write 301 bytes [14:38:33]NVStorageSaveData done [14:38:33]OFDSenderStorePacket done [14:38:33]KKMCreateOFDPacket done [14:38:33]NVStorageSaveData kkm_last_timestamp [14:38:33]File name is /storage/kkm_last_timestamp [14:38:33]Write 4 bytes [14:38:33]NVStorageSaveData done [14:38:33]ExternCall_PrintAddStr [14:38:33]wPrintStart [14:38:33]Write to MH i2c: 01 00 00 84 40 C4 [14:38:33]Write i2c OK [14:38:33]MH_I2C_Read... [14:38:33]Read from MH i2c: 01 [14:38:33]MH_I2C_Read... [14:38:33]Read from MH i2c: 01 07 00 [14:38:33]MH_I2C_Read... [14:38:33]Read from MH i2c: 01 07 00 84 40 00 00 00 00 00 FF 0F D9 [14:38:33]RasterBufferAndPrint [14:38:33]line Счет N : (1)706465 [14:38:33]line ИНН: 02508201610067 [14:38:33]line Контрольно-Кассовый Чек [14:38:33]line ПРОДАЖА [14:38:33]line ТРК (МРК, ГНК) : 53 [14:38:33]line Товар: 2710124130 [14:38:33]line Аи-92-К-4 [14:38:33]line 10.020 * 66.90 [14:38:33]line = 670.34 [14:38:33]line НДС 12% НСП 1% [14:38:33]line > о реализуемом товаре [14:38:33]line ОКРУГЛЕНИЕ: -0.34 [14:38:33]line ИТОГО: 670.00 [14:38:33]line Внесено: 670.00 [14:38:33]line СДАЧА: 0.00 [14:38:33]line НСП 1% : 5.93 [14:38:33]line НДС 12% : 71.19 [14:38:33]line Наличными: 670.00 [14:38:33]line Безнал.: 0.00 [14:38:33]line Место: АЗС № 62 "Партнер Нефть" [14:38:33]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [14:38:33]line СНО: Общий режим [14:38:33]line Чек 116 03.06.2024 14:38 [14:38:33]line Смена: 324 ФФД: 1.0 [14:38:33]line ЗНМ: 0300000181 [14:38:33]line РНМ: 0000000000098096 [14:38:33]line Версия ККМ: 001 [14:38:33]line ФМ: 0000000000965400 [14:38:33]line ФД: 68370 [14:38:33]line ФПД: 271280937409162 [14:38:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T143837&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68370&fm=271280937409162&tin=02508201610067®Number=0000000000098096&sum=67000 [14:38:33]OFD Sender: Processing packet 68370 [packets to send 26, broken 25] [14:38:33]ProducePacketName [14:38:33]name=ofd_packets/00068370 [14:38:33]OFD Sender: To server: pG, [14:38:33]CommunicateWithHost lk.salyk.kg:30040 [14:38:33]ConnectInit lk.salyk.kg [14:38:33]written 0, free lines is 4095 [14:38:33]Connected sock=7 [14:38:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 46 71 07 01 AD B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DA 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 6D D5 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 12 0B 01 00 35 04 06 00 F6 BA 83 E8 9A 8A 18 0D FC 44 92 7B 14 F3 [14:38:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 6F 29 47 00 0E 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 12 0B 01 00 F4 03 04 00 69 7C 5D 66 B6 04 01 00 00 31 AD 8B 55 D6 A3 E4 51 [14:38:33]CommunicateWithHost err = 0 [14:38:33]CheckOFDResponse [14:38:33]1017 (14) - 77093643461234 [14:38:33]1041 (16) - 0000000000965400 [14:38:33]1040 (4) - 68370 [14:38:33]1012 (4) - 03.06.2024 08:18 [14:38:33]1206 (1) - 0 [14:38:33]OFD Sender: Remove packet 68370 [14:38:33]ProducePacketName [14:38:33]name=ofd_packets/00068370 [14:38:33]NVStorageDeleteData [14:38:34]Write to MH i2c: 01 00 00 AF 40 EF [14:38:34]Write i2c OK [14:38:34]MH_I2C_Read... [14:38:34]Read from MH i2c: 01 [14:38:34]MH_I2C_Read... [14:38:34]Read from MH i2c: 01 07 00 [14:38:34]MH_I2C_Read... [14:38:34]Read from MH i2c: 01 07 00 AF 40 00 00 00 00 00 EB 0C ED [14:38:34]RasterBufferAndPrint [14:38:34]line [14:38:34]line [14:38:34]line [14:38:34]line [14:38:34]line [14:38:34]written 0, free lines is 3314 [14:38:34]MH_Cut [14:38:34]Write to MH i2c: D1 01 00 B6 40 01 C8 [14:38:34]Write i2c OK [14:38:34]MH_I2C_Read... [14:38:34]Read from MH i2c: D1 [14:38:34]MH_I2C_Read... [14:38:34]Read from MH i2c: D1 01 00 [14:38:34]MH_I2C_Read... [14:38:34]Read from MH i2c: D1 01 00 B6 40 00 C7 [14:38:34]Write to MH i2c: 01 00 00 B7 40 F7 [14:38:34]Write i2c OK [14:38:34]MH_I2C_Read... [14:38:34]OFD Sender: No OFD packet to send [14:38:34]*** Cut start [14:38:34]*** Partial cut [14:38:34]*** CUTSNS_PIN = 1 [14:38:34]*** CUTSNS_PIN = 0 [14:38:35]*** Brake cut motor [14:38:35]Read from MH i2c: 01 [14:38:35]MH_I2C_Read... [14:38:35]Read from MH i2c: 01 07 00 [14:38:35]MH_I2C_Read... [14:38:35]*** Stop cut motor [14:38:35]Read from MH i2c: 01 07 00 B7 40 00 00 00 00 00 FF 0F 0C [14:38:35]process_action close_receipt done [14:38:35]requested_data is exist [14:38:35]produce_requested_data [14:38:35]requested_item fm.sn is exist - process it [14:38:35]wFMCommunicate request_size=4 [14:38:35]MH_SAM_APDU [14:38:35]CAPDU: 80 11 00 00 [14:38:35]Write to MH i2c: E2 08 00 B8 40 80 11 00 00 00 00 00 00 72 [14:38:35]*** Cut end [14:38:35]Write i2c OK [14:38:35]MH_I2C_Read... [14:38:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:38:35]Read from MH i2c: E2 [14:38:35]MH_I2C_Read... [14:38:35]Read from MH i2c: E2 17 00 [14:38:35]MH_I2C_Read... [14:38:35]Read from MH i2c: E2 17 00 B8 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 BD [14:38:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:38:35]wFMCommunicate OK [14:38:35]requested_item fd.num is exist - process it [14:38:35]SAM_PROTO_GetFieldsCounters [14:38:35]wFMCommunicate request_size=4 [14:38:35]MH_SAM_APDU [14:38:35]CAPDU: 80 13 00 00 [14:38:35]Write to MH i2c: E2 08 00 B9 40 80 13 00 00 00 00 00 00 75 [14:38:35]Write i2c OK [14:38:35]MH_I2C_Read... [14:38:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:38:35]Read from MH i2c: E2 [14:38:35]MH_I2C_Read... [14:38:35]Read from MH i2c: E2 62 00 [14:38:35]MH_I2C_Read... [14:38:35]Read from MH i2c: E2 62 00 B9 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 12 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 54 [14:38:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 12 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:38:35]wFMCommunicate OK [14:38:35]SAM_PROTO_GetFieldsCounters done [14:38:35]requested_item shift.num is exist - process it [14:38:35]requested_item shift.opened is exist - process it [14:38:35]req_shift_opened [14:38:35]FM_GetShiftState [14:38:35]SAM_PROTO_GetShiftState [14:38:35]wFMCommunicate request_size=4 [14:38:35]MH_SAM_APDU [14:38:35]CAPDU: 80 13 01 00 [14:38:35]Write to MH i2c: E2 08 00 BA 40 80 13 01 00 00 00 00 00 77 [14:38:35]Write i2c OK [14:38:35]MH_I2C_Read... [14:38:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:38:35]Read from MH i2c: E2 [14:38:35]MH_I2C_Read... [14:38:35]Read from MH i2c: E2 0E 00 [14:38:35]MH_I2C_Read... [14:38:35]Read from MH i2c: E2 0E 00 BA 40 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 52 [14:38:35]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [14:38:35]wFMCommunicate OK [14:38:35]SAM_PROTO_GetShiftState done [14:38:35]FM_GetShiftState done [14:38:35]req_shift_opened done [14:38:35]requested_item shift.open_date is exist - process it [14:38:35]req_shift_open_date [14:38:35]req_shift_open_date done [14:38:35]produce_requested_data done [14:38:35]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68370,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [14:38:35]process_action_free close_receipt [14:38:35]json_value_free [14:38:35]json_value_free done [14:38:35]process_json_proto returns [14:38:35]Send response to host [14:38:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68370,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [14:38:35]free response buf [14:38:35]execute_script done [14:38:35]execute_script returns [14:38:35]free content buf [14:38:35]Sock 6.Close socket [14:38:35]Sock 6.Thread stoped [14:38:39]OFD Sender: No OFD packet to send [14:38:44]OFD Sender: No OFD packet to send [14:38:49]OFD Sender: No OFD packet to send [14:38:54]OFD Sender: No OFD packet to send [14:38:59]OFD Sender: No OFD packet to send [14:39:04]OFD Sender: No OFD packet to send [14:39:09]OFD Sender: No OFD packet to send [14:39:14]OFD Sender: No OFD packet to send [14:39:19]OFD Sender: No OFD packet to send [14:39:24]OFD Sender: No OFD packet to send [14:39:29]OFD Sender: No OFD packet to send [14:39:34]OFD Sender: No OFD packet to send [14:39:39]OFD Sender: No OFD packet to send [14:39:44]OFD Sender: No OFD packet to send [14:39:49]OFD Sender: No OFD packet to send [14:39:54]OFD Sender: No OFD packet to send [14:39:59]OFD Sender: No OFD packet to send [14:40:04]OFD Sender: No OFD packet to send [14:40:09]OFD Sender: No OFD packet to send [14:40:14]OFD Sender: No OFD packet to send [14:40:19]OFD Sender: No OFD packet to send [14:40:24]OFD Sender: No OFD packet to send [14:40:29]OFD Sender: No OFD packet to send [14:40:34]OFD Sender: No OFD packet to send [14:40:39]OFD Sender: No OFD packet to send [14:40:44]OFD Sender: No OFD packet to send [14:40:49]OFD Sender: No OFD packet to send [14:40:54]OFD Sender: No OFD packet to send [14:40:59]OFD Sender: No OFD packet to send [14:41:04]OFD Sender: No OFD packet to send [14:41:09]OFD Sender: No OFD packet to send [14:41:14]OFD Sender: No OFD packet to send [14:41:19]OFD Sender: No OFD packet to send [14:41:24]OFD Sender: No OFD packet to send [14:41:29]OFD Sender: No OFD packet to send [14:41:34]OFD Sender: No OFD packet to send [14:41:39]OFD Sender: No OFD packet to send [14:41:44]OFD Sender: No OFD packet to send [14:41:49]OFD Sender: No OFD packet to send [14:41:54]OFD Sender: No OFD packet to send [14:41:59]OFD Sender: No OFD packet to send [14:42:04]OFD Sender: No OFD packet to send [14:42:09]OFD Sender: No OFD packet to send [14:42:14]OFD Sender: No OFD packet to send [14:42:19]OFD Sender: No OFD packet to send [14:42:24]OFD Sender: No OFD packet to send [14:42:29]OFD Sender: No OFD packet to send [14:42:34]OFD Sender: No OFD packet to send [14:42:39]OFD Sender: No OFD packet to send [14:42:44]OFD Sender: No OFD packet to send [14:42:49]OFD Sender: No OFD packet to send [14:42:54]OFD Sender: No OFD packet to send [14:42:59]OFD Sender: No OFD packet to send [14:43:04]OFD Sender: No OFD packet to send [14:43:09]OFD Sender: No OFD packet to send [14:43:14]OFD Sender: No OFD packet to send [14:43:19]OFD Sender: No OFD packet to send [14:43:24]OFD Sender: No OFD packet to send [14:43:29]OFD Sender: No OFD packet to send [14:43:34]OFD Sender: No OFD packet to send [14:43:39]OFD Sender: No OFD packet to send [14:43:44]OFD Sender: No OFD packet to send [14:43:49]accept exits with 5 [14:43:49]New connection [14:43:49]New thread 3066686820 created [14:43:49]Thread 3066543460 joined [14:43:49]Waiting for new connection... [14:43:49] Sock 5.Parse request [14:43:49]Sock 5.Check first char [14:43:49]Sock 5.First char is OK [14:43:49]request: POST /json_proto HTTP/1.0 [14:43:49]Method: POST [14:43:49]URL: /json_proto [14:43:49]Method is POST - this is cgi request [14:43:49]url: /json_proto [14:43:49]query_string will be loaded in cgi processing [14:43:49]execute_cgi json_proto POST (null) [14:43:49]execute_cgi path=json_proto method=POST [14:43:49]POST find Content-Length [14:43:49]Host: 172.17.36.132:8080 [14:43:49]Content-Length: 682 [14:43:49]Content-Type: application/json [14:43:49] [14:43:49]POST finish read [14:43:49]Found Content-Length = 682 [14:43:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706466", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:43:49]execute_script... [14:43: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)706466", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:43:49]POST & json_proto [14:43:49]process_json_proto [14:43:49]json parsed OK: [14:43:49]protocol is kg_v1.0 [14:43:49]action value=close_receipt [14:43:49]process_action close_receipt [14:43:49]cmd_close_receipt [14:43:49]MH_GetDate [14:43:49]Write to MH i2c: F0 00 00 BB 40 EA [14:43:49]Write i2c OK [14:43:49]MH_I2C_Read... [14:43:49]Read from MH i2c: F0 [14:43:49]MH_I2C_Read... [14:43:49]Read from MH i2c: F0 09 00 [14:43:49]MH_I2C_Read... [14:43:49]Read from MH i2c: F0 09 00 BB 40 00 AB D6 5D 66 B2 22 B0 64 1F [14:43:49]GetLastDocTimeStamp 1717425517 [14:43:49]current date 1717425835 [14:43:49]FM_GetShiftState [14:43:49]SAM_PROTO_GetShiftState [14:43:49]wFMCommunicate request_size=4 [14:43:49]MH_SAM_APDU [14:43:49]CAPDU: 80 13 01 00 [14:43:49]Write to MH i2c: E2 08 00 BC 40 80 13 01 00 00 00 00 00 79 [14:43:49]Write i2c OK [14:43:49]MH_I2C_Read... [14:43:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:43:49]Read from MH i2c: E2 [14:43:49]MH_I2C_Read... [14:43:49]Read from MH i2c: E2 0E 00 [14:43:49]MH_I2C_Read... [14:43:49]Read from MH i2c: E2 0E 00 BC 40 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 54 [14:43:49]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [14:43:49]wFMCommunicate OK [14:43:49]SAM_PROTO_GetShiftState done [14:43:49]FM_GetShiftState done [14:43:49]opened in 1717378033 [14:43:49]opened+sec_in_day 1717464433 [14:43:49]quantity*price = 50009 [14:43:49]sum+1 = 50010 [14:43:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 117 03.06.2024 14:43 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68371 ФПД: 168315623320416 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T144355&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68371&fm=168315623320416&tin=02508201610067®Number=0000000000098096&sum=50000 [14:43:50]StoreToDocumentArchive [14:43:50]shift 324 fd 68371 [14:43:50]save to /storage/0324/doc_00068371 [14:43:50]save last doc name /storage/0324/doc_00068371 to /storage/kkm_last_doc_name [14:43:50]save OK [14:43:50]Clear old archive folders... [14:43:50]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:43:50]tlvbuf is 0023A660 [14:43:50]SAM_PROTO_ClearQueue [14:43:50]wFMCommunicate request_size=4 [14:43:50]MH_SAM_APDU [14:43:50]CAPDU: 80 09 00 00 [14:43:50]Write to MH i2c: E2 08 00 C9 40 80 09 00 00 00 00 00 00 7B [14:43:50]Write i2c OK [14:43:50]MH_I2C_Read... [14:43:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:43:50]Read from MH i2c: E2 [14:43:50]MH_I2C_Read... [14:43:50]Read from MH i2c: E2 03 00 [14:43:50]MH_I2C_Read... [14:43:50]Read from MH i2c: E2 03 00 C9 40 00 90 00 7D [14:43:50]RAPDU: 90 00 [14:43:50]wFMCommunicate OK [14:43:50]SAM_PROTO_ClearQueue done [14:43:50]KKMCreateOFDPacket [14:43:50]OFDProtocolAddRootSTLVToBuf [14:43:50]FM_MakeSignedData [14:43:50]FM_MakeSignedData [14:43:50]SAM_PROTO_SignData [14:43:50]wFMCommunicate request_size=4 [14:43:50]MH_SAM_APDU [14:43:50]CAPDU: 80 0D 01 02 [14:43:50]Write to MH i2c: E2 08 00 CA 40 80 0D 01 02 00 00 00 00 83 [14:43:50]Write i2c OK [14:43:50]MH_I2C_Read... [14:43:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:43:50]Read from MH i2c: E2 [14:43:50]MH_I2C_Read... [14:43:50]Read from MH i2c: E2 03 00 [14:43:50]MH_I2C_Read... [14:43:50]Read from MH i2c: E2 03 00 CA 40 00 90 00 7E [14:43:50]RAPDU: 90 00 [14:43:50]wFMCommunicate OK [14:43:50]wFMCommunicate request_size=255 [14:43:50]MH_SAM_APDU [14:43:50]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 34 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 AB D6 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 13 0B 01 00 35 04 06 00 [14:43:50]Write to MH i2c: E2 02 01 CB 40 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 34 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 AB D6 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 13 0B 01 00 35 04 06 00 00 00 30 [14:43:50]Write i2c OK [14:43:50]MH_I2C_Read... [14:43:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:43:51]Read from MH i2c: E2 [14:43:51]MH_I2C_Read... [14:43:51]Read from MH i2c: E2 03 00 [14:43:51]MH_I2C_Read... [14:43:51]Read from MH i2c: E2 03 00 CB 40 00 90 00 7F [14:43:51]RAPDU: 90 00 [14:43:51]wFMCommunicate OK [14:43:51]wFMCommunicate request_size=11 [14:43:51]MH_SAM_APDU [14:43:51]CAPDU: 80 0D 02 02 06 99 15 08 F0 2B 60 [14:43:51]Write to MH i2c: E2 0E 00 CC 40 80 0D 02 02 06 00 99 15 08 F0 2B 60 00 00 C3 [14:43:51]Write i2c OK [14:43:51]MH_I2C_Read... [14:43:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:43:51]Read from MH i2c: E2 [14:43:51]MH_I2C_Read... [14:43:51]Read from MH i2c: E2 03 00 [14:43:51]MH_I2C_Read... [14:43:51]Read from MH i2c: E2 03 00 CC 40 00 90 00 80 [14:43:51]RAPDU: 90 00 [14:43:51]wFMCommunicate OK [14:43:51]wFMCommunicate request_size=4 [14:43:51]MH_SAM_APDU [14:43:51]CAPDU: 80 0D 03 02 [14:43:51]Write to MH i2c: E2 08 00 CD 40 80 0D 03 02 00 00 00 00 88 [14:43:51]Write i2c OK [14:43:51]MH_I2C_Read... [14:43:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:43:51]Read from MH i2c: E2 [14:43:51]MH_I2C_Read... [14:43:51]Read from MH i2c: E2 0B 00 [14:43:51]MH_I2C_Read... [14:43:51]Read from MH i2c: E2 0B 00 CD 40 00 27 C6 97 C9 A2 20 9A 33 90 00 65 [14:43:51]RAPDU: 27 C6 97 C9 A2 20 9A 33 90 00 [14:43:51]wFMCommunicate OK [14:43:51]SAM_PROTO_SignData done [14:43:51]FM_MakeSignedData done [14:43:51]CreateOFDProtocolMessage [14:43:51]wFMCommunicate request_size=4 [14:43:51]MH_SAM_APDU [14:43:51]CAPDU: 80 11 00 00 [14:43:51]Write to MH i2c: E2 08 00 CE 40 80 11 00 00 00 00 00 00 88 [14:43:51]Write i2c OK [14:43:51]MH_I2C_Read... [14:43:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:43:51]Read from MH i2c: E2 [14:43:51]MH_I2C_Read... [14:43:51]Read from MH i2c: E2 17 00 [14:43:51]MH_I2C_Read... [14:43:51]Read from MH i2c: E2 17 00 CE 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 D3 [14:43:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:43:51]wFMCommunicate OK [14:43:51]CreateOFDProtocolMessage done [14:43:51]OFDSenderStorePacket 68371 [14:43:51]StoreOFDPacket docnum=68371 [14:43:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 01 B0 08 01 9B 34 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 34 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 AB D6 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 13 0B 01 00 35 04 06 00 99 15 08 F0 2B 60 27 C6 97 C9 A2 20 9A 33 [14:43:51]CheckFolder [14:43:51]dirname=/storage/ofd_packets [14:43:51]CheckFolder done [14:43:51]ProducePacketName [14:43:51]name=ofd_packets/00068371 [14:43:51]NVStorageSaveData ofd_packets/00068371 [14:43:51]File name is /storage/ofd_packets/00068371 [14:43:51]Write 302 bytes [14:43:51]NVStorageSaveData done [14:43:51]OFDSenderStorePacket done [14:43:51]KKMCreateOFDPacket done [14:43:51]NVStorageSaveData kkm_last_timestamp [14:43:51]File name is /storage/kkm_last_timestamp [14:43:51]Write 4 bytes [14:43:51]NVStorageSaveData done [14:43:51]ExternCall_PrintAddStr [14:43:51]wPrintStart [14:43:51]Write to MH i2c: 01 00 00 CF 40 0F [14:43:51]Write i2c OK [14:43:51]MH_I2C_Read... [14:43:51]Read from MH i2c: 01 [14:43:51]MH_I2C_Read... [14:43:51]Read from MH i2c: 01 07 00 [14:43:51]MH_I2C_Read... [14:43:51]Read from MH i2c: 01 07 00 CF 40 00 00 00 00 00 FF 0F 24 [14:43:51]RasterBufferAndPrint [14:43:51]line Счет N : (1)706466 [14:43:51]line ИНН: 02508201610067 [14:43:51]line Контрольно-Кассовый Чек [14:43:51]line ПРОДАЖА [14:43:51]line ТРК (МРК, ГНК) : 61 [14:43:51]line Товар: 2710194210 [14:43:51]line ДТ(л)-К-4 [14:43:51]line 6.860 * 72.90 [14:43:51]line = 500.09 [14:43:51]line НДС 12% НСП 1% [14:43:51]line > о реализуемом товаре [14:43:51]line ОКРУГЛЕНИЕ: -0.09 [14:43:51]line ИТОГО: 500.00 [14:43:51]line Внесено: 500.00 [14:43:51]line СДАЧА: 0.00 [14:43:51]line НСП 1% : 4.43 [14:43:51]line НДС 12% : 53.11 [14:43:51]line Наличными: 500.00 [14:43:51]line Безнал.: 0.00 [14:43:51]line Место: АЗС № 62 "Партнер Нефть" [14:43:51]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [14:43:51]line СНО: Общий режим [14:43:51]line Чек 117 03.06.2024 14:43 [14:43:51]line Смена: 324 ФФД: 1.0 [14:43:51]line ЗНМ: 0300000181 [14:43:51]line РНМ: 0000000000098096 [14:43:51]line Версия ККМ: 001 [14:43:51]line ФМ: 0000000000965400 [14:43:51]line ФД: 68371 [14:43:51]line ФПД: 168315623320416 [14:43:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T144355&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68371&fm=168315623320416&tin=02508201610067®Number=0000000000098096&sum=50000 [14:43:51]OFD Sender: Processing packet 68371 [packets to send 26, broken 25] [14:43:51]ProducePacketName [14:43:51]name=ofd_packets/00068371 [14:43:51]OFD Sender: To server: pG, [14:43:51]CommunicateWithHost lk.salyk.kg:30040 [14:43:51]ConnectInit lk.salyk.kg [14:43:51]written 0, free lines is 4095 [14:43:51]Connected sock=7 [14:43:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 01 B0 08 01 9B 34 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 34 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 AB D6 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 13 0B 01 00 35 04 06 00 99 15 08 F0 2B 60 27 C6 97 C9 A2 20 9A 33 [14:43:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 56 20 47 00 4F D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 13 0B 01 00 F4 03 04 00 A6 7D 5D 66 B6 04 01 00 00 64 D1 72 AF B0 47 EE BB [14:43:51]CommunicateWithHost err = 0 [14:43:51]CheckOFDResponse [14:43:51]1017 (14) - 77093643461234 [14:43:51]1041 (16) - 0000000000965400 [14:43:51]1040 (4) - 68371 [14:43:51]1012 (4) - 03.06.2024 08:24 [14:43:51]1206 (1) - 0 [14:43:51]OFD Sender: Remove packet 68371 [14:43:51]ProducePacketName [14:43:51]name=ofd_packets/00068371 [14:43:51]NVStorageDeleteData [14:43:52]Write to MH i2c: 01 00 00 FA 40 3A [14:43:52]Write i2c OK [14:43:52]MH_I2C_Read... [14:43:52]Read from MH i2c: 01 [14:43:52]MH_I2C_Read... [14:43:52]Read from MH i2c: 01 07 00 [14:43:52]MH_I2C_Read... [14:43:52]Read from MH i2c: 01 07 00 FA 40 00 00 00 00 00 DA 0C 27 [14:43:52]RasterBufferAndPrint [14:43:52]line [14:43:52]line [14:43:52]line [14:43:52]line [14:43:52]line [14:43:52]written 0, free lines is 3297 [14:43:52]MH_Cut [14:43:52]Write to MH i2c: D1 01 00 01 41 01 14 [14:43:52]Write i2c OK [14:43:52]MH_I2C_Read... [14:43:52]Read from MH i2c: D1 [14:43:52]MH_I2C_Read... [14:43:52]Read from MH i2c: D1 01 00 [14:43:52]MH_I2C_Read... [14:43:52]Read from MH i2c: D1 01 00 01 41 00 13 [14:43:52]Write to MH i2c: 01 00 00 02 41 43 [14:43:52]Write i2c OK [14:43:52]MH_I2C_Read... [14:43:52]OFD Sender: No OFD packet to send [14:43:52]*** Cut start [14:43:52]*** Partial cut [14:43:52]*** CUTSNS_PIN = 1 [14:43:52]*** CUTSNS_PIN = 0 [14:43:53]*** Brake cut motor [14:43:53]Read from MH i2c: 01 [14:43:53]MH_I2C_Read... [14:43:53]*** Stop cut motor [14:43:53]*** Cut end [14:43:53]Read from MH i2c: 01 07 00 [14:43:53]MH_I2C_Read... [14:43:53]Read from MH i2c: 01 07 00 02 41 00 00 00 00 00 FF 0F 58 [14:43:53]process_action close_receipt done [14:43:53]requested_data is exist [14:43:53]produce_requested_data [14:43:53]requested_item fm.sn is exist - process it [14:43:53]wFMCommunicate request_size=4 [14:43:53]MH_SAM_APDU [14:43:53]CAPDU: 80 11 00 00 [14:43:53]Write to MH i2c: E2 08 00 03 41 80 11 00 00 00 00 00 00 BE [14:43:53]Write i2c OK [14:43:53]MH_I2C_Read... [14:43:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:43:53]Read from MH i2c: E2 [14:43:53]MH_I2C_Read... [14:43:53]Read from MH i2c: E2 17 00 [14:43:53]MH_I2C_Read... [14:43:53]Read from MH i2c: E2 17 00 03 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 09 [14:43:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:43:53]wFMCommunicate OK [14:43:53]requested_item fd.num is exist - process it [14:43:53]SAM_PROTO_GetFieldsCounters [14:43:53]wFMCommunicate request_size=4 [14:43:53]MH_SAM_APDU [14:43:53]CAPDU: 80 13 00 00 [14:43:53]Write to MH i2c: E2 08 00 04 41 80 13 00 00 00 00 00 00 C1 [14:43:53]Write i2c OK [14:43:53]MH_I2C_Read... [14:43:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:43:53]Read from MH i2c: E2 [14:43:53]MH_I2C_Read... [14:43:53]Read from MH i2c: E2 62 00 [14:43:53]MH_I2C_Read... [14:43:53]Read from MH i2c: E2 62 00 04 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 13 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 A4 [14:43:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 13 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:43:53]wFMCommunicate OK [14:43:53]SAM_PROTO_GetFieldsCounters done [14:43:53]requested_item shift.num is exist - process it [14:43:53]requested_item shift.opened is exist - process it [14:43:53]req_shift_opened [14:43:53]FM_GetShiftState [14:43:53]SAM_PROTO_GetShiftState [14:43:53]wFMCommunicate request_size=4 [14:43:53]MH_SAM_APDU [14:43:53]CAPDU: 80 13 01 00 [14:43:53]Write to MH i2c: E2 08 00 05 41 80 13 01 00 00 00 00 00 C3 [14:43:53]Write i2c OK [14:43:53]MH_I2C_Read... [14:43:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:43:53]Read from MH i2c: E2 [14:43:53]MH_I2C_Read... [14:43:53]Read from MH i2c: E2 0E 00 [14:43:53]MH_I2C_Read... [14:43:53]Read from MH i2c: E2 0E 00 05 41 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 9E [14:43:53]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [14:43:53]wFMCommunicate OK [14:43:53]SAM_PROTO_GetShiftState done [14:43:53]FM_GetShiftState done [14:43:53]req_shift_opened done [14:43:53]requested_item shift.open_date is exist - process it [14:43:53]req_shift_open_date [14:43:53]req_shift_open_date done [14:43:53]produce_requested_data done [14:43:53]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68371,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [14:43:53]process_action_free close_receipt [14:43:53]json_value_free [14:43:53]json_value_free done [14:43:53]process_json_proto returns [14:43:53]Send response to host [14:43:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68371,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [14:43:53]free response buf [14:43:53]execute_script done [14:43:53]execute_script returns [14:43:53]free content buf [14:43:53]Sock 5.Close socket [14:43:53]Sock 5.Thread stoped [14:43:57]OFD Sender: No OFD packet to send [14:44:02]OFD Sender: No OFD packet to send [14:44:07]OFD Sender: No OFD packet to send [14:44:12]OFD Sender: No OFD packet to send [14:44:17]OFD Sender: No OFD packet to send [14:44:22]OFD Sender: No OFD packet to send [14:44:27]OFD Sender: No OFD packet to send [14:44:32]OFD Sender: No OFD packet to send [14:44:37]OFD Sender: No OFD packet to send [14:44:42]OFD Sender: No OFD packet to send [14:44:47]OFD Sender: No OFD packet to send [14:44:52]OFD Sender: No OFD packet to send [14:44:57]OFD Sender: No OFD packet to send [14:45:02]OFD Sender: No OFD packet to send [14:45:07]OFD Sender: No OFD packet to send [14:45:12]OFD Sender: No OFD packet to send [14:45:17]OFD Sender: No OFD packet to send [14:45:22]OFD Sender: No OFD packet to send [14:45:26]accept exits with 6 [14:45:26]New connection [14:45:26]New thread 3066543460 created [14:45:26]Thread 3066686820 joined [14:45:26]Waiting for new connection... [14:45:26] Sock 6.Parse request [14:45:26]Sock 6.Check first char [14:45:26]Sock 6.First char is OK [14:45:26]request: POST /json_proto HTTP/1.0 [14:45:26]Method: POST [14:45:26]URL: /json_proto [14:45:26]Method is POST - this is cgi request [14:45:26]url: /json_proto [14:45:26]query_string will be loaded in cgi processing [14:45:26]execute_cgi json_proto POST (null) [14:45:26]execute_cgi path=json_proto method=POST [14:45:26]POST find Content-Length [14:45:26]Host: 172.17.36.132:8080 [14:45:26]Content-Length: 670 [14:45:26]Content-Type: application/json [14:45:26] [14:45:26]POST finish read [14:45:26]Found Content-Length = 670 [14:45:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706467", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 7.370, "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" ] } } [14:45:26]execute_script... [14:45:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706467", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 7.370, "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" ] } } [14:45:26]POST & json_proto [14:45:26]process_json_proto [14:45:26]json parsed OK: [14:45:26]protocol is kg_v1.0 [14:45:26]action value=close_receipt [14:45:26]process_action close_receipt [14:45:26]cmd_close_receipt [14:45:26]MH_GetDate [14:45:26]Write to MH i2c: F0 00 00 06 41 36 [14:45:26]Write i2c OK [14:45:26]MH_I2C_Read... [14:45:26]Read from MH i2c: F0 [14:45:26]MH_I2C_Read... [14:45:26]Read from MH i2c: F0 09 00 [14:45:26]MH_I2C_Read... [14:45:26]Read from MH i2c: F0 09 00 06 41 00 0C D7 5D 66 B2 22 B0 64 CD [14:45:26]GetLastDocTimeStamp 1717425835 [14:45:26]current date 1717425932 [14:45:26]FM_GetShiftState [14:45:26]SAM_PROTO_GetShiftState [14:45:26]wFMCommunicate request_size=4 [14:45:26]MH_SAM_APDU [14:45:26]CAPDU: 80 13 01 00 [14:45:26]Write to MH i2c: E2 08 00 07 41 80 13 01 00 00 00 00 00 C5 [14:45:26]Write i2c OK [14:45:26]MH_I2C_Read... [14:45:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:45:26]Read from MH i2c: E2 [14:45:26]MH_I2C_Read... [14:45:26]Read from MH i2c: E2 0E 00 [14:45:26]MH_I2C_Read... [14:45:26]Read from MH i2c: E2 0E 00 07 41 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 A0 [14:45:26]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [14:45:26]wFMCommunicate OK [14:45:26]SAM_PROTO_GetShiftState done [14:45:26]FM_GetShiftState done [14:45:26]opened in 1717378033 [14:45:26]opened+sec_in_day 1717464433 [14:45:26]quantity*price = 50042 [14:45:26]sum+1 = 50043 [14:45:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 118 03.06.2024 14:45 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68372 ФПД: 95115663362695 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T144532&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68372&fm=95115663362695&tin=02508201610067®Number=0000000000098096&sum=50000 [14:45:27]StoreToDocumentArchive [14:45:27]shift 324 fd 68372 [14:45:27]save to /storage/0324/doc_00068372 [14:45:27]save last doc name /storage/0324/doc_00068372 to /storage/kkm_last_doc_name [14:45:27]save OK [14:45:27]Clear old archive folders... [14:45:27]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:45:27]tlvbuf is 001CCAC0 [14:45:27]SAM_PROTO_ClearQueue [14:45:27]wFMCommunicate request_size=4 [14:45:27]MH_SAM_APDU [14:45:27]CAPDU: 80 09 00 00 [14:45:27]Write to MH i2c: E2 08 00 14 41 80 09 00 00 00 00 00 00 C7 [14:45:27]Write i2c OK [14:45:27]MH_I2C_Read... [14:45:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:45:27]Read from MH i2c: E2 [14:45:27]MH_I2C_Read... [14:45:27]Read from MH i2c: E2 03 00 [14:45:27]MH_I2C_Read... [14:45:27]Read from MH i2c: E2 03 00 14 41 00 90 00 C9 [14:45:27]RAPDU: 90 00 [14:45:27]wFMCommunicate OK [14:45:27]SAM_PROTO_ClearQueue done [14:45:27]KKMCreateOFDPacket [14:45:27]OFDProtocolAddRootSTLVToBuf [14:45:27]FM_MakeSignedData [14:45:27]FM_MakeSignedData [14:45:27]SAM_PROTO_SignData [14:45:27]wFMCommunicate request_size=4 [14:45:27]MH_SAM_APDU [14:45:27]CAPDU: 80 0D 01 02 [14:45:27]Write to MH i2c: E2 08 00 15 41 80 0D 01 02 00 00 00 00 CF [14:45:27]Write i2c OK [14:45:27]MH_I2C_Read... [14:45:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:45:27]Read from MH i2c: E2 [14:45:27]MH_I2C_Read... [14:45:27]Read from MH i2c: E2 03 00 [14:45:27]MH_I2C_Read... [14:45:27]Read from MH i2c: E2 03 00 15 41 00 90 00 CA [14:45:27]RAPDU: 90 00 [14:45:27]wFMCommunicate OK [14:45:27]wFMCommunicate request_size=255 [14:45:27]MH_SAM_APDU [14:45:27]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 1C 00 00 00 00 00 37 04 06 00 86 1A 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 76 00 00 00 F4 03 04 00 0C D7 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 14 0B 01 00 35 04 06 00 [14:45:27]Write to MH i2c: E2 02 01 16 41 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 1C 00 00 00 00 00 37 04 06 00 86 1A 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 76 00 00 00 F4 03 04 00 0C D7 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 14 0B 01 00 35 04 06 00 00 00 FE [14:45:28]Write i2c OK [14:45:28]MH_I2C_Read... [14:45:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:45:28]Read from MH i2c: E2 [14:45:28]MH_I2C_Read... [14:45:28]Read from MH i2c: E2 03 00 [14:45:28]MH_I2C_Read... [14:45:28]Read from MH i2c: E2 03 00 16 41 00 90 00 CB [14:45:28]RAPDU: 90 00 [14:45:28]wFMCommunicate OK [14:45:28]wFMCommunicate request_size=11 [14:45:28]MH_SAM_APDU [14:45:28]CAPDU: 80 0D 02 02 06 56 81 D7 53 CA 87 [14:45:28]Write to MH i2c: E2 0E 00 17 41 80 0D 02 02 06 00 56 81 D7 53 CA 87 00 00 30 [14:45:28]Write i2c OK [14:45:28]MH_I2C_Read... [14:45:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:45:28]Read from MH i2c: E2 [14:45:28]MH_I2C_Read... [14:45:28]Read from MH i2c: E2 03 00 [14:45:28]MH_I2C_Read... [14:45:28]Read from MH i2c: E2 03 00 17 41 00 90 00 CC [14:45:28]RAPDU: 90 00 [14:45:28]wFMCommunicate OK [14:45:28]wFMCommunicate request_size=4 [14:45:28]MH_SAM_APDU [14:45:28]CAPDU: 80 0D 03 02 [14:45:28]Write to MH i2c: E2 08 00 18 41 80 0D 03 02 00 00 00 00 D4 [14:45:28]Write i2c OK [14:45:28]MH_I2C_Read... [14:45:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:45:28]Read from MH i2c: E2 [14:45:28]MH_I2C_Read... [14:45:28]Read from MH i2c: E2 0B 00 [14:45:28]MH_I2C_Read... [14:45:28]Read from MH i2c: E2 0B 00 18 41 00 D5 04 E1 78 7E 4B 24 E2 90 00 D6 [14:45:28]RAPDU: D5 04 E1 78 7E 4B 24 E2 90 00 [14:45:28]wFMCommunicate OK [14:45:28]SAM_PROTO_SignData done [14:45:28]FM_MakeSignedData done [14:45:28]CreateOFDProtocolMessage [14:45:28]wFMCommunicate request_size=4 [14:45:28]MH_SAM_APDU [14:45:28]CAPDU: 80 11 00 00 [14:45:28]Write to MH i2c: E2 08 00 19 41 80 11 00 00 00 00 00 00 D4 [14:45:28]Write i2c OK [14:45:28]MH_I2C_Read... [14:45:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:45:28]Read from MH i2c: E2 [14:45:28]MH_I2C_Read... [14:45:28]Read from MH i2c: E2 17 00 [14:45:28]MH_I2C_Read... [14:45:28]Read from MH i2c: E2 17 00 19 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 1F [14:45:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:45:28]wFMCommunicate OK [14:45:28]CreateOFDProtocolMessage done [14:45:28]OFDSenderStorePacket 68372 [14:45:28]StoreOFDPacket docnum=68372 [14:45:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 8E E7 08 01 2D 10 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 1C 00 00 00 00 00 37 04 06 00 86 1A 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 76 00 00 00 F4 03 04 00 0C D7 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 14 0B 01 00 35 04 06 00 56 81 D7 53 CA 87 D5 04 E1 78 7E 4B 24 E2 [14:45:28]CheckFolder [14:45:28]dirname=/storage/ofd_packets [14:45:28]CheckFolder done [14:45:28]ProducePacketName [14:45:28]name=ofd_packets/00068372 [14:45:28]NVStorageSaveData ofd_packets/00068372 [14:45:28]File name is /storage/ofd_packets/00068372 [14:45:28]Write 302 bytes [14:45:28]NVStorageSaveData done [14:45:28]OFDSenderStorePacket done [14:45:28]KKMCreateOFDPacket done [14:45:28]NVStorageSaveData kkm_last_timestamp [14:45:28]File name is /storage/kkm_last_timestamp [14:45:28]Write 4 bytes [14:45:28]NVStorageSaveData done [14:45:28]ExternCall_PrintAddStr [14:45:28]wPrintStart [14:45:28]Write to MH i2c: 01 00 00 1A 41 5B [14:45:28]Write i2c OK [14:45:28]MH_I2C_Read... [14:45:28]Read from MH i2c: 01 [14:45:28]MH_I2C_Read... [14:45:28]Read from MH i2c: 01 07 00 [14:45:28]MH_I2C_Read... [14:45:28]Read from MH i2c: 01 07 00 1A 41 00 00 00 00 00 FF 0F 70 [14:45:28]RasterBufferAndPrint [14:45:28]line Счет N : (1)706467 [14:45:28]line ИНН: 02508201610067 [14:45:28]line Контрольно-Кассовый Чек [14:45:28]line ПРОДАЖА [14:45:28]line ТРК (МРК, ГНК) : 52 [14:45:28]line Товар: 2710124130 [14:45:28]line Super-92-К-5 [14:45:28]line 7.370 * 67.90 [14:45:28]line = 500.42 [14:45:28]line НДС 12% НСП 1% [14:45:28]line > о реализуемом товаре [14:45:28]line ОКРУГЛЕНИЕ: -0.42 [14:45:28]line ИТОГО: 500.00 [14:45:28]line Внесено: 500.00 [14:45:28]line СДАЧА: 0.00 [14:45:28]line НСП 1% : 4.43 [14:45:28]line НДС 12% : 53.14 [14:45:28]line Наличными: 500.00 [14:45:28]line Безнал.: 0.00 [14:45:28]line Место: АЗС № 62 "Партнер Нефть" [14:45:28]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [14:45:28]line СНО: Общий режим [14:45:28]line Чек 118 03.06.2024 14:45 [14:45:28]line Смена: 324 ФФД: 1.0 [14:45:28]line ЗНМ: 0300000181 [14:45:28]line РНМ: 0000000000098096 [14:45:28]line Версия ККМ: 001 [14:45:28]line ФМ: 0000000000965400 [14:45:28]line ФД: 68372 [14:45:28]line ФПД: 95115663362695 [14:45:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T144532&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68372&fm=95115663362695&tin=02508201610067®Number=0000000000098096&sum=50000 [14:45:28]OFD Sender: Processing packet 68372 [packets to send 26, broken 25] [14:45:28]ProducePacketName [14:45:28]name=ofd_packets/00068372 [14:45:28]OFD Sender: To server: pG, [14:45:28]CommunicateWithHost lk.salyk.kg:30040 [14:45:28]ConnectInit lk.salyk.kg [14:45:28]written 0, free lines is 4095 [14:45:28]Connected sock=7 [14:45:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 8E E7 08 01 2D 10 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 1C 00 00 00 00 00 37 04 06 00 86 1A 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 76 00 00 00 F4 03 04 00 0C D7 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 14 0B 01 00 35 04 06 00 56 81 D7 53 CA 87 D5 04 E1 78 7E 4B 24 E2 [14:45:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 54 71 47 00 0A 21 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 14 0B 01 00 F4 03 04 00 08 7E 5D 66 B6 04 01 00 00 61 57 0F C8 E5 8A D0 BF [14:45:29]CommunicateWithHost err = 0 [14:45:29]CheckOFDResponse [14:45:29]1017 (14) - 77093643461234 [14:45:29]1041 (16) - 0000000000965400 [14:45:29]1040 (4) - 68372 [14:45:29]1012 (4) - 03.06.2024 08:25 [14:45:29]1206 (1) - 0 [14:45:29]OFD Sender: Remove packet 68372 [14:45:29]ProducePacketName [14:45:29]name=ofd_packets/00068372 [14:45:29]NVStorageDeleteData [14:45:29]Write to MH i2c: 01 00 00 45 41 86 [14:45:29]Write i2c OK [14:45:29]MH_I2C_Read... [14:45:29]Read from MH i2c: 01 [14:45:29]MH_I2C_Read... [14:45:29]Read from MH i2c: 01 07 00 [14:45:29]MH_I2C_Read... [14:45:29]Read from MH i2c: 01 07 00 45 41 00 00 00 00 00 EC 0C 85 [14:45:29]RasterBufferAndPrint [14:45:29]line [14:45:29]line [14:45:29]line [14:45:29]line [14:45:29]line [14:45:29]written 0, free lines is 3314 [14:45:29]MH_Cut [14:45:29]Write to MH i2c: D1 01 00 4C 41 01 5F [14:45:29]Write i2c OK [14:45:29]MH_I2C_Read... [14:45:29]Read from MH i2c: D1 [14:45:29]MH_I2C_Read... [14:45:29]Read from MH i2c: D1 01 00 [14:45:29]MH_I2C_Read... [14:45:29]Read from MH i2c: D1 01 00 4C 41 00 5E [14:45:29]Write to MH i2c: 01 00 00 4D 41 8E [14:45:29]Write i2c OK [14:45:29]MH_I2C_Read... [14:45:29]OFD Sender: No OFD packet to send [14:45:29]*** Cut start [14:45:29]*** Partial cut [14:45:29]*** CUTSNS_PIN = 1 [14:45:30]*** CUTSNS_PIN = 0 [14:45:30]*** Brake cut motor [14:45:30]Read from MH i2c: 01 [14:45:30]MH_I2C_Read... [14:45:30]*** Stop cut motor [14:45:30]*** Cut end [14:45:30]Read from MH i2c: 01 07 00 [14:45:30]MH_I2C_Read... [14:45:30]Read from MH i2c: 01 07 00 4D 41 00 00 00 00 00 FF 0F A3 [14:45:30]process_action close_receipt done [14:45:30]requested_data is exist [14:45:30]produce_requested_data [14:45:30]requested_item fm.sn is exist - process it [14:45:30]wFMCommunicate request_size=4 [14:45:30]MH_SAM_APDU [14:45:30]CAPDU: 80 11 00 00 [14:45:30]Write to MH i2c: E2 08 00 4E 41 80 11 00 00 00 00 00 00 09 [14:45:30]Write i2c OK [14:45:30]MH_I2C_Read... [14:45:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:45:30]Read from MH i2c: E2 [14:45:30]MH_I2C_Read... [14:45:30]Read from MH i2c: E2 17 00 [14:45:30]MH_I2C_Read... [14:45:30]Read from MH i2c: E2 17 00 4E 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 54 [14:45:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:45:30]wFMCommunicate OK [14:45:30]requested_item fd.num is exist - process it [14:45:30]SAM_PROTO_GetFieldsCounters [14:45:30]wFMCommunicate request_size=4 [14:45:30]MH_SAM_APDU [14:45:30]CAPDU: 80 13 00 00 [14:45:30]Write to MH i2c: E2 08 00 4F 41 80 13 00 00 00 00 00 00 0C [14:45:30]Write i2c OK [14:45:30]MH_I2C_Read... [14:45:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:45:30]Read from MH i2c: E2 [14:45:30]MH_I2C_Read... [14:45:30]Read from MH i2c: E2 62 00 [14:45:30]MH_I2C_Read... [14:45:30]Read from MH i2c: E2 62 00 4F 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 14 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [14:45:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 14 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:45:30]wFMCommunicate OK [14:45:30]SAM_PROTO_GetFieldsCounters done [14:45:30]requested_item shift.num is exist - process it [14:45:30]requested_item shift.opened is exist - process it [14:45:30]req_shift_opened [14:45:30]FM_GetShiftState [14:45:30]SAM_PROTO_GetShiftState [14:45:30]wFMCommunicate request_size=4 [14:45:30]MH_SAM_APDU [14:45:30]CAPDU: 80 13 01 00 [14:45:30]Write to MH i2c: E2 08 00 50 41 80 13 01 00 00 00 00 00 0E [14:45:30]Write i2c OK [14:45:30]MH_I2C_Read... [14:45:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:45:30]Read from MH i2c: E2 [14:45:30]MH_I2C_Read... [14:45:30]Read from MH i2c: E2 0E 00 [14:45:30]MH_I2C_Read... [14:45:30]Read from MH i2c: E2 0E 00 50 41 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 E9 [14:45:30]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [14:45:30]wFMCommunicate OK [14:45:30]SAM_PROTO_GetShiftState done [14:45:30]FM_GetShiftState done [14:45:30]req_shift_opened done [14:45:30]requested_item shift.open_date is exist - process it [14:45:30]req_shift_open_date [14:45:30]req_shift_open_date done [14:45:30]produce_requested_data done [14:45:30]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68372,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [14:45:30]process_action_free close_receipt [14:45:30]json_value_free [14:45:30]json_value_free done [14:45:30]process_json_proto returns [14:45:30]Send response to host [14:45:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68372,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [14:45:30]free response buf [14:45:30]execute_script done [14:45:30]execute_script returns [14:45:30]free content buf [14:45:30]Sock 6.Close socket [14:45:30]Sock 6.Thread stoped [14:45:34]OFD Sender: No OFD packet to send [14:45:39]OFD Sender: No OFD packet to send [14:45:44]OFD Sender: No OFD packet to send [14:45:49]OFD Sender: No OFD packet to send [14:45:54]OFD Sender: No OFD packet to send [14:45:59]OFD Sender: No OFD packet to send [14:46:04]OFD Sender: No OFD packet to send [14:46:09]OFD Sender: No OFD packet to send [14:46:14]OFD Sender: No OFD packet to send [14:46:19]OFD Sender: No OFD packet to send [14:46:24]OFD Sender: No OFD packet to send [14:46:29]OFD Sender: No OFD packet to send [14:46:34]OFD Sender: No OFD packet to send [14:46:39]OFD Sender: No OFD packet to send [14:46:44]OFD Sender: No OFD packet to send [14:46:49]OFD Sender: No OFD packet to send [14:46:54]OFD Sender: No OFD packet to send [14:46:59]OFD Sender: No OFD packet to send [14:47:04]OFD Sender: No OFD packet to send [14:47:09]OFD Sender: No OFD packet to send [14:47:14]OFD Sender: No OFD packet to send [14:47:19]OFD Sender: No OFD packet to send [14:47:24]OFD Sender: No OFD packet to send [14:47:29]OFD Sender: No OFD packet to send [14:47:34]OFD Sender: No OFD packet to send [14:47:39]OFD Sender: No OFD packet to send [14:47:44]OFD Sender: No OFD packet to send [14:47:49]OFD Sender: No OFD packet to send [14:47:54]OFD Sender: No OFD packet to send [14:47:59]OFD Sender: No OFD packet to send [14:48:04]OFD Sender: No OFD packet to send [14:48:09]OFD Sender: No OFD packet to send [14:48:14]OFD Sender: No OFD packet to send [14:48:19]OFD Sender: No OFD packet to send [14:48:24]OFD Sender: No OFD packet to send [14:48:29]OFD Sender: No OFD packet to send [14:48:34]OFD Sender: No OFD packet to send [14:48:39]OFD Sender: No OFD packet to send [14:48:44]OFD Sender: No OFD packet to send [14:48:49]OFD Sender: No OFD packet to send [14:48:54]OFD Sender: No OFD packet to send [14:48:59]OFD Sender: No OFD packet to send [14:49:04]OFD Sender: No OFD packet to send [14:49:09]OFD Sender: No OFD packet to send [14:49:14]OFD Sender: No OFD packet to send [14:49:19]OFD Sender: No OFD packet to send [14:49:24]OFD Sender: No OFD packet to send [14:49:29]OFD Sender: No OFD packet to send [14:49:34]OFD Sender: No OFD packet to send [14:49:39]OFD Sender: No OFD packet to send [14:49:44]OFD Sender: No OFD packet to send [14:49:49]OFD Sender: No OFD packet to send [14:49:54]OFD Sender: No OFD packet to send [14:49:59]OFD Sender: No OFD packet to send [14:50:04]OFD Sender: No OFD packet to send [14:50:09]OFD Sender: No OFD packet to send [14:50:14]OFD Sender: No OFD packet to send [14:50:19]OFD Sender: No OFD packet to send [14:50:24]OFD Sender: No OFD packet to send [14:50:29]OFD Sender: No OFD packet to send [14:50:34]OFD Sender: No OFD packet to send [14:50:39]OFD Sender: No OFD packet to send [14:50:44]OFD Sender: No OFD packet to send [14:50:49]OFD Sender: No OFD packet to send [14:50:54]OFD Sender: No OFD packet to send [14:50:59]OFD Sender: No OFD packet to send [14:51:04]OFD Sender: No OFD packet to send [14:51:09]OFD Sender: No OFD packet to send [14:51:14]OFD Sender: No OFD packet to send [14:51:19]OFD Sender: No OFD packet to send [14:51:24]OFD Sender: No OFD packet to send [14:51:29]OFD Sender: No OFD packet to send [14:51:34]OFD Sender: No OFD packet to send [14:51:39]OFD Sender: No OFD packet to send [14:51:44]OFD Sender: No OFD packet to send [14:51:49]OFD Sender: No OFD packet to send [14:51:54]OFD Sender: No OFD packet to send [14:51:59]OFD Sender: No OFD packet to send [14:52: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:45]OFD Sender: No OFD packet to send [14:53:50]OFD Sender: No OFD packet to send [14:53:55]OFD Sender: No OFD packet to send [14:54:00]OFD Sender: No OFD packet to send [14:54:05]OFD Sender: No OFD packet to send [14:54:10]OFD Sender: No OFD packet to send [14:54:15]OFD Sender: No OFD packet to send [14:54:20]OFD Sender: No OFD packet to send [14:54:25]OFD Sender: No OFD packet to send [14:54:30]OFD Sender: No OFD packet to send [14:54:35]OFD Sender: No OFD packet to send [14:54:40]OFD Sender: No OFD packet to send [14:54:45]OFD Sender: No OFD packet to send [14:54:50]OFD Sender: No OFD packet to send [14:54:55]OFD Sender: No OFD packet to send [14:55:00]OFD Sender: No OFD packet to send [14:55:05]OFD Sender: No OFD packet to send [14:55:10]OFD Sender: No OFD packet to send [14:55:15]OFD Sender: No OFD packet to send [14:55:20]OFD Sender: No OFD packet to send [14:55:25]OFD Sender: No OFD packet to send [14:55:30]OFD Sender: No OFD packet to send [14:55:35]OFD Sender: No OFD packet to send [14:55:40]OFD Sender: No OFD packet to send [14:55:45]OFD Sender: No OFD packet to send [14:55:50]OFD Sender: No OFD packet to send [14:55:55]OFD Sender: No OFD packet to send [14:55:56]accept exits with 5 [14:55:56]New connection [14:55:56]New thread 3066686820 created [14:55:56]Thread 3066543460 joined [14:55:56]Waiting for new connection... [14:55:56] Sock 5.Parse request [14:55:56]Sock 5.Check first char [14:55:56]Sock 5.First char is OK [14:55:56]request: POST /json_proto HTTP/1.0 [14:55:56]Method: POST [14:55:56]URL: /json_proto [14:55:56]Method is POST - this is cgi request [14:55:56]url: /json_proto [14:55:56]query_string will be loaded in cgi processing [14:55:56]execute_cgi json_proto POST (null) [14:55:56]execute_cgi path=json_proto method=POST [14:55:56]POST find Content-Length [14:55:56]Host: 172.17.36.132:8080 [14:55:56]Content-Length: 683 [14:55:56]Content-Type: application/json [14:55:56] [14:55:56]POST finish read [14:55:56]Found Content-Length = 683 [14:55:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706468", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 10.160, "sum" : 740.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 740.00, "total" : 740.00, "payments": [ { "type": 0, "sum" : 740.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:56]execute_script... [14:55:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706468", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 10.160, "sum" : 740.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 740.00, "total" : 740.00, "payments": [ { "type": 0, "sum" : 740.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:56]POST & json_proto [14:55:56]process_json_proto [14:55:56]json parsed OK: [14:55:56]protocol is kg_v1.0 [14:55:56]action value=close_receipt [14:55:56]process_action close_receipt [14:55:56]cmd_close_receipt [14:55:56]MH_GetDate [14:55:56]Write to MH i2c: F0 00 00 51 41 81 [14:55:56]Write i2c OK [14:55:56]MH_I2C_Read... [14:55:56]Read from MH i2c: F0 [14:55:56]MH_I2C_Read... [14:55:56]Read from MH i2c: F0 09 00 [14:55:56]MH_I2C_Read... [14:55:56]Read from MH i2c: F0 09 00 51 41 00 81 D9 5D 66 B2 22 B0 64 8F [14:55:56]GetLastDocTimeStamp 1717425932 [14:55:56]current date 1717426561 [14:55:56]FM_GetShiftState [14:55:56]SAM_PROTO_GetShiftState [14:55:56]wFMCommunicate request_size=4 [14:55:56]MH_SAM_APDU [14:55:56]CAPDU: 80 13 01 00 [14:55:56]Write to MH i2c: E2 08 00 52 41 80 13 01 00 00 00 00 00 10 [14:55:56]Write i2c OK [14:55:56]MH_I2C_Read... [14:55:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:56]Read from MH i2c: E2 [14:55:56]MH_I2C_Read... [14:55:56]Read from MH i2c: E2 0E 00 [14:55:56]MH_I2C_Read... [14:55:56]Read from MH i2c: E2 0E 00 52 41 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 EB [14:55:56]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [14:55:56]wFMCommunicate OK [14:55:56]SAM_PROTO_GetShiftState done [14:55:56]FM_GetShiftState done [14:55:56]opened in 1717378033 [14:55:56]opened+sec_in_day 1717464433 [14:55:56]quantity*price = 74066 [14:55:56]sum+1 = 74067 [14:55:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 740.00 Внесено: 740.00 СДАЧА: 0.00 НСП 1% : 6.55 НДС 12% : 78.65 Наличными: 740.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 119 03.06.2024 14:56 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68373 ФПД: 171061222520711 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T145601&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68373&fm=171061222520711&tin=02508201610067®Number=0000000000098096&sum=74000 [14:55:57]StoreToDocumentArchive [14:55:57]shift 324 fd 68373 [14:55:57]save to /storage/0324/doc_00068373 [14:55:57]save last doc name /storage/0324/doc_00068373 to /storage/kkm_last_doc_name [14:55:57]save OK [14:55:57]Clear old archive folders... [14:55:57]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:55:57]tlvbuf is 00265940 [14:55:57]SAM_PROTO_ClearQueue [14:55:57]wFMCommunicate request_size=4 [14:55:57]MH_SAM_APDU [14:55:57]CAPDU: 80 09 00 00 [14:55:57]Write to MH i2c: E2 08 00 5F 41 80 09 00 00 00 00 00 00 12 [14:55:57]Write i2c OK [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: E2 [14:55:57]MH_I2C_Read... [14:55:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:55:57]Read from MH i2c: E2 03 00 [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: E2 03 00 5F 41 00 90 00 14 [14:55:57]RAPDU: 90 00 [14:55:57]wFMCommunicate OK [14:55:57]SAM_PROTO_ClearQueue done [14:55:57]KKMCreateOFDPacket [14:55:57]OFDProtocolAddRootSTLVToBuf [14:55:57]FM_MakeSignedData [14:55:57]FM_MakeSignedData [14:55:57]SAM_PROTO_SignData [14:55:57]wFMCommunicate request_size=4 [14:55:57]MH_SAM_APDU [14:55:57]CAPDU: 80 0D 01 02 [14:55:57]Write to MH i2c: E2 08 00 60 41 80 0D 01 02 00 00 00 00 1A [14:55:57]Write i2c OK [14:55:57]MH_I2C_Read... [14:55:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:55:57]Read from MH i2c: E2 [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: E2 03 00 [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: E2 03 00 60 41 00 90 00 15 [14:55:57]RAPDU: 90 00 [14:55:57]wFMCommunicate OK [14:55:57]wFMCommunicate request_size=255 [14:55:57]MH_SAM_APDU [14:55: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 34 FF 03 08 00 03 B0 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 52 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 1E 00 00 00 00 07 04 06 00 10 21 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 81 D9 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 15 0B 01 00 35 04 06 00 [14:55:57]Write to MH i2c: E2 02 01 61 41 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 34 FF 03 08 00 03 B0 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 52 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 1E 00 00 00 00 07 04 06 00 10 21 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 81 D9 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 15 0B 01 00 35 04 06 00 00 00 04 [14:55:57]Write i2c OK [14:55:57]MH_I2C_Read... [14:55:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:57]Read from MH i2c: E2 [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: E2 03 00 [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: E2 03 00 61 41 00 90 00 16 [14:55:57]RAPDU: 90 00 [14:55:57]wFMCommunicate OK [14:55:57]wFMCommunicate request_size=11 [14:55:57]MH_SAM_APDU [14:55:57]CAPDU: 80 0D 02 02 06 9B 94 4B 67 37 87 [14:55:57]Write to MH i2c: E2 0E 00 62 41 80 0D 02 02 06 00 9B 94 4B 67 37 87 00 00 C8 [14:55:57]Write i2c OK [14:55:57]MH_I2C_Read... [14:55:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:57]Read from MH i2c: E2 [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: E2 03 00 [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: E2 03 00 62 41 00 90 00 17 [14:55:57]RAPDU: 90 00 [14:55:57]wFMCommunicate OK [14:55:57]wFMCommunicate request_size=4 [14:55:57]MH_SAM_APDU [14:55:57]CAPDU: 80 0D 03 02 [14:55:57]Write to MH i2c: E2 08 00 63 41 80 0D 03 02 00 00 00 00 1F [14:55:57]Write i2c OK [14:55:57]MH_I2C_Read... [14:55:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:55:57]Read from MH i2c: E2 [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: E2 0B 00 [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: E2 0B 00 63 41 00 6F D9 4D 05 03 02 8B AF 90 00 F9 [14:55:57]RAPDU: 6F D9 4D 05 03 02 8B AF 90 00 [14:55:57]wFMCommunicate OK [14:55:57]SAM_PROTO_SignData done [14:55:57]FM_MakeSignedData done [14:55:57]CreateOFDProtocolMessage [14:55:57]wFMCommunicate request_size=4 [14:55:57]MH_SAM_APDU [14:55:57]CAPDU: 80 11 00 00 [14:55:57]Write to MH i2c: E2 08 00 64 41 80 11 00 00 00 00 00 00 1F [14:55:57]Write i2c OK [14:55:57]MH_I2C_Read... [14:55:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:57]Read from MH i2c: E2 [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: E2 17 00 [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: E2 17 00 64 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 6A [14:55:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:55:57]wFMCommunicate OK [14:55:57]CreateOFDProtocolMessage done [14:55:57]OFDSenderStorePacket 68373 [14:55:57]StoreOFDPacket docnum=68373 [14:55:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 FB 61 08 01 A2 08 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 34 FF 03 08 00 03 B0 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 52 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 1E 00 00 00 00 07 04 06 00 10 21 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 81 D9 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 15 0B 01 00 35 04 06 00 9B 94 4B 67 37 87 6F D9 4D 05 03 02 8B AF [14:55:57]CheckFolder [14:55:57]dirname=/storage/ofd_packets [14:55:57]CheckFolder done [14:55:57]ProducePacketName [14:55:57]name=ofd_packets/00068373 [14:55:57]NVStorageSaveData ofd_packets/00068373 [14:55:57]File name is /storage/ofd_packets/00068373 [14:55:57]Write 302 bytes [14:55:57]NVStorageSaveData done [14:55:57]OFDSenderStorePacket done [14:55:57]KKMCreateOFDPacket done [14:55:57]NVStorageSaveData kkm_last_timestamp [14:55:57]File name is /storage/kkm_last_timestamp [14:55:57]Write 4 bytes [14:55:57]NVStorageSaveData done [14:55:57]ExternCall_PrintAddStr [14:55:57]wPrintStart [14:55:57]Write to MH i2c: 01 00 00 65 41 A6 [14:55:57]Write i2c OK [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: 01 [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: 01 07 00 [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: 01 07 00 65 41 00 00 00 00 00 FF 0F BB [14:55:57]RasterBufferAndPrint [14:55:57]line Счет N : (1)706468 [14:55:57]line ИНН: 02508201610067 [14:55:57]line Контрольно-Кассовый Чек [14:55:57]line ПРОДАЖА [14:55:57]line ТРК (МРК, ГНК) : 21 [14:55:57]line Товар: 2710194210 [14:55:57]line ДТ(л)-К-4 [14:55:57]line 10.160 * 72.90 [14:55:57]line = 740.66 [14:55:57]line НДС 12% НСП 1% [14:55:57]line > о реализуемом товаре [14:55:57]line ОКРУГЛЕНИЕ: -0.66 [14:55:57]line ИТОГО: 740.00 [14:55:57]line Внесено: 740.00 [14:55:57]line СДАЧА: 0.00 [14:55:57]line НСП 1% : 6.55 [14:55:57]line НДС 12% : 78.65 [14:55:57]line Наличными: 740.00 [14:55:57]line Безнал.: 0.00 [14:55:57]line Место: АЗС № 62 "Партнер Нефть" [14:55:57]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [14:55:57]line СНО: Общий режим [14:55:57]line Чек 119 03.06.2024 14:56 [14:55:57]line Смена: 324 ФФД: 1.0 [14:55:57]line ЗНМ: 0300000181 [14:55:57]line РНМ: 0000000000098096 [14:55:57]line Версия ККМ: 001 [14:55:57]line ФМ: 0000000000965400 [14:55:57]line ФД: 68373 [14:55:57]line ФПД: 171061222520711 [14:55:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T145601&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68373&fm=171061222520711&tin=02508201610067®Number=0000000000098096&sum=74000 [14:55:58]OFD Sender: Processing packet 68373 [packets to send 26, broken 25] [14:55:58]ProducePacketName [14:55:58]name=ofd_packets/00068373 [14:55:58]OFD Sender: To server: pG, [14:55:58]CommunicateWithHost lk.salyk.kg:30040 [14:55:58]ConnectInit lk.salyk.kg [14:55:58]written 0, free lines is 4095 [14:55:58]Connected sock=7 [14:55:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 FB 61 08 01 A2 08 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 34 FF 03 08 00 03 B0 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 52 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 1E 00 00 00 00 07 04 06 00 10 21 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 81 D9 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 15 0B 01 00 35 04 06 00 9B 94 4B 67 37 87 6F D9 4D 05 03 02 8B AF [14:55:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 F9 38 47 00 EF CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 15 0B 01 00 F4 03 04 00 7D 80 5D 66 B6 04 01 00 00 BE 42 DA DD 1A 67 39 B0 [14:55:58]CommunicateWithHost err = 0 [14:55:58]CheckOFDResponse [14:55:58]1017 (14) - 77093643461234 [14:55:58]1041 (16) - 0000000000965400 [14:55:58]1040 (4) - 68373 [14:55:58]1012 (4) - 03.06.2024 08:36 [14:55:58]1206 (1) - 0 [14:55:58]OFD Sender: Remove packet 68373 [14:55:58]ProducePacketName [14:55:58]name=ofd_packets/00068373 [14:55:58]NVStorageDeleteData [14:55:58]Write to MH i2c: 01 00 00 90 41 D1 [14:55:58]Write i2c OK [14:55:58]MH_I2C_Read... [14:55:58]Read from MH i2c: 01 [14:55:58]MH_I2C_Read... [14:55:58]Read from MH i2c: 01 07 00 [14:55:58]MH_I2C_Read... [14:55:58]Read from MH i2c: 01 07 00 90 41 00 00 00 00 00 E6 0C CA [14:55:58]RasterBufferAndPrint [14:55:58]line [14:55:58]line [14:55:58]line [14:55:58]line [14:55:58]line [14:55:58]written 0, free lines is 3311 [14:55:58]MH_Cut [14:55:58]Write to MH i2c: D1 01 00 97 41 01 AA [14:55:58]Write i2c OK [14:55:58]MH_I2C_Read... [14:55:58]Read from MH i2c: D1 [14:55:58]MH_I2C_Read... [14:55:58]Read from MH i2c: D1 01 00 [14:55:58]MH_I2C_Read... [14:55:58]Read from MH i2c: D1 01 00 97 41 00 A9 [14:55:58]Write to MH i2c: 01 00 00 98 41 D9 [14:55:58]Write i2c OK [14:55:58]MH_I2C_Read... [14:55:58]OFD Sender: No OFD packet to send [14:55:59]*** Cut start [14:55:59]*** Partial cut [14:55:59]*** CUTSNS_PIN = 1 [14:55:59]*** CUTSNS_PIN = 0 [14:55:59]*** Brake cut motor [14:55:59]Read from MH i2c: 01 [14:55:59]MH_I2C_Read... [14:55:59]*** Stop cut motor [14:55:59]*** Cut end [14:55:59]Read from MH i2c: 01 07 00 [14:55:59]MH_I2C_Read... [14:55:59]Read from MH i2c: 01 07 00 98 41 00 00 00 00 00 FF 0F EE [14:55:59]process_action close_receipt done [14:55:59]requested_data is exist [14:55:59]produce_requested_data [14:55:59]requested_item fm.sn is exist - process it [14:55:59]wFMCommunicate request_size=4 [14:55:59]MH_SAM_APDU [14:55:59]CAPDU: 80 11 00 00 [14:55:59]Write to MH i2c: E2 08 00 99 41 80 11 00 00 00 00 00 00 54 [14:55:59]Write i2c OK [14:55:59]MH_I2C_Read... [14:56:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:00]Read from MH i2c: E2 [14:56:00]MH_I2C_Read... [14:56:00]Read from MH i2c: E2 17 00 [14:56:00]MH_I2C_Read... [14:56:00]Read from MH i2c: E2 17 00 99 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 9F [14:56:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [14:56:00]wFMCommunicate OK [14:56:00]requested_item fd.num is exist - process it [14:56:00]SAM_PROTO_GetFieldsCounters [14:56:00]wFMCommunicate request_size=4 [14:56:00]MH_SAM_APDU [14:56:00]CAPDU: 80 13 00 00 [14:56:00]Write to MH i2c: E2 08 00 9A 41 80 13 00 00 00 00 00 00 57 [14:56:00]Write i2c OK [14:56:00]MH_I2C_Read... [14:56:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:56:00]Read from MH i2c: E2 [14:56:00]MH_I2C_Read... [14:56:00]Read from MH i2c: E2 62 00 [14:56:00]MH_I2C_Read... [14:56:00]Read from MH i2c: E2 62 00 9A 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 15 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 42 [14:56:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 15 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:56:00]wFMCommunicate OK [14:56:00]SAM_PROTO_GetFieldsCounters done [14:56:00]requested_item shift.num is exist - process it [14:56:00]requested_item shift.opened is exist - process it [14:56:00]req_shift_opened [14:56:00]FM_GetShiftState [14:56:00]SAM_PROTO_GetShiftState [14:56:00]wFMCommunicate request_size=4 [14:56:00]MH_SAM_APDU [14:56:00]CAPDU: 80 13 01 00 [14:56:00]Write to MH i2c: E2 08 00 9B 41 80 13 01 00 00 00 00 00 59 [14:56:00]Write i2c OK [14:56:00]MH_I2C_Read... [14:56:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:00]Read from MH i2c: E2 [14:56:00]MH_I2C_Read... [14:56:00]Read from MH i2c: E2 0E 00 [14:56:00]MH_I2C_Read... [14:56:00]Read from MH i2c: E2 0E 00 9B 41 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 34 [14:56:00]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [14:56:00]wFMCommunicate OK [14:56:00]SAM_PROTO_GetShiftState done [14:56:00]FM_GetShiftState done [14:56:00]req_shift_opened done [14:56:00]requested_item shift.open_date is exist - process it [14:56:00]req_shift_open_date [14:56:00]req_shift_open_date done [14:56:00]produce_requested_data done [14:56:00]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68373,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [14:56:00]process_action_free close_receipt [14:56:00]json_value_free [14:56:00]json_value_free done [14:56:00]process_json_proto returns [14:56:00]Send response to host [14:56:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68373,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [14:56:00]free response buf [14:56:00]execute_script done [14:56:00]execute_script returns [14:56:00]free content buf [14:56:00]Sock 5.Close socket [14:56:00]Sock 5.Thread stoped [14:56:03]OFD Sender: No OFD packet to send [14:56:08]OFD Sender: No OFD packet to send [14:56:13]OFD Sender: No OFD packet to send [14:56:18]OFD Sender: No OFD packet to send [14:56:23]OFD Sender: No OFD packet to send [14:56:28]OFD Sender: No OFD packet to send [14:56:33]OFD Sender: No OFD packet to send [14:56:38]OFD Sender: No OFD packet to send [14:56:43]OFD Sender: No OFD packet to send [14:56:48]OFD Sender: No OFD packet to send [14:56:53]OFD Sender: No OFD packet to send [14:56:58]OFD Sender: No OFD packet to send [14:57:03]OFD Sender: No OFD packet to send [14:57:08]OFD Sender: No OFD packet to send [14:57:13]OFD Sender: No OFD packet to send [14:57:18]OFD Sender: No OFD packet to send [14:57:23]OFD Sender: No OFD packet to send [14:57:28]OFD Sender: No OFD packet to send [14:57:33]OFD Sender: No OFD packet to send [14:57:38]OFD Sender: No OFD packet to send [14:57:43]OFD Sender: No OFD packet to send [14:57:48]OFD Sender: No OFD packet to send [14:57:53]OFD Sender: No OFD packet to send [14:57:58]OFD Sender: No OFD packet to send [14:58:03]OFD Sender: No OFD packet to send [14:58:08]OFD Sender: No OFD packet to send [14:58:14]OFD Sender: No OFD packet to send [14:58:19]OFD Sender: No OFD packet to send [14:58:24]OFD Sender: No OFD packet to send [14:58:29]OFD Sender: No OFD packet to send [14:58:34]OFD Sender: No OFD packet to send [14:58:39]OFD Sender: No OFD packet to send [14:58:44]OFD Sender: No OFD packet to send [14:58:49]OFD Sender: No OFD packet to send [14:58:54]OFD Sender: No OFD packet to send [14:58:59]OFD Sender: No OFD packet to send [14:59:04]OFD Sender: No OFD packet to send [14:59:09]OFD Sender: No OFD packet to send [14:59:14]OFD Sender: No OFD packet to send [14:59:19]OFD Sender: No OFD packet to send [14:59:24]OFD Sender: No OFD packet to send [14:59:29]OFD Sender: No OFD packet to send [14:59:34]OFD Sender: No OFD packet to send [14:59:39]OFD Sender: No OFD packet to send [14:59:44]OFD Sender: No OFD packet to send [14:59:49]OFD Sender: No OFD packet to send [14:59:54]OFD Sender: No OFD packet to send [14:59:59]OFD Sender: No OFD packet to send [15:00:04]OFD Sender: No OFD packet to send [15:00:09]OFD Sender: No OFD packet to send [15:00:14]OFD Sender: No OFD packet to send [15:00:19]OFD Sender: No OFD packet to send [15:00:24]OFD Sender: No OFD packet to send [15:00:29]OFD Sender: No OFD packet to send [15:00:34]OFD Sender: No OFD packet to send [15:00:39]OFD Sender: No OFD packet to send [15:00:44]OFD Sender: No OFD packet to send [15:00:49]OFD Sender: No OFD packet to send [15:00:54]OFD Sender: No OFD packet to send [15:00:59]OFD Sender: No OFD packet to send [15:01:04]OFD Sender: No OFD packet to send [15:01:09]OFD Sender: No OFD packet to send [15:01:14]OFD Sender: No OFD packet to send [15:01:19]OFD Sender: No OFD packet to send [15:01:24]OFD Sender: No OFD packet to send [15:01:29]OFD Sender: No OFD packet to send [15:01:34]OFD Sender: No OFD packet to send [15:01:39]OFD Sender: No OFD packet to send [15:01:44]OFD Sender: No OFD packet to send [15:01:49]OFD Sender: No OFD packet to send [15:01:54]OFD Sender: No OFD packet to send [15:01:59]OFD Sender: No OFD packet to send [15:02:04]OFD Sender: No OFD packet to send [15:02:09]OFD Sender: No OFD packet to send [15:02:14]OFD Sender: No OFD packet to send [15:02:19]OFD Sender: No OFD packet to send [15:02:24]OFD Sender: No OFD packet to send [15:02:29]OFD Sender: No OFD packet to send [15:02:34]OFD Sender: No OFD packet to send [15:02:39]OFD Sender: No OFD packet to send [15:02:44]OFD Sender: No OFD packet to send [15:02:49]OFD Sender: No OFD packet to send [15:02:54]OFD Sender: No OFD packet to send [15:02:59]OFD Sender: No OFD packet to send [15:03:04]OFD Sender: No OFD packet to send [15:03:09]OFD Sender: No OFD packet to send [15:03:14]OFD Sender: No OFD packet to send [15:03:19]OFD Sender: No OFD packet to send [15:03:24]OFD Sender: No OFD packet to send [15:03:29]OFD Sender: No OFD packet to send [15:03:34]OFD Sender: No OFD packet to send [15:03:39]OFD Sender: No OFD packet to send [15:03:44]OFD Sender: No OFD packet to send [15:03:49]OFD Sender: No OFD packet to send [15:03:54]OFD Sender: No OFD packet to send [15:03:59]OFD Sender: No OFD packet to send [15:04:04]OFD Sender: No OFD packet to send [15:04:09]OFD Sender: No OFD packet to send [15:04:14]OFD Sender: No OFD packet to send [15:04:19]OFD Sender: No OFD packet to send [15:04:23]accept exits with 6 [15:04:23]New connection [15:04:23]New thread 3066543460 created [15:04:23]Thread 3066686820 joined [15:04:23]Waiting for new connection... [15:04:23] Sock 6.Parse request [15:04:23]Sock 6.Check first char [15:04:23]Sock 6.First char is OK [15:04:23]request: POST /json_proto HTTP/1.0 [15:04:23]Method: POST [15:04:23]URL: /json_proto [15:04:23]Method is POST - this is cgi request [15:04:23]url: /json_proto [15:04:23]query_string will be loaded in cgi processing [15:04:23]execute_cgi json_proto POST (null) [15:04:23]execute_cgi path=json_proto method=POST [15:04:23]POST find Content-Length [15:04:23]Host: 172.17.36.132:8080 [15:04:23]Content-Length: 682 [15:04:23]Content-Type: application/json [15:04:23] [15:04:23]POST finish read [15:04:23]Found Content-Length = 682 [15:04:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706469", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:04:23]execute_script... [15:04: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)706469", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:04:23]POST & json_proto [15:04:23]process_json_proto [15:04:23]json parsed OK: [15:04:23]protocol is kg_v1.0 [15:04:23]action value=close_receipt [15:04:23]process_action close_receipt [15:04:23]cmd_close_receipt [15:04:23]MH_GetDate [15:04:23]Write to MH i2c: F0 00 00 9C 41 CC [15:04:23]Write i2c OK [15:04:23]MH_I2C_Read... [15:04:23]Read from MH i2c: F0 [15:04:23]MH_I2C_Read... [15:04:23]Read from MH i2c: F0 09 00 [15:04:23]MH_I2C_Read... [15:04:23]Read from MH i2c: F0 09 00 9C 41 00 7D DB 5D 66 B2 22 B0 64 D8 [15:04:23]GetLastDocTimeStamp 1717426561 [15:04:23]current date 1717427069 [15:04:23]FM_GetShiftState [15:04:23]SAM_PROTO_GetShiftState [15:04:23]wFMCommunicate request_size=4 [15:04:23]MH_SAM_APDU [15:04:23]CAPDU: 80 13 01 00 [15:04:23]Write to MH i2c: E2 08 00 9D 41 80 13 01 00 00 00 00 00 5B [15:04:23]Write i2c OK [15:04:23]MH_I2C_Read... [15:04:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:04:23]Read from MH i2c: E2 [15:04:23]MH_I2C_Read... [15:04:23]Read from MH i2c: E2 0E 00 [15:04:23]MH_I2C_Read... [15:04:23]Read from MH i2c: E2 0E 00 9D 41 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 36 [15:04:23]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [15:04:23]wFMCommunicate OK [15:04:23]SAM_PROTO_GetShiftState done [15:04:23]FM_GetShiftState done [15:04:23]opened in 1717378033 [15:04:23]opened+sec_in_day 1717464433 [15:04:23]quantity*price = 100015 [15:04:23]sum+1 = 100017 [15:04:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 120 03.06.2024 15:04 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68374 ФПД: 150755356742305 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T150429&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68374&fm=150755356742305&tin=02508201610067®Number=0000000000098096&sum=100000 [15:04:24]StoreToDocumentArchive [15:04:24]shift 324 fd 68374 [15:04:24]save to /storage/0324/doc_00068374 [15:04:24]save last doc name /storage/0324/doc_00068374 to /storage/kkm_last_doc_name [15:04:24]save OK [15:04:24]Clear old archive folders... [15:04:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:04:24]tlvbuf is 004CE6D0 [15:04:24]SAM_PROTO_ClearQueue [15:04:24]wFMCommunicate request_size=4 [15:04:24]MH_SAM_APDU [15:04:24]CAPDU: 80 09 00 00 [15:04:24]Write to MH i2c: E2 08 00 AA 41 80 09 00 00 00 00 00 00 5D [15:04:24]Write i2c OK [15:04:24]MH_I2C_Read... [15:04:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:04:24]Read from MH i2c: E2 [15:04:24]MH_I2C_Read... [15:04:24]Read from MH i2c: E2 03 00 [15:04:24]MH_I2C_Read... [15:04:24]Read from MH i2c: E2 03 00 AA 41 00 90 00 5F [15:04:24]RAPDU: 90 00 [15:04:24]wFMCommunicate OK [15:04:24]SAM_PROTO_ClearQueue done [15:04:24]KKMCreateOFDPacket [15:04:24]OFDProtocolAddRootSTLVToBuf [15:04:24]FM_MakeSignedData [15:04:24]FM_MakeSignedData [15:04:24]SAM_PROTO_SignData [15:04:24]wFMCommunicate request_size=4 [15:04:24]MH_SAM_APDU [15:04:24]CAPDU: 80 0D 01 02 [15:04:24]Write to MH i2c: E2 08 00 AB 41 80 0D 01 02 00 00 00 00 65 [15:04:24]Write i2c OK [15:04:24]MH_I2C_Read... [15:04:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:04:25]Read from MH i2c: E2 [15:04:25]MH_I2C_Read... [15:04:25]Read from MH i2c: E2 03 00 [15:04:25]MH_I2C_Read... [15:04:25]Read from MH i2c: E2 03 00 AB 41 00 90 00 60 [15:04:25]RAPDU: 90 00 [15:04:25]wFMCommunicate OK [15:04:25]wFMCommunicate request_size=255 [15:04:25]MH_SAM_APDU [15:04: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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 7D DB 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 16 0B 01 00 35 04 06 00 89 [15:04:25]Write to MH i2c: E2 02 01 AC 41 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 7D DB 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 16 0B 01 00 35 04 06 00 89 00 00 6F [15:04:25]Write i2c OK [15:04:25]MH_I2C_Read... [15:04:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:04:25]Read from MH i2c: E2 [15:04:25]MH_I2C_Read... [15:04:25]Read from MH i2c: E2 03 00 [15:04:25]MH_I2C_Read... [15:04:25]Read from MH i2c: E2 03 00 AC 41 00 90 00 61 [15:04:25]RAPDU: 90 00 [15:04:25]wFMCommunicate OK [15:04:25]wFMCommunicate request_size=10 [15:04:25]MH_SAM_APDU [15:04:25]CAPDU: 80 0D 02 02 05 1C 77 7C 92 A1 [15:04:25]Write to MH i2c: E2 0D 00 AD 41 80 0D 02 02 05 00 1C 77 7C 92 A1 00 00 B4 [15:04:25]Write i2c OK [15:04:25]MH_I2C_Read... [15:04:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:04:25]Read from MH i2c: E2 [15:04:25]MH_I2C_Read... [15:04:25]Read from MH i2c: E2 03 00 [15:04:25]MH_I2C_Read... [15:04:25]Read from MH i2c: E2 03 00 AD 41 00 90 00 62 [15:04:25]RAPDU: 90 00 [15:04:25]wFMCommunicate OK [15:04:25]wFMCommunicate request_size=4 [15:04:25]MH_SAM_APDU [15:04:25]CAPDU: 80 0D 03 02 [15:04:25]Write to MH i2c: E2 08 00 AE 41 80 0D 03 02 00 00 00 00 6A [15:04:25]Write i2c OK [15:04:25]MH_I2C_Read... [15:04:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:04:25]Read from MH i2c: E2 [15:04:25]MH_I2C_Read... [15:04:25]Read from MH i2c: E2 0B 00 [15:04:25]MH_I2C_Read... [15:04:25]Read from MH i2c: E2 0B 00 AE 41 00 EE 7A 57 8A 4F 21 87 0F 90 00 BA [15:04:25]RAPDU: EE 7A 57 8A 4F 21 87 0F 90 00 [15:04:25]wFMCommunicate OK [15:04:25]SAM_PROTO_SignData done [15:04:25]FM_MakeSignedData done [15:04:25]CreateOFDProtocolMessage [15:04:25]wFMCommunicate request_size=4 [15:04:25]MH_SAM_APDU [15:04:25]CAPDU: 80 11 00 00 [15:04:25]Write to MH i2c: E2 08 00 AF 41 80 11 00 00 00 00 00 00 6A [15:04:25]Write i2c OK [15:04:25]MH_I2C_Read... [15:04:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:04:25]Read from MH i2c: E2 [15:04:25]MH_I2C_Read... [15:04:25]Read from MH i2c: E2 17 00 [15:04:25]MH_I2C_Read... [15:04:25]Read from MH i2c: E2 17 00 AF 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 B5 [15:04:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:04:25]wFMCommunicate OK [15:04:25]CreateOFDProtocolMessage done [15:04:25]OFDSenderStorePacket 68374 [15:04:25]StoreOFDPacket docnum=68374 [15:04:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 54 93 07 01 59 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 7D DB 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 16 0B 01 00 35 04 06 00 89 1C 77 7C 92 A1 EE 7A 57 8A 4F 21 87 0F [15:04:25]CheckFolder [15:04:25]dirname=/storage/ofd_packets [15:04:25]CheckFolder done [15:04:25]ProducePacketName [15:04:25]name=ofd_packets/00068374 [15:04:25]NVStorageSaveData ofd_packets/00068374 [15:04:25]File name is /storage/ofd_packets/00068374 [15:04:25]Write 301 bytes [15:04:25]NVStorageSaveData done [15:04:25]OFDSenderStorePacket done [15:04:25]KKMCreateOFDPacket done [15:04:25]NVStorageSaveData kkm_last_timestamp [15:04:25]File name is /storage/kkm_last_timestamp [15:04:25]Write 4 bytes [15:04:25]NVStorageSaveData done [15:04:25]ExternCall_PrintAddStr [15:04:25]wPrintStart [15:04:25]Write to MH i2c: 01 00 00 B0 41 F1 [15:04:25]Write i2c OK [15:04:25]MH_I2C_Read... [15:04:25]Read from MH i2c: 01 [15:04:25]MH_I2C_Read... [15:04:25]Read from MH i2c: 01 07 00 [15:04:25]MH_I2C_Read... [15:04:25]Read from MH i2c: 01 07 00 B0 41 00 00 00 00 00 FF 0F 06 [15:04:25]RasterBufferAndPrint [15:04:25]line Счет N : (1)706469 [15:04:25]line ИНН: 02508201610067 [15:04:25]line Контрольно-Кассовый Чек [15:04:25]line ПРОДАЖА [15:04:25]line ТРК (МРК, ГНК) : 53 [15:04:25]line Товар: 2710124130 [15:04:25]line Аи-92-К-4 [15:04:25]line 14.950 * 66.90 [15:04:25]line = 1000.16 [15:04:25]line НДС 12% НСП 1% [15:04:25]line > о реализуемом товаре [15:04:25]line ОКРУГЛЕНИЕ: -0.16 [15:04:25]line ИТОГО: 1000.00 [15:04:25]line Внесено: 1000.00 [15:04:25]line СДАЧА: 0.00 [15:04:25]line НСП 1% : 8.85 [15:04:25]line НДС 12% : 106.21 [15:04:25]line Наличными: 1000.00 [15:04:25]line Безнал.: 0.00 [15:04:25]line Место: АЗС № 62 "Партнер Нефть" [15:04:25]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [15:04:25]line СНО: Общий режим [15:04:25]line Чек 120 03.06.2024 15:04 [15:04:25]line Смена: 324 ФФД: 1.0 [15:04:25]line ЗНМ: 0300000181 [15:04:25]line РНМ: 0000000000098096 [15:04:25]line Версия ККМ: 001 [15:04:25]line ФМ: 0000000000965400 [15:04:25]line ФД: 68374 [15:04:25]line ФПД: 150755356742305 [15:04:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T150429&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68374&fm=150755356742305&tin=02508201610067®Number=0000000000098096&sum=100000 [15:04:25]OFD Sender: Processing packet 68374 [packets to send 26, broken 25] [15:04:25]ProducePacketName [15:04:25]name=ofd_packets/00068374 [15:04:25]OFD Sender: To server: pG, [15:04:25]CommunicateWithHost lk.salyk.kg:30040 [15:04:25]ConnectInit lk.salyk.kg [15:04:25]written 0, free lines is 4095 [15:04:25]Connected sock=7 [15:04:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 54 93 07 01 59 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 7D DB 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 16 0B 01 00 35 04 06 00 89 1C 77 7C 92 A1 EE 7A 57 8A 4F 21 87 0F [15:04:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 46 B7 47 00 07 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 16 0B 01 00 F4 03 04 00 79 82 5D 66 B6 04 01 00 00 0E 81 13 0B E9 4F CA BE [15:04:26]CommunicateWithHost err = 0 [15:04:26]CheckOFDResponse [15:04:26]1017 (14) - 77093643461234 [15:04:26]1041 (16) - 0000000000965400 [15:04:26]1040 (4) - 68374 [15:04:26]1012 (4) - 03.06.2024 08:44 [15:04:26]1206 (1) - 0 [15:04:26]OFD Sender: Remove packet 68374 [15:04:26]ProducePacketName [15:04:26]name=ofd_packets/00068374 [15:04:26]NVStorageDeleteData [15:04:26]Write to MH i2c: 01 00 00 DB 41 1C [15:04:26]Write i2c OK [15:04:26]MH_I2C_Read... [15:04:26]Read from MH i2c: 01 [15:04:26]MH_I2C_Read... [15:04:26]Read from MH i2c: 01 07 00 [15:04:26]MH_I2C_Read... [15:04:26]Read from MH i2c: 01 07 00 DB 41 00 00 00 00 00 CD 0C FC [15:04:26]RasterBufferAndPrint [15:04:26]line [15:04:26]line [15:04:26]line [15:04:26]line [15:04:26]line [15:04:26]written 0, free lines is 3284 [15:04:26]MH_Cut [15:04:26]Write to MH i2c: D1 01 00 E2 41 01 F5 [15:04:26]Write i2c OK [15:04:26]MH_I2C_Read... [15:04:26]Read from MH i2c: D1 [15:04:26]MH_I2C_Read... [15:04:26]Read from MH i2c: D1 01 00 [15:04:26]MH_I2C_Read... [15:04:26]Read from MH i2c: D1 01 00 E2 41 00 F4 [15:04:26]Write to MH i2c: 01 00 00 E3 41 24 [15:04:26]Write i2c OK [15:04:26]MH_I2C_Read... [15:04:26]OFD Sender: No OFD packet to send [15:04:27]*** Cut start [15:04:27]*** Partial cut [15:04:27]*** CUTSNS_PIN = 1 [15:04:27]*** CUTSNS_PIN = 0 [15:04:27]*** Brake cut motor [15:04:27]Read from MH i2c: 01 [15:04:27]MH_I2C_Read... [15:04:27]*** Stop cut motor [15:04:27]*** Cut end [15:04:27]Read from MH i2c: 01 07 00 [15:04:27]MH_I2C_Read... [15:04:27]Read from MH i2c: 01 07 00 E3 41 00 00 00 00 00 FF 0F 39 [15:04:27]process_action close_receipt done [15:04:27]requested_data is exist [15:04:27]produce_requested_data [15:04:27]requested_item fm.sn is exist - process it [15:04:27]wFMCommunicate request_size=4 [15:04:27]MH_SAM_APDU [15:04:27]CAPDU: 80 11 00 00 [15:04:27]Write to MH i2c: E2 08 00 E4 41 80 11 00 00 00 00 00 00 9F [15:04:27]Write i2c OK [15:04:27]MH_I2C_Read... [15:04:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:04:27]Read from MH i2c: E2 [15:04:27]MH_I2C_Read... [15:04:27]Read from MH i2c: E2 17 00 [15:04:27]MH_I2C_Read... [15:04:27]Read from MH i2c: E2 17 00 E4 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 EA [15:04:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:04:27]wFMCommunicate OK [15:04:27]requested_item fd.num is exist - process it [15:04:27]SAM_PROTO_GetFieldsCounters [15:04:27]wFMCommunicate request_size=4 [15:04:27]MH_SAM_APDU [15:04:27]CAPDU: 80 13 00 00 [15:04:27]Write to MH i2c: E2 08 00 E5 41 80 13 00 00 00 00 00 00 A2 [15:04:27]Write i2c OK [15:04:27]MH_I2C_Read... [15:04:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:04:27]Read from MH i2c: E2 [15:04:27]MH_I2C_Read... [15:04:27]Read from MH i2c: E2 62 00 [15:04:27]MH_I2C_Read... [15:04:27]Read from MH i2c: E2 62 00 E5 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 16 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 91 [15:04:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 16 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:04:27]wFMCommunicate OK [15:04:27]SAM_PROTO_GetFieldsCounters done [15:04:27]requested_item shift.num is exist - process it [15:04:27]requested_item shift.opened is exist - process it [15:04:27]req_shift_opened [15:04:27]FM_GetShiftState [15:04:27]SAM_PROTO_GetShiftState [15:04:27]wFMCommunicate request_size=4 [15:04:27]MH_SAM_APDU [15:04:27]CAPDU: 80 13 01 00 [15:04:27]Write to MH i2c: E2 08 00 E6 41 80 13 01 00 00 00 00 00 A4 [15:04:27]Write i2c OK [15:04:27]MH_I2C_Read... [15:04:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:04:27]Read from MH i2c: E2 [15:04:27]MH_I2C_Read... [15:04:27]Read from MH i2c: E2 0E 00 [15:04:27]MH_I2C_Read... [15:04:27]Read from MH i2c: E2 0E 00 E6 41 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 7F [15:04:27]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [15:04:27]wFMCommunicate OK [15:04:27]SAM_PROTO_GetShiftState done [15:04:27]FM_GetShiftState done [15:04:27]req_shift_opened done [15:04:27]requested_item shift.open_date is exist - process it [15:04:27]req_shift_open_date [15:04:27]req_shift_open_date done [15:04:27]produce_requested_data done [15:04:27]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68374,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [15:04:27]process_action_free close_receipt [15:04:27]json_value_free [15:04:27]json_value_free done [15:04:27]process_json_proto returns [15:04:27]Send response to host [15:04:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68374,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [15:04:27]free response buf [15:04:27]execute_script done [15:04:27]execute_script returns [15:04:27]free content buf [15:04:27]Sock 6.Close socket [15:04:27]Sock 6.Thread stoped [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:48]accept exits with 5 [15:07:48]New connection [15:07:48]New thread 3066686820 created [15:07:48]Thread 3066543460 joined [15:07:48]Waiting for new connection... [15:07:48] Sock 5.Parse request [15:07:48]Sock 5.Check first char [15:07:48]Sock 5.First char is OK [15:07:48]request: POST /json_proto HTTP/1.0 [15:07:48]Method: POST [15:07:48]URL: /json_proto [15:07:48]Method is POST - this is cgi request [15:07:48]url: /json_proto [15:07:48]query_string will be loaded in cgi processing [15:07:48]execute_cgi json_proto POST (null) [15:07:48]execute_cgi path=json_proto method=POST [15:07:48]POST find Content-Length [15:07:48]Host: 172.17.36.132:8080 [15:07:48]Content-Length: 1188 [15:07:48]Content-Type: application/json [15:07:48] [15:07:48]POST finish read [15:07:48]Found Content-Length = 1188 [15:07:48]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706470\u000A03.06.2024 14:45\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-4\u000A 30.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 2187.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A43291\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:07:48]execute_script... [15:07:48]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706470\u000A03.06.2024 14:45\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-4\u000A 30.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 2187.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A43291\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:07:48]POST & json_proto [15:07:48]process_json_proto [15:07:48]json parsed OK: [15:07:48]protocol is kg_v1.0 [15:07:48]action value=print_text [15:07:48]process_action print_text [15:07:48]cmd_print_text [15:07:48]ExternCall_PrintAddStr [15:07:48]wPrintStart [15:07:48]Write to MH i2c: 01 00 00 E7 41 28 [15:07:48]Write i2c OK [15:07:48]MH_I2C_Read... [15:07:48]Read from MH i2c: 01 [15:07:48]MH_I2C_Read... [15:07:48]Read from MH i2c: 01 07 00 [15:07:48]MH_I2C_Read... [15:07:48]Read from MH i2c: 01 07 00 E7 41 00 00 00 00 00 FF 0F 3D [15:07:48]RasterBufferAndPrint [15:07:48]line *****ТОВАРНЫЙ ЧЕК***** [15:07:48]line АЗС 62 [15:07:48]line Партнер нефть [15:07:48]line 02508201610067 [15:07:48]line Кассир : Балаев А. [15:07:48]line Счет N : (1)706470 [15:07:48]line 03.06.2024 14:45 [15:07:48]line ПРОДАЖА [15:07:48]line ТРК (МРК, ГНК): 51 [15:07:48]line Вид ГСМ : 2710194210 [15:07:48]line ДТ(л)-К-4 [15:07:48]line 30.000 x 72.90 [15:07:48]line ИТОГ: 2187.00 [15:07:48]line Тип оплаты: Талоны: Топливная Карта [15:07:48]line 43291 [15:07:48]line ______________________ [15:07:48]line (подпись) [15:07:48]written 0, free lines is 4095 [15:07:48]Write to MH i2c: 01 00 00 FB 41 3C [15:07:48]Write i2c OK [15:07:48]MH_I2C_Read... [15:07:48]Read from MH i2c: 01 [15:07:48]MH_I2C_Read... [15:07:48]Read from MH i2c: 01 07 00 [15:07:48]MH_I2C_Read... [15:07:48]Read from MH i2c: 01 07 00 FB 41 00 00 00 00 00 0F 0E 60 [15:07:48]RasterBufferAndPrint [15:07:48]line [15:07:48]line [15:07:48]line [15:07:48]line [15:07:48]line [15:07:48]written 0, free lines is 3600 [15:07:48]MH_Cut [15:07:48]Write to MH i2c: D1 01 00 02 42 01 16 [15:07:48]Write i2c OK [15:07:48]MH_I2C_Read... [15:07:48]Read from MH i2c: D1 [15:07:48]MH_I2C_Read... [15:07:48]Read from MH i2c: D1 01 00 [15:07:48]MH_I2C_Read... [15:07:48]Read from MH i2c: D1 01 00 02 42 00 15 [15:07:48]Write to MH i2c: 01 00 00 03 42 45 [15:07:48]Write i2c OK [15:07:48]MH_I2C_Read... [15:07:49]*** Cut start [15:07:49]*** Partial cut [15:07:49]*** CUTSNS_PIN = 1 [15:07:49]*** CUTSNS_PIN = 0 [15:07:49]*** Brake cut motor [15:07:50]Read from MH i2c: 01 [15:07:50]MH_I2C_Read... [15:07:50]Read from MH i2c: 01 07 00 [15:07:50]MH_I2C_Read... [15:07:50]*** Stop cut motor [15:07:50]*** Cut end [15:07:50]Read from MH i2c: 01 07 00 03 42 00 00 00 00 00 FF 0F 5A [15:07:50]process_action print_text done [15:07:50]requested_data is exist [15:07:50]produce_requested_data [15:07:50]requested_item fm.sn is exist - process it [15:07:50]wFMCommunicate request_size=4 [15:07:50]MH_SAM_APDU [15:07:50]CAPDU: 80 11 00 00 [15:07:50]Write to MH i2c: E2 08 00 04 42 80 11 00 00 00 00 00 00 C0 [15:07:50]Write i2c OK [15:07:50]MH_I2C_Read... [15:07:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:07:50]Read from MH i2c: E2 [15:07:50]MH_I2C_Read... [15:07:50]Read from MH i2c: E2 17 00 [15:07:50]MH_I2C_Read... [15:07:50]Read from MH i2c: E2 17 00 04 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 0B [15:07:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:07:50]wFMCommunicate OK [15:07:50]requested_item fd.num is exist - process it [15:07:50]SAM_PROTO_GetFieldsCounters [15:07:50]wFMCommunicate request_size=4 [15:07:50]MH_SAM_APDU [15:07:50]CAPDU: 80 13 00 00 [15:07:50]Write to MH i2c: E2 08 00 05 42 80 13 00 00 00 00 00 00 C3 [15:07:50]Write i2c OK [15:07:50]MH_I2C_Read... [15:07:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:07:50]Read from MH i2c: E2 [15:07:50]MH_I2C_Read... [15:07:50]Read from MH i2c: E2 62 00 [15:07:50]MH_I2C_Read... [15:07:50]Read from MH i2c: E2 62 00 05 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 16 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 B2 [15:07:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 16 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:07:50]wFMCommunicate OK [15:07:50]SAM_PROTO_GetFieldsCounters done [15:07:50]requested_item shift.num is exist - process it [15:07:50]requested_item shift.opened is exist - process it [15:07:50]req_shift_opened [15:07:50]FM_GetShiftState [15:07:50]SAM_PROTO_GetShiftState [15:07:50]wFMCommunicate request_size=4 [15:07:50]MH_SAM_APDU [15:07:50]CAPDU: 80 13 01 00 [15:07:50]Write to MH i2c: E2 08 00 06 42 80 13 01 00 00 00 00 00 C5 [15:07:50]Write i2c OK [15:07:50]MH_I2C_Read... [15:07:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:07:50]Read from MH i2c: E2 [15:07:50]MH_I2C_Read... [15:07:50]Read from MH i2c: E2 0E 00 [15:07:50]MH_I2C_Read... [15:07:50]Read from MH i2c: E2 0E 00 06 42 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 A0 [15:07:50]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [15:07:50]wFMCommunicate OK [15:07:50]SAM_PROTO_GetShiftState done [15:07:50]FM_GetShiftState done [15:07:50]req_shift_opened done [15:07:50]requested_item shift.open_date is exist - process it [15:07:50]req_shift_open_date [15:07:50]req_shift_open_date done [15:07:50]produce_requested_data done [15:07:50]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68374,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [15:07:50]process_action_free print_text [15:07:50]json_value_free [15:07:50]json_value_free done [15:07:50]process_json_proto returns [15:07:50]Send response to host [15:07:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68374,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [15:07:50]free response buf [15:07:50]execute_script done [15:07:50]execute_script returns [15:07:50]free content buf [15:07:50]Sock 5.Close socket [15:07:50]Sock 5.Thread stoped [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:30]accept exits with 6 [15:09:30]New connection [15:09:30]New thread 3066543460 created [15:09:30]Thread 3066686820 joined [15:09:30]Waiting for new connection... [15:09:30] Sock 6.Parse request [15:09:30]Sock 6.Check first char [15:09:30]Sock 6.First char is OK [15:09:30]request: POST /json_proto HTTP/1.0 [15:09:30]Method: POST [15:09:30]URL: /json_proto [15:09:30]Method is POST - this is cgi request [15:09:30]url: /json_proto [15:09:30]query_string will be loaded in cgi processing [15:09:30]execute_cgi json_proto POST (null) [15:09:30]execute_cgi path=json_proto method=POST [15:09:30]POST find Content-Length [15:09:30]Host: 172.17.36.132:8080 [15:09:30]Content-Length: 675 [15:09:30]Content-Type: application/json [15:09:30] [15:09:30]POST finish read [15:09:30]Found Content-Length = 675 [15:09:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706472", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 22.100, "sum" : 1500.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:30]execute_script... [15:09: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)706472", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 22.100, "sum" : 1500.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:30]POST & json_proto [15:09:30]process_json_proto [15:09:30]json parsed OK: [15:09:30]protocol is kg_v1.0 [15:09:30]action value=close_receipt [15:09:30]process_action close_receipt [15:09:30]cmd_close_receipt [15:09:30]MH_GetDate [15:09:30]Write to MH i2c: F0 00 00 07 42 38 [15:09:30]Write i2c OK [15:09:30]MH_I2C_Read... [15:09:30]Read from MH i2c: F0 [15:09:30]MH_I2C_Read... [15:09:30]Read from MH i2c: F0 09 00 [15:09:30]MH_I2C_Read... [15:09:30]Read from MH i2c: F0 09 00 07 42 00 B0 DC 5D 66 B2 22 B0 64 78 [15:09:30]GetLastDocTimeStamp 1717427069 [15:09:30]current date 1717427376 [15:09:30]FM_GetShiftState [15:09:30]SAM_PROTO_GetShiftState [15:09:30]wFMCommunicate request_size=4 [15:09:30]MH_SAM_APDU [15:09:30]CAPDU: 80 13 01 00 [15:09:30]Write to MH i2c: E2 08 00 08 42 80 13 01 00 00 00 00 00 C7 [15:09:30]Write i2c OK [15:09:30]MH_I2C_Read... [15:09:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:30]Read from MH i2c: E2 [15:09:30]MH_I2C_Read... [15:09:30]Read from MH i2c: E2 0E 00 [15:09:30]MH_I2C_Read... [15:09:30]Read from MH i2c: E2 0E 00 08 42 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 A2 [15:09:30]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [15:09:30]wFMCommunicate OK [15:09:30]SAM_PROTO_GetShiftState done [15:09:30]FM_GetShiftState done [15:09:30]opened in 1717378033 [15:09:30]opened+sec_in_day 1717464433 [15:09:30]quantity*price = 150059 [15:09:30]sum+1 = 150060 [15:09:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 121 03.06.2024 15:09 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68375 ФПД: 39938561690871 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T150936&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68375&fm=39938561690871&tin=02508201610067®Number=0000000000098096&sum=150000 [15:09:31]StoreToDocumentArchive [15:09:31]shift 324 fd 68375 [15:09:31]save to /storage/0324/doc_00068375 [15:09:31]save last doc name /storage/0324/doc_00068375 to /storage/kkm_last_doc_name [15:09:31]save OK [15:09:31]Clear old archive folders... [15:09:31]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:09:31]tlvbuf is 001FCDE0 [15:09:31]SAM_PROTO_ClearQueue [15:09:31]wFMCommunicate request_size=4 [15:09:31]MH_SAM_APDU [15:09:31]CAPDU: 80 09 00 00 [15:09:31]Write to MH i2c: E2 08 00 15 42 80 09 00 00 00 00 00 00 C9 [15:09:31]Write i2c OK [15:09:31]MH_I2C_Read... [15:09:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:09:31]Read from MH i2c: E2 [15:09:31]MH_I2C_Read... [15:09:31]Read from MH i2c: E2 03 00 [15:09:31]MH_I2C_Read... [15:09:31]Read from MH i2c: E2 03 00 15 42 00 90 00 CB [15:09:31]RAPDU: 90 00 [15:09:31]wFMCommunicate OK [15:09:31]SAM_PROTO_ClearQueue done [15:09:31]KKMCreateOFDPacket [15:09:31]OFDProtocolAddRootSTLVToBuf [15:09:31]FM_MakeSignedData [15:09:31]FM_MakeSignedData [15:09:31]SAM_PROTO_SignData [15:09:31]wFMCommunicate request_size=4 [15:09:31]MH_SAM_APDU [15:09:31]CAPDU: 80 0D 01 02 [15:09:31]Write to MH i2c: E2 08 00 16 42 80 0D 01 02 00 00 00 00 D1 [15:09:31]Write i2c OK [15:09:31]MH_I2C_Read... [15:09:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:09:31]Read from MH i2c: E2 [15:09:31]MH_I2C_Read... [15:09:31]Read from MH i2c: E2 03 00 [15:09:31]MH_I2C_Read... [15:09:31]Read from MH i2c: E2 03 00 16 42 00 90 00 CC [15:09:31]RAPDU: 90 00 [15:09:31]wFMCommunicate OK [15:09:31]wFMCommunicate request_size=255 [15:09:31]MH_SAM_APDU [15:09:31]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 54 56 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 2B 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 B0 DC 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 17 0B 01 00 35 04 06 00 [15:09:31]Write to MH i2c: E2 02 01 17 42 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 54 56 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 2B 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 B0 DC 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 17 0B 01 00 35 04 06 00 00 00 1D [15:09:31]Write i2c OK [15:09:31]MH_I2C_Read... [15:09:31]OFD Sender: No OFD packet to send [15:09:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:31]Read from MH i2c: E2 [15:09:31]MH_I2C_Read... [15:09:31]Read from MH i2c: E2 03 00 [15:09:31]MH_I2C_Read... [15:09:31]Read from MH i2c: E2 03 00 17 42 00 90 00 CD [15:09:31]RAPDU: 90 00 [15:09:31]wFMCommunicate OK [15:09:31]wFMCommunicate request_size=11 [15:09:31]MH_SAM_APDU [15:09:31]CAPDU: 80 0D 02 02 06 24 52 EB C8 4C F7 [15:09:31]Write to MH i2c: E2 0E 00 18 42 80 0D 02 02 06 00 24 52 EB C8 4C F7 00 00 4C [15:09:31]Write i2c OK [15:09:31]MH_I2C_Read... [15:09:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:31]Read from MH i2c: E2 [15:09:31]MH_I2C_Read... [15:09:31]Read from MH i2c: E2 03 00 [15:09:31]MH_I2C_Read... [15:09:31]Read from MH i2c: E2 03 00 18 42 00 90 00 CE [15:09:31]RAPDU: 90 00 [15:09:31]wFMCommunicate OK [15:09:31]wFMCommunicate request_size=4 [15:09:31]MH_SAM_APDU [15:09:31]CAPDU: 80 0D 03 02 [15:09:31]Write to MH i2c: E2 08 00 19 42 80 0D 03 02 00 00 00 00 D6 [15:09:31]Write i2c OK [15:09:31]MH_I2C_Read... [15:09:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:09:31]Read from MH i2c: E2 [15:09:31]MH_I2C_Read... [15:09:31]Read from MH i2c: E2 0B 00 [15:09:31]MH_I2C_Read... [15:09:31]Read from MH i2c: E2 0B 00 19 42 00 6E C8 A3 68 B8 27 C4 A0 90 00 5B [15:09:31]RAPDU: 6E C8 A3 68 B8 27 C4 A0 90 00 [15:09:31]wFMCommunicate OK [15:09:31]SAM_PROTO_SignData done [15:09:31]FM_MakeSignedData done [15:09:31]CreateOFDProtocolMessage [15:09:31]wFMCommunicate request_size=4 [15:09:31]MH_SAM_APDU [15:09:31]CAPDU: 80 11 00 00 [15:09:31]Write to MH i2c: E2 08 00 1A 42 80 11 00 00 00 00 00 00 D6 [15:09:31]Write i2c OK [15:09:31]MH_I2C_Read... [15:09:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:32]Read from MH i2c: E2 [15:09:32]MH_I2C_Read... [15:09:32]Read from MH i2c: E2 17 00 [15:09:32]MH_I2C_Read... [15:09:32]Read from MH i2c: E2 17 00 1A 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 21 [15:09:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:09:32]wFMCommunicate OK [15:09:32]CreateOFDProtocolMessage done [15:09:32]OFDSenderStorePacket 68375 [15:09:32]StoreOFDPacket docnum=68375 [15:09:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 AD 79 08 01 5D 8D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 54 56 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 2B 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 B0 DC 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 17 0B 01 00 35 04 06 00 24 52 EB C8 4C F7 6E C8 A3 68 B8 27 C4 A0 [15:09:32]CheckFolder [15:09:32]dirname=/storage/ofd_packets [15:09:32]CheckFolder done [15:09:32]ProducePacketName [15:09:32]name=ofd_packets/00068375 [15:09:32]NVStorageSaveData ofd_packets/00068375 [15:09:32]File name is /storage/ofd_packets/00068375 [15:09:32]Write 302 bytes [15:09:32]NVStorageSaveData done [15:09:32]OFDSenderStorePacket done [15:09:32]KKMCreateOFDPacket done [15:09:32]NVStorageSaveData kkm_last_timestamp [15:09:32]File name is /storage/kkm_last_timestamp [15:09:32]Write 4 bytes [15:09:32]NVStorageSaveData done [15:09:32]ExternCall_PrintAddStr [15:09:32]wPrintStart [15:09:32]Write to MH i2c: 01 00 00 1B 42 5D [15:09:32]Write i2c OK [15:09:32]MH_I2C_Read... [15:09:32]Read from MH i2c: 01 [15:09:32]MH_I2C_Read... [15:09:32]Read from MH i2c: 01 07 00 [15:09:32]MH_I2C_Read... [15:09:32]Read from MH i2c: 01 07 00 1B 42 00 00 00 00 00 FF 0F 72 [15:09:32]RasterBufferAndPrint [15:09:32]line Счет N : (1)706472 [15:09:32]line ИНН: 02508201610067 [15:09:32]line Контрольно-Кассовый Чек [15:09:32]line ПРОДАЖА [15:09:32]line ТРК (МРК, ГНК) : 31 [15:09:32]line Товар: 2710124130 [15:09:32]line Super-92-К-5 [15:09:32]line 22.100 * 67.90 [15:09:32]line = 1500.59 [15:09:32]line НДС 12% НСП 1% [15:09:32]line > о реализуемом товаре [15:09:32]line ОКРУГЛЕНИЕ: -0.59 [15:09:32]line ИТОГО: 1500.00 [15:09:32]line Внесено: 1500.00 [15:09:32]line СДАЧА: 0.00 [15:09:32]line НСП 1% : 13.28 [15:09:32]line НДС 12% : 159.35 [15:09:32]line Наличными: 1500.00 [15:09:32]line Безнал.: 0.00 [15:09:32]line Место: АЗС № 62 "Партнер Нефть" [15:09:32]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [15:09:32]line СНО: Общий режим [15:09:32]line Чек 121 03.06.2024 15:09 [15:09:32]line Смена: 324 ФФД: 1.0 [15:09:32]line ЗНМ: 0300000181 [15:09:32]line РНМ: 0000000000098096 [15:09:32]line Версия ККМ: 001 [15:09:32]line ФМ: 0000000000965400 [15:09:32]line ФД: 68375 [15:09:32]line ФПД: 39938561690871 [15:09:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T150936&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68375&fm=39938561690871&tin=02508201610067®Number=0000000000098096&sum=150000 [15:09:32]OFD Sender: Processing packet 68375 [packets to send 26, broken 25] [15:09:32]ProducePacketName [15:09:32]name=ofd_packets/00068375 [15:09:32]OFD Sender: To server: pG, [15:09:32]CommunicateWithHost lk.salyk.kg:30040 [15:09:32]ConnectInit lk.salyk.kg [15:09:32]written 0, free lines is 4095 [15:09:32]Connected sock=7 [15:09:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 AD 79 08 01 5D 8D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 54 56 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 2B 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 B0 DC 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 17 0B 01 00 35 04 06 00 24 52 EB C8 4C F7 6E C8 A3 68 B8 27 C4 A0 [15:09:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 EE 4A 47 00 2E 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 17 0B 01 00 F4 03 04 00 AB 83 5D 66 B6 04 01 00 00 D3 03 F1 01 8B 91 C8 C9 [15:09:32]CommunicateWithHost err = 0 [15:09:32]CheckOFDResponse [15:09:32]1017 (14) - 77093643461234 [15:09:32]1041 (16) - 0000000000965400 [15:09:32]1040 (4) - 68375 [15:09:32]1012 (4) - 03.06.2024 08:49 [15:09:32]1206 (1) - 0 [15:09:32]OFD Sender: Remove packet 68375 [15:09:32]ProducePacketName [15:09:32]name=ofd_packets/00068375 [15:09:32]NVStorageDeleteData [15:09:32]Write to MH i2c: 01 00 00 46 42 88 [15:09:32]Write i2c OK [15:09:32]MH_I2C_Read... [15:09:32]Read from MH i2c: 01 [15:09:32]MH_I2C_Read... [15:09:32]Read from MH i2c: 01 07 00 [15:09:32]MH_I2C_Read... [15:09:32]Read from MH i2c: 01 07 00 46 42 00 00 00 00 00 DD 0C 78 [15:09:32]RasterBufferAndPrint [15:09:32]line [15:09:32]line [15:09:32]line [15:09:32]line [15:09:32]line [15:09:32]written 0, free lines is 3299 [15:09:32]MH_Cut [15:09:32]Write to MH i2c: D1 01 00 4D 42 01 61 [15:09:32]Write i2c OK [15:09:32]MH_I2C_Read... [15:09:32]Read from MH i2c: D1 [15:09:32]MH_I2C_Read... [15:09:32]Read from MH i2c: D1 01 00 [15:09:32]MH_I2C_Read... [15:09:32]Read from MH i2c: D1 01 00 4D 42 00 60 [15:09:32]Write to MH i2c: 01 00 00 4E 42 90 [15:09:32]Write i2c OK [15:09:32]MH_I2C_Read... [15:09:33]OFD Sender: No OFD packet to send [15:09:33]*** Cut start [15:09:33]*** Partial cut [15:09:33]*** CUTSNS_PIN = 1 [15:09:33]*** CUTSNS_PIN = 0 [15:09:33]*** Brake cut motor [15:09:34]Read from MH i2c: 01 [15:09:34]MH_I2C_Read... [15:09:34]*** Stop cut motor [15:09:34]*** Cut end [15:09:34]Read from MH i2c: 01 07 00 [15:09:34]MH_I2C_Read... [15:09:34]Read from MH i2c: 01 07 00 4E 42 00 00 00 00 00 FF 0F A5 [15:09:34]process_action close_receipt done [15:09:34]requested_data is exist [15:09:34]produce_requested_data [15:09:34]requested_item fm.sn is exist - process it [15:09:34]wFMCommunicate request_size=4 [15:09:34]MH_SAM_APDU [15:09:34]CAPDU: 80 11 00 00 [15:09:34]Write to MH i2c: E2 08 00 4F 42 80 11 00 00 00 00 00 00 0B [15:09:34]Write i2c OK [15:09:34]MH_I2C_Read... [15:09:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:34]Read from MH i2c: E2 [15:09:34]MH_I2C_Read... [15:09:34]Read from MH i2c: E2 17 00 [15:09:34]MH_I2C_Read... [15:09:34]Read from MH i2c: E2 17 00 4F 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 56 [15:09:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:09:34]wFMCommunicate OK [15:09:34]requested_item fd.num is exist - process it [15:09:34]SAM_PROTO_GetFieldsCounters [15:09:34]wFMCommunicate request_size=4 [15:09:34]MH_SAM_APDU [15:09:34]CAPDU: 80 13 00 00 [15:09:34]Write to MH i2c: E2 08 00 50 42 80 13 00 00 00 00 00 00 0E [15:09:34]Write i2c OK [15:09:34]MH_I2C_Read... [15:09:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:09:34]Read from MH i2c: E2 [15:09:34]MH_I2C_Read... [15:09:34]Read from MH i2c: E2 62 00 [15:09:34]MH_I2C_Read... [15:09:34]Read from MH i2c: E2 62 00 50 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 17 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 01 [15:09:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 17 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:09:34]wFMCommunicate OK [15:09:34]SAM_PROTO_GetFieldsCounters done [15:09:34]requested_item shift.num is exist - process it [15:09:34]requested_item shift.opened is exist - process it [15:09:34]req_shift_opened [15:09:34]FM_GetShiftState [15:09:34]SAM_PROTO_GetShiftState [15:09:34]wFMCommunicate request_size=4 [15:09:34]MH_SAM_APDU [15:09:34]CAPDU: 80 13 01 00 [15:09:34]Write to MH i2c: E2 08 00 51 42 80 13 01 00 00 00 00 00 10 [15:09:34]Write i2c OK [15:09:34]MH_I2C_Read... [15:09:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:34]Read from MH i2c: E2 [15:09:34]MH_I2C_Read... [15:09:34]Read from MH i2c: E2 0E 00 [15:09:34]MH_I2C_Read... [15:09:34]Read from MH i2c: E2 0E 00 51 42 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 EB [15:09:34]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [15:09:34]wFMCommunicate OK [15:09:34]SAM_PROTO_GetShiftState done [15:09:34]FM_GetShiftState done [15:09:34]req_shift_opened done [15:09:34]requested_item shift.open_date is exist - process it [15:09:34]req_shift_open_date [15:09:34]req_shift_open_date done [15:09:34]produce_requested_data done [15:09:34]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68375,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [15:09:34]process_action_free close_receipt [15:09:34]json_value_free [15:09:34]json_value_free done [15:09:34]process_json_proto returns [15:09:34]Send response to host [15:09:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68375,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [15:09:34]free response buf [15:09:34]execute_script done [15:09:34]execute_script returns [15:09:34]free content buf [15:09:34]Sock 6.Close socket [15:09:34]Sock 6.Thread stoped [15:09:38]OFD Sender: No OFD packet to send [15:09:41]accept exits with 5 [15:09:41]New connection [15:09:41]New thread 3066686820 created [15:09:41]Thread 3066543460 joined [15:09:41]Waiting for new connection... [15:09:41] Sock 5.Parse request [15:09:41]Sock 5.Check first char [15:09:41]Sock 5.First char is OK [15:09:41]request: POST /json_proto HTTP/1.0 [15:09:41]Method: POST [15:09:41]URL: /json_proto [15:09:41]Method is POST - this is cgi request [15:09:41]url: /json_proto [15:09:41]query_string will be loaded in cgi processing [15:09:41]execute_cgi json_proto POST (null) [15:09:41]execute_cgi path=json_proto method=POST [15:09:41]POST find Content-Length [15:09:41]Host: 172.17.36.132:8080 [15:09:41]Content-Length: 1150 [15:09:41]Content-Type: application/json [15:09:41] [15:09:41]POST finish read [15:09:41]Found Content-Length = 1150 [15:09:41]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706471\u000A03.06.2024 14:46\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-4\u000A 30.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 2187.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30149316\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:41]execute_script... [15:09:41]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706471\u000A03.06.2024 14:46\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-4\u000A 30.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 2187.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30149316\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:41]POST & json_proto [15:09:41]process_json_proto [15:09:41]json parsed OK: [15:09:41]protocol is kg_v1.0 [15:09:41]action value=print_text [15:09:41]process_action print_text [15:09:41]cmd_print_text [15:09:41]ExternCall_PrintAddStr [15:09:41]wPrintStart [15:09:41]Write to MH i2c: 01 00 00 52 42 94 [15:09:41]Write i2c OK [15:09:41]MH_I2C_Read... [15:09:41]Read from MH i2c: 01 [15:09:41]MH_I2C_Read... [15:09:41]Read from MH i2c: 01 07 00 [15:09:41]MH_I2C_Read... [15:09:41]Read from MH i2c: 01 07 00 52 42 00 00 00 00 00 FF 0F A9 [15:09:41]RasterBufferAndPrint [15:09:41]line *****ТОВАРНЫЙ ЧЕК***** [15:09:41]line АЗС 62 [15:09:41]line Партнер нефть [15:09:41]line 02508201610067 [15:09:41]line Кассир : Балаев А. [15:09:41]line Счет N : (1)706471 [15:09:41]line 03.06.2024 14:46 [15:09:41]line ПРОДАЖА [15:09:41]line ТРК (МРК, ГНК): 21 [15:09:41]line Вид ГСМ : 2710194210 [15:09:41]line ДТ(л)-К-4 [15:09:41]line 30.000 x 72.90 [15:09:41]line ИТОГ: 2187.00 [15:09:41]line Тип оплаты: Талоны: ТК ГПНА Online [15:09:41]line 30149316 [15:09:41]line ______________________ [15:09:41]line (подпись) [15:09:41]written 0, free lines is 4095 [15:09:41]Write to MH i2c: 01 00 00 66 42 A8 [15:09:41]Write i2c OK [15:09:41]MH_I2C_Read... [15:09:41]Read from MH i2c: 01 [15:09:41]MH_I2C_Read... [15:09:41]Read from MH i2c: 01 07 00 [15:09:41]MH_I2C_Read... [15:09:41]Read from MH i2c: 01 07 00 66 42 00 00 00 00 00 0E 0E CB [15:09:41]RasterBufferAndPrint [15:09:41]line [15:09:41]line [15:09:41]line [15:09:41]line [15:09:41]line [15:09:41]written 0, free lines is 3600 [15:09:41]MH_Cut [15:09:41]Write to MH i2c: D1 01 00 6D 42 01 81 [15:09:41]Write i2c OK [15:09:41]MH_I2C_Read... [15:09:41]Read from MH i2c: D1 [15:09:41]MH_I2C_Read... [15:09:41]Read from MH i2c: D1 01 00 [15:09:41]MH_I2C_Read... [15:09:41]Read from MH i2c: D1 01 00 6D 42 00 80 [15:09:41]Write to MH i2c: 01 00 00 6E 42 B0 [15:09:41]Write i2c OK [15:09:41]MH_I2C_Read... [15:09:42]*** Cut start [15:09:42]*** Partial cut [15:09:42]*** CUTSNS_PIN = 1 [15:09:42]*** CUTSNS_PIN = 0 [15:09:42]*** Brake cut motor [15:09:43]Read from MH i2c: 01 [15:09:43]MH_I2C_Read... [15:09:43]*** Stop cut motor [15:09:43]*** Cut end [15:09:43]Read from MH i2c: 01 07 00 [15:09:43]MH_I2C_Read... [15:09:43]Read from MH i2c: 01 07 00 6E 42 00 00 00 00 00 FF 0F C5 [15:09:43]process_action print_text done [15:09:43]requested_data is exist [15:09:43]produce_requested_data [15:09:43]requested_item fm.sn is exist - process it [15:09:43]wFMCommunicate request_size=4 [15:09:43]MH_SAM_APDU [15:09:43]CAPDU: 80 11 00 00 [15:09:43]Write to MH i2c: E2 08 00 6F 42 80 11 00 00 00 00 00 00 2B [15:09:43]Write i2c OK [15:09:43]MH_I2C_Read... [15:09:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:43]Read from MH i2c: E2 [15:09:43]MH_I2C_Read... [15:09:43]Read from MH i2c: E2 17 00 [15:09:43]MH_I2C_Read... [15:09:43]Read from MH i2c: E2 17 00 6F 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 76 [15:09:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:09:43]wFMCommunicate OK [15:09:43]requested_item fd.num is exist - process it [15:09:43]SAM_PROTO_GetFieldsCounters [15:09:43]wFMCommunicate request_size=4 [15:09:43]MH_SAM_APDU [15:09:43]CAPDU: 80 13 00 00 [15:09:43]Write to MH i2c: E2 08 00 70 42 80 13 00 00 00 00 00 00 2E [15:09:43]Write i2c OK [15:09:43]MH_I2C_Read... [15:09:43]OFD Sender: No OFD packet to send [15:09:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:09:43]Read from MH i2c: E2 [15:09:43]MH_I2C_Read... [15:09:43]Read from MH i2c: E2 62 00 [15:09:43]MH_I2C_Read... [15:09:43]Read from MH i2c: E2 62 00 70 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 17 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 21 [15:09:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 17 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:09:43]wFMCommunicate OK [15:09:43]SAM_PROTO_GetFieldsCounters done [15:09:43]requested_item shift.num is exist - process it [15:09:43]requested_item shift.opened is exist - process it [15:09:43]req_shift_opened [15:09:43]FM_GetShiftState [15:09:43]SAM_PROTO_GetShiftState [15:09:43]wFMCommunicate request_size=4 [15:09:43]MH_SAM_APDU [15:09:43]CAPDU: 80 13 01 00 [15:09:43]Write to MH i2c: E2 08 00 71 42 80 13 01 00 00 00 00 00 30 [15:09:43]Write i2c OK [15:09:43]MH_I2C_Read... [15:09:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:43]Read from MH i2c: E2 [15:09:43]MH_I2C_Read... [15:09:43]Read from MH i2c: E2 0E 00 [15:09:43]MH_I2C_Read... [15:09:43]Read from MH i2c: E2 0E 00 71 42 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 0B [15:09:43]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [15:09:43]wFMCommunicate OK [15:09:43]SAM_PROTO_GetShiftState done [15:09:43]FM_GetShiftState done [15:09:43]req_shift_opened done [15:09:43]requested_item shift.open_date is exist - process it [15:09:43]req_shift_open_date [15:09:43]req_shift_open_date done [15:09:43]produce_requested_data done [15:09:43]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68375,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [15:09:43]process_action_free print_text [15:09:43]json_value_free [15:09:43]json_value_free done [15:09:43]process_json_proto returns [15:09:43]Send response to host [15:09:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68375,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [15:09:43]free response buf [15:09:43]execute_script done [15:09:43]execute_script returns [15:09:43]free content buf [15:09:43]Sock 5.Close socket [15:09:43]Sock 5.Thread stoped [15:09:48]OFD Sender: No OFD packet to send [15:09:53]OFD Sender: No OFD packet to send [15:09:58]OFD Sender: No OFD packet to send [15:10:01]accept exits with 6 [15:10:01]New connection [15:10:01]New thread 3066543460 created [15:10:01]Thread 3066686820 joined [15:10:01]Waiting for new connection... [15:10:01] Sock 6.Parse request [15:10:01]Sock 6.Check first char [15:10:01]Sock 6.First char is OK [15:10:01]request: POST /json_proto HTTP/1.0 [15:10:01]Method: POST [15:10:01]URL: /json_proto [15:10:01]Method is POST - this is cgi request [15:10:01]url: /json_proto [15:10:01]query_string will be loaded in cgi processing [15:10:01]execute_cgi json_proto POST (null) [15:10:01]execute_cgi path=json_proto method=POST [15:10:01]POST find Content-Length [15:10:01]Host: 172.17.36.132:8080 [15:10:01]Content-Length: 678 [15:10:01]Content-Type: application/json [15:10:01] [15:10:01]POST finish read [15:10:01]Found Content-Length = 678 [15:10:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706473", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:10:01]execute_script... [15:10: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)706473", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:10:01]POST & json_proto [15:10:01]process_json_proto [15:10:01]json parsed OK: [15:10:01]protocol is kg_v1.0 [15:10:01]action value=close_receipt [15:10:01]process_action close_receipt [15:10:01]cmd_close_receipt [15:10:01]MH_GetDate [15:10:01]Write to MH i2c: F0 00 00 72 42 A3 [15:10:01]Write i2c OK [15:10:01]MH_I2C_Read... [15:10:01]Read from MH i2c: F0 [15:10:01]MH_I2C_Read... [15:10:01]Read from MH i2c: F0 09 00 [15:10:01]MH_I2C_Read... [15:10:01]Read from MH i2c: F0 09 00 72 42 00 CE DC 5D 66 B2 22 B0 64 01 [15:10:01]GetLastDocTimeStamp 1717427376 [15:10:01]current date 1717427406 [15:10:01]FM_GetShiftState [15:10:01]SAM_PROTO_GetShiftState [15:10:01]wFMCommunicate request_size=4 [15:10:01]MH_SAM_APDU [15:10:01]CAPDU: 80 13 01 00 [15:10:01]Write to MH i2c: E2 08 00 73 42 80 13 01 00 00 00 00 00 32 [15:10:01]Write i2c OK [15:10:01]MH_I2C_Read... [15:10:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:10:01]Read from MH i2c: E2 [15:10:01]MH_I2C_Read... [15:10:01]Read from MH i2c: E2 0E 00 [15:10:01]MH_I2C_Read... [15:10:01]Read from MH i2c: E2 0E 00 73 42 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 0D [15:10:01]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [15:10:01]wFMCommunicate OK [15:10:01]SAM_PROTO_GetShiftState done [15:10:01]FM_GetShiftState done [15:10:01]opened in 1717378033 [15:10:01]opened+sec_in_day 1717464433 [15:10:01]quantity*price = 70044 [15:10:01]sum+1 = 70045 [15:10:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 122 03.06.2024 15:10 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68376 ФПД: 29681049464640 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T151007&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68376&fm=29681049464640&tin=02508201610067®Number=0000000000098096&sum=70000 [15:10:02]StoreToDocumentArchive [15:10:02]shift 324 fd 68376 [15:10:02]save to /storage/0324/doc_00068376 [15:10:02]save last doc name /storage/0324/doc_00068376 to /storage/kkm_last_doc_name [15:10:02]save OK [15:10:02]Clear old archive folders... [15:10:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:10:02]tlvbuf is 005BBD10 [15:10:02]SAM_PROTO_ClearQueue [15:10:02]wFMCommunicate request_size=4 [15:10:02]MH_SAM_APDU [15:10:02]CAPDU: 80 09 00 00 [15:10:02]Write to MH i2c: E2 08 00 80 42 80 09 00 00 00 00 00 00 34 [15:10:02]Write i2c OK [15:10:02]MH_I2C_Read... [15:10:02]Read from MH i2c: E2 [15:10:02]MH_I2C_Read... [15:10:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:10:02]Read from MH i2c: E2 03 00 [15:10:02]MH_I2C_Read... [15:10:02]Read from MH i2c: E2 03 00 80 42 00 90 00 36 [15:10:02]RAPDU: 90 00 [15:10:02]wFMCommunicate OK [15:10:02]SAM_PROTO_ClearQueue done [15:10:02]KKMCreateOFDPacket [15:10:02]OFDProtocolAddRootSTLVToBuf [15:10:02]FM_MakeSignedData [15:10:02]FM_MakeSignedData [15:10:02]SAM_PROTO_SignData [15:10:02]wFMCommunicate request_size=4 [15:10:02]MH_SAM_APDU [15:10:02]CAPDU: 80 0D 01 02 [15:10:02]Write to MH i2c: E2 08 00 81 42 80 0D 01 02 00 00 00 00 3C [15:10:02]Write i2c OK [15:10:02]MH_I2C_Read... [15:10:02]Read from MH i2c: E2 [15:10:02]MH_I2C_Read... [15:10:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:10:02]Read from MH i2c: E2 03 00 [15:10:02]MH_I2C_Read... [15:10:02]Read from MH i2c: E2 03 00 81 42 00 90 00 37 [15:10:02]RAPDU: 90 00 [15:10:02]wFMCommunicate OK [15:10:02]wFMCommunicate request_size=255 [15:10:02]MH_SAM_APDU [15:10:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 CF DC 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 18 0B 01 00 35 04 06 00 1A [15:10:02]Write to MH i2c: E2 02 01 82 42 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 CF DC 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 18 0B 01 00 35 04 06 00 1A 00 00 44 [15:10:02]Write i2c OK [15:10:02]MH_I2C_Read... [15:10:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:10:02]Read from MH i2c: E2 [15:10:02]MH_I2C_Read... [15:10:02]Read from MH i2c: E2 03 00 [15:10:02]MH_I2C_Read... [15:10:02]Read from MH i2c: E2 03 00 82 42 00 90 00 38 [15:10:02]RAPDU: 90 00 [15:10:02]wFMCommunicate OK [15:10:02]wFMCommunicate request_size=10 [15:10:02]MH_SAM_APDU [15:10:02]CAPDU: 80 0D 02 02 05 FE A8 68 EF 40 [15:10:02]Write to MH i2c: E2 0D 00 83 42 80 0D 02 02 05 00 FE A8 68 EF 40 00 00 86 [15:10:02]Write i2c OK [15:10:02]MH_I2C_Read... [15:10:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:10:02]Read from MH i2c: E2 [15:10:02]MH_I2C_Read... [15:10:02]Read from MH i2c: E2 03 00 [15:10:02]MH_I2C_Read... [15:10:02]Read from MH i2c: E2 03 00 83 42 00 90 00 39 [15:10:02]RAPDU: 90 00 [15:10:02]wFMCommunicate OK [15:10:02]wFMCommunicate request_size=4 [15:10:02]MH_SAM_APDU [15:10:02]CAPDU: 80 0D 03 02 [15:10:02]Write to MH i2c: E2 08 00 84 42 80 0D 03 02 00 00 00 00 41 [15:10:02]Write i2c OK [15:10:02]MH_I2C_Read... [15:10:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:10:02]Read from MH i2c: E2 [15:10:02]MH_I2C_Read... [15:10:02]Read from MH i2c: E2 0B 00 [15:10:02]MH_I2C_Read... [15:10:02]Read from MH i2c: E2 0B 00 84 42 00 F6 9A 33 D3 5F 12 64 A6 90 00 53 [15:10:02]RAPDU: F6 9A 33 D3 5F 12 64 A6 90 00 [15:10:02]wFMCommunicate OK [15:10:02]SAM_PROTO_SignData done [15:10:02]FM_MakeSignedData done [15:10:02]CreateOFDProtocolMessage [15:10:02]wFMCommunicate request_size=4 [15:10:02]MH_SAM_APDU [15:10:02]CAPDU: 80 11 00 00 [15:10:02]Write to MH i2c: E2 08 00 85 42 80 11 00 00 00 00 00 00 41 [15:10:02]Write i2c OK [15:10:02]MH_I2C_Read... [15:10:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:10:02]Read from MH i2c: E2 [15:10:02]MH_I2C_Read... [15:10:02]Read from MH i2c: E2 17 00 [15:10:02]MH_I2C_Read... [15:10:02]Read from MH i2c: E2 17 00 85 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 8C [15:10:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:10:02]wFMCommunicate OK [15:10:02]CreateOFDProtocolMessage done [15:10:02]OFDSenderStorePacket 68376 [15:10:02]StoreOFDPacket docnum=68376 [15:10:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 BF 88 07 01 72 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 CF DC 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 18 0B 01 00 35 04 06 00 1A FE A8 68 EF 40 F6 9A 33 D3 5F 12 64 A6 [15:10:02]CheckFolder [15:10:02]dirname=/storage/ofd_packets [15:10:02]CheckFolder done [15:10:02]ProducePacketName [15:10:02]name=ofd_packets/00068376 [15:10:02]NVStorageSaveData ofd_packets/00068376 [15:10:02]File name is /storage/ofd_packets/00068376 [15:10:02]Write 301 bytes [15:10:02]NVStorageSaveData done [15:10:02]OFDSenderStorePacket done [15:10:02]KKMCreateOFDPacket done [15:10:02]NVStorageSaveData kkm_last_timestamp [15:10:02]File name is /storage/kkm_last_timestamp [15:10:02]Write 4 bytes [15:10:02]NVStorageSaveData done [15:10:02]OFD Sender: Processing packet 68376 [packets to send 26, broken 25] [15:10:02]ProducePacketName [15:10:02]name=ofd_packets/00068376 [15:10:02]OFD Sender: To server: pG, [15:10:02]CommunicateWithHost lk.salyk.kg:30040 [15:10:02]ConnectInit lk.salyk.kg [15:10:02]ExternCall_PrintAddStr [15:10:02]wPrintStart [15:10:02]Write to MH i2c: 01 00 00 86 42 C8 [15:10:02]Write i2c OK [15:10:02]MH_I2C_Read... [15:10:02]Read from MH i2c: 01 [15:10:02]MH_I2C_Read... [15:10:02]Read from MH i2c: 01 07 00 [15:10:02]MH_I2C_Read... [15:10:02]Read from MH i2c: 01 07 00 86 42 00 00 00 00 00 FF 0F DD [15:10:02]RasterBufferAndPrint [15:10:02]line Счет N : (1)706473 [15:10:02]line ИНН: 02508201610067 [15:10:02]line Контрольно-Кассовый Чек [15:10:02]line ПРОДАЖА [15:10:02]line ТРК (МРК, ГНК) : 42 [15:10:02]line Товар: 2710124130 [15:10:02]line Аи-92-К-4 [15:10:02]line 10.470 * 66.90 [15:10:02]line = 700.44 [15:10:02]line НДС 12% НСП 1% [15:10:02]line > о реализуемом товаре [15:10:02]line ОКРУГЛЕНИЕ: -0.44 [15:10:02]line ИТОГО: 700.00 [15:10:02]line Внесено: 700.00 [15:10:02]line СДАЧА: 0.00 [15:10:02]line НСП 1% : 6.20 [15:10:02]line НДС 12% : 74.38 [15:10:02]line Наличными: 700.00 [15:10:02]line Безнал.: 0.00 [15:10:02]line Место: АЗС № 62 "Партнер Нефть" [15:10:02]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [15:10:02]line СНО: Общий режим [15:10:02]line Чек 122 03.06.2024 15:10 [15:10:02]line Смена: 324 ФФД: 1.0 [15:10:02]line ЗНМ: 0300000181 [15:10:02]line РНМ: 0000000000098096 [15:10:02]line Версия ККМ: 001 [15:10:02]line ФМ: 0000000000965400 [15:10:02]line ФД: 68376 [15:10:02]line ФПД: 29681049464640 [15:10:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T151007&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68376&fm=29681049464640&tin=02508201610067®Number=0000000000098096&sum=70000 [15:10:03]Connected sock=9 [15:10:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 BF 88 07 01 72 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 CF DC 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 18 0B 01 00 35 04 06 00 1A FE A8 68 EF 40 F6 9A 33 D3 5F 12 64 A6 [15:10:03]written 0, free lines is 4095 [15:10:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 23 11 47 00 D6 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 18 0B 01 00 F4 03 04 00 CA 83 5D 66 B6 04 01 00 00 F6 24 DC F7 BD 39 3E 66 [15:10:03]CommunicateWithHost err = 0 [15:10:03]CheckOFDResponse [15:10:03]1017 (14) - 77093643461234 [15:10:03]1041 (16) - 0000000000965400 [15:10:03]1040 (4) - 68376 [15:10:03]1012 (4) - 03.06.2024 08:50 [15:10:03]1206 (1) - 0 [15:10:03]OFD Sender: Remove packet 68376 [15:10:03]ProducePacketName [15:10:03]name=ofd_packets/00068376 [15:10:03]NVStorageDeleteData [15:10:03]Write to MH i2c: 01 00 00 B1 42 F3 [15:10:03]Write i2c OK [15:10:03]MH_I2C_Read... [15:10:03]Read from MH i2c: 01 [15:10:03]MH_I2C_Read... [15:10:03]Read from MH i2c: 01 07 00 [15:10:03]MH_I2C_Read... [15:10:03]Read from MH i2c: 01 07 00 B1 42 00 00 00 00 00 DC 0C E2 [15:10:03]RasterBufferAndPrint [15:10:03]line [15:10:03]line [15:10:03]line [15:10:03]line [15:10:03]line [15:10:03]written 0, free lines is 3299 [15:10:03]MH_Cut [15:10:03]Write to MH i2c: D1 01 00 B8 42 01 CC [15:10:03]Write i2c OK [15:10:03]MH_I2C_Read... [15:10:03]Read from MH i2c: D1 [15:10:03]MH_I2C_Read... [15:10:03]Read from MH i2c: D1 01 00 [15:10:03]MH_I2C_Read... [15:10:03]Read from MH i2c: D1 01 00 B8 42 00 CB [15:10:03]Write to MH i2c: 01 00 00 B9 42 FB [15:10:03]Write i2c OK [15:10:03]MH_I2C_Read... [15:10:03]OFD Sender: No OFD packet to send [15:10:04]*** Cut start [15:10:04]*** Partial cut [15:10:04]*** CUTSNS_PIN = 1 [15:10:04]*** CUTSNS_PIN = 0 [15:10:04]*** Brake cut motor [15:10:05]Read from MH i2c: 01 [15:10:05]MH_I2C_Read... [15:10:05]*** Stop cut motor [15:10:05]*** Cut end [15:10:05]Read from MH i2c: 01 07 00 [15:10:05]MH_I2C_Read... [15:10:05]Read from MH i2c: 01 07 00 B9 42 00 00 00 00 00 FF 0F 10 [15:10:05]process_action close_receipt done [15:10:05]requested_data is exist [15:10:05]produce_requested_data [15:10:05]requested_item fm.sn is exist - process it [15:10:05]wFMCommunicate request_size=4 [15:10:05]MH_SAM_APDU [15:10:05]CAPDU: 80 11 00 00 [15:10:05]Write to MH i2c: E2 08 00 BA 42 80 11 00 00 00 00 00 00 76 [15:10:05]Write i2c OK [15:10:05]MH_I2C_Read... [15:10:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:10:05]Read from MH i2c: E2 [15:10:05]MH_I2C_Read... [15:10:05]Read from MH i2c: E2 17 00 [15:10:05]MH_I2C_Read... [15:10:05]Read from MH i2c: E2 17 00 BA 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 C1 [15:10:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:10:05]wFMCommunicate OK [15:10:05]requested_item fd.num is exist - process it [15:10:05]SAM_PROTO_GetFieldsCounters [15:10:05]wFMCommunicate request_size=4 [15:10:05]MH_SAM_APDU [15:10:05]CAPDU: 80 13 00 00 [15:10:05]Write to MH i2c: E2 08 00 BB 42 80 13 00 00 00 00 00 00 79 [15:10:05]Write i2c OK [15:10:05]MH_I2C_Read... [15:10:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:10:05]Read from MH i2c: E2 [15:10:05]MH_I2C_Read... [15:10:05]Read from MH i2c: E2 62 00 [15:10:05]MH_I2C_Read... [15:10:05]Read from MH i2c: E2 62 00 BB 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 18 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 70 [15:10:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 18 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:10:05]wFMCommunicate OK [15:10:05]SAM_PROTO_GetFieldsCounters done [15:10:05]requested_item shift.num is exist - process it [15:10:05]requested_item shift.opened is exist - process it [15:10:05]req_shift_opened [15:10:05]FM_GetShiftState [15:10:05]SAM_PROTO_GetShiftState [15:10:05]wFMCommunicate request_size=4 [15:10:05]MH_SAM_APDU [15:10:05]CAPDU: 80 13 01 00 [15:10:05]Write to MH i2c: E2 08 00 BC 42 80 13 01 00 00 00 00 00 7B [15:10:05]Write i2c OK [15:10:05]MH_I2C_Read... [15:10:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:10:05]Read from MH i2c: E2 [15:10:05]MH_I2C_Read... [15:10:05]Read from MH i2c: E2 0E 00 [15:10:05]MH_I2C_Read... [15:10:05]Read from MH i2c: E2 0E 00 BC 42 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 56 [15:10:05]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [15:10:05]wFMCommunicate OK [15:10:05]SAM_PROTO_GetShiftState done [15:10:05]FM_GetShiftState done [15:10:05]req_shift_opened done [15:10:05]requested_item shift.open_date is exist - process it [15:10:05]req_shift_open_date [15:10:05]req_shift_open_date done [15:10:05]produce_requested_data done [15:10:05]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68376,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [15:10:05]process_action_free close_receipt [15:10:05]json_value_free [15:10:05]json_value_free done [15:10:05]process_json_proto returns [15:10:05]Send response to host [15:10:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68376,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [15:10:05]free response buf [15:10:05]execute_script done [15:10:05]execute_script returns [15:10:05]free content buf [15:10:05]Sock 6.Close socket [15:10:05]Sock 6.Thread stoped [15:10:08]OFD Sender: No OFD packet to send [15:10:13]OFD Sender: No OFD packet to send [15:10:18]OFD Sender: No OFD packet to send [15:10:23]OFD Sender: No OFD packet to send [15:10:28]OFD Sender: No OFD packet to send [15:10:33]OFD Sender: No OFD packet to send [15:10:38]OFD Sender: No OFD packet to send [15:10:43]OFD Sender: No OFD packet to send [15:10:48]OFD Sender: No OFD packet to send [15:10:53]OFD Sender: No OFD packet to send [15:10:58]OFD Sender: No OFD packet to send [15:11:03]OFD Sender: No OFD packet to send [15:11:08]OFD Sender: No OFD packet to send [15:11:13]OFD Sender: No OFD packet to send [15:11:18]OFD Sender: No OFD packet to send [15:11:23]OFD Sender: No OFD packet to send [15:11:25]accept exits with 5 [15:11:25]New connection [15:11:25]New thread 3066686820 created [15:11:25]Thread 3066543460 joined [15:11:25]Waiting for new connection... [15:11:25] Sock 5.Parse request [15:11:25]Sock 5.Check first char [15:11:25]Sock 5.First char is OK [15:11:25]request: POST /json_proto HTTP/1.0 [15:11:25]Method: POST [15:11:25]URL: /json_proto [15:11:25]Method is POST - this is cgi request [15:11:25]url: /json_proto [15:11:25]query_string will be loaded in cgi processing [15:11:25]execute_cgi json_proto POST (null) [15:11:25]execute_cgi path=json_proto method=POST [15:11:25]POST find Content-Length [15:11:25]Host: 172.17.36.132:8080 [15:11:25]Content-Length: 682 [15:11:25]Content-Type: application/json [15:11:25] [15:11:25]POST finish read [15:11:25]Found Content-Length = 682 [15:11:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706474", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:25]execute_script... [15:11: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)706474", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:25]POST & json_proto [15:11:25]process_json_proto [15:11:25]json parsed OK: [15:11:25]protocol is kg_v1.0 [15:11:25]action value=close_receipt [15:11:25]process_action close_receipt [15:11:25]cmd_close_receipt [15:11:25]MH_GetDate [15:11:25]Write to MH i2c: F0 00 00 BD 42 EE [15:11:25]Write i2c OK [15:11:25]MH_I2C_Read... [15:11:25]Read from MH i2c: F0 [15:11:25]MH_I2C_Read... [15:11:25]Read from MH i2c: F0 09 00 [15:11:25]MH_I2C_Read... [15:11:25]Read from MH i2c: F0 09 00 BD 42 00 23 DD 5D 66 B2 22 B0 64 A2 [15:11:25]GetLastDocTimeStamp 1717427407 [15:11:25]current date 1717427491 [15:11:25]FM_GetShiftState [15:11:25]SAM_PROTO_GetShiftState [15:11:25]wFMCommunicate request_size=4 [15:11:25]MH_SAM_APDU [15:11:25]CAPDU: 80 13 01 00 [15:11:25]Write to MH i2c: E2 08 00 BE 42 80 13 01 00 00 00 00 00 7D [15:11:25]Write i2c OK [15:11:25]MH_I2C_Read... [15:11:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:25]Read from MH i2c: E2 [15:11:25]MH_I2C_Read... [15:11:25]Read from MH i2c: E2 0E 00 [15:11:25]MH_I2C_Read... [15:11:25]Read from MH i2c: E2 0E 00 BE 42 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 58 [15:11:25]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [15:11:25]wFMCommunicate OK [15:11:25]SAM_PROTO_GetShiftState done [15:11:25]FM_GetShiftState done [15:11:25]opened in 1717378033 [15:11:25]opened+sec_in_day 1717464433 [15:11:25]quantity*price = 100015 [15:11:25]sum+1 = 100017 [15:11:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 123 03.06.2024 15:11 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68377 ФПД: 64986319996920 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T151131&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68377&fm=64986319996920&tin=02508201610067®Number=0000000000098096&sum=100000 [15:11:26]StoreToDocumentArchive [15:11:26]shift 324 fd 68377 [15:11:26]save to /storage/0324/doc_00068377 [15:11:26]save last doc name /storage/0324/doc_00068377 to /storage/kkm_last_doc_name [15:11:26]save OK [15:11:26]Clear old archive folders... [15:11:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:11:26]tlvbuf is B6F14010 [15:11:26]SAM_PROTO_ClearQueue [15:11:26]wFMCommunicate request_size=4 [15:11:26]MH_SAM_APDU [15:11:26]CAPDU: 80 09 00 00 [15:11:26]Write to MH i2c: E2 08 00 CB 42 80 09 00 00 00 00 00 00 7F [15:11:26]Write i2c OK [15:11:26]MH_I2C_Read... [15:11:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:11:26]Read from MH i2c: E2 [15:11:26]MH_I2C_Read... [15:11:26]Read from MH i2c: E2 03 00 [15:11:26]MH_I2C_Read... [15:11:26]Read from MH i2c: E2 03 00 CB 42 00 90 00 81 [15:11:26]RAPDU: 90 00 [15:11:26]wFMCommunicate OK [15:11:26]SAM_PROTO_ClearQueue done [15:11:26]KKMCreateOFDPacket [15:11:26]OFDProtocolAddRootSTLVToBuf [15:11:26]FM_MakeSignedData [15:11:26]FM_MakeSignedData [15:11:26]SAM_PROTO_SignData [15:11:26]wFMCommunicate request_size=4 [15:11:26]MH_SAM_APDU [15:11:26]CAPDU: 80 0D 01 02 [15:11:26]Write to MH i2c: E2 08 00 CC 42 80 0D 01 02 00 00 00 00 87 [15:11:26]Write i2c OK [15:11:26]MH_I2C_Read... [15:11:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:11:26]Read from MH i2c: E2 [15:11:26]MH_I2C_Read... [15:11:26]Read from MH i2c: E2 03 00 [15:11:26]MH_I2C_Read... [15:11:26]Read from MH i2c: E2 03 00 CC 42 00 90 00 82 [15:11:26]RAPDU: 90 00 [15:11:26]wFMCommunicate OK [15:11:26]wFMCommunicate request_size=255 [15:11:26]MH_SAM_APDU [15:11:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 23 DD 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 19 0B 01 00 35 04 06 00 3B [15:11:26]Write to MH i2c: E2 02 01 CD 42 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 23 DD 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 19 0B 01 00 35 04 06 00 3B 00 00 F1 [15:11:26]Write i2c OK [15:11:26]MH_I2C_Read... [15:11:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:11:26]Read from MH i2c: E2 [15:11:26]MH_I2C_Read... [15:11:26]Read from MH i2c: E2 03 00 [15:11:26]MH_I2C_Read... [15:11:26]Read from MH i2c: E2 03 00 CD 42 00 90 00 83 [15:11:26]RAPDU: 90 00 [15:11:26]wFMCommunicate OK [15:11:26]wFMCommunicate request_size=10 [15:11:26]MH_SAM_APDU [15:11:26]CAPDU: 80 0D 02 02 05 1A CE 84 C7 F8 [15:11:26]Write to MH i2c: E2 0D 00 CE 42 80 0D 02 02 05 00 1A CE 84 C7 F8 00 00 BF [15:11:26]Write i2c OK [15:11:26]MH_I2C_Read... [15:11:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:11:27]Read from MH i2c: E2 [15:11:27]MH_I2C_Read... [15:11:27]Read from MH i2c: E2 03 00 [15:11:27]MH_I2C_Read... [15:11:27]Read from MH i2c: E2 03 00 CE 42 00 90 00 84 [15:11:27]RAPDU: 90 00 [15:11:27]wFMCommunicate OK [15:11:27]wFMCommunicate request_size=4 [15:11:27]MH_SAM_APDU [15:11:27]CAPDU: 80 0D 03 02 [15:11:27]Write to MH i2c: E2 08 00 CF 42 80 0D 03 02 00 00 00 00 8C [15:11:27]Write i2c OK [15:11:27]MH_I2C_Read... [15:11:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:11:27]Read from MH i2c: E2 [15:11:27]MH_I2C_Read... [15:11:27]Read from MH i2c: E2 0B 00 [15:11:27]MH_I2C_Read... [15:11:27]Read from MH i2c: E2 0B 00 CF 42 00 12 43 13 59 A0 F3 23 92 90 00 96 [15:11:27]RAPDU: 12 43 13 59 A0 F3 23 92 90 00 [15:11:27]wFMCommunicate OK [15:11:27]SAM_PROTO_SignData done [15:11:27]FM_MakeSignedData done [15:11:27]CreateOFDProtocolMessage [15:11:27]wFMCommunicate request_size=4 [15:11:27]MH_SAM_APDU [15:11:27]CAPDU: 80 11 00 00 [15:11:27]Write to MH i2c: E2 08 00 D0 42 80 11 00 00 00 00 00 00 8C [15:11:27]Write i2c OK [15:11:27]MH_I2C_Read... [15:11:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:27]Read from MH i2c: E2 [15:11:27]MH_I2C_Read... [15:11:27]Read from MH i2c: E2 17 00 [15:11:27]MH_I2C_Read... [15:11:27]Read from MH i2c: E2 17 00 D0 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 D7 [15:11:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:11:27]wFMCommunicate OK [15:11:27]CreateOFDProtocolMessage done [15:11:27]OFDSenderStorePacket 68377 [15:11:27]StoreOFDPacket docnum=68377 [15:11:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 99 73 07 01 D1 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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 23 DD 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 19 0B 01 00 35 04 06 00 3B 1A CE 84 C7 F8 12 43 13 59 A0 F3 23 92 [15:11:27]CheckFolder [15:11:27]dirname=/storage/ofd_packets [15:11:27]CheckFolder done [15:11:27]ProducePacketName [15:11:27]name=ofd_packets/00068377 [15:11:27]NVStorageSaveData ofd_packets/00068377 [15:11:27]File name is /storage/ofd_packets/00068377 [15:11:27]Write 301 bytes [15:11:27]NVStorageSaveData done [15:11:27]OFDSenderStorePacket done [15:11:27]KKMCreateOFDPacket done [15:11:27]NVStorageSaveData kkm_last_timestamp [15:11:27]File name is /storage/kkm_last_timestamp [15:11:27]Write 4 bytes [15:11:27]NVStorageSaveData done [15:11:27]ExternCall_PrintAddStr [15:11:27]wPrintStart [15:11:27]Write to MH i2c: 01 00 00 D1 42 13 [15:11:27]Write i2c OK [15:11:27]MH_I2C_Read... [15:11:27]Read from MH i2c: 01 [15:11:27]MH_I2C_Read... [15:11:27]Read from MH i2c: 01 07 00 [15:11:27]MH_I2C_Read... [15:11:27]Read from MH i2c: 01 07 00 D1 42 00 00 00 00 00 FF 0F 28 [15:11:27]RasterBufferAndPrint [15:11:27]line Счет N : (1)706474 [15:11:27]line ИНН: 02508201610067 [15:11:27]line Контрольно-Кассовый Чек [15:11:27]line ПРОДАЖА [15:11:27]line ТРК (МРК, ГНК) : 32 [15:11:27]line Товар: 2710124130 [15:11:27]line Аи-92-К-4 [15:11:27]line 14.950 * 66.90 [15:11:27]line = 1000.16 [15:11:27]line НДС 12% НСП 1% [15:11:27]line > о реализуемом товаре [15:11:27]line ОКРУГЛЕНИЕ: -0.16 [15:11:27]line ИТОГО: 1000.00 [15:11:27]line Внесено: 1000.00 [15:11:27]line СДАЧА: 0.00 [15:11:27]line НСП 1% : 8.85 [15:11:27]line НДС 12% : 106.21 [15:11:27]line Наличными: 1000.00 [15:11:27]line Безнал.: 0.00 [15:11:27]line Место: АЗС № 62 "Партнер Нефть" [15:11:27]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [15:11:27]line СНО: Общий режим [15:11:27]line Чек 123 03.06.2024 15:11 [15:11:27]line Смена: 324 ФФД: 1.0 [15:11:27]line ЗНМ: 0300000181 [15:11:27]line РНМ: 0000000000098096 [15:11:27]line Версия ККМ: 001 [15:11:27]line ФМ: 0000000000965400 [15:11:27]line ФД: 68377 [15:11:27]line ФПД: 64986319996920 [15:11:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T151131&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68377&fm=64986319996920&tin=02508201610067®Number=0000000000098096&sum=100000 [15:11:27]OFD Sender: Processing packet 68377 [packets to send 26, broken 25] [15:11:27]ProducePacketName [15:11:27]name=ofd_packets/00068377 [15:11:27]OFD Sender: To server: pG, [15:11:27]CommunicateWithHost lk.salyk.kg:30040 [15:11:27]ConnectInit lk.salyk.kg [15:11:27]written 0, free lines is 4095 [15:11:27]Connected sock=7 [15:11:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 99 73 07 01 D1 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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 23 DD 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 19 0B 01 00 35 04 06 00 3B 1A CE 84 C7 F8 12 43 13 59 A0 F3 23 92 [15:11:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 E6 C6 47 00 6E 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 19 0B 01 00 F4 03 04 00 1E 84 5D 66 B6 04 01 00 00 6A 6D BC 77 14 8C 66 8C [15:11:27]CommunicateWithHost err = 0 [15:11:27]CheckOFDResponse [15:11:27]1017 (14) - 77093643461234 [15:11:27]1041 (16) - 0000000000965400 [15:11:27]1040 (4) - 68377 [15:11:27]1012 (4) - 03.06.2024 08:51 [15:11:27]1206 (1) - 0 [15:11:27]OFD Sender: Remove packet 68377 [15:11:27]ProducePacketName [15:11:27]name=ofd_packets/00068377 [15:11:27]NVStorageDeleteData [15:11:27]Write to MH i2c: 01 00 00 FC 42 3E [15:11:27]Write i2c OK [15:11:27]MH_I2C_Read... [15:11:27]Read from MH i2c: 01 [15:11:27]MH_I2C_Read... [15:11:27]Read from MH i2c: 01 07 00 [15:11:27]MH_I2C_Read... [15:11:27]Read from MH i2c: 01 07 00 FC 42 00 00 00 00 00 E0 0C 31 [15:11:27]RasterBufferAndPrint [15:11:27]line [15:11:27]line [15:11:27]line [15:11:27]line [15:11:27]line [15:11:27]written 0, free lines is 3305 [15:11:27]MH_Cut [15:11:27]Write to MH i2c: D1 01 00 03 43 01 18 [15:11:27]Write i2c OK [15:11:27]MH_I2C_Read... [15:11:27]Read from MH i2c: D1 [15:11:27]MH_I2C_Read... [15:11:27]Read from MH i2c: D1 01 00 [15:11:27]MH_I2C_Read... [15:11:27]Read from MH i2c: D1 01 00 03 43 00 17 [15:11:27]Write to MH i2c: 01 00 00 04 43 47 [15:11:27]Write i2c OK [15:11:27]MH_I2C_Read... [15:11:28]OFD Sender: No OFD packet to send [15:11:28]*** Cut start [15:11:28]*** Partial cut [15:11:28]*** CUTSNS_PIN = 1 [15:11:28]*** CUTSNS_PIN = 0 [15:11:28]*** Brake cut motor [15:11:29]Read from MH i2c: 01 [15:11:29]MH_I2C_Read... [15:11:29]*** Stop cut motor [15:11:29]*** Cut end [15:11:29]Read from MH i2c: 01 07 00 [15:11:29]MH_I2C_Read... [15:11:29]Read from MH i2c: 01 07 00 04 43 00 00 00 00 00 FF 0F 5C [15:11:29]process_action close_receipt done [15:11:29]requested_data is exist [15:11:29]produce_requested_data [15:11:29]requested_item fm.sn is exist - process it [15:11:29]wFMCommunicate request_size=4 [15:11:29]MH_SAM_APDU [15:11:29]CAPDU: 80 11 00 00 [15:11:29]Write to MH i2c: E2 08 00 05 43 80 11 00 00 00 00 00 00 C2 [15:11:29]Write i2c OK [15:11:29]MH_I2C_Read... [15:11:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:29]Read from MH i2c: E2 [15:11:29]MH_I2C_Read... [15:11:29]Read from MH i2c: E2 17 00 [15:11:29]MH_I2C_Read... [15:11:29]Read from MH i2c: E2 17 00 05 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 0D [15:11:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:11:29]wFMCommunicate OK [15:11:29]requested_item fd.num is exist - process it [15:11:29]SAM_PROTO_GetFieldsCounters [15:11:29]wFMCommunicate request_size=4 [15:11:29]MH_SAM_APDU [15:11:29]CAPDU: 80 13 00 00 [15:11:29]Write to MH i2c: E2 08 00 06 43 80 13 00 00 00 00 00 00 C5 [15:11:29]Write i2c OK [15:11:29]MH_I2C_Read... [15:11:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:11:29]Read from MH i2c: E2 [15:11:29]MH_I2C_Read... [15:11:29]Read from MH i2c: E2 62 00 [15:11:29]MH_I2C_Read... [15:11:29]Read from MH i2c: E2 62 00 06 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 19 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 C0 [15:11:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 19 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:11:29]wFMCommunicate OK [15:11:29]SAM_PROTO_GetFieldsCounters done [15:11:29]requested_item shift.num is exist - process it [15:11:29]requested_item shift.opened is exist - process it [15:11:29]req_shift_opened [15:11:29]FM_GetShiftState [15:11:29]SAM_PROTO_GetShiftState [15:11:29]wFMCommunicate request_size=4 [15:11:29]MH_SAM_APDU [15:11:29]CAPDU: 80 13 01 00 [15:11:29]Write to MH i2c: E2 08 00 07 43 80 13 01 00 00 00 00 00 C7 [15:11:29]Write i2c OK [15:11:29]MH_I2C_Read... [15:11:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:29]Read from MH i2c: E2 [15:11:29]MH_I2C_Read... [15:11:29]Read from MH i2c: E2 0E 00 [15:11:29]MH_I2C_Read... [15:11:29]Read from MH i2c: E2 0E 00 07 43 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 A2 [15:11:29]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [15:11:29]wFMCommunicate OK [15:11:29]SAM_PROTO_GetShiftState done [15:11:29]FM_GetShiftState done [15:11:29]req_shift_opened done [15:11:29]requested_item shift.open_date is exist - process it [15:11:29]req_shift_open_date [15:11:29]req_shift_open_date done [15:11:29]produce_requested_data done [15:11:29]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68377,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [15:11:29]process_action_free close_receipt [15:11:29]json_value_free [15:11:29]json_value_free done [15:11:29]process_json_proto returns [15:11:29]Send response to host [15:11:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68377,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [15:11:29]free response buf [15:11:29]execute_script done [15:11:29]execute_script returns [15:11:29]free content buf [15:11:29]Sock 5.Close socket [15:11:29]Sock 5.Thread stoped [15:11:33]OFD Sender: No OFD packet to send [15:11:37]accept exits with 6 [15:11:37]New connection [15:11:37]New thread 3066543460 created [15:11:37]Thread 3066686820 joined [15:11:37]Waiting for new connection... [15:11:37] Sock 6.Parse request [15:11:37]Sock 6.Check first char [15:11:37]Sock 6.First char is OK [15:11:37]request: POST /json_proto HTTP/1.0 [15:11:37]Method: POST [15:11:37]URL: /json_proto [15:11:37]Method is POST - this is cgi request [15:11:37]url: /json_proto [15:11:37]query_string will be loaded in cgi processing [15:11:37]execute_cgi json_proto POST (null) [15:11:37]execute_cgi path=json_proto method=POST [15:11:37]POST find Content-Length [15:11:37]Host: 172.17.36.132:8080 [15:11:37]Content-Length: 678 [15:11:37]Content-Type: application/json [15:11:37] [15:11:37]POST finish read [15:11:37]Found Content-Length = 678 [15:11:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706475", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:37]execute_script... [15:11:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706475", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:37]POST & json_proto [15:11:37]process_json_proto [15:11:37]json parsed OK: [15:11:37]protocol is kg_v1.0 [15:11:37]action value=close_receipt [15:11:37]process_action close_receipt [15:11:37]cmd_close_receipt [15:11:37]MH_GetDate [15:11:37]Write to MH i2c: F0 00 00 08 43 3A [15:11:37]Write i2c OK [15:11:37]MH_I2C_Read... [15:11:37]Read from MH i2c: F0 [15:11:37]MH_I2C_Read... [15:11:37]Read from MH i2c: F0 09 00 [15:11:37]MH_I2C_Read... [15:11:37]Read from MH i2c: F0 09 00 08 43 00 2E DD 5D 66 B2 22 B0 64 F9 [15:11:37]GetLastDocTimeStamp 1717427491 [15:11:37]current date 1717427502 [15:11:37]FM_GetShiftState [15:11:37]SAM_PROTO_GetShiftState [15:11:37]wFMCommunicate request_size=4 [15:11:37]MH_SAM_APDU [15:11:37]CAPDU: 80 13 01 00 [15:11:37]Write to MH i2c: E2 08 00 09 43 80 13 01 00 00 00 00 00 C9 [15:11:37]Write i2c OK [15:11:37]MH_I2C_Read... [15:11:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:37]Read from MH i2c: E2 [15:11:37]MH_I2C_Read... [15:11:37]Read from MH i2c: E2 0E 00 [15:11:37]MH_I2C_Read... [15:11:37]Read from MH i2c: E2 0E 00 09 43 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 A4 [15:11:37]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [15:11:37]wFMCommunicate OK [15:11:37]SAM_PROTO_GetShiftState done [15:11:37]FM_GetShiftState done [15:11:37]opened in 1717378033 [15:11:37]opened+sec_in_day 1717464433 [15:11:37]quantity*price = 70044 [15:11:37]sum+1 = 70045 [15:11:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 124 03.06.2024 15:11 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68378 ФПД: 88462631460787 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T151142&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68378&fm=88462631460787&tin=02508201610067®Number=0000000000098096&sum=70000 [15:11:38]StoreToDocumentArchive [15:11:38]shift 324 fd 68378 [15:11:38]save to /storage/0324/doc_00068378 [15:11:38]save last doc name /storage/0324/doc_00068378 to /storage/kkm_last_doc_name [15:11:38]save OK [15:11:38]Clear old archive folders... [15:11:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:11:38]tlvbuf is 0027E0E0 [15:11:38]SAM_PROTO_ClearQueue [15:11:38]wFMCommunicate request_size=4 [15:11:38]MH_SAM_APDU [15:11:38]CAPDU: 80 09 00 00 [15:11:38]Write to MH i2c: E2 08 00 16 43 80 09 00 00 00 00 00 00 CB [15:11:38]Write i2c OK [15:11:38]MH_I2C_Read... [15:11:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:11:38]Read from MH i2c: E2 [15:11:38]MH_I2C_Read... [15:11:38]Read from MH i2c: E2 03 00 [15:11:38]MH_I2C_Read... [15:11:38]Read from MH i2c: E2 03 00 16 43 00 90 00 CD [15:11:38]RAPDU: 90 00 [15:11:38]wFMCommunicate OK [15:11:38]SAM_PROTO_ClearQueue done [15:11:38]KKMCreateOFDPacket [15:11:38]OFDProtocolAddRootSTLVToBuf [15:11:38]FM_MakeSignedData [15:11:38]FM_MakeSignedData [15:11:38]SAM_PROTO_SignData [15:11:38]wFMCommunicate request_size=4 [15:11:38]MH_SAM_APDU [15:11:38]CAPDU: 80 0D 01 02 [15:11:38]Write to MH i2c: E2 08 00 17 43 80 0D 01 02 00 00 00 00 D3 [15:11:38]Write i2c OK [15:11:38]MH_I2C_Read... [15:11:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:11:38]Read from MH i2c: E2 [15:11:38]MH_I2C_Read... [15:11:38]Read from MH i2c: E2 03 00 [15:11:38]MH_I2C_Read... [15:11:38]Read from MH i2c: E2 03 00 17 43 00 90 00 CE [15:11:38]RAPDU: 90 00 [15:11:38]wFMCommunicate OK [15:11:38]wFMCommunicate request_size=255 [15:11:38]MH_SAM_APDU [15:11:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 2E DD 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 1A 0B 01 00 35 04 06 00 50 [15:11:38]Write to MH i2c: E2 02 01 18 43 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 2E DD 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 1A 0B 01 00 35 04 06 00 50 00 00 75 [15:11:38]Write i2c OK [15:11:38]MH_I2C_Read... [15:11:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:11:38]Read from MH i2c: E2 [15:11:38]MH_I2C_Read... [15:11:38]Read from MH i2c: E2 03 00 [15:11:38]MH_I2C_Read... [15:11:38]Read from MH i2c: E2 03 00 18 43 00 90 00 CF [15:11:38]RAPDU: 90 00 [15:11:38]wFMCommunicate OK [15:11:38]wFMCommunicate request_size=10 [15:11:38]MH_SAM_APDU [15:11:38]CAPDU: 80 0D 02 02 05 74 CF B9 5F B3 [15:11:38]Write to MH i2c: E2 0D 00 19 43 80 0D 02 02 05 00 74 CF B9 5F B3 00 00 EE [15:11:38]Write i2c OK [15:11:38]MH_I2C_Read... [15:11:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:11:38]Read from MH i2c: E2 [15:11:38]MH_I2C_Read... [15:11:38]Read from MH i2c: E2 03 00 [15:11:38]MH_I2C_Read... [15:11:38]Read from MH i2c: E2 03 00 19 43 00 90 00 D0 [15:11:38]RAPDU: 90 00 [15:11:38]wFMCommunicate OK [15:11:38]wFMCommunicate request_size=4 [15:11:38]MH_SAM_APDU [15:11:38]CAPDU: 80 0D 03 02 [15:11:38]Write to MH i2c: E2 08 00 1A 43 80 0D 03 02 00 00 00 00 D8 [15:11:38]Write i2c OK [15:11:38]MH_I2C_Read... [15:11:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:11:38]Read from MH i2c: E2 [15:11:38]MH_I2C_Read... [15:11:38]Read from MH i2c: E2 0B 00 [15:11:38]MH_I2C_Read... [15:11:38]Read from MH i2c: E2 0B 00 1A 43 00 40 51 9B 1F 70 C1 B7 62 90 00 6E [15:11:38]RAPDU: 40 51 9B 1F 70 C1 B7 62 90 00 [15:11:38]wFMCommunicate OK [15:11:38]SAM_PROTO_SignData done [15:11:38]FM_MakeSignedData done [15:11:38]CreateOFDProtocolMessage [15:11:38]wFMCommunicate request_size=4 [15:11:38]MH_SAM_APDU [15:11:38]CAPDU: 80 11 00 00 [15:11:38]Write to MH i2c: E2 08 00 1B 43 80 11 00 00 00 00 00 00 D8 [15:11:38]Write i2c OK [15:11:38]MH_I2C_Read... [15:11:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:38]Read from MH i2c: E2 [15:11:38]MH_I2C_Read... [15:11:38]Read from MH i2c: E2 17 00 [15:11:38]MH_I2C_Read... [15:11:38]Read from MH i2c: E2 17 00 1B 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 23 [15:11:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:11:38]wFMCommunicate OK [15:11:38]CreateOFDProtocolMessage done [15:11:38]OFDSenderStorePacket 68378 [15:11:38]StoreOFDPacket docnum=68378 [15:11:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 9F 57 07 01 A7 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 2E DD 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 1A 0B 01 00 35 04 06 00 50 74 CF B9 5F B3 40 51 9B 1F 70 C1 B7 62 [15:11:38]CheckFolder [15:11:38]dirname=/storage/ofd_packets [15:11:38]CheckFolder done [15:11:38]ProducePacketName [15:11:38]name=ofd_packets/00068378 [15:11:38]NVStorageSaveData ofd_packets/00068378 [15:11:38]File name is /storage/ofd_packets/00068378 [15:11:38]Write 301 bytes [15:11:38]NVStorageSaveData done [15:11:38]OFDSenderStorePacket done [15:11:38]KKMCreateOFDPacket done [15:11:38]NVStorageSaveData kkm_last_timestamp [15:11:38]File name is /storage/kkm_last_timestamp [15:11:38]Write 4 bytes [15:11:38]NVStorageSaveData done [15:11:38]ExternCall_PrintAddStr [15:11:38]wPrintStart [15:11:38]Write to MH i2c: 01 00 00 1C 43 5F [15:11:38]Write i2c OK [15:11:38]MH_I2C_Read... [15:11:38]Read from MH i2c: 01 [15:11:38]MH_I2C_Read... [15:11:38]Read from MH i2c: 01 07 00 [15:11:38]MH_I2C_Read... [15:11:38]Read from MH i2c: 01 07 00 1C 43 00 00 00 00 00 FF 0F 74 [15:11:38]RasterBufferAndPrint [15:11:38]line Счет N : (1)706475 [15:11:38]line ИНН: 02508201610067 [15:11:38]line Контрольно-Кассовый Чек [15:11:38]line ПРОДАЖА [15:11:38]line ТРК (МРК, ГНК) : 32 [15:11:38]line Товар: 2710124130 [15:11:38]line Аи-92-К-4 [15:11:38]line 10.470 * 66.90 [15:11:38]line = 700.44 [15:11:38]line НДС 12% НСП 1% [15:11:38]line > о реализуемом товаре [15:11:38]line ОКРУГЛЕНИЕ: -0.44 [15:11:38]line ИТОГО: 700.00 [15:11:38]line Внесено: 700.00 [15:11:38]line СДАЧА: 0.00 [15:11:38]line НСП 1% : 6.20 [15:11:38]line НДС 12% : 74.38 [15:11:38]line Наличными: 700.00 [15:11:38]line Безнал.: 0.00 [15:11:38]line Место: АЗС № 62 "Партнер Нефть" [15:11:38]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [15:11:38]line СНО: Общий режим [15:11:38]line Чек 124 03.06.2024 15:11 [15:11:38]line Смена: 324 ФФД: 1.0 [15:11:38]line ЗНМ: 0300000181 [15:11:38]line РНМ: 0000000000098096 [15:11:38]line Версия ККМ: 001 [15:11:38]line ФМ: 0000000000965400 [15:11:38]line ФД: 68378 [15:11:38]line ФПД: 88462631460787 [15:11:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T151142&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68378&fm=88462631460787&tin=02508201610067®Number=0000000000098096&sum=70000 [15:11:38]written 0, free lines is 4095 [15:11:38]OFD Sender: Processing packet 68378 [packets to send 26, broken 25] [15:11:38]ProducePacketName [15:11:38]name=ofd_packets/00068378 [15:11:38]OFD Sender: To server: pG, [15:11:38]CommunicateWithHost lk.salyk.kg:30040 [15:11:38]ConnectInit lk.salyk.kg [15:11:39]Connected sock=7 [15:11:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 9F 57 07 01 A7 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 2E DD 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 1A 0B 01 00 35 04 06 00 50 74 CF B9 5F B3 40 51 9B 1F 70 C1 B7 62 [15:11:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 23 71 47 00 6B 3A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 1A 0B 01 00 F4 03 04 00 2A 84 5D 66 B6 04 01 00 00 AC CE 11 B9 E2 87 69 01 [15:11:39]CommunicateWithHost err = 0 [15:11:39]CheckOFDResponse [15:11:39]1017 (14) - 77093643461234 [15:11:39]1041 (16) - 0000000000965400 [15:11:39]1040 (4) - 68378 [15:11:39]1012 (4) - 03.06.2024 08:51 [15:11:39]1206 (1) - 0 [15:11:39]OFD Sender: Remove packet 68378 [15:11:39]ProducePacketName [15:11:39]name=ofd_packets/00068378 [15:11:39]NVStorageDeleteData [15:11:39]Write to MH i2c: 01 00 00 47 43 8A [15:11:39]Write i2c OK [15:11:39]MH_I2C_Read... [15:11:39]Read from MH i2c: 01 [15:11:39]MH_I2C_Read... [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 47 43 00 00 00 00 00 E1 0C 7E [15:11:39]RasterBufferAndPrint [15:11:39]line [15:11:39]line [15:11:39]line [15:11:39]line [15:11:39]line [15:11:39]written 0, free lines is 3303 [15:11:39]MH_Cut [15:11:39]Write to MH i2c: D1 01 00 4E 43 01 63 [15:11:39]Write i2c OK [15:11:39]MH_I2C_Read... [15:11:39]Read from MH i2c: D1 [15:11:39]MH_I2C_Read... [15:11:39]Read from MH i2c: D1 01 00 [15:11:39]MH_I2C_Read... [15:11:39]Read from MH i2c: D1 01 00 4E 43 00 62 [15:11:39]Write to MH i2c: 01 00 00 4F 43 92 [15:11:39]Write i2c OK [15:11:39]MH_I2C_Read... [15:11:39]OFD Sender: No OFD packet to send [15:11:40]*** Cut start [15:11:40]*** Partial cut [15:11:40]*** CUTSNS_PIN = 1 [15:11:40]*** CUTSNS_PIN = 0 [15:11:40]*** Brake cut motor [15:11:40]Read from MH i2c: 01 [15:11:40]MH_I2C_Read... [15:11:40]*** Stop cut motor [15:11:40]*** Cut end [15:11:40]Read from MH i2c: 01 07 00 [15:11:40]MH_I2C_Read... [15:11:40]Read from MH i2c: 01 07 00 4F 43 00 00 00 00 00 FF 0F A7 [15:11:40]process_action close_receipt done [15:11:40]requested_data is exist [15:11:40]produce_requested_data [15:11:40]requested_item fm.sn is exist - process it [15:11:40]wFMCommunicate request_size=4 [15:11:40]MH_SAM_APDU [15:11:40]CAPDU: 80 11 00 00 [15:11:40]Write to MH i2c: E2 08 00 50 43 80 11 00 00 00 00 00 00 0D [15:11:40]Write i2c OK [15:11:40]MH_I2C_Read... [15:11:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:40]Read from MH i2c: E2 [15:11:40]MH_I2C_Read... [15:11:40]Read from MH i2c: E2 17 00 [15:11:40]MH_I2C_Read... [15:11:40]Read from MH i2c: E2 17 00 50 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 58 [15:11:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:11:40]wFMCommunicate OK [15:11:40]requested_item fd.num is exist - process it [15:11:40]SAM_PROTO_GetFieldsCounters [15:11:40]wFMCommunicate request_size=4 [15:11:40]MH_SAM_APDU [15:11:40]CAPDU: 80 13 00 00 [15:11:40]Write to MH i2c: E2 08 00 51 43 80 13 00 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 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 51 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 1A 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 0F [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 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 1A 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 [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 52 43 80 13 01 00 00 00 00 00 12 [15:11:40]Write i2c OK [15:11:40]MH_I2C_Read... [15:11:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:41]Read from MH i2c: E2 [15:11:41]MH_I2C_Read... [15:11:41]Read from MH i2c: E2 0E 00 [15:11:41]MH_I2C_Read... [15:11:41]Read from MH i2c: E2 0E 00 52 43 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 ED [15:11:41]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [15:11:41]wFMCommunicate OK [15:11:41]SAM_PROTO_GetShiftState done [15:11:41]FM_GetShiftState done [15:11:41]req_shift_opened done [15:11:41]requested_item shift.open_date is exist - process it [15:11:41]req_shift_open_date [15:11:41]req_shift_open_date done [15:11:41]produce_requested_data done [15:11:41]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68378,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [15:11:41]process_action_free close_receipt [15:11:41]json_value_free [15:11:41]json_value_free done [15:11:41]process_json_proto returns [15:11:41]Send response to host [15:11:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68378,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [15:11:41]free response buf [15:11:41]execute_script done [15:11:41]execute_script returns [15:11:41]free content buf [15:11:41]Sock 6.Close socket [15:11:41]Sock 6.Thread stoped [15:11:41]accept exits with 5 [15:11:41]New connection [15:11:41]New thread 3066686820 created [15:11:41]Thread 3066543460 joined [15:11:41]Waiting for new connection... [15:11:41] Sock 5.Parse request [15:11:41]Sock 5.Check first char [15:11:41]Sock 5.First char is OK [15:11:41]request: POST /json_proto HTTP/1.0 [15:11:41]Method: POST [15:11:41]URL: /json_proto [15:11:41]Method is POST - this is cgi request [15:11:41]url: /json_proto [15:11:41]query_string will be loaded in cgi processing [15:11:41]execute_cgi json_proto POST (null) [15:11:41]execute_cgi path=json_proto method=POST [15:11:41]POST find Content-Length [15:11:41]Host: 172.17.36.132:8080 [15:11:41]Content-Length: 734 [15:11:41]Content-Type: application/json [15:11:41] [15:11:41]POST finish read [15:11:41]Found Content-Length = 734 [15:11:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 68378, "base_FM": "0000000000965400", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706475", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:41]execute_script... [15:11:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 68378, "base_FM": "0000000000965400", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706475", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:41]POST & json_proto [15:11:41]process_json_proto [15:11:41]json parsed OK: [15:11:41]protocol is kg_v1.0 [15:11:41]action value=close_receipt [15:11:41]process_action close_receipt [15:11:41]cmd_close_receipt [15:11:41]MH_GetDate [15:11:41]Write to MH i2c: F0 00 00 53 43 85 [15:11:41]Write i2c OK [15:11:41]MH_I2C_Read... [15:11:41]Read from MH i2c: F0 [15:11:41]MH_I2C_Read... [15:11:41]Read from MH i2c: F0 09 00 [15:11:41]MH_I2C_Read... [15:11:41]Read from MH i2c: F0 09 00 53 43 00 33 DD 5D 66 B2 22 B0 64 49 [15:11:41]GetLastDocTimeStamp 1717427502 [15:11:41]current date 1717427507 [15:11:41]FM_GetShiftState [15:11:41]SAM_PROTO_GetShiftState [15:11:41]wFMCommunicate request_size=4 [15:11:41]MH_SAM_APDU [15:11:41]CAPDU: 80 13 01 00 [15:11:41]Write to MH i2c: E2 08 00 54 43 80 13 01 00 00 00 00 00 14 [15:11:41]Write i2c OK [15:11:41]MH_I2C_Read... [15:11:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:41]Read from MH i2c: E2 [15:11:41]MH_I2C_Read... [15:11:41]Read from MH i2c: E2 0E 00 [15:11:41]MH_I2C_Read... [15:11:41]Read from MH i2c: E2 0E 00 54 43 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 EF [15:11:41]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [15:11:41]wFMCommunicate OK [15:11:41]SAM_PROTO_GetShiftState done [15:11:41]FM_GetShiftState done [15:11:41]opened in 1717378033 [15:11:41]opened+sec_in_day 1717464433 [15:11:41]quantity*price = 70044 [15:11:41]sum+1 = 70045 [15:11:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 125 03.06.2024 15:11 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФД осн.: 68378 ФМ осн.: 0000000000965400 ФМ: 0000000000965400 ФД: 68379 ФПД: 65448430555190 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T151147&type=2&operation_type=1&fn_number=0000000000965400&fd_number=68379&fm=65448430555190&tin=02508201610067®Number=0000000000098096&sum=70000 [15:11:43]StoreToDocumentArchive [15:11:43]shift 324 fd 68379 [15:11:43]save to /storage/0324/doc_00068379 [15:11:43]save last doc name /storage/0324/doc_00068379 to /storage/kkm_last_doc_name [15:11:43]save OK [15:11:43]Clear old archive folders... [15:11:43]ProcessDocumentItem done err = 0, tmpTLVsize=279 [15:11:43]tlvbuf is 00256610 [15:11:43]SAM_PROTO_ClearQueue [15:11:43]wFMCommunicate request_size=4 [15:11:43]MH_SAM_APDU [15:11:43]CAPDU: 80 09 00 00 [15:11:43]Write to MH i2c: E2 08 00 63 43 80 09 00 00 00 00 00 00 18 [15:11:43]Write i2c OK [15:11:43]MH_I2C_Read... [15:11:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:11:43]Read from MH i2c: E2 [15:11:43]MH_I2C_Read... [15:11:43]Read from MH i2c: E2 03 00 [15:11:43]MH_I2C_Read... [15:11:43]Read from MH i2c: E2 03 00 63 43 00 90 00 1A [15:11:43]RAPDU: 90 00 [15:11:43]wFMCommunicate OK [15:11:43]SAM_PROTO_ClearQueue done [15:11:43]KKMCreateOFDPacket [15:11:43]OFDProtocolAddRootSTLVToBuf [15:11:43]FM_MakeSignedData [15:11:43]FM_MakeSignedData [15:11:43]SAM_PROTO_SignData [15:11:43]wFMCommunicate request_size=4 [15:11:43]MH_SAM_APDU [15:11:43]CAPDU: 80 0D 01 02 [15:11:43]Write to MH i2c: E2 08 00 64 43 80 0D 01 02 00 00 00 00 20 [15:11:43]Write i2c OK [15:11:43]MH_I2C_Read... [15:11:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:11:43]Read from MH i2c: E2 [15:11:43]MH_I2C_Read... [15:11:43]Read from MH i2c: E2 03 00 [15:11:43]MH_I2C_Read... [15:11:43]Read from MH i2c: E2 03 00 64 43 00 90 00 1B [15:11:43]RAPDU: 90 00 [15:11:43]wFMCommunicate OK [15:11:43]wFMCommunicate request_size=255 [15:11:43]MH_SAM_APDU [15:11:43]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 33 DD 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 27 04 04 00 1A 0B 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 11 04 10 00 30 [15:11:43]Write to MH i2c: E2 02 01 65 43 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 33 DD 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 27 04 04 00 1A 0B 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 11 04 10 00 30 00 00 DA [15:11:43]Write i2c OK [15:11:43]MH_I2C_Read... [15:11:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:11:43]Read from MH i2c: E2 [15:11:43]MH_I2C_Read... [15:11:43]Read from MH i2c: E2 03 00 [15:11:43]MH_I2C_Read... [15:11:43]Read from MH i2c: E2 03 00 65 43 00 90 00 1C [15:11:43]RAPDU: 90 00 [15:11:43]wFMCommunicate OK [15:11:43]wFMCommunicate request_size=38 [15:11:43]MH_SAM_APDU [15:11:43]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 1B 0B 01 00 35 04 06 00 3B 86 66 74 50 36 [15:11:43]Write to MH i2c: E2 29 00 66 43 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 1B 0B 01 00 35 04 06 00 3B 86 66 74 50 36 00 00 EC [15:11:43]Write i2c OK [15:11:43]MH_I2C_Read... [15:11:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:11:43]Read from MH i2c: E2 [15:11:43]MH_I2C_Read... [15:11:43]Read from MH i2c: E2 03 00 [15:11:43]MH_I2C_Read... [15:11:43]Read from MH i2c: E2 03 00 66 43 00 90 00 1D [15:11:43]RAPDU: 90 00 [15:11:43]wFMCommunicate OK [15:11:43]wFMCommunicate request_size=4 [15:11:43]MH_SAM_APDU [15:11:43]CAPDU: 80 0D 03 02 [15:11:43]Write to MH i2c: E2 08 00 67 43 80 0D 03 02 00 00 00 00 25 [15:11:43]Write i2c OK [15:11:43]MH_I2C_Read... [15:11:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:11:43]Read from MH i2c: E2 [15:11:43]MH_I2C_Read... [15:11:43]Read from MH i2c: E2 0B 00 [15:11:43]MH_I2C_Read... [15:11:43]Read from MH i2c: E2 0B 00 67 43 00 D2 EF C5 E3 55 9C 2F 8A 90 00 39 [15:11:43]RAPDU: D2 EF C5 E3 55 9C 2F 8A 90 00 [15:11:43]wFMCommunicate OK [15:11:43]SAM_PROTO_SignData done [15:11:43]FM_MakeSignedData done [15:11:43]CreateOFDProtocolMessage [15:11:43]wFMCommunicate request_size=4 [15:11:43]MH_SAM_APDU [15:11:43]CAPDU: 80 11 00 00 [15:11:43]Write to MH i2c: E2 08 00 68 43 80 11 00 00 00 00 00 00 25 [15:11:43]Write i2c OK [15:11:43]MH_I2C_Read... [15:11:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:43]Read from MH i2c: E2 [15:11:43]MH_I2C_Read... [15:11:43]Read from MH i2c: E2 17 00 [15:11:43]MH_I2C_Read... [15:11:43]Read from MH i2c: E2 17 00 68 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 70 [15:11:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:11:43]wFMCommunicate OK [15:11:43]CreateOFDProtocolMessage done [15:11:43]OFDSenderStorePacket 68379 [15:11:43]StoreOFDPacket docnum=68379 [15:11:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 2B 01 00 00 FB 48 23 01 7F 19 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 33 DD 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 27 04 04 00 1A 0B 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 1B 0B 01 00 35 04 06 00 3B 86 66 74 50 36 D2 EF C5 E3 55 9C 2F 8A [15:11:43]CheckFolder [15:11:43]dirname=/storage/ofd_packets [15:11:43]CheckFolder done [15:11:43]ProducePacketName [15:11:43]name=ofd_packets/00068379 [15:11:43]NVStorageSaveData ofd_packets/00068379 [15:11:43]File name is /storage/ofd_packets/00068379 [15:11:43]Write 329 bytes [15:11:43]NVStorageSaveData done [15:11:43]OFDSenderStorePacket done [15:11:43]KKMCreateOFDPacket done [15:11:43]NVStorageSaveData kkm_last_timestamp [15:11:43]File name is /storage/kkm_last_timestamp [15:11:43]Write 4 bytes [15:11:43]NVStorageSaveData done [15:11:43]ExternCall_PrintAddStr [15:11:43]wPrintStart [15:11:43]Write to MH i2c: 01 00 00 69 43 AC [15:11:43]Write i2c OK [15:11:43]MH_I2C_Read... [15:11:43]Read from MH i2c: 01 [15:11:43]MH_I2C_Read... [15:11:43]Read from MH i2c: 01 07 00 [15:11:43]MH_I2C_Read... [15:11:43]Read from MH i2c: 01 07 00 69 43 00 00 00 00 00 FF 0F C1 [15:11:43]RasterBufferAndPrint [15:11:43]line Счет N : (1)706475 [15:11:43]line ИНН: 02508201610067 [15:11:43]line Контрольно-Кассовый Чек [15:11:43]line ВОЗВРАТ ПРОДАЖИ [15:11:43]line ТРК (МРК, ГНК) : 32 [15:11:43]line Товар: 2710124130 [15:11:43]line Аи-92-К-4 [15:11:43]line 10.470 * 66.90 [15:11:43]line = 700.44 [15:11:43]line НДС 12% НСП 1% [15:11:43]line > о реализуемом товаре [15:11:43]line ОКРУГЛЕНИЕ: -0.44 [15:11:43]line ИТОГО: 700.00 [15:11:43]line НСП 1% : 6.20 [15:11:43]line НДС 12% : 74.38 [15:11:43]line Наличными: 700.00 [15:11:43]line Безнал.: 0.00 [15:11:43]line Место: АЗС № 62 "Партнер Нефть" [15:11:43]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [15:11:43]line СНО: Общий режим [15:11:43]line Чек 125 03.06.2024 15:11 [15:11:43]line Смена: 324 ФФД: 1.0 [15:11:43]line ЗНМ: 0300000181 [15:11:43]line РНМ: 0000000000098096 [15:11:43]line Версия ККМ: 001 [15:11:43]line ФД осн.: 68378 [15:11:43]line ФМ осн.: 0000000000965400 [15:11:43]line ФМ: 0000000000965400 [15:11:43]line ФД: 68379 [15:11:43]line ФПД: 65448430555190 [15:11:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T151147&type=2&operation_type=1&fn_number=0000000000965400&fd_number=68379&fm=65448430555190&tin=02508201610067®Number=0000000000098096&sum=70000 [15:11:43]OFD Sender: Processing packet 68379 [packets to send 26, broken 25] [15:11:43]ProducePacketName [15:11:43]name=ofd_packets/00068379 [15:11:43]OFD Sender: To server: pG, [15:11:43]CommunicateWithHost lk.salyk.kg:30040 [15:11:43]ConnectInit lk.salyk.kg [15:11:43]written 0, free lines is 4095 [15:11:43]Connected sock=7 [15:11:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 2B 01 00 00 FB 48 23 01 7F 19 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 33 DD 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 27 04 04 00 1A 0B 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 1B 0B 01 00 35 04 06 00 3B 86 66 74 50 36 D2 EF C5 E3 55 9C 2F 8A [15:11:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 CF 08 47 00 D3 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 1B 0B 01 00 F4 03 04 00 2F 84 5D 66 B6 04 01 00 00 7D AC F2 B9 0D ED 89 C0 [15:11:44]CommunicateWithHost err = 0 [15:11:44]CheckOFDResponse [15:11:44]1017 (14) - 77093643461234 [15:11:44]1041 (16) - 0000000000965400 [15:11:44]1040 (4) - 68379 [15:11:44]1012 (4) - 03.06.2024 08:51 [15:11:44]1206 (1) - 0 [15:11:44]OFD Sender: Remove packet 68379 [15:11:44]ProducePacketName [15:11:44]name=ofd_packets/00068379 [15:11:44]NVStorageDeleteData [15:11:44]Write to MH i2c: 01 00 00 94 43 D7 [15:11:44]Write i2c OK [15:11:44]MH_I2C_Read... [15:11:44]Read from MH i2c: 01 [15:11:44]MH_I2C_Read... [15:11:44]Read from MH i2c: 01 07 00 [15:11:44]MH_I2C_Read... [15:11:44]Read from MH i2c: 01 07 00 94 43 00 00 00 00 00 E6 0C D0 [15:11:44]RasterBufferAndPrint [15:11:44]line [15:11:44]line [15:11:44]line [15:11:44]line [15:11:44]line [15:11:44]written 0, free lines is 3318 [15:11:44]MH_Cut [15:11:44]Write to MH i2c: D1 01 00 9B 43 01 B0 [15:11:44]Write i2c OK [15:11:44]MH_I2C_Read... [15:11:44]Read from MH i2c: D1 [15:11:44]MH_I2C_Read... [15:11:44]Read from MH i2c: D1 01 00 [15:11:44]MH_I2C_Read... [15:11:44]Read from MH i2c: D1 01 00 9B 43 00 AF [15:11:44]Write to MH i2c: 01 00 00 9C 43 DF [15:11:44]Write i2c OK [15:11:44]MH_I2C_Read... [15:11:44]OFD Sender: No OFD packet to send [15:11:45]*** Cut start [15:11:45]*** Partial cut [15:11:45]*** CUTSNS_PIN = 1 [15:11:45]*** CUTSNS_PIN = 0 [15:11:45]*** Brake cut motor [15:11:45]Read from MH i2c: 01 [15:11:45]MH_I2C_Read... [15:11:45]*** Stop cut motor [15:11:45]*** Cut end [15:11:45]Read from MH i2c: 01 07 00 [15:11:45]MH_I2C_Read... [15:11:45]Read from MH i2c: 01 07 00 9C 43 00 00 00 00 00 FF 0F F4 [15:11:45]process_action close_receipt done [15:11:45]requested_data is exist [15:11:45]produce_requested_data [15:11:45]requested_item fm.sn is exist - process it [15:11:45]wFMCommunicate request_size=4 [15:11:45]MH_SAM_APDU [15:11:45]CAPDU: 80 11 00 00 [15:11:45]Write to MH i2c: E2 08 00 9D 43 80 11 00 00 00 00 00 00 5A [15:11:45]Write i2c OK [15:11:45]MH_I2C_Read... [15:11:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:45]Read from MH i2c: E2 [15:11:45]MH_I2C_Read... [15:11:45]Read from MH i2c: E2 17 00 [15:11:45]MH_I2C_Read... [15:11:45]Read from MH i2c: E2 17 00 9D 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 A5 [15:11:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:11:45]wFMCommunicate OK [15:11:45]requested_item fd.num is exist - process it [15:11:45]SAM_PROTO_GetFieldsCounters [15:11:45]wFMCommunicate request_size=4 [15:11:45]MH_SAM_APDU [15:11:45]CAPDU: 80 13 00 00 [15:11:45]Write to MH i2c: E2 08 00 9E 43 80 13 00 00 00 00 00 00 5D [15:11:45]Write i2c OK [15:11:45]MH_I2C_Read... [15:11:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:11:45]Read from MH i2c: E2 [15:11:45]MH_I2C_Read... [15:11:45]Read from MH i2c: E2 62 00 [15:11:45]MH_I2C_Read... [15:11:45]Read from MH i2c: E2 62 00 9E 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 1B 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 60 [15:11:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 1B 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:11:45]wFMCommunicate OK [15:11:45]SAM_PROTO_GetFieldsCounters done [15:11:45]requested_item shift.num is exist - process it [15:11:45]requested_item shift.opened is exist - process it [15:11:45]req_shift_opened [15:11:45]FM_GetShiftState [15:11:45]SAM_PROTO_GetShiftState [15:11:45]wFMCommunicate request_size=4 [15:11:45]MH_SAM_APDU [15:11:45]CAPDU: 80 13 01 00 [15:11:45]Write to MH i2c: E2 08 00 9F 43 80 13 01 00 00 00 00 00 5F [15:11:45]Write i2c OK [15:11:45]MH_I2C_Read... [15:11:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:46]Read from MH i2c: E2 [15:11:46]MH_I2C_Read... [15:11:46]Read from MH i2c: E2 0E 00 [15:11:46]MH_I2C_Read... [15:11:46]Read from MH i2c: E2 0E 00 9F 43 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 3A [15:11:46]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [15:11:46]wFMCommunicate OK [15:11:46]SAM_PROTO_GetShiftState done [15:11:46]FM_GetShiftState done [15:11:46]req_shift_opened done [15:11:46]requested_item shift.open_date is exist - process it [15:11:46]req_shift_open_date [15:11:46]req_shift_open_date done [15:11:46]produce_requested_data done [15:11:46]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68379,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [15:11:46]process_action_free close_receipt [15:11:46]json_value_free [15:11:46]json_value_free done [15:11:46]process_json_proto returns [15:11:46]Send response to host [15:11:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68379,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [15:11:46]free response buf [15:11:46]execute_script done [15:11:46]execute_script returns [15:11:46]free content buf [15:11:46]Sock 5.Close socket [15:11:46]Sock 5.Thread stoped [15:11:49]OFD Sender: No OFD packet to send [15:11:54]OFD Sender: No OFD packet to send [15:11:59]OFD Sender: No OFD packet to send [15:12:04]OFD Sender: No OFD packet to send [15:12:09]OFD Sender: No OFD packet to send [15:12:14]OFD Sender: No OFD packet to send [15:12:19]OFD Sender: No OFD packet to send [15:12:24]OFD Sender: No OFD packet to send [15:12:29]OFD Sender: No OFD packet to send [15:12:34]OFD Sender: No OFD packet to send [15:12:39]OFD Sender: No OFD packet to send [15:12:44]OFD Sender: No OFD packet to send [15:12:49]OFD Sender: No OFD packet to send [15:12:54]OFD Sender: No OFD packet to send [15:12:59]OFD Sender: No OFD packet to send [15:13:04]OFD Sender: No OFD packet to send [15:13:09]OFD Sender: No OFD packet to send [15:13:14]OFD Sender: No OFD packet to send [15:13:19]OFD Sender: No OFD packet to send [15:13:24]OFD Sender: No OFD packet to send [15:13:29]OFD Sender: No OFD packet to send [15:13:34]OFD Sender: No OFD packet to send [15:13:39]OFD Sender: No OFD packet to send [15:13:44]OFD Sender: No OFD packet to send [15:13:49]OFD Sender: No OFD packet to send [15:13:54]OFD Sender: No OFD packet to send [15:13:58]accept exits with 6 [15:13:58]New connection [15:13:58]New thread 3066543460 created [15:13:58]Thread 3066686820 joined [15:13:58]Waiting for new connection... [15:13:58] Sock 6.Parse request [15:13:58]Sock 6.Check first char [15:13:58]Sock 6.First char is OK [15:13:58]request: POST /json_proto HTTP/1.0 [15:13:58]Method: POST [15:13:58]URL: /json_proto [15:13:58]Method is POST - this is cgi request [15:13:58]url: /json_proto [15:13:58]query_string will be loaded in cgi processing [15:13:58]execute_cgi json_proto POST (null) [15:13:58]execute_cgi path=json_proto method=POST [15:13:58]POST find Content-Length [15:13:58]Host: 172.17.36.132:8080 [15:13:58]Content-Length: 677 [15:13:58]Content-Type: application/json [15:13:58] [15:13:58]POST finish read [15:13:58]Found Content-Length = 677 [15:13:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706476", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:13:58]execute_script... [15:13: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)706476", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:13:58]POST & json_proto [15:13:58]process_json_proto [15:13:58]json parsed OK: [15:13:58]protocol is kg_v1.0 [15:13:58]action value=close_receipt [15:13:58]process_action close_receipt [15:13:58]cmd_close_receipt [15:13:58]MH_GetDate [15:13:58]Write to MH i2c: F0 00 00 A0 43 D2 [15:13:58]Write i2c OK [15:13:58]MH_I2C_Read... [15:13:58]Read from MH i2c: F0 [15:13:58]MH_I2C_Read... [15:13:58]Read from MH i2c: F0 09 00 [15:13:58]MH_I2C_Read... [15:13:58]Read from MH i2c: F0 09 00 A0 43 00 BC DD 5D 66 B2 22 B0 64 1F [15:13:58]GetLastDocTimeStamp 1717427507 [15:13:58]current date 1717427644 [15:13:58]FM_GetShiftState [15:13:58]SAM_PROTO_GetShiftState [15:13:58]wFMCommunicate request_size=4 [15:13:58]MH_SAM_APDU [15:13:58]CAPDU: 80 13 01 00 [15:13:58]Write to MH i2c: E2 08 00 A1 43 80 13 01 00 00 00 00 00 61 [15:13:58]Write i2c OK [15:13:58]MH_I2C_Read... [15:13:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:13:58]Read from MH i2c: E2 [15:13:58]MH_I2C_Read... [15:13:58]Read from MH i2c: E2 0E 00 [15:13:58]MH_I2C_Read... [15:13:58]Read from MH i2c: E2 0E 00 A1 43 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 3C [15:13:58]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [15:13:58]wFMCommunicate OK [15:13:58]SAM_PROTO_GetShiftState done [15:13:58]FM_GetShiftState done [15:13:58]opened in 1717378033 [15:13:58]opened+sec_in_day 1717464433 [15:13:58]quantity*price = 35055 [15:13:58]sum+1 = 35057 [15:13:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 126 03.06.2024 15:14 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68380 ФПД: 183137424027026 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T151404&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68380&fm=183137424027026&tin=02508201610067®Number=0000000000098096&sum=35000 [15:13:59]StoreToDocumentArchive [15:13:59]shift 324 fd 68380 [15:13:59]save to /storage/0324/doc_00068380 [15:13:59]save last doc name /storage/0324/doc_00068380 to /storage/kkm_last_doc_name [15:13:59]save OK [15:13:59]Clear old archive folders... [15:13:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:13:59]tlvbuf is 0023A400 [15:13:59]SAM_PROTO_ClearQueue [15:13:59]wFMCommunicate request_size=4 [15:13:59]MH_SAM_APDU [15:13:59]CAPDU: 80 09 00 00 [15:13:59]Write to MH i2c: E2 08 00 AE 43 80 09 00 00 00 00 00 00 63 [15:13:59]Write i2c OK [15:13:59]MH_I2C_Read... [15:13:59]Read from MH i2c: E2 *** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:13:59] [15:13:59]MH_I2C_Read... [15:13:59]Read from MH i2c: E2 03 00 [15:13:59]MH_I2C_Read... [15:13:59]Read from MH i2c: E2 03 00 AE 43 00 90 00 65 [15:13:59]RAPDU: 90 00 [15:13:59]wFMCommunicate OK [15:13:59]SAM_PROTO_ClearQueue done [15:13:59]KKMCreateOFDPacket [15:13:59]OFDProtocolAddRootSTLVToBuf [15:13:59]FM_MakeSignedData [15:13:59]FM_MakeSignedData [15:13:59]SAM_PROTO_SignData [15:13:59]wFMCommunicate request_size=4 [15:13:59]MH_SAM_APDU [15:13:59]CAPDU: 80 0D 01 02 [15:13:59]Write to MH i2c: E2 08 00 AF 43 80 0D 01 02 00 00 00 00 6B [15:13:59]Write i2c OK [15:13:59]MH_I2C_Read... [15:13:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:13:59]Read from MH i2c: E2 [15:13:59]MH_I2C_Read... [15:13:59]Read from MH i2c: E2 03 00 [15:13:59]MH_I2C_Read... [15:13:59]Read from MH i2c: E2 03 00 AF 43 00 90 00 66 [15:13:59]RAPDU: 90 00 [15:13:59]wFMCommunicate OK [15:13:59]wFMCommunicate request_size=255 [15:13:59]MH_SAM_APDU [15:13:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 BC DD 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 1C 0B 01 00 35 04 06 00 A6 [15:13:59]Write to MH i2c: E2 02 01 B0 43 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 BC DD 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 1C 0B 01 00 35 04 06 00 A6 00 00 F0 [15:13:59]Write i2c OK [15:13:59]MH_I2C_Read... [15:14:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:00]Read from MH i2c: E2 [15:14:00]MH_I2C_Read... [15:14:00]Read from MH i2c: E2 03 00 [15:14:00]MH_I2C_Read... [15:14:00]Read from MH i2c: E2 03 00 B0 43 00 90 00 67 [15:14:00]RAPDU: 90 00 [15:14:00]wFMCommunicate OK [15:14:00]wFMCommunicate request_size=10 [15:14:00]MH_SAM_APDU [15:14:00]CAPDU: 80 0D 02 02 05 90 01 1A AD 92 [15:14:00]Write to MH i2c: E2 0D 00 B1 43 80 0D 02 02 05 00 90 01 1A AD 92 00 00 62 [15:14:00]Write i2c OK [15:14:00]MH_I2C_Read... [15:14:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:00]Read from MH i2c: E2 [15:14:00]MH_I2C_Read... [15:14:00]Read from MH i2c: E2 03 00 [15:14:00]MH_I2C_Read... [15:14:00]Read from MH i2c: E2 03 00 B1 43 00 90 00 68 [15:14:00]RAPDU: 90 00 [15:14:00]wFMCommunicate OK [15:14:00]wFMCommunicate request_size=4 [15:14:00]MH_SAM_APDU [15:14:00]CAPDU: 80 0D 03 02 [15:14:00]Write to MH i2c: E2 08 00 B2 43 80 0D 03 02 00 00 00 00 70 [15:14:00]Write i2c OK [15:14:00]MH_I2C_Read... [15:14:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:14:00]Read from MH i2c: E2 [15:14:00]MH_I2C_Read... [15:14:00]Read from MH i2c: E2 0B 00 [15:14:00]MH_I2C_Read... [15:14:00]Read from MH i2c: E2 0B 00 B2 43 00 7D 95 37 7B 5E 14 40 F3 90 00 DA [15:14:00]RAPDU: 7D 95 37 7B 5E 14 40 F3 90 00 [15:14:00]wFMCommunicate OK [15:14:00]SAM_PROTO_SignData done [15:14:00]FM_MakeSignedData done [15:14:00]CreateOFDProtocolMessage [15:14:00]wFMCommunicate request_size=4 [15:14:00]MH_SAM_APDU [15:14:00]CAPDU: 80 11 00 00 [15:14:00]Write to MH i2c: E2 08 00 B3 43 80 11 00 00 00 00 00 00 70 [15:14:00]Write i2c OK [15:14:00]MH_I2C_Read... [15:14:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:00]Read from MH i2c: E2 [15:14:00]MH_I2C_Read... [15:14:00]Read from MH i2c: E2 17 00 [15:14:00]MH_I2C_Read... [15:14:00]Read from MH i2c: E2 17 00 B3 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 BB [15:14:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:14:00]wFMCommunicate OK [15:14:00]CreateOFDProtocolMessage done [15:14:00]OFDSenderStorePacket 68380 [15:14:00]StoreOFDPacket docnum=68380 [15:14:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 4B 5B 07 01 AD 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 BC DD 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 1C 0B 01 00 35 04 06 00 A6 90 01 1A AD 92 7D 95 37 7B 5E 14 40 F3 [15:14:00]CheckFolder [15:14:00]dirname=/storage/ofd_packets [15:14:00]CheckFolder done [15:14:00]ProducePacketName [15:14:00]name=ofd_packets/00068380 [15:14:00]NVStorageSaveData ofd_packets/00068380 [15:14:00]File name is /storage/ofd_packets/00068380 [15:14:00]Write 301 bytes [15:14:00]NVStorageSaveData done [15:14:00]OFDSenderStorePacket done [15:14:00]KKMCreateOFDPacket done [15:14:00]NVStorageSaveData kkm_last_timestamp [15:14:00]File name is /storage/kkm_last_timestamp [15:14:00]Write 4 bytes [15:14:00]NVStorageSaveData done [15:14:00]ExternCall_PrintAddStr [15:14:00]wPrintStart [15:14:00]Write to MH i2c: 01 00 00 B4 43 F7 [15:14:00]Write i2c OK [15:14:00]MH_I2C_Read... [15:14:00]Read from MH i2c: 01 [15:14:00]MH_I2C_Read... [15:14:00]Read from MH i2c: 01 07 00 [15:14:00]MH_I2C_Read... [15:14:00]Read from MH i2c: 01 07 00 B4 43 00 00 00 00 00 FF 0F 0C [15:14:00]RasterBufferAndPrint [15:14:00]line Счет N : (1)706476 [15:14:00]line ИНН: 02508201610067 [15:14:00]line Контрольно-Кассовый Чек [15:14:00]line ПРОДАЖА [15:14:00]line ТРК (МРК, ГНК) : 53 [15:14:00]line Товар: 2710124130 [15:14:00]line Аи-92-К-4 [15:14:00]line 5.240 * 66.90 [15:14:00]line = 350.56 [15:14:00]line НДС 12% НСП 1% [15:14:00]line > о реализуемом товаре [15:14:00]line ОКРУГЛЕНИЕ: -0.56 [15:14:00]line ИТОГО: 350.00 [15:14:00]line Внесено: 350.00 [15:14:00]line СДАЧА: 0.00 [15:14:00]line НСП 1% : 3.10 [15:14:00]line НДС 12% : 37.23 [15:14:00]line Наличными: 350.00 [15:14:00]line Безнал.: 0.00 [15:14:00]line Место: АЗС № 62 "Партнер Нефть" [15:14:00]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [15:14:00]line СНО: Общий режим [15:14:00]line Чек 126 03.06.2024 15:14 [15:14:00]line Смена: 324 ФФД: 1.0 [15:14:00]line ЗНМ: 0300000181 [15:14:00]line РНМ: 0000000000098096 [15:14:00]line Версия ККМ: 001 [15:14:00]line ФМ: 0000000000965400 [15:14:00]line ФД: 68380 [15:14:00]line ФПД: 183137424027026 [15:14:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T151404&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68380&fm=183137424027026&tin=02508201610067®Number=0000000000098096&sum=35000 [15:14:00]OFD Sender: Processing packet 68380 [packets to send 26, broken 25] [15:14:00]ProducePacketName [15:14:00]name=ofd_packets/00068380 [15:14:00]OFD Sender: To server: pG, [15:14:00]CommunicateWithHost lk.salyk.kg:30040 [15:14:00]ConnectInit lk.salyk.kg [15:14:00]written 0, free lines is 4095 [15:14:00]Connected sock=9 [15:14:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 4B 5B 07 01 AD 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 BC DD 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 1C 0B 01 00 35 04 06 00 A6 90 01 1A AD 92 7D 95 37 7B 5E 14 40 F3 [15:14:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 8D 8A 47 00 87 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 1C 0B 01 00 F4 03 04 00 B8 84 5D 66 B6 04 01 00 00 E3 90 7F 32 8A 97 E8 B0 [15:14:00]CommunicateWithHost err = 0 [15:14:00]CheckOFDResponse [15:14:00]1017 (14) - 77093643461234 [15:14:00]1041 (16) - 0000000000965400 [15:14:00]1040 (4) - 68380 [15:14:00]1012 (4) - 03.06.2024 08:54 [15:14:00]1206 (1) - 0 [15:14:00]OFD Sender: Remove packet 68380 [15:14:00]ProducePacketName [15:14:00]name=ofd_packets/00068380 [15:14:00]NVStorageDeleteData [15:14:01]Write to MH i2c: 01 00 00 DF 43 22 [15:14:01]Write i2c OK [15:14:01]MH_I2C_Read... [15:14:01]Read from MH i2c: 01 [15:14:01]MH_I2C_Read... [15:14:01]Read from MH i2c: 01 07 00 [15:14:01]MH_I2C_Read... [15:14:01]Read from MH i2c: 01 07 00 DF 43 00 00 00 00 00 E0 0C 15 [15:14:01]RasterBufferAndPrint [15:14:01]line [15:14:01]line [15:14:01]line [15:14:01]line [15:14:01]line [15:14:01]written 0, free lines is 3302 [15:14:01]MH_Cut [15:14:01]Write to MH i2c: D1 01 00 E6 43 01 FB [15:14:01]Write i2c OK [15:14:01]MH_I2C_Read... [15:14:01]Read from MH i2c: D1 [15:14:01]MH_I2C_Read... [15:14:01]Read from MH i2c: D1 01 00 [15:14:01]MH_I2C_Read... [15:14:01]Read from MH i2c: D1 01 00 E6 43 00 FA [15:14:01]Write to MH i2c: 01 00 00 E7 43 2A [15:14:01]Write i2c OK [15:14:01]MH_I2C_Read... [15:14:01]OFD Sender: No OFD packet to send [15:14:01]*** Cut start [15:14:01]*** Partial cut [15:14:01]*** CUTSNS_PIN = 1 [15:14:02]*** CUTSNS_PIN = 0 [15:14:02]*** Brake cut motor [15:14:02]Read from MH i2c: 01 [15:14:02]MH_I2C_Read... [15:14:02]*** Stop cut motor [15:14:02]*** Cut end [15:14:02]Read from MH i2c: 01 07 00 [15:14:02]MH_I2C_Read... [15:14:02]Read from MH i2c: 01 07 00 E7 43 00 00 00 00 00 FF 0F 3F [15:14:02]process_action close_receipt done [15:14:02]requested_data is exist [15:14:02]produce_requested_data [15:14:02]requested_item fm.sn is exist - process it [15:14:02]wFMCommunicate request_size=4 [15:14:02]MH_SAM_APDU [15:14:02]CAPDU: 80 11 00 00 [15:14:02]Write to MH i2c: E2 08 00 E8 43 80 11 00 00 00 00 00 00 A5 [15:14:02]Write i2c OK [15:14:02]MH_I2C_Read... [15:14:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:02]Read from MH i2c: E2 [15:14:02]MH_I2C_Read... [15:14:02]Read from MH i2c: E2 17 00 [15:14:02]MH_I2C_Read... [15:14:02]Read from MH i2c: E2 17 00 E8 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 F0 [15:14:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:14:02]wFMCommunicate OK [15:14:02]requested_item fd.num is exist - process it [15:14:02]SAM_PROTO_GetFieldsCounters [15:14:02]wFMCommunicate request_size=4 [15:14:02]MH_SAM_APDU [15:14:02]CAPDU: 80 13 00 00 [15:14:02]Write to MH i2c: E2 08 00 E9 43 80 13 00 00 00 00 00 00 A8 [15:14:02]Write i2c OK [15:14:02]MH_I2C_Read... [15:14:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:14:02]Read from MH i2c: E2 [15:14:02]MH_I2C_Read... [15:14:02]Read from MH i2c: E2 62 00 [15:14:02]MH_I2C_Read... [15:14:02]Read from MH i2c: E2 62 00 E9 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 1C 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 AF [15:14:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 1C 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:14:02]wFMCommunicate OK [15:14:02]SAM_PROTO_GetFieldsCounters done [15:14:02]requested_item shift.num is exist - process it [15:14:02]requested_item shift.opened is exist - process it [15:14:02]req_shift_opened [15:14:02]FM_GetShiftState [15:14:02]SAM_PROTO_GetShiftState [15:14:02]wFMCommunicate request_size=4 [15:14:02]MH_SAM_APDU [15:14:02]CAPDU: 80 13 01 00 [15:14:02]Write to MH i2c: E2 08 00 EA 43 80 13 01 00 00 00 00 00 AA [15:14:02]Write i2c OK [15:14:02]MH_I2C_Read... [15:14:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:02]Read from MH i2c: E2 [15:14:02]MH_I2C_Read... [15:14:02]Read from MH i2c: E2 0E 00 [15:14:02]MH_I2C_Read... [15:14:02]Read from MH i2c: E2 0E 00 EA 43 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 85 [15:14:02]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [15:14:02]wFMCommunicate OK [15:14:02]SAM_PROTO_GetShiftState done [15:14:02]FM_GetShiftState done [15:14:02]req_shift_opened done [15:14:02]requested_item shift.open_date is exist - process it [15:14:02]req_shift_open_date [15:14:02]req_shift_open_date done [15:14:02]produce_requested_data done [15:14:02]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68380,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [15:14:02]process_action_free close_receipt [15:14:02]json_value_free [15:14:02]json_value_free done [15:14:02]process_json_proto returns [15:14:02]Send response to host [15:14:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68380,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [15:14:02]free response buf [15:14:02]execute_script done [15:14:02]execute_script returns [15:14:02]free content buf [15:14:02]Sock 6.Close socket [15:14:02]Sock 6.Thread stoped [15:14:06]OFD Sender: No OFD packet to send [15:14:11]OFD Sender: No OFD packet to send [15:14:16]OFD Sender: No OFD packet to send [15:14:21]OFD Sender: No OFD packet to send [15:14:26]OFD Sender: No OFD packet to send [15:14:31]OFD Sender: No OFD packet to send [15:14:36]OFD Sender: No OFD packet to send [15:14:41]OFD Sender: No OFD packet to send [15:14:46]OFD Sender: No OFD packet to send [15:14:51]OFD Sender: No OFD packet to send [15:14:56]OFD Sender: No OFD packet to send [15:15:01]OFD Sender: No OFD packet to send [15:15:06]OFD Sender: No OFD packet to send [15:15:11]OFD Sender: No OFD packet to send [15:15:16]OFD Sender: No OFD packet to send [15:15:21]OFD Sender: No OFD packet to send [15:15:26]OFD Sender: No OFD packet to send [15:15:31]OFD Sender: No OFD packet to send [15:15:36]OFD Sender: No OFD packet to send [15:15:41]OFD Sender: No OFD packet to send [15:15:46]OFD Sender: No OFD packet to send [15:15:51]OFD Sender: No OFD packet to send [15:15:56]OFD Sender: No OFD packet to send [15:16:01]OFD Sender: No OFD packet to send [15:16:06]OFD Sender: No OFD packet to send [15:16:11]OFD Sender: No OFD packet to send [15:16:16]OFD Sender: No OFD packet to send [15:16:21]OFD Sender: No OFD packet to send [15:16:25]accept exits with 5 [15:16:25]New connection [15:16:25]New thread 3066686820 created [15:16:25]Thread 3066543460 joined [15:16:25]Waiting for new connection... [15:16:25] Sock 5.Parse request [15:16:25]Sock 5.Check first char [15:16:25]Sock 5.First char is OK [15:16:25]request: POST /json_proto HTTP/1.0 [15:16:25]Method: POST [15:16:25]URL: /json_proto [15:16:25]Method is POST - this is cgi request [15:16:25]url: /json_proto [15:16:25]query_string will be loaded in cgi processing [15:16:25]execute_cgi json_proto POST (null) [15:16:25]execute_cgi path=json_proto method=POST [15:16:25]POST find Content-Length [15:16:25]Host: 172.17.36.132:8080 [15:16:25]Content-Length: 682 [15:16:25]Content-Type: application/json [15:16:25] [15:16:25]POST finish read [15:16:25]Found Content-Length = 682 [15:16:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706477", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 13.540, "sum" : 1000.61, "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:16:25]execute_script... [15:16: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)706477", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 13.540, "sum" : 1000.61, "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:16:25]POST & json_proto [15:16:25]process_json_proto [15:16:25]json parsed OK: [15:16:25]protocol is kg_v1.0 [15:16:25]action value=close_receipt [15:16:25]process_action close_receipt [15:16:25]cmd_close_receipt [15:16:25]MH_GetDate [15:16:25]Write to MH i2c: F0 00 00 EB 43 1D [15:16:25]Write i2c OK [15:16:25]MH_I2C_Read... [15:16:25]Read from MH i2c: F0 [15:16:25]MH_I2C_Read... [15:16:25]Read from MH i2c: F0 09 00 [15:16:25]MH_I2C_Read... [15:16:25]Read from MH i2c: F0 09 00 EB 43 00 4F DE 5D 66 B2 22 B0 64 FE [15:16:25]GetLastDocTimeStamp 1717427644 [15:16:25]current date 1717427791 [15:16:25]FM_GetShiftState [15:16:25]SAM_PROTO_GetShiftState [15:16:25]wFMCommunicate request_size=4 [15:16:25]MH_SAM_APDU [15:16:25]CAPDU: 80 13 01 00 [15:16:25]Write to MH i2c: E2 08 00 EC 43 80 13 01 00 00 00 00 00 AC [15:16:25]Write i2c OK [15:16:25]MH_I2C_Read... [15:16:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:25]Read from MH i2c: E2 [15:16:25]MH_I2C_Read... [15:16:25]Read from MH i2c: E2 0E 00 [15:16:25]MH_I2C_Read... [15:16:25]Read from MH i2c: E2 0E 00 EC 43 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 87 [15:16:25]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [15:16:25]wFMCommunicate OK [15:16:25]SAM_PROTO_GetShiftState done [15:16:25]FM_GetShiftState done [15:16:25]opened in 1717378033 [15:16:25]opened+sec_in_day 1717464433 [15:16:25]quantity*price = 100060 [15:16:25]sum+1 = 100062 [15:16:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 127 03.06.2024 15:16 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68381 ФПД: 249960682196047 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T151631&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68381&fm=249960682196047&tin=02508201610067®Number=0000000000098096&sum=100000 [15:16:26]StoreToDocumentArchive [15:16:26]shift 324 fd 68381 [15:16:26]save to /storage/0324/doc_00068381 [15:16:26]save last doc name /storage/0324/doc_00068381 to /storage/kkm_last_doc_name [15:16:26]save OK [15:16:26]Clear old archive folders... [15:16:26]OFD Sender: No OFD packet to send [15:16:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:16:26]tlvbuf is 004D6140 [15:16:26]SAM_PROTO_ClearQueue [15:16:26]wFMCommunicate request_size=4 [15:16:26]MH_SAM_APDU [15:16:26]CAPDU: 80 09 00 00 [15:16:26]Write to MH i2c: E2 08 00 F9 43 80 09 00 00 00 00 00 00 AE [15:16:26]Write i2c OK [15:16:26]MH_I2C_Read... [15:16:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:16:26]Read from MH i2c: E2 [15:16:26]MH_I2C_Read... [15:16:26]Read from MH i2c: E2 03 00 [15:16:26]MH_I2C_Read... [15:16:26]Read from MH i2c: E2 03 00 F9 43 00 90 00 B0 [15:16:26]RAPDU: 90 00 [15:16:26]wFMCommunicate OK [15:16:26]SAM_PROTO_ClearQueue done [15:16:26]KKMCreateOFDPacket [15:16:26]OFDProtocolAddRootSTLVToBuf [15:16:26]FM_MakeSignedData [15:16:26]FM_MakeSignedData [15:16:26]SAM_PROTO_SignData [15:16:26]wFMCommunicate request_size=4 [15:16:26]MH_SAM_APDU [15:16:26]CAPDU: 80 0D 01 02 [15:16:26]Write to MH i2c: E2 08 00 FA 43 80 0D 01 02 00 00 00 00 B6 [15:16:26]Write i2c OK [15:16:26]MH_I2C_Read... [15:16:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:16:26]Read from MH i2c: E2 [15:16:26]MH_I2C_Read... [15:16:26]Read from MH i2c: E2 03 00 [15:16:26]MH_I2C_Read... [15:16:26]Read from MH i2c: E2 03 00 FA 43 00 90 00 B1 [15:16:26]RAPDU: 90 00 [15:16:26]wFMCommunicate OK [15:16:26]wFMCommunicate request_size=255 [15:16:26]MH_SAM_APDU [15:16: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 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 4F DE 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 1D 0B 01 00 35 04 06 00 E3 [15:16:26]Write to MH i2c: E2 02 01 FB 43 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 4F DE 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 1D 0B 01 00 35 04 06 00 E3 00 00 6A [15:16:26]Write i2c OK [15:16:26]MH_I2C_Read... [15:16:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:27]Read from MH i2c: E2 [15:16:27]MH_I2C_Read... [15:16:27]Read from MH i2c: E2 03 00 [15:16:27]MH_I2C_Read... [15:16:27]Read from MH i2c: E2 03 00 FB 43 00 90 00 B2 [15:16:27]RAPDU: 90 00 [15:16:27]wFMCommunicate OK [15:16:27]wFMCommunicate request_size=10 [15:16:27]MH_SAM_APDU [15:16:27]CAPDU: 80 0D 02 02 05 56 81 AB 8C 4F [15:16:27]Write to MH i2c: E2 0D 00 FC 43 80 0D 02 02 05 00 56 81 AB 8C 4F 00 00 20 [15:16:27]Write i2c OK [15:16:27]MH_I2C_Read... [15:16:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:27]Read from MH i2c: E2 [15:16:27]MH_I2C_Read... [15:16:27]Read from MH i2c: E2 03 00 [15:16:27]MH_I2C_Read... [15:16:27]Read from MH i2c: E2 03 00 FC 43 00 90 00 B3 [15:16:27]RAPDU: 90 00 [15:16:27]wFMCommunicate OK [15:16:27]wFMCommunicate request_size=4 [15:16:27]MH_SAM_APDU [15:16:27]CAPDU: 80 0D 03 02 [15:16:27]Write to MH i2c: E2 08 00 FD 43 80 0D 03 02 00 00 00 00 BB [15:16:27]Write i2c OK [15:16:27]MH_I2C_Read... [15:16:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:16:27]Read from MH i2c: E2 [15:16:27]MH_I2C_Read... [15:16:27]Read from MH i2c: E2 0B 00 [15:16:27]MH_I2C_Read... [15:16:27]Read from MH i2c: E2 0B 00 FD 43 00 2B 68 C2 23 95 A3 5A 5F 90 00 25 [15:16:27]RAPDU: 2B 68 C2 23 95 A3 5A 5F 90 00 [15:16:27]wFMCommunicate OK [15:16:27]SAM_PROTO_SignData done [15:16:27]FM_MakeSignedData done [15:16:27]CreateOFDProtocolMessage [15:16:27]wFMCommunicate request_size=4 [15:16:27]MH_SAM_APDU [15:16:27]CAPDU: 80 11 00 00 [15:16:27]Write to MH i2c: E2 08 00 FE 43 80 11 00 00 00 00 00 00 BB [15:16:27]Write i2c OK [15:16:27]MH_I2C_Read... [15:16:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:27]Read from MH i2c: E2 [15:16:27]MH_I2C_Read... [15:16:27]Read from MH i2c: E2 17 00 [15:16:27]MH_I2C_Read... [15:16:27]Read from MH i2c: E2 17 00 FE 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 06 [15:16:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:16:27]wFMCommunicate OK [15:16:27]CreateOFDProtocolMessage done [15:16:27]OFDSenderStorePacket 68381 [15:16:27]StoreOFDPacket docnum=68381 [15:16:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 E0 24 07 01 31 E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 4F DE 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 1D 0B 01 00 35 04 06 00 E3 56 81 AB 8C 4F 2B 68 C2 23 95 A3 5A 5F [15:16:27]CheckFolder [15:16:27]dirname=/storage/ofd_packets [15:16:27]CheckFolder done [15:16:27]ProducePacketName [15:16:27]name=ofd_packets/00068381 [15:16:27]NVStorageSaveData ofd_packets/00068381 [15:16:27]File name is /storage/ofd_packets/00068381 [15:16:27]Write 301 bytes [15:16:27]NVStorageSaveData done [15:16:27]OFDSenderStorePacket done [15:16:27]KKMCreateOFDPacket done [15:16:27]NVStorageSaveData kkm_last_timestamp [15:16:27]File name is /storage/kkm_last_timestamp [15:16:27]Write 4 bytes [15:16:27]NVStorageSaveData done [15:16:27]ExternCall_PrintAddStr [15:16:27]wPrintStart [15:16:27]Write to MH i2c: 01 00 00 FF 43 42 [15:16:27]Write i2c OK [15:16:27]MH_I2C_Read... [15:16:27]Read from MH i2c: 01 [15:16:27]MH_I2C_Read... [15:16:27]Read from MH i2c: 01 07 00 [15:16:27]MH_I2C_Read... [15:16:27]Read from MH i2c: 01 07 00 FF 43 00 00 00 00 00 FF 0F 57 [15:16:27]RasterBufferAndPrint [15:16:27]line Счет N : (1)706477 [15:16:27]line ИНН: 02508201610067 [15:16:27]line Контрольно-Кассовый Чек [15:16:27]line ПРОДАЖА [15:16:27]line ТРК (МРК, ГНК) : 43 [15:16:27]line Товар: 2710124500 [15:16:27]line Аи-95-К-5 [15:16:27]line 13.540 * 73.90 [15:16:27]line = 1000.61 [15:16:27]line НДС 12% НСП 1% [15:16:27]line > о реализуемом товаре [15:16:27]line ОКРУГЛЕНИЕ: -0.61 [15:16:27]line ИТОГО: 1000.00 [15:16:27]line Внесено: 1000.00 [15:16:27]line СДАЧА: 0.00 [15:16:27]line НСП 1% : 8.85 [15:16:27]line НДС 12% : 106.26 [15:16:27]line Наличными: 1000.00 [15:16:27]line Безнал.: 0.00 [15:16:27]line Место: АЗС № 62 "Партнер Нефть" [15:16:27]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [15:16:27]line СНО: Общий режим [15:16:27]line Чек 127 03.06.2024 15:16 [15:16:27]line Смена: 324 ФФД: 1.0 [15:16:27]line ЗНМ: 0300000181 [15:16:27]line РНМ: 0000000000098096 [15:16:27]line Версия ККМ: 001 [15:16:27]line ФМ: 0000000000965400 [15:16:27]line ФД: 68381 [15:16:27]line ФПД: 249960682196047 [15:16:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T151631&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68381&fm=249960682196047&tin=02508201610067®Number=0000000000098096&sum=100000 [15:16:27]OFD Sender: Processing packet 68381 [packets to send 26, broken 25] [15:16:27]ProducePacketName [15:16:27]name=ofd_packets/00068381 [15:16:27]OFD Sender: To server: pG, [15:16:27]CommunicateWithHost lk.salyk.kg:30040 [15:16:27]ConnectInit lk.salyk.kg [15:16:27]written 0, free lines is 4095 [15:16:27]Connected sock=7 [15:16:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 E0 24 07 01 31 E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 4F DE 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 1D 0B 01 00 35 04 06 00 E3 56 81 AB 8C 4F 2B 68 C2 23 95 A3 5A 5F [15:16:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 A1 12 47 00 8A 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 1D 0B 01 00 F4 03 04 00 4A 85 5D 66 B6 04 01 00 00 E1 F7 F4 B7 BC FC 9D F9 [15:16:27]CommunicateWithHost err = 0 [15:16:27]CheckOFDResponse [15:16:27]1017 (14) - 77093643461234 [15:16:27]1041 (16) - 0000000000965400 [15:16:27]1040 (4) - 68381 [15:16:27]1012 (4) - 03.06.2024 08:56 [15:16:27]1206 (1) - 0 [15:16:27]OFD Sender: Remove packet 68381 [15:16:27]ProducePacketName [15:16:27]name=ofd_packets/00068381 [15:16:27]NVStorageDeleteData [15:16:27]Write to MH i2c: 01 00 00 2A 44 6E [15:16:27]Write i2c OK [15:16:27]MH_I2C_Read... [15:16:27]Read from MH i2c: 01 [15:16:27]MH_I2C_Read... [15:16:27]Read from MH i2c: 01 07 00 [15:16:27]MH_I2C_Read... [15:16:27]Read from MH i2c: 01 07 00 2A 44 00 00 00 00 00 DA 0C 5B [15:16:27]RasterBufferAndPrint [15:16:27]line [15:16:27]line [15:16:27]line [15:16:27]line [15:16:27]line [15:16:27]written 0, free lines is 3297 [15:16:27]MH_Cut [15:16:27]Write to MH i2c: D1 01 00 31 44 01 47 [15:16:27]Write i2c OK [15:16:27]MH_I2C_Read... [15:16:27]Read from MH i2c: D1 [15:16:27]MH_I2C_Read... [15:16:27]Read from MH i2c: D1 01 00 [15:16:27]MH_I2C_Read... [15:16:27]Read from MH i2c: D1 01 00 31 44 00 46 [15:16:27]Write to MH i2c: 01 00 00 32 44 76 [15:16:27]Write i2c OK [15:16:27]MH_I2C_Read... [15:16:28]OFD Sender: No OFD packet to send [15:16:28]*** Cut start [15:16:28]*** Partial cut [15:16:28]*** CUTSNS_PIN = 1 [15:16:28]*** CUTSNS_PIN = 0 [15:16:29]*** Brake cut motor [15:16:29]Read from MH i2c: 01 [15:16:29]MH_I2C_Read... [15:16:29]*** Stop cut motor [15:16:29]*** Cut end [15:16:29]Read from MH i2c: 01 07 00 [15:16:29]MH_I2C_Read... [15:16:29]Read from MH i2c: 01 07 00 32 44 00 00 00 00 00 FF 0F 8B [15:16:29]process_action close_receipt done [15:16:29]requested_data is exist [15:16:29]produce_requested_data [15:16:29]requested_item fm.sn is exist - process it [15:16:29]wFMCommunicate request_size=4 [15:16:29]MH_SAM_APDU [15:16:29]CAPDU: 80 11 00 00 [15:16:29]Write to MH i2c: E2 08 00 33 44 80 11 00 00 00 00 00 00 F1 [15:16:29]Write i2c OK [15:16:29]MH_I2C_Read... [15:16:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:29]Read from MH i2c: E2 [15:16:29]MH_I2C_Read... [15:16:29]Read from MH i2c: E2 17 00 [15:16:29]MH_I2C_Read... [15:16:29]Read from MH i2c: E2 17 00 33 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 3C [15:16:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:16:29]wFMCommunicate OK [15:16:29]requested_item fd.num is exist - process it [15:16:29]SAM_PROTO_GetFieldsCounters [15:16:29]wFMCommunicate request_size=4 [15:16:29]MH_SAM_APDU [15:16:29]CAPDU: 80 13 00 00 [15:16:29]Write to MH i2c: E2 08 00 34 44 80 13 00 00 00 00 00 00 F4 [15:16:29]Write i2c OK [15:16:29]MH_I2C_Read... [15:16:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:16:29]Read from MH i2c: E2 [15:16:29]MH_I2C_Read... [15:16:29]Read from MH i2c: E2 62 00 [15:16:29]MH_I2C_Read... [15:16:29]Read from MH i2c: E2 62 00 34 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 1D 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 FF [15:16:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 1D 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:16:29]wFMCommunicate OK [15:16:29]SAM_PROTO_GetFieldsCounters done [15:16:29]requested_item shift.num is exist - process it [15:16:29]requested_item shift.opened is exist - process it [15:16:29]req_shift_opened [15:16:29]FM_GetShiftState [15:16:29]SAM_PROTO_GetShiftState [15:16:29]wFMCommunicate request_size=4 [15:16:29]MH_SAM_APDU [15:16:29]CAPDU: 80 13 01 00 [15:16:29]Write to MH i2c: E2 08 00 35 44 80 13 01 00 00 00 00 00 F6 [15:16:29]Write i2c OK [15:16:29]MH_I2C_Read... [15:16:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:29]Read from MH i2c: E2 [15:16:29]MH_I2C_Read... [15:16:29]Read from MH i2c: E2 0E 00 [15:16:29]MH_I2C_Read... [15:16:29]Read from MH i2c: E2 0E 00 35 44 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 D1 [15:16:29]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [15:16:29]wFMCommunicate OK [15:16:29]SAM_PROTO_GetShiftState done [15:16:29]FM_GetShiftState done [15:16:29]req_shift_opened done [15:16:29]requested_item shift.open_date is exist - process it [15:16:29]req_shift_open_date [15:16:29]req_shift_open_date done [15:16:29]produce_requested_data done [15:16:29]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68381,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [15:16:29]process_action_free close_receipt [15:16:29]json_value_free [15:16:29]json_value_free done [15:16:29]process_json_proto returns [15:16:29]Send response to host [15:16:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68381,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [15:16:29]free response buf [15:16:29]execute_script done [15:16:29]execute_script returns [15:16:29]free content buf [15:16:29]Sock 5.Close socket [15:16:29]Sock 5.Thread stoped [15:16:33]OFD Sender: No OFD packet to send [15:16:38]OFD Sender: No OFD packet to send [15:16:43]OFD Sender: No OFD packet to send [15:16:48]OFD Sender: No OFD packet to send [15:16:53]OFD Sender: No OFD packet to send [15:16:58]OFD Sender: No OFD packet to send [15:17:03]OFD Sender: No OFD packet to send [15:17:08]OFD Sender: No OFD packet to send [15:17:13]OFD Sender: No OFD packet to send [15:17:18]OFD Sender: No OFD packet to send [15:17:23]OFD Sender: No OFD packet to send [15:17:28]OFD Sender: No OFD packet to send [15:17:33]OFD Sender: No OFD packet to send [15:17:38]OFD Sender: No OFD packet to send [15:17:43]OFD Sender: No OFD packet to send [15:17:48]OFD Sender: No OFD packet to send [15:17:53]OFD Sender: No OFD packet to send [15:17:58]OFD Sender: No OFD packet to send [15:18:03]OFD Sender: No OFD packet to send [15:18:08]OFD Sender: No OFD packet to send [15:18:13]OFD Sender: No OFD packet to send [15:18:18]OFD Sender: No OFD packet to send [15:18:23]OFD Sender: No OFD packet to send [15:18:28]OFD Sender: No OFD packet to send [15:18:33]OFD Sender: No OFD packet to send [15:18:38]OFD Sender: No OFD packet to send [15:18:43]OFD Sender: No OFD packet to send [15:18:48]OFD Sender: No OFD packet to send [15:18:53]OFD Sender: No OFD packet to send [15:18:58]OFD Sender: No OFD packet to send [15:19:03]OFD Sender: No OFD packet to send [15:19:08]OFD Sender: No OFD packet to send [15:19:13]OFD Sender: No OFD packet to send [15:19:18]OFD Sender: No OFD packet to send [15:19:23]OFD Sender: No OFD packet to send [15:19:24]accept exits with 6 [15:19:24]New connection [15:19:24]New thread 3066543460 created [15:19:24]Thread 3066686820 joined [15:19:24]Waiting for new connection... [15:19:24] Sock 6.Parse request [15:19:24]Sock 6.Check first char [15:19:24]Sock 6.First char is OK [15:19:24]request: POST /json_proto HTTP/1.0 [15:19:24]Method: POST [15:19:24]URL: /json_proto [15:19:24]Method is POST - this is cgi request [15:19:24]url: /json_proto [15:19:24]query_string will be loaded in cgi processing [15:19:24]execute_cgi json_proto POST (null) [15:19:24]execute_cgi path=json_proto method=POST [15:19:24]POST find Content-Length [15:19:24]Host: 172.17.36.132:8080 [15:19:24]Content-Length: 682 [15:19:24]Content-Type: application/json [15:19:24] [15:19:24]POST finish read [15:19:24]Found Content-Length = 682 [15:19:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706478", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:19:24]execute_script... [15:19:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706478", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:19:24]POST & json_proto [15:19:24]process_json_proto [15:19:24]json parsed OK: [15:19:24]protocol is kg_v1.0 [15:19:24]action value=close_receipt [15:19:24]process_action close_receipt [15:19:24]cmd_close_receipt [15:19:24]MH_GetDate [15:19:24]Write to MH i2c: F0 00 00 36 44 69 [15:19:24]Write i2c OK [15:19:24]MH_I2C_Read... [15:19:24]Read from MH i2c: F0 [15:19:24]MH_I2C_Read... [15:19:24]Read from MH i2c: F0 09 00 [15:19:24]MH_I2C_Read... [15:19:24]Read from MH i2c: F0 09 00 36 44 00 02 DF 5D 66 B2 22 B0 64 FE [15:19:24]GetLastDocTimeStamp 1717427791 [15:19:24]current date 1717427970 [15:19:24]FM_GetShiftState [15:19:24]SAM_PROTO_GetShiftState [15:19:24]wFMCommunicate request_size=4 [15:19:24]MH_SAM_APDU [15:19:24]CAPDU: 80 13 01 00 [15:19:24]Write to MH i2c: E2 08 00 37 44 80 13 01 00 00 00 00 00 F8 [15:19:24]Write i2c OK [15:19:24]MH_I2C_Read... [15:19:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:19:24]Read from MH i2c: E2 [15:19:24]MH_I2C_Read... [15:19:24]Read from MH i2c: E2 0E 00 [15:19:24]MH_I2C_Read... [15:19:24]Read from MH i2c: E2 0E 00 37 44 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 D3 [15:19:24]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [15:19:24]wFMCommunicate OK [15:19:24]SAM_PROTO_GetShiftState done [15:19:24]FM_GetShiftState done [15:19:24]opened in 1717378033 [15:19:24]opened+sec_in_day 1717464433 [15:19:24]quantity*price = 50009 [15:19:24]sum+1 = 50010 [15:19:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 128 03.06.2024 15:19 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68382 ФПД: 168564833497726 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T151930&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68382&fm=168564833497726&tin=02508201610067®Number=0000000000098096&sum=50000 [15:19:25]StoreToDocumentArchive [15:19:25]shift 324 fd 68382 [15:19:25]save to /storage/0324/doc_00068382 [15:19:25]save last doc name /storage/0324/doc_00068382 to /storage/kkm_last_doc_name [15:19:25]save OK [15:19:25]Clear old archive folders... [15:19:25]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:19:25]tlvbuf is B6E99610 [15:19:25]SAM_PROTO_ClearQueue [15:19:25]wFMCommunicate request_size=4 [15:19:25]MH_SAM_APDU [15:19:25]CAPDU: 80 09 00 00 [15:19:25]Write to MH i2c: E2 08 00 44 44 80 09 00 00 00 00 00 00 FA [15:19:25]Write i2c OK [15:19:25]MH_I2C_Read... [15:19:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:19:25]Read from MH i2c: E2 [15:19:25]MH_I2C_Read... [15:19:25]Read from MH i2c: E2 03 00 [15:19:25]MH_I2C_Read... [15:19:25]Read from MH i2c: E2 03 00 44 44 00 90 00 FC [15:19:25]RAPDU: 90 00 [15:19:25]wFMCommunicate OK [15:19:25]SAM_PROTO_ClearQueue done [15:19:25]KKMCreateOFDPacket [15:19:25]OFDProtocolAddRootSTLVToBuf [15:19:25]FM_MakeSignedData [15:19:25]FM_MakeSignedData [15:19:25]SAM_PROTO_SignData [15:19:25]wFMCommunicate request_size=4 [15:19:25]MH_SAM_APDU [15:19:25]CAPDU: 80 0D 01 02 [15:19:25]Write to MH i2c: E2 08 00 45 44 80 0D 01 02 00 00 00 00 02 [15:19:25]Write i2c OK [15:19:25]MH_I2C_Read... [15:19:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:19:25]Read from MH i2c: E2 [15:19:25]MH_I2C_Read... [15:19:25]Read from MH i2c: E2 03 00 [15:19:25]MH_I2C_Read... [15:19:25]Read from MH i2c: E2 03 00 45 44 00 90 00 FD [15:19:25]RAPDU: 90 00 [15:19:25]wFMCommunicate OK [15:19:25]wFMCommunicate request_size=255 [15:19:25]MH_SAM_APDU [15:19: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 34 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 02 DF 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 1E 0B 01 00 35 04 06 00 [15:19:25]Write to MH i2c: E2 02 01 46 44 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 34 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 02 DF 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 1E 0B 01 00 35 04 06 00 00 00 25 [15:19:25]Write i2c OK [15:19:25]MH_I2C_Read... [15:19:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:19:26]Read from MH i2c: E2 [15:19:26]MH_I2C_Read... [15:19:26]Read from MH i2c: E2 03 00 [15:19:26]MH_I2C_Read... [15:19:26]Read from MH i2c: E2 03 00 46 44 00 90 00 FE [15:19:26]RAPDU: 90 00 [15:19:26]wFMCommunicate OK [15:19:26]wFMCommunicate request_size=11 [15:19:26]MH_SAM_APDU [15:19:26]CAPDU: 80 0D 02 02 06 99 4F 0F 05 B2 7E [15:19:26]Write to MH i2c: E2 0E 00 47 44 80 0D 02 02 06 00 99 4F 0F 05 B2 7E 00 00 3D [15:19:26]Write i2c OK [15:19:26]MH_I2C_Read... [15:19:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:19:26]Read from MH i2c: E2 [15:19:26]MH_I2C_Read... [15:19:26]Read from MH i2c: E2 03 00 [15:19:26]MH_I2C_Read... [15:19:26]Read from MH i2c: E2 03 00 47 44 00 90 00 FF [15:19:26]RAPDU: 90 00 [15:19:26]wFMCommunicate OK [15:19:26]wFMCommunicate request_size=4 [15:19:26]MH_SAM_APDU [15:19:26]CAPDU: 80 0D 03 02 [15:19:26]Write to MH i2c: E2 08 00 48 44 80 0D 03 02 00 00 00 00 07 [15:19:26]Write i2c OK [15:19:26]MH_I2C_Read... [15:19:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:19:26]Read from MH i2c: E2 [15:19:26]MH_I2C_Read... [15:19:26]Read from MH i2c: E2 0B 00 [15:19:26]MH_I2C_Read... [15:19:26]Read from MH i2c: E2 0B 00 48 44 00 79 08 4E 2C 57 B3 07 71 90 00 85 [15:19:26]RAPDU: 79 08 4E 2C 57 B3 07 71 90 00 [15:19:26]wFMCommunicate OK [15:19:26]SAM_PROTO_SignData done [15:19:26]FM_MakeSignedData done [15:19:26]CreateOFDProtocolMessage [15:19:26]wFMCommunicate request_size=4 [15:19:26]MH_SAM_APDU [15:19:26]CAPDU: 80 11 00 00 [15:19:26]Write to MH i2c: E2 08 00 49 44 80 11 00 00 00 00 00 00 07 [15:19:26]Write i2c OK [15:19:26]MH_I2C_Read... [15:19:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:19:26]Read from MH i2c: E2 [15:19:26]MH_I2C_Read... [15:19:26]Read from MH i2c: E2 17 00 [15:19:26]MH_I2C_Read... [15:19:26]Read from MH i2c: E2 17 00 49 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 52 [15:19:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:19:26]wFMCommunicate OK [15:19:26]CreateOFDProtocolMessage done [15:19:26]OFDSenderStorePacket 68382 [15:19:26]StoreOFDPacket docnum=68382 [15:19:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 A0 F3 08 01 5E 9F 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 34 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 02 DF 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 1E 0B 01 00 35 04 06 00 99 4F 0F 05 B2 7E 79 08 4E 2C 57 B3 07 71 [15:19:26]CheckFolder [15:19:26]dirname=/storage/ofd_packets [15:19:26]CheckFolder done [15:19:26]ProducePacketName [15:19:26]name=ofd_packets/00068382 [15:19:26]NVStorageSaveData ofd_packets/00068382 [15:19:26]File name is /storage/ofd_packets/00068382 [15:19:26]Write 302 bytes [15:19:26]NVStorageSaveData done [15:19:26]OFDSenderStorePacket done [15:19:26]KKMCreateOFDPacket done [15:19:26]NVStorageSaveData kkm_last_timestamp [15:19:26]File name is /storage/kkm_last_timestamp [15:19:26]Write 4 bytes [15:19:26]NVStorageSaveData done [15:19:26]ExternCall_PrintAddStr [15:19:26]wPrintStart [15:19:26]Write to MH i2c: 01 00 00 4A 44 8E [15:19:26]Write i2c OK [15:19:26]MH_I2C_Read... [15:19:26]Read from MH i2c: 01 [15:19:26]MH_I2C_Read... [15:19:26]Read from MH i2c: 01 07 00 [15:19:26]MH_I2C_Read... [15:19:26]Read from MH i2c: 01 07 00 4A 44 00 00 00 00 00 FF 0F A3 [15:19:26]RasterBufferAndPrint [15:19:26]line Счет N : (1)706478 [15:19:26]line ИНН: 02508201610067 [15:19:26]line Контрольно-Кассовый Чек [15:19:26]line ПРОДАЖА [15:19:26]line ТРК (МРК, ГНК) : 21 [15:19:26]line Товар: 2710194210 [15:19:26]line ДТ(л)-К-4 [15:19:26]line 6.860 * 72.90 [15:19:26]line = 500.09 [15:19:26]line НДС 12% НСП 1% [15:19:26]line > о реализуемом товаре [15:19:26]line ОКРУГЛЕНИЕ: -0.09 [15:19:26]line ИТОГО: 500.00 [15:19:26]line Внесено: 500.00 [15:19:26]line СДАЧА: 0.00 [15:19:26]line НСП 1% : 4.43 [15:19:26]line НДС 12% : 53.11 [15:19:26]line Наличными: 500.00 [15:19:26]line Безнал.: 0.00 [15:19:26]line Место: АЗС № 62 "Партнер Нефть" [15:19:26]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [15:19:26]line СНО: Общий режим [15:19:26]line Чек 128 03.06.2024 15:19 [15:19:26]line Смена: 324 ФФД: 1.0 [15:19:26]line ЗНМ: 0300000181 [15:19:26]line РНМ: 0000000000098096 [15:19:26]line Версия ККМ: 001 [15:19:26]line ФМ: 0000000000965400 [15:19:26]line ФД: 68382 [15:19:26]line ФПД: 168564833497726 [15:19:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T151930&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68382&fm=168564833497726&tin=02508201610067®Number=0000000000098096&sum=50000 [15:19:26]OFD Sender: Processing packet 68382 [packets to send 26, broken 25] [15:19:26]ProducePacketName [15:19:26]name=ofd_packets/00068382 [15:19:26]OFD Sender: To server: pG, [15:19:26]CommunicateWithHost lk.salyk.kg:30040 [15:19:26]ConnectInit lk.salyk.kg [15:19:26]written 0, free lines is 4095 [15:19:26]Connected sock=9 [15:19:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 A0 F3 08 01 5E 9F 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 34 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 02 DF 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 1E 0B 01 00 35 04 06 00 99 4F 0F 05 B2 7E 79 08 4E 2C 57 B3 07 71 [15:19:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 0B 6F 47 00 67 B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 1E 0B 01 00 F4 03 04 00 FE 85 5D 66 B6 04 01 00 00 08 56 B1 64 46 53 FE E7 [15:19:26]CommunicateWithHost err = 0 [15:19:26]CheckOFDResponse [15:19:26]1017 (14) - 77093643461234 [15:19:26]1041 (16) - 0000000000965400 [15:19:26]1040 (4) - 68382 [15:19:26]1012 (4) - 03.06.2024 08:59 [15:19:26]1206 (1) - 0 [15:19:26]OFD Sender: Remove packet 68382 [15:19:26]ProducePacketName [15:19:26]name=ofd_packets/00068382 [15:19:26]NVStorageDeleteData [15:19:27]Write to MH i2c: 01 00 00 75 44 B9 [15:19:27]Write i2c OK [15:19:27]MH_I2C_Read... [15:19:27]Read from MH i2c: 01 [15:19:27]MH_I2C_Read... [15:19:27]Read from MH i2c: 01 07 00 [15:19:27]MH_I2C_Read... [15:19:27]Read from MH i2c: 01 07 00 75 44 00 00 00 00 00 D7 0C A3 [15:19:27]RasterBufferAndPrint [15:19:27]line [15:19:27]line [15:19:27]line [15:19:27]line [15:19:27]line [15:19:27]written 0, free lines is 3294 [15:19:27]MH_Cut [15:19:27]Write to MH i2c: D1 01 00 7C 44 01 92 [15:19:27]Write i2c OK [15:19:27]MH_I2C_Read... [15:19:27]Read from MH i2c: D1 [15:19:27]MH_I2C_Read... [15:19:27]Read from MH i2c: D1 01 00 [15:19:27]MH_I2C_Read... [15:19:27]Read from MH i2c: D1 01 00 7C 44 00 91 [15:19:27]Write to MH i2c: 01 00 00 7D 44 C1 [15:19:27]Write i2c OK [15:19:27]MH_I2C_Read... [15:19:27]OFD Sender: No OFD packet to send [15:19:27]*** Cut start [15:19:27]*** Partial cut [15:19:27]*** CUTSNS_PIN = 1 [15:19:27]*** CUTSNS_PIN = 0 [15:19:28]*** Brake cut motor [15:19:28]Read from MH i2c: 01 [15:19:28]MH_I2C_Read... [15:19:28]*** Stop cut motor [15:19:28]*** Cut end [15:19:28]Read from MH i2c: 01 07 00 [15:19:28]MH_I2C_Read... [15:19:28]Read from MH i2c: 01 07 00 7D 44 00 00 00 00 00 FF 0F D6 [15:19:28]process_action close_receipt done [15:19:28]requested_data is exist [15:19:28]produce_requested_data [15:19:28]requested_item fm.sn is exist - process it [15:19:28]wFMCommunicate request_size=4 [15:19:28]MH_SAM_APDU [15:19:28]CAPDU: 80 11 00 00 [15:19:28]Write to MH i2c: E2 08 00 7E 44 80 11 00 00 00 00 00 00 3C [15:19:28]Write i2c OK [15:19:28]MH_I2C_Read... [15:19:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:19:28]Read from MH i2c: E2 [15:19:28]MH_I2C_Read... [15:19:28]Read from MH i2c: E2 17 00 [15:19:28]MH_I2C_Read... [15:19:28]Read from MH i2c: E2 17 00 7E 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 87 [15:19:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:19:28]wFMCommunicate OK [15:19:28]requested_item fd.num is exist - process it [15:19:28]SAM_PROTO_GetFieldsCounters [15:19:28]wFMCommunicate request_size=4 [15:19:28]MH_SAM_APDU [15:19:28]CAPDU: 80 13 00 00 [15:19:28]Write to MH i2c: E2 08 00 7F 44 80 13 00 00 00 00 00 00 3F [15:19:28]Write i2c OK [15:19:28]MH_I2C_Read... [15:19:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:19:28]Read from MH i2c: E2 [15:19:28]MH_I2C_Read... [15:19:28]Read from MH i2c: E2 62 00 [15:19:28]MH_I2C_Read... [15:19:28]Read from MH i2c: E2 62 00 7F 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 1E 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 4E [15:19:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 1E 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:19:28]wFMCommunicate OK [15:19:28]SAM_PROTO_GetFieldsCounters done [15:19:28]requested_item shift.num is exist - process it [15:19:28]requested_item shift.opened is exist - process it [15:19:28]req_shift_opened [15:19:28]FM_GetShiftState [15:19:28]SAM_PROTO_GetShiftState [15:19:28]wFMCommunicate request_size=4 [15:19:28]MH_SAM_APDU [15:19:28]CAPDU: 80 13 01 00 [15:19:28]Write to MH i2c: E2 08 00 80 44 80 13 01 00 00 00 00 00 41 [15:19:28]Write i2c OK [15:19:28]MH_I2C_Read... [15:19:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:19:28]Read from MH i2c: E2 [15:19:28]MH_I2C_Read... [15:19:28]Read from MH i2c: E2 0E 00 [15:19:28]MH_I2C_Read... [15:19:28]Read from MH i2c: E2 0E 00 80 44 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 1C [15:19:28]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [15:19:28]wFMCommunicate OK [15:19:28]SAM_PROTO_GetShiftState done [15:19:28]FM_GetShiftState done [15:19:28]req_shift_opened done [15:19:28]requested_item shift.open_date is exist - process it [15:19:28]req_shift_open_date [15:19:28]req_shift_open_date done [15:19:28]produce_requested_data done [15:19:28]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68382,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [15:19:28]process_action_free close_receipt [15:19:28]json_value_free [15:19:28]json_value_free done [15:19:28]process_json_proto returns [15:19:28]Send response to host [15:19:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68382,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [15:19:28]free response buf [15:19:28]execute_script done [15:19:28]execute_script returns [15:19:28]free content buf [15:19:28]Sock 6.Close socket [15:19:28]Sock 6.Thread stoped [15:19:32]OFD Sender: No OFD packet to send [15:19:37]OFD Sender: No OFD packet to send [15:19:42]OFD Sender: No OFD packet to send [15:19:47]OFD Sender: No OFD packet to send [15:19:52]OFD Sender: No OFD packet to send [15:19:57]OFD Sender: No OFD packet to send [15:20:02]OFD Sender: No OFD packet to send [15:20:07]OFD Sender: No OFD packet to send [15:20:12]OFD Sender: No OFD packet to send [15:20:17]OFD Sender: No OFD packet to send [15:20:22]OFD Sender: No OFD packet to send [15:20:27]OFD Sender: No OFD packet to send [15:20:32]OFD Sender: No OFD packet to send [15:20:37]OFD Sender: No OFD packet to send [15:20:42]OFD Sender: No OFD packet to send [15:20:47]OFD Sender: No OFD packet to send [15:20:52]OFD Sender: No OFD packet to send [15:20:57]OFD Sender: No OFD packet to send [15:21:02]OFD Sender: No OFD packet to send [15:21:07]OFD Sender: No OFD packet to send [15:21:12]OFD Sender: No OFD packet to send [15:21:17]OFD Sender: No OFD packet to send [15:21:22]OFD Sender: No OFD packet to send [15:21:27]OFD Sender: No OFD packet to send [15:21:32]OFD Sender: No OFD packet to send [15:21:37]OFD Sender: No OFD packet to send [15:21:42]OFD Sender: No OFD packet to send [15:21:47]OFD Sender: No OFD packet to send [15:21:52]OFD Sender: No OFD packet to send [15:21:57]OFD Sender: No OFD packet to send [15:22:02]OFD Sender: No OFD packet to send [15:22:07]OFD Sender: No OFD packet to send [15:22:12]OFD Sender: No OFD packet to send [15:22:17]OFD Sender: No OFD packet to send [15:22:22]OFD Sender: No OFD packet to send [15:22:27]OFD Sender: No OFD packet to send [15:22:32]OFD Sender: No OFD packet to send [15:22:37]OFD Sender: No OFD packet to send [15:22:42]OFD Sender: No OFD packet to send [15:22:47]OFD Sender: No OFD packet to send [15:22:52]OFD Sender: No OFD packet to send [15:22:57]OFD Sender: No OFD packet to send [15:23:02]OFD Sender: No OFD packet to send [15:23:07]OFD Sender: No OFD packet to send [15:23:09]accept exits with 5 [15:23:09]New connection [15:23:09]New thread 3066686820 created [15:23:09]Thread 3066543460 joined [15:23:09]Waiting for new connection... [15:23:09] Sock 5.Parse request [15:23:09]Sock 5.Check first char [15:23:09]Sock 5.First char is OK [15:23:09]request: POST /json_proto HTTP/1.0 [15:23:09]Method: POST [15:23:09]URL: /json_proto [15:23:09]Method is POST - this is cgi request [15:23:09]url: /json_proto [15:23:09]query_string will be loaded in cgi processing [15:23:09]execute_cgi json_proto POST (null) [15:23:09]execute_cgi path=json_proto method=POST [15:23:09]POST find Content-Length [15:23:09]Host: 172.17.36.132:8080 [15:23:09]Content-Length: 845 [15:23:09]Content-Type: application/json [15:23:09] [15:23:09]POST finish read [15:23:09]Found Content-Length = 845 [15:23:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706479", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 4.810, "sum" : 350.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 350.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:23:09]execute_script... [15:23: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)706479", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 4.810, "sum" : 350.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 350.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:23:09]POST & json_proto [15:23:09]process_json_proto [15:23:09]json parsed OK: [15:23:09]protocol is kg_v1.0 [15:23:09]action value=close_receipt [15:23:09]process_action close_receipt [15:23:09]cmd_close_receipt [15:23:09]MH_GetDate [15:23:09]Write to MH i2c: F0 00 00 81 44 B4 [15:23:09]Write i2c OK [15:23:09]MH_I2C_Read... [15:23:09]Read from MH i2c: F0 [15:23:09]MH_I2C_Read... [15:23:09]Read from MH i2c: F0 09 00 [15:23:09]MH_I2C_Read... [15:23:09]Read from MH i2c: F0 09 00 81 44 00 E2 DF 5D 66 B2 22 B0 64 29 [15:23:09]GetLastDocTimeStamp 1717427970 [15:23:09]current date 1717428194 [15:23:09]FM_GetShiftState [15:23:09]SAM_PROTO_GetShiftState [15:23:09]wFMCommunicate request_size=4 [15:23:09]MH_SAM_APDU [15:23:09]CAPDU: 80 13 01 00 [15:23:09]Write to MH i2c: E2 08 00 82 44 80 13 01 00 00 00 00 00 43 [15:23:09]Write i2c OK [15:23:09]MH_I2C_Read... [15:23:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:09]Read from MH i2c: E2 [15:23:09]MH_I2C_Read... [15:23:09]Read from MH i2c: E2 0E 00 [15:23:09]MH_I2C_Read... [15:23:09]Read from MH i2c: E2 0E 00 82 44 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 1E [15:23:09]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [15:23:09]wFMCommunicate OK [15:23:09]SAM_PROTO_GetShiftState done [15:23:09]FM_GetShiftState done [15:23:09]opened in 1717378033 [15:23:09]opened+sec_in_day 1717464433 [15:23:09]quantity*price = 35064 [15:23:09]sum+1 = 35066 [15:23:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 350.65 НСП 1% : 3.10 НДС 12% : 37.24 Наличными: 0.00 Безнал.: 350.65 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 129 03.06.2024 15:23 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68383 ФПД: 60590472474980 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T152314&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68383&fm=60590472474980&tin=02508201610067®Number=0000000000098096&sum=35065 [15:23:10]StoreToDocumentArchive [15:23:10]shift 324 fd 68383 [15:23:10]save to /storage/0324/doc_00068383 [15:23:10]save last doc name /storage/0324/doc_00068383 to /storage/kkm_last_doc_name [15:23:10]save OK [15:23:10]Clear old archive folders... [15:23:10]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:23:10]tlvbuf is B6E994D0 [15:23:10]SAM_PROTO_ClearQueue [15:23:10]wFMCommunicate request_size=4 [15:23:10]MH_SAM_APDU [15:23:10]CAPDU: 80 09 00 00 [15:23:10]Write to MH i2c: E2 08 00 8F 44 80 09 00 00 00 00 00 00 45 [15:23:10]Write i2c OK [15:23:10]MH_I2C_Read... [15:23:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:23:10]Read from MH i2c: E2 [15:23:10]MH_I2C_Read... [15:23:10]Read from MH i2c: E2 03 00 [15:23:10]MH_I2C_Read... [15:23:10]Read from MH i2c: E2 03 00 8F 44 00 90 00 47 [15:23:10]RAPDU: 90 00 [15:23:10]wFMCommunicate OK [15:23:10]SAM_PROTO_ClearQueue done [15:23:10]KKMCreateOFDPacket [15:23:10]OFDProtocolAddRootSTLVToBuf [15:23:10]FM_MakeSignedData [15:23:10]FM_MakeSignedData [15:23:10]SAM_PROTO_SignData [15:23:10]wFMCommunicate request_size=4 [15:23:10]MH_SAM_APDU [15:23:10]CAPDU: 80 0D 01 02 [15:23:10]Write to MH i2c: E2 08 00 90 44 80 0D 01 02 00 00 00 00 4D [15:23:10]Write i2c OK [15:23:10]MH_I2C_Read... [15:23:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:23:10]Read from MH i2c: E2 [15:23:10]MH_I2C_Read... [15:23:10]Read from MH i2c: E2 03 00 [15:23:10]MH_I2C_Read... [15:23:10]Read from MH i2c: E2 03 00 90 44 00 90 00 48 [15:23:10]RAPDU: 90 00 [15:23:10]wFMCommunicate OK [15:23:10]wFMCommunicate request_size=255 [15:23:10]MH_SAM_APDU [15:23: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 34 FF 03 08 00 03 CA 12 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 F9 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F9 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F9 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 E2 DF 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 1F 0B 01 00 35 04 06 00 [15:23:10]Write to MH i2c: E2 02 01 91 44 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 34 FF 03 08 00 03 CA 12 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 F9 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F9 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F9 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 E2 DF 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 1F 0B 01 00 35 04 06 00 00 00 CB [15:23:10]Write i2c OK [15:23:10]MH_I2C_Read... [15:23:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:10]Read from MH i2c: E2 [15:23:10]MH_I2C_Read... [15:23:10]Read from MH i2c: E2 03 00 [15:23:10]MH_I2C_Read... [15:23:10]Read from MH i2c: E2 03 00 91 44 00 90 00 49 [15:23:10]RAPDU: 90 00 [15:23:10]wFMCommunicate OK [15:23:10]wFMCommunicate request_size=11 [15:23:10]MH_SAM_APDU [15:23:10]CAPDU: 80 0D 02 02 06 37 1B 51 96 B1 64 [15:23:10]Write to MH i2c: E2 0E 00 92 44 80 0D 02 02 06 00 37 1B 51 96 B1 64 00 00 AA [15:23:10]Write i2c OK [15:23:10]MH_I2C_Read... [15:23:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:10]Read from MH i2c: E2 [15:23:10]MH_I2C_Read... [15:23:10]Read from MH i2c: E2 03 00 [15:23:10]MH_I2C_Read... [15:23:10]Read from MH i2c: E2 03 00 92 44 00 90 00 4A [15:23:10]RAPDU: 90 00 [15:23:10]wFMCommunicate OK [15:23:10]wFMCommunicate request_size=4 [15:23:10]MH_SAM_APDU [15:23:10]CAPDU: 80 0D 03 02 [15:23:10]Write to MH i2c: E2 08 00 93 44 80 0D 03 02 00 00 00 00 52 [15:23:10]Write i2c OK [15:23:10]MH_I2C_Read... [15:23:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:23:10]Read from MH i2c: E2 [15:23:10]MH_I2C_Read... [15:23:10]Read from MH i2c: E2 0B 00 [15:23:10]MH_I2C_Read... [15:23:10]Read from MH i2c: E2 0B 00 93 44 00 AB 82 2E 6F 98 20 6F 85 90 00 C9 [15:23:10]RAPDU: AB 82 2E 6F 98 20 6F 85 90 00 [15:23:10]wFMCommunicate OK [15:23:10]SAM_PROTO_SignData done [15:23:10]FM_MakeSignedData done [15:23:10]CreateOFDProtocolMessage [15:23:10]wFMCommunicate request_size=4 [15:23:10]MH_SAM_APDU [15:23:10]CAPDU: 80 11 00 00 [15:23:10]Write to MH i2c: E2 08 00 94 44 80 11 00 00 00 00 00 00 52 [15:23:10]Write i2c OK [15:23:10]MH_I2C_Read... [15:23:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:10]Read from MH i2c: E2 [15:23:10]MH_I2C_Read... [15:23:10]Read from MH i2c: E2 17 00 [15:23:10]MH_I2C_Read... [15:23:10]Read from MH i2c: E2 17 00 94 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 9D [15:23:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:23:10]wFMCommunicate OK [15:23:10]CreateOFDProtocolMessage done [15:23:10]OFDSenderStorePacket 68383 [15:23:10]StoreOFDPacket docnum=68383 [15:23:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 59 F9 08 01 85 26 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 34 FF 03 08 00 03 CA 12 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 F9 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F9 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F9 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 E2 DF 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 1F 0B 01 00 35 04 06 00 37 1B 51 96 B1 64 AB 82 2E 6F 98 20 6F 85 [15:23:10]CheckFolder [15:23:10]dirname=/storage/ofd_packets [15:23:10]CheckFolder done [15:23:10]ProducePacketName [15:23:10]name=ofd_packets/00068383 [15:23:10]NVStorageSaveData ofd_packets/00068383 [15:23:10]File name is /storage/ofd_packets/00068383 [15:23:10]Write 302 bytes [15:23:10]NVStorageSaveData done [15:23:10]OFDSenderStorePacket done [15:23:10]KKMCreateOFDPacket done [15:23:10]NVStorageSaveData kkm_last_timestamp [15:23:10]File name is /storage/kkm_last_timestamp [15:23:10]Write 4 bytes [15:23:10]NVStorageSaveData done [15:23:10]ExternCall_PrintAddStr [15:23:10]wPrintStart [15:23:10]Write to MH i2c: 01 00 00 95 44 D9 [15:23:10]Write i2c OK [15:23:10]MH_I2C_Read... [15:23:10]Read from MH i2c: 01 [15:23:10]MH_I2C_Read... [15:23:10]Read from MH i2c: 01 07 00 [15:23:10]MH_I2C_Read... [15:23:10]Read from MH i2c: 01 07 00 95 44 00 00 00 00 00 FF 0F EE [15:23:10]RasterBufferAndPrint [15:23:10]line Счет N : (1)706479 [15:23:10]line ИНН: 02508201610067 [15:23:10]line Контрольно-Кассовый Чек [15:23:10]line ПРОДАЖА [15:23:10]line ТРК (МРК, ГНК) : 21 [15:23:10]line Товар: 2710194210 [15:23:10]line ДТ(л)-К-4 [15:23:10]line 4.810 * 72.90 [15:23:10]line = 350.65 [15:23:10]line НДС 12% НСП 1% [15:23:10]line > о реализуемом товаре [15:23:10]line ИТОГО: 350.65 [15:23:10]line НСП 1% : 3.10 [15:23:10]line НДС 12% : 37.24 [15:23:10]line Наличными: 0.00 [15:23:10]line Безнал.: 350.65 [15:23:10]line Место: АЗС № 62 "Партнер Нефть" [15:23:10]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [15:23:10]line СНО: Общий режим [15:23:10]line Чек 129 03.06.2024 15:23 [15:23:10]line Смена: 324 ФФД: 1.0 [15:23:10]line ЗНМ: 0300000181 [15:23:10]line РНМ: 0000000000098096 [15:23:10]line Версия ККМ: 001 [15:23:10]line Платежная система: АКБ Кыргызстан [15:23:10]line ФМ: 0000000000965400 [15:23:10]line ФД: 68383 [15:23:10]line ФПД: 60590472474980 [15:23:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T152314&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68383&fm=60590472474980&tin=02508201610067®Number=0000000000098096&sum=35065 [15:23:11]OFD Sender: Processing packet 68383 [packets to send 26, broken 25] [15:23:11]ProducePacketName [15:23:11]name=ofd_packets/00068383 [15:23:11]OFD Sender: To server: pG, [15:23:11]written 0, free lines is 4095 [15:23:11]CommunicateWithHost lk.salyk.kg:30040 [15:23:11]ConnectInit lk.salyk.kg [15:23:11]Connected sock=7 [15:23:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 59 F9 08 01 85 26 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 34 FF 03 08 00 03 CA 12 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 F9 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F9 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F9 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 E2 DF 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 1F 0B 01 00 35 04 06 00 37 1B 51 96 B1 64 AB 82 2E 6F 98 20 6F 85 [15:23:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 E3 4E 47 00 D5 E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 1F 0B 01 00 F4 03 04 00 DE 86 5D 66 B6 04 01 00 00 CD 20 29 27 6D A5 B9 69 [15:23:11]CommunicateWithHost err = 0 [15:23:11]CheckOFDResponse [15:23:11]1017 (14) - 77093643461234 [15:23:11]1041 (16) - 0000000000965400 [15:23:11]1040 (4) - 68383 [15:23:11]1012 (4) - 03.06.2024 09:03 [15:23:11]1206 (1) - 0 [15:23:11]OFD Sender: Remove packet 68383 [15:23:11]ProducePacketName [15:23:11]name=ofd_packets/00068383 [15:23:11]NVStorageDeleteData [15:23:11]Write to MH i2c: 01 00 00 BF 44 03 [15:23:11]Write i2c OK [15:23:11]MH_I2C_Read... [15:23:11]Read from MH i2c: 01 [15:23:11]MH_I2C_Read... [15:23:11]Read from MH i2c: 01 07 00 [15:23:11]MH_I2C_Read... [15:23:11]Read from MH i2c: 01 07 00 BF 44 00 00 00 00 00 F4 0C 0A [15:23:11]RasterBufferAndPrint [15:23:11]line [15:23:11]line [15:23:11]line [15:23:11]line [15:23:11]line [15:23:11]written 0, free lines is 3323 [15:23:11]MH_Cut [15:23:11]Write to MH i2c: D1 01 00 C6 44 01 DC [15:23:11]Write i2c OK [15:23:11]MH_I2C_Read... [15:23:11]Read from MH i2c: D1 [15:23:11]MH_I2C_Read... [15:23:11]Read from MH i2c: D1 01 00 [15:23:11]MH_I2C_Read... [15:23:11]Read from MH i2c: D1 01 00 C6 44 00 DB [15:23:11]Write to MH i2c: 01 00 00 C7 44 0B [15:23:11]Write i2c OK [15:23:11]MH_I2C_Read... [15:23:11]OFD Sender: No OFD packet to send [15:23:12]*** Cut start [15:23:12]*** Partial cut [15:23:12]*** CUTSNS_PIN = 1 [15:23:12]*** CUTSNS_PIN = 0 [15:23:12]*** Brake cut motor [15:23:12]Read from MH i2c: 01 [15:23:12]MH_I2C_Read... [15:23:12]*** Stop cut motor [15:23:12]*** Cut end [15:23:12]Read from MH i2c: 01 07 00 [15:23:12]MH_I2C_Read... [15:23:12]Read from MH i2c: 01 07 00 C7 44 00 00 00 00 00 FF 0F 20 [15:23:12]process_action close_receipt done [15:23:12]requested_data is exist [15:23:12]produce_requested_data [15:23:12]requested_item fm.sn is exist - process it [15:23:12]wFMCommunicate request_size=4 [15:23:12]MH_SAM_APDU [15:23:12]CAPDU: 80 11 00 00 [15:23:12]Write to MH i2c: E2 08 00 C8 44 80 11 00 00 00 00 00 00 86 [15:23:12]Write i2c OK [15:23:12]MH_I2C_Read... [15:23:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:13]Read from MH i2c: E2 [15:23:13]MH_I2C_Read... [15:23:13]Read from MH i2c: E2 17 00 [15:23:13]MH_I2C_Read... [15:23:13]Read from MH i2c: E2 17 00 C8 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 D1 [15:23:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:23:13]wFMCommunicate OK [15:23:13]requested_item fd.num is exist - process it [15:23:13]SAM_PROTO_GetFieldsCounters [15:23:13]wFMCommunicate request_size=4 [15:23:13]MH_SAM_APDU [15:23:13]CAPDU: 80 13 00 00 [15:23:13]Write to MH i2c: E2 08 00 C9 44 80 13 00 00 00 00 00 00 89 [15:23:13]Write i2c OK [15:23:13]MH_I2C_Read... [15:23:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:23:13]Read from MH i2c: E2 [15:23:13]MH_I2C_Read... [15:23:13]Read from MH i2c: E2 62 00 [15:23:13]MH_I2C_Read... [15:23:13]Read from MH i2c: E2 62 00 C9 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 1F 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 9C [15:23:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 1F 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:23:13]wFMCommunicate OK [15:23:13]SAM_PROTO_GetFieldsCounters done [15:23:13]requested_item shift.num is exist - process it [15:23:13]requested_item shift.opened is exist - process it [15:23:13]req_shift_opened [15:23:13]FM_GetShiftState [15:23:13]SAM_PROTO_GetShiftState [15:23:13]wFMCommunicate request_size=4 [15:23:13]MH_SAM_APDU [15:23:13]CAPDU: 80 13 01 00 [15:23:13]Write to MH i2c: E2 08 00 CA 44 80 13 01 00 00 00 00 00 8B [15:23:13]Write i2c OK [15:23:13]MH_I2C_Read... [15:23:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:13]Read from MH i2c: E2 [15:23:13]MH_I2C_Read... [15:23:13]Read from MH i2c: E2 0E 00 [15:23:13]MH_I2C_Read... [15:23:13]Read from MH i2c: E2 0E 00 CA 44 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 66 [15:23:13]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [15:23:13]wFMCommunicate OK [15:23:13]SAM_PROTO_GetShiftState done [15:23:13]FM_GetShiftState done [15:23:13]req_shift_opened done [15:23:13]requested_item shift.open_date is exist - process it [15:23:13]req_shift_open_date [15:23:13]req_shift_open_date done [15:23:13]produce_requested_data done [15:23:13]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68383,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [15:23:13]process_action_free close_receipt [15:23:13]json_value_free [15:23:13]json_value_free done [15:23:13]process_json_proto returns [15:23:13]Send response to host [15:23:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68383,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [15:23:13]free response buf [15:23:13]execute_script done [15:23:13]execute_script returns [15:23:13]free content buf [15:23:13]Sock 5.Close socket [15:23:13]Sock 5.Thread stoped [15:23:16]OFD Sender: No OFD packet to send [15:23:21]OFD Sender: No OFD packet to send [15:23:26]OFD Sender: No OFD packet to send [15:23:31]OFD Sender: No OFD packet to send [15:23:36]OFD Sender: No OFD packet to send [15:23:41]OFD Sender: No OFD packet to send [15:23:46]OFD Sender: No OFD packet to send [15:23:51]OFD Sender: No OFD packet to send [15:23:56]OFD Sender: No OFD packet to send [15:24:01]OFD Sender: No OFD packet to send [15:24:06]OFD Sender: No OFD packet to send [15:24:11]OFD Sender: No OFD packet to send [15:24:16]OFD Sender: No OFD packet to send [15:24:21]OFD Sender: No OFD packet to send [15:24:26]OFD Sender: No OFD packet to send [15:24:31]OFD Sender: No OFD packet to send [15:24:34]accept exits with 6 [15:24:34]New connection [15:24:34]New thread 3066543460 created [15:24:34]Thread 3066686820 joined [15:24:34]Waiting for new connection... [15:24:34] Sock 6.Parse request [15:24:34]Sock 6.Check first char [15:24:34]Sock 6.First char is OK [15:24:34]request: POST /json_proto HTTP/1.0 [15:24:34]Method: POST [15:24:34]URL: /json_proto [15:24:34]Method is POST - this is cgi request [15:24:34]url: /json_proto [15:24:34]query_string will be loaded in cgi processing [15:24:34]execute_cgi json_proto POST (null) [15:24:34]execute_cgi path=json_proto method=POST [15:24:34]POST find Content-Length [15:24:34]Host: 172.17.36.132:8080 [15:24:34]Content-Length: 1183 [15:24:34]Content-Type: application/json [15:24:34] [15:24:34]POST finish read [15:24:34]Found Content-Length = 1183 [15:24:34]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706480\u000A03.06.2024 15:01\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 30.000 x 73.90\u000A\u0418\u0422\u041E\u0413: 2217.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A91381\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:24:34]execute_script... [15:24:34]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706480\u000A03.06.2024 15:01\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124500\u000A\u0410\u0438-95-\u041A-5\u000A 30.000 x 73.90\u000A\u0418\u0422\u041E\u0413: 2217.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A91381\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:24:34]POST & json_proto [15:24:34]process_json_proto [15:24:34]json parsed OK: [15:24:34]protocol is kg_v1.0 [15:24:34]action value=print_text [15:24:34]process_action print_text [15:24:34]cmd_print_text [15:24:34]ExternCall_PrintAddStr [15:24:34]wPrintStart [15:24:34]Write to MH i2c: 01 00 00 CB 44 0F [15:24:34]Write i2c OK [15:24:34]MH_I2C_Read... [15:24:34]Read from MH i2c: 01 [15:24:34]MH_I2C_Read... [15:24:34]Read from MH i2c: 01 07 00 [15:24:34]MH_I2C_Read... [15:24:34]Read from MH i2c: 01 07 00 CB 44 00 00 00 00 00 FF 0F 24 [15:24:34]RasterBufferAndPrint [15:24:34]line *****ТОВАРНЫЙ ЧЕК***** [15:24:34]line АЗС 62 [15:24:34]line Партнер нефть [15:24:34]line 02508201610067 [15:24:34]line Кассир : Балаев А. [15:24:34]line Счет N : (1)706480 [15:24:34]line 03.06.2024 15:01 [15:24:34]line ПРОДАЖА [15:24:34]line ТРК (МРК, ГНК): 43 [15:24:34]line Вид ГСМ : 2710124500 [15:24:34]line Аи-95-К-5 [15:24:34]line 30.000 x 73.90 [15:24:34]line ИТОГ: 2217.00 [15:24:34]line Тип оплаты: Талоны: Топливная Карта [15:24:34]line 91381 [15:24:34]line ______________________ [15:24:34]line (подпись) [15:24:34]written 0, free lines is 4095 [15:24:34]Write to MH i2c: 01 00 00 DF 44 23 [15:24:34]Write i2c OK [15:24:34]MH_I2C_Read... [15:24:34]Read from MH i2c: 01 [15:24:34]MH_I2C_Read... [15:24:34]Read from MH i2c: 01 07 00 [15:24:34]MH_I2C_Read... [15:24:34]Read from MH i2c: 01 07 00 DF 44 00 00 00 00 00 11 0E 49 [15:24:34]RasterBufferAndPrint [15:24:34]line [15:24:34]line [15:24:34]line [15:24:34]line [15:24:34]line [15:24:34]written 0, free lines is 3603 [15:24:34]MH_Cut [15:24:34]Write to MH i2c: D1 01 00 E6 44 01 FC [15:24:34]Write i2c OK [15:24:34]MH_I2C_Read... [15:24:34]Read from MH i2c: D1 [15:24:34]MH_I2C_Read... [15:24:34]Read from MH i2c: D1 01 00 [15:24:34]MH_I2C_Read... [15:24:34]Read from MH i2c: D1 01 00 E6 44 00 FB [15:24:34]Write to MH i2c: 01 00 00 E7 44 2B [15:24:34]Write i2c OK [15:24:34]MH_I2C_Read... [15:24:35]*** Cut start [15:24:35]*** Partial cut [15:24:35]*** CUTSNS_PIN = 1 [15:24:35]*** CUTSNS_PIN = 0 [15:24:35]*** Brake cut motor [15:24:35]Read from MH i2c: 01 [15:24:35]MH_I2C_Read... [15:24:35]*** Stop cut motor [15:24:35]*** Cut end [15:24:35]Read from MH i2c: 01 07 00 [15:24:35]MH_I2C_Read... [15:24:35]Read from MH i2c: 01 07 00 E7 44 00 00 00 00 00 FF 0F 40 [15:24:35]process_action print_text done [15:24:35]requested_data is exist [15:24:35]produce_requested_data [15:24:35]requested_item fm.sn is exist - process it [15:24:35]wFMCommunicate request_size=4 [15:24:35]MH_SAM_APDU [15:24:35]CAPDU: 80 11 00 00 [15:24:35]Write to MH i2c: E2 08 00 E8 44 80 11 00 00 00 00 00 00 A6 [15:24:35]Write i2c OK [15:24:35]MH_I2C_Read... [15:24:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:24:35]Read from MH i2c: E2 [15:24:35]MH_I2C_Read... [15:24:35]Read from MH i2c: E2 17 00 [15:24:35]MH_I2C_Read... [15:24:35]Read from MH i2c: E2 17 00 E8 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 F1 [15:24:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:24:35]wFMCommunicate OK [15:24:35]requested_item fd.num is exist - process it [15:24:35]SAM_PROTO_GetFieldsCounters [15:24:35]wFMCommunicate request_size=4 [15:24:35]MH_SAM_APDU [15:24:35]CAPDU: 80 13 00 00 [15:24:35]Write to MH i2c: E2 08 00 E9 44 80 13 00 00 00 00 00 00 A9 [15:24:35]Write i2c OK [15:24:35]MH_I2C_Read... [15:24:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:24:36]Read from MH i2c: E2 [15:24:36]MH_I2C_Read... [15:24:36]Read from MH i2c: E2 62 00 [15:24:36]MH_I2C_Read... [15:24:36]Read from MH i2c: E2 62 00 E9 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 1F 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 BC [15:24:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 1F 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:24:36]wFMCommunicate OK [15:24:36]SAM_PROTO_GetFieldsCounters done [15:24:36]requested_item shift.num is exist - process it [15:24:36]requested_item shift.opened is exist - process it [15:24:36]req_shift_opened [15:24:36]FM_GetShiftState [15:24:36]SAM_PROTO_GetShiftState [15:24:36]wFMCommunicate request_size=4 [15:24:36]MH_SAM_APDU [15:24:36]CAPDU: 80 13 01 00 [15:24:36]Write to MH i2c: E2 08 00 EA 44 80 13 01 00 00 00 00 00 AB [15:24:36]Write i2c OK [15:24:36]MH_I2C_Read... [15:24:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:24:36]Read from MH i2c: E2 [15:24:36]MH_I2C_Read... [15:24:36]Read from MH i2c: E2 0E 00 [15:24:36]MH_I2C_Read... [15:24:36]Read from MH i2c: E2 0E 00 EA 44 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 86 [15:24:36]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [15:24:36]wFMCommunicate OK [15:24:36]SAM_PROTO_GetShiftState done [15:24:36]FM_GetShiftState done [15:24:36]req_shift_opened done [15:24:36]requested_item shift.open_date is exist - process it [15:24:36]req_shift_open_date [15:24:36]req_shift_open_date done [15:24:36]produce_requested_data done [15:24:36]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68383,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [15:24:36]process_action_free print_text [15:24:36]json_value_free [15:24:36]json_value_free done [15:24:36]process_json_proto returns [15:24:36]Send response to host [15:24:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68383,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [15:24:36]free response buf [15:24:36]execute_script done [15:24:36]execute_script returns [15:24:36]free content buf [15:24:36]Sock 6.Close socket [15:24:36]Sock 6.Thread stoped [15:24:36]OFD Sender: No OFD packet to send [15:24:41]OFD Sender: No OFD packet to send [15:24:46]OFD Sender: No OFD packet to send [15:24:51]OFD Sender: No OFD packet to send [15:24:56]OFD Sender: No OFD packet to send [15:25:01]OFD Sender: No OFD packet to send [15:25:06]OFD Sender: No OFD packet to send [15:25:11]OFD Sender: No OFD packet to send [15:25:16]OFD Sender: No OFD packet to send [15:25:21]OFD Sender: No OFD packet to send [15:25:26]OFD Sender: No OFD packet to send [15:25:31]OFD Sender: No OFD packet to send [15:25:36]OFD Sender: No OFD packet to send [15:25:41]OFD Sender: No OFD packet to send [15:25:46]OFD Sender: No OFD packet to send [15:25:51]OFD Sender: No OFD packet to send [15:25:56]OFD Sender: No OFD packet to send [15:26:01]OFD Sender: No OFD packet to send [15:26:06]OFD Sender: No OFD packet to send [15:26:12]OFD Sender: No OFD packet to send [15:26:17]OFD Sender: No OFD packet to send [15:26:22]OFD Sender: No OFD packet to send [15:26:27]OFD Sender: No OFD packet to send [15:26:32]OFD Sender: No OFD packet to send [15:26:37]OFD Sender: No OFD packet to send [15:26:42]OFD Sender: No OFD packet to send [15:26:47]OFD Sender: No OFD packet to send [15:26:52]OFD Sender: No OFD packet to send [15:26:57]OFD Sender: No OFD packet to send [15:27:02]OFD Sender: No OFD packet to send [15:27:07]OFD Sender: No OFD packet to send [15:27:12]OFD Sender: No OFD packet to send [15:27:17]OFD Sender: No OFD packet to send [15:27:22]OFD Sender: No OFD packet to send [15:27:27]OFD Sender: No OFD packet to send [15:27:32]OFD Sender: No OFD packet to send [15:27:37]OFD Sender: No OFD packet to send [15:27:42]OFD Sender: No OFD packet to send [15:27:47]OFD Sender: No OFD packet to send [15:27:52]OFD Sender: No OFD packet to send [15:27:57]OFD Sender: No OFD packet to send [15:28:02]OFD Sender: No OFD packet to send [15:28:07]OFD Sender: No OFD packet to send [15:28:12]OFD Sender: No OFD packet to send [15:28:17]OFD Sender: No OFD packet to send [15:28:22]OFD Sender: No OFD packet to send [15:28:27]OFD Sender: No OFD packet to send [15:28:32]OFD Sender: No OFD packet to send [15:28:37]OFD Sender: No OFD packet to send [15:28:42]OFD Sender: No OFD packet to send [15:28:47]OFD Sender: No OFD packet to send [15:28:52]OFD Sender: No OFD packet to send [15:28:57]OFD Sender: No OFD packet to send [15:29:02]OFD Sender: No OFD packet to send [15:29:07]OFD Sender: No OFD packet to send [15:29:12]OFD Sender: No OFD packet to send [15:29:17]OFD Sender: No OFD packet to send [15:29:22]OFD Sender: No OFD packet to send [15:29:27]OFD Sender: No OFD packet to send [15:29:32]OFD Sender: No OFD packet to send [15:29:37]OFD Sender: No OFD packet to send [15:29:42]OFD Sender: No OFD packet to send [15:29:47]OFD Sender: No OFD packet to send [15:29:52]OFD Sender: No OFD packet to send [15:29:57]OFD Sender: No OFD packet to send [15:30:02]OFD Sender: No OFD packet to send [15:30:07]OFD Sender: No OFD packet to send [15:30:12]OFD Sender: No OFD packet to send [15:30:17]OFD Sender: No OFD packet to send [15:30:22]OFD Sender: No OFD packet to send [15:30:27]OFD Sender: No OFD packet to send [15:30:32]OFD Sender: No OFD packet to send [15:30:37]OFD Sender: No OFD packet to send [15:30:42]OFD Sender: No OFD packet to send [15:30:47]OFD Sender: No OFD packet to send [15:30:52]OFD Sender: No OFD packet to send [15:30:52]accept exits with 5 [15:30:52]New connection [15:30:52]New thread 3066686820 created [15:30:52]Thread 3066543460 joined [15:30:52]Waiting for new connection... [15:30:52] Sock 5.Parse request [15:30:52]Sock 5.Check first char [15:30:52]Sock 5.First char is OK [15:30:52]request: POST /json_proto HTTP/1.0 [15:30:52]Method: POST [15:30:52]URL: /json_proto [15:30:52]Method is POST - this is cgi request [15:30:52]url: /json_proto [15:30:52]query_string will be loaded in cgi processing [15:30:52]execute_cgi json_proto POST (null) [15:30:52]execute_cgi path=json_proto method=POST [15:30:52]POST find Content-Length [15:30:52]Host: 172.17.36.132:8080 [15:30:52]Content-Length: 678 [15:30:52]Content-Type: application/json [15:30:52] [15:30:52]POST finish read [15:30:52]Found Content-Length = 678 [15:30:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706481", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:30:52]execute_script... [15:30:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706481", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:30:52]POST & json_proto [15:30:52]process_json_proto [15:30:52]json parsed OK: [15:30:52]protocol is kg_v1.0 [15:30:52]action value=close_receipt [15:30:52]process_action close_receipt [15:30:52]cmd_close_receipt [15:30:52]MH_GetDate [15:30:52]Write to MH i2c: F0 00 00 EB 44 1E [15:30:52]Write i2c OK [15:30:52]MH_I2C_Read... [15:30:52]Read from MH i2c: F0 [15:30:52]MH_I2C_Read... [15:30:52]Read from MH i2c: F0 09 00 [15:30:52]MH_I2C_Read... [15:30:52]Read from MH i2c: F0 09 00 EB 44 00 B2 E1 5D 66 B2 22 B0 64 65 [15:30:52]GetLastDocTimeStamp 1717428194 [15:30:52]current date 1717428658 [15:30:52]FM_GetShiftState [15:30:52]SAM_PROTO_GetShiftState [15:30:52]wFMCommunicate request_size=4 [15:30:52]MH_SAM_APDU [15:30:52]CAPDU: 80 13 01 00 [15:30:52]Write to MH i2c: E2 08 00 EC 44 80 13 01 00 00 00 00 00 AD [15:30:52]Write i2c OK [15:30:52]MH_I2C_Read... [15:30:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:30:52]Read from MH i2c: E2 [15:30:52]MH_I2C_Read... [15:30:52]Read from MH i2c: E2 0E 00 [15:30:52]MH_I2C_Read... [15:30:52]Read from MH i2c: E2 0E 00 EC 44 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 88 [15:30:52]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [15:30:52]wFMCommunicate OK [15:30:52]SAM_PROTO_GetShiftState done [15:30:52]FM_GetShiftState done [15:30:52]opened in 1717378033 [15:30:52]opened+sec_in_day 1717464433 [15:30:52]quantity*price = 80012 [15:30:52]sum+1 = 80013 [15:30:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 130 03.06.2024 15:30 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68384 ФПД: 84555809207254 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T153058&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68384&fm=84555809207254&tin=02508201610067®Number=0000000000098096&sum=80000 [15:30:53]StoreToDocumentArchive [15:30:53]shift 324 fd 68384 [15:30:53]save to /storage/0324/doc_00068384 [15:30:53]save last doc name /storage/0324/doc_00068384 to /storage/kkm_last_doc_name [15:30:53]save OK [15:30:53]Clear old archive folders... [15:30:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:30:53]tlvbuf is 0027DDF0 [15:30:53]SAM_PROTO_ClearQueue [15:30:53]wFMCommunicate request_size=4 [15:30:53]MH_SAM_APDU [15:30:53]CAPDU: 80 09 00 00 [15:30:53]Write to MH i2c: E2 08 00 F9 44 80 09 00 00 00 00 00 00 AF [15:30:53]Write i2c OK [15:30:53]MH_I2C_Read... [15:30:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:30:53]Read from MH i2c: E2 [15:30:53]MH_I2C_Read... [15:30:53]Read from MH i2c: E2 03 00 [15:30:53]MH_I2C_Read... [15:30:53]Read from MH i2c: E2 03 00 F9 44 00 90 00 B1 [15:30:53]RAPDU: 90 00 [15:30:53]wFMCommunicate OK [15:30:53]SAM_PROTO_ClearQueue done [15:30:53]KKMCreateOFDPacket [15:30:53]OFDProtocolAddRootSTLVToBuf [15:30:53]FM_MakeSignedData [15:30:53]FM_MakeSignedData [15:30:53]SAM_PROTO_SignData [15:30:53]wFMCommunicate request_size=4 [15:30:53]MH_SAM_APDU [15:30:53]CAPDU: 80 0D 01 02 [15:30:53]Write to MH i2c: E2 08 00 FA 44 80 0D 01 02 00 00 00 00 B7 [15:30:53]Write i2c OK [15:30:53]MH_I2C_Read... [15:30:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:30:53]Read from MH i2c: E2 [15:30:53]MH_I2C_Read... [15:30:53]Read from MH i2c: E2 03 00 [15:30:53]MH_I2C_Read... [15:30:53]Read from MH i2c: E2 03 00 FA 44 00 90 00 B2 [15:30:53]RAPDU: 90 00 [15:30:53]wFMCommunicate OK [15:30:53]wFMCommunicate request_size=255 [15:30:53]MH_SAM_APDU [15:30:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 B2 E1 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 20 0B 01 00 35 04 06 00 4C [15:30:53]Write to MH i2c: E2 02 01 FB 44 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 B2 E1 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 20 0B 01 00 35 04 06 00 4C 00 00 C5 [15:30:53]Write i2c OK [15:30:53]MH_I2C_Read... [15:30:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:30:54]Read from MH i2c: E2 [15:30:54]MH_I2C_Read... [15:30:54]Read from MH i2c: E2 03 00 [15:30:54]MH_I2C_Read... [15:30:54]Read from MH i2c: E2 03 00 FB 44 00 90 00 B3 [15:30:54]RAPDU: 90 00 [15:30:54]wFMCommunicate OK [15:30:54]wFMCommunicate request_size=10 [15:30:54]MH_SAM_APDU [15:30:54]CAPDU: 80 0D 02 02 05 E7 2E F8 B3 D6 [15:30:54]Write to MH i2c: E2 0D 00 FC 44 80 0D 02 02 05 00 E7 2E F8 B3 D6 00 00 5A [15:30:54]Write i2c OK [15:30:54]MH_I2C_Read... [15:30:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:30:54]Read from MH i2c: E2 [15:30:54]MH_I2C_Read... [15:30:54]Read from MH i2c: E2 03 00 [15:30:54]MH_I2C_Read... [15:30:54]Read from MH i2c: E2 03 00 FC 44 00 90 00 B4 [15:30:54]RAPDU: 90 00 [15:30:54]wFMCommunicate OK [15:30:54]wFMCommunicate request_size=4 [15:30:54]MH_SAM_APDU [15:30:54]CAPDU: 80 0D 03 02 [15:30:54]Write to MH i2c: E2 08 00 FD 44 80 0D 03 02 00 00 00 00 BC [15:30:54]Write i2c OK [15:30:54]MH_I2C_Read... [15:30:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:30:54]Read from MH i2c: E2 [15:30:54]MH_I2C_Read... [15:30:54]Read from MH i2c: E2 0B 00 [15:30:54]MH_I2C_Read... [15:30:54]Read from MH i2c: E2 0B 00 FD 44 00 4B DE 78 77 4C E2 B3 9E 90 00 54 [15:30:54]RAPDU: 4B DE 78 77 4C E2 B3 9E 90 00 [15:30:54]wFMCommunicate OK [15:30:54]SAM_PROTO_SignData done [15:30:54]FM_MakeSignedData done [15:30:54]CreateOFDProtocolMessage [15:30:54]wFMCommunicate request_size=4 [15:30:54]MH_SAM_APDU [15:30:54]CAPDU: 80 11 00 00 [15:30:54]Write to MH i2c: E2 08 00 FE 44 80 11 00 00 00 00 00 00 BC [15:30:54]Write i2c OK [15:30:54]MH_I2C_Read... [15:30:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:30:54]Read from MH i2c: E2 [15:30:54]MH_I2C_Read... [15:30:54]Read from MH i2c: E2 17 00 [15:30:54]MH_I2C_Read... [15:30:54]Read from MH i2c: E2 17 00 FE 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 07 [15:30:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:30:54]wFMCommunicate OK [15:30:54]CreateOFDProtocolMessage done [15:30:54]OFDSenderStorePacket 68384 [15:30:54]StoreOFDPacket docnum=68384 [15:30:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 EB 75 07 01 B7 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 B2 E1 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 20 0B 01 00 35 04 06 00 4C E7 2E F8 B3 D6 4B DE 78 77 4C E2 B3 9E [15:30:54]CheckFolder [15:30:54]dirname=/storage/ofd_packets [15:30:54]CheckFolder done [15:30:54]ProducePacketName [15:30:54]name=ofd_packets/00068384 [15:30:54]NVStorageSaveData ofd_packets/00068384 [15:30:54]File name is /storage/ofd_packets/00068384 [15:30:54]Write 301 bytes [15:30:54]NVStorageSaveData done [15:30:54]OFDSenderStorePacket done [15:30:54]KKMCreateOFDPacket done [15:30:54]NVStorageSaveData kkm_last_timestamp [15:30:54]File name is /storage/kkm_last_timestamp [15:30:54]Write 4 bytes [15:30:54]NVStorageSaveData done [15:30:54]ExternCall_PrintAddStr [15:30:54]wPrintStart [15:30:54]Write to MH i2c: 01 00 00 FF 44 43 [15:30:54]Write i2c OK [15:30:54]MH_I2C_Read... [15:30:54]Read from MH i2c: 01 [15:30:54]MH_I2C_Read... [15:30:54]Read from MH i2c: 01 07 00 [15:30:54]MH_I2C_Read... [15:30:54]Read from MH i2c: 01 07 00 FF 44 00 00 00 00 00 FF 0F 58 [15:30:54]RasterBufferAndPrint [15:30:54]line Счет N : (1)706481 [15:30:54]line ИНН: 02508201610067 [15:30:54]line Контрольно-Кассовый Чек [15:30:54]line ПРОДАЖА [15:30:54]line ТРК (МРК, ГНК) : 42 [15:30:54]line Товар: 2710124130 [15:30:54]line Аи-92-К-4 [15:30:54]line 11.960 * 66.90 [15:30:54]line = 800.12 [15:30:54]line НДС 12% НСП 1% [15:30:54]line > о реализуемом товаре [15:30:54]line ОКРУГЛЕНИЕ: -0.12 [15:30:54]line ИТОГО: 800.00 [15:30:54]line Внесено: 800.00 [15:30:54]line СДАЧА: 0.00 [15:30:54]line НСП 1% : 7.08 [15:30:54]line НДС 12% : 84.97 [15:30:54]line Наличными: 800.00 [15:30:54]line Безнал.: 0.00 [15:30:54]line Место: АЗС № 62 "Партнер Нефть" [15:30:54]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [15:30:54]line СНО: Общий режим [15:30:54]line Чек 130 03.06.2024 15:30 [15:30:54]line Смена: 324 ФФД: 1.0 [15:30:54]line ЗНМ: 0300000181 [15:30:54]line РНМ: 0000000000098096 [15:30:54]line Версия ККМ: 001 [15:30:54]line ФМ: 0000000000965400 [15:30:54]line ФД: 68384 [15:30:54]line ФПД: 84555809207254 [15:30:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T153058&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68384&fm=84555809207254&tin=02508201610067®Number=0000000000098096&sum=80000 [15:30:54]OFD Sender: Processing packet 68384 [packets to send 26, broken 25] [15:30:54]ProducePacketName [15:30:54]name=ofd_packets/00068384 [15:30:54]OFD Sender: To server: pG, [15:30:54]CommunicateWithHost lk.salyk.kg:30040 [15:30:54]ConnectInit lk.salyk.kg [15:30:54]written 0, free lines is 4095 [15:30:54]Connected sock=7 [15:30:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 EB 75 07 01 B7 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 B2 E1 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 20 0B 01 00 35 04 06 00 4C E7 2E F8 B3 D6 4B DE 78 77 4C E2 B3 9E [15:30:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 A5 B3 47 00 78 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 20 0B 01 00 F4 03 04 00 AE 88 5D 66 B6 04 01 00 00 33 01 D3 E0 6F E9 C3 9E [15:30:55]CommunicateWithHost err = 0 [15:30:55]CheckOFDResponse [15:30:55]1017 (14) - 77093643461234 [15:30:55]1041 (16) - 0000000000965400 [15:30:55]1040 (4) - 68384 [15:30:55]1012 (4) - 03.06.2024 09:11 [15:30:55]1206 (1) - 0 [15:30:55]OFD Sender: Remove packet 68384 [15:30:55]ProducePacketName [15:30:55]name=ofd_packets/00068384 [15:30:55]NVStorageDeleteData [15:30:55]Write to MH i2c: 01 00 00 2A 45 6F [15:30:55]Write i2c OK [15:30:55]MH_I2C_Read... [15:30:55]Read from MH i2c: 01 [15:30:55]MH_I2C_Read... [15:30:55]Read from MH i2c: 01 07 00 [15:30:55]MH_I2C_Read... [15:30:55]Read from MH i2c: 01 07 00 2A 45 00 00 00 00 00 E8 0C 6A [15:30:55]RasterBufferAndPrint [15:30:55]line [15:30:55]line [15:30:55]line [15:30:55]line [15:30:55]line [15:30:55]written 0, free lines is 3314 [15:30:55]MH_Cut [15:30:55]Write to MH i2c: D1 01 00 31 45 01 48 [15:30:55]Write i2c OK [15:30:55]MH_I2C_Read... [15:30:55]Read from MH i2c: D1 [15:30:55]MH_I2C_Read... [15:30:55]Read from MH i2c: D1 01 00 [15:30:55]MH_I2C_Read... [15:30:55]Read from MH i2c: D1 01 00 31 45 00 47 [15:30:55]Write to MH i2c: 01 00 00 32 45 77 [15:30:55]Write i2c OK [15:30:55]MH_I2C_Read... [15:30:55]OFD Sender: No OFD packet to send [15:30:55]*** Cut start [15:30:55]*** Partial cut [15:30:55]*** CUTSNS_PIN = 1 [15:30:56]*** CUTSNS_PIN = 0 [15:30:56]*** Brake cut motor [15:30:56]Read from MH i2c: 01 [15:30:56]MH_I2C_Read... [15:30:56]*** Stop cut motor [15:30:56]*** Cut end [15:30:56]Read from MH i2c: 01 07 00 [15:30:56]MH_I2C_Read... [15:30:56]Read from MH i2c: 01 07 00 32 45 00 00 00 00 00 FF 0F 8C [15:30:56]process_action close_receipt done [15:30:56]requested_data is exist [15:30:56]produce_requested_data [15:30:56]requested_item fm.sn is exist - process it [15:30:56]wFMCommunicate request_size=4 [15:30:56]MH_SAM_APDU [15:30:56]CAPDU: 80 11 00 00 [15:30:56]Write to MH i2c: E2 08 00 33 45 80 11 00 00 00 00 00 00 F2 [15:30:56]Write i2c OK [15:30:56]MH_I2C_Read... [15:30:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:30:56]Read from MH i2c: E2 [15:30:56]MH_I2C_Read... [15:30:56]Read from MH i2c: E2 17 00 [15:30:56]MH_I2C_Read... [15:30:56]Read from MH i2c: E2 17 00 33 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 3D [15:30:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:30:56]wFMCommunicate OK [15:30:56]requested_item fd.num is exist - process it [15:30:56]SAM_PROTO_GetFieldsCounters [15:30:56]wFMCommunicate request_size=4 [15:30:56]MH_SAM_APDU [15:30:56]CAPDU: 80 13 00 00 [15:30:56]Write to MH i2c: E2 08 00 34 45 80 13 00 00 00 00 00 00 F5 [15:30:56]Write i2c OK [15:30:56]MH_I2C_Read... [15:30:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:30:56]Read from MH i2c: E2 [15:30:56]MH_I2C_Read... [15:30:56]Read from MH i2c: E2 62 00 [15:30:56]MH_I2C_Read... [15:30:56]Read from MH i2c: E2 62 00 34 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 20 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 0C [15:30:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 20 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:30:56]wFMCommunicate OK [15:30:56]SAM_PROTO_GetFieldsCounters done [15:30:56]requested_item shift.num is exist - process it [15:30:56]requested_item shift.opened is exist - process it [15:30:56]req_shift_opened [15:30:56]FM_GetShiftState [15:30:56]SAM_PROTO_GetShiftState [15:30:56]wFMCommunicate request_size=4 [15:30:56]MH_SAM_APDU [15:30:56]CAPDU: 80 13 01 00 [15:30:56]Write to MH i2c: E2 08 00 35 45 80 13 01 00 00 00 00 00 F7 [15:30:56]Write i2c OK [15:30:56]MH_I2C_Read... [15:30:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:30:56]Read from MH i2c: E2 [15:30:56]MH_I2C_Read... [15:30:56]Read from MH i2c: E2 0E 00 [15:30:56]MH_I2C_Read... [15:30:56]Read from MH i2c: E2 0E 00 35 45 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 D2 [15:30:56]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [15:30:56]wFMCommunicate OK [15:30:56]SAM_PROTO_GetShiftState done [15:30:56]FM_GetShiftState done [15:30:56]req_shift_opened done [15:30:56]requested_item shift.open_date is exist - process it [15:30:56]req_shift_open_date [15:30:56]req_shift_open_date done [15:30:56]produce_requested_data done [15:30:56]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68384,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [15:30:56]process_action_free close_receipt [15:30:56]json_value_free [15:30:56]json_value_free done [15:30:56]process_json_proto returns [15:30:56]Send response to host [15:30:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68384,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [15:30:56]free response buf [15:30:56]execute_script done [15:30:56]execute_script returns [15:30:56]free content buf [15:30:56]Sock 5.Close socket [15:30:56]Sock 5.Thread stoped [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]accept exits with 6 [15:32:10]New connection [15:32:10]New thread 3066543460 created [15:32:10]Thread 3066686820 joined [15:32:10]Waiting for new connection... [15:32:10] Sock 6.Parse request [15:32:10]Sock 6.Check first char [15:32:10]Sock 6.First char is OK [15:32:10]request: POST /json_proto HTTP/1.0 [15:32:10]Method: POST [15:32:10]URL: /json_proto [15:32:10]Method is POST - this is cgi request [15:32:10]url: /json_proto [15:32:10]query_string will be loaded in cgi processing [15:32:10]execute_cgi json_proto POST (null) [15:32:10]execute_cgi path=json_proto method=POST [15:32:10]POST find Content-Length [15:32:10]Host: 172.17.36.132:8080 [15:32:10]Content-Length: 677 [15:32:10]Content-Type: application/json [15:32:10] [15:32:10]POST finish read [15:32:10]Found Content-Length = 677 [15:32:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706482", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 3.290, "sum" : 220.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:32:10]execute_script... [15:32: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)706482", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 3.290, "sum" : 220.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:32:10]POST & json_proto [15:32:10]process_json_proto [15:32:10]json parsed OK: [15:32:10]protocol is kg_v1.0 [15:32:10]action value=close_receipt [15:32:10]process_action close_receipt [15:32:10]cmd_close_receipt [15:32:10]MH_GetDate [15:32:10]Write to MH i2c: F0 00 00 36 45 6A [15:32:10]Write i2c OK [15:32:10]MH_I2C_Read... [15:32:10]Read from MH i2c: F0 [15:32:10]MH_I2C_Read... [15:32:10]Read from MH i2c: F0 09 00 [15:32:10]MH_I2C_Read... [15:32:10]Read from MH i2c: F0 09 00 36 45 00 00 E2 5D 66 B2 22 B0 64 00 [15:32:10]GetLastDocTimeStamp 1717428658 [15:32:10]current date 1717428736 [15:32:10]FM_GetShiftState [15:32:10]SAM_PROTO_GetShiftState [15:32:10]wFMCommunicate request_size=4 [15:32:10]MH_SAM_APDU [15:32:10]CAPDU: 80 13 01 00 [15:32:10]Write to MH i2c: E2 08 00 37 45 80 13 01 00 00 00 00 00 F9 [15:32:10]Write i2c OK [15:32:10]MH_I2C_Read... [15:32:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:32:10]Read from MH i2c: E2 [15:32:10]MH_I2C_Read... [15:32:10]Read from MH i2c: E2 0E 00 [15:32:10]MH_I2C_Read... [15:32:10]Read from MH i2c: E2 0E 00 37 45 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 D4 [15:32:10]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [15:32:10]wFMCommunicate OK [15:32:10]SAM_PROTO_GetShiftState done [15:32:10]FM_GetShiftState done [15:32:10]opened in 1717378033 [15:32:10]opened+sec_in_day 1717464433 [15:32:10]quantity*price = 22010 [15:32:10]sum+1 = 22011 [15:32:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 220.00 Внесено: 220.00 СДАЧА: 0.00 НСП 1% : 1.95 НДС 12% : 23.37 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 131 03.06.2024 15:32 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68385 ФПД: 125919700620571 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T153216&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68385&fm=125919700620571&tin=02508201610067®Number=0000000000098096&sum=22000 [15:32:11]StoreToDocumentArchive [15:32:11]shift 324 fd 68385 [15:32:11]save to /storage/0324/doc_00068385 [15:32:11]save last doc name /storage/0324/doc_00068385 to /storage/kkm_last_doc_name [15:32:11]save OK [15:32:11]Clear old archive folders... [15:32:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:32:11]tlvbuf is 003A1450 [15:32:11]SAM_PROTO_ClearQueue [15:32:11]wFMCommunicate request_size=4 [15:32:11]MH_SAM_APDU [15:32:11]CAPDU: 80 09 00 00 [15:32:11]Write to MH i2c: E2 08 00 44 45 80 09 00 00 00 00 00 00 FB [15:32:11]Write i2c OK [15:32:11]MH_I2C_Read... [15:32:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:32:11]Read from MH i2c: E2 [15:32:11]MH_I2C_Read... [15:32:11]Read from MH i2c: E2 03 00 [15:32:11]MH_I2C_Read... [15:32:11]Read from MH i2c: E2 03 00 44 45 00 90 00 FD [15:32:11]RAPDU: 90 00 [15:32:11]wFMCommunicate OK [15:32:11]SAM_PROTO_ClearQueue done [15:32:11]KKMCreateOFDPacket [15:32:11]OFDProtocolAddRootSTLVToBuf [15:32:11]FM_MakeSignedData [15:32:11]FM_MakeSignedData [15:32:11]SAM_PROTO_SignData [15:32:11]wFMCommunicate request_size=4 [15:32:11]MH_SAM_APDU [15:32:11]CAPDU: 80 0D 01 02 [15:32:11]Write to MH i2c: E2 08 00 45 45 80 0D 01 02 00 00 00 00 03 [15:32:11]Write i2c OK [15:32:11]MH_I2C_Read... [15:32:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:32:11]Read from MH i2c: E2 [15:32:11]MH_I2C_Read... [15:32:11]Read from MH i2c: E2 03 00 [15:32:11]MH_I2C_Read... [15:32:11]Read from MH i2c: E2 03 00 45 45 00 90 00 FE [15:32:11]RAPDU: 90 00 [15:32:11]wFMCommunicate OK [15:32:11]wFMCommunicate request_size=255 [15:32:11]MH_SAM_APDU [15:32: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 34 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 00 E2 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 21 0B 01 00 35 04 06 00 72 [15:32:11]Write to MH i2c: E2 02 01 46 45 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 00 E2 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 21 0B 01 00 35 04 06 00 72 00 00 FF [15:32:11]Write i2c OK [15:32:11]MH_I2C_Read... [15:32:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:32:11]Read from MH i2c: E2 [15:32:11]MH_I2C_Read... [15:32:11]Read from MH i2c: E2 03 00 [15:32:11]MH_I2C_Read... [15:32:11]Read from MH i2c: E2 03 00 46 45 00 90 00 FF [15:32:11]RAPDU: 90 00 [15:32:11]wFMCommunicate OK [15:32:11]wFMCommunicate request_size=10 [15:32:11]MH_SAM_APDU [15:32:11]CAPDU: 80 0D 02 02 05 85 F7 06 95 1B [15:32:11]Write to MH i2c: E2 0D 00 47 45 80 0D 02 02 05 00 85 F7 06 95 1B 00 00 42 [15:32:11]Write i2c OK [15:32:11]MH_I2C_Read... [15:32:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:32:11]Read from MH i2c: E2 [15:32:11]MH_I2C_Read... [15:32:11]Read from MH i2c: E2 03 00 [15:32:11]MH_I2C_Read... [15:32:11]Read from MH i2c: E2 03 00 47 45 00 90 00 00 [15:32:11]RAPDU: 90 00 [15:32:11]wFMCommunicate OK [15:32:11]wFMCommunicate request_size=4 [15:32:11]MH_SAM_APDU [15:32:11]CAPDU: 80 0D 03 02 [15:32:11]Write to MH i2c: E2 08 00 48 45 80 0D 03 02 00 00 00 00 08 [15:32:11]Write i2c OK [15:32:11]MH_I2C_Read... [15:32:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:32:11]Read from MH i2c: E2 [15:32:11]MH_I2C_Read... [15:32:11]Read from MH i2c: E2 0B 00 [15:32:11]MH_I2C_Read... [15:32:11]Read from MH i2c: E2 0B 00 48 45 00 52 53 72 FA EB 79 BD 49 90 00 84 [15:32:11]RAPDU: 52 53 72 FA EB 79 BD 49 90 00 [15:32:11]wFMCommunicate OK [15:32:11]SAM_PROTO_SignData done [15:32:11]FM_MakeSignedData done [15:32:11]CreateOFDProtocolMessage [15:32:11]wFMCommunicate request_size=4 [15:32:11]MH_SAM_APDU [15:32:11]CAPDU: 80 11 00 00 [15:32:11]Write to MH i2c: E2 08 00 49 45 80 11 00 00 00 00 00 00 08 [15:32:11]Write i2c OK [15:32:11]MH_I2C_Read... [15:32:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:32:11]Read from MH i2c: E2 [15:32:11]MH_I2C_Read... [15:32:11]Read from MH i2c: E2 17 00 [15:32:11]MH_I2C_Read... [15:32:11]Read from MH i2c: E2 17 00 49 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 53 [15:32:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:32:11]wFMCommunicate OK [15:32:11]CreateOFDProtocolMessage done [15:32:11]OFDSenderStorePacket 68385 [15:32:11]StoreOFDPacket docnum=68385 [15:32:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 59 FB 07 01 A4 F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 00 E2 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 21 0B 01 00 35 04 06 00 72 85 F7 06 95 1B 52 53 72 FA EB 79 BD 49 [15:32:11]CheckFolder [15:32:11]dirname=/storage/ofd_packets [15:32:11]CheckFolder done [15:32:11]ProducePacketName [15:32:11]name=ofd_packets/00068385 [15:32:11]NVStorageSaveData ofd_packets/00068385 [15:32:11]File name is /storage/ofd_packets/00068385 [15:32:11]Write 301 bytes [15:32:11]NVStorageSaveData done [15:32:11]OFDSenderStorePacket done [15:32:11]KKMCreateOFDPacket done [15:32:11]NVStorageSaveData kkm_last_timestamp [15:32:11]File name is /storage/kkm_last_timestamp [15:32:11]Write 4 bytes [15:32:11]NVStorageSaveData done [15:32:11]ExternCall_PrintAddStr [15:32:11]wPrintStart [15:32:11]Write to MH i2c: 01 00 00 4A 45 8F [15:32:11]Write i2c OK [15:32:11]MH_I2C_Read... [15:32:11]Read from MH i2c: 01 [15:32:11]MH_I2C_Read... [15:32:11]Read from MH i2c: 01 07 00 [15:32:11]MH_I2C_Read... [15:32:11]Read from MH i2c: 01 07 00 4A 45 00 00 00 00 00 FF 0F A4 [15:32:11]RasterBufferAndPrint [15:32:11]line Счет N : (1)706482 [15:32:11]line ИНН: 02508201610067 [15:32:11]line Контрольно-Кассовый Чек [15:32:11]line ПРОДАЖА [15:32:11]line ТРК (МРК, ГНК) : 63 [15:32:11]line Товар: 2710124130 [15:32:11]line Аи-92-К-4 [15:32:11]line 3.290 * 66.90 [15:32:11]line = 220.10 [15:32:11]line НДС 12% НСП 1% [15:32:11]line > о реализуемом товаре [15:32:11]line ОКРУГЛЕНИЕ: -0.10 [15:32:11]line ИТОГО: 220.00 [15:32:11]line Внесено: 220.00 [15:32:11]line СДАЧА: 0.00 [15:32:11]line НСП 1% : 1.95 [15:32:11]line НДС 12% : 23.37 [15:32:11]line Наличными: 220.00 [15:32:11]line Безнал.: 0.00 [15:32:11]line Место: АЗС № 62 "Партнер Нефть" [15:32:11]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [15:32:11]line СНО: Общий режим [15:32:11]line Чек 131 03.06.2024 15:32 [15:32:11]line Смена: 324 ФФД: 1.0 [15:32:11]line ЗНМ: 0300000181 [15:32:11]line РНМ: 0000000000098096 [15:32:11]line Версия ККМ: 001 [15:32:11]line ФМ: 0000000000965400 [15:32:11]line ФД: 68385 [15:32:11]line ФПД: 125919700620571 [15:32:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T153216&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68385&fm=125919700620571&tin=02508201610067®Number=0000000000098096&sum=22000 [15:32:12]OFD Sender: Processing packet 68385 [packets to send 26, broken 25] [15:32:12]ProducePacketName [15:32:12]name=ofd_packets/00068385 [15:32:12]OFD Sender: To server: pG, [15:32:12]CommunicateWithHost lk.salyk.kg:30040 [15:32:12]ConnectInit lk.salyk.kg [15:32:12]written 0, free lines is 4095 [15:32:12]Connected sock=7 [15:32:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 59 FB 07 01 A4 F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 00 E2 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 21 0B 01 00 35 04 06 00 72 85 F7 06 95 1B 52 53 72 FA EB 79 BD 49 [15:32:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 2A 0A 47 00 69 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 21 0B 01 00 F4 03 04 00 FB 88 5D 66 B6 04 01 00 00 5B A2 AD C1 E1 25 D3 E1 [15:32:12]CommunicateWithHost err = 0 [15:32:12]CheckOFDResponse [15:32:12]1017 (14) - 77093643461234 [15:32:12]1041 (16) - 0000000000965400 [15:32:12]1040 (4) - 68385 [15:32:12]1012 (4) - 03.06.2024 09:12 [15:32:12]1206 (1) - 0 [15:32:12]OFD Sender: Remove packet 68385 [15:32:12]ProducePacketName [15:32:12]name=ofd_packets/00068385 [15:32:12]NVStorageDeleteData [15:32:12]Write to MH i2c: 01 00 00 75 45 BA [15:32:12]Write i2c OK [15:32:12]MH_I2C_Read... [15:32:12]Read from MH i2c: 01 [15:32:12]MH_I2C_Read... [15:32:12]Read from MH i2c: 01 07 00 [15:32:12]MH_I2C_Read... [15:32:12]Read from MH i2c: 01 07 00 75 45 00 00 00 00 00 F1 0C BE [15:32:12]RasterBufferAndPrint [15:32:12]line [15:32:12]line [15:32:12]line [15:32:12]line [15:32:12]line [15:32:12]written 0, free lines is 3319 [15:32:12]MH_Cut [15:32:12]Write to MH i2c: D1 01 00 7C 45 01 93 [15:32:12]Write i2c OK [15:32:12]MH_I2C_Read... [15:32:12]Read from MH i2c: D1 [15:32:12]MH_I2C_Read... [15:32:12]Read from MH i2c: D1 01 00 [15:32:12]MH_I2C_Read... [15:32:12]Read from MH i2c: D1 01 00 7C 45 00 92 [15:32:12]Write to MH i2c: 01 00 00 7D 45 C2 [15:32:12]Write i2c OK [15:32:12]MH_I2C_Read... [15:32:12]OFD Sender: No OFD packet to send [15:32:13]*** Cut start [15:32:13]*** Partial cut [15:32:13]*** CUTSNS_PIN = 1 [15:32:13]*** CUTSNS_PIN = 0 [15:32:13]*** Brake cut motor [15:32:14]Read from MH i2c: 01 [15:32:14]MH_I2C_Read... [15:32:14]*** Stop cut motor [15:32:14]*** Cut end [15:32:14]Read from MH i2c: 01 07 00 [15:32:14]MH_I2C_Read... [15:32:14]Read from MH i2c: 01 07 00 7D 45 00 00 00 00 00 FF 0F D7 [15:32:14]process_action close_receipt done [15:32:14]requested_data is exist [15:32:14]produce_requested_data [15:32:14]requested_item fm.sn is exist - process it [15:32:14]wFMCommunicate request_size=4 [15:32:14]MH_SAM_APDU [15:32:14]CAPDU: 80 11 00 00 [15:32:14]Write to MH i2c: E2 08 00 7E 45 80 11 00 00 00 00 00 00 3D [15:32:14]Write i2c OK [15:32:14]MH_I2C_Read... [15:32:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:32:14]Read from MH i2c: E2 [15:32:14]MH_I2C_Read... [15:32:14]Read from MH i2c: E2 17 00 [15:32:14]MH_I2C_Read... [15:32:14]Read from MH i2c: E2 17 00 7E 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 88 [15:32:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:32:14]wFMCommunicate OK [15:32:14]requested_item fd.num is exist - process it [15:32:14]SAM_PROTO_GetFieldsCounters [15:32:14]wFMCommunicate request_size=4 [15:32:14]MH_SAM_APDU [15:32:14]CAPDU: 80 13 00 00 [15:32:14]Write to MH i2c: E2 08 00 7F 45 80 13 00 00 00 00 00 00 40 [15:32:14]Write i2c OK [15:32:14]MH_I2C_Read... [15:32:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:32:14]Read from MH i2c: E2 [15:32:14]MH_I2C_Read... [15:32:14]Read from MH i2c: E2 62 00 [15:32:14]MH_I2C_Read... [15:32:14]Read from MH i2c: E2 62 00 7F 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 21 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 5B [15:32:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 21 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:32:14]wFMCommunicate OK [15:32:14]SAM_PROTO_GetFieldsCounters done [15:32:14]requested_item shift.num is exist - process it [15:32:14]requested_item shift.opened is exist - process it [15:32:14]req_shift_opened [15:32:14]FM_GetShiftState [15:32:14]SAM_PROTO_GetShiftState [15:32:14]wFMCommunicate request_size=4 [15:32:14]MH_SAM_APDU [15:32:14]CAPDU: 80 13 01 00 [15:32:14]Write to MH i2c: E2 08 00 80 45 80 13 01 00 00 00 00 00 42 [15:32:14]Write i2c OK [15:32:14]MH_I2C_Read... [15:32:14]Read from MH i2c: E2 [15:32:14]MH_I2C_Read... [15:32:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:32:14]Read from MH i2c: E2 0E 00 [15:32:14]MH_I2C_Read... [15:32:14]Read from MH i2c: E2 0E 00 80 45 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 1D [15:32:14]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [15:32:14]wFMCommunicate OK [15:32:14]SAM_PROTO_GetShiftState done [15:32:14]FM_GetShiftState done [15:32:14]req_shift_opened done [15:32:14]requested_item shift.open_date is exist - process it [15:32:14]req_shift_open_date [15:32:14]req_shift_open_date done [15:32:14]produce_requested_data done [15:32:14]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68385,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [15:32:14]process_action_free close_receipt [15:32:14]json_value_free [15:32:14]json_value_free done [15:32:14]process_json_proto returns [15:32:14]Send response to host [15:32:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68385,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [15:32:14]free response buf [15:32:14]execute_script done [15:32:14]execute_script returns [15:32:14]free content buf [15:32:14]Sock 6.Close socket [15:32:14]Sock 6.Thread stoped [15:32:17]OFD Sender: No OFD packet to send [15:32:22]OFD Sender: No OFD packet to send [15:32:28]OFD Sender: No OFD packet to send [15:32:33]OFD Sender: No OFD packet to send [15:32:38]OFD Sender: No OFD packet to send [15:32:43]OFD Sender: No OFD packet to send [15:32:45]accept exits with 5 [15:32:45]New connection [15:32:45]New thread 3066686820 created [15:32:45]Thread 3066543460 joined [15:32:45]Waiting for new connection... [15:32:45] Sock 5.Parse request [15:32:45]Sock 5.Check first char [15:32:45]Sock 5.First char is OK [15:32:45]request: POST /json_proto HTTP/1.0 [15:32:45]Method: POST [15:32:45]URL: /json_proto [15:32:45]Method is POST - this is cgi request [15:32:45]url: /json_proto [15:32:45]query_string will be loaded in cgi processing [15:32:45]execute_cgi json_proto POST (null) [15:32:45]execute_cgi path=json_proto method=POST [15:32:45]POST find Content-Length [15:32:45]Host: 172.17.36.132:8080 [15:32:45]Content-Length: 677 [15:32:45]Content-Type: application/json [15:32:45] [15:32:45]POST finish read [15:32:45]Found Content-Length = 677 [15:32:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706483", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:32:45]execute_script... [15:32: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)706483", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:32:45]POST & json_proto [15:32:45]process_json_proto [15:32:45]json parsed OK: [15:32:45]protocol is kg_v1.0 [15:32:45]action value=close_receipt [15:32:45]process_action close_receipt [15:32:45]cmd_close_receipt [15:32:45]MH_GetDate [15:32:45]Write to MH i2c: F0 00 00 81 45 B5 [15:32:45]Write i2c OK [15:32:45]MH_I2C_Read... [15:32:45]Read from MH i2c: F0 [15:32:45]MH_I2C_Read... [15:32:45]Read from MH i2c: F0 09 00 [15:32:45]MH_I2C_Read... [15:32:45]Read from MH i2c: F0 09 00 81 45 00 23 E2 5D 66 B2 22 B0 64 6E [15:32:45]GetLastDocTimeStamp 1717428736 [15:32:45]current date 1717428771 [15:32:45]FM_GetShiftState [15:32:45]SAM_PROTO_GetShiftState [15:32:45]wFMCommunicate request_size=4 [15:32:45]MH_SAM_APDU [15:32:45]CAPDU: 80 13 01 00 [15:32:45]Write to MH i2c: E2 08 00 82 45 80 13 01 00 00 00 00 00 44 [15:32:45]Write i2c OK [15:32:45]MH_I2C_Read... [15:32:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:32:45]Read from MH i2c: E2 [15:32:45]MH_I2C_Read... [15:32:45]Read from MH i2c: E2 0E 00 [15:32:45]MH_I2C_Read... [15:32:45]Read from MH i2c: E2 0E 00 82 45 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 1F [15:32:45]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [15:32:45]wFMCommunicate OK [15:32:45]SAM_PROTO_GetShiftState done [15:32:45]FM_GetShiftState done [15:32:45]opened in 1717378033 [15:32:45]opened+sec_in_day 1717464433 [15:32:45]quantity*price = 30038 [15:32:45]sum+1 = 30039 [15:32:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 132 03.06.2024 15:32 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68386 ФПД: 265891362970894 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T153251&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68386&fm=265891362970894&tin=02508201610067®Number=0000000000098096&sum=30000 [15:32:46]StoreToDocumentArchive [15:32:46]shift 324 fd 68386 [15:32:46]save to /storage/0324/doc_00068386 [15:32:46]save last doc name /storage/0324/doc_00068386 to /storage/kkm_last_doc_name [15:32:46]save OK [15:32:46]Clear old archive folders... [15:32:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:32:46]tlvbuf is 0027E250 [15:32:46]SAM_PROTO_ClearQueue [15:32:46]wFMCommunicate request_size=4 [15:32:46]MH_SAM_APDU [15:32:46]CAPDU: 80 09 00 00 [15:32:46]Write to MH i2c: E2 08 00 8F 45 80 09 00 00 00 00 00 00 46 [15:32:46]Write i2c OK [15:32:46]MH_I2C_Read... [15:32:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:32:46]Read from MH i2c: E2 [15:32:46]MH_I2C_Read... [15:32:46]Read from MH i2c: E2 03 00 [15:32:46]MH_I2C_Read... [15:32:46]Read from MH i2c: E2 03 00 8F 45 00 90 00 48 [15:32:46]RAPDU: 90 00 [15:32:46]wFMCommunicate OK [15:32:46]SAM_PROTO_ClearQueue done [15:32:46]KKMCreateOFDPacket [15:32:46]OFDProtocolAddRootSTLVToBuf [15:32:46]FM_MakeSignedData [15:32:46]FM_MakeSignedData [15:32:46]SAM_PROTO_SignData [15:32:46]wFMCommunicate request_size=4 [15:32:46]MH_SAM_APDU [15:32:46]CAPDU: 80 0D 01 02 [15:32:46]Write to MH i2c: E2 08 00 90 45 80 0D 01 02 00 00 00 00 4E [15:32:46]Write i2c OK [15:32:46]MH_I2C_Read... [15:32:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:32:46]Read from MH i2c: E2 [15:32:46]MH_I2C_Read... [15:32:46]Read from MH i2c: E2 03 00 [15:32:46]MH_I2C_Read... [15:32:46]Read from MH i2c: E2 03 00 90 45 00 90 00 49 [15:32:46]RAPDU: 90 00 [15:32:46]wFMCommunicate OK [15:32:46]wFMCommunicate request_size=255 [15:32:46]MH_SAM_APDU [15:32:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 23 E2 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 22 0B 01 00 35 04 06 00 F1 [15:32:46]Write to MH i2c: E2 02 01 91 45 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 23 E2 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 22 0B 01 00 35 04 06 00 F1 00 00 7F [15:32:46]Write i2c OK [15:32:46]MH_I2C_Read... [15:32:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:32:47]Read from MH i2c: E2 [15:32:47]MH_I2C_Read... [15:32:47]Read from MH i2c: E2 03 00 [15:32:47]MH_I2C_Read... [15:32:47]Read from MH i2c: E2 03 00 91 45 00 90 00 4A [15:32:47]RAPDU: 90 00 [15:32:47]wFMCommunicate OK [15:32:47]wFMCommunicate request_size=10 [15:32:47]MH_SAM_APDU [15:32:47]CAPDU: 80 0D 02 02 05 D3 A8 3D 1D 0E [15:32:47]Write to MH i2c: E2 0D 00 92 45 80 0D 02 02 05 00 D3 A8 3D 1D 0E 00 00 3E [15:32:47]Write i2c OK [15:32:47]MH_I2C_Read... [15:32:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:32:47]Read from MH i2c: E2 [15:32:47]MH_I2C_Read... [15:32:47]Read from MH i2c: E2 03 00 [15:32:47]MH_I2C_Read... [15:32:47]Read from MH i2c: E2 03 00 92 45 00 90 00 4B [15:32:47]RAPDU: 90 00 [15:32:47]wFMCommunicate OK [15:32:47]wFMCommunicate request_size=4 [15:32:47]MH_SAM_APDU [15:32:47]CAPDU: 80 0D 03 02 [15:32:47]Write to MH i2c: E2 08 00 93 45 80 0D 03 02 00 00 00 00 53 [15:32:47]Write i2c OK [15:32:47]MH_I2C_Read... [15:32:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:32:47]Read from MH i2c: E2 [15:32:47]MH_I2C_Read... [15:32:47]Read from MH i2c: E2 0B 00 [15:32:47]MH_I2C_Read... [15:32:47]Read from MH i2c: E2 0B 00 93 45 00 48 93 F5 8E 8B 78 58 6F 90 00 7C [15:32:47]RAPDU: 48 93 F5 8E 8B 78 58 6F 90 00 [15:32:47]wFMCommunicate OK [15:32:47]SAM_PROTO_SignData done [15:32:47]FM_MakeSignedData done [15:32:47]CreateOFDProtocolMessage [15:32:47]wFMCommunicate request_size=4 [15:32:47]MH_SAM_APDU [15:32:47]CAPDU: 80 11 00 00 [15:32:47]Write to MH i2c: E2 08 00 94 45 80 11 00 00 00 00 00 00 53 [15:32:47]Write i2c OK [15:32:47]MH_I2C_Read... [15:32:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:32:47]Read from MH i2c: E2 [15:32:47]MH_I2C_Read... [15:32:47]Read from MH i2c: E2 17 00 [15:32:47]MH_I2C_Read... [15:32:47]Read from MH i2c: E2 17 00 94 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 9E [15:32:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:32:47]wFMCommunicate OK [15:32:47]CreateOFDProtocolMessage done [15:32:47]OFDSenderStorePacket 68386 [15:32:47]StoreOFDPacket docnum=68386 [15:32:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 B2 73 07 01 1E 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 23 E2 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 22 0B 01 00 35 04 06 00 F1 D3 A8 3D 1D 0E 48 93 F5 8E 8B 78 58 6F [15:32:47]CheckFolder [15:32:47]dirname=/storage/ofd_packets [15:32:47]CheckFolder done [15:32:47]ProducePacketName [15:32:47]name=ofd_packets/00068386 [15:32:47]NVStorageSaveData ofd_packets/00068386 [15:32:47]File name is /storage/ofd_packets/00068386 [15:32:47]Write 301 bytes [15:32:47]NVStorageSaveData done [15:32:47]OFDSenderStorePacket done [15:32:47]KKMCreateOFDPacket done [15:32:47]NVStorageSaveData kkm_last_timestamp [15:32:47]File name is /storage/kkm_last_timestamp [15:32:47]Write 4 bytes [15:32:47]NVStorageSaveData done [15:32:47]ExternCall_PrintAddStr [15:32:47]wPrintStart [15:32:47]Write to MH i2c: 01 00 00 95 45 DA [15:32:47]Write i2c OK [15:32:47]MH_I2C_Read... [15:32:47]Read from MH i2c: 01 [15:32:47]MH_I2C_Read... [15:32:47]Read from MH i2c: 01 07 00 [15:32:47]MH_I2C_Read... [15:32:47]Read from MH i2c: 01 07 00 95 45 00 00 00 00 00 FF 0F EF [15:32:47]RasterBufferAndPrint [15:32:47]line Счет N : (1)706483 [15:32:47]line ИНН: 02508201610067 [15:32:47]line Контрольно-Кассовый Чек [15:32:47]line ПРОДАЖА [15:32:47]line ТРК (МРК, ГНК) : 32 [15:32:47]line Товар: 2710124130 [15:32:47]line Аи-92-К-4 [15:32:47]line 4.490 * 66.90 [15:32:47]line = 300.38 [15:32:47]line НДС 12% НСП 1% [15:32:47]line > о реализуемом товаре [15:32:47]line ОКРУГЛЕНИЕ: -0.38 [15:32:47]line ИТОГО: 300.00 [15:32:47]line Внесено: 300.00 [15:32:47]line СДАЧА: 0.00 [15:32:47]line НСП 1% : 2.66 [15:32:47]line НДС 12% : 31.90 [15:32:47]line Наличными: 300.00 [15:32:47]line Безнал.: 0.00 [15:32:47]line Место: АЗС № 62 "Партнер Нефть" [15:32:47]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [15:32:47]line СНО: Общий режим [15:32:47]line Чек 132 03.06.2024 15:32 [15:32:47]line Смена: 324 ФФД: 1.0 [15:32:47]line ЗНМ: 0300000181 [15:32:47]line РНМ: 0000000000098096 [15:32:47]line Версия ККМ: 001 [15:32:47]line ФМ: 0000000000965400 [15:32:47]line ФД: 68386 [15:32:47]line ФПД: 265891362970894 [15:32:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T153251&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68386&fm=265891362970894&tin=02508201610067®Number=0000000000098096&sum=30000 [15:32:47]OFD Sender: Processing packet 68386 [packets to send 26, broken 25] [15:32:47]ProducePacketName [15:32:47]name=ofd_packets/00068386 [15:32:47]OFD Sender: To server: pG, [15:32:47]CommunicateWithHost lk.salyk.kg:30040 [15:32:47]ConnectInit lk.salyk.kg [15:32:47]written 0, free lines is 4095 [15:32:47]Connected sock=7 [15:32:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 B2 73 07 01 1E 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 23 E2 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 22 0B 01 00 35 04 06 00 F1 D3 A8 3D 1D 0E 48 93 F5 8E 8B 78 58 6F [15:32:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 BC 0C 47 00 72 21 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 22 0B 01 00 F4 03 04 00 1F 89 5D 66 B6 04 01 00 00 5F 32 2D F0 3B A7 26 3F [15:32:47]CommunicateWithHost err = 0 [15:32:47]CheckOFDResponse [15:32:47]1017 (14) - 77093643461234 [15:32:47]1041 (16) - 0000000000965400 [15:32:47]1040 (4) - 68386 [15:32:47]1012 (4) - 03.06.2024 09:13 [15:32:47]1206 (1) - 0 [15:32:47]OFD Sender: Remove packet 68386 [15:32:47]ProducePacketName [15:32:47]name=ofd_packets/00068386 [15:32:47]NVStorageDeleteData [15:32:48]Write to MH i2c: 01 00 00 C0 45 05 [15:32:48]Write i2c OK [15:32:48]MH_I2C_Read... [15:32:48]Read from MH i2c: 01 [15:32:48]MH_I2C_Read... [15:32:48]Read from MH i2c: 01 07 00 [15:32:48]MH_I2C_Read... [15:32:48]Read from MH i2c: 01 07 00 C0 45 00 00 00 00 00 F4 0C 0C [15:32:48]RasterBufferAndPrint [15:32:48]line [15:32:48]line [15:32:48]line [15:32:48]line [15:32:48]line [15:32:48]written 0, free lines is 3323 [15:32:48]MH_Cut [15:32:48]Write to MH i2c: D1 01 00 C7 45 01 DE [15:32:48]Write i2c OK [15:32:48]MH_I2C_Read... [15:32:48]Read from MH i2c: D1 [15:32:48]MH_I2C_Read... [15:32:48]Read from MH i2c: D1 01 00 [15:32:48]MH_I2C_Read... [15:32:48]Read from MH i2c: D1 01 00 C7 45 00 DD [15:32:48]Write to MH i2c: 01 00 00 C8 45 0D [15:32:48]Write i2c OK [15:32:48]MH_I2C_Read... [15:32:48]OFD Sender: No OFD packet to send [15:32:48]*** Cut start [15:32:48]*** Partial cut [15:32:48]*** CUTSNS_PIN = 1 [15:32:48]*** CUTSNS_PIN = 0 [15:32:49]*** Brake cut motor [15:32:49]Read from MH i2c: 01 [15:32:49]MH_I2C_Read... [15:32:49]*** Stop cut motor [15:32:49]*** Cut end [15:32:49]Read from MH i2c: 01 07 00 [15:32:49]MH_I2C_Read... [15:32:49]Read from MH i2c: 01 07 00 C8 45 00 00 00 00 00 FF 0F 22 [15:32:49]process_action close_receipt done [15:32:49]requested_data is exist [15:32:49]produce_requested_data [15:32:49]requested_item fm.sn is exist - process it [15:32:49]wFMCommunicate request_size=4 [15:32:49]MH_SAM_APDU [15:32:49]CAPDU: 80 11 00 00 [15:32:49]Write to MH i2c: E2 08 00 C9 45 80 11 00 00 00 00 00 00 88 [15:32:49]Write i2c OK [15:32:49]MH_I2C_Read... [15:32:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:32:49]Read from MH i2c: E2 [15:32:49]MH_I2C_Read... [15:32:49]Read from MH i2c: E2 17 00 [15:32:49]MH_I2C_Read... [15:32:49]Read from MH i2c: E2 17 00 C9 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 D3 [15:32:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:32:49]wFMCommunicate OK [15:32:49]requested_item fd.num is exist - process it [15:32:49]SAM_PROTO_GetFieldsCounters [15:32:49]wFMCommunicate request_size=4 [15:32:49]MH_SAM_APDU [15:32:49]CAPDU: 80 13 00 00 [15:32:49]Write to MH i2c: E2 08 00 CA 45 80 13 00 00 00 00 00 00 8B [15:32:49]Write i2c OK [15:32:49]MH_I2C_Read... [15:32:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:32:49]Read from MH i2c: E2 [15:32:49]MH_I2C_Read... [15:32:49]Read from MH i2c: E2 62 00 [15:32:49]MH_I2C_Read... [15:32:49]Read from MH i2c: E2 62 00 CA 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 22 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 AA [15:32:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 22 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:32:49]wFMCommunicate OK [15:32:49]SAM_PROTO_GetFieldsCounters done [15:32:49]requested_item shift.num is exist - process it [15:32:49]requested_item shift.opened is exist - process it [15:32:49]req_shift_opened [15:32:49]FM_GetShiftState [15:32:49]SAM_PROTO_GetShiftState [15:32:49]wFMCommunicate request_size=4 [15:32:49]MH_SAM_APDU [15:32:49]CAPDU: 80 13 01 00 [15:32:49]Write to MH i2c: E2 08 00 CB 45 80 13 01 00 00 00 00 00 8D [15:32:49]Write i2c OK [15:32:49]MH_I2C_Read... [15:32:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:32:49]Read from MH i2c: E2 [15:32:49]MH_I2C_Read... [15:32:49]Read from MH i2c: E2 0E 00 [15:32:49]MH_I2C_Read... [15:32:49]Read from MH i2c: E2 0E 00 CB 45 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 68 [15:32:49]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [15:32:49]wFMCommunicate OK [15:32:49]SAM_PROTO_GetShiftState done [15:32:49]FM_GetShiftState done [15:32:49]req_shift_opened done [15:32:49]requested_item shift.open_date is exist - process it [15:32:49]req_shift_open_date [15:32:49]req_shift_open_date done [15:32:49]produce_requested_data done [15:32:49]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68386,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [15:32:49]process_action_free close_receipt [15:32:49]json_value_free [15:32:49]json_value_free done [15:32:49]process_json_proto returns [15:32:49]Send response to host [15:32:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68386,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [15:32:49]free response buf [15:32:49]execute_script done [15:32:49]execute_script returns [15:32:49]free content buf [15:32:49]Sock 5.Close socket [15:32:49]Sock 5.Thread stoped [15:32:53]OFD Sender: No OFD packet to send [15:32:58]OFD Sender: No OFD packet to send [15:33:03]OFD Sender: No OFD packet to send [15:33:08]OFD Sender: No OFD packet to send [15:33:13]OFD Sender: No OFD packet to send [15:33:18]OFD Sender: No OFD packet to send [15:33:23]OFD Sender: No OFD packet to send [15:33:28]OFD Sender: No OFD packet to send [15:33:33]OFD Sender: No OFD packet to send [15:33:38]OFD Sender: No OFD packet to send [15:33:43]OFD Sender: No OFD packet to send [15:33:48]OFD Sender: No OFD packet to send [15:33:53]OFD Sender: No OFD packet to send [15:33:58]OFD Sender: No OFD packet to send [15:34:03]OFD Sender: No OFD packet to send [15:34:08]OFD Sender: No OFD packet to send [15:34:13]OFD Sender: No OFD packet to send [15:34:18]OFD Sender: No OFD packet to send [15:34:23]OFD Sender: No OFD packet to send [15:34:28]OFD Sender: No OFD packet to send [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:18]OFD Sender: No OFD packet to send [15:35:23]OFD Sender: No OFD packet to send [15:35:28]OFD Sender: No OFD packet to send [15:35:33]OFD Sender: No OFD packet to send [15:35:38]OFD Sender: No OFD packet to send [15:35:43]OFD Sender: No OFD packet to send [15:35:48]OFD Sender: No OFD packet to send [15:35:53]OFD Sender: No OFD packet to send [15:35:58]OFD Sender: No OFD packet to send [15:36:03]OFD Sender: No OFD packet to send [15:36:08]OFD Sender: No OFD packet to send [15:36:13]OFD Sender: No OFD packet to send [15:36:18]OFD Sender: No OFD packet to send [15:36:23]OFD Sender: No OFD packet to send [15:36:28]OFD Sender: No OFD packet to send [15:36:33]OFD Sender: No OFD packet to send [15:36:38]OFD Sender: No OFD packet to send [15:36:43]OFD Sender: No OFD packet to send [15:36:48]OFD Sender: No OFD packet to send [15:36:53]OFD Sender: No OFD packet to send [15:36:58]OFD Sender: No OFD packet to send [15:37:03]OFD Sender: No OFD packet to send [15:37:08]OFD Sender: No OFD packet to send [15:37:13]OFD Sender: No OFD packet to send [15:37:18]OFD Sender: No OFD packet to send [15:37:23]OFD Sender: No OFD packet to send [15:37:28]OFD Sender: No OFD packet to send [15:37:33]OFD Sender: No OFD packet to send [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:35]accept exits with 6 [15:39:35]New connection [15:39:35]New thread 3066543460 created [15:39:35]Thread 3066686820 joined [15:39:35]Waiting for new connection... [15:39:35] Sock 6.Parse request [15:39:35]Sock 6.Check first char [15:39:35]Sock 6.First char is OK [15:39:35]request: POST /json_proto HTTP/1.0 [15:39:35]Method: POST [15:39:35]URL: /json_proto [15:39:35]Method is POST - this is cgi request [15:39:35]url: /json_proto [15:39:35]query_string will be loaded in cgi processing [15:39:35]execute_cgi json_proto POST (null) [15:39:35]execute_cgi path=json_proto method=POST [15:39:35]POST find Content-Length [15:39:35]Host: 172.17.36.132:8080 [15:39:35]Content-Length: 682 [15:39:35]Content-Type: application/json [15:39:35] [15:39:35]POST finish read [15:39:35]Found Content-Length = 682 [15:39:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706484", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 27.070, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:39:35]execute_script... [15:39: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)706484", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 27.070, "sum" : 2000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:39:35]POST & json_proto [15:39:35]process_json_proto [15:39:35]json parsed OK: [15:39:35]protocol is kg_v1.0 [15:39:35]action value=close_receipt [15:39:35]process_action close_receipt [15:39:35]cmd_close_receipt [15:39:35]MH_GetDate [15:39:35]Write to MH i2c: F0 00 00 CC 45 00 [15:39:35]Write i2c OK [15:39:35]MH_I2C_Read... [15:39:35]Read from MH i2c: F0 [15:39:35]MH_I2C_Read... [15:39:35]Read from MH i2c: F0 09 00 [15:39:35]MH_I2C_Read... [15:39:35]Read from MH i2c: F0 09 00 CC 45 00 BD E3 5D 66 B2 22 B0 64 54 [15:39:35]GetLastDocTimeStamp 1717428771 [15:39:35]current date 1717429181 [15:39:35]FM_GetShiftState [15:39:35]SAM_PROTO_GetShiftState [15:39:35]wFMCommunicate request_size=4 [15:39:35]MH_SAM_APDU [15:39:35]CAPDU: 80 13 01 00 [15:39:35]Write to MH i2c: E2 08 00 CD 45 80 13 01 00 00 00 00 00 8F [15:39:35]Write i2c OK [15:39:35]MH_I2C_Read... [15:39:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:39:35]Read from MH i2c: E2 [15:39:35]MH_I2C_Read... [15:39:35]Read from MH i2c: E2 0E 00 [15:39:35]MH_I2C_Read... [15:39:35]Read from MH i2c: E2 0E 00 CD 45 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 6A [15:39:35]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [15:39:35]wFMCommunicate OK [15:39:35]SAM_PROTO_GetShiftState done [15:39:35]FM_GetShiftState done [15:39:35]opened in 1717378033 [15:39:35]opened+sec_in_day 1717464433 [15:39:35]quantity*price = 200047 [15:39:35]sum+1 = 200048 [15:39:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.44 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 133 03.06.2024 15:39 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68387 ФПД: 107942980207445 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T153941&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68387&fm=107942980207445&tin=02508201610067®Number=0000000000098096&sum=200000 [15:39:36]StoreToDocumentArchive [15:39:36]shift 324 fd 68387 [15:39:36]save to /storage/0324/doc_00068387 [15:39:36]save last doc name /storage/0324/doc_00068387 to /storage/kkm_last_doc_name [15:39:36]save OK [15:39:36]Clear old archive folders... [15:39:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:39:36]tlvbuf is 00354B00 [15:39:36]SAM_PROTO_ClearQueue [15:39:36]wFMCommunicate request_size=4 [15:39:36]MH_SAM_APDU [15:39:36]CAPDU: 80 09 00 00 [15:39:36]Write to MH i2c: E2 08 00 DA 45 80 09 00 00 00 00 00 00 91 [15:39:36]Write i2c OK [15:39:36]MH_I2C_Read... [15:39:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:39:36]Read from MH i2c: E2 [15:39:36]MH_I2C_Read... [15:39:36]Read from MH i2c: E2 03 00 [15:39:36]MH_I2C_Read... [15:39:36]Read from MH i2c: E2 03 00 DA 45 00 90 00 93 [15:39:36]RAPDU: 90 00 [15:39:36]wFMCommunicate OK [15:39:36]SAM_PROTO_ClearQueue done [15:39:36]KKMCreateOFDPacket [15:39:36]OFDProtocolAddRootSTLVToBuf [15:39:36]FM_MakeSignedData [15:39:36]FM_MakeSignedData [15:39:36]SAM_PROTO_SignData [15:39:36]wFMCommunicate request_size=4 [15:39:36]MH_SAM_APDU [15:39:36]CAPDU: 80 0D 01 02 [15:39:36]Write to MH i2c: E2 08 00 DB 45 80 0D 01 02 00 00 00 00 99 [15:39:36]Write i2c OK [15:39:36]MH_I2C_Read... [15:39:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:39:36]Read from MH i2c: E2 [15:39:36]MH_I2C_Read... [15:39:36]Read from MH i2c: E2 03 00 [15:39:36]MH_I2C_Read... [15:39:36]Read from MH i2c: E2 03 00 DB 45 00 90 00 94 [15:39:36]RAPDU: 90 00 [15:39:36]wFMCommunicate OK [15:39:36]wFMCommunicate request_size=255 [15:39:36]MH_SAM_APDU [15:39:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 BD E3 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 23 0B 01 00 35 04 06 00 62 [15:39:36]Write to MH i2c: E2 02 01 DC 45 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 BD E3 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 23 0B 01 00 35 04 06 00 62 00 00 E2 [15:39:36]Write i2c OK [15:39:36]MH_I2C_Read... [15:39:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:39:36]Read from MH i2c: E2 [15:39:36]MH_I2C_Read... [15:39:36]Read from MH i2c: E2 03 00 [15:39:36]MH_I2C_Read... [15:39:36]Read from MH i2c: E2 03 00 DC 45 00 90 00 95 [15:39:36]RAPDU: 90 00 [15:39:36]wFMCommunicate OK [15:39:36]wFMCommunicate request_size=10 [15:39:36]MH_SAM_APDU [15:39:36]CAPDU: 80 0D 02 02 05 2C 6E FD C3 55 [15:39:36]Write to MH i2c: E2 0D 00 DD 45 80 0D 02 02 05 00 2C 6E FD C3 55 00 00 55 [15:39:36]Write i2c OK [15:39:36]MH_I2C_Read... [15:39:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:39:36]Read from MH i2c: E2 [15:39:36]MH_I2C_Read... [15:39:36]Read from MH i2c: E2 03 00 [15:39:36]MH_I2C_Read... [15:39:36]Read from MH i2c: E2 03 00 DD 45 00 90 00 96 [15:39:36]RAPDU: 90 00 [15:39:36]wFMCommunicate OK [15:39:36]wFMCommunicate request_size=4 [15:39:36]MH_SAM_APDU [15:39:36]CAPDU: 80 0D 03 02 [15:39:36]Write to MH i2c: E2 08 00 DE 45 80 0D 03 02 00 00 00 00 9E [15:39:36]Write i2c OK [15:39:36]MH_I2C_Read... [15:39:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:39:36]Read from MH i2c: E2 [15:39:36]MH_I2C_Read... [15:39:36]Read from MH i2c: E2 0B 00 [15:39:36]MH_I2C_Read... [15:39:36]Read from MH i2c: E2 0B 00 DE 45 00 C8 56 09 03 1C 1D 06 F4 90 00 FC [15:39:36]RAPDU: C8 56 09 03 1C 1D 06 F4 90 00 [15:39:36]wFMCommunicate OK [15:39:36]SAM_PROTO_SignData done [15:39:36]FM_MakeSignedData done [15:39:36]CreateOFDProtocolMessage [15:39:36]wFMCommunicate request_size=4 [15:39:36]MH_SAM_APDU [15:39:36]CAPDU: 80 11 00 00 [15:39:36]Write to MH i2c: E2 08 00 DF 45 80 11 00 00 00 00 00 00 9E [15:39:36]Write i2c OK [15:39:36]MH_I2C_Read... [15:39:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:39:37]Read from MH i2c: E2 [15:39:37]MH_I2C_Read... [15:39:37]Read from MH i2c: E2 17 00 [15:39:37]MH_I2C_Read... [15:39:37]Read from MH i2c: E2 17 00 DF 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 E9 [15:39:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:39:37]wFMCommunicate OK [15:39:37]CreateOFDProtocolMessage done [15:39:37]OFDSenderStorePacket 68387 [15:39:37]StoreOFDPacket docnum=68387 [15:39:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 24 D0 07 01 3F 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 BD E3 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 23 0B 01 00 35 04 06 00 62 2C 6E FD C3 55 C8 56 09 03 1C 1D 06 F4 [15:39:37]CheckFolder [15:39:37]dirname=/storage/ofd_packets [15:39:37]CheckFolder done [15:39:37]ProducePacketName [15:39:37]name=ofd_packets/00068387 [15:39:37]NVStorageSaveData ofd_packets/00068387 [15:39:37]File name is /storage/ofd_packets/00068387 [15:39:37]Write 301 bytes [15:39:37]NVStorageSaveData done [15:39:37]OFDSenderStorePacket done [15:39:37]KKMCreateOFDPacket done [15:39:37]NVStorageSaveData kkm_last_timestamp [15:39:37]File name is /storage/kkm_last_timestamp [15:39:37]Write 4 bytes [15:39:37]NVStorageSaveData done [15:39:37]ExternCall_PrintAddStr [15:39:37]wPrintStart [15:39:37]Write to MH i2c: 01 00 00 E0 45 25 [15:39:37]Write i2c OK [15:39:37]MH_I2C_Read... [15:39:37]Read from MH i2c: 01 [15:39:37]MH_I2C_Read... [15:39:37]Read from MH i2c: 01 07 00 [15:39:37]MH_I2C_Read... [15:39:37]Read from MH i2c: 01 07 00 E0 45 00 00 00 00 00 FF 0F 3A [15:39:37]RasterBufferAndPrint [15:39:37]line Счет N : (1)706484 [15:39:37]line ИНН: 02508201610067 [15:39:37]line Контрольно-Кассовый Чек [15:39:37]line ПРОДАЖА [15:39:37]line ТРК (МРК, ГНК) : 43 [15:39:37]line Товар: 2710124500 [15:39:37]line Аи-95-К-5 [15:39:37]line 27.070 * 73.90 [15:39:37]line = 2000.47 [15:39:37]line НДС 12% НСП 1% [15:39:37]line > о реализуемом товаре [15:39:37]line ОКРУГЛЕНИЕ: -0.47 [15:39:37]line ИТОГО: 2000.00 [15:39:37]line Внесено: 2000.00 [15:39:37]line СДАЧА: 0.00 [15:39:37]line НСП 1% : 17.70 [15:39:37]line НДС 12% : 212.44 [15:39:37]line Наличными: 2000.00 [15:39:37]line Безнал.: 0.00 [15:39:37]line Место: АЗС № 62 "Партнер Нефть" [15:39:37]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [15:39:37]line СНО: Общий режим [15:39:37]line Чек 133 03.06.2024 15:39 [15:39:37]line Смена: 324 ФФД: 1.0 [15:39:37]line ЗНМ: 0300000181 [15:39:37]line РНМ: 0000000000098096 [15:39:37]line Версия ККМ: 001 [15:39:37]line ФМ: 0000000000965400 [15:39:37]line ФД: 68387 [15:39:37]line ФПД: 107942980207445 [15:39:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T153941&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68387&fm=107942980207445&tin=02508201610067®Number=0000000000098096&sum=200000 [15:39:37]OFD Sender: Processing packet 68387 [packets to send 26, broken 25] [15:39:37]ProducePacketName [15:39:37]name=ofd_packets/00068387 [15:39:37]OFD Sender: To server: pG, [15:39:37]CommunicateWithHost lk.salyk.kg:30040 [15:39:37]ConnectInit lk.salyk.kg [15:39:37]written 0, free lines is 4095 [15:39:37]Connected sock=7 [15:39:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 24 D0 07 01 3F 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 BD E3 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 23 0B 01 00 35 04 06 00 62 2C 6E FD C3 55 C8 56 09 03 1C 1D 06 F4 [15:39:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 FC 16 47 00 D4 A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 23 0B 01 00 F4 03 04 00 B8 8A 5D 66 B6 04 01 00 00 AC 09 93 83 00 F1 34 2D [15:39:37]CommunicateWithHost err = 0 [15:39:37]CheckOFDResponse [15:39:37]1017 (14) - 77093643461234 [15:39:37]1041 (16) - 0000000000965400 [15:39:37]1040 (4) - 68387 [15:39:37]1012 (4) - 03.06.2024 09:19 [15:39:37]1206 (1) - 0 [15:39:37]OFD Sender: Remove packet 68387 [15:39:37]ProducePacketName [15:39:37]name=ofd_packets/00068387 [15:39:37]NVStorageDeleteData [15:39:37]Write to MH i2c: 01 00 00 0B 46 51 [15:39:37]Write i2c OK [15:39:37]MH_I2C_Read... [15:39:37]Read from MH i2c: 01 [15:39:37]MH_I2C_Read... [15:39:37]Read from MH i2c: 01 07 00 [15:39:37]MH_I2C_Read... [15:39:37]Read from MH i2c: 01 07 00 0B 46 00 00 00 00 00 E8 0C 4C [15:39:37]RasterBufferAndPrint [15:39:37]line [15:39:37]line [15:39:37]line [15:39:37]line [15:39:37]line [15:39:37]written 0, free lines is 3310 [15:39:37]MH_Cut [15:39:37]Write to MH i2c: D1 01 00 12 46 01 2A [15:39:37]Write i2c OK [15:39:37]MH_I2C_Read... [15:39:37]Read from MH i2c: D1 [15:39:37]MH_I2C_Read... [15:39:37]Read from MH i2c: D1 01 00 [15:39:37]MH_I2C_Read... [15:39:37]Read from MH i2c: D1 01 00 12 46 00 29 [15:39:37]Write to MH i2c: 01 00 00 13 46 59 [15:39:37]Write i2c OK [15:39:37]MH_I2C_Read... [15:39:38]OFD Sender: No OFD packet to send [15:39:38]*** Cut start [15:39:38]*** Partial cut [15:39:38]*** CUTSNS_PIN = 1 [15:39:38]*** CUTSNS_PIN = 0 [15:39:38]*** Brake cut motor [15:39:39]Read from MH i2c: 01 [15:39:39]MH_I2C_Read... [15:39:39]*** Stop cut motor [15:39:39]*** Cut end [15:39:39]Read from MH i2c: 01 07 00 [15:39:39]MH_I2C_Read... [15:39:39]Read from MH i2c: 01 07 00 13 46 00 00 00 00 00 FF 0F 6E [15:39:39]process_action close_receipt done [15:39:39]requested_data is exist [15:39:39]produce_requested_data [15:39:39]requested_item fm.sn is exist - process it [15:39:39]wFMCommunicate request_size=4 [15:39:39]MH_SAM_APDU [15:39:39]CAPDU: 80 11 00 00 [15:39:39]Write to MH i2c: E2 08 00 14 46 80 11 00 00 00 00 00 00 D4 [15:39:39]Write i2c OK [15:39:39]MH_I2C_Read... [15:39:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:39:39]Read from MH i2c: E2 [15:39:39]MH_I2C_Read... [15:39:39]Read from MH i2c: E2 17 00 [15:39:39]MH_I2C_Read... [15:39:39]Read from MH i2c: E2 17 00 14 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 1F [15:39:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:39:39]wFMCommunicate OK [15:39:39]requested_item fd.num is exist - process it [15:39:39]SAM_PROTO_GetFieldsCounters [15:39:39]wFMCommunicate request_size=4 [15:39:39]MH_SAM_APDU [15:39:39]CAPDU: 80 13 00 00 [15:39:39]Write to MH i2c: E2 08 00 15 46 80 13 00 00 00 00 00 00 D7 [15:39:39]Write i2c OK [15:39:39]MH_I2C_Read... [15:39:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:39:39]Read from MH i2c: E2 [15:39:39]MH_I2C_Read... [15:39:39]Read from MH i2c: E2 62 00 [15:39:39]MH_I2C_Read... [15:39:39]Read from MH i2c: E2 62 00 15 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 23 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 FA [15:39:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 23 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:39:39]wFMCommunicate OK [15:39:39]SAM_PROTO_GetFieldsCounters done [15:39:39]requested_item shift.num is exist - process it [15:39:39]requested_item shift.opened is exist - process it [15:39:39]req_shift_opened [15:39:39]FM_GetShiftState [15:39:39]SAM_PROTO_GetShiftState [15:39:39]wFMCommunicate request_size=4 [15:39:39]MH_SAM_APDU [15:39:39]CAPDU: 80 13 01 00 [15:39:39]Write to MH i2c: E2 08 00 16 46 80 13 01 00 00 00 00 00 D9 [15:39:39]Write i2c OK [15:39:39]MH_I2C_Read... [15:39:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:39:39]Read from MH i2c: E2 [15:39:39]MH_I2C_Read... [15:39:39]Read from MH i2c: E2 0E 00 [15:39:39]MH_I2C_Read... [15:39:39]Read from MH i2c: E2 0E 00 16 46 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 B4 [15:39:39]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [15:39:39]wFMCommunicate OK [15:39:39]SAM_PROTO_GetShiftState done [15:39:39]FM_GetShiftState done [15:39:39]req_shift_opened done [15:39:39]requested_item shift.open_date is exist - process it [15:39:39]req_shift_open_date [15:39:39]req_shift_open_date done [15:39:39]produce_requested_data done [15:39:39]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68387,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [15:39:39]process_action_free close_receipt [15:39:39]json_value_free [15:39:39]json_value_free done [15:39:39]process_json_proto returns [15:39:39]Send response to host [15:39:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68387,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [15:39:39]free response buf [15:39:39]execute_script done [15:39:39]execute_script returns [15:39:39]free content buf [15:39:39]Sock 6.Close socket [15:39:39]Sock 6.Thread stoped [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:05]accept exits with 5 [15:42:05]New connection [15:42:05]New thread 3066686820 created [15:42:05]Thread 3066543460 joined [15:42:05]Waiting for new connection... [15:42:05] Sock 5.Parse request [15:42:05]Sock 5.Check first char [15:42:05]Sock 5.First char is OK [15:42:05]request: POST /json_proto HTTP/1.0 [15:42:05]Method: POST [15:42:05]URL: /json_proto [15:42:05]Method is POST - this is cgi request [15:42:05]url: /json_proto [15:42:05]query_string will be loaded in cgi processing [15:42:05]execute_cgi json_proto POST (null) [15:42:05]execute_cgi path=json_proto method=POST [15:42:05]POST find Content-Length [15:42:05]Host: 172.17.36.132:8080 [15:42:05]Content-Length: 687 [15:42:05]Content-Type: application/json [15:42:05] [15:42:05]POST finish read [15:42:05]Found Content-Length = 687 [15:42:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706486", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 20.580, "sum" : 1500.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:42:05]execute_script... [15:42:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706486", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 20.580, "sum" : 1500.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:42:05]POST & json_proto [15:42:05]process_json_proto [15:42:05]json parsed OK: [15:42:05]protocol is kg_v1.0 [15:42:05]action value=close_receipt [15:42:05]process_action close_receipt [15:42:05]cmd_close_receipt [15:42:05]MH_GetDate [15:42:05]Write to MH i2c: F0 00 00 17 46 4C [15:42:05]Write i2c OK [15:42:05]MH_I2C_Read... [15:42:05]Read from MH i2c: F0 [15:42:05]MH_I2C_Read... [15:42:05]Read from MH i2c: F0 09 00 [15:42:05]MH_I2C_Read... [15:42:05]Read from MH i2c: F0 09 00 17 46 00 52 E4 5D 66 B2 22 B0 64 36 [15:42:05]GetLastDocTimeStamp 1717429181 [15:42:05]current date 1717429330 [15:42:05]FM_GetShiftState [15:42:05]SAM_PROTO_GetShiftState [15:42:05]wFMCommunicate request_size=4 [15:42:05]MH_SAM_APDU [15:42:05]CAPDU: 80 13 01 00 [15:42:05]Write to MH i2c: E2 08 00 18 46 80 13 01 00 00 00 00 00 DB [15:42:05]Write i2c OK [15:42:05]MH_I2C_Read... [15:42:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:05]Read from MH i2c: E2 [15:42:05]MH_I2C_Read... [15:42:05]Read from MH i2c: E2 0E 00 [15:42:05]MH_I2C_Read... [15:42:05]Read from MH i2c: E2 0E 00 18 46 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 B6 [15:42:05]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [15:42:05]wFMCommunicate OK [15:42:05]SAM_PROTO_GetShiftState done [15:42:05]FM_GetShiftState done [15:42:05]opened in 1717378033 [15:42:05]opened+sec_in_day 1717464433 [15:42:05]quantity*price = 150028 [15:42:05]sum+1 = 150029 [15:42:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.32 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 134 03.06.2024 15:42 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68388 ФПД: 262487695301660 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T154210&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68388&fm=262487695301660&tin=02508201610067®Number=0000000000098096&sum=150000 [15:42:06]StoreToDocumentArchive [15:42:06]shift 324 fd 68388 [15:42:06]save to /storage/0324/doc_00068388 [15:42:06]save last doc name /storage/0324/doc_00068388 to /storage/kkm_last_doc_name [15:42:06]save OK [15:42:06]Clear old archive folders... [15:42:06]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:42:06]tlvbuf is 00331FA0 [15:42:06]SAM_PROTO_ClearQueue [15:42:06]wFMCommunicate request_size=4 [15:42:06]MH_SAM_APDU [15:42:06]CAPDU: 80 09 00 00 [15:42:06]Write to MH i2c: E2 08 00 25 46 80 09 00 00 00 00 00 00 DD [15:42:06]Write i2c OK [15:42:06]MH_I2C_Read... [15:42:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:42:06]Read from MH i2c: E2 [15:42:06]MH_I2C_Read... [15:42:06]Read from MH i2c: E2 03 00 [15:42:06]MH_I2C_Read... [15:42:06]Read from MH i2c: E2 03 00 25 46 00 90 00 DF [15:42:06]RAPDU: 90 00 [15:42:06]wFMCommunicate OK [15:42:06]SAM_PROTO_ClearQueue done [15:42:06]KKMCreateOFDPacket [15:42:06]OFDProtocolAddRootSTLVToBuf [15:42:06]FM_MakeSignedData [15:42:06]FM_MakeSignedData [15:42:06]SAM_PROTO_SignData [15:42:06]wFMCommunicate request_size=4 [15:42:06]MH_SAM_APDU [15:42:06]CAPDU: 80 0D 01 02 [15:42:06]Write to MH i2c: E2 08 00 26 46 80 0D 01 02 00 00 00 00 E5 [15:42:06]Write i2c OK [15:42:06]MH_I2C_Read... [15:42:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:42:06]Read from MH i2c: E2 [15:42:06]MH_I2C_Read... [15:42:06]Read from MH i2c: E2 03 00 [15:42:06]MH_I2C_Read... [15:42:06]Read from MH i2c: E2 03 00 26 46 00 90 00 E0 [15:42:06]RAPDU: 90 00 [15:42:06]wFMCommunicate OK [15:42:06]wFMCommunicate request_size=255 [15:42:06]MH_SAM_APDU [15:42:06]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 34 FF 03 08 00 03 64 50 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 52 E4 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 24 0B 01 00 35 04 06 00 [15:42:06]Write to MH i2c: E2 02 01 27 46 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 34 FF 03 08 00 03 64 50 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 52 E4 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 24 0B 01 00 35 04 06 00 00 00 E3 [15:42:06]Write i2c OK [15:42:06]MH_I2C_Read... [15:42:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:06]Read from MH i2c: E2 [15:42:06]MH_I2C_Read... [15:42:06]Read from MH i2c: E2 03 00 [15:42:06]MH_I2C_Read... [15:42:06]Read from MH i2c: E2 03 00 27 46 00 90 00 E1 [15:42:06]RAPDU: 90 00 [15:42:06]wFMCommunicate OK [15:42:06]wFMCommunicate request_size=11 [15:42:06]MH_SAM_APDU [15:42:06]CAPDU: 80 0D 02 02 06 EE BB 2D D6 1C 1C [15:42:06]Write to MH i2c: E2 0E 00 28 46 80 0D 02 02 06 00 EE BB 2D D6 1C 1C 00 00 D8 [15:42:06]Write i2c OK [15:42:06]MH_I2C_Read... [15:42:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:06]Read from MH i2c: E2 [15:42:06]MH_I2C_Read... [15:42:06]Read from MH i2c: E2 03 00 [15:42:06]MH_I2C_Read... [15:42:06]Read from MH i2c: E2 03 00 28 46 00 90 00 E2 [15:42:06]RAPDU: 90 00 [15:42:06]wFMCommunicate OK [15:42:06]wFMCommunicate request_size=4 [15:42:06]MH_SAM_APDU [15:42:06]CAPDU: 80 0D 03 02 [15:42:06]Write to MH i2c: E2 08 00 29 46 80 0D 03 02 00 00 00 00 EA [15:42:06]Write i2c OK [15:42:06]MH_I2C_Read... [15:42:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:42:06]Read from MH i2c: E2 [15:42:06]MH_I2C_Read... [15:42:06]Read from MH i2c: E2 0B 00 [15:42:06]MH_I2C_Read... [15:42:06]Read from MH i2c: E2 0B 00 29 46 00 A7 FB 30 2F 4B 58 32 3F 90 00 00 [15:42:06]RAPDU: A7 FB 30 2F 4B 58 32 3F 90 00 [15:42:06]wFMCommunicate OK [15:42:06]SAM_PROTO_SignData done [15:42:06]FM_MakeSignedData done [15:42:06]CreateOFDProtocolMessage [15:42:06]wFMCommunicate request_size=4 [15:42:06]MH_SAM_APDU [15:42:06]CAPDU: 80 11 00 00 [15:42:06]Write to MH i2c: E2 08 00 2A 46 80 11 00 00 00 00 00 00 EA [15:42:06]Write i2c OK [15:42:06]MH_I2C_Read... [15:42:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:06]Read from MH i2c: E2 [15:42:06]MH_I2C_Read... [15:42:06]Read from MH i2c: E2 17 00 [15:42:06]MH_I2C_Read... [15:42:06]Read from MH i2c: E2 17 00 2A 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 35 [15:42:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:42:06]wFMCommunicate OK [15:42:06]CreateOFDProtocolMessage done [15:42:06]OFDSenderStorePacket 68388 [15:42:06]StoreOFDPacket docnum=68388 [15:42:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 F4 DC 08 01 78 F9 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 34 FF 03 08 00 03 64 50 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 52 E4 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 24 0B 01 00 35 04 06 00 EE BB 2D D6 1C 1C A7 FB 30 2F 4B 58 32 3F [15:42:06]CheckFolder [15:42:06]dirname=/storage/ofd_packets [15:42:06]CheckFolder done [15:42:06]ProducePacketName [15:42:06]name=ofd_packets/00068388 [15:42:06]NVStorageSaveData ofd_packets/00068388 [15:42:06]File name is /storage/ofd_packets/00068388 [15:42:06]Write 302 bytes [15:42:06]NVStorageSaveData done [15:42:06]OFDSenderStorePacket done [15:42:06]KKMCreateOFDPacket done [15:42:06]NVStorageSaveData kkm_last_timestamp [15:42:06]File name is /storage/kkm_last_timestamp [15:42:06]Write 4 bytes [15:42:06]NVStorageSaveData done [15:42:06]ExternCall_PrintAddStr [15:42:06]wPrintStart [15:42:06]Write to MH i2c: 01 00 00 2B 46 71 [15:42:06]Write i2c OK [15:42:06]MH_I2C_Read... [15:42:06]Read from MH i2c: 01 [15:42:06]MH_I2C_Read... [15:42:06]Read from MH i2c: 01 07 00 [15:42:06]MH_I2C_Read... [15:42:06]Read from MH i2c: 01 07 00 2B 46 00 00 00 00 00 FF 0F 86 [15:42:06]RasterBufferAndPrint [15:42:06]line Счет N : (1)706486 [15:42:06]line ИНН: 02508201610067 [15:42:06]line Контрольно-Кассовый Чек [15:42:06]line ПРОДАЖА [15:42:06]line ТРК (МРК, ГНК) : 61 [15:42:06]line Товар: 2710194210 [15:42:06]line ДТ(л)-К-4 [15:42:06]line 20.580 * 72.90 [15:42:06]line = 1500.28 [15:42:06]line НДС 12% НСП 1% [15:42:06]line > о реализуемом товаре [15:42:06]line ОКРУГЛЕНИЕ: -0.28 [15:42:06]line ИТОГО: 1500.00 [15:42:06]line Внесено: 1500.00 [15:42:06]line СДАЧА: 0.00 [15:42:06]line НСП 1% : 13.28 [15:42:06]line НДС 12% : 159.32 [15:42:06]line Наличными: 1500.00 [15:42:06]line Безнал.: 0.00 [15:42:06]line Место: АЗС № 62 "Партнер Нефть" [15:42:06]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [15:42:06]line СНО: Общий режим [15:42:06]line Чек 134 03.06.2024 15:42 [15:42:06]line Смена: 324 ФФД: 1.0 [15:42:06]line ЗНМ: 0300000181 [15:42:06]line РНМ: 0000000000098096 [15:42:06]line Версия ККМ: 001 [15:42:06]line ФМ: 0000000000965400 [15:42:06]line ФД: 68388 [15:42:06]line ФПД: 262487695301660 [15:42:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T154210&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68388&fm=262487695301660&tin=02508201610067®Number=0000000000098096&sum=150000 [15:42:07]OFD Sender: Processing packet 68388 [packets to send 26, broken 25] [15:42:07]ProducePacketName [15:42:07]name=ofd_packets/00068388 [15:42:07]OFD Sender: To server: pG, [15:42:07]CommunicateWithHost lk.salyk.kg:30040 [15:42:07]ConnectInit lk.salyk.kg [15:42:07]written 0, free lines is 4095 [15:42:07]Connected sock=7 [15:42:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 F4 DC 08 01 78 F9 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 34 FF 03 08 00 03 64 50 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0C 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 52 E4 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 24 0B 01 00 35 04 06 00 EE BB 2D D6 1C 1C A7 FB 30 2F 4B 58 32 3F [15:42:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 24 BF 47 00 4C F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 24 0B 01 00 F4 03 04 00 4E 8B 5D 66 B6 04 01 00 00 27 5D A5 3E 2F 2A C5 B5 [15:42:07]CommunicateWithHost err = 0 [15:42:07]CheckOFDResponse [15:42:07]1017 (14) - 77093643461234 [15:42:07]1041 (16) - 0000000000965400 [15:42:07]1040 (4) - 68388 [15:42:07]1012 (4) - 03.06.2024 09:22 [15:42:07]1206 (1) - 0 [15:42:07]OFD Sender: Remove packet 68388 [15:42:07]ProducePacketName [15:42:07]name=ofd_packets/00068388 [15:42:07]NVStorageDeleteData [15:42:07]Write to MH i2c: 01 00 00 56 46 9C [15:42:07]Write i2c OK [15:42:07]MH_I2C_Read... [15:42:07]Read from MH i2c: 01 [15:42:07]MH_I2C_Read... [15:42:07]Read from MH i2c: 01 07 00 [15:42:07]MH_I2C_Read... [15:42:07]Read from MH i2c: 01 07 00 56 46 00 00 00 00 00 EE 0C 9D [15:42:07]RasterBufferAndPrint [15:42:07]line [15:42:07]line [15:42:07]line [15:42:07]line [15:42:07]line [15:42:07]written 0, free lines is 3316 [15:42:07]MH_Cut [15:42:07]Write to MH i2c: D1 01 00 5D 46 01 75 [15:42:07]Write i2c OK [15:42:07]MH_I2C_Read... [15:42:07]Read from MH i2c: D1 [15:42:07]MH_I2C_Read... [15:42:07]Read from MH i2c: D1 01 00 [15:42:07]MH_I2C_Read... [15:42:07]Read from MH i2c: D1 01 00 5D 46 00 74 [15:42:07]Write to MH i2c: 01 00 00 5E 46 A4 [15:42:07]Write i2c OK [15:42:07]MH_I2C_Read... [15:42:07]OFD Sender: No OFD packet to send [15:42:08]*** Cut start [15:42:08]*** Partial cut [15:42:08]*** CUTSNS_PIN = 1 [15:42:08]*** CUTSNS_PIN = 0 [15:42:08]*** Brake cut motor [15:42:08]Read from MH i2c: 01 [15:42:08]MH_I2C_Read... [15:42:08]*** Stop cut motor [15:42:08]*** Cut end [15:42:08]Read from MH i2c: 01 07 00 [15:42:08]MH_I2C_Read... [15:42:08]Read from MH i2c: 01 07 00 5E 46 00 00 00 00 00 FF 0F B9 [15:42:08]process_action close_receipt done [15:42:08]requested_data is exist [15:42:08]produce_requested_data [15:42:08]requested_item fm.sn is exist - process it [15:42:08]wFMCommunicate request_size=4 [15:42:08]MH_SAM_APDU [15:42:08]CAPDU: 80 11 00 00 [15:42:08]Write to MH i2c: E2 08 00 5F 46 80 11 00 00 00 00 00 00 1F [15:42:08]Write i2c OK [15:42:08]MH_I2C_Read... [15:42:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:09]Read from MH i2c: E2 [15:42:09]MH_I2C_Read... [15:42:09]Read from MH i2c: E2 17 00 [15:42:09]MH_I2C_Read... [15:42:09]Read from MH i2c: E2 17 00 5F 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 6A [15:42:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:42:09]wFMCommunicate OK [15:42:09]requested_item fd.num is exist - process it [15:42:09]SAM_PROTO_GetFieldsCounters [15:42:09]wFMCommunicate request_size=4 [15:42:09]MH_SAM_APDU [15:42:09]CAPDU: 80 13 00 00 [15:42:09]Write to MH i2c: E2 08 00 60 46 80 13 00 00 00 00 00 00 22 [15:42:09]Write i2c OK [15:42:09]MH_I2C_Read... [15:42:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:42:09]Read from MH i2c: E2 [15:42:09]MH_I2C_Read... [15:42:09]Read from MH i2c: E2 62 00 [15:42:09]MH_I2C_Read... [15:42:09]Read from MH i2c: E2 62 00 60 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 24 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 49 [15:42:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 24 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:42:09]wFMCommunicate OK [15:42:09]SAM_PROTO_GetFieldsCounters done [15:42:09]requested_item shift.num is exist - process it [15:42:09]requested_item shift.opened is exist - process it [15:42:09]req_shift_opened [15:42:09]FM_GetShiftState [15:42:09]SAM_PROTO_GetShiftState [15:42:09]wFMCommunicate request_size=4 [15:42:09]MH_SAM_APDU [15:42:09]CAPDU: 80 13 01 00 [15:42:09]Write to MH i2c: E2 08 00 61 46 80 13 01 00 00 00 00 00 24 [15:42:09]Write i2c OK [15:42:09]MH_I2C_Read... [15:42:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:09]Read from MH i2c: E2 [15:42:09]MH_I2C_Read... [15:42:09]Read from MH i2c: E2 0E 00 [15:42:09]MH_I2C_Read... [15:42:09]Read from MH i2c: E2 0E 00 61 46 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 FF [15:42:09]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [15:42:09]wFMCommunicate OK [15:42:09]SAM_PROTO_GetShiftState done [15:42:09]FM_GetShiftState done [15:42:09]req_shift_opened done [15:42:09]requested_item shift.open_date is exist - process it [15:42:09]req_shift_open_date [15:42:09]req_shift_open_date done [15:42:09]produce_requested_data done [15:42:09]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68388,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [15:42:09]process_action_free close_receipt [15:42:09]json_value_free [15:42:09]json_value_free done [15:42:09]process_json_proto returns [15:42:09]Send response to host [15:42:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68388,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [15:42:09]free response buf [15:42:09]execute_script done [15:42:09]execute_script returns [15:42:09]free content buf [15:42:09]Sock 5.Close socket [15:42:09]Sock 5.Thread stoped [15:42:12]OFD Sender: No OFD packet to send [15:42:17]OFD Sender: No OFD packet to send [15:42:22]OFD Sender: No OFD packet to send [15:42:27]OFD Sender: No OFD packet to send [15:42:32]OFD Sender: No OFD packet to send [15:42:37]OFD Sender: No OFD packet to send [15:42:42]OFD Sender: No OFD packet to send [15:42:47]OFD Sender: No OFD packet to send [15:42:52]OFD Sender: No OFD packet to send [15:42:57]OFD Sender: No OFD packet to send [15:43:02]OFD Sender: No OFD packet to send [15:43:04]accept exits with 6 [15:43:04]New connection [15:43:04]New thread 3066543460 created [15:43:04]Thread 3066686820 joined [15:43:04]Waiting for new connection... [15:43:04] Sock 6.Parse request [15:43:04]Sock 6.Check first char [15:43:04]Sock 6.First char is OK [15:43:04]request: POST /json_proto HTTP/1.0 [15:43:04]Method: POST [15:43:04]URL: /json_proto [15:43:04]Method is POST - this is cgi request [15:43:04]url: /json_proto [15:43:04]query_string will be loaded in cgi processing [15:43:04]execute_cgi json_proto POST (null) [15:43:04]execute_cgi path=json_proto method=POST [15:43:04]POST find Content-Length [15:43:04]Host: 172.17.36.132:8080 [15:43:04]Content-Length: 687 [15:43:04]Content-Type: application/json [15:43:04] [15:43:04]POST finish read [15:43:04]Found Content-Length = 687 [15:43:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706485", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 41.160, "sum" : 3000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:43:04]execute_script... [15:43: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)706485", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 41.160, "sum" : 3000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:43:04]POST & json_proto [15:43:04]process_json_proto [15:43:04]json parsed OK: [15:43:04]protocol is kg_v1.0 [15:43:04]action value=close_receipt [15:43:04]process_action close_receipt [15:43:04]cmd_close_receipt [15:43:04]MH_GetDate [15:43:04]Write to MH i2c: F0 00 00 62 46 97 [15:43:04]Write i2c OK [15:43:04]MH_I2C_Read... [15:43:04]Read from MH i2c: F0 [15:43:04]MH_I2C_Read... [15:43:04]Read from MH i2c: F0 09 00 [15:43:04]MH_I2C_Read... [15:43:04]Read from MH i2c: F0 09 00 62 46 00 8E E4 5D 66 B2 22 B0 64 BD [15:43:04]GetLastDocTimeStamp 1717429330 [15:43:04]current date 1717429390 [15:43:04]FM_GetShiftState [15:43:04]SAM_PROTO_GetShiftState [15:43:04]wFMCommunicate request_size=4 [15:43:04]MH_SAM_APDU [15:43:04]CAPDU: 80 13 01 00 [15:43:04]Write to MH i2c: E2 08 00 63 46 80 13 01 00 00 00 00 00 26 [15:43:04]Write i2c OK [15:43:04]MH_I2C_Read... [15:43:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:43:04]Read from MH i2c: E2 [15:43:04]MH_I2C_Read... [15:43:04]Read from MH i2c: E2 0E 00 [15:43:04]MH_I2C_Read... [15:43:04]Read from MH i2c: E2 0E 00 63 46 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 01 [15:43:04]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [15:43:04]wFMCommunicate OK [15:43:04]SAM_PROTO_GetShiftState done [15:43:04]FM_GetShiftState done [15:43:04]opened in 1717378033 [15:43:04]opened+sec_in_day 1717464433 [15:43:04]quantity*price = 300056 [15:43:04]sum+1 = 300057 [15:43:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.64 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 135 03.06.2024 15:43 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68389 ФПД: 262801597162970 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T154310&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68389&fm=262801597162970&tin=02508201610067®Number=0000000000098096&sum=300000 [15:43:05]StoreToDocumentArchive [15:43:05]shift 324 fd 68389 [15:43:05]save to /storage/0324/doc_00068389 [15:43:05]save last doc name /storage/0324/doc_00068389 to /storage/kkm_last_doc_name [15:43:05]save OK [15:43:05]Clear old archive folders... [15:43:05]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:43:05]tlvbuf is 0023AD00 [15:43:05]SAM_PROTO_ClearQueue [15:43:05]wFMCommunicate request_size=4 [15:43:05]MH_SAM_APDU [15:43:05]CAPDU: 80 09 00 00 [15:43:05]Write to MH i2c: E2 08 00 70 46 80 09 00 00 00 00 00 00 28 [15:43:05]Write i2c OK [15:43:05]MH_I2C_Read... [15:43:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:43:05]Read from MH i2c: E2 [15:43:05]MH_I2C_Read... [15:43:05]Read from MH i2c: E2 03 00 [15:43:05]MH_I2C_Read... [15:43:05]Read from MH i2c: E2 03 00 70 46 00 90 00 2A [15:43:05]RAPDU: 90 00 [15:43:05]wFMCommunicate OK [15:43:05]SAM_PROTO_ClearQueue done [15:43:05]KKMCreateOFDPacket [15:43:05]OFDProtocolAddRootSTLVToBuf [15:43:05]FM_MakeSignedData [15:43:05]FM_MakeSignedData [15:43:05]SAM_PROTO_SignData [15:43:05]wFMCommunicate request_size=4 [15:43:05]MH_SAM_APDU [15:43:05]CAPDU: 80 0D 01 02 [15:43:05]Write to MH i2c: E2 08 00 71 46 80 0D 01 02 00 00 00 00 30 [15:43:05]Write i2c OK [15:43:05]MH_I2C_Read... [15:43:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:43:05]Read from MH i2c: E2 [15:43:05]MH_I2C_Read... [15:43:05]Read from MH i2c: E2 03 00 [15:43:05]MH_I2C_Read... [15:43:05]Read from MH i2c: E2 03 00 71 46 00 90 00 2B [15:43:05]RAPDU: 90 00 [15:43:05]wFMCommunicate OK [15:43:05]wFMCommunicate request_size=255 [15:43:05]MH_SAM_APDU [15:43:05]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 34 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 8E E4 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 25 0B 01 00 35 04 06 00 [15:43:05]Write to MH i2c: E2 02 01 72 46 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 34 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 8E E4 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 25 0B 01 00 35 04 06 00 00 00 9E [15:43:05]Write i2c OK [15:43:05]MH_I2C_Read... [15:43:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:43:06]Read from MH i2c: E2 [15:43:06]MH_I2C_Read... [15:43:06]Read from MH i2c: E2 03 00 [15:43:06]MH_I2C_Read... [15:43:06]Read from MH i2c: E2 03 00 72 46 00 90 00 2C [15:43:06]RAPDU: 90 00 [15:43:06]wFMCommunicate OK [15:43:06]wFMCommunicate request_size=11 [15:43:06]MH_SAM_APDU [15:43:06]CAPDU: 80 0D 02 02 06 EF 04 43 D8 65 DA [15:43:06]Write to MH i2c: E2 0E 00 73 46 80 0D 02 02 06 00 EF 04 43 D8 65 DA 00 00 8C [15:43:06]Write i2c OK [15:43:06]MH_I2C_Read... [15:43:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:43:06]Read from MH i2c: E2 [15:43:06]MH_I2C_Read... [15:43:06]Read from MH i2c: E2 03 00 [15:43:06]MH_I2C_Read... [15:43:06]Read from MH i2c: E2 03 00 73 46 00 90 00 2D [15:43:06]RAPDU: 90 00 [15:43:06]wFMCommunicate OK [15:43:06]wFMCommunicate request_size=4 [15:43:06]MH_SAM_APDU [15:43:06]CAPDU: 80 0D 03 02 [15:43:06]Write to MH i2c: E2 08 00 74 46 80 0D 03 02 00 00 00 00 35 [15:43:06]Write i2c OK [15:43:06]MH_I2C_Read... [15:43:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:43:06]Read from MH i2c: E2 [15:43:06]MH_I2C_Read... [15:43:06]Read from MH i2c: E2 0B 00 [15:43:06]MH_I2C_Read... [15:43:06]Read from MH i2c: E2 0B 00 74 46 00 8C 1D C8 16 4B 67 3B 32 90 00 DC [15:43:06]RAPDU: 8C 1D C8 16 4B 67 3B 32 90 00 [15:43:06]wFMCommunicate OK [15:43:06]SAM_PROTO_SignData done [15:43:06]FM_MakeSignedData done [15:43:06]CreateOFDProtocolMessage [15:43:06]wFMCommunicate request_size=4 [15:43:06]MH_SAM_APDU [15:43:06]CAPDU: 80 11 00 00 [15:43:06]Write to MH i2c: E2 08 00 75 46 80 11 00 00 00 00 00 00 35 [15:43:06]Write i2c OK [15:43:06]MH_I2C_Read... [15:43:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:43:06]Read from MH i2c: E2 [15:43:06]MH_I2C_Read... [15:43:06]Read from MH i2c: E2 17 00 [15:43:06]MH_I2C_Read... [15:43:06]Read from MH i2c: E2 17 00 75 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 80 [15:43:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:43:06]wFMCommunicate OK [15:43:06]CreateOFDProtocolMessage done [15:43:06]OFDSenderStorePacket 68389 [15:43:06]StoreOFDPacket docnum=68389 [15:43:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 85 8A 08 01 84 43 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 34 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 8E E4 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 25 0B 01 00 35 04 06 00 EF 04 43 D8 65 DA 8C 1D C8 16 4B 67 3B 32 [15:43:06]CheckFolder [15:43:06]dirname=/storage/ofd_packets [15:43:06]CheckFolder done [15:43:06]ProducePacketName [15:43:06]name=ofd_packets/00068389 [15:43:06]NVStorageSaveData ofd_packets/00068389 [15:43:06]File name is /storage/ofd_packets/00068389 [15:43:06]Write 302 bytes [15:43:06]NVStorageSaveData done [15:43:06]OFDSenderStorePacket done [15:43:06]KKMCreateOFDPacket done [15:43:06]NVStorageSaveData kkm_last_timestamp [15:43:06]File name is /storage/kkm_last_timestamp [15:43:06]Write 4 bytes [15:43:06]NVStorageSaveData done [15:43:06]ExternCall_PrintAddStr [15:43:06]wPrintStart [15:43:06]Write to MH i2c: 01 00 00 76 46 BC [15:43:06]Write i2c OK [15:43:06]MH_I2C_Read... [15:43:06]Read from MH i2c: 01 [15:43:06]MH_I2C_Read... [15:43:06]Read from MH i2c: 01 07 00 [15:43:06]MH_I2C_Read... [15:43:06]Read from MH i2c: 01 07 00 76 46 00 00 00 00 00 FF 0F D1 [15:43:06]RasterBufferAndPrint [15:43:06]line Счет N : (1)706485 [15:43:06]line ИНН: 02508201610067 [15:43:06]line Контрольно-Кассовый Чек [15:43:06]line ПРОДАЖА [15:43:06]line ТРК (МРК, ГНК) : 21 [15:43:06]line Товар: 2710194210 [15:43:06]line ДТ(л)-К-4 [15:43:06]line 41.160 * 72.90 [15:43:06]line = 3000.56 [15:43:06]line НДС 12% НСП 1% [15:43:06]line > о реализуемом товаре [15:43:06]line ОКРУГЛЕНИЕ: -0.56 [15:43:06]line ИТОГО: 3000.00 [15:43:06]line Внесено: 3000.00 [15:43:06]line СДАЧА: 0.00 [15:43:06]line НСП 1% : 26.55 [15:43:06]line НДС 12% : 318.64 [15:43:06]line Наличными: 3000.00 [15:43:06]line Безнал.: 0.00 [15:43:06]line Место: АЗС № 62 "Партнер Нефть" [15:43:06]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [15:43:06]line СНО: Общий режим [15:43:06]line Чек 135 03.06.2024 15:43 [15:43:06]line Смена: 324 ФФД: 1.0 [15:43:06]line ЗНМ: 0300000181 [15:43:06]line РНМ: 0000000000098096 [15:43:06]line Версия ККМ: 001 [15:43:06]line ФМ: 0000000000965400 [15:43:06]line ФД: 68389 [15:43:06]line ФПД: 262801597162970 [15:43:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T154310&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68389&fm=262801597162970&tin=02508201610067®Number=0000000000098096&sum=300000 [15:43:06]OFD Sender: Processing packet 68389 [packets to send 26, broken 25] [15:43:06]ProducePacketName [15:43:06]name=ofd_packets/00068389 [15:43:06]OFD Sender: To server: pG, [15:43:06]CommunicateWithHost lk.salyk.kg:30040 [15:43:06]ConnectInit lk.salyk.kg [15:43:06]written 0, free lines is 4095 [15:43:06]Connected sock=9 [15:43:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 85 8A 08 01 84 43 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 34 FF 03 08 00 03 C8 A0 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 18 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 8E E4 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 25 0B 01 00 35 04 06 00 EF 04 43 D8 65 DA 8C 1D C8 16 4B 67 3B 32 [15:43:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 85 41 47 00 CF 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 25 0B 01 00 F4 03 04 00 8A 8B 5D 66 B6 04 01 00 00 C2 0C DA E9 F5 21 37 0F [15:43:06]CommunicateWithHost err = 0 [15:43:06]CheckOFDResponse [15:43:06]1017 (14) - 77093643461234 [15:43:06]1041 (16) - 0000000000965400 [15:43:06]1040 (4) - 68389 [15:43:06]1012 (4) - 03.06.2024 09:23 [15:43:06]1206 (1) - 0 [15:43:06]OFD Sender: Remove packet 68389 [15:43:06]ProducePacketName [15:43:06]name=ofd_packets/00068389 [15:43:06]NVStorageDeleteData [15:43:07]Write to MH i2c: 01 00 00 A1 46 E7 [15:43:07]Write i2c OK [15:43:07]MH_I2C_Read... [15:43:07]Read from MH i2c: 01 [15:43:07]MH_I2C_Read... [15:43:07]Read from MH i2c: 01 07 00 [15:43:07]MH_I2C_Read... [15:43:07]Read from MH i2c: 01 07 00 A1 46 00 00 00 00 00 E7 0C E1 [15:43:07]RasterBufferAndPrint [15:43:07]line [15:43:07]line [15:43:07]line [15:43:07]line [15:43:07]line [15:43:07]written 0, free lines is 3309 [15:43:07]MH_Cut [15:43:07]Write to MH i2c: D1 01 00 A8 46 01 C0 [15:43:07]Write i2c OK [15:43:07]MH_I2C_Read... [15:43:07]Read from MH i2c: D1 [15:43:07]MH_I2C_Read... [15:43:07]Read from MH i2c: D1 01 00 [15:43:07]MH_I2C_Read... [15:43:07]Read from MH i2c: D1 01 00 A8 46 00 BF [15:43:07]Write to MH i2c: 01 00 00 A9 46 EF [15:43:07]Write i2c OK [15:43:07]MH_I2C_Read... [15:43:07]OFD Sender: No OFD packet to send [15:43:07]*** Cut start [15:43:07]*** Partial cut [15:43:07]*** CUTSNS_PIN = 1 [15:43:08]*** CUTSNS_PIN = 0 [15:43:08]*** Brake cut motor [15:43:08]Read from MH i2c: 01 [15:43:08]MH_I2C_Read... [15:43:08]*** Stop cut motor [15:43:08]*** Cut end [15:43:08]Read from MH i2c: 01 07 00 [15:43:08]MH_I2C_Read... [15:43:08]Read from MH i2c: 01 07 00 A9 46 00 00 00 00 00 FF 0F 04 [15:43:08]process_action close_receipt done [15:43:08]requested_data is exist [15:43:08]produce_requested_data [15:43:08]requested_item fm.sn is exist - process it [15:43:08]wFMCommunicate request_size=4 [15:43:08]MH_SAM_APDU [15:43:08]CAPDU: 80 11 00 00 [15:43:08]Write to MH i2c: E2 08 00 AA 46 80 11 00 00 00 00 00 00 6A [15:43:08]Write i2c OK [15:43:08]MH_I2C_Read... [15:43:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:43:08]Read from MH i2c: E2 [15:43:08]MH_I2C_Read... [15:43:08]Read from MH i2c: E2 17 00 [15:43:08]MH_I2C_Read... [15:43:08]Read from MH i2c: E2 17 00 AA 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 B5 [15:43:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:43:08]wFMCommunicate OK [15:43:08]requested_item fd.num is exist - process it [15:43:08]SAM_PROTO_GetFieldsCounters [15:43:08]wFMCommunicate request_size=4 [15:43:08]MH_SAM_APDU [15:43:08]CAPDU: 80 13 00 00 [15:43:08]Write to MH i2c: E2 08 00 AB 46 80 13 00 00 00 00 00 00 6D [15:43:08]Write i2c OK [15:43:08]MH_I2C_Read... [15:43:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:43:08]Read from MH i2c: E2 [15:43:08]MH_I2C_Read... [15:43:08]Read from MH i2c: E2 62 00 [15:43:08]MH_I2C_Read... [15:43:08]Read from MH i2c: E2 62 00 AB 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 25 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 98 [15:43:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 25 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:43:08]wFMCommunicate OK [15:43:08]SAM_PROTO_GetFieldsCounters done [15:43:08]requested_item shift.num is exist - process it [15:43:08]requested_item shift.opened is exist - process it [15:43:08]req_shift_opened [15:43:08]FM_GetShiftState [15:43:08]SAM_PROTO_GetShiftState [15:43:08]wFMCommunicate request_size=4 [15:43:08]MH_SAM_APDU [15:43:08]CAPDU: 80 13 01 00 [15:43:08]Write to MH i2c: E2 08 00 AC 46 80 13 01 00 00 00 00 00 6F [15:43:08]Write i2c OK [15:43:08]MH_I2C_Read... [15:43:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:43:08]Read from MH i2c: E2 [15:43:08]MH_I2C_Read... [15:43:08]Read from MH i2c: E2 0E 00 [15:43:08]MH_I2C_Read... [15:43:08]Read from MH i2c: E2 0E 00 AC 46 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 4A [15:43:08]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [15:43:08]wFMCommunicate OK [15:43:08]SAM_PROTO_GetShiftState done [15:43:08]FM_GetShiftState done [15:43:08]req_shift_opened done [15:43:08]requested_item shift.open_date is exist - process it [15:43:08]req_shift_open_date [15:43:08]req_shift_open_date done [15:43:08]produce_requested_data done [15:43:08]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68389,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [15:43:08]process_action_free close_receipt [15:43:08]json_value_free [15:43:08]json_value_free done [15:43:08]process_json_proto returns [15:43:08]Send response to host [15:43:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68389,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [15:43:08]free response buf [15:43:08]execute_script done [15:43:08]execute_script returns [15:43:08]free content buf [15:43:08]Sock 6.Close socket [15:43:08]Sock 6.Thread stoped [15:43:09]accept exits with 5 [15:43:09]New connection [15:43:09]New thread 3066686820 created [15:43:09]Thread 3066543460 joined [15:43:09]Waiting for new connection... [15:43:09] Sock 5.Parse request [15:43:09]Sock 5.Check first char [15:43:09]Sock 5.First char is OK [15:43:09]request: POST /json_proto HTTP/1.0 [15:43:09]Method: POST [15:43:09]URL: /json_proto [15:43:09]Method is POST - this is cgi request [15:43:09]url: /json_proto [15:43:09]query_string will be loaded in cgi processing [15:43:09]execute_cgi json_proto POST (null) [15:43:09]execute_cgi path=json_proto method=POST [15:43:09]POST find Content-Length [15:43:09]Host: 172.17.36.132:8080 [15:43:09]Content-Length: 682 [15:43:09]Content-Type: application/json [15:43:09] [15:43:09]POST finish read [15:43:09]Found Content-Length = 682 [15:43:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706487", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 2.750, "sum" : 200.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:43:09]execute_script... [15:43: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)706487", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 2.750, "sum" : 200.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:43:09]POST & json_proto [15:43:09]process_json_proto [15:43:09]json parsed OK: [15:43:09]protocol is kg_v1.0 [15:43:09]action value=close_receipt [15:43:09]process_action close_receipt [15:43:09]cmd_close_receipt [15:43:09]MH_GetDate [15:43:09]Write to MH i2c: F0 00 00 AD 46 E2 [15:43:09]Write i2c OK [15:43:09]MH_I2C_Read... [15:43:09]Read from MH i2c: F0 [15:43:09]MH_I2C_Read... [15:43:09]Read from MH i2c: F0 09 00 [15:43:09]MH_I2C_Read... [15:43:09]Read from MH i2c: F0 09 00 AD 46 00 92 E4 5D 66 B2 22 B0 64 0C [15:43:09]GetLastDocTimeStamp 1717429390 [15:43:09]current date 1717429394 [15:43:09]FM_GetShiftState [15:43:09]SAM_PROTO_GetShiftState [15:43:09]wFMCommunicate request_size=4 [15:43:09]MH_SAM_APDU [15:43:09]CAPDU: 80 13 01 00 [15:43:09]Write to MH i2c: E2 08 00 AE 46 80 13 01 00 00 00 00 00 71 [15:43:09]Write i2c OK [15:43:09]MH_I2C_Read... [15:43:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:43:09]Read from MH i2c: E2 [15:43:09]MH_I2C_Read... [15:43:09]Read from MH i2c: E2 0E 00 [15:43:09]MH_I2C_Read... [15:43:09]Read from MH i2c: E2 0E 00 AE 46 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 4C [15:43:09]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [15:43:09]wFMCommunicate OK [15:43:09]SAM_PROTO_GetShiftState done [15:43:09]FM_GetShiftState done [15:43:09]opened in 1717378033 [15:43:09]opened+sec_in_day 1717464433 [15:43:09]quantity*price = 20047 [15:43:09]sum+1 = 20049 [15:43:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.48 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 136 03.06.2024 15:43 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68390 ФПД: 211636388007914 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T154315&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68390&fm=211636388007914&tin=02508201610067®Number=0000000000098096&sum=20000 [15:43:10]StoreToDocumentArchive [15:43:10]shift 324 fd 68390 [15:43:10]save to /storage/0324/doc_00068390 [15:43:10]save last doc name /storage/0324/doc_00068390 to /storage/kkm_last_doc_name [15:43:10]save OK [15:43:10]Clear old archive folders... [15:43:10]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:43:10]tlvbuf is 001F8870 [15:43:10]SAM_PROTO_ClearQueue [15:43:10]wFMCommunicate request_size=4 [15:43:10]MH_SAM_APDU [15:43:10]CAPDU: 80 09 00 00 [15:43:10]Write to MH i2c: E2 08 00 BB 46 80 09 00 00 00 00 00 00 73 [15:43:10]Write i2c OK [15:43:10]MH_I2C_Read... [15:43:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:43:10]Read from MH i2c: E2 [15:43:10]MH_I2C_Read... [15:43:10]Read from MH i2c: E2 03 00 [15:43:10]MH_I2C_Read... [15:43:10]Read from MH i2c: E2 03 00 BB 46 00 90 00 75 [15:43:10]RAPDU: 90 00 [15:43:10]wFMCommunicate OK [15:43:10]SAM_PROTO_ClearQueue done [15:43:10]KKMCreateOFDPacket [15:43:10]OFDProtocolAddRootSTLVToBuf [15:43:10]FM_MakeSignedData [15:43:10]FM_MakeSignedData [15:43:10]SAM_PROTO_SignData [15:43:10]wFMCommunicate request_size=4 [15:43:10]MH_SAM_APDU [15:43:10]CAPDU: 80 0D 01 02 [15:43:10]Write to MH i2c: E2 08 00 BC 46 80 0D 01 02 00 00 00 00 7B [15:43:10]Write i2c OK [15:43:10]MH_I2C_Read... [15:43:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:43:10]Read from MH i2c: E2 [15:43:10]MH_I2C_Read... [15:43:10]Read from MH i2c: E2 03 00 [15:43:10]MH_I2C_Read... [15:43:10]Read from MH i2c: E2 03 00 BC 46 00 90 00 76 [15:43:10]RAPDU: 90 00 [15:43:10]wFMCommunicate OK [15:43:10]wFMCommunicate request_size=255 [15:43:10]MH_SAM_APDU [15:43: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 34 FF 03 08 00 03 BE 0A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 50 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 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 93 E4 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 26 0B 01 00 35 04 06 00 [15:43:10]Write to MH i2c: E2 02 01 BD 46 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 34 FF 03 08 00 03 BE 0A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 50 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 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 93 E4 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 26 0B 01 00 35 04 06 00 00 00 D9 [15:43:10]Write i2c OK [15:43:10]MH_I2C_Read... [15:43:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:43:11]Read from MH i2c: E2 [15:43:11]MH_I2C_Read... [15:43:11]Read from MH i2c: E2 03 00 [15:43:11]MH_I2C_Read... [15:43:11]Read from MH i2c: E2 03 00 BD 46 00 90 00 77 [15:43:11]RAPDU: 90 00 [15:43:11]wFMCommunicate OK [15:43:11]wFMCommunicate request_size=11 [15:43:11]MH_SAM_APDU [15:43:11]CAPDU: 80 0D 02 02 06 C0 7B 6F BA 8F EA [15:43:11]Write to MH i2c: E2 0E 00 BE 46 80 0D 02 02 06 00 C0 7B 6F BA 8F EA 00 00 67 [15:43:11]Write i2c OK [15:43:11]MH_I2C_Read... [15:43:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:43:11]Read from MH i2c: E2 [15:43:11]MH_I2C_Read... [15:43:11]Read from MH i2c: E2 03 00 [15:43:11]MH_I2C_Read... [15:43:11]Read from MH i2c: E2 03 00 BE 46 00 90 00 78 [15:43:11]RAPDU: 90 00 [15:43:11]wFMCommunicate OK [15:43:11]wFMCommunicate request_size=4 [15:43:11]MH_SAM_APDU [15:43:11]CAPDU: 80 0D 03 02 [15:43:11]Write to MH i2c: E2 08 00 BF 46 80 0D 03 02 00 00 00 00 80 [15:43:11]Write i2c OK [15:43:11]MH_I2C_Read... [15:43:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:43:11]Read from MH i2c: E2 [15:43:11]MH_I2C_Read... [15:43:11]Read from MH i2c: E2 0B 00 [15:43:11]MH_I2C_Read... [15:43:11]Read from MH i2c: E2 0B 00 BF 46 00 F3 9B 80 5B 66 F4 B5 59 90 00 52 [15:43:11]RAPDU: F3 9B 80 5B 66 F4 B5 59 90 00 [15:43:11]wFMCommunicate OK [15:43:11]SAM_PROTO_SignData done [15:43:11]FM_MakeSignedData done [15:43:11]CreateOFDProtocolMessage [15:43:11]wFMCommunicate request_size=4 [15:43:11]MH_SAM_APDU [15:43:11]CAPDU: 80 11 00 00 [15:43:11]Write to MH i2c: E2 08 00 C0 46 80 11 00 00 00 00 00 00 80 [15:43:11]Write i2c OK [15:43:11]MH_I2C_Read... [15:43:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:43:11]Read from MH i2c: E2 [15:43:11]MH_I2C_Read... [15:43:11]Read from MH i2c: E2 17 00 [15:43:11]MH_I2C_Read... [15:43:11]Read from MH i2c: E2 17 00 C0 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 CB [15:43:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:43:11]wFMCommunicate OK [15:43:11]CreateOFDProtocolMessage done [15:43:11]OFDSenderStorePacket 68390 [15:43:11]StoreOFDPacket docnum=68390 [15:43:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 F6 FC 08 01 62 59 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 34 FF 03 08 00 03 BE 0A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 50 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 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 93 E4 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 26 0B 01 00 35 04 06 00 C0 7B 6F BA 8F EA F3 9B 80 5B 66 F4 B5 59 [15:43:11]CheckFolder [15:43:11]dirname=/storage/ofd_packets [15:43:11]CheckFolder done [15:43:11]ProducePacketName [15:43:11]name=ofd_packets/00068390 [15:43:11]NVStorageSaveData ofd_packets/00068390 [15:43:11]File name is /storage/ofd_packets/00068390 [15:43:11]Write 302 bytes [15:43:11]NVStorageSaveData done [15:43:11]OFDSenderStorePacket done [15:43:11]KKMCreateOFDPacket done [15:43:11]NVStorageSaveData kkm_last_timestamp [15:43:11]File name is /storage/kkm_last_timestamp [15:43:11]Write 4 bytes [15:43:11]NVStorageSaveData done [15:43:11]ExternCall_PrintAddStr [15:43:11]wPrintStart [15:43:11]Write to MH i2c: 01 00 00 C1 46 07 [15:43:11]Write i2c OK [15:43:11]MH_I2C_Read... [15:43:11]Read from MH i2c: 01 [15:43:11]MH_I2C_Read... [15:43:11]Read from MH i2c: 01 07 00 [15:43:11]MH_I2C_Read... [15:43:11]Read from MH i2c: 01 07 00 C1 46 00 00 00 00 00 FF 0F 1C [15:43:11]RasterBufferAndPrint [15:43:11]line Счет N : (1)706487 [15:43:11]line ИНН: 02508201610067 [15:43:11]line Контрольно-Кассовый Чек [15:43:11]line ПРОДАЖА [15:43:11]line ТРК (МРК, ГНК) : 11 [15:43:11]line Товар: 2710194210 [15:43:11]line ДТ(л)-К-4 [15:43:11]line 2.750 * 72.90 [15:43:11]line = 200.48 [15:43:11]line НДС 12% НСП 1% [15:43:11]line > о реализуемом товаре [15:43:11]line ОКРУГЛЕНИЕ: -0.48 [15:43:11]line ИТОГО: 200.00 [15:43:11]line Внесено: 200.00 [15:43:11]line СДАЧА: 0.00 [15:43:11]line НСП 1% : 1.77 [15:43:11]line НДС 12% : 21.29 [15:43:11]line Наличными: 200.00 [15:43:11]line Безнал.: 0.00 [15:43:11]line Место: АЗС № 62 "Партнер Нефть" [15:43:11]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [15:43:11]line СНО: Общий режим [15:43:11]line Чек 136 03.06.2024 15:43 [15:43:11]line Смена: 324 ФФД: 1.0 [15:43:11]line ЗНМ: 0300000181 [15:43:11]line РНМ: 0000000000098096 [15:43:11]line Версия ККМ: 001 [15:43:11]line ФМ: 0000000000965400 [15:43:11]line ФД: 68390 [15:43:11]line ФПД: 211636388007914 [15:43:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T154315&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68390&fm=211636388007914&tin=02508201610067®Number=0000000000098096&sum=20000 [15:43:11]OFD Sender: Processing packet 68390 [packets to send 26, broken 25] [15:43:11]ProducePacketName [15:43:11]name=ofd_packets/00068390 [15:43:11]written 0, free lines is 4095 [15:43:11]OFD Sender: To server: pG, [15:43:11]CommunicateWithHost lk.salyk.kg:30040 [15:43:11]ConnectInit lk.salyk.kg [15:43:11]Connected sock=7 [15:43:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 F6 FC 08 01 62 59 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 34 FF 03 08 00 03 BE 0A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 50 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 51 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 93 E4 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 26 0B 01 00 35 04 06 00 C0 7B 6F BA 8F EA F3 9B 80 5B 66 F4 B5 59 [15:43:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 DE 54 47 00 AE FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 26 0B 01 00 F4 03 04 00 8F 8B 5D 66 B6 04 01 00 00 8D 38 F4 A7 57 72 CC 98 [15:43:11]CommunicateWithHost err = 0 [15:43:11]CheckOFDResponse [15:43:11]1017 (14) - 77093643461234 [15:43:11]1041 (16) - 0000000000965400 [15:43:11]1040 (4) - 68390 [15:43:11]1012 (4) - 03.06.2024 09:23 [15:43:11]1206 (1) - 0 [15:43:11]OFD Sender: Remove packet 68390 [15:43:11]ProducePacketName [15:43:11]name=ofd_packets/00068390 [15:43:11]NVStorageDeleteData [15:43:12]Write to MH i2c: 01 00 00 EC 46 32 [15:43:12]Write i2c OK [15:43:12]MH_I2C_Read... [15:43:12]Read from MH i2c: 01 [15:43:12]MH_I2C_Read... [15:43:12]Read from MH i2c: 01 07 00 [15:43:12]MH_I2C_Read... [15:43:12]Read from MH i2c: 01 07 00 EC 46 00 00 00 00 00 E4 0C 29 [15:43:12]RasterBufferAndPrint [15:43:12]line [15:43:12]line [15:43:12]line [15:43:12]line [15:43:12]line [15:43:12]written 0, free lines is 3309 [15:43:12]MH_Cut [15:43:12]Write to MH i2c: D1 01 00 F3 46 01 0B [15:43:12]Write i2c OK [15:43:12]MH_I2C_Read... [15:43:12]Read from MH i2c: D1 [15:43:12]MH_I2C_Read... [15:43:12]Read from MH i2c: D1 01 00 [15:43:12]MH_I2C_Read... [15:43:12]Read from MH i2c: D1 01 00 F3 46 00 0A [15:43:12]Write to MH i2c: 01 00 00 F4 46 3A [15:43:12]Write i2c OK [15:43:12]MH_I2C_Read... [15:43:12]OFD Sender: No OFD packet to send [15:43:12]*** Cut start [15:43:12]*** Partial cut [15:43:12]*** CUTSNS_PIN = 1 [15:43:12]*** CUTSNS_PIN = 0 [15:43:13]*** Brake cut motor [15:43:13]Read from MH i2c: 01 [15:43:13]MH_I2C_Read... [15:43:13]*** Stop cut motor [15:43:13]*** Cut end [15:43:13]Read from MH i2c: 01 07 00 [15:43:13]MH_I2C_Read... [15:43:13]Read from MH i2c: 01 07 00 F4 46 00 00 00 00 00 FF 0F 4F [15:43:13]process_action close_receipt done [15:43:13]requested_data is exist [15:43:13]produce_requested_data [15:43:13]requested_item fm.sn is exist - process it [15:43:13]wFMCommunicate request_size=4 [15:43:13]MH_SAM_APDU [15:43:13]CAPDU: 80 11 00 00 [15:43:13]Write to MH i2c: E2 08 00 F5 46 80 11 00 00 00 00 00 00 B5 [15:43:13]Write i2c OK [15:43:13]MH_I2C_Read... [15:43:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:43:13]Read from MH i2c: E2 [15:43:13]MH_I2C_Read... [15:43:13]Read from MH i2c: E2 17 00 [15:43:13]MH_I2C_Read... [15:43:13]Read from MH i2c: E2 17 00 F5 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 00 [15:43:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:43:13]wFMCommunicate OK [15:43:13]requested_item fd.num is exist - process it [15:43:13]SAM_PROTO_GetFieldsCounters [15:43:13]wFMCommunicate request_size=4 [15:43:13]MH_SAM_APDU [15:43:13]CAPDU: 80 13 00 00 [15:43:13]Write to MH i2c: E2 08 00 F6 46 80 13 00 00 00 00 00 00 B8 [15:43:13]Write i2c OK [15:43:13]MH_I2C_Read... [15:43:13]Read from MH i2c: E2 [15:43:13]MH_I2C_Read... [15:43:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:43:13]Read from MH i2c: E2 62 00 [15:43:13]MH_I2C_Read... [15:43:13]Read from MH i2c: E2 62 00 F6 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 26 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 E7 [15:43:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 26 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:43:13]wFMCommunicate OK [15:43:13]SAM_PROTO_GetFieldsCounters done [15:43:13]requested_item shift.num is exist - process it [15:43:13]requested_item shift.opened is exist - process it [15:43:13]req_shift_opened [15:43:13]FM_GetShiftState [15:43:13]SAM_PROTO_GetShiftState [15:43:13]wFMCommunicate request_size=4 [15:43:13]MH_SAM_APDU [15:43:13]CAPDU: 80 13 01 00 [15:43:13]Write to MH i2c: E2 08 00 F7 46 80 13 01 00 00 00 00 00 BA [15:43:13]Write i2c OK [15:43:13]MH_I2C_Read... [15:43:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:43:13]Read from MH i2c: E2 [15:43:13]MH_I2C_Read... [15:43:13]Read from MH i2c: E2 0E 00 [15:43:13]MH_I2C_Read... [15:43:13]Read from MH i2c: E2 0E 00 F7 46 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 95 [15:43:13]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [15:43:13]wFMCommunicate OK [15:43:13]SAM_PROTO_GetShiftState done [15:43:13]FM_GetShiftState done [15:43:13]req_shift_opened done [15:43:13]requested_item shift.open_date is exist - process it [15:43:13]req_shift_open_date [15:43:13]req_shift_open_date done [15:43:13]produce_requested_data done [15:43:13]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68390,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [15:43:13]process_action_free close_receipt [15:43:13]json_value_free [15:43:13]json_value_free done [15:43:13]process_json_proto returns [15:43:13]Send response to host [15:43:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68390,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [15:43:13]free response buf [15:43:13]execute_script done [15:43:13]execute_script returns [15:43:13]free content buf [15:43:13]Sock 5.Close socket [15:43:13]Sock 5.Thread stoped [15:43:17]OFD Sender: No OFD packet to send [15:43:22]OFD Sender: No OFD packet to send [15:43:27]OFD Sender: No OFD packet to send [15:43:32]OFD Sender: No OFD packet to send [15:43:37]OFD Sender: No OFD packet to send [15:43:42]OFD Sender: No OFD packet to send [15:43:47]OFD Sender: No OFD packet to send [15:43:52]OFD Sender: No OFD packet to send [15:43:57]OFD Sender: No OFD packet to send [15:44:02]OFD Sender: No OFD packet to send [15:44:07]OFD Sender: No OFD packet to send [15:44:12]OFD Sender: No OFD packet to send [15:44:17]OFD Sender: No OFD packet to send [15:44:19]accept exits with 6 [15:44:19]New connection [15:44:19]New thread 3066543460 created [15:44:19]Thread 3066686820 joined [15:44:19]Waiting for new connection... [15:44:19] Sock 6.Parse request [15:44:19]Sock 6.Check first char [15:44:19]Sock 6.First char is OK [15:44:19]request: POST /json_proto HTTP/1.0 [15:44:19]Method: POST [15:44:19]URL: /json_proto [15:44:19]Method is POST - this is cgi request [15:44:19]url: /json_proto [15:44:19]query_string will be loaded in cgi processing [15:44:19]execute_cgi json_proto POST (null) [15:44:19]execute_cgi path=json_proto method=POST [15:44:19]POST find Content-Length [15:44:19]Host: 172.17.36.132:8080 [15:44:19]Content-Length: 670 [15:44:19]Content-Type: application/json [15:44:19] [15:44:19]POST finish read [15:44:19]Found Content-Length = 670 [15:44:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706488", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 8.840, "sum" : 600.24, "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" ] } } [15:44:19]execute_script... [15:44:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706488", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 8.840, "sum" : 600.24, "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" ] } } [15:44:19]POST & json_proto [15:44:19]process_json_proto [15:44:19]json parsed OK: [15:44:19]protocol is kg_v1.0 [15:44:19]action value=close_receipt [15:44:19]process_action close_receipt [15:44:19]cmd_close_receipt [15:44:19]MH_GetDate [15:44:19]Write to MH i2c: F0 00 00 F8 46 2D [15:44:19]Write i2c OK [15:44:19]MH_I2C_Read... [15:44:19]Read from MH i2c: F0 [15:44:19]MH_I2C_Read... [15:44:19]Read from MH i2c: F0 09 00 [15:44:19]MH_I2C_Read... [15:44:19]Read from MH i2c: F0 09 00 F8 46 00 D9 E4 5D 66 B2 22 B0 64 9E [15:44:19]GetLastDocTimeStamp 1717429395 [15:44:19]current date 1717429465 [15:44:19]FM_GetShiftState [15:44:19]SAM_PROTO_GetShiftState [15:44:19]wFMCommunicate request_size=4 [15:44:19]MH_SAM_APDU [15:44:19]CAPDU: 80 13 01 00 [15:44:19]Write to MH i2c: E2 08 00 F9 46 80 13 01 00 00 00 00 00 BC [15:44:19]Write i2c OK [15:44:19]MH_I2C_Read... [15:44:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:44:19]Read from MH i2c: E2 [15:44:19]MH_I2C_Read... [15:44:19]Read from MH i2c: E2 0E 00 [15:44:19]MH_I2C_Read... [15:44:19]Read from MH i2c: E2 0E 00 F9 46 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 97 [15:44:19]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [15:44:19]wFMCommunicate OK [15:44:19]SAM_PROTO_GetShiftState done [15:44:19]FM_GetShiftState done [15:44:19]opened in 1717378033 [15:44:19]opened+sec_in_day 1717464433 [15:44:19]quantity*price = 60023 [15:44:19]sum+1 = 60025 [15:44:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 137 03.06.2024 15:44 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68391 ФПД: 84654342485922 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T154425&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68391&fm=84654342485922&tin=02508201610067®Number=0000000000098096&sum=60000 [15:44:20]StoreToDocumentArchive [15:44:20]shift 324 fd 68391 [15:44:20]save to /storage/0324/doc_00068391 [15:44:20]save last doc name /storage/0324/doc_00068391 to /storage/kkm_last_doc_name [15:44:20]save OK [15:44:20]Clear old archive folders... [15:44:20]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:44:20]tlvbuf is 001BCB00 [15:44:20]SAM_PROTO_ClearQueue [15:44:20]wFMCommunicate request_size=4 [15:44:20]MH_SAM_APDU [15:44:20]CAPDU: 80 09 00 00 [15:44:20]Write to MH i2c: E2 08 00 06 47 80 09 00 00 00 00 00 00 BF [15:44:20]Write i2c OK [15:44:20]MH_I2C_Read... [15:44:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:44:20]Read from MH i2c: E2 [15:44:20]MH_I2C_Read... [15:44:20]Read from MH i2c: E2 03 00 [15:44:20]MH_I2C_Read... [15:44:20]Read from MH i2c: E2 03 00 06 47 00 90 00 C1 [15:44:20]RAPDU: 90 00 [15:44:20]wFMCommunicate OK [15:44:20]SAM_PROTO_ClearQueue done [15:44:20]KKMCreateOFDPacket [15:44:20]OFDProtocolAddRootSTLVToBuf [15:44:20]FM_MakeSignedData [15:44:20]FM_MakeSignedData [15:44:20]SAM_PROTO_SignData [15:44:20]wFMCommunicate request_size=4 [15:44:20]MH_SAM_APDU [15:44:20]CAPDU: 80 0D 01 02 [15:44:20]Write to MH i2c: E2 08 00 07 47 80 0D 01 02 00 00 00 00 C7 [15:44:20]Write i2c OK [15:44:20]MH_I2C_Read... [15:44:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:44:20]Read from MH i2c: E2 [15:44:20]MH_I2C_Read... [15:44:20]Read from MH i2c: E2 03 00 [15:44:20]MH_I2C_Read... [15:44:20]Read from MH i2c: E2 03 00 07 47 00 90 00 C2 [15:44:20]RAPDU: 90 00 [15:44:20]wFMCommunicate OK [15:44:20]wFMCommunicate request_size=255 [15:44:20]MH_SAM_APDU [15:44:20]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 22 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 78 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 D9 E4 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 27 0B 01 00 35 04 06 00 [15:44:20]Write to MH i2c: E2 02 01 08 47 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 22 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 78 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 D9 E4 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 27 0B 01 00 35 04 06 00 00 00 CE [15:44:20]Write i2c OK [15:44:20]MH_I2C_Read... [15:44:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:44:21]Read from MH i2c: E2 [15:44:21]MH_I2C_Read... [15:44:21]Read from MH i2c: E2 03 00 [15:44:21]MH_I2C_Read... [15:44:21]Read from MH i2c: E2 03 00 08 47 00 90 00 C3 [15:44:21]RAPDU: 90 00 [15:44:21]wFMCommunicate OK [15:44:21]wFMCommunicate request_size=11 [15:44:21]MH_SAM_APDU [15:44:21]CAPDU: 80 0D 02 02 06 4C FE 20 03 37 A2 [15:44:21]Write to MH i2c: E2 0E 00 09 47 80 0D 02 02 06 00 4C FE 20 03 37 A2 00 00 1C [15:44:21]Write i2c OK [15:44:21]MH_I2C_Read... [15:44:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:44:21]Read from MH i2c: E2 [15:44:21]MH_I2C_Read... [15:44:21]Read from MH i2c: E2 03 00 [15:44:21]MH_I2C_Read... [15:44:21]Read from MH i2c: E2 03 00 09 47 00 90 00 C4 [15:44:21]RAPDU: 90 00 [15:44:21]wFMCommunicate OK [15:44:21]wFMCommunicate request_size=4 [15:44:21]MH_SAM_APDU [15:44:21]CAPDU: 80 0D 03 02 [15:44:21]Write to MH i2c: E2 08 00 0A 47 80 0D 03 02 00 00 00 00 CC [15:44:21]Write i2c OK [15:44:21]MH_I2C_Read... [15:44:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:44:21]Read from MH i2c: E2 [15:44:21]MH_I2C_Read... [15:44:21]Read from MH i2c: E2 0B 00 [15:44:21]MH_I2C_Read... [15:44:21]Read from MH i2c: E2 0B 00 0A 47 00 90 81 27 4C D2 FB 4A 3A 90 00 A2 [15:44:21]RAPDU: 90 81 27 4C D2 FB 4A 3A 90 00 [15:44:21]wFMCommunicate OK [15:44:21]SAM_PROTO_SignData done [15:44:21]FM_MakeSignedData done [15:44:21]CreateOFDProtocolMessage [15:44:21]wFMCommunicate request_size=4 [15:44:21]MH_SAM_APDU [15:44:21]CAPDU: 80 11 00 00 [15:44:21]Write to MH i2c: E2 08 00 0B 47 80 11 00 00 00 00 00 00 CC [15:44:21]Write i2c OK [15:44:21]MH_I2C_Read... [15:44:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:44:21]Read from MH i2c: E2 [15:44:21]MH_I2C_Read... [15:44:21]Read from MH i2c: E2 17 00 [15:44:21]MH_I2C_Read... [15:44:21]Read from MH i2c: E2 17 00 0B 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 17 [15:44:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:44:21]wFMCommunicate OK [15:44:21]CreateOFDProtocolMessage done [15:44:21]OFDSenderStorePacket 68391 [15:44:21]StoreOFDPacket docnum=68391 [15:44:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 3B 62 08 01 23 3E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 22 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 78 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 D9 E4 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 27 0B 01 00 35 04 06 00 4C FE 20 03 37 A2 90 81 27 4C D2 FB 4A 3A [15:44:21]CheckFolder [15:44:21]dirname=/storage/ofd_packets [15:44:21]CheckFolder done [15:44:21]ProducePacketName [15:44:21]name=ofd_packets/00068391 [15:44:21]NVStorageSaveData ofd_packets/00068391 [15:44:21]File name is /storage/ofd_packets/00068391 [15:44:21]Write 302 bytes [15:44:21]NVStorageSaveData done [15:44:21]OFDSenderStorePacket done [15:44:21]KKMCreateOFDPacket done [15:44:21]NVStorageSaveData kkm_last_timestamp [15:44:21]File name is /storage/kkm_last_timestamp [15:44:21]Write 4 bytes [15:44:21]NVStorageSaveData done [15:44:21]ExternCall_PrintAddStr [15:44:21]wPrintStart [15:44:21]Write to MH i2c: 01 00 00 0C 47 53 [15:44:21]Write i2c OK [15:44:21]MH_I2C_Read... [15:44:21]Read from MH i2c: 01 [15:44:21]MH_I2C_Read... [15:44:21]Read from MH i2c: 01 07 00 [15:44:21]MH_I2C_Read... [15:44:21]Read from MH i2c: 01 07 00 0C 47 00 00 00 00 00 FF 0F 68 [15:44:21]RasterBufferAndPrint [15:44:21]line Счет N : (1)706488 [15:44:21]line ИНН: 02508201610067 [15:44:21]line Контрольно-Кассовый Чек [15:44:21]line ПРОДАЖА [15:44:21]line ТРК (МРК, ГНК) : 41 [15:44:21]line Товар: 2710124130 [15:44:21]line Super-92-К-5 [15:44:21]line 8.840 * 67.90 [15:44:21]line = 600.24 [15:44:21]line НДС 12% НСП 1% [15:44:21]line > о реализуемом товаре [15:44:21]line ОКРУГЛЕНИЕ: -0.24 [15:44:21]line ИТОГО: 600.00 [15:44:21]line Внесено: 600.00 [15:44:21]line СДАЧА: 0.00 [15:44:21]line НСП 1% : 5.31 [15:44:21]line НДС 12% : 63.74 [15:44:21]line Наличными: 600.00 [15:44:21]line Безнал.: 0.00 [15:44:21]line Место: АЗС № 62 "Партнер Нефть" [15:44:21]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [15:44:21]line СНО: Общий режим [15:44:21]line Чек 137 03.06.2024 15:44 [15:44:21]line Смена: 324 ФФД: 1.0 [15:44:21]line ЗНМ: 0300000181 [15:44:21]line РНМ: 0000000000098096 [15:44:21]line Версия ККМ: 001 [15:44:21]line ФМ: 0000000000965400 [15:44:21]line ФД: 68391 [15:44:21]line ФПД: 84654342485922 [15:44:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T154425&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68391&fm=84654342485922&tin=02508201610067®Number=0000000000098096&sum=60000 [15:44:21]OFD Sender: Processing packet 68391 [packets to send 26, broken 25] [15:44:21]ProducePacketName [15:44:21]name=ofd_packets/00068391 [15:44:21]OFD Sender: To server: pG, [15:44:21]CommunicateWithHost lk.salyk.kg:30040 [15:44:21]ConnectInit lk.salyk.kg [15:44:21]written 0, free lines is 4095 [15:44:21]Connected sock=7 [15:44:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 3B 62 08 01 23 3E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 22 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 78 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 D9 E4 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 27 0B 01 00 35 04 06 00 4C FE 20 03 37 A2 90 81 27 4C D2 FB 4A 3A [15:44:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 4A D2 47 00 37 03 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 27 0B 01 00 F4 03 04 00 D5 8B 5D 66 B6 04 01 00 00 95 FF 7C BF 5A D4 EF 6E [15:44:21]CommunicateWithHost err = 0 [15:44:21]CheckOFDResponse [15:44:21]1017 (14) - 77093643461234 [15:44:21]1041 (16) - 0000000000965400 [15:44:21]1040 (4) - 68391 [15:44:21]1012 (4) - 03.06.2024 09:24 [15:44:21]1206 (1) - 0 [15:44:21]OFD Sender: Remove packet 68391 [15:44:21]ProducePacketName [15:44:21]name=ofd_packets/00068391 [15:44:21]NVStorageDeleteData [15:44:22]Write to MH i2c: 01 00 00 37 47 7E [15:44:22]Write i2c OK [15:44:22]MH_I2C_Read... [15:44:22]Read from MH i2c: 01 [15:44:22]MH_I2C_Read... [15:44:22]Read from MH i2c: 01 07 00 [15:44:22]MH_I2C_Read... [15:44:22]Read from MH i2c: 01 07 00 37 47 00 00 00 00 00 E8 0C 79 [15:44:22]RasterBufferAndPrint [15:44:22]line [15:44:22]line [15:44:22]line [15:44:22]line [15:44:22]line [15:44:22]written 0, free lines is 3311 [15:44:22]MH_Cut [15:44:22]Write to MH i2c: D1 01 00 3E 47 01 57 [15:44:22]Write i2c OK [15:44:22]MH_I2C_Read... [15:44:22]Read from MH i2c: D1 [15:44:22]MH_I2C_Read... [15:44:22]Read from MH i2c: D1 01 00 [15:44:22]MH_I2C_Read... [15:44:22]Read from MH i2c: D1 01 00 3E 47 00 56 [15:44:22]Write to MH i2c: 01 00 00 3F 47 86 [15:44:22]Write i2c OK [15:44:22]MH_I2C_Read... [15:44:22]OFD Sender: No OFD packet to send [15:44:22]*** Cut start [15:44:22]*** Partial cut [15:44:22]*** CUTSNS_PIN = 1 [15:44:22]*** CUTSNS_PIN = 0 [15:44:23]*** Brake cut motor [15:44:23]Read from MH i2c: 01 [15:44:23]MH_I2C_Read... [15:44:23]*** Stop cut motor [15:44:23]*** Cut end [15:44:23]Read from MH i2c: 01 07 00 [15:44:23]MH_I2C_Read... [15:44:23]Read from MH i2c: 01 07 00 3F 47 00 00 00 00 00 FF 0F 9B [15:44:23]process_action close_receipt done [15:44:23]requested_data is exist [15:44:23]produce_requested_data [15:44:23]requested_item fm.sn is exist - process it [15:44:23]wFMCommunicate request_size=4 [15:44:23]MH_SAM_APDU [15:44:23]CAPDU: 80 11 00 00 [15:44:23]Write to MH i2c: E2 08 00 40 47 80 11 00 00 00 00 00 00 01 [15:44:23]Write i2c OK [15:44:23]MH_I2C_Read... [15:44:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:44:23]Read from MH i2c: E2 [15:44:23]MH_I2C_Read... [15:44:23]Read from MH i2c: E2 17 00 [15:44:23]MH_I2C_Read... [15:44:23]Read from MH i2c: E2 17 00 40 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 4C [15:44:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:44:23]wFMCommunicate OK [15:44:23]requested_item fd.num is exist - process it [15:44:23]SAM_PROTO_GetFieldsCounters [15:44:23]wFMCommunicate request_size=4 [15:44:23]MH_SAM_APDU [15:44:23]CAPDU: 80 13 00 00 [15:44:23]Write to MH i2c: E2 08 00 41 47 80 13 00 00 00 00 00 00 04 [15:44:23]Write i2c OK [15:44:23]MH_I2C_Read... [15:44:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:44:23]Read from MH i2c: E2 [15:44:23]MH_I2C_Read... [15:44:23]Read from MH i2c: E2 62 00 [15:44:23]MH_I2C_Read... [15:44:23]Read from MH i2c: E2 62 00 41 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 27 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 37 [15:44:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 27 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:44:23]wFMCommunicate OK [15:44:23]SAM_PROTO_GetFieldsCounters done [15:44:23]requested_item shift.num is exist - process it [15:44:23]requested_item shift.opened is exist - process it [15:44:23]req_shift_opened [15:44:23]FM_GetShiftState [15:44:23]SAM_PROTO_GetShiftState [15:44:23]wFMCommunicate request_size=4 [15:44:23]MH_SAM_APDU [15:44:23]CAPDU: 80 13 01 00 [15:44:23]Write to MH i2c: E2 08 00 42 47 80 13 01 00 00 00 00 00 06 [15:44:23]Write i2c OK [15:44:23]MH_I2C_Read... [15:44:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:44:23]Read from MH i2c: E2 [15:44:23]MH_I2C_Read... [15:44:23]Read from MH i2c: E2 0E 00 [15:44:23]MH_I2C_Read... [15:44:23]Read from MH i2c: E2 0E 00 42 47 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 E1 [15:44:23]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [15:44:23]wFMCommunicate OK [15:44:23]SAM_PROTO_GetShiftState done [15:44:23]FM_GetShiftState done [15:44:23]req_shift_opened done [15:44:23]requested_item shift.open_date is exist - process it [15:44:23]req_shift_open_date [15:44:23]req_shift_open_date done [15:44:23]produce_requested_data done [15:44:23]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68391,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [15:44:23]process_action_free close_receipt [15:44:23]json_value_free [15:44:23]json_value_free done [15:44:23]process_json_proto returns [15:44:23]Send response to host [15:44:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68391,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [15:44:23]free response buf [15:44:23]execute_script done [15:44:23]execute_script returns [15:44:23]free content buf [15:44:23]Sock 6.Close socket [15:44:23]Sock 6.Thread stoped [15:44:27]OFD Sender: No OFD packet to send [15:44:32]OFD Sender: No OFD packet to send [15:44:37]OFD Sender: No OFD packet to send [15:44:42]OFD Sender: No OFD packet to send [15:44:47]OFD Sender: No OFD packet to send [15:44:52]OFD Sender: No OFD packet to send [15:44:57]OFD Sender: No OFD packet to send [15:45:02]OFD Sender: No OFD packet to send [15:45:07]OFD Sender: No OFD packet to send [15:45:12]OFD Sender: No OFD packet to send [15:45:17]OFD Sender: No OFD packet to send [15:45:22]OFD Sender: No OFD packet to send [15:45:27]OFD Sender: No OFD packet to send [15:45:32]OFD Sender: No OFD packet to send [15:45:37]OFD Sender: No OFD packet to send [15:45:42]OFD Sender: No OFD packet to send [15:45:47]OFD Sender: No OFD packet to send [15:45:52]OFD Sender: No OFD packet to send [15:45:57]OFD Sender: No OFD packet to send [15:46:02]OFD Sender: No OFD packet to send [15:46:07]OFD Sender: No OFD packet to send [15:46:12]OFD Sender: No OFD packet to send [15:46:16]accept exits with 5 [15:46:16]New connection [15:46:16]New thread 3066686820 created [15:46:16]Thread 3066543460 joined [15:46:16]Waiting for new connection... [15:46:16] Sock 5.Parse request [15:46:16]Sock 5.Check first char [15:46:16]Sock 5.First char is OK [15:46:16]request: POST /json_proto HTTP/1.0 [15:46:16]Method: POST [15:46:16]URL: /json_proto [15:46:16]Method is POST - this is cgi request [15:46:16]url: /json_proto [15:46:16]query_string will be loaded in cgi processing [15:46:16]execute_cgi json_proto POST (null) [15:46:16]execute_cgi path=json_proto method=POST [15:46:16]POST find Content-Length [15:46:16]Host: 172.17.36.132:8080 [15:46:16]Content-Length: 682 [15:46:16]Content-Type: application/json [15:46:16] [15:46:16]POST finish read [15:46:16]Found Content-Length = 682 [15:46:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706489", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:46:16]execute_script... [15:46: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)706489", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:46:16]POST & json_proto [15:46:16]process_json_proto [15:46:16]json parsed OK: [15:46:16]protocol is kg_v1.0 [15:46:16]action value=close_receipt [15:46:16]process_action close_receipt [15:46:16]cmd_close_receipt [15:46:16]MH_GetDate [15:46:16]Write to MH i2c: F0 00 00 43 47 79 [15:46:16]Write i2c OK [15:46:16]MH_I2C_Read... [15:46:16]Read from MH i2c: F0 [15:46:16]MH_I2C_Read... [15:46:16]Read from MH i2c: F0 09 00 [15:46:16]MH_I2C_Read... [15:46:16]Read from MH i2c: F0 09 00 43 47 00 4E E5 5D 66 B2 22 B0 64 60 [15:46:16]GetLastDocTimeStamp 1717429465 [15:46:16]current date 1717429582 [15:46:16]FM_GetShiftState [15:46:16]SAM_PROTO_GetShiftState [15:46:16]wFMCommunicate request_size=4 [15:46:16]MH_SAM_APDU [15:46:16]CAPDU: 80 13 01 00 [15:46:16]Write to MH i2c: E2 08 00 44 47 80 13 01 00 00 00 00 00 08 [15:46:16]Write i2c OK [15:46:16]MH_I2C_Read... [15:46:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:46:16]Read from MH i2c: E2 [15:46:16]MH_I2C_Read... [15:46:16]Read from MH i2c: E2 0E 00 [15:46:16]MH_I2C_Read... [15:46:16]Read from MH i2c: E2 0E 00 44 47 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 E3 [15:46:16]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [15:46:16]wFMCommunicate OK [15:46:16]SAM_PROTO_GetShiftState done [15:46:16]FM_GetShiftState done [15:46:16]opened in 1717378033 [15:46:16]opened+sec_in_day 1717464433 [15:46:16]quantity*price = 100015 [15:46:16]sum+1 = 100017 [15:46:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 138 03.06.2024 15:46 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68392 ФПД: 1914106646890 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T154622&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68392&fm=1914106646890&tin=02508201610067®Number=0000000000098096&sum=100000 [15:46:17]StoreToDocumentArchive [15:46:17]shift 324 fd 68392 [15:46:17]save to /storage/0324/doc_00068392 [15:46:17]save last doc name /storage/0324/doc_00068392 to /storage/kkm_last_doc_name [15:46:17]save OK [15:46:17]Clear old archive folders... [15:46:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:46:17]tlvbuf is 005ACD70 [15:46:17]SAM_PROTO_ClearQueue [15:46:17]wFMCommunicate request_size=4 [15:46:17]MH_SAM_APDU [15:46:17]CAPDU: 80 09 00 00 [15:46:17]Write to MH i2c: E2 08 00 51 47 80 09 00 00 00 00 00 00 0A [15:46:17]Write i2c OK [15:46:17]MH_I2C_Read... [15:46:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:46:17]Read from MH i2c: E2 [15:46:17]MH_I2C_Read... [15:46:17]Read from MH i2c: E2 03 00 [15:46:17]MH_I2C_Read... [15:46:17]Read from MH i2c: E2 03 00 51 47 00 90 00 0C [15:46:17]RAPDU: 90 00 [15:46:17]wFMCommunicate OK [15:46:17]SAM_PROTO_ClearQueue done [15:46:17]KKMCreateOFDPacket [15:46:17]OFDProtocolAddRootSTLVToBuf [15:46:17]FM_MakeSignedData [15:46:17]FM_MakeSignedData [15:46:17]SAM_PROTO_SignData [15:46:17]wFMCommunicate request_size=4 [15:46:17]MH_SAM_APDU [15:46:17]CAPDU: 80 0D 01 02 [15:46:17]Write to MH i2c: E2 08 00 52 47 80 0D 01 02 00 00 00 00 12 [15:46:17]Write i2c OK [15:46:17]MH_I2C_Read... [15:46:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:46:17]Read from MH i2c: E2 [15:46:17]MH_I2C_Read... [15:46:17]Read from MH i2c: E2 03 00 [15:46:17]MH_I2C_Read... [15:46:17]Read from MH i2c: E2 03 00 52 47 00 90 00 0D [15:46:17]RAPDU: 90 00 [15:46:17]wFMCommunicate OK [15:46:17]wFMCommunicate request_size=255 [15:46:17]MH_SAM_APDU [15:46:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 4E E5 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 28 0B 01 00 35 04 06 00 01 [15:46:17]Write to MH i2c: E2 02 01 53 47 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 4E E5 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 28 0B 01 00 35 04 06 00 01 00 00 93 [15:46:17]Write i2c OK [15:46:17]MH_I2C_Read... [15:46:17]OFD Sender: No OFD packet to send [15:46:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:46:17]Read from MH i2c: E2 [15:46:17]MH_I2C_Read... [15:46:17]Read from MH i2c: E2 03 00 [15:46:17]MH_I2C_Read... [15:46:17]Read from MH i2c: E2 03 00 53 47 00 90 00 0E [15:46:17]RAPDU: 90 00 [15:46:17]wFMCommunicate OK [15:46:17]wFMCommunicate request_size=10 [15:46:17]MH_SAM_APDU [15:46:17]CAPDU: 80 0D 02 02 05 BD A9 A5 91 6A [15:46:17]Write to MH i2c: E2 0D 00 54 47 80 0D 02 02 05 00 BD A9 A5 91 6A 00 00 25 [15:46:17]Write i2c OK [15:46:17]MH_I2C_Read... [15:46:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:46:17]Read from MH i2c: E2 [15:46:17]MH_I2C_Read... [15:46:17]Read from MH i2c: E2 03 00 [15:46:17]MH_I2C_Read... [15:46:17]Read from MH i2c: E2 03 00 54 47 00 90 00 0F [15:46:17]RAPDU: 90 00 [15:46:17]wFMCommunicate OK [15:46:17]wFMCommunicate request_size=4 [15:46:17]MH_SAM_APDU [15:46:17]CAPDU: 80 0D 03 02 [15:46:17]Write to MH i2c: E2 08 00 55 47 80 0D 03 02 00 00 00 00 17 [15:46:17]Write i2c OK [15:46:17]MH_I2C_Read... [15:46:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:46:17]Read from MH i2c: E2 [15:46:17]MH_I2C_Read... [15:46:17]Read from MH i2c: E2 0B 00 [15:46:17]MH_I2C_Read... [15:46:17]Read from MH i2c: E2 0B 00 55 47 00 78 ED 2B F9 0E 61 FA 37 90 00 41 [15:46:17]RAPDU: 78 ED 2B F9 0E 61 FA 37 90 00 [15:46:17]wFMCommunicate OK [15:46:17]SAM_PROTO_SignData done [15:46:17]FM_MakeSignedData done [15:46:17]CreateOFDProtocolMessage [15:46:17]wFMCommunicate request_size=4 [15:46:17]MH_SAM_APDU [15:46:17]CAPDU: 80 11 00 00 [15:46:17]Write to MH i2c: E2 08 00 56 47 80 11 00 00 00 00 00 00 17 [15:46:17]Write i2c OK [15:46:17]MH_I2C_Read... [15:46:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:46:17]Read from MH i2c: E2 [15:46:17]MH_I2C_Read... [15:46:17]Read from MH i2c: E2 17 00 [15:46:17]MH_I2C_Read... [15:46:17]Read from MH i2c: E2 17 00 56 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 62 [15:46:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:46:17]wFMCommunicate OK [15:46:17]CreateOFDProtocolMessage done [15:46:17]OFDSenderStorePacket 68392 [15:46:17]StoreOFDPacket docnum=68392 [15:46:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 5E E2 07 01 49 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 4E E5 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 28 0B 01 00 35 04 06 00 01 BD A9 A5 91 6A 78 ED 2B F9 0E 61 FA 37 [15:46:17]CheckFolder [15:46:17]dirname=/storage/ofd_packets [15:46:17]CheckFolder done [15:46:17]ProducePacketName [15:46:17]name=ofd_packets/00068392 [15:46:17]NVStorageSaveData ofd_packets/00068392 [15:46:17]File name is /storage/ofd_packets/00068392 [15:46:17]Write 301 bytes [15:46:17]NVStorageSaveData done [15:46:17]OFDSenderStorePacket done [15:46:17]KKMCreateOFDPacket done [15:46:17]NVStorageSaveData kkm_last_timestamp [15:46:17]File name is /storage/kkm_last_timestamp [15:46:17]Write 4 bytes [15:46:17]NVStorageSaveData done [15:46:17]ExternCall_PrintAddStr [15:46:17]wPrintStart [15:46:17]Write to MH i2c: 01 00 00 57 47 9E [15:46:17]Write i2c OK [15:46:17]MH_I2C_Read... [15:46:17]Read from MH i2c: 01 [15:46:17]MH_I2C_Read... [15:46:17]Read from MH i2c: 01 07 00 [15:46:17]MH_I2C_Read... [15:46:17]Read from MH i2c: 01 07 00 57 47 00 00 00 00 00 FF 0F B3 [15:46:17]RasterBufferAndPrint [15:46:17]line Счет N : (1)706489 [15:46:17]line ИНН: 02508201610067 [15:46:17]line Контрольно-Кассовый Чек [15:46:17]line ПРОДАЖА [15:46:17]line ТРК (МРК, ГНК) : 53 [15:46:17]line Товар: 2710124130 [15:46:17]line Аи-92-К-4 [15:46:17]line 14.950 * 66.90 [15:46:17]line = 1000.16 [15:46:17]line НДС 12% НСП 1% [15:46:17]line > о реализуемом товаре [15:46:17]line ОКРУГЛЕНИЕ: -0.16 [15:46:17]line ИТОГО: 1000.00 [15:46:17]line Внесено: 1000.00 [15:46:17]line СДАЧА: 0.00 [15:46:17]line НСП 1% : 8.85 [15:46:17]line НДС 12% : 106.21 [15:46:17]line Наличными: 1000.00 [15:46:17]line Безнал.: 0.00 [15:46:17]line Место: АЗС № 62 "Партнер Нефть" [15:46:17]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [15:46:17]line СНО: Общий режим [15:46:17]line Чек 138 03.06.2024 15:46 [15:46:17]line Смена: 324 ФФД: 1.0 [15:46:17]line ЗНМ: 0300000181 [15:46:17]line РНМ: 0000000000098096 [15:46:17]line Версия ККМ: 001 [15:46:17]line ФМ: 0000000000965400 [15:46:17]line ФД: 68392 [15:46:17]line ФПД: 1914106646890 [15:46:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T154622&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68392&fm=1914106646890&tin=02508201610067®Number=0000000000098096&sum=100000 [15:46:18]OFD Sender: Processing packet 68392 [packets to send 26, broken 25] [15:46:18]ProducePacketName [15:46:18]name=ofd_packets/00068392 [15:46:18]OFD Sender: To server: pG, [15:46:18]CommunicateWithHost lk.salyk.kg:30040 [15:46:18]ConnectInit lk.salyk.kg [15:46:18]written 0, free lines is 4095 [15:46:18]Connected sock=7 [15:46:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 5E E2 07 01 49 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 4E E5 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 28 0B 01 00 35 04 06 00 01 BD A9 A5 91 6A 78 ED 2B F9 0E 61 FA 37 [15:46:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 40 CA 47 00 9E DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 28 0B 01 00 F4 03 04 00 49 8C 5D 66 B6 04 01 00 00 2B CA FB 0D 02 62 B6 7D [15:46:18]CommunicateWithHost err = 0 [15:46:18]CheckOFDResponse [15:46:18]1017 (14) - 77093643461234 [15:46:18]1041 (16) - 0000000000965400 [15:46:18]1040 (4) - 68392 [15:46:18]1012 (4) - 03.06.2024 09:26 [15:46:18]1206 (1) - 0 [15:46:18]OFD Sender: Remove packet 68392 [15:46:18]ProducePacketName [15:46:18]name=ofd_packets/00068392 [15:46:18]NVStorageDeleteData [15:46:18]Write to MH i2c: 01 00 00 82 47 C9 [15:46:18]Write i2c OK [15:46:18]MH_I2C_Read... [15:46:18]Read from MH i2c: 01 [15:46:18]MH_I2C_Read... [15:46:18]Read from MH i2c: 01 07 00 [15:46:18]MH_I2C_Read... [15:46:18]Read from MH i2c: 01 07 00 82 47 00 00 00 00 00 EB 0C C7 [15:46:18]RasterBufferAndPrint [15:46:18]line [15:46:18]line [15:46:18]line [15:46:18]line [15:46:18]line [15:46:18]written 0, free lines is 3314 [15:46:18]MH_Cut [15:46:18]Write to MH i2c: D1 01 00 89 47 01 A2 [15:46:18]Write i2c OK [15:46:18]MH_I2C_Read... [15:46:18]Read from MH i2c: D1 [15:46:18]MH_I2C_Read... [15:46:18]Read from MH i2c: D1 01 00 [15:46:18]MH_I2C_Read... [15:46:18]Read from MH i2c: D1 01 00 89 47 00 A1 [15:46:18]Write to MH i2c: 01 00 00 8A 47 D1 [15:46:18]Write i2c OK [15:46:18]MH_I2C_Read... [15:46:18]OFD Sender: No OFD packet to send [15:46:19]*** Cut start [15:46:19]*** Partial cut [15:46:19]*** CUTSNS_PIN = 1 [15:46:19]*** CUTSNS_PIN = 0 [15:46:19]*** Brake cut motor [15:46:20]Read from MH i2c: 01 [15:46:20]MH_I2C_Read... [15:46:20]*** Stop cut motor [15:46:20]*** Cut end [15:46:20]Read from MH i2c: 01 07 00 [15:46:20]MH_I2C_Read... [15:46:20]Read from MH i2c: 01 07 00 8A 47 00 00 00 00 00 FF 0F E6 [15:46:20]process_action close_receipt done [15:46:20]requested_data is exist [15:46:20]produce_requested_data [15:46:20]requested_item fm.sn is exist - process it [15:46:20]wFMCommunicate request_size=4 [15:46:20]MH_SAM_APDU [15:46:20]CAPDU: 80 11 00 00 [15:46:20]Write to MH i2c: E2 08 00 8B 47 80 11 00 00 00 00 00 00 4C [15:46:20]Write i2c OK [15:46:20]MH_I2C_Read... [15:46:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:46:20]Read from MH i2c: E2 [15:46:20]MH_I2C_Read... [15:46:20]Read from MH i2c: E2 17 00 [15:46:20]MH_I2C_Read... [15:46:20]Read from MH i2c: E2 17 00 8B 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 97 [15:46:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:46:20]wFMCommunicate OK [15:46:20]requested_item fd.num is exist - process it [15:46:20]SAM_PROTO_GetFieldsCounters [15:46:20]wFMCommunicate request_size=4 [15:46:20]MH_SAM_APDU [15:46:20]CAPDU: 80 13 00 00 [15:46:20]Write to MH i2c: E2 08 00 8C 47 80 13 00 00 00 00 00 00 4F [15:46:20]Write i2c OK [15:46:20]MH_I2C_Read... [15:46:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:46:20]Read from MH i2c: E2 [15:46:20]MH_I2C_Read... [15:46:20]Read from MH i2c: E2 62 00 [15:46:20]MH_I2C_Read... [15:46:20]Read from MH i2c: E2 62 00 8C 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 28 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 86 [15:46:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 28 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:46:20]wFMCommunicate OK [15:46:20]SAM_PROTO_GetFieldsCounters done [15:46:20]requested_item shift.num is exist - process it [15:46:20]requested_item shift.opened is exist - process it [15:46:20]req_shift_opened [15:46:20]FM_GetShiftState [15:46:20]SAM_PROTO_GetShiftState [15:46:20]wFMCommunicate request_size=4 [15:46:20]MH_SAM_APDU [15:46:20]CAPDU: 80 13 01 00 [15:46:20]Write to MH i2c: E2 08 00 8D 47 80 13 01 00 00 00 00 00 51 [15:46:20]Write i2c OK [15:46:20]MH_I2C_Read... [15:46:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:46:20]Read from MH i2c: E2 [15:46:20]MH_I2C_Read... [15:46:20]Read from MH i2c: E2 0E 00 [15:46:20]MH_I2C_Read... [15:46:20]Read from MH i2c: E2 0E 00 8D 47 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 2C [15:46:20]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [15:46:20]wFMCommunicate OK [15:46:20]SAM_PROTO_GetShiftState done [15:46:20]FM_GetShiftState done [15:46:20]req_shift_opened done [15:46:20]requested_item shift.open_date is exist - process it [15:46:20]req_shift_open_date [15:46:20]req_shift_open_date done [15:46:20]produce_requested_data done [15:46:20]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68392,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [15:46:20]process_action_free close_receipt [15:46:20]json_value_free [15:46:20]json_value_free done [15:46:20]process_json_proto returns [15:46:20]Send response to host [15:46:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68392,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [15:46:20]free response buf [15:46:20]execute_script done [15:46:20]execute_script returns [15:46:20]free content buf [15:46:20]Sock 5.Close socket [15:46:20]Sock 5.Thread stoped [15:46:24]OFD Sender: No OFD packet to send [15:46:29]OFD Sender: No OFD packet to send [15:46:34]OFD Sender: No OFD packet to send [15:46:39]OFD Sender: No OFD packet to send [15:46:44]OFD Sender: No OFD packet to send [15:46:49]OFD Sender: No OFD packet to send [15:46:54]OFD Sender: No OFD packet to send [15:46:55]accept exits with 6 [15:46:55]New connection [15:46:55]New thread 3066543460 created [15:46:55]Thread 3066686820 joined [15:46:55]Waiting for new connection... [15:46:55] Sock 6.Parse request [15:46:55]Sock 6.Check first char [15:46:55]Sock 6.First char is OK [15:46:55]request: POST /json_proto HTTP/1.0 [15:46:55]Method: POST [15:46:55]URL: /json_proto [15:46:55]Method is POST - this is cgi request [15:46:55]url: /json_proto [15:46:55]query_string will be loaded in cgi processing [15:46:55]execute_cgi json_proto POST (null) [15:46:55]execute_cgi path=json_proto method=POST [15:46:55]POST find Content-Length [15:46:55]Host: 172.17.36.132:8080 [15:46:55]Content-Length: 682 [15:46:55]Content-Type: application/json [15:46:55] [15:46:55]POST finish read [15:46:55]Found Content-Length = 682 [15:46:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706491", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:46:55]execute_script... [15:46: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)706491", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:46:55]POST & json_proto [15:46:55]process_json_proto [15:46:55]json parsed OK: [15:46:55]protocol is kg_v1.0 [15:46:55]action value=close_receipt [15:46:55]process_action close_receipt [15:46:55]cmd_close_receipt [15:46:55]MH_GetDate [15:46:55]Write to MH i2c: F0 00 00 8E 47 C4 [15:46:55]Write i2c OK [15:46:55]MH_I2C_Read... [15:46:55]Read from MH i2c: F0 [15:46:55]MH_I2C_Read... [15:46:55]Read from MH i2c: F0 09 00 [15:46:55]MH_I2C_Read... [15:46:55]Read from MH i2c: F0 09 00 8E 47 00 75 E5 5D 66 B2 22 B0 64 D2 [15:46:55]GetLastDocTimeStamp 1717429582 [15:46:55]current date 1717429621 [15:46:55]FM_GetShiftState [15:46:55]SAM_PROTO_GetShiftState [15:46:55]wFMCommunicate request_size=4 [15:46:55]MH_SAM_APDU [15:46:55]CAPDU: 80 13 01 00 [15:46:55]Write to MH i2c: E2 08 00 8F 47 80 13 01 00 00 00 00 00 53 [15:46:55]Write i2c OK [15:46:55]MH_I2C_Read... [15:46:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:46:55]Read from MH i2c: E2 [15:46:55]MH_I2C_Read... [15:46:55]Read from MH i2c: E2 0E 00 [15:46:55]MH_I2C_Read... [15:46:55]Read from MH i2c: E2 0E 00 8F 47 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 2E [15:46:55]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [15:46:55]wFMCommunicate OK [15:46:55]SAM_PROTO_GetShiftState done [15:46:55]FM_GetShiftState done [15:46:55]opened in 1717378033 [15:46:55]opened+sec_in_day 1717464433 [15:46:55]quantity*price = 50009 [15:46:55]sum+1 = 50010 [15:46:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 139 03.06.2024 15:47 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68393 ФПД: 94270185589943 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T154701&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68393&fm=94270185589943&tin=02508201610067®Number=0000000000098096&sum=50000 [15:46:56]StoreToDocumentArchive [15:46:56]shift 324 fd 68393 [15:46:56]save to /storage/0324/doc_00068393 [15:46:56]save last doc name /storage/0324/doc_00068393 to /storage/kkm_last_doc_name [15:46:56]save OK [15:46:56]Clear old archive folders... [15:46:56]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:46:56]tlvbuf is 002654B0 [15:46:56]SAM_PROTO_ClearQueue [15:46:56]wFMCommunicate request_size=4 [15:46:56]MH_SAM_APDU [15:46:56]CAPDU: 80 09 00 00 [15:46:56]Write to MH i2c: E2 08 00 9C 47 80 09 00 00 00 00 00 00 55 [15:46:56]Write i2c OK [15:46:56]MH_I2C_Read... [15:46:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:46:56]Read from MH i2c: E2 [15:46:56]MH_I2C_Read... [15:46:56]Read from MH i2c: E2 03 00 [15:46:56]MH_I2C_Read... [15:46:56]Read from MH i2c: E2 03 00 9C 47 00 90 00 57 [15:46:56]RAPDU: 90 00 [15:46:56]wFMCommunicate OK [15:46:56]SAM_PROTO_ClearQueue done [15:46:56]KKMCreateOFDPacket [15:46:56]OFDProtocolAddRootSTLVToBuf [15:46:56]FM_MakeSignedData [15:46:56]FM_MakeSignedData [15:46:56]SAM_PROTO_SignData [15:46:56]wFMCommunicate request_size=4 [15:46:56]MH_SAM_APDU [15:46:56]CAPDU: 80 0D 01 02 [15:46:56]Write to MH i2c: E2 08 00 9D 47 80 0D 01 02 00 00 00 00 5D [15:46:56]Write i2c OK [15:46:56]MH_I2C_Read... [15:46:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:46:56]Read from MH i2c: E2 [15:46:56]MH_I2C_Read... [15:46:56]Read from MH i2c: E2 03 00 [15:46:56]MH_I2C_Read... [15:46:56]Read from MH i2c: E2 03 00 9D 47 00 90 00 58 [15:46:56]RAPDU: 90 00 [15:46:56]wFMCommunicate OK [15:46:56]wFMCommunicate request_size=255 [15:46:56]MH_SAM_APDU [15:46:56]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 34 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 75 E5 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 29 0B 01 00 35 04 06 00 [15:46:56]Write to MH i2c: E2 02 01 9E 47 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 34 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 75 E5 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 29 0B 01 00 35 04 06 00 00 00 0F [15:46:56]Write i2c OK [15:46:56]MH_I2C_Read... [15:46:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:46:57]Read from MH i2c: E2 [15:46:57]MH_I2C_Read... [15:46:57]Read from MH i2c: E2 03 00 [15:46:57]MH_I2C_Read... [15:46:57]Read from MH i2c: E2 03 00 9E 47 00 90 00 59 [15:46:57]RAPDU: 90 00 [15:46:57]wFMCommunicate OK [15:46:57]wFMCommunicate request_size=11 [15:46:57]MH_SAM_APDU [15:46:57]CAPDU: 80 0D 02 02 06 55 BC FC EC CC B7 [15:46:57]Write to MH i2c: E2 0E 00 9F 47 80 0D 02 02 06 00 55 BC FC EC CC B7 00 00 E8 [15:46:57]Write i2c OK [15:46:57]MH_I2C_Read... [15:46:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:46:57]Read from MH i2c: E2 [15:46:57]MH_I2C_Read... [15:46:57]Read from MH i2c: E2 03 00 [15:46:57]MH_I2C_Read... [15:46:57]Read from MH i2c: E2 03 00 9F 47 00 90 00 5A [15:46:57]RAPDU: 90 00 [15:46:57]wFMCommunicate OK [15:46:57]wFMCommunicate request_size=4 [15:46:57]MH_SAM_APDU [15:46:57]CAPDU: 80 0D 03 02 [15:46:57]Write to MH i2c: E2 08 00 A0 47 80 0D 03 02 00 00 00 00 62 [15:46:57]Write i2c OK [15:46:57]MH_I2C_Read... [15:46:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:46:57]Read from MH i2c: E2 [15:46:57]MH_I2C_Read... [15:46:57]Read from MH i2c: E2 0B 00 [15:46:57]MH_I2C_Read... [15:46:57]Read from MH i2c: E2 0B 00 A0 47 00 C5 41 7A 06 E7 4E 9C B9 90 00 73 [15:46:57]RAPDU: C5 41 7A 06 E7 4E 9C B9 90 00 [15:46:57]wFMCommunicate OK [15:46:57]SAM_PROTO_SignData done [15:46:57]FM_MakeSignedData done [15:46:57]CreateOFDProtocolMessage [15:46:57]wFMCommunicate request_size=4 [15:46:57]MH_SAM_APDU [15:46:57]CAPDU: 80 11 00 00 [15:46:57]Write to MH i2c: E2 08 00 A1 47 80 11 00 00 00 00 00 00 62 [15:46:57]Write i2c OK [15:46:57]MH_I2C_Read... [15:46:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:46:57]Read from MH i2c: E2 [15:46:57]MH_I2C_Read... [15:46:57]Read from MH i2c: E2 17 00 [15:46:57]MH_I2C_Read... [15:46:57]Read from MH i2c: E2 17 00 A1 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 AD [15:46:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:46:57]wFMCommunicate OK [15:46:57]CreateOFDProtocolMessage done [15:46:57]OFDSenderStorePacket 68393 [15:46:57]StoreOFDPacket docnum=68393 [15:46:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 5C F6 08 01 04 AB 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 75 E5 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 29 0B 01 00 35 04 06 00 55 BC FC EC CC B7 C5 41 7A 06 E7 4E 9C B9 [15:46:57]CheckFolder [15:46:57]dirname=/storage/ofd_packets [15:46:57]CheckFolder done [15:46:57]ProducePacketName [15:46:57]name=ofd_packets/00068393 [15:46:57]NVStorageSaveData ofd_packets/00068393 [15:46:57]File name is /storage/ofd_packets/00068393 [15:46:57]Write 302 bytes [15:46:57]NVStorageSaveData done [15:46:57]OFDSenderStorePacket done [15:46:57]KKMCreateOFDPacket done [15:46:57]NVStorageSaveData kkm_last_timestamp [15:46:57]File name is /storage/kkm_last_timestamp [15:46:57]Write 4 bytes [15:46:57]NVStorageSaveData done [15:46:57]ExternCall_PrintAddStr [15:46:57]wPrintStart [15:46:57]Write to MH i2c: 01 00 00 A2 47 E9 [15:46:57]Write i2c OK [15:46:57]MH_I2C_Read... [15:46:57]Read from MH i2c: 01 [15:46:57]MH_I2C_Read... [15:46:57]Read from MH i2c: 01 07 00 [15:46:57]MH_I2C_Read... [15:46:57]Read from MH i2c: 01 07 00 A2 47 00 00 00 00 00 FF 0F FE [15:46:57]RasterBufferAndPrint [15:46:57]line Счет N : (1)706491 [15:46:57]line ИНН: 02508201610067 [15:46:57]line Контрольно-Кассовый Чек [15:46:57]line ПРОДАЖА [15:46:57]line ТРК (МРК, ГНК) : 61 [15:46:57]line Товар: 2710194210 [15:46:57]line ДТ(л)-К-4 [15:46:57]line 6.860 * 72.90 [15:46:57]line = 500.09 [15:46:57]line НДС 12% НСП 1% [15:46:57]line > о реализуемом товаре [15:46:57]line ОКРУГЛЕНИЕ: -0.09 [15:46:57]line ИТОГО: 500.00 [15:46:57]line Внесено: 500.00 [15:46:57]line СДАЧА: 0.00 [15:46:57]line НСП 1% : 4.43 [15:46:57]line НДС 12% : 53.11 [15:46:57]line Наличными: 500.00 [15:46:57]line Безнал.: 0.00 [15:46:57]line Место: АЗС № 62 "Партнер Нефть" [15:46:57]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [15:46:57]line СНО: Общий режим [15:46:57]line Чек 139 03.06.2024 15:47 [15:46:57]line Смена: 324 ФФД: 1.0 [15:46:57]line ЗНМ: 0300000181 [15:46:57]line РНМ: 0000000000098096 [15:46:57]line Версия ККМ: 001 [15:46:57]line ФМ: 0000000000965400 [15:46:57]line ФД: 68393 [15:46:57]line ФПД: 94270185589943 [15:46:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T154701&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68393&fm=94270185589943&tin=02508201610067®Number=0000000000098096&sum=50000 [15:46:57]OFD Sender: Processing packet 68393 [packets to send 26, broken 25] [15:46:57]ProducePacketName [15:46:57]name=ofd_packets/00068393 [15:46:57]OFD Sender: To server: pG, [15:46:57]CommunicateWithHost lk.salyk.kg:30040 [15:46:57]ConnectInit lk.salyk.kg [15:46:57]written 0, free lines is 4095 [15:46:57]Connected sock=7 [15:46:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 5C F6 08 01 04 AB 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 75 E5 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 29 0B 01 00 35 04 06 00 55 BC FC EC CC B7 C5 41 7A 06 E7 4E 9C B9 [15:46:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 02 A9 47 00 61 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 29 0B 01 00 F4 03 04 00 71 8C 5D 66 B6 04 01 00 00 8B 34 23 4E 7E EE 78 FF [15:46:57]CommunicateWithHost err = 0 [15:46:57]CheckOFDResponse [15:46:57]1017 (14) - 77093643461234 [15:46:57]1041 (16) - 0000000000965400 [15:46:57]1040 (4) - 68393 [15:46:57]1012 (4) - 03.06.2024 09:27 [15:46:57]1206 (1) - 0 [15:46:57]OFD Sender: Remove packet 68393 [15:46:57]ProducePacketName [15:46:57]name=ofd_packets/00068393 [15:46:57]NVStorageDeleteData [15:46:57]Write to MH i2c: 01 00 00 CD 47 14 [15:46:57]Write i2c OK [15:46:57]MH_I2C_Read... [15:46:57]Read from MH i2c: 01 [15:46:57]MH_I2C_Read... [15:46:57]Read from MH i2c: 01 07 00 [15:46:57]MH_I2C_Read... [15:46:57]Read from MH i2c: 01 07 00 CD 47 00 00 00 00 00 E9 0C 10 [15:46:57]RasterBufferAndPrint [15:46:57]line [15:46:57]line [15:46:57]line [15:46:57]line [15:46:57]line [15:46:57]written 0, free lines is 3311 [15:46:57]MH_Cut [15:46:57]Write to MH i2c: D1 01 00 D4 47 01 ED [15:46:57]Write i2c OK [15:46:57]MH_I2C_Read... [15:46:57]Read from MH i2c: D1 [15:46:57]MH_I2C_Read... [15:46:57]Read from MH i2c: D1 01 00 [15:46:57]MH_I2C_Read... [15:46:57]Read from MH i2c: D1 01 00 D4 47 00 EC [15:46:57]Write to MH i2c: 01 00 00 D5 47 1C [15:46:57]Write i2c OK [15:46:57]MH_I2C_Read... [15:46:58]OFD Sender: No OFD packet to send [15:46:58]*** Cut start [15:46:58]*** Partial cut [15:46:58]*** CUTSNS_PIN = 1 [15:46:58]*** CUTSNS_PIN = 0 [15:46:59]*** Brake cut motor [15:46:59]Read from MH i2c: 01 [15:46:59]MH_I2C_Read... [15:46:59]*** Stop cut motor [15:46:59]*** Cut end [15:46:59]Read from MH i2c: 01 07 00 [15:46:59]MH_I2C_Read... [15:46:59]Read from MH i2c: 01 07 00 D5 47 00 00 00 00 00 FF 0F 31 [15:46:59]process_action close_receipt done [15:46:59]requested_data is exist [15:46:59]produce_requested_data [15:46:59]requested_item fm.sn is exist - process it [15:46:59]wFMCommunicate request_size=4 [15:46:59]MH_SAM_APDU [15:46:59]CAPDU: 80 11 00 00 [15:46:59]Write to MH i2c: E2 08 00 D6 47 80 11 00 00 00 00 00 00 97 [15:46:59]Write i2c OK [15:46:59]MH_I2C_Read... [15:46:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:46:59]Read from MH i2c: E2 [15:46:59]MH_I2C_Read... [15:46:59]Read from MH i2c: E2 17 00 [15:46:59]MH_I2C_Read... [15:46:59]Read from MH i2c: E2 17 00 D6 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 E2 [15:46:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:46:59]wFMCommunicate OK [15:46:59]requested_item fd.num is exist - process it [15:46:59]SAM_PROTO_GetFieldsCounters [15:46:59]wFMCommunicate request_size=4 [15:46:59]MH_SAM_APDU [15:46:59]CAPDU: 80 13 00 00 [15:46:59]Write to MH i2c: E2 08 00 D7 47 80 13 00 00 00 00 00 00 9A [15:46:59]Write i2c OK [15:46:59]MH_I2C_Read... [15:46:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:46:59]Read from MH i2c: E2 [15:46:59]MH_I2C_Read... [15:46:59]Read from MH i2c: E2 62 00 [15:46:59]MH_I2C_Read... [15:46:59]Read from MH i2c: E2 62 00 D7 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 29 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 D5 [15:46:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 29 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:46:59]wFMCommunicate OK [15:46:59]SAM_PROTO_GetFieldsCounters done [15:46:59]requested_item shift.num is exist - process it [15:46:59]requested_item shift.opened is exist - process it [15:46:59]req_shift_opened [15:46:59]FM_GetShiftState [15:46:59]SAM_PROTO_GetShiftState [15:46:59]wFMCommunicate request_size=4 [15:46:59]MH_SAM_APDU [15:46:59]CAPDU: 80 13 01 00 [15:46:59]Write to MH i2c: E2 08 00 D8 47 80 13 01 00 00 00 00 00 9C [15:46:59]Write i2c OK [15:46:59]MH_I2C_Read... [15:46:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:46:59]Read from MH i2c: E2 [15:46:59]MH_I2C_Read... [15:46:59]Read from MH i2c: E2 0E 00 [15:46:59]MH_I2C_Read... [15:46:59]Read from MH i2c: E2 0E 00 D8 47 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 77 [15:46:59]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [15:46:59]wFMCommunicate OK [15:46:59]SAM_PROTO_GetShiftState done [15:46:59]FM_GetShiftState done [15:46:59]req_shift_opened done [15:46:59]requested_item shift.open_date is exist - process it [15:46:59]req_shift_open_date [15:46:59]req_shift_open_date done [15:46:59]produce_requested_data done [15:46:59]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68393,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [15:46:59]process_action_free close_receipt [15:46:59]json_value_free [15:46:59]json_value_free done [15:46:59]process_json_proto returns [15:46:59]Send response to host [15:46:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68393,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [15:46:59]free response buf [15:46:59]execute_script done [15:46:59]execute_script returns [15:46:59]free content buf [15:46:59]Sock 6.Close socket [15:46:59]Sock 6.Thread stoped [15:47:03]OFD Sender: No OFD packet to send [15:47:08]OFD Sender: No OFD packet to send [15:47:13]OFD Sender: No OFD packet to send [15:47:18]OFD Sender: No OFD packet to send [15:47:23]OFD Sender: No OFD packet to send [15:47:28]OFD Sender: No OFD packet to send [15:47:33]OFD Sender: No OFD packet to send [15:47:38]OFD Sender: No OFD packet to send [15:47:43]OFD Sender: No OFD packet to send [15:47:48]OFD Sender: No OFD packet to send [15:47:53]OFD Sender: No OFD packet to send [15:47:58]OFD Sender: No OFD packet to send [15:48:03]OFD Sender: No OFD packet to send [15:48:08]OFD Sender: No OFD packet to send [15:48:13]OFD Sender: No OFD packet to send [15:48:18]OFD Sender: No OFD packet to send [15:48:23]OFD Sender: No OFD packet to send [15:48:28]OFD Sender: No OFD packet to send [15:48:32]accept exits with 5 [15:48:32]New connection [15:48:32]New thread 3066686820 created [15:48:32]Thread 3066543460 joined [15:48:32]Waiting for new connection... [15:48:32] Sock 5.Parse request [15:48:32]Sock 5.Check first char [15:48:32]Sock 5.First char is OK [15:48:32]request: POST /json_proto HTTP/1.0 [15:48:32]Method: POST [15:48:32]URL: /json_proto [15:48:32]Method is POST - this is cgi request [15:48:32]url: /json_proto [15:48:32]query_string will be loaded in cgi processing [15:48:32]execute_cgi json_proto POST (null) [15:48:32]execute_cgi path=json_proto method=POST [15:48:32]POST find Content-Length [15:48:32]Host: 172.17.36.132:8080 [15:48:32]Content-Length: 848 [15:48:32]Content-Type: application/json [15:48:32] [15:48:32]POST finish read [15:48:32]Found Content-Length = 848 [15:48:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706492", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:48:32]execute_script... [15:48: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)706492", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:48:32]POST & json_proto [15:48:32]process_json_proto [15:48:32]json parsed OK: [15:48:32]protocol is kg_v1.0 [15:48:32]action value=close_receipt [15:48:32]process_action close_receipt [15:48:32]cmd_close_receipt [15:48:32]MH_GetDate [15:48:32]Write to MH i2c: F0 00 00 D9 47 0F [15:48:32]Write i2c OK [15:48:32]MH_I2C_Read... [15:48:32]Read from MH i2c: F0 [15:48:32]MH_I2C_Read... [15:48:32]Read from MH i2c: F0 09 00 [15:48:32]MH_I2C_Read... [15:48:32]Read from MH i2c: F0 09 00 D9 47 00 D6 E5 5D 66 B2 22 B0 64 7E [15:48:32]GetLastDocTimeStamp 1717429621 [15:48:32]current date 1717429718 [15:48:32]FM_GetShiftState [15:48:32]SAM_PROTO_GetShiftState [15:48:32]wFMCommunicate request_size=4 [15:48:32]MH_SAM_APDU [15:48:32]CAPDU: 80 13 01 00 [15:48:32]Write to MH i2c: E2 08 00 DA 47 80 13 01 00 00 00 00 00 9E [15:48:32]Write i2c OK [15:48:32]MH_I2C_Read... [15:48:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:48:32]Read from MH i2c: E2 [15:48:32]MH_I2C_Read... [15:48:32]Read from MH i2c: E2 0E 00 [15:48:32]MH_I2C_Read... [15:48:32]Read from MH i2c: E2 0E 00 DA 47 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 79 [15:48:32]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [15:48:32]wFMCommunicate OK [15:48:32]SAM_PROTO_GetShiftState done [15:48:32]FM_GetShiftState done [15:48:32]opened in 1717378033 [15:48:32]opened+sec_in_day 1717464433 [15:48:32]quantity*price = 100018 [15:48:32]sum+1 = 100020 [15:48:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.19 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.19 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 140 03.06.2024 15:48 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68394 ФПД: 9292384562311 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T154838&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68394&fm=9292384562311&tin=02508201610067®Number=0000000000098096&sum=100019 [15:48:33]StoreToDocumentArchive [15:48:33]shift 324 fd 68394 [15:48:33]save to /storage/0324/doc_00068394 [15:48:33]save last doc name /storage/0324/doc_00068394 to /storage/kkm_last_doc_name [15:48:33]save OK [15:48:33]Clear old archive folders... [15:48:33]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:48:33]tlvbuf is 0023A350 [15:48:33]SAM_PROTO_ClearQueue [15:48:33]wFMCommunicate request_size=4 [15:48:33]MH_SAM_APDU [15:48:33]CAPDU: 80 09 00 00 [15:48:33]Write to MH i2c: E2 08 00 E7 47 80 09 00 00 00 00 00 00 A0 [15:48:33]Write i2c OK [15:48:33]MH_I2C_Read... [15:48:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:48:33]Read from MH i2c: E2 [15:48:33]MH_I2C_Read... [15:48:33]Read from MH i2c: E2 03 00 [15:48:33]MH_I2C_Read... [15:48:33]Read from MH i2c: E2 03 00 E7 47 00 90 00 A2 [15:48:33]RAPDU: 90 00 [15:48:33]wFMCommunicate OK [15:48:33]SAM_PROTO_ClearQueue done [15:48:33]KKMCreateOFDPacket [15:48:33]OFDProtocolAddRootSTLVToBuf [15:48:33]FM_MakeSignedData [15:48:33]FM_MakeSignedData [15:48:33]SAM_PROTO_SignData [15:48:33]wFMCommunicate request_size=4 [15:48:33]MH_SAM_APDU [15:48:33]CAPDU: 80 0D 01 02 [15:48:33]Write to MH i2c: E2 08 00 E8 47 80 0D 01 02 00 00 00 00 A8 [15:48:33]Write i2c OK [15:48:33]MH_I2C_Read... [15:48:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:48:33]Read from MH i2c: E2 [15:48:33]MH_I2C_Read... [15:48:33]Read from MH i2c: E2 03 00 [15:48:33]MH_I2C_Read... [15:48:33]Read from MH i2c: E2 03 00 E8 47 00 90 00 A3 [15:48:33]RAPDU: 90 00 [15:48:33]wFMCommunicate OK [15:48:33]wFMCommunicate request_size=255 [15:48:33]MH_SAM_APDU [15:48:33]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 D6 E5 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 2A 0B 01 00 35 04 06 00 [15:48:33]Write to MH i2c: E2 02 01 E9 47 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 34 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 D6 E5 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 2A 0B 01 00 35 04 06 00 00 00 9F [15:48:33]Write i2c OK [15:48:33]MH_I2C_Read... [15:48:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:48:34]Read from MH i2c: E2 [15:48:34]MH_I2C_Read... [15:48:34]Read from MH i2c: E2 03 00 [15:48:34]MH_I2C_Read... [15:48:34]Read from MH i2c: E2 03 00 E9 47 00 90 00 A4 [15:48:34]RAPDU: 90 00 [15:48:34]wFMCommunicate OK [15:48:34]wFMCommunicate request_size=11 [15:48:34]MH_SAM_APDU [15:48:34]CAPDU: 80 0D 02 02 06 08 73 8D 47 EC 87 [15:48:34]Write to MH i2c: E2 0E 00 EA 47 80 0D 02 02 06 00 08 73 8D 47 EC 87 00 00 79 [15:48:34]Write i2c OK [15:48:34]MH_I2C_Read... [15:48:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:48:34]Read from MH i2c: E2 [15:48:34]MH_I2C_Read... [15:48:34]Read from MH i2c: E2 03 00 [15:48:34]MH_I2C_Read... [15:48:34]Read from MH i2c: E2 03 00 EA 47 00 90 00 A5 [15:48:34]RAPDU: 90 00 [15:48:34]wFMCommunicate OK [15:48:34]wFMCommunicate request_size=4 [15:48:34]MH_SAM_APDU [15:48:34]CAPDU: 80 0D 03 02 [15:48:34]Write to MH i2c: E2 08 00 EB 47 80 0D 03 02 00 00 00 00 AD [15:48:34]Write i2c OK [15:48:34]MH_I2C_Read... [15:48:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:48:34]Read from MH i2c: E2 [15:48:34]MH_I2C_Read... [15:48:34]Read from MH i2c: E2 0B 00 [15:48:34]MH_I2C_Read... [15:48:34]Read from MH i2c: E2 0B 00 EB 47 00 97 DA 8C EE BC 20 C5 26 90 00 60 [15:48:34]RAPDU: 97 DA 8C EE BC 20 C5 26 90 00 [15:48:34]wFMCommunicate OK [15:48:34]SAM_PROTO_SignData done [15:48:34]FM_MakeSignedData done [15:48:34]CreateOFDProtocolMessage [15:48:34]wFMCommunicate request_size=4 [15:48:34]MH_SAM_APDU [15:48:34]CAPDU: 80 11 00 00 [15:48:34]Write to MH i2c: E2 08 00 EC 47 80 11 00 00 00 00 00 00 AD [15:48:34]Write i2c OK [15:48:34]MH_I2C_Read... [15:48:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:48:34]Read from MH i2c: E2 [15:48:34]MH_I2C_Read... [15:48:34]Read from MH i2c: E2 17 00 [15:48:34]MH_I2C_Read... [15:48:34]Read from MH i2c: E2 17 00 EC 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 F8 [15:48:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:48:34]wFMCommunicate OK [15:48:34]CreateOFDProtocolMessage done [15:48:34]OFDSenderStorePacket 68394 [15:48:34]StoreOFDPacket docnum=68394 [15:48:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 85 31 08 01 4B A2 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 34 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 D6 E5 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 2A 0B 01 00 35 04 06 00 08 73 8D 47 EC 87 97 DA 8C EE BC 20 C5 26 [15:48:34]CheckFolder [15:48:34]dirname=/storage/ofd_packets [15:48:34]CheckFolder done [15:48:34]ProducePacketName [15:48:34]name=ofd_packets/00068394 [15:48:34]NVStorageSaveData ofd_packets/00068394 [15:48:34]File name is /storage/ofd_packets/00068394 [15:48:34]Write 302 bytes [15:48:34]NVStorageSaveData done [15:48:34]OFDSenderStorePacket done [15:48:34]KKMCreateOFDPacket done [15:48:34]NVStorageSaveData kkm_last_timestamp [15:48:34]File name is /storage/kkm_last_timestamp [15:48:34]Write 4 bytes [15:48:34]NVStorageSaveData done [15:48:34]ExternCall_PrintAddStr [15:48:34]wPrintStart [15:48:34]Write to MH i2c: 01 00 00 ED 47 34 [15:48:34]Write i2c OK [15:48:34]MH_I2C_Read... [15:48:34]Read from MH i2c: 01 [15:48:34]MH_I2C_Read... [15:48:34]Read from MH i2c: 01 07 00 [15:48:34]MH_I2C_Read... [15:48:34]Read from MH i2c: 01 07 00 ED 47 00 00 00 00 00 FF 0F 49 [15:48:34]RasterBufferAndPrint [15:48:34]line Счет N : (1)706492 [15:48:34]line ИНН: 02508201610067 [15:48:34]line Контрольно-Кассовый Чек [15:48:34]line ПРОДАЖА [15:48:34]line ТРК (МРК, ГНК) : 21 [15:48:34]line Товар: 2710194210 [15:48:34]line ДТ(л)-К-4 [15:48:34]line 13.720 * 72.90 [15:48:34]line = 1000.19 [15:48:34]line НДС 12% НСП 1% [15:48:34]line > о реализуемом товаре [15:48:34]line ИТОГО: 1000.19 [15:48:34]line НСП 1% : 8.85 [15:48:34]line НДС 12% : 106.21 [15:48:34]line Наличными: 0.00 [15:48:34]line Безнал.: 1000.19 [15:48:34]line Место: АЗС № 62 "Партнер Нефть" [15:48:34]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [15:48:34]line СНО: Общий режим [15:48:34]line Чек 140 03.06.2024 15:48 [15:48:34]line Смена: 324 ФФД: 1.0 [15:48:34]line ЗНМ: 0300000181 [15:48:34]line РНМ: 0000000000098096 [15:48:34]line Версия ККМ: 001 [15:48:34]line Платежная система: АКБ Кыргызстан [15:48:34]line ФМ: 0000000000965400 [15:48:34]line ФД: 68394 [15:48:34]line ФПД: 9292384562311 [15:48:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T154838&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68394&fm=9292384562311&tin=02508201610067®Number=0000000000098096&sum=100019 [15:48:34]OFD Sender: Processing packet 68394 [packets to send 26, broken 25] [15:48:34]ProducePacketName [15:48:34]name=ofd_packets/00068394 [15:48:34]OFD Sender: To server: pG, [15:48:34]CommunicateWithHost lk.salyk.kg:30040 [15:48:34]ConnectInit lk.salyk.kg [15:48:34]written 0, free lines is 4095 [15:48:34]Connected sock=6 [15:48:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 85 31 08 01 4B A2 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 34 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 D6 E5 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 2A 0B 01 00 35 04 06 00 08 73 8D 47 EC 87 97 DA 8C EE BC 20 C5 26 [15:48:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 76 47 47 00 85 CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 2A 0B 01 00 F4 03 04 00 D2 8C 5D 66 B6 04 01 00 00 32 CD E1 1F BB 38 34 ED [15:48:34]CommunicateWithHost err = 0 [15:48:34]CheckOFDResponse [15:48:34]1017 (14) - 77093643461234 [15:48:34]1041 (16) - 0000000000965400 [15:48:34]1040 (4) - 68394 [15:48:34]1012 (4) - 03.06.2024 09:28 [15:48:34]1206 (1) - 0 [15:48:34]OFD Sender: Remove packet 68394 [15:48:34]ProducePacketName [15:48:34]name=ofd_packets/00068394 [15:48:34]NVStorageDeleteData [15:48:34]Write to MH i2c: 01 00 00 17 48 5F [15:48:34]Write i2c OK [15:48:34]MH_I2C_Read... [15:48:34]Read from MH i2c: 01 [15:48:34]MH_I2C_Read... [15:48:34]Read from MH i2c: 01 07 00 [15:48:34]MH_I2C_Read... [15:48:34]Read from MH i2c: 01 07 00 17 48 00 00 00 00 00 FB 0C 6D [15:48:34]RasterBufferAndPrint [15:48:34]line [15:48:34]line [15:48:34]line [15:48:34]line [15:48:34]line [15:48:34]written 0, free lines is 3329 [15:48:34]MH_Cut [15:48:34]Write to MH i2c: D1 01 00 1E 48 01 38 [15:48:34]Write i2c OK [15:48:34]MH_I2C_Read... [15:48:34]Read from MH i2c: D1 [15:48:34]MH_I2C_Read... [15:48:34]Read from MH i2c: D1 01 00 [15:48:34]MH_I2C_Read... [15:48:34]Read from MH i2c: D1 01 00 1E 48 00 37 [15:48:34]Write to MH i2c: 01 00 00 1F 48 67 [15:48:34]Write i2c OK [15:48:34]MH_I2C_Read... [15:48:35]OFD Sender: No OFD packet to send [15:48:35]*** Cut start [15:48:35]*** Partial cut [15:48:35]*** CUTSNS_PIN = 1 [15:48:35]*** CUTSNS_PIN = 0 [15:48:36]*** Brake cut motor [15:48:36]Read from MH i2c: 01 [15:48:36]MH_I2C_Read... [15:48:36]*** Stop cut motor [15:48:36]*** Cut end [15:48:36]Read from MH i2c: 01 07 00 [15:48:36]MH_I2C_Read... [15:48:36]Read from MH i2c: 01 07 00 1F 48 00 00 00 00 00 FF 0F 7C [15:48:36]process_action close_receipt done [15:48:36]requested_data is exist [15:48:36]produce_requested_data [15:48:36]requested_item fm.sn is exist - process it [15:48:36]wFMCommunicate request_size=4 [15:48:36]MH_SAM_APDU [15:48:36]CAPDU: 80 11 00 00 [15:48:36]Write to MH i2c: E2 08 00 20 48 80 11 00 00 00 00 00 00 E2 [15:48:36]Write i2c OK [15:48:36]MH_I2C_Read... [15:48:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:48:36]Read from MH i2c: E2 [15:48:36]MH_I2C_Read... [15:48:36]Read from MH i2c: E2 17 00 [15:48:36]MH_I2C_Read... [15:48:36]Read from MH i2c: E2 17 00 20 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 2D [15:48:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:48:36]wFMCommunicate OK [15:48:36]requested_item fd.num is exist - process it [15:48:36]SAM_PROTO_GetFieldsCounters [15:48:36]wFMCommunicate request_size=4 [15:48:36]MH_SAM_APDU [15:48:36]CAPDU: 80 13 00 00 [15:48:36]Write to MH i2c: E2 08 00 21 48 80 13 00 00 00 00 00 00 E5 [15:48:36]Write i2c OK [15:48:36]MH_I2C_Read... [15:48:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:48:36]Read from MH i2c: E2 [15:48:36]MH_I2C_Read... [15:48:36]Read from MH i2c: E2 62 00 [15:48:36]MH_I2C_Read... [15:48:36]Read from MH i2c: E2 62 00 21 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 2A 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 24 [15:48:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 2A 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:48:36]wFMCommunicate OK [15:48:36]SAM_PROTO_GetFieldsCounters done [15:48:36]requested_item shift.num is exist - process it [15:48:36]requested_item shift.opened is exist - process it [15:48:36]req_shift_opened [15:48:36]FM_GetShiftState [15:48:36]SAM_PROTO_GetShiftState [15:48:36]wFMCommunicate request_size=4 [15:48:36]MH_SAM_APDU [15:48:36]CAPDU: 80 13 01 00 [15:48:36]Write to MH i2c: E2 08 00 22 48 80 13 01 00 00 00 00 00 E7 [15:48:36]Write i2c OK [15:48:36]MH_I2C_Read... [15:48:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:48:36]Read from MH i2c: E2 [15:48:36]MH_I2C_Read... [15:48:36]Read from MH i2c: E2 0E 00 [15:48:36]MH_I2C_Read... [15:48:36]Read from MH i2c: E2 0E 00 22 48 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 C2 [15:48:36]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [15:48:36]wFMCommunicate OK [15:48:36]SAM_PROTO_GetShiftState done [15:48:36]FM_GetShiftState done [15:48:36]req_shift_opened done [15:48:36]requested_item shift.open_date is exist - process it [15:48:36]req_shift_open_date [15:48:36]req_shift_open_date done [15:48:36]produce_requested_data done [15:48:36]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68394,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [15:48:36]process_action_free close_receipt [15:48:36]json_value_free [15:48:36]json_value_free done [15:48:36]process_json_proto returns [15:48:36]Send response to host [15:48:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68394,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [15:48:36]free response buf [15:48:36]execute_script done [15:48:36]execute_script returns [15:48:36]free content buf [15:48:36]Sock 5.Close socket [15:48:36]Sock 5.Thread stoped [15:48:40]OFD Sender: No OFD packet to send [15:48:45]OFD Sender: No OFD packet to send [15:48:50]OFD Sender: No OFD packet to send [15:48:55]OFD Sender: No OFD packet to send [15:49:00]OFD Sender: No OFD packet to send [15:49:05]OFD Sender: No OFD packet to send [15:49:10]OFD Sender: No OFD packet to send [15:49:15]OFD Sender: No OFD packet to send [15:49:20]OFD Sender: No OFD packet to send [15:49:25]OFD Sender: No OFD packet to send [15:49:30]OFD Sender: No OFD packet to send [15:49:35]OFD Sender: No OFD packet to send [15:49:40]OFD Sender: No OFD packet to send [15:49:45]OFD Sender: No OFD packet to send [15:49:50]OFD Sender: No OFD packet to send [15:49:55]OFD Sender: No OFD packet to send [15:50:00]OFD Sender: No OFD packet to send [15:50:05]OFD Sender: No OFD packet to send [15:50:10]OFD Sender: No OFD packet to send [15:50:15]OFD Sender: No OFD packet to send [15:50:20]OFD Sender: No OFD packet to send [15:50:25]OFD Sender: No OFD packet to send [15:50:30]OFD Sender: No OFD packet to send [15:50:35]OFD Sender: No OFD packet to send [15:50:40]OFD Sender: No OFD packet to send [15:50:45]OFD Sender: No OFD packet to send [15:50:50]OFD Sender: No OFD packet to send [15:50:55]OFD Sender: No OFD packet to send [15:51:00]OFD Sender: No OFD packet to send [15:51:05]OFD Sender: No OFD packet to send [15:51:10]OFD Sender: No OFD packet to send [15:51:15]OFD Sender: No OFD packet to send [15:51:20]accept exits with 7 [15:51:20]New connection [15:51:20]New thread 3066543460 created [15:51:20]Thread 3066686820 joined [15:51:20]Waiting for new connection... [15:51:20] Sock 7.Parse request [15:51:20]Sock 7.Check first char [15:51:20]Sock 7.First char is OK [15:51:20]request: POST /json_proto HTTP/1.0 [15:51:20]Method: POST [15:51:20]URL: /json_proto [15:51:20]Method is POST - this is cgi request [15:51:20]url: /json_proto [15:51:20]query_string will be loaded in cgi processing [15:51:20]execute_cgi json_proto POST (null) [15:51:20]execute_cgi path=json_proto method=POST [15:51:20]POST find Content-Length [15:51:20]Host: 172.17.36.132:8080 [15:51:20]Content-Length: 648 [15:51:20]Content-Type: application/json [15:51:20] [15:51:20]POST finish read [15:51:20]Found Content-Length = 648 [15:51:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706493", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 130.000, "sum" : 9477.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 9477.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:51:20]execute_script... [15:51: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)706493", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 130.000, "sum" : 9477.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 9477.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:51:20]POST & json_proto [15:51:20]process_json_proto [15:51:20]json parsed OK: [15:51:20]protocol is kg_v1.0 [15:51:20]action value=close_receipt [15:51:20]process_action close_receipt [15:51:20]cmd_close_receipt [15:51:20]MH_GetDate [15:51:20]Write to MH i2c: F0 00 00 23 48 5A [15:51:20]Write i2c OK [15:51:20]MH_I2C_Read... [15:51:20]Read from MH i2c: F0 [15:51:20]MH_I2C_Read... [15:51:20]Read from MH i2c: F0 09 00 [15:51:20]MH_I2C_Read... [15:51:20]Read from MH i2c: F0 09 00 23 48 00 7E E6 5D 66 B2 22 B0 64 72 [15:51:20]GetLastDocTimeStamp 1717429718 [15:51:20]current date 1717429886 [15:51:20]FM_GetShiftState [15:51:20]SAM_PROTO_GetShiftState [15:51:20]wFMCommunicate request_size=4 [15:51:20]MH_SAM_APDU [15:51:20]CAPDU: 80 13 01 00 [15:51:20]Write to MH i2c: E2 08 00 24 48 80 13 01 00 00 00 00 00 E9 [15:51:20]Write i2c OK [15:51:20]MH_I2C_Read... [15:51:20]OFD Sender: No OFD packet to send [15:51:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:51:20]Read from MH i2c: E2 [15:51:20]MH_I2C_Read... [15:51:20]Read from MH i2c: E2 0E 00 [15:51:20]MH_I2C_Read... [15:51:20]Read from MH i2c: E2 0E 00 24 48 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 C4 [15:51:20]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [15:51:20]wFMCommunicate OK [15:51:20]SAM_PROTO_GetShiftState done [15:51:20]FM_GetShiftState done [15:51:20]opened in 1717378033 [15:51:20]opened+sec_in_day 1717464433 [15:51:20]quantity*price = 947700 [15:51:20]sum+1 = 947701 [15:51:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 9477.00 НСП 1% : 83.87 НДС 12% : 1006.41 Наличными: 9477.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 141 03.06.2024 15:51 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68395 ФПД: 244831837449659 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T155126&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68395&fm=244831837449659&tin=02508201610067®Number=0000000000098096&sum=947700 [15:51:21]StoreToDocumentArchive [15:51:21]shift 324 fd 68395 [15:51:21]save to /storage/0324/doc_00068395 [15:51:21]save last doc name /storage/0324/doc_00068395 to /storage/kkm_last_doc_name [15:51:21]save OK [15:51:21]Clear old archive folders... [15:51:21]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:51:21]tlvbuf is 0023AA50 [15:51:21]SAM_PROTO_ClearQueue [15:51:21]wFMCommunicate request_size=4 [15:51:21]MH_SAM_APDU [15:51:21]CAPDU: 80 09 00 00 [15:51:21]Write to MH i2c: E2 08 00 31 48 80 09 00 00 00 00 00 00 EB [15:51:21]Write i2c OK [15:51:21]MH_I2C_Read... [15:51:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:51:21]Read from MH i2c: E2 [15:51:21]MH_I2C_Read... [15:51:21]Read from MH i2c: E2 03 00 [15:51:21]MH_I2C_Read... [15:51:21]Read from MH i2c: E2 03 00 31 48 00 90 00 ED [15:51:21]RAPDU: 90 00 [15:51:21]wFMCommunicate OK [15:51:21]SAM_PROTO_ClearQueue done [15:51:21]KKMCreateOFDPacket [15:51:21]OFDProtocolAddRootSTLVToBuf [15:51:21]FM_MakeSignedData [15:51:21]FM_MakeSignedData [15:51:21]SAM_PROTO_SignData [15:51:21]wFMCommunicate request_size=4 [15:51:21]MH_SAM_APDU [15:51:21]CAPDU: 80 0D 01 02 [15:51:21]Write to MH i2c: E2 08 00 32 48 80 0D 01 02 00 00 00 00 F3 [15:51:21]Write i2c OK [15:51:21]MH_I2C_Read... [15:51:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:51:21]Read from MH i2c: E2 [15:51:21]MH_I2C_Read... [15:51:21]Read from MH i2c: E2 03 00 [15:51:21]MH_I2C_Read... [15:51:21]Read from MH i2c: E2 03 00 32 48 00 90 00 EE [15:51:21]RAPDU: 90 00 [15:51:21]wFMCommunicate OK [15:51:21]wFMCommunicate request_size=255 [15:51:21]MH_SAM_APDU [15:51:21]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 34 FF 03 08 00 03 D0 FB 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 F4 75 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 75 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 89 01 00 00 00 07 04 06 00 F4 75 0E 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 7E E6 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 2B 0B 01 00 35 04 06 00 [15:51:21]Write to MH i2c: E2 02 01 33 48 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 34 FF 03 08 00 03 D0 FB 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 F4 75 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 75 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 89 01 00 00 00 07 04 06 00 F4 75 0E 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 7E E6 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 2B 0B 01 00 35 04 06 00 00 00 BB [15:51:21]Write i2c OK [15:51:21]MH_I2C_Read... [15:51:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:51:21]Read from MH i2c: E2 [15:51:21]MH_I2C_Read... [15:51:21]Read from MH i2c: E2 03 00 [15:51:21]MH_I2C_Read... [15:51:21]Read from MH i2c: E2 03 00 33 48 00 90 00 EF [15:51:21]RAPDU: 90 00 [15:51:21]wFMCommunicate OK [15:51:21]wFMCommunicate request_size=11 [15:51:21]MH_SAM_APDU [15:51:21]CAPDU: 80 0D 02 02 06 DE AC 5A B3 6D BB [15:51:21]Write to MH i2c: E2 0E 00 34 48 80 0D 02 02 06 00 DE AC 5A B3 6D BB 00 00 C1 [15:51:21]Write i2c OK [15:51:21]MH_I2C_Read... [15:51:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:51:22]Read from MH i2c: E2 [15:51:22]MH_I2C_Read... [15:51:22]Read from MH i2c: E2 03 00 [15:51:22]MH_I2C_Read... [15:51:22]Read from MH i2c: E2 03 00 34 48 00 90 00 F0 [15:51:22]RAPDU: 90 00 [15:51:22]wFMCommunicate OK [15:51:22]wFMCommunicate request_size=4 [15:51:22]MH_SAM_APDU [15:51:22]CAPDU: 80 0D 03 02 [15:51:22]Write to MH i2c: E2 08 00 35 48 80 0D 03 02 00 00 00 00 F8 [15:51:22]Write i2c OK [15:51:22]MH_I2C_Read... [15:51:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:51:22]Read from MH i2c: E2 [15:51:22]MH_I2C_Read... [15:51:22]Read from MH i2c: E2 0B 00 [15:51:22]MH_I2C_Read... [15:51:22]Read from MH i2c: E2 0B 00 35 48 00 5A C2 7B 2E CF 8E D0 98 90 00 83 [15:51:22]RAPDU: 5A C2 7B 2E CF 8E D0 98 90 00 [15:51:22]wFMCommunicate OK [15:51:22]SAM_PROTO_SignData done [15:51:22]FM_MakeSignedData done [15:51:22]CreateOFDProtocolMessage [15:51:22]wFMCommunicate request_size=4 [15:51:22]MH_SAM_APDU [15:51:22]CAPDU: 80 11 00 00 [15:51:22]Write to MH i2c: E2 08 00 36 48 80 11 00 00 00 00 00 00 F8 [15:51:22]Write i2c OK [15:51:22]MH_I2C_Read... [15:51:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:51:22]Read from MH i2c: E2 [15:51:22]MH_I2C_Read... [15:51:22]Read from MH i2c: E2 17 00 [15:51:22]MH_I2C_Read... [15:51:22]Read from MH i2c: E2 17 00 36 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 43 [15:51:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:51:22]wFMCommunicate OK [15:51:22]CreateOFDProtocolMessage done [15:51:22]OFDSenderStorePacket 68395 [15:51:22]StoreOFDPacket docnum=68395 [15:51:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 7F FB 08 01 A6 9D 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 34 FF 03 08 00 03 D0 FB 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 F4 75 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 75 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 89 01 00 00 00 07 04 06 00 F4 75 0E 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 7E E6 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 2B 0B 01 00 35 04 06 00 DE AC 5A B3 6D BB 5A C2 7B 2E CF 8E D0 98 [15:51:22]CheckFolder [15:51:22]dirname=/storage/ofd_packets [15:51:22]CheckFolder done [15:51:22]ProducePacketName [15:51:22]name=ofd_packets/00068395 [15:51:22]NVStorageSaveData ofd_packets/00068395 [15:51:22]File name is /storage/ofd_packets/00068395 [15:51:22]Write 302 bytes [15:51:22]NVStorageSaveData done [15:51:22]OFDSenderStorePacket done [15:51:22]KKMCreateOFDPacket done [15:51:22]NVStorageSaveData kkm_last_timestamp [15:51:22]File name is /storage/kkm_last_timestamp [15:51:22]Write 4 bytes [15:51:22]NVStorageSaveData done [15:51:22]ExternCall_PrintAddStr [15:51:22]wPrintStart [15:51:22]Write to MH i2c: 01 00 00 37 48 7F [15:51:22]Write i2c OK [15:51:22]MH_I2C_Read... [15:51:22]Read from MH i2c: 01 [15:51:22]MH_I2C_Read... [15:51:22]Read from MH i2c: 01 07 00 [15:51:22]MH_I2C_Read... [15:51:22]Read from MH i2c: 01 07 00 37 48 00 00 00 00 00 FF 0F 94 [15:51:22]RasterBufferAndPrint [15:51:22]line Счет N : (1)706493 [15:51:22]line ИНН: 02508201610067 [15:51:22]line Контрольно-Кассовый Чек [15:51:22]line ПРОДАЖА [15:51:22]line ТРК (МРК, ГНК) : 11 [15:51:22]line Товар: 2710194210 [15:51:22]line ДТ(л)-К-4 [15:51:22]line 130.000 * 72.90 [15:51:22]line = 9477.00 [15:51:22]line НДС 12% НСП 1% [15:51:22]line > о реализуемом товаре [15:51:22]line ИТОГО: 9477.00 [15:51:22]line НСП 1% : 83.87 [15:51:22]line НДС 12% : 1006.41 [15:51:22]line Наличными: 9477.00 [15:51:22]line Безнал.: 0.00 [15:51:22]line Место: АЗС № 62 "Партнер Нефть" [15:51:22]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [15:51:22]line СНО: Общий режим [15:51:22]line Чек 141 03.06.2024 15:51 [15:51:22]line Смена: 324 ФФД: 1.0 [15:51:22]line ЗНМ: 0300000181 [15:51:22]line РНМ: 0000000000098096 [15:51:22]line Версия ККМ: 001 [15:51:22]line ФМ: 0000000000965400 [15:51:22]line ФД: 68395 [15:51:22]line ФПД: 244831837449659 [15:51:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T155126&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68395&fm=244831837449659&tin=02508201610067®Number=0000000000098096&sum=947700 [15:51:22]OFD Sender: Processing packet 68395 [packets to send 26, broken 25] [15:51:22]ProducePacketName [15:51:22]name=ofd_packets/00068395 [15:51:22]OFD Sender: To server: pG, [15:51:22]CommunicateWithHost lk.salyk.kg:30040 [15:51:22]ConnectInit lk.salyk.kg [15:51:22]written 0, free lines is 4095 [15:51:22]Connected sock=5 [15:51:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 7F FB 08 01 A6 9D 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 34 FF 03 08 00 03 D0 FB 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 F4 75 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 75 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 89 01 00 00 00 07 04 06 00 F4 75 0E 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 7E E6 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 2B 0B 01 00 35 04 06 00 DE AC 5A B3 6D BB 5A C2 7B 2E CF 8E D0 98 [15:51:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 21 23 47 00 DA 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 2B 0B 01 00 F4 03 04 00 79 8D 5D 66 B6 04 01 00 00 F7 BE 47 5D 7B 12 06 4E [15:51:22]CommunicateWithHost err = 0 [15:51:22]CheckOFDResponse [15:51:22]1017 (14) - 77093643461234 [15:51:22]1041 (16) - 0000000000965400 [15:51:22]1040 (4) - 68395 [15:51:22]1012 (4) - 03.06.2024 09:31 [15:51:22]1206 (1) - 0 [15:51:22]OFD Sender: Remove packet 68395 [15:51:22]ProducePacketName [15:51:22]name=ofd_packets/00068395 [15:51:22]NVStorageDeleteData [15:51:22]Write to MH i2c: 01 00 00 5F 48 A7 [15:51:22]Write i2c OK [15:51:22]MH_I2C_Read... [15:51:22]Read from MH i2c: 01 [15:51:22]MH_I2C_Read... [15:51:22]Read from MH i2c: 01 07 00 [15:51:22]MH_I2C_Read... [15:51:22]Read from MH i2c: 01 07 00 5F 48 00 00 00 00 00 1D 0D D8 [15:51:22]RasterBufferAndPrint [15:51:22]line [15:51:22]line [15:51:22]line [15:51:22]line [15:51:22]line [15:51:22]written 0, free lines is 3363 [15:51:22]MH_Cut [15:51:22]Write to MH i2c: D1 01 00 66 48 01 80 [15:51:22]Write i2c OK [15:51:22]MH_I2C_Read... [15:51:22]Read from MH i2c: D1 [15:51:22]MH_I2C_Read... [15:51:22]Read from MH i2c: D1 01 00 [15:51:22]MH_I2C_Read... [15:51:22]Read from MH i2c: D1 01 00 66 48 00 7F [15:51:22]Write to MH i2c: 01 00 00 67 48 AF [15:51:22]Write i2c OK [15:51:22]MH_I2C_Read... [15:51:23]OFD Sender: No OFD packet to send [15:51:23]*** Cut start [15:51:23]*** Partial cut [15:51:23]*** CUTSNS_PIN = 1 [15:51:23]*** CUTSNS_PIN = 0 [15:51:23]*** Brake cut motor [15:51:24]Read from MH i2c: 01 [15:51:24]MH_I2C_Read... [15:51:24]*** Stop cut motor [15:51:24]*** Cut end [15:51:24]Read from MH i2c: 01 07 00 [15:51:24]MH_I2C_Read... [15:51:24]Read from MH i2c: 01 07 00 67 48 00 00 00 00 00 FF 0F C4 [15:51:24]process_action close_receipt done [15:51:24]requested_data is exist [15:51:24]produce_requested_data [15:51:24]requested_item fm.sn is exist - process it [15:51:24]wFMCommunicate request_size=4 [15:51:24]MH_SAM_APDU [15:51:24]CAPDU: 80 11 00 00 [15:51:24]Write to MH i2c: E2 08 00 68 48 80 11 00 00 00 00 00 00 2A [15:51:24]Write i2c OK [15:51:24]MH_I2C_Read... [15:51:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:51:24]Read from MH i2c: E2 [15:51:24]MH_I2C_Read... [15:51:24]Read from MH i2c: E2 17 00 [15:51:24]MH_I2C_Read... [15:51:24]Read from MH i2c: E2 17 00 68 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 75 [15:51:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:51:24]wFMCommunicate OK [15:51:24]requested_item fd.num is exist - process it [15:51:24]SAM_PROTO_GetFieldsCounters [15:51:24]wFMCommunicate request_size=4 [15:51:24]MH_SAM_APDU [15:51:24]CAPDU: 80 13 00 00 [15:51:24]Write to MH i2c: E2 08 00 69 48 80 13 00 00 00 00 00 00 2D [15:51:24]Write i2c OK [15:51:24]MH_I2C_Read... [15:51:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:51:24]Read from MH i2c: E2 [15:51:24]MH_I2C_Read... [15:51:24]Read from MH i2c: E2 62 00 [15:51:24]MH_I2C_Read... [15:51:24]Read from MH i2c: E2 62 00 69 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 2B 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 70 [15:51:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 2B 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:51:24]wFMCommunicate OK [15:51:24]SAM_PROTO_GetFieldsCounters done [15:51:24]requested_item shift.num is exist - process it [15:51:24]requested_item shift.opened is exist - process it [15:51:24]req_shift_opened [15:51:24]FM_GetShiftState [15:51:24]SAM_PROTO_GetShiftState [15:51:24]wFMCommunicate request_size=4 [15:51:24]MH_SAM_APDU [15:51:24]CAPDU: 80 13 01 00 [15:51:24]Write to MH i2c: E2 08 00 6A 48 80 13 01 00 00 00 00 00 2F [15:51:24]Write i2c OK [15:51:24]MH_I2C_Read... [15:51:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:51:24]Read from MH i2c: E2 [15:51:24]MH_I2C_Read... [15:51:24]Read from MH i2c: E2 0E 00 [15:51:24]MH_I2C_Read... [15:51:24]Read from MH i2c: E2 0E 00 6A 48 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 0A [15:51:24]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [15:51:24]wFMCommunicate OK [15:51:24]SAM_PROTO_GetShiftState done [15:51:24]FM_GetShiftState done [15:51:24]req_shift_opened done [15:51:24]requested_item shift.open_date is exist - process it [15:51:24]req_shift_open_date [15:51:24]req_shift_open_date done [15:51:24]produce_requested_data done [15:51:24]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68395,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [15:51:24]process_action_free close_receipt [15:51:24]json_value_free [15:51:24]json_value_free done [15:51:24]process_json_proto returns [15:51:24]Send response to host [15:51:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68395,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [15:51:24]free response buf [15:51:24]execute_script done [15:51:24]execute_script returns [15:51:24]free content buf [15:51:24]Sock 7.Close socket [15:51:24]Sock 7.Thread stoped [15:51:24]accept exits with 6 [15:51:24]New connection [15:51:24]New thread 3066686820 created [15:51:24]Thread 3066543460 joined [15:51:24]Waiting for new connection... [15:51:24] Sock 6.Parse request [15:51:24]Sock 6.Check first char [15:51:24]Sock 6.First char is OK [15:51:24]request: POST /json_proto HTTP/1.0 [15:51:24]Method: POST [15:51:24]URL: /json_proto [15:51:24]Method is POST - this is cgi request [15:51:24]url: /json_proto [15:51:24]query_string will be loaded in cgi processing [15:51:24]execute_cgi json_proto POST (null) [15:51:24]execute_cgi path=json_proto method=POST [15:51:24]POST find Content-Length [15:51:24]Host: 172.17.36.132:8080 [15:51:24]Content-Length: 648 [15:51:24]Content-Type: application/json [15:51:24] [15:51:24]POST finish read [15:51:24]Found Content-Length = 648 [15:51:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706494", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 130.000, "sum" : 9477.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 9477.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:51:24]execute_script... [15:51: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)706494", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 130.000, "sum" : 9477.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 9477.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:51:24]POST & json_proto [15:51:24]process_json_proto [15:51:24]json parsed OK: [15:51:24]protocol is kg_v1.0 [15:51:24]action value=close_receipt [15:51:24]process_action close_receipt [15:51:24]cmd_close_receipt [15:51:24]MH_GetDate [15:51:24]Write to MH i2c: F0 00 00 6B 48 A2 [15:51:24]Write i2c OK [15:51:24]MH_I2C_Read... [15:51:24]Read from MH i2c: F0 [15:51:24]MH_I2C_Read... [15:51:24]Read from MH i2c: F0 09 00 [15:51:24]MH_I2C_Read... [15:51:24]Read from MH i2c: F0 09 00 6B 48 00 82 E6 5D 66 B2 22 B0 64 BE [15:51:24]GetLastDocTimeStamp 1717429886 [15:51:24]current date 1717429890 [15:51:24]FM_GetShiftState [15:51:24]SAM_PROTO_GetShiftState [15:51:24]wFMCommunicate request_size=4 [15:51:24]MH_SAM_APDU [15:51:24]CAPDU: 80 13 01 00 [15:51:24]Write to MH i2c: E2 08 00 6C 48 80 13 01 00 00 00 00 00 31 [15:51:24]Write i2c OK [15:51:24]MH_I2C_Read... [15:51:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:51:24]Read from MH i2c: E2 [15:51:24]MH_I2C_Read... [15:51:24]Read from MH i2c: E2 0E 00 [15:51:24]MH_I2C_Read... [15:51:24]Read from MH i2c: E2 0E 00 6C 48 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 0C [15:51:24]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [15:51:24]wFMCommunicate OK [15:51:24]SAM_PROTO_GetShiftState done [15:51:24]FM_GetShiftState done [15:51:24]opened in 1717378033 [15:51:24]opened+sec_in_day 1717464433 [15:51:24]quantity*price = 947700 [15:51:24]sum+1 = 947701 [15:51:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 9477.00 НСП 1% : 83.87 НДС 12% : 1006.41 Наличными: 9477.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 142 03.06.2024 15:51 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68396 ФПД: 166664700023934 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T155130&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68396&fm=166664700023934&tin=02508201610067®Number=0000000000098096&sum=947700 [15:51:26]StoreToDocumentArchive [15:51:26]shift 324 fd 68396 [15:51:26]save to /storage/0324/doc_00068396 [15:51:26]save last doc name /storage/0324/doc_00068396 to /storage/kkm_last_doc_name [15:51:26]save OK [15:51:26]Clear old archive folders... [15:51:26]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:51:26]tlvbuf is 0025FC40 [15:51:26]SAM_PROTO_ClearQueue [15:51:26]wFMCommunicate request_size=4 [15:51:26]MH_SAM_APDU [15:51:26]CAPDU: 80 09 00 00 [15:51:26]Write to MH i2c: E2 08 00 79 48 80 09 00 00 00 00 00 00 33 [15:51:26]Write i2c OK [15:51:26]MH_I2C_Read... [15:51:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:51:26]Read from MH i2c: E2 [15:51:26]MH_I2C_Read... [15:51:26]Read from MH i2c: E2 03 00 [15:51:26]MH_I2C_Read... [15:51:26]Read from MH i2c: E2 03 00 79 48 00 90 00 35 [15:51:26]RAPDU: 90 00 [15:51:26]wFMCommunicate OK [15:51:26]SAM_PROTO_ClearQueue done [15:51:26]KKMCreateOFDPacket [15:51:26]OFDProtocolAddRootSTLVToBuf [15:51:26]FM_MakeSignedData [15:51:26]FM_MakeSignedData [15:51:26]SAM_PROTO_SignData [15:51:26]wFMCommunicate request_size=4 [15:51:26]MH_SAM_APDU [15:51:26]CAPDU: 80 0D 01 02 [15:51:26]Write to MH i2c: E2 08 00 7A 48 80 0D 01 02 00 00 00 00 3B [15:51:26]Write i2c OK [15:51:26]MH_I2C_Read... [15:51:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:51:26]Read from MH i2c: E2 [15:51:26]MH_I2C_Read... [15:51:26]Read from MH i2c: E2 03 00 [15:51:26]MH_I2C_Read... [15:51:26]Read from MH i2c: E2 03 00 7A 48 00 90 00 36 [15:51:26]RAPDU: 90 00 [15:51:26]wFMCommunicate OK [15:51:26]wFMCommunicate request_size=255 [15:51:26]MH_SAM_APDU [15:51: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 34 FF 03 08 00 03 D0 FB 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 F4 75 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 75 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 89 01 00 00 00 07 04 06 00 F4 75 0E 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 82 E6 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 2C 0B 01 00 35 04 06 00 [15:51:26]Write to MH i2c: E2 02 01 7B 48 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 34 FF 03 08 00 03 D0 FB 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 F4 75 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 75 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 89 01 00 00 00 07 04 06 00 F4 75 0E 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 82 E6 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 2C 0B 01 00 35 04 06 00 00 00 09 [15:51:26]Write i2c OK [15:51:26]MH_I2C_Read... [15:51:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:51:26]Read from MH i2c: E2 [15:51:26]MH_I2C_Read... [15:51:26]Read from MH i2c: E2 03 00 [15:51:26]MH_I2C_Read... [15:51:26]Read from MH i2c: E2 03 00 7B 48 00 90 00 37 [15:51:26]RAPDU: 90 00 [15:51:26]wFMCommunicate OK [15:51:26]wFMCommunicate request_size=11 [15:51:26]MH_SAM_APDU [15:51:26]CAPDU: 80 0D 02 02 06 97 94 A6 3D D4 7E [15:51:26]Write to MH i2c: E2 0E 00 7C 48 80 0D 02 02 06 00 97 94 A6 3D D4 7E 00 00 AA [15:51:26]Write i2c OK [15:51:26]MH_I2C_Read... [15:51:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:51:26]Read from MH i2c: E2 [15:51:26]MH_I2C_Read... [15:51:26]Read from MH i2c: E2 03 00 [15:51:26]MH_I2C_Read... [15:51:26]Read from MH i2c: E2 03 00 7C 48 00 90 00 38 [15:51:26]RAPDU: 90 00 [15:51:26]wFMCommunicate OK [15:51:26]wFMCommunicate request_size=4 [15:51:26]MH_SAM_APDU [15:51:26]CAPDU: 80 0D 03 02 [15:51:26]Write to MH i2c: E2 08 00 7D 48 80 0D 03 02 00 00 00 00 40 [15:51:26]Write i2c OK [15:51:26]MH_I2C_Read... [15:51:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:51:26]Read from MH i2c: E2 [15:51:26]MH_I2C_Read... [15:51:26]Read from MH i2c: E2 0B 00 [15:51:26]MH_I2C_Read... [15:51:26]Read from MH i2c: E2 0B 00 7D 48 00 D3 46 B2 B4 1B 11 DE 8E 90 00 58 [15:51:26]RAPDU: D3 46 B2 B4 1B 11 DE 8E 90 00 [15:51:26]wFMCommunicate OK [15:51:26]SAM_PROTO_SignData done [15:51:26]FM_MakeSignedData done [15:51:26]CreateOFDProtocolMessage [15:51:26]wFMCommunicate request_size=4 [15:51:26]MH_SAM_APDU [15:51:26]CAPDU: 80 11 00 00 [15:51:26]Write to MH i2c: E2 08 00 7E 48 80 11 00 00 00 00 00 00 40 [15:51:26]Write i2c OK [15:51:26]MH_I2C_Read... [15:51:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:51:26]Read from MH i2c: E2 [15:51:26]MH_I2C_Read... [15:51:26]Read from MH i2c: E2 17 00 [15:51:26]MH_I2C_Read... [15:51:26]Read from MH i2c: E2 17 00 7E 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 8B [15:51:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:51:26]wFMCommunicate OK [15:51:26]CreateOFDProtocolMessage done [15:51:26]OFDSenderStorePacket 68396 [15:51:26]StoreOFDPacket docnum=68396 [15:51:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 EF AE 08 01 B8 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 34 FF 03 08 00 03 D0 FB 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 F4 75 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 75 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 89 01 00 00 00 07 04 06 00 F4 75 0E 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 82 E6 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 2C 0B 01 00 35 04 06 00 97 94 A6 3D D4 7E D3 46 B2 B4 1B 11 DE 8E [15:51:26]CheckFolder [15:51:26]dirname=/storage/ofd_packets [15:51:26]CheckFolder done [15:51:26]ProducePacketName [15:51:26]name=ofd_packets/00068396 [15:51:26]NVStorageSaveData ofd_packets/00068396 [15:51:26]File name is /storage/ofd_packets/00068396 [15:51:26]Write 302 bytes [15:51:26]NVStorageSaveData done [15:51:26]OFDSenderStorePacket done [15:51:26]KKMCreateOFDPacket done [15:51:26]NVStorageSaveData kkm_last_timestamp [15:51:26]File name is /storage/kkm_last_timestamp [15:51:26]Write 4 bytes [15:51:26]NVStorageSaveData done [15:51:26]ExternCall_PrintAddStr [15:51:26]wPrintStart [15:51:26]Write to MH i2c: 01 00 00 7F 48 C7 [15:51:26]Write i2c OK [15:51:26]MH_I2C_Read... [15:51:26]Read from MH i2c: 01 [15:51:26]MH_I2C_Read... [15:51:26]Read from MH i2c: 01 07 00 [15:51:26]MH_I2C_Read... [15:51:26]Read from MH i2c: 01 07 00 7F 48 00 00 00 00 00 FF 0F DC [15:51:26]RasterBufferAndPrint [15:51:26]line Счет N : (1)706494 [15:51:26]line ИНН: 02508201610067 [15:51:26]line Контрольно-Кассовый Чек [15:51:26]line ПРОДАЖА [15:51:26]line ТРК (МРК, ГНК) : 21 [15:51:26]line Товар: 2710194210 [15:51:26]line ДТ(л)-К-4 [15:51:26]line 130.000 * 72.90 [15:51:26]line = 9477.00 [15:51:26]line НДС 12% НСП 1% [15:51:26]line > о реализуемом товаре [15:51:26]line ИТОГО: 9477.00 [15:51:26]line НСП 1% : 83.87 [15:51:26]line НДС 12% : 1006.41 [15:51:26]line Наличными: 9477.00 [15:51:26]line Безнал.: 0.00 [15:51:26]line Место: АЗС № 62 "Партнер Нефть" [15:51:26]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [15:51:26]line СНО: Общий режим [15:51:26]line Чек 142 03.06.2024 15:51 [15:51:26]line Смена: 324 ФФД: 1.0 [15:51:26]line ЗНМ: 0300000181 [15:51:26]line РНМ: 0000000000098096 [15:51:26]line Версия ККМ: 001 [15:51:26]line ФМ: 0000000000965400 [15:51:26]line ФД: 68396 [15:51:26]line ФПД: 166664700023934 [15:51:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T155130&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68396&fm=166664700023934&tin=02508201610067®Number=0000000000098096&sum=947700 [15:51:27]OFD Sender: Processing packet 68396 [packets to send 26, broken 25] [15:51:27]ProducePacketName [15:51:27]name=ofd_packets/00068396 [15:51:27]OFD Sender: To server: pG, [15:51:27]CommunicateWithHost lk.salyk.kg:30040 [15:51:27]ConnectInit lk.salyk.kg [15:51:27]written 0, free lines is 4095 [15:51:27]Connected sock=7 [15:51:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 EF AE 08 01 B8 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 34 FF 03 08 00 03 D0 FB 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 F4 75 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 75 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 89 01 00 00 00 07 04 06 00 F4 75 0E 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 82 E6 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 2C 0B 01 00 35 04 06 00 97 94 A6 3D D4 7E D3 46 B2 B4 1B 11 DE 8E [15:51:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 B4 25 47 00 65 F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 2C 0B 01 00 F4 03 04 00 7E 8D 5D 66 B6 04 01 00 00 AF D5 91 E4 69 B8 40 13 [15:51:27]CommunicateWithHost err = 0 [15:51:27]CheckOFDResponse [15:51:27]1017 (14) - 77093643461234 [15:51:27]1041 (16) - 0000000000965400 [15:51:27]1040 (4) - 68396 [15:51:27]1012 (4) - 03.06.2024 09:31 [15:51:27]1206 (1) - 0 [15:51:27]OFD Sender: Remove packet 68396 [15:51:27]ProducePacketName [15:51:27]name=ofd_packets/00068396 [15:51:27]NVStorageDeleteData [15:51:27]Write to MH i2c: 01 00 00 A7 48 EF [15:51:27]Write i2c OK [15:51:27]MH_I2C_Read... [15:51:27]Read from MH i2c: 01 [15:51:27]MH_I2C_Read... [15:51:27]Read from MH i2c: 01 07 00 [15:51:27]MH_I2C_Read... [15:51:27]Read from MH i2c: 01 07 00 A7 48 00 00 00 00 00 2B 0D 2E [15:51:27]RasterBufferAndPrint [15:51:27]line [15:51:27]line [15:51:27]line [15:51:27]line [15:51:27]line [15:51:27]written 0, free lines is 3385 [15:51:27]MH_Cut [15:51:27]Write to MH i2c: D1 01 00 AE 48 01 C8 [15:51:27]Write i2c OK [15:51:27]MH_I2C_Read... [15:51:27]Read from MH i2c: D1 [15:51:27]MH_I2C_Read... [15:51:27]Read from MH i2c: D1 01 00 [15:51:27]MH_I2C_Read... [15:51:27]Read from MH i2c: D1 01 00 AE 48 00 C7 [15:51:27]Write to MH i2c: 01 00 00 AF 48 F7 [15:51:27]Write i2c OK [15:51:27]MH_I2C_Read... [15:51:27]OFD Sender: No OFD packet to send [15:51:28]*** Cut start [15:51:28]*** Partial cut [15:51:28]*** CUTSNS_PIN = 1 [15:51:28]*** CUTSNS_PIN = 0 [15:51:28]*** Brake cut motor [15:51:28]Read from MH i2c: 01 [15:51:28]MH_I2C_Read... [15:51:28]*** Stop cut motor [15:51:28]*** Cut end [15:51:28]Read from MH i2c: 01 07 00 [15:51:28]MH_I2C_Read... [15:51:28]Read from MH i2c: 01 07 00 AF 48 00 00 00 00 00 FF 0F 0C [15:51:28]process_action close_receipt done [15:51:28]requested_data is exist [15:51:28]produce_requested_data [15:51:28]requested_item fm.sn is exist - process it [15:51:28]wFMCommunicate request_size=4 [15:51:28]MH_SAM_APDU [15:51:28]CAPDU: 80 11 00 00 [15:51:28]Write to MH i2c: E2 08 00 B0 48 80 11 00 00 00 00 00 00 72 [15:51:28]Write i2c OK [15:51:28]MH_I2C_Read... [15:51:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:51:28]Read from MH i2c: E2 [15:51:28]MH_I2C_Read... [15:51:28]Read from MH i2c: E2 17 00 [15:51:28]MH_I2C_Read... [15:51:28]Read from MH i2c: E2 17 00 B0 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 BD [15:51:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:51:28]wFMCommunicate OK [15:51:28]requested_item fd.num is exist - process it [15:51:28]SAM_PROTO_GetFieldsCounters [15:51:28]wFMCommunicate request_size=4 [15:51:28]MH_SAM_APDU [15:51:28]CAPDU: 80 13 00 00 [15:51:28]Write to MH i2c: E2 08 00 B1 48 80 13 00 00 00 00 00 00 75 [15:51:28]Write i2c OK [15:51:28]MH_I2C_Read... [15:51:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:51:28]Read from MH i2c: E2 [15:51:29]MH_I2C_Read... [15:51:29]Read from MH i2c: E2 62 00 [15:51:29]MH_I2C_Read... [15:51:29]Read from MH i2c: E2 62 00 B1 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 2C 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 BC [15:51:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 2C 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:51:29]wFMCommunicate OK [15:51:29]SAM_PROTO_GetFieldsCounters done [15:51:29]requested_item shift.num is exist - process it [15:51:29]requested_item shift.opened is exist - process it [15:51:29]req_shift_opened [15:51:29]FM_GetShiftState [15:51:29]SAM_PROTO_GetShiftState [15:51:29]wFMCommunicate request_size=4 [15:51:29]MH_SAM_APDU [15:51:29]CAPDU: 80 13 01 00 [15:51:29]Write to MH i2c: E2 08 00 B2 48 80 13 01 00 00 00 00 00 77 [15:51:29]Write i2c OK [15:51:29]MH_I2C_Read... [15:51:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:51:29]Read from MH i2c: E2 [15:51:29]MH_I2C_Read... [15:51:29]Read from MH i2c: E2 0E 00 [15:51:29]MH_I2C_Read... [15:51:29]Read from MH i2c: E2 0E 00 B2 48 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 52 [15:51:29]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [15:51:29]wFMCommunicate OK [15:51:29]SAM_PROTO_GetShiftState done [15:51:29]FM_GetShiftState done [15:51:29]req_shift_opened done [15:51:29]requested_item shift.open_date is exist - process it [15:51:29]req_shift_open_date [15:51:29]req_shift_open_date done [15:51:29]produce_requested_data done [15:51:29]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68396,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [15:51:29]process_action_free close_receipt [15:51:29]json_value_free [15:51:29]json_value_free done [15:51:29]process_json_proto returns [15:51:29]Send response to host [15:51:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68396,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [15:51:29]free response buf [15:51:29]execute_script done [15:51:29]execute_script returns [15:51:29]free content buf [15:51:29]Sock 6.Close socket [15:51:29]Sock 6.Thread stoped [15:51:32]OFD Sender: No OFD packet to send [15:51:37]OFD Sender: No OFD packet to send [15:51:42]OFD Sender: No OFD packet to send [15:51:47]OFD Sender: No OFD packet to send [15:51:52]OFD Sender: No OFD packet to send [15:51:57]OFD Sender: No OFD packet to send [15:52:01]accept exits with 5 [15:52:01]New connection [15:52:01]New thread 3066543460 created [15:52:01]Thread 3066686820 joined [15:52:01]Waiting for new connection... [15:52:01] Sock 5.Parse request [15:52:01]Sock 5.Check first char [15:52:01]Sock 5.First char is OK [15:52:01]request: POST /json_proto HTTP/1.0 [15:52:01]Method: POST [15:52:01]URL: /json_proto [15:52:01]Method is POST - this is cgi request [15:52:01]url: /json_proto [15:52:01]query_string will be loaded in cgi processing [15:52:01]execute_cgi json_proto POST (null) [15:52:01]execute_cgi path=json_proto method=POST [15:52:01]POST find Content-Length [15:52:01]Host: 172.17.36.132:8080 [15:52:01]Content-Length: 687 [15:52:01]Content-Type: application/json [15:52:01] [15:52:01]POST finish read [15:52:01]Found Content-Length = 687 [15:52:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706495", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 54.870, "sum" : 4000.02, "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" ] } } [15:52:01]execute_script... [15: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)706495", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 54.870, "sum" : 4000.02, "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" ] } } [15:52:01]POST & json_proto [15:52:01]process_json_proto [15:52:01]json parsed OK: [15:52:01]protocol is kg_v1.0 [15:52:01]action value=close_receipt [15:52:01]process_action close_receipt [15:52:01]cmd_close_receipt [15:52:01]MH_GetDate [15:52:01]Write to MH i2c: F0 00 00 B3 48 EA [15:52:01]Write i2c OK [15:52:01]MH_I2C_Read... [15:52:01]Read from MH i2c: F0 [15:52:01]MH_I2C_Read... [15:52:01]Read from MH i2c: F0 09 00 [15:52:01]MH_I2C_Read... [15:52:01]Read from MH i2c: F0 09 00 B3 48 00 A7 E6 5D 66 B2 22 B0 64 2B [15:52:01]GetLastDocTimeStamp 1717429890 [15:52:01]current date 1717429927 [15:52:01]FM_GetShiftState [15:52:01]SAM_PROTO_GetShiftState [15:52:01]wFMCommunicate request_size=4 [15:52:01]MH_SAM_APDU [15:52:01]CAPDU: 80 13 01 00 [15:52:01]Write to MH i2c: E2 08 00 B4 48 80 13 01 00 00 00 00 00 79 [15:52:01]Write i2c OK [15:52:01]MH_I2C_Read... [15:52:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:52:01]Read from MH i2c: E2 [15:52:01]MH_I2C_Read... [15:52:01]Read from MH i2c: E2 0E 00 [15:52:01]MH_I2C_Read... [15:52:01]Read from MH i2c: E2 0E 00 B4 48 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 54 [15:52:01]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [15:52:01]wFMCommunicate OK [15:52:01]SAM_PROTO_GetShiftState done [15:52:01]FM_GetShiftState done [15:52:01]opened in 1717378033 [15:52:01]opened+sec_in_day 1717464433 [15:52:01]quantity*price = 400002 [15:52:01]sum+1 = 400003 [15:52:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 4000.00 Внесено: 4000.00 СДАЧА: 0.00 НСП 1% : 35.40 НДС 12% : 424.78 Наличными: 4000.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 143 03.06.2024 15:52 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68397 ФПД: 87012470889746 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T155207&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68397&fm=87012470889746&tin=02508201610067®Number=0000000000098096&sum=400000 [15:52:02]StoreToDocumentArchive [15:52:02]shift 324 fd 68397 [15:52:02]save to /storage/0324/doc_00068397 [15:52:02]save last doc name /storage/0324/doc_00068397 to /storage/kkm_last_doc_name [15:52:02]save OK [15:52:02]Clear old archive folders... [15:52:02]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:52:02]tlvbuf is 001BEAB0 [15:52:02]SAM_PROTO_ClearQueue [15:52:02]wFMCommunicate request_size=4 [15:52:02]MH_SAM_APDU [15:52:02]CAPDU: 80 09 00 00 [15:52:02]Write to MH i2c: E2 08 00 C1 48 80 09 00 00 00 00 00 00 7B [15:52:02]Write i2c OK [15:52:02]MH_I2C_Read... [15:52:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:52:02]Read from MH i2c: E2 [15:52:02]MH_I2C_Read... [15:52:02]Read from MH i2c: E2 03 00 [15:52:02]MH_I2C_Read... [15:52:02]Read from MH i2c: E2 03 00 C1 48 00 90 00 7D [15:52:02]RAPDU: 90 00 [15:52:02]wFMCommunicate OK [15:52:02]SAM_PROTO_ClearQueue done [15:52:02]KKMCreateOFDPacket [15:52:02]OFDProtocolAddRootSTLVToBuf [15:52:02]FM_MakeSignedData [15:52:02]FM_MakeSignedData [15:52:02]SAM_PROTO_SignData [15:52:02]wFMCommunicate request_size=4 [15:52:02]MH_SAM_APDU [15:52:02]CAPDU: 80 0D 01 02 [15:52:02]Write to MH i2c: E2 08 00 C2 48 80 0D 01 02 00 00 00 00 83 [15:52:02]Write i2c OK [15:52:02]MH_I2C_Read... [15:52:02]Read from MH i2c: E2 [15:52:02]MH_I2C_Read... [15:52:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:52:02]Read from MH i2c: E2 03 00 [15:52:02]MH_I2C_Read... [15:52:02]Read from MH i2c: E2 03 00 C2 48 00 90 00 7E [15:52:02]RAPDU: 90 00 [15:52:02]wFMCommunicate OK [15:52:02]wFMCommunicate request_size=255 [15:52:02]MH_SAM_APDU [15: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 34 FF 03 08 00 03 56 D6 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 82 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 EE 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 8F 00 00 00 F4 03 04 00 A7 E6 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 2D 0B 01 00 35 04 06 00 [15:52:02]Write to MH i2c: E2 02 01 C3 48 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 34 FF 03 08 00 03 56 D6 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 82 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 EE 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 8F 00 00 00 F4 03 04 00 A7 E6 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 2D 0B 01 00 35 04 06 00 00 00 3B [15:52:02]Write i2c OK [15:52:02]MH_I2C_Read... [15:52:02]OFD Sender: No OFD packet to send [15:52:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:52:02]Read from MH i2c: E2 [15:52:02]MH_I2C_Read... [15:52:02]Read from MH i2c: E2 03 00 [15:52:02]MH_I2C_Read... [15:52:02]Read from MH i2c: E2 03 00 C3 48 00 90 00 7F [15:52:02]RAPDU: 90 00 [15:52:02]wFMCommunicate OK [15:52:02]wFMCommunicate request_size=11 [15:52:02]MH_SAM_APDU [15:52:02]CAPDU: 80 0D 02 02 06 4F 23 2B 6B 1D 12 [15:52:02]Write to MH i2c: E2 0E 00 C4 48 80 0D 02 02 06 00 4F 23 2B 6B 1D 12 00 00 C9 [15:52:02]Write i2c OK [15:52:02]MH_I2C_Read... [15:52:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:52:02]Read from MH i2c: E2 [15:52:02]MH_I2C_Read... [15:52:02]Read from MH i2c: E2 03 00 [15:52:02]MH_I2C_Read... [15:52:02]Read from MH i2c: E2 03 00 C4 48 00 90 00 80 [15:52:02]RAPDU: 90 00 [15:52:02]wFMCommunicate OK [15:52:02]wFMCommunicate request_size=4 [15:52:02]MH_SAM_APDU [15:52:02]CAPDU: 80 0D 03 02 [15:52:02]Write to MH i2c: E2 08 00 C5 48 80 0D 03 02 00 00 00 00 88 [15:52:02]Write i2c OK [15:52:02]MH_I2C_Read... [15:52:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:52:02]Read from MH i2c: E2 [15:52:02]MH_I2C_Read... [15:52:02]Read from MH i2c: E2 0B 00 [15:52:02]MH_I2C_Read... [15:52:02]Read from MH i2c: E2 0B 00 C5 48 00 E4 B8 6F 12 AD 32 99 D3 90 00 F1 [15:52:02]RAPDU: E4 B8 6F 12 AD 32 99 D3 90 00 [15:52:02]wFMCommunicate OK [15:52:02]SAM_PROTO_SignData done [15:52:02]FM_MakeSignedData done [15:52:02]CreateOFDProtocolMessage [15:52:02]wFMCommunicate request_size=4 [15:52:02]MH_SAM_APDU [15:52:02]CAPDU: 80 11 00 00 [15:52:02]Write to MH i2c: E2 08 00 C6 48 80 11 00 00 00 00 00 00 88 [15:52:02]Write i2c OK [15:52:02]MH_I2C_Read... [15:52:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:52:03]Read from MH i2c: E2 [15:52:03]MH_I2C_Read... [15:52:03]Read from MH i2c: E2 17 00 [15:52:03]MH_I2C_Read... [15:52:03]Read from MH i2c: E2 17 00 C6 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 D3 [15:52:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:52:03]wFMCommunicate OK [15:52:03]CreateOFDProtocolMessage done [15:52:03]OFDSenderStorePacket 68397 [15:52:03]StoreOFDPacket docnum=68397 [15:52:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 3E 97 08 01 35 47 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 34 FF 03 08 00 03 56 D6 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 82 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 EE 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 8F 00 00 00 F4 03 04 00 A7 E6 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 2D 0B 01 00 35 04 06 00 4F 23 2B 6B 1D 12 E4 B8 6F 12 AD 32 99 D3 [15:52:03]CheckFolder [15:52:03]dirname=/storage/ofd_packets [15:52:03]CheckFolder done [15:52:03]ProducePacketName [15:52:03]name=ofd_packets/00068397 [15:52:03]NVStorageSaveData ofd_packets/00068397 [15:52:03]File name is /storage/ofd_packets/00068397 [15:52:03]Write 302 bytes [15:52:03]NVStorageSaveData done [15:52:03]OFDSenderStorePacket done [15:52:03]KKMCreateOFDPacket done [15:52:03]NVStorageSaveData kkm_last_timestamp [15:52:03]File name is /storage/kkm_last_timestamp [15:52:03]Write 4 bytes [15:52:03]NVStorageSaveData done [15:52:03]ExternCall_PrintAddStr [15:52:03]wPrintStart [15:52:03]Write to MH i2c: 01 00 00 C7 48 0F [15:52:03]Write i2c OK [15:52:03]MH_I2C_Read... [15:52:03]Read from MH i2c: 01 [15:52:03]MH_I2C_Read... [15:52:03]Read from MH i2c: 01 07 00 [15:52:03]MH_I2C_Read... [15:52:03]Read from MH i2c: 01 07 00 C7 48 00 00 00 00 00 FF 0F 24 [15:52:03]RasterBufferAndPrint [15:52:03]line Счет N : (1)706495 [15:52:03]line ИНН: 02508201610067 [15:52:03]line Контрольно-Кассовый Чек [15:52:03]line ПРОДАЖА [15:52:03]line ТРК (МРК, ГНК) : 51 [15:52:03]line Товар: 2710194210 [15:52:03]line ДТ(л)-К-4 [15:52:03]line 54.870 * 72.90 [15:52:03]line = 4000.02 [15:52:03]line НДС 12% НСП 1% [15:52:03]line > о реализуемом товаре [15:52:03]line ОКРУГЛЕНИЕ: -0.02 [15:52:03]line ИТОГО: 4000.00 [15:52:03]line Внесено: 4000.00 [15:52:03]line СДАЧА: 0.00 [15:52:03]line НСП 1% : 35.40 [15:52:03]line НДС 12% : 424.78 [15:52:03]line Наличными: 4000.00 [15:52:03]line Безнал.: 0.00 [15:52:03]line Место: АЗС № 62 "Партнер Нефть" [15:52:03]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [15:52:03]line СНО: Общий режим [15:52:03]line Чек 143 03.06.2024 15:52 [15:52:03]line Смена: 324 ФФД: 1.0 [15:52:03]line ЗНМ: 0300000181 [15:52:03]line РНМ: 0000000000098096 [15:52:03]line Версия ККМ: 001 [15:52:03]line ФМ: 0000000000965400 [15:52:03]line ФД: 68397 [15:52:03]line ФПД: 87012470889746 [15:52:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T155207&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68397&fm=87012470889746&tin=02508201610067®Number=0000000000098096&sum=400000 [15:52:03]OFD Sender: Processing packet 68397 [packets to send 26, broken 25] [15:52:03]ProducePacketName [15:52:03]name=ofd_packets/00068397 [15:52:03]OFD Sender: To server: pG, [15:52:03]CommunicateWithHost lk.salyk.kg:30040 [15:52:03]ConnectInit lk.salyk.kg [15:52:03]written 0, free lines is 4095 [15:52:03]Connected sock=7 [15:52:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 3E 97 08 01 35 47 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 34 FF 03 08 00 03 56 D6 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 82 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 EE 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 8F 00 00 00 F4 03 04 00 A7 E6 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 2D 0B 01 00 35 04 06 00 4F 23 2B 6B 1D 12 E4 B8 6F 12 AD 32 99 D3 [15:52:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 62 A3 47 00 4A 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 2D 0B 01 00 F4 03 04 00 A2 8D 5D 66 B6 04 01 00 00 1E AF 0C 79 EA 49 65 96 [15:52:03]CommunicateWithHost err = 0 [15:52:03]CheckOFDResponse [15:52:03]1017 (14) - 77093643461234 [15:52:03]1041 (16) - 0000000000965400 [15:52:03]1040 (4) - 68397 [15:52:03]1012 (4) - 03.06.2024 09:32 [15:52:03]1206 (1) - 0 [15:52:03]OFD Sender: Remove packet 68397 [15:52:03]ProducePacketName [15:52:03]name=ofd_packets/00068397 [15:52:03]NVStorageDeleteData [15:52:03]Write to MH i2c: 01 00 00 F2 48 3A [15:52:03]Write i2c OK [15:52:03]MH_I2C_Read... [15:52:03]Read from MH i2c: 01 [15:52:03]MH_I2C_Read... [15:52:03]Read from MH i2c: 01 07 00 [15:52:03]MH_I2C_Read... [15:52:03]Read from MH i2c: 01 07 00 F2 48 00 00 00 00 00 D9 0C 26 [15:52:03]RasterBufferAndPrint [15:52:03]line [15:52:03]line [15:52:03]line [15:52:03]line [15:52:03]line [15:52:03]written 0, free lines is 3296 [15:52:03]MH_Cut [15:52:03]Write to MH i2c: D1 01 00 F9 48 01 13 [15:52:03]Write i2c OK [15:52:03]MH_I2C_Read... [15:52:03]Read from MH i2c: D1 [15:52:03]MH_I2C_Read... [15:52:03]Read from MH i2c: D1 01 00 [15:52:03]MH_I2C_Read... [15:52:03]Read from MH i2c: D1 01 00 F9 48 00 12 [15:52:03]Write to MH i2c: 01 00 00 FA 48 42 [15:52:03]Write i2c OK [15:52:03]MH_I2C_Read... [15:52:04]OFD Sender: No OFD packet to send [15:52:04]*** Cut start [15:52:04]*** Partial cut [15:52:04]*** CUTSNS_PIN = 1 [15:52:04]*** CUTSNS_PIN = 0 [15:52:04]*** Brake cut motor [15:52:05]Read from MH i2c: 01 [15:52:05]MH_I2C_Read... [15:52:05]*** Stop cut motor [15:52:05]*** Cut end [15:52:05]Read from MH i2c: 01 07 00 [15:52:05]MH_I2C_Read... [15:52:05]Read from MH i2c: 01 07 00 FA 48 00 00 00 00 00 FF 0F 57 [15:52:05]process_action close_receipt done [15:52:05]requested_data is exist [15:52:05]produce_requested_data [15:52:05]requested_item fm.sn is exist - process it [15:52:05]wFMCommunicate request_size=4 [15:52:05]MH_SAM_APDU [15:52:05]CAPDU: 80 11 00 00 [15:52:05]Write to MH i2c: E2 08 00 FB 48 80 11 00 00 00 00 00 00 BD [15:52:05]Write i2c OK [15:52:05]MH_I2C_Read... [15:52:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:52:05]Read from MH i2c: E2 [15:52:05]MH_I2C_Read... [15:52:05]Read from MH i2c: E2 17 00 [15:52:05]MH_I2C_Read... [15:52:05]Read from MH i2c: E2 17 00 FB 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 08 [15:52:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:52:05]wFMCommunicate OK [15:52:05]requested_item fd.num is exist - process it [15:52:05]SAM_PROTO_GetFieldsCounters [15:52:05]wFMCommunicate request_size=4 [15:52:05]MH_SAM_APDU [15:52:05]CAPDU: 80 13 00 00 [15:52:05]Write to MH i2c: E2 08 00 FC 48 80 13 00 00 00 00 00 00 C0 [15:52:05]Write i2c OK [15:52:05]MH_I2C_Read... [15:52:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:52:05]Read from MH i2c: E2 [15:52:05]MH_I2C_Read... [15:52:05]Read from MH i2c: E2 62 00 [15:52:05]MH_I2C_Read... [15:52:05]Read from MH i2c: E2 62 00 FC 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 2D 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 0B [15:52:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 2D 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:52:05]wFMCommunicate OK [15:52:05]SAM_PROTO_GetFieldsCounters done [15:52:05]requested_item shift.num is exist - process it [15:52:05]requested_item shift.opened is exist - process it [15:52:05]req_shift_opened [15:52:05]FM_GetShiftState [15:52:05]SAM_PROTO_GetShiftState [15:52:05]wFMCommunicate request_size=4 [15:52:05]MH_SAM_APDU [15:52:05]CAPDU: 80 13 01 00 [15:52:05]Write to MH i2c: E2 08 00 FD 48 80 13 01 00 00 00 00 00 C2 [15:52:05]Write i2c OK [15:52:05]MH_I2C_Read... [15:52:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:52:05]Read from MH i2c: E2 [15:52:05]MH_I2C_Read... [15:52:05]Read from MH i2c: E2 0E 00 [15:52:05]MH_I2C_Read... [15:52:05]Read from MH i2c: E2 0E 00 FD 48 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 9D [15:52:05]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [15:52:05]wFMCommunicate OK [15:52:05]SAM_PROTO_GetShiftState done [15:52:05]FM_GetShiftState done [15:52:05]req_shift_opened done [15:52:05]requested_item shift.open_date is exist - process it [15:52:05]req_shift_open_date [15:52:05]req_shift_open_date done [15:52:05]produce_requested_data done [15:52:05]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68397,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [15:52:05]process_action_free close_receipt [15:52:05]json_value_free [15:52:05]json_value_free done [15:52:05]process_json_proto returns [15:52:05]Send response to host [15:52:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68397,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [15:52:05]free response buf [15:52:05]execute_script done [15:52:05]execute_script returns [15:52:05]free content buf [15:52:05]Sock 5.Close socket [15:52:05]Sock 5.Thread stoped [15:52:07]accept exits with 6 [15:52:07]New connection [15:52:07]New thread 3066686820 created [15:52:07]Thread 3066543460 joined [15:52:07]Waiting for new connection... [15:52:07] Sock 6.Parse request [15:52:07]Sock 6.Check first char [15:52:07]Sock 6.First char is OK [15:52:07]request: POST /json_proto HTTP/1.0 [15:52:07]Method: POST [15:52:07]URL: /json_proto [15:52:07]Method is POST - this is cgi request [15:52:07]url: /json_proto [15:52:07]query_string will be loaded in cgi processing [15:52:07]execute_cgi json_proto POST (null) [15:52:07]execute_cgi path=json_proto method=POST [15:52:07]POST find Content-Length [15:52:07]Host: 172.17.36.132:8080 [15:52:07]Content-Length: 743 [15:52:07]Content-Type: application/json [15:52:07] [15:52:07]POST finish read [15:52:07]Found Content-Length = 743 [15:52:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 68397, "base_FM": "0000000000965400", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706495", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 54.870, "sum" : 4000.02, "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" ] } } [15:52:07]execute_script... [15:52:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 68397, "base_FM": "0000000000965400", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706495", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 54.870, "sum" : 4000.02, "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" ] } } [15:52:07]POST & json_proto [15:52:07]process_json_proto [15:52:07]json parsed OK: [15:52:07]protocol is kg_v1.0 [15:52:07]action value=close_receipt [15:52:07]process_action close_receipt [15:52:07]cmd_close_receipt [15:52:07]MH_GetDate [15:52:07]Write to MH i2c: F0 00 00 FE 48 35 [15:52:07]Write i2c OK [15:52:07]MH_I2C_Read... [15:52:07]Read from MH i2c: F0 [15:52:07]MH_I2C_Read... [15:52:07]Read from MH i2c: F0 09 00 [15:52:07]MH_I2C_Read... [15:52:07]Read from MH i2c: F0 09 00 FE 48 00 AC E6 5D 66 B2 22 B0 64 7B [15:52:07]GetLastDocTimeStamp 1717429927 [15:52:07]current date 1717429932 [15:52:07]FM_GetShiftState [15:52:07]SAM_PROTO_GetShiftState [15:52:07]wFMCommunicate request_size=4 [15:52:07]MH_SAM_APDU [15:52:07]CAPDU: 80 13 01 00 [15:52:07]Write to MH i2c: E2 08 00 FF 48 80 13 01 00 00 00 00 00 C4 [15:52:07]Write i2c OK [15:52:07]MH_I2C_Read... [15:52:07]Read from MH i2c: E2 [15:52:07]MH_I2C_Read... [15:52:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:52:07]Read from MH i2c: E2 0E 00 [15:52:07]MH_I2C_Read... [15:52:07]Read from MH i2c: E2 0E 00 FF 48 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 9F [15:52:07]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [15:52:07]wFMCommunicate OK [15:52:07]SAM_PROTO_GetShiftState done [15:52:07]FM_GetShiftState done [15:52:07]opened in 1717378033 [15:52:07]opened+sec_in_day 1717464433 [15:52:07]quantity*price = 400002 [15:52:07]sum+1 = 400003 [15:52:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 4000.00 НСП 1% : 35.40 НДС 12% : 424.78 Наличными: 4000.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 144 03.06.2024 15:52 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФД осн.: 68397 ФМ осн.: 0000000000965400 ФМ: 0000000000965400 ФД: 68398 ФПД: 85195448375691 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T155213&type=2&operation_type=1&fn_number=0000000000965400&fd_number=68398&fm=85195448375691&tin=02508201610067®Number=0000000000098096&sum=400000 [15:52:08]StoreToDocumentArchive [15:52:08]shift 324 fd 68398 [15:52:08]save to /storage/0324/doc_00068398 [15:52:08]save last doc name /storage/0324/doc_00068398 to /storage/kkm_last_doc_name [15:52:08]save OK [15:52:08]Clear old archive folders... [15:52:08]ProcessDocumentItem done err = 0, tmpTLVsize=280 [15:52:08]tlvbuf is 005B3030 [15:52:08]SAM_PROTO_ClearQueue [15:52:08]wFMCommunicate request_size=4 [15:52:08]MH_SAM_APDU [15:52:08]CAPDU: 80 09 00 00 [15:52:08]Write to MH i2c: E2 08 00 0E 49 80 09 00 00 00 00 00 00 C9 [15:52:08]Write i2c OK [15:52:08]MH_I2C_Read... [15:52:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:52:08]Read from MH i2c: E2 [15:52:08]MH_I2C_Read... [15:52:08]Read from MH i2c: E2 03 00 [15:52:08]MH_I2C_Read... [15:52:08]Read from MH i2c: E2 03 00 0E 49 00 90 00 CB [15:52:08]RAPDU: 90 00 [15:52:08]wFMCommunicate OK [15:52:08]SAM_PROTO_ClearQueue done [15:52:08]KKMCreateOFDPacket [15:52:08]OFDProtocolAddRootSTLVToBuf [15:52:08]FM_MakeSignedData [15:52:08]FM_MakeSignedData [15:52:08]SAM_PROTO_SignData [15:52:08]wFMCommunicate request_size=4 [15:52:08]MH_SAM_APDU [15:52:08]CAPDU: 80 0D 01 02 [15:52:08]Write to MH i2c: E2 08 00 0F 49 80 0D 01 02 00 00 00 00 D1 [15:52:08]Write i2c OK [15:52:08]MH_I2C_Read... [15:52:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:52:08]Read from MH i2c: E2 [15:52:08]MH_I2C_Read... [15:52:08]Read from MH i2c: E2 03 00 [15:52:08]MH_I2C_Read... [15:52:08]Read from MH i2c: E2 03 00 0F 49 00 90 00 CC [15:52:08]RAPDU: 90 00 [15:52:08]wFMCommunicate OK [15:52:08]wFMCommunicate request_size=255 [15:52:08]MH_SAM_APDU [15:52:08]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 02 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 34 FF 03 08 00 03 56 D6 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 82 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 EE 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 90 00 00 00 F4 03 04 00 AD E6 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 27 04 04 00 2D 0B 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 11 04 10 00 [15:52:08]Write to MH i2c: E2 02 01 10 49 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 02 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 34 FF 03 08 00 03 56 D6 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 82 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 EE 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 90 00 00 00 F4 03 04 00 AD E6 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 27 04 04 00 2D 0B 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 11 04 10 00 00 00 C2 [15:52:08]Write i2c OK [15:52:08]MH_I2C_Read... [15:52:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:52:08]Read from MH i2c: E2 [15:52:08]MH_I2C_Read... [15:52:08]Read from MH i2c: E2 03 00 [15:52:08]MH_I2C_Read... [15:52:08]Read from MH i2c: E2 03 00 10 49 00 90 00 CD [15:52:08]RAPDU: 90 00 [15:52:08]wFMCommunicate OK [15:52:08]wFMCommunicate request_size=39 [15:52:08]MH_SAM_APDU [15:52:08]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 2E 0B 01 00 35 04 06 00 4D 7C 1C 6F D9 8B [15:52:08]Write to MH i2c: E2 2A 00 11 49 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 2E 0B 01 00 35 04 06 00 4D 7C 1C 6F D9 8B 00 00 79 [15:52:08]Write i2c OK [15:52:08]MH_I2C_Read... [15:52:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:52:08]Read from MH i2c: E2 [15:52:08]MH_I2C_Read... [15:52:08]Read from MH i2c: E2 03 00 [15:52:08]MH_I2C_Read... [15:52:08]Read from MH i2c: E2 03 00 11 49 00 90 00 CE [15:52:08]RAPDU: 90 00 [15:52:08]wFMCommunicate OK [15:52:08]wFMCommunicate request_size=4 [15:52:08]MH_SAM_APDU [15:52:08]CAPDU: 80 0D 03 02 [15:52:08]Write to MH i2c: E2 08 00 12 49 80 0D 03 02 00 00 00 00 D6 [15:52:08]Write i2c OK [15:52:08]MH_I2C_Read... [15:52:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:52:08]Read from MH i2c: E2 [15:52:08]MH_I2C_Read... [15:52:08]Read from MH i2c: E2 0B 00 [15:52:08]MH_I2C_Read... [15:52:08]Read from MH i2c: E2 0B 00 12 49 00 59 FF 88 BB BD B8 79 6A 90 00 CA [15:52:08]RAPDU: 59 FF 88 BB BD B8 79 6A 90 00 [15:52:08]wFMCommunicate OK [15:52:08]SAM_PROTO_SignData done [15:52:08]FM_MakeSignedData done [15:52:08]CreateOFDProtocolMessage [15:52:08]wFMCommunicate request_size=4 [15:52:08]MH_SAM_APDU [15:52:08]CAPDU: 80 11 00 00 [15:52:08]Write to MH i2c: E2 08 00 13 49 80 11 00 00 00 00 00 00 D6 [15:52:08]Write i2c OK [15:52:08]MH_I2C_Read... [15:52:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:52:08]Read from MH i2c: E2 [15:52:08]MH_I2C_Read... [15:52:08]Read from MH i2c: E2 17 00 [15:52:08]MH_I2C_Read... [15:52:08]Read from MH i2c: E2 17 00 13 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 21 [15:52:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:52:08]wFMCommunicate OK [15:52:08]CreateOFDProtocolMessage done [15:52:08]OFDSenderStorePacket 68398 [15:52:08]StoreOFDPacket docnum=68398 [15:52:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 2C 01 00 00 D2 F3 24 01 71 8D 5A 03 01 00 03 00 18 01 1E 04 01 00 02 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 34 FF 03 08 00 03 56 D6 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 82 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 EE 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 90 00 00 00 F4 03 04 00 AD E6 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 27 04 04 00 2D 0B 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 2E 0B 01 00 35 04 06 00 4D 7C 1C 6F D9 8B 59 FF 88 BB BD B8 79 6A [15:52:08]CheckFolder [15:52:08]dirname=/storage/ofd_packets [15:52:08]CheckFolder done [15:52:08]ProducePacketName [15:52:08]name=ofd_packets/00068398 [15:52:08]NVStorageSaveData ofd_packets/00068398 [15:52:08]File name is /storage/ofd_packets/00068398 [15:52:08]Write 330 bytes [15:52:08]NVStorageSaveData done [15:52:08]OFDSenderStorePacket done [15:52:08]KKMCreateOFDPacket done [15:52:08]NVStorageSaveData kkm_last_timestamp [15:52:08]File name is /storage/kkm_last_timestamp [15:52:08]Write 4 bytes [15:52:08]NVStorageSaveData done [15:52:08]ExternCall_PrintAddStr [15:52:08]wPrintStart [15:52:08]Write to MH i2c: 01 00 00 14 49 5D [15:52:08]Write i2c OK [15:52:08]MH_I2C_Read... [15:52:08]Read from MH i2c: 01 [15:52:08]MH_I2C_Read... [15:52:08]Read from MH i2c: 01 07 00 [15:52:08]MH_I2C_Read... [15:52:08]Read from MH i2c: 01 07 00 14 49 00 00 00 00 00 FF 0F 72 [15:52:08]RasterBufferAndPrint [15:52:08]line Счет N : (1)706495 [15:52:08]line ИНН: 02508201610067 [15:52:08]line Контрольно-Кассовый Чек [15:52:08]line ВОЗВРАТ ПРОДАЖИ [15:52:08]line ТРК (МРК, ГНК) : 51 [15:52:08]line Товар: 2710194210 [15:52:08]line ДТ(л)-К-4 [15:52:08]line 54.870 * 72.90 [15:52:08]line = 4000.02 [15:52:08]line НДС 12% НСП 1% [15:52:08]line > о реализуемом товаре [15:52:08]line ОКРУГЛЕНИЕ: -0.02 [15:52:08]line ИТОГО: 4000.00 [15:52:08]line НСП 1% : 35.40 [15:52:08]line НДС 12% : 424.78 [15:52:08]line Наличными: 4000.00 [15:52:08]line Безнал.: 0.00 [15:52:08]line Место: АЗС № 62 "Партнер Нефть" [15:52:08]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [15:52:08]line СНО: Общий режим [15:52:08]line Чек 144 03.06.2024 15:52 [15:52:08]line Смена: 324 ФФД: 1.0 [15:52:08]line ЗНМ: 0300000181 [15:52:08]line РНМ: 0000000000098096 [15:52:08]line Версия ККМ: 001 [15:52:08]line ФД осн.: 68397 [15:52:08]line ФМ осн.: 0000000000965400 [15:52:08]line ФМ: 0000000000965400 [15:52:08]line ФД: 68398 [15:52:08]line ФПД: 85195448375691 [15:52:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T155213&type=2&operation_type=1&fn_number=0000000000965400&fd_number=68398&fm=85195448375691&tin=02508201610067®Number=0000000000098096&sum=400000 [15:52:08]written 0, free lines is 4095 [15:52:08]OFD Sender: Processing packet 68398 [packets to send 26, broken 25] [15:52:08]ProducePacketName [15:52:08]name=ofd_packets/00068398 [15:52:08]OFD Sender: To server: pG, [15:52:09]CommunicateWithHost lk.salyk.kg:30040 [15:52:09]ConnectInit lk.salyk.kg [15:52:09]Connected sock=7 [15:52:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 2C 01 00 00 D2 F3 24 01 71 8D 5A 03 01 00 03 00 18 01 1E 04 01 00 02 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 34 FF 03 08 00 03 56 D6 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 82 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 EE 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 90 00 00 00 F4 03 04 00 AD E6 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 27 04 04 00 2D 0B 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 2E 0B 01 00 35 04 06 00 4D 7C 1C 6F D9 8B 59 FF 88 BB BD B8 79 6A [15:52:09]Write to MH i2c: 01 00 00 3F 49 88 [15:52:09]Write i2c OK [15:52:09]MH_I2C_Read... [15:52:09]Read from MH i2c: 01 [15:52:09]MH_I2C_Read... [15:52:09]Read from MH i2c: 01 07 00 [15:52:09]MH_I2C_Read... [15:52:09]Read from MH i2c: 01 07 00 3F 49 00 00 00 00 00 F1 0C 8C [15:52:09]RasterBufferAndPrint [15:52:09]line [15:52:09]line [15:52:09]line [15:52:09]line [15:52:09]line [15:52:09]written 0, free lines is 3323 [15:52:09]MH_Cut [15:52:09]Write to MH i2c: D1 01 00 46 49 01 61 [15:52:09]Write i2c OK [15:52:09]MH_I2C_Read... [15:52:09]Read from MH i2c: D1 [15:52:09]MH_I2C_Read... [15:52:09]Read from MH i2c: D1 01 00 [15:52:09]MH_I2C_Read... [15:52:09]Read from MH i2c: D1 01 00 46 49 00 60 [15:52:09]Write to MH i2c: 01 00 00 47 49 90 [15:52:09]Write i2c OK [15:52:09]MH_I2C_Read... [15:52:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 C2 47 47 00 5E 3F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 2E 0B 01 00 F4 03 04 00 A8 8D 5D 66 B6 04 01 00 00 B7 E8 A8 25 44 26 98 55 [15:52:09]CommunicateWithHost err = 0 [15:52:09]CheckOFDResponse [15:52:09]1017 (14) - 77093643461234 [15:52:09]1041 (16) - 0000000000965400 [15:52:09]1040 (4) - 68398 [15:52:09]1012 (4) - 03.06.2024 09:32 [15:52:09]1206 (1) - 0 [15:52:09]OFD Sender: Remove packet 68398 [15:52:09]ProducePacketName [15:52:09]name=ofd_packets/00068398 [15:52:09]NVStorageDeleteData [15:52:10]OFD Sender: No OFD packet to send [15:52:10]*** Cut start [15:52:10]*** Partial cut [15:52:10]*** CUTSNS_PIN = 1 [15:52:10]*** CUTSNS_PIN = 0 [15:52:10]*** Brake cut motor [15:52:10]Read from MH i2c: 01 [15:52:10]MH_I2C_Read... [15:52:10]*** Stop cut motor [15:52:10]*** Cut end [15:52:10]Read from MH i2c: 01 07 00 [15:52:10]MH_I2C_Read... [15:52:10]Read from MH i2c: 01 07 00 47 49 00 00 00 00 00 FF 0F A5 [15:52:10]process_action close_receipt done [15:52:10]requested_data is exist [15:52:10]produce_requested_data [15:52:10]requested_item fm.sn is exist - process it [15:52:10]wFMCommunicate request_size=4 [15:52:10]MH_SAM_APDU [15:52:10]CAPDU: 80 11 00 00 [15:52:10]Write to MH i2c: E2 08 00 48 49 80 11 00 00 00 00 00 00 0B [15:52:10]Write i2c OK [15:52:10]MH_I2C_Read... [15:52:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:52:10]Read from MH i2c: E2 [15:52:10]MH_I2C_Read... [15:52:10]Read from MH i2c: E2 17 00 [15:52:10]MH_I2C_Read... [15:52:10]Read from MH i2c: E2 17 00 48 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 56 [15:52:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:52:10]wFMCommunicate OK [15:52:10]requested_item fd.num is exist - process it [15:52:10]SAM_PROTO_GetFieldsCounters [15:52:10]wFMCommunicate request_size=4 [15:52:10]MH_SAM_APDU [15:52:10]CAPDU: 80 13 00 00 [15:52:10]Write to MH i2c: E2 08 00 49 49 80 13 00 00 00 00 00 00 0E [15:52:10]Write i2c OK [15:52:10]MH_I2C_Read... [15:52:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:52:11]Read from MH i2c: E2 [15:52:11]MH_I2C_Read... [15:52:11]Read from MH i2c: E2 62 00 [15:52:11]MH_I2C_Read... [15:52:11]Read from MH i2c: E2 62 00 49 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 2E 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 5D [15:52:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 2E 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:52:11]wFMCommunicate OK [15:52:11]SAM_PROTO_GetFieldsCounters done [15:52:11]requested_item shift.num is exist - process it [15:52:11]requested_item shift.opened is exist - process it [15:52:11]req_shift_opened [15:52:11]FM_GetShiftState [15:52:11]SAM_PROTO_GetShiftState [15:52:11]wFMCommunicate request_size=4 [15:52:11]MH_SAM_APDU [15:52:11]CAPDU: 80 13 01 00 [15:52:11]Write to MH i2c: E2 08 00 4A 49 80 13 01 00 00 00 00 00 10 [15:52:11]Write i2c OK [15:52:11]MH_I2C_Read... [15:52:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:52:11]Read from MH i2c: E2 [15:52:11]MH_I2C_Read... [15:52:11]Read from MH i2c: E2 0E 00 [15:52:11]MH_I2C_Read... [15:52:11]Read from MH i2c: E2 0E 00 4A 49 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 EB [15:52:11]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [15:52:11]wFMCommunicate OK [15:52:11]SAM_PROTO_GetShiftState done [15:52:11]FM_GetShiftState done [15:52:11]req_shift_opened done [15:52:11]requested_item shift.open_date is exist - process it [15:52:11]req_shift_open_date [15:52:11]req_shift_open_date done [15:52:11]produce_requested_data done [15:52:11]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68398,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [15:52:11]process_action_free close_receipt [15:52:11]json_value_free [15:52:11]json_value_free done [15:52:11]process_json_proto returns [15:52:11]Send response to host [15:52:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68398,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [15:52:11]free response buf [15:52:11]execute_script done [15:52:11]execute_script returns [15:52:11]free content buf [15:52:11]Sock 6.Close socket [15:52:11]Sock 6.Thread stoped [15:52:15]OFD Sender: No OFD packet to send [15:52:20]OFD Sender: No OFD packet to send [15:52:25]OFD Sender: No OFD packet to send [15:52:30]OFD Sender: No OFD packet to send [15:52:35]OFD Sender: No OFD packet to send [15:52:40]OFD Sender: No OFD packet to send [15:52:45]OFD Sender: No OFD packet to send [15:52:50]OFD Sender: No OFD packet to send [15:52:55]OFD Sender: No OFD packet to send [15:53:00]OFD Sender: No OFD packet to send [15:53:05]OFD Sender: No OFD packet to send [15:53:10]OFD Sender: No OFD packet to send [15:53:15]OFD Sender: No OFD packet to send [15:53:20]OFD Sender: No OFD packet to send [15:53:25]OFD Sender: No OFD packet to send [15:53:30]OFD Sender: No OFD packet to send [15:53:35]OFD Sender: No OFD packet to send [15:53:40]OFD Sender: No OFD packet to send [15:53:45]OFD Sender: No OFD packet to send [15:53:50]OFD Sender: No OFD packet to send [15:53:55]OFD Sender: No OFD packet to send [15:54:00]OFD Sender: No OFD packet to send [15:54:05]OFD Sender: No OFD packet to send [15:54:10]OFD Sender: No OFD packet to send [15:54:15]OFD Sender: No OFD packet to send [15:54:20]OFD Sender: No OFD packet to send [15:54:25]OFD Sender: No OFD packet to send [15:54:30]OFD Sender: No OFD packet to send [15:54:35]OFD Sender: No OFD packet to send [15:54:40]OFD Sender: No OFD packet to send [15:54:45]OFD Sender: No OFD packet to send [15:54:50]OFD Sender: No OFD packet to send [15:54:55]OFD Sender: No OFD packet to send [15:55:00]OFD Sender: No OFD packet to send [15:55:05]OFD Sender: No OFD packet to send [15:55:10]OFD Sender: No OFD packet to send [15:55:15]OFD Sender: No OFD packet to send [15:55:20]OFD Sender: No OFD packet to send [15:55:22]accept exits with 5 [15:55:22]New connection [15:55:22]New thread 3066543460 created [15:55:22]Thread 3066686820 joined [15:55:22]Waiting for new connection... [15:55:22] Sock 5.Parse request [15:55:22]Sock 5.Check first char [15:55:22]Sock 5.First char is OK [15:55:22]request: POST /json_proto HTTP/1.0 [15:55:22]Method: POST [15:55:22]URL: /json_proto [15:55:22]Method is POST - this is cgi request [15:55:22]url: /json_proto [15:55:22]query_string will be loaded in cgi processing [15:55:22]execute_cgi json_proto POST (null) [15:55:22]execute_cgi path=json_proto method=POST [15:55:22]POST find Content-Length [15:55:22]Host: 172.17.36.132:8080 [15:55:22]Content-Length: 682 [15:55:22]Content-Type: application/json [15:55:22] [15:55:22]POST finish read [15:55:22]Found Content-Length = 682 [15:55:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706497", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 21.000, "sum" : 1404.90, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1404.00, "total" : 1404.00, "payments": [ { "type": 0, "sum" : 1404.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:55:22]execute_script... [15:55:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706497", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 21.000, "sum" : 1404.90, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1404.00, "total" : 1404.00, "payments": [ { "type": 0, "sum" : 1404.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:55:22]POST & json_proto [15:55:22]process_json_proto [15:55:22]json parsed OK: [15:55:22]protocol is kg_v1.0 [15:55:22]action value=close_receipt [15:55:22]process_action close_receipt [15:55:22]cmd_close_receipt [15:55:22]MH_GetDate [15:55:22]Write to MH i2c: F0 00 00 4B 49 83 [15:55:22]Write i2c OK [15:55:22]MH_I2C_Read... [15:55:22]Read from MH i2c: F0 [15:55:22]MH_I2C_Read... [15:55:22]Read from MH i2c: F0 09 00 [15:55:22]MH_I2C_Read... [15:55:22]Read from MH i2c: F0 09 00 4B 49 00 70 E7 5D 66 B2 22 B0 64 8E [15:55:22]GetLastDocTimeStamp 1717429933 [15:55:22]current date 1717430128 [15:55:22]FM_GetShiftState [15:55:22]SAM_PROTO_GetShiftState [15:55:22]wFMCommunicate request_size=4 [15:55:22]MH_SAM_APDU [15:55:22]CAPDU: 80 13 01 00 [15:55:22]Write to MH i2c: E2 08 00 4C 49 80 13 01 00 00 00 00 00 12 [15:55:22]Write i2c OK [15:55:22]MH_I2C_Read... [15:55:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:55:22]Read from MH i2c: E2 [15:55:22]MH_I2C_Read... [15:55:22]Read from MH i2c: E2 0E 00 [15:55:22]MH_I2C_Read... [15:55:22]Read from MH i2c: E2 0E 00 4C 49 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 ED [15:55:22]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [15:55:22]wFMCommunicate OK [15:55:22]SAM_PROTO_GetShiftState done [15:55:22]FM_GetShiftState done [15:55:22]opened in 1717378033 [15:55:22]opened+sec_in_day 1717464433 [15:55:22]quantity*price = 140490 [15:55:22]sum+1 = 140491 [15:55:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.90 ИТОГО: 1404.00 Внесено: 1404.00 СДАЧА: 0.00 НСП 1% : 12.43 НДС 12% : 149.19 Наличными: 1404.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 145 03.06.2024 15:55 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68399 ФПД: 263357886313074 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T155528&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68399&fm=263357886313074&tin=02508201610067®Number=0000000000098096&sum=140400 [15:55:23]StoreToDocumentArchive [15:55:23]shift 324 fd 68399 [15:55:23]save to /storage/0324/doc_00068399 [15:55:23]save last doc name /storage/0324/doc_00068399 to /storage/kkm_last_doc_name [15:55:23]save OK [15:55:23]Clear old archive folders... [15:55:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:55:23]tlvbuf is B6E99350 [15:55:23]SAM_PROTO_ClearQueue [15:55:23]wFMCommunicate request_size=4 [15:55:23]MH_SAM_APDU [15:55:23]CAPDU: 80 09 00 00 [15:55:23]Write to MH i2c: E2 08 00 59 49 80 09 00 00 00 00 00 00 14 [15:55:23]Write i2c OK [15:55:23]MH_I2C_Read... [15:55:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:55:23]Read from MH i2c: E2 [15:55:23]MH_I2C_Read... [15:55:23]Read from MH i2c: E2 03 00 [15:55:23]MH_I2C_Read... [15:55:23]Read from MH i2c: E2 03 00 59 49 00 90 00 16 [15:55:23]RAPDU: 90 00 [15:55:23]wFMCommunicate OK [15:55:23]SAM_PROTO_ClearQueue done [15:55:23]KKMCreateOFDPacket [15:55:23]OFDProtocolAddRootSTLVToBuf [15:55:23]FM_MakeSignedData [15:55:23]FM_MakeSignedData [15:55:23]SAM_PROTO_SignData [15:55:23]wFMCommunicate request_size=4 [15:55:23]MH_SAM_APDU [15:55:23]CAPDU: 80 0D 01 02 [15:55:23]Write to MH i2c: E2 08 00 5A 49 80 0D 01 02 00 00 00 00 1C [15:55:23]Write i2c OK [15:55:23]MH_I2C_Read... [15:55:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:55:23]Read from MH i2c: E2 [15:55:23]MH_I2C_Read... [15:55:23]Read from MH i2c: E2 03 00 [15:55:23]MH_I2C_Read... [15:55:23]Read from MH i2c: E2 03 00 5A 49 00 90 00 17 [15:55:23]RAPDU: 90 00 [15:55:23]wFMCommunicate OK [15:55:23]wFMCommunicate request_size=255 [15:55:23]MH_SAM_APDU [15:55:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 08 52 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CA 24 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 24 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 3A 00 00 00 00 07 04 06 00 70 24 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 70 E7 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 2F 0B 01 00 35 04 06 00 EF [15:55:23]Write to MH i2c: E2 02 01 5B 49 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 08 52 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CA 24 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 24 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 3A 00 00 00 00 07 04 06 00 70 24 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 70 E7 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 2F 0B 01 00 35 04 06 00 EF 00 00 50 [15:55:23]Write i2c OK [15:55:23]MH_I2C_Read... [15:55:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:55:23]Read from MH i2c: E2 [15:55:23]MH_I2C_Read... [15:55:23]Read from MH i2c: E2 03 00 [15:55:23]MH_I2C_Read... [15:55:23]Read from MH i2c: E2 03 00 5B 49 00 90 00 18 [15:55:23]RAPDU: 90 00 [15:55:23]wFMCommunicate OK [15:55:23]wFMCommunicate request_size=10 [15:55:23]MH_SAM_APDU [15:55:23]CAPDU: 80 0D 02 02 05 85 C9 43 32 72 [15:55:23]Write to MH i2c: E2 0D 00 5C 49 80 0D 02 02 05 00 85 C9 43 32 72 00 00 5E [15:55:23]Write i2c OK [15:55:23]MH_I2C_Read... [15:55:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:55:23]Read from MH i2c: E2 [15:55:23]MH_I2C_Read... [15:55:23]Read from MH i2c: E2 03 00 [15:55:23]MH_I2C_Read... [15:55:23]Read from MH i2c: E2 03 00 5C 49 00 90 00 19 [15:55:23]RAPDU: 90 00 [15:55:23]wFMCommunicate OK [15:55:23]wFMCommunicate request_size=4 [15:55:23]MH_SAM_APDU [15:55:23]CAPDU: 80 0D 03 02 [15:55:23]Write to MH i2c: E2 08 00 5D 49 80 0D 03 02 00 00 00 00 21 [15:55:23]Write i2c OK [15:55:23]MH_I2C_Read... [15:55:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:55:23]Read from MH i2c: E2 [15:55:23]MH_I2C_Read... [15:55:23]Read from MH i2c: E2 0B 00 [15:55:23]MH_I2C_Read... [15:55:23]Read from MH i2c: E2 0B 00 5D 49 00 35 48 8C CE 4E E4 91 83 90 00 3F [15:55:23]RAPDU: 35 48 8C CE 4E E4 91 83 90 00 [15:55:23]wFMCommunicate OK [15:55:23]SAM_PROTO_SignData done [15:55:23]FM_MakeSignedData done [15:55:23]CreateOFDProtocolMessage [15:55:23]wFMCommunicate request_size=4 [15:55:23]MH_SAM_APDU [15:55:23]CAPDU: 80 11 00 00 [15:55:23]Write to MH i2c: E2 08 00 5E 49 80 11 00 00 00 00 00 00 21 [15:55:23]Write i2c OK [15:55:23]MH_I2C_Read... [15:55:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:55:24]Read from MH i2c: E2 [15:55:24]MH_I2C_Read... [15:55:24]Read from MH i2c: E2 17 00 [15:55:24]MH_I2C_Read... [15:55:24]Read from MH i2c: E2 17 00 5E 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 6C [15:55:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:55:24]wFMCommunicate OK [15:55:24]CreateOFDProtocolMessage done [15:55:24]OFDSenderStorePacket 68399 [15:55:24]StoreOFDPacket docnum=68399 [15:55:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 8C 30 07 01 1A 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 34 FF 03 08 00 03 08 52 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CA 24 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 24 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 3A 00 00 00 00 07 04 06 00 70 24 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 70 E7 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 2F 0B 01 00 35 04 06 00 EF 85 C9 43 32 72 35 48 8C CE 4E E4 91 83 [15:55:24]CheckFolder [15:55:24]dirname=/storage/ofd_packets [15:55:24]CheckFolder done [15:55:24]ProducePacketName [15:55:24]name=ofd_packets/00068399 [15:55:24]NVStorageSaveData ofd_packets/00068399 [15:55:24]File name is /storage/ofd_packets/00068399 [15:55:24]Write 301 bytes [15:55:24]NVStorageSaveData done [15:55:24]OFDSenderStorePacket done [15:55:24]KKMCreateOFDPacket done [15:55:24]NVStorageSaveData kkm_last_timestamp [15:55:24]File name is /storage/kkm_last_timestamp [15:55:24]Write 4 bytes [15:55:24]NVStorageSaveData done [15:55:24]ExternCall_PrintAddStr [15:55:24]wPrintStart [15:55:24]Write to MH i2c: 01 00 00 5F 49 A8 [15:55:24]Write i2c OK [15:55:24]MH_I2C_Read... [15:55:24]Read from MH i2c: 01 [15:55:24]MH_I2C_Read... [15:55:24]Read from MH i2c: 01 07 00 [15:55:24]MH_I2C_Read... [15:55:24]Read from MH i2c: 01 07 00 5F 49 00 00 00 00 00 FF 0F BD [15:55:24]RasterBufferAndPrint [15:55:24]line Счет N : (1)706497 [15:55:24]line ИНН: 02508201610067 [15:55:24]line Контрольно-Кассовый Чек [15:55:24]line ПРОДАЖА [15:55:24]line ТРК (МРК, ГНК) : 32 [15:55:24]line Товар: 2710124130 [15:55:24]line Аи-92-К-4 [15:55:24]line 21.000 * 66.90 [15:55:24]line = 1404.90 [15:55:24]line НДС 12% НСП 1% [15:55:24]line > о реализуемом товаре [15:55:24]line ОКРУГЛЕНИЕ: -0.90 [15:55:24]line ИТОГО: 1404.00 [15:55:24]line Внесено: 1404.00 [15:55:24]line СДАЧА: 0.00 [15:55:24]line НСП 1% : 12.43 [15:55:24]line НДС 12% : 149.19 [15:55:24]line Наличными: 1404.00 [15:55:24]line Безнал.: 0.00 [15:55:24]line Место: АЗС № 62 "Партнер Нефть" [15:55:24]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [15:55:24]line СНО: Общий режим [15:55:24]line Чек 145 03.06.2024 15:55 [15:55:24]line Смена: 324 ФФД: 1.0 [15:55:24]line ЗНМ: 0300000181 [15:55:24]line РНМ: 0000000000098096 [15:55:24]line Версия ККМ: 001 [15:55:24]line ФМ: 0000000000965400 [15:55:24]line ФД: 68399 [15:55:24]line ФПД: 263357886313074 [15:55:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T155528&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68399&fm=263357886313074&tin=02508201610067®Number=0000000000098096&sum=140400 [15:55:24]OFD Sender: Processing packet 68399 [packets to send 26, broken 25] [15:55:24]ProducePacketName [15:55:24]name=ofd_packets/00068399 [15:55:24]OFD Sender: To server: pG, [15:55:24]CommunicateWithHost lk.salyk.kg:30040 [15:55:24]ConnectInit lk.salyk.kg [15:55:24]written 0, free lines is 4095 [15:55:24]Connected sock=7 [15:55:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 8C 30 07 01 1A 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 34 FF 03 08 00 03 08 52 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CA 24 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 24 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 3A 00 00 00 00 07 04 06 00 70 24 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 70 E7 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 2F 0B 01 00 35 04 06 00 EF 85 C9 43 32 72 35 48 8C CE 4E E4 91 83 [15:55:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 8B 29 47 00 15 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 2F 0B 01 00 F4 03 04 00 6B 8E 5D 66 B6 04 01 00 00 1F 88 14 0B 53 16 24 58 [15:55:24]CommunicateWithHost err = 0 [15:55:24]CheckOFDResponse [15:55:24]1017 (14) - 77093643461234 [15:55:24]1041 (16) - 0000000000965400 [15:55:24]1040 (4) - 68399 [15:55:24]1012 (4) - 03.06.2024 09:35 [15:55:24]1206 (1) - 0 [15:55:24]OFD Sender: Remove packet 68399 [15:55:24]ProducePacketName [15:55:24]name=ofd_packets/00068399 [15:55:24]NVStorageDeleteData [15:55:24]Write to MH i2c: 01 00 00 8A 49 D3 [15:55:24]Write i2c OK [15:55:24]MH_I2C_Read... [15:55:24]Read from MH i2c: 01 [15:55:24]MH_I2C_Read... [15:55:24]Read from MH i2c: 01 07 00 [15:55:24]MH_I2C_Read... [15:55:24]Read from MH i2c: 01 07 00 8A 49 00 00 00 00 00 D7 0C BD [15:55:24]RasterBufferAndPrint [15:55:24]line [15:55:24]line [15:55:24]line [15:55:24]line [15:55:24]line [15:55:24]written 0, free lines is 3294 [15:55:24]MH_Cut [15:55:24]Write to MH i2c: D1 01 00 91 49 01 AC [15:55:24]Write i2c OK [15:55:24]MH_I2C_Read... [15:55:24]Read from MH i2c: D1 [15:55:24]MH_I2C_Read... [15:55:24]Read from MH i2c: D1 01 00 [15:55:24]MH_I2C_Read... [15:55:24]Read from MH i2c: D1 01 00 91 49 00 AB [15:55:24]Write to MH i2c: 01 00 00 92 49 DB [15:55:24]Write i2c OK [15:55:24]MH_I2C_Read... [15:55:25]OFD Sender: No OFD packet to send [15:55:25]*** Cut start [15:55:25]*** Partial cut [15:55:25]*** CUTSNS_PIN = 1 [15:55:25]*** CUTSNS_PIN = 0 [15:55:25]*** Brake cut motor [15:55:26]Read from MH i2c: 01 [15:55:26]MH_I2C_Read... [15:55:26]*** Stop cut motor [15:55:26]*** Cut end [15:55:26]Read from MH i2c: 01 07 00 [15:55:26]MH_I2C_Read... [15:55:26]Read from MH i2c: 01 07 00 92 49 00 00 00 00 00 FF 0F F0 [15:55:26]process_action close_receipt done [15:55:26]requested_data is exist [15:55:26]produce_requested_data [15:55:26]requested_item fm.sn is exist - process it [15:55:26]wFMCommunicate request_size=4 [15:55:26]MH_SAM_APDU [15:55:26]CAPDU: 80 11 00 00 [15:55:26]Write to MH i2c: E2 08 00 93 49 80 11 00 00 00 00 00 00 56 [15:55:26]Write i2c OK [15:55:26]MH_I2C_Read... [15:55:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:55:26]Read from MH i2c: E2 [15:55:26]MH_I2C_Read... [15:55:26]Read from MH i2c: E2 17 00 [15:55:26]MH_I2C_Read... [15:55:26]Read from MH i2c: E2 17 00 93 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 A1 [15:55:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:55:26]wFMCommunicate OK [15:55:26]requested_item fd.num is exist - process it [15:55:26]SAM_PROTO_GetFieldsCounters [15:55:26]wFMCommunicate request_size=4 [15:55:26]MH_SAM_APDU [15:55:26]CAPDU: 80 13 00 00 [15:55:26]Write to MH i2c: E2 08 00 94 49 80 13 00 00 00 00 00 00 59 [15:55:26]Write i2c OK [15:55:26]MH_I2C_Read... [15:55:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:55:26]Read from MH i2c: E2 [15:55:26]MH_I2C_Read... [15:55:26]Read from MH i2c: E2 62 00 [15:55:26]MH_I2C_Read... [15:55:26]Read from MH i2c: E2 62 00 94 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 2F 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 AC [15:55:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 2F 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:55:26]wFMCommunicate OK [15:55:26]SAM_PROTO_GetFieldsCounters done [15:55:26]requested_item shift.num is exist - process it [15:55:26]requested_item shift.opened is exist - process it [15:55:26]req_shift_opened [15:55:26]FM_GetShiftState [15:55:26]SAM_PROTO_GetShiftState [15:55:26]wFMCommunicate request_size=4 [15:55:26]MH_SAM_APDU [15:55:26]CAPDU: 80 13 01 00 [15:55:26]Write to MH i2c: E2 08 00 95 49 80 13 01 00 00 00 00 00 5B [15:55:26]Write i2c OK [15:55:26]MH_I2C_Read... [15:55:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:55:26]Read from MH i2c: E2 [15:55:26]MH_I2C_Read... [15:55:26]Read from MH i2c: E2 0E 00 [15:55:26]MH_I2C_Read... [15:55:26]Read from MH i2c: E2 0E 00 95 49 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 36 [15:55:26]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [15:55:26]wFMCommunicate OK [15:55:26]SAM_PROTO_GetShiftState done [15:55:26]FM_GetShiftState done [15:55:26]req_shift_opened done [15:55:26]requested_item shift.open_date is exist - process it [15:55:26]req_shift_open_date [15:55:26]req_shift_open_date done [15:55:26]produce_requested_data done [15:55:26]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68399,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [15:55:26]process_action_free close_receipt [15:55:26]json_value_free [15:55:26]json_value_free done [15:55:26]process_json_proto returns [15:55:26]Send response to host [15:55:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68399,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [15:55:26]free response buf [15:55:26]execute_script done [15:55:26]execute_script returns [15:55:26]free content buf [15:55:26]Sock 5.Close socket [15:55:26]Sock 5.Thread stoped [15:55:30]OFD Sender: No OFD packet to send [15:55:35]OFD Sender: No OFD packet to send [15:55:40]OFD Sender: No OFD packet to send [15:55:45]OFD Sender: No OFD packet to send [15:55:50]OFD Sender: No OFD packet to send [15:55:55]OFD Sender: No OFD packet to send [15:56:00]OFD Sender: No OFD packet to send [15:56:05]OFD Sender: No OFD packet to send [15:56:10]OFD Sender: No OFD packet to send [15:56:15]OFD Sender: No OFD packet to send [15:56:20]OFD Sender: No OFD packet to send [15:56:25]OFD Sender: No OFD packet to send [15:56:30]OFD Sender: No OFD packet to send [15:56:35]OFD Sender: No OFD packet to send [15:56:40]OFD Sender: No OFD packet to send [15:56:45]OFD Sender: No OFD packet to send [15:56:50]OFD Sender: No OFD packet to send [15:56:55]OFD Sender: No OFD packet to send [15:57:00]OFD Sender: No OFD packet to send [15:57:05]OFD Sender: No OFD packet to send [15:57:10]OFD Sender: No OFD packet to send [15:57:15]OFD Sender: No OFD packet to send [15:57:20]OFD Sender: No OFD packet to send [15:57:25]OFD Sender: No OFD packet to send [15:57:30]OFD Sender: No OFD packet to send [15:57:35]OFD Sender: No OFD packet to send [15:57:40]OFD Sender: No OFD packet to send [15:57:45]OFD Sender: No OFD packet to send [15:57:50]OFD Sender: No OFD packet to send [15:57:55]OFD Sender: No OFD packet to send [15:58:00]OFD Sender: No OFD packet to send [15:58:05]OFD Sender: No OFD packet to send [15:58:10]OFD Sender: No OFD packet to send [15:58:15]OFD Sender: No OFD packet to send [15:58:20]OFD Sender: No OFD packet to send [15:58:25]OFD Sender: No OFD packet to send [15:58:30]OFD Sender: No OFD packet to send [15:58:35]OFD Sender: No OFD packet to send [15:58:39]accept exits with 6 [15:58:39]New connection [15:58:39]New thread 3066686820 created [15:58:39]Thread 3066543460 joined [15:58:39]Waiting for new connection... [15:58:39] Sock 6.Parse request [15:58:39]Sock 6.Check first char [15:58:39]Sock 6.First char is OK [15:58:39]request: POST /json_proto HTTP/1.0 [15:58:39]Method: POST [15:58:39]URL: /json_proto [15:58:39]Method is POST - this is cgi request [15:58:39]url: /json_proto [15:58:39]query_string will be loaded in cgi processing [15:58:39]execute_cgi json_proto POST (null) [15:58:39]execute_cgi path=json_proto method=POST [15:58:39]POST find Content-Length [15:58:39]Host: 172.17.36.132:8080 [15:58:39]Content-Length: 648 [15:58:39]Content-Type: application/json [15:58:39] [15:58:39]POST finish read [15:58:39]Found Content-Length = 648 [15:58:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706498", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 130.000, "sum" : 9477.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 9477.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:58:39]execute_script... [15:58:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706498", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 130.000, "sum" : 9477.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 9477.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:58:39]POST & json_proto [15:58:39]process_json_proto [15:58:39]json parsed OK: [15:58:39]protocol is kg_v1.0 [15:58:39]action value=close_receipt [15:58:39]process_action close_receipt [15:58:39]cmd_close_receipt [15:58:39]MH_GetDate [15:58:39]Write to MH i2c: F0 00 00 96 49 CE [15:58:39]Write i2c OK [15:58:39]MH_I2C_Read... [15:58:39]Read from MH i2c: F0 [15:58:39]MH_I2C_Read... [15:58:39]Read from MH i2c: F0 09 00 [15:58:39]MH_I2C_Read... [15:58:39]Read from MH i2c: F0 09 00 96 49 00 35 E8 5D 66 B2 22 B0 64 9F [15:58:39]GetLastDocTimeStamp 1717430128 [15:58:39]current date 1717430325 [15:58:39]FM_GetShiftState [15:58:39]SAM_PROTO_GetShiftState [15:58:39]wFMCommunicate request_size=4 [15:58:39]MH_SAM_APDU [15:58:39]CAPDU: 80 13 01 00 [15:58:39]Write to MH i2c: E2 08 00 97 49 80 13 01 00 00 00 00 00 5D [15:58:39]Write i2c OK [15:58:39]MH_I2C_Read... [15:58:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:58:39]Read from MH i2c: E2 [15:58:39]MH_I2C_Read... [15:58:39]Read from MH i2c: E2 0E 00 [15:58:39]MH_I2C_Read... [15:58:39]Read from MH i2c: E2 0E 00 97 49 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 38 [15:58:39]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [15:58:39]wFMCommunicate OK [15:58:39]SAM_PROTO_GetShiftState done [15:58:39]FM_GetShiftState done [15:58:39]opened in 1717378033 [15:58:39]opened+sec_in_day 1717464433 [15:58:39]quantity*price = 947700 [15:58:39]sum+1 = 947701 [15:58:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 9477.00 НСП 1% : 83.87 НДС 12% : 1006.41 Наличными: 9477.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 146 03.06.2024 15:58 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68400 ФПД: 149785681814385 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T155845&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68400&fm=149785681814385&tin=02508201610067®Number=0000000000098096&sum=947700 [15:58:40]StoreToDocumentArchive [15:58:40]shift 324 fd 68400 [15:58:40]save to /storage/0324/doc_00068400 [15:58:40]save last doc name /storage/0324/doc_00068400 to /storage/kkm_last_doc_name [15:58:40]save OK [15:58:40]Clear old archive folders... [15:58:40]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:58:40]tlvbuf is 00332420 [15:58:40]SAM_PROTO_ClearQueue [15:58:40]wFMCommunicate request_size=4 [15:58:40]MH_SAM_APDU [15:58:40]CAPDU: 80 09 00 00 [15:58:40]Write to MH i2c: E2 08 00 A4 49 80 09 00 00 00 00 00 00 5F [15:58:40]Write i2c OK [15:58:40]MH_I2C_Read... [15:58:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:58:40]Read from MH i2c: E2 [15:58:40]MH_I2C_Read... [15:58:40]Read from MH i2c: E2 03 00 [15:58:40]MH_I2C_Read... [15:58:40]Read from MH i2c: E2 03 00 A4 49 00 90 00 61 [15:58:40]RAPDU: 90 00 [15:58:40]wFMCommunicate OK [15:58:40]SAM_PROTO_ClearQueue done [15:58:40]KKMCreateOFDPacket [15:58:40]OFDProtocolAddRootSTLVToBuf [15:58:40]FM_MakeSignedData [15:58:40]FM_MakeSignedData [15:58:40]SAM_PROTO_SignData [15:58:40]wFMCommunicate request_size=4 [15:58:40]MH_SAM_APDU [15:58:40]CAPDU: 80 0D 01 02 [15:58:40]Write to MH i2c: E2 08 00 A5 49 80 0D 01 02 00 00 00 00 67 [15:58:40]Write i2c OK [15:58:40]MH_I2C_Read... [15:58:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:58:40]Read from MH i2c: E2 [15:58:40]MH_I2C_Read... [15:58:40]Read from MH i2c: E2 03 00 [15:58:40]MH_I2C_Read... [15:58:40]Read from MH i2c: E2 03 00 A5 49 00 90 00 62 [15:58:40]RAPDU: 90 00 [15:58:40]wFMCommunicate OK [15:58:40]wFMCommunicate request_size=255 [15:58:40]MH_SAM_APDU [15:58:40]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 34 FF 03 08 00 03 D0 FB 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 F4 75 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 75 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 89 01 00 00 00 07 04 06 00 F4 75 0E 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 35 E8 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 30 0B 01 00 35 04 06 00 [15:58:40]Write to MH i2c: E2 02 01 A6 49 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 34 FF 03 08 00 03 D0 FB 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 F4 75 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 75 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 89 01 00 00 00 07 04 06 00 F4 75 0E 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 35 E8 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 30 0B 01 00 35 04 06 00 00 00 F2 [15:58:40]Write i2c OK [15:58:40]MH_I2C_Read... [15:58:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:58:41]Read from MH i2c: E2 [15:58:41]MH_I2C_Read... [15:58:41]Read from MH i2c: E2 03 00 [15:58:41]MH_I2C_Read... [15:58:41]Read from MH i2c: E2 03 00 A6 49 00 90 00 63 [15:58:41]RAPDU: 90 00 [15:58:41]wFMCommunicate OK [15:58:41]wFMCommunicate request_size=11 [15:58:41]MH_SAM_APDU [15:58:41]CAPDU: 80 0D 02 02 06 88 3A B2 5B 63 71 [15:58:41]Write to MH i2c: E2 0E 00 A7 49 80 0D 02 02 06 00 88 3A B2 5B 63 71 00 00 19 [15:58:41]Write i2c OK [15:58:41]MH_I2C_Read... [15:58:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:58:41]Read from MH i2c: E2 [15:58:41]MH_I2C_Read... [15:58:41]Read from MH i2c: E2 03 00 [15:58:41]MH_I2C_Read... [15:58:41]Read from MH i2c: E2 03 00 A7 49 00 90 00 64 [15:58:41]RAPDU: 90 00 [15:58:41]wFMCommunicate OK [15:58:41]wFMCommunicate request_size=4 [15:58:41]MH_SAM_APDU [15:58:41]CAPDU: 80 0D 03 02 [15:58:41]Write to MH i2c: E2 08 00 A8 49 80 0D 03 02 00 00 00 00 6C [15:58:41]Write i2c OK [15:58:41]MH_I2C_Read... [15:58:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:58:41]Read from MH i2c: E2 [15:58:41]MH_I2C_Read... [15:58:41]Read from MH i2c: E2 0B 00 [15:58:41]MH_I2C_Read... [15:58:41]Read from MH i2c: E2 0B 00 A8 49 00 FC 59 7C C3 F2 FA 2B 59 90 00 71 [15:58:41]RAPDU: FC 59 7C C3 F2 FA 2B 59 90 00 [15:58:41]wFMCommunicate OK [15:58:41]SAM_PROTO_SignData done [15:58:41]FM_MakeSignedData done [15:58:41]CreateOFDProtocolMessage [15:58:41]wFMCommunicate request_size=4 [15:58:41]MH_SAM_APDU [15:58:41]CAPDU: 80 11 00 00 [15:58:41]Write to MH i2c: E2 08 00 A9 49 80 11 00 00 00 00 00 00 6C [15:58:41]Write i2c OK [15:58:41]MH_I2C_Read... [15:58:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:58:41]Read from MH i2c: E2 [15:58:41]MH_I2C_Read... [15:58:41]Read from MH i2c: E2 17 00 [15:58:41]MH_I2C_Read... [15:58:41]Read from MH i2c: E2 17 00 A9 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 B7 [15:58:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:58:41]wFMCommunicate OK [15:58:41]CreateOFDProtocolMessage done [15:58:41]OFDSenderStorePacket 68400 [15:58:41]StoreOFDPacket docnum=68400 [15:58:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 9C E2 08 01 46 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 34 FF 03 08 00 03 D0 FB 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 F4 75 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 75 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 89 01 00 00 00 07 04 06 00 F4 75 0E 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 35 E8 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 30 0B 01 00 35 04 06 00 88 3A B2 5B 63 71 FC 59 7C C3 F2 FA 2B 59 [15:58:41]CheckFolder [15:58:41]dirname=/storage/ofd_packets [15:58:41]CheckFolder done [15:58:41]ProducePacketName [15:58:41]name=ofd_packets/00068400 [15:58:41]NVStorageSaveData ofd_packets/00068400 [15:58:41]File name is /storage/ofd_packets/00068400 [15:58:41]Write 302 bytes [15:58:41]NVStorageSaveData done [15:58:41]OFDSenderStorePacket done [15:58:41]KKMCreateOFDPacket done [15:58:41]NVStorageSaveData kkm_last_timestamp [15:58:41]File name is /storage/kkm_last_timestamp [15:58:41]Write 4 bytes [15:58:41]NVStorageSaveData done [15:58:41]ExternCall_PrintAddStr [15:58:41]wPrintStart [15:58:41]Write to MH i2c: 01 00 00 AA 49 F3 [15:58:41]Write i2c OK [15:58:41]MH_I2C_Read... [15:58:41]Read from MH i2c: 01 [15:58:41]MH_I2C_Read... [15:58:41]Read from MH i2c: 01 07 00 [15:58:41]MH_I2C_Read... [15:58:41]Read from MH i2c: 01 07 00 AA 49 00 00 00 00 00 FF 0F 08 [15:58:41]RasterBufferAndPrint [15:58:41]line Счет N : (1)706498 [15:58:41]line ИНН: 02508201610067 [15:58:41]line Контрольно-Кассовый Чек [15:58:41]line ПРОДАЖА [15:58:41]line ТРК (МРК, ГНК) : 21 [15:58:41]line Товар: 2710194210 [15:58:41]line ДТ(л)-К-4 [15:58:41]line 130.000 * 72.90 [15:58:41]line = 9477.00 [15:58:41]line НДС 12% НСП 1% [15:58:41]line > о реализуемом товаре [15:58:41]line ИТОГО: 9477.00 [15:58:41]line НСП 1% : 83.87 [15:58:41]line НДС 12% : 1006.41 [15:58:41]line Наличными: 9477.00 [15:58:41]line Безнал.: 0.00 [15:58:41]line Место: АЗС № 62 "Партнер Нефть" [15:58:41]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [15:58:41]line СНО: Общий режим [15:58:41]line Чек 146 03.06.2024 15:58 [15:58:41]line Смена: 324 ФФД: 1.0 [15:58:41]line ЗНМ: 0300000181 [15:58:41]line РНМ: 0000000000098096 [15:58:41]line Версия ККМ: 001 [15:58:41]line ФМ: 0000000000965400 [15:58:41]line ФД: 68400 [15:58:41]line ФПД: 149785681814385 [15:58:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T155845&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68400&fm=149785681814385&tin=02508201610067®Number=0000000000098096&sum=947700 [15:58:41]OFD Sender: Processing packet 68400 [packets to send 26, broken 25] [15:58:41]ProducePacketName [15:58:41]name=ofd_packets/00068400 [15:58:41]OFD Sender: To server: pG, [15:58:41]CommunicateWithHost lk.salyk.kg:30040 [15:58:41]ConnectInit lk.salyk.kg [15:58:41]written 0, free lines is 4095 [15:58:41]Connected sock=9 [15:58:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 9C E2 08 01 46 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 34 FF 03 08 00 03 D0 FB 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 F4 75 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 75 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 89 01 00 00 00 07 04 06 00 F4 75 0E 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 35 E8 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 30 0B 01 00 35 04 06 00 88 3A B2 5B 63 71 FC 59 7C C3 F2 FA 2B 59 [15:58:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 C8 78 47 00 42 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 30 0B 01 00 F4 03 04 00 31 8F 5D 66 B6 04 01 00 00 04 B4 58 77 F9 1E 3A 16 [15:58:41]CommunicateWithHost err = 0 [15:58:41]CheckOFDResponse [15:58:41]1017 (14) - 77093643461234 [15:58:41]1041 (16) - 0000000000965400 [15:58:41]1040 (4) - 68400 [15:58:41]1012 (4) - 03.06.2024 09:38 [15:58:41]1206 (1) - 0 [15:58:41]OFD Sender: Remove packet 68400 [15:58:41]ProducePacketName [15:58:41]name=ofd_packets/00068400 [15:58:41]NVStorageDeleteData [15:58:42]Write to MH i2c: 01 00 00 D2 49 1B [15:58:42]Write i2c OK [15:58:42]MH_I2C_Read... [15:58:42]Read from MH i2c: 01 [15:58:42]MH_I2C_Read... [15:58:42]Read from MH i2c: 01 07 00 [15:58:42]MH_I2C_Read... [15:58:42]Read from MH i2c: 01 07 00 D2 49 00 00 00 00 00 0F 0D 3E [15:58:42]RasterBufferAndPrint [15:58:42]line [15:58:42]line [15:58:42]line [15:58:42]line [15:58:42]line [15:58:42]written 0, free lines is 3349 [15:58:42]MH_Cut [15:58:42]Write to MH i2c: D1 01 00 D9 49 01 F4 [15:58:42]Write i2c OK [15:58:42]MH_I2C_Read... [15:58:42]Read from MH i2c: D1 [15:58:42]MH_I2C_Read... [15:58:42]Read from MH i2c: D1 01 00 [15:58:42]MH_I2C_Read... [15:58:42]Read from MH i2c: D1 01 00 D9 49 00 F3 [15:58:42]Write to MH i2c: 01 00 00 DA 49 23 [15:58:42]Write i2c OK [15:58:42]MH_I2C_Read... [15:58:42]OFD Sender: No OFD packet to send [15:58:42]*** Cut start [15:58:42]*** Partial cut [15:58:42]*** CUTSNS_PIN = 1 [15:58:42]*** CUTSNS_PIN = 0 [15:58:43]*** Brake cut motor [15:58:43]Read from MH i2c: 01 [15:58:43]MH_I2C_Read... [15:58:43]*** Stop cut motor [15:58:43]*** Cut end [15:58:43]Read from MH i2c: 01 07 00 [15:58:43]MH_I2C_Read... [15:58:43]Read from MH i2c: 01 07 00 DA 49 00 00 00 00 00 FF 0F 38 [15:58:43]process_action close_receipt done [15:58:43]requested_data is exist [15:58:43]produce_requested_data [15:58:43]requested_item fm.sn is exist - process it [15:58:43]wFMCommunicate request_size=4 [15:58:43]MH_SAM_APDU [15:58:43]CAPDU: 80 11 00 00 [15:58:43]Write to MH i2c: E2 08 00 DB 49 80 11 00 00 00 00 00 00 9E [15:58:43]Write i2c OK [15:58:43]MH_I2C_Read... [15:58:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:58:43]Read from MH i2c: E2 [15:58:43]MH_I2C_Read... [15:58:43]Read from MH i2c: E2 17 00 [15:58:43]MH_I2C_Read... [15:58:43]Read from MH i2c: E2 17 00 DB 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 E9 [15:58:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:58:43]wFMCommunicate OK [15:58:43]requested_item fd.num is exist - process it [15:58:43]SAM_PROTO_GetFieldsCounters [15:58:43]wFMCommunicate request_size=4 [15:58:43]MH_SAM_APDU [15:58:43]CAPDU: 80 13 00 00 [15:58:43]Write to MH i2c: E2 08 00 DC 49 80 13 00 00 00 00 00 00 A1 [15:58:43]Write i2c OK [15:58:43]MH_I2C_Read... [15:58:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:58:43]Read from MH i2c: E2 [15:58:43]MH_I2C_Read... [15:58:43]Read from MH i2c: E2 62 00 [15:58:43]MH_I2C_Read... [15:58:43]Read from MH i2c: E2 62 00 DC 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 30 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 F8 [15:58:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 30 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:58:43]wFMCommunicate OK [15:58:43]SAM_PROTO_GetFieldsCounters done [15:58:43]requested_item shift.num is exist - process it [15:58:43]requested_item shift.opened is exist - process it [15:58:43]req_shift_opened [15:58:43]FM_GetShiftState [15:58:43]SAM_PROTO_GetShiftState [15:58:43]wFMCommunicate request_size=4 [15:58:43]MH_SAM_APDU [15:58:43]CAPDU: 80 13 01 00 [15:58:43]Write to MH i2c: E2 08 00 DD 49 80 13 01 00 00 00 00 00 A3 [15:58:43]Write i2c OK [15:58:43]MH_I2C_Read... [15:58:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:58:43]Read from MH i2c: E2 [15:58:43]MH_I2C_Read... [15:58:43]Read from MH i2c: E2 0E 00 [15:58:43]MH_I2C_Read... [15:58:43]Read from MH i2c: E2 0E 00 DD 49 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 7E [15:58:43]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [15:58:43]wFMCommunicate OK [15:58:43]SAM_PROTO_GetShiftState done [15:58:43]FM_GetShiftState done [15:58:43]req_shift_opened done [15:58:43]requested_item shift.open_date is exist - process it [15:58:43]req_shift_open_date [15:58:43]req_shift_open_date done [15:58:43]produce_requested_data done [15:58:43]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68400,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [15:58:43]process_action_free close_receipt [15:58:43]json_value_free [15:58:43]json_value_free done [15:58:43]process_json_proto returns [15:58:43]Send response to host [15:58:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68400,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [15:58:43]free response buf [15:58:43]execute_script done [15:58:43]execute_script returns [15:58:43]free content buf [15:58:43]Sock 6.Close socket [15:58:43]Sock 6.Thread stoped [15:58:47]OFD Sender: No OFD packet to send [15:58:52]OFD Sender: No OFD packet to send [15:58:55]accept exits with 5 [15:58:55]New connection [15:58:55]New thread 3066543460 created [15:58:55]Thread 3066686820 joined [15:58:55]Waiting for new connection... [15:58:55] Sock 5.Parse request [15:58:55]Sock 5.Check first char [15:58:55]Sock 5.First char is OK [15:58:55]request: POST /json_proto HTTP/1.0 [15:58:55]Method: POST [15:58:55]URL: /json_proto [15:58:55]Method is POST - this is cgi request [15:58:55]url: /json_proto [15:58:55]query_string will be loaded in cgi processing [15:58:55]execute_cgi json_proto POST (null) [15:58:55]execute_cgi path=json_proto method=POST [15:58:55]POST find Content-Length [15:58:55]Host: 172.17.36.132:8080 [15:58:55]Content-Length: 648 [15:58:55]Content-Type: application/json [15:58:55] [15:58:55]POST finish read [15:58:55]Found Content-Length = 648 [15:58:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706499", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 130.000, "sum" : 9477.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 9477.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:58:55]execute_script... [15:58: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)706499", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 130.000, "sum" : 9477.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 9477.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:58:55]POST & json_proto [15:58:55]process_json_proto [15:58:55]json parsed OK: [15:58:55]protocol is kg_v1.0 [15:58:55]action value=close_receipt [15:58:55]process_action close_receipt [15:58:55]cmd_close_receipt [15:58:55]MH_GetDate [15:58:55]Write to MH i2c: F0 00 00 DE 49 16 [15:58:55]Write i2c OK [15:58:55]MH_I2C_Read... [15:58:55]Read from MH i2c: F0 [15:58:55]MH_I2C_Read... [15:58:55]Read from MH i2c: F0 09 00 [15:58:55]MH_I2C_Read... [15:58:55]Read from MH i2c: F0 09 00 DE 49 00 45 E8 5D 66 B2 22 B0 64 F7 [15:58:55]GetLastDocTimeStamp 1717430325 [15:58:55]current date 1717430341 [15:58:55]FM_GetShiftState [15:58:55]SAM_PROTO_GetShiftState [15:58:55]wFMCommunicate request_size=4 [15:58:55]MH_SAM_APDU [15:58:55]CAPDU: 80 13 01 00 [15:58:55]Write to MH i2c: E2 08 00 DF 49 80 13 01 00 00 00 00 00 A5 [15:58:55]Write i2c OK [15:58:55]MH_I2C_Read... [15:58:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:58:55]Read from MH i2c: E2 [15:58:55]MH_I2C_Read... [15:58:55]Read from MH i2c: E2 0E 00 [15:58:55]MH_I2C_Read... [15:58:55]Read from MH i2c: E2 0E 00 DF 49 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 80 [15:58:55]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [15:58:55]wFMCommunicate OK [15:58:55]SAM_PROTO_GetShiftState done [15:58:55]FM_GetShiftState done [15:58:55]opened in 1717378033 [15:58:55]opened+sec_in_day 1717464433 [15:58:55]quantity*price = 947700 [15:58:55]sum+1 = 947701 [15:58:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 9477.00 НСП 1% : 83.87 НДС 12% : 1006.41 Наличными: 9477.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 147 03.06.2024 15:59 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68401 ФПД: 4934158312548 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T155901&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68401&fm=4934158312548&tin=02508201610067®Number=0000000000098096&sum=947700 [15:58:56]StoreToDocumentArchive [15:58:56]shift 324 fd 68401 [15:58:56]save to /storage/0324/doc_00068401 [15:58:56]save last doc name /storage/0324/doc_00068401 to /storage/kkm_last_doc_name [15:58:56]save OK [15:58:56]Clear old archive folders... [15:58:56]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:58:56]tlvbuf is 00378620 [15:58:56]SAM_PROTO_ClearQueue [15:58:56]wFMCommunicate request_size=4 [15:58:56]MH_SAM_APDU [15:58:56]CAPDU: 80 09 00 00 [15:58:56]Write to MH i2c: E2 08 00 EC 49 80 09 00 00 00 00 00 00 A7 [15:58:56]Write i2c OK [15:58:56]MH_I2C_Read... [15:58:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:58:56]Read from MH i2c: E2 [15:58:56]MH_I2C_Read... [15:58:56]Read from MH i2c: E2 03 00 [15:58:56]MH_I2C_Read... [15:58:56]Read from MH i2c: E2 03 00 EC 49 00 90 00 A9 [15:58:56]RAPDU: 90 00 [15:58:56]wFMCommunicate OK [15:58:56]SAM_PROTO_ClearQueue done [15:58:56]KKMCreateOFDPacket [15:58:56]OFDProtocolAddRootSTLVToBuf [15:58:56]FM_MakeSignedData [15:58:56]FM_MakeSignedData [15:58:56]SAM_PROTO_SignData [15:58:56]wFMCommunicate request_size=4 [15:58:56]MH_SAM_APDU [15:58:56]CAPDU: 80 0D 01 02 [15:58:56]Write to MH i2c: E2 08 00 ED 49 80 0D 01 02 00 00 00 00 AF [15:58:56]Write i2c OK [15:58:56]MH_I2C_Read... [15:58:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:58:56]Read from MH i2c: E2 [15:58:56]MH_I2C_Read... [15:58:56]Read from MH i2c: E2 03 00 [15:58:56]MH_I2C_Read... [15:58:56]Read from MH i2c: E2 03 00 ED 49 00 90 00 AA [15:58:56]RAPDU: 90 00 [15:58:56]wFMCommunicate OK [15:58:56]wFMCommunicate request_size=255 [15:58:56]MH_SAM_APDU [15:58:56]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 34 FF 03 08 00 03 D0 FB 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 F4 75 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 75 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 89 01 00 00 00 07 04 06 00 F4 75 0E 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 45 E8 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 31 0B 01 00 35 04 06 00 [15:58:56]Write to MH i2c: E2 02 01 EE 49 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 34 FF 03 08 00 03 D0 FB 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 F4 75 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 75 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 89 01 00 00 00 07 04 06 00 F4 75 0E 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 45 E8 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 31 0B 01 00 35 04 06 00 00 00 4C [15:58:56]Write i2c OK [15:58:56]MH_I2C_Read... [15:58:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:58:57]Read from MH i2c: E2 [15:58:57]MH_I2C_Read... [15:58:57]Read from MH i2c: E2 03 00 [15:58:57]MH_I2C_Read... [15:58:57]Read from MH i2c: E2 03 00 EE 49 00 90 00 AB [15:58:57]RAPDU: 90 00 [15:58:57]wFMCommunicate OK [15:58:57]wFMCommunicate request_size=11 [15:58:57]MH_SAM_APDU [15:58:57]CAPDU: 80 0D 02 02 06 04 7C D2 C0 E4 64 [15:58:57]Write to MH i2c: E2 0E 00 EF 49 80 0D 02 02 06 00 04 7C D2 C0 E4 64 00 00 18 [15:58:57]Write i2c OK [15:58:57]MH_I2C_Read... [15:58:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:58:57]Read from MH i2c: E2 [15:58:57]MH_I2C_Read... [15:58:57]Read from MH i2c: E2 03 00 [15:58:57]MH_I2C_Read... [15:58:57]Read from MH i2c: E2 03 00 EF 49 00 90 00 AC [15:58:57]RAPDU: 90 00 [15:58:57]wFMCommunicate OK [15:58:57]wFMCommunicate request_size=4 [15:58:57]MH_SAM_APDU [15:58:57]CAPDU: 80 0D 03 02 [15:58:57]Write to MH i2c: E2 08 00 F0 49 80 0D 03 02 00 00 00 00 B4 [15:58:57]Write i2c OK [15:58:57]MH_I2C_Read... [15:58:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:58:57]Read from MH i2c: E2 [15:58:57]MH_I2C_Read... [15:58:57]Read from MH i2c: E2 0B 00 [15:58:57]MH_I2C_Read... [15:58:57]Read from MH i2c: E2 0B 00 F0 49 00 09 F3 CB 9E BB F7 D3 2C 90 00 CB [15:58:57]RAPDU: 09 F3 CB 9E BB F7 D3 2C 90 00 [15:58:57]wFMCommunicate OK [15:58:57]SAM_PROTO_SignData done [15:58:57]FM_MakeSignedData done [15:58:57]CreateOFDProtocolMessage [15:58:57]wFMCommunicate request_size=4 [15:58:57]MH_SAM_APDU [15:58:57]CAPDU: 80 11 00 00 [15:58:57]Write to MH i2c: E2 08 00 F1 49 80 11 00 00 00 00 00 00 B4 [15:58:57]Write i2c OK [15:58:57]MH_I2C_Read... [15:58:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:58:57]Read from MH i2c: E2 [15:58:57]MH_I2C_Read... [15:58:57]Read from MH i2c: E2 17 00 [15:58:57]MH_I2C_Read... [15:58:57]Read from MH i2c: E2 17 00 F1 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 FF [15:58:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:58:57]wFMCommunicate OK [15:58:57]CreateOFDProtocolMessage done [15:58:57]OFDSenderStorePacket 68401 [15:58:57]StoreOFDPacket docnum=68401 [15:58:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 90 4D 08 01 BD 10 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 34 FF 03 08 00 03 D0 FB 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 F4 75 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 75 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 89 01 00 00 00 07 04 06 00 F4 75 0E 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 45 E8 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 31 0B 01 00 35 04 06 00 04 7C D2 C0 E4 64 09 F3 CB 9E BB F7 D3 2C [15:58:57]CheckFolder [15:58:57]dirname=/storage/ofd_packets [15:58:57]CheckFolder done [15:58:57]ProducePacketName [15:58:57]name=ofd_packets/00068401 [15:58:57]NVStorageSaveData ofd_packets/00068401 [15:58:57]File name is /storage/ofd_packets/00068401 [15:58:57]Write 302 bytes [15:58:57]NVStorageSaveData done [15:58:57]OFDSenderStorePacket done [15:58:57]KKMCreateOFDPacket done [15:58:57]NVStorageSaveData kkm_last_timestamp [15:58:57]File name is /storage/kkm_last_timestamp [15:58:57]Write 4 bytes [15:58:57]NVStorageSaveData done [15:58:57]ExternCall_PrintAddStr [15:58:57]wPrintStart [15:58:57]Write to MH i2c: 01 00 00 F2 49 3B [15:58:57]Write i2c OK [15:58:57]MH_I2C_Read... [15:58:57]Read from MH i2c: 01 [15:58:57]MH_I2C_Read... [15:58:57]Read from MH i2c: 01 07 00 [15:58:57]MH_I2C_Read... [15:58:57]Read from MH i2c: 01 07 00 F2 49 00 00 00 00 00 FF 0F 50 [15:58:57]RasterBufferAndPrint [15:58:57]line Счет N : (1)706499 [15:58:57]line ИНН: 02508201610067 [15:58:57]line Контрольно-Кассовый Чек [15:58:57]line ПРОДАЖА [15:58:57]line ТРК (МРК, ГНК) : 11 [15:58:57]line Товар: 2710194210 [15:58:57]line ДТ(л)-К-4 [15:58:57]line 130.000 * 72.90 [15:58:57]line = 9477.00 [15:58:57]line НДС 12% НСП 1% [15:58:57]line > о реализуемом товаре [15:58:57]line ИТОГО: 9477.00 [15:58:57]line НСП 1% : 83.87 [15:58:57]line НДС 12% : 1006.41 [15:58:57]line Наличными: 9477.00 [15:58:57]line Безнал.: 0.00 [15:58:57]line Место: АЗС № 62 "Партнер Нефть" [15:58:57]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [15:58:57]line СНО: Общий режим [15:58:57]line Чек 147 03.06.2024 15:59 [15:58:57]line Смена: 324 ФФД: 1.0 [15:58:57]line ЗНМ: 0300000181 [15:58:57]line РНМ: 0000000000098096 [15:58:57]line Версия ККМ: 001 [15:58:57]line ФМ: 0000000000965400 [15:58:57]line ФД: 68401 [15:58:57]line ФПД: 4934158312548 [15:58:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T155901&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68401&fm=4934158312548&tin=02508201610067®Number=0000000000098096&sum=947700 [15:58:57]written 0, free lines is 4095 [15:58:57]OFD Sender: Processing packet 68401 [packets to send 26, broken 25] [15:58:57]ProducePacketName [15:58:57]name=ofd_packets/00068401 [15:58:57]OFD Sender: To server: pG, [15:58:57]CommunicateWithHost lk.salyk.kg:30040 [15:58:57]ConnectInit lk.salyk.kg [15:58:57]Connected sock=9 [15:58:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 90 4D 08 01 BD 10 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 34 FF 03 08 00 03 D0 FB 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 F4 75 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 75 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 89 01 00 00 00 07 04 06 00 F4 75 0E 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 45 E8 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 31 0B 01 00 35 04 06 00 04 7C D2 C0 E4 64 09 F3 CB 9E BB F7 D3 2C [15:58:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 D7 DA 47 00 4F 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 31 0B 01 00 F4 03 04 00 40 8F 5D 66 B6 04 01 00 00 CD 09 08 A1 D6 59 51 56 [15:58:57]CommunicateWithHost err = 0 [15:58:57]CheckOFDResponse [15:58:57]1017 (14) - 77093643461234 [15:58:57]1041 (16) - 0000000000965400 [15:58:57]1040 (4) - 68401 [15:58:57]1012 (4) - 03.06.2024 09:39 [15:58:57]1206 (1) - 0 [15:58:57]OFD Sender: Remove packet 68401 [15:58:57]ProducePacketName [15:58:57]name=ofd_packets/00068401 [15:58:57]NVStorageDeleteData [15:58:57]Write to MH i2c: 01 00 00 1A 4A 64 [15:58:57]Write i2c OK [15:58:57]MH_I2C_Read... [15:58:57]Read from MH i2c: 01 [15:58:57]MH_I2C_Read... [15:58:57]Read from MH i2c: 01 07 00 [15:58:57]MH_I2C_Read... [15:58:57]Read from MH i2c: 01 07 00 1A 4A 00 00 00 00 00 0E 0D 86 [15:58:57]RasterBufferAndPrint [15:58:57]line [15:58:57]line [15:58:57]line [15:58:57]line [15:58:57]line [15:58:57]written 0, free lines is 3348 [15:58:57]MH_Cut [15:58:57]Write to MH i2c: D1 01 00 21 4A 01 3D [15:58:57]Write i2c OK [15:58:57]MH_I2C_Read... [15:58:57]Read from MH i2c: D1 [15:58:57]MH_I2C_Read... [15:58:57]Read from MH i2c: D1 01 00 [15:58:57]MH_I2C_Read... [15:58:57]Read from MH i2c: D1 01 00 21 4A 00 3C [15:58:57]Write to MH i2c: 01 00 00 22 4A 6C [15:58:57]Write i2c OK [15:58:57]MH_I2C_Read... [15:58:58]OFD Sender: No OFD packet to send [15:58:58]*** Cut start [15:58:58]*** Partial cut [15:58:58]*** CUTSNS_PIN = 1 [15:58:58]*** CUTSNS_PIN = 0 [15:58:58]*** Brake cut motor [15:58:59]Read from MH i2c: 01 [15:58:59]MH_I2C_Read... [15:58:59]*** Stop cut motor [15:58:59]*** Cut end [15:58:59]Read from MH i2c: 01 07 00 [15:58:59]MH_I2C_Read... [15:58:59]Read from MH i2c: 01 07 00 22 4A 00 00 00 00 00 FF 0F 81 [15:58:59]process_action close_receipt done [15:58:59]requested_data is exist [15:58:59]produce_requested_data [15:58:59]requested_item fm.sn is exist - process it [15:58:59]wFMCommunicate request_size=4 [15:58:59]MH_SAM_APDU [15:58:59]CAPDU: 80 11 00 00 [15:58:59]Write to MH i2c: E2 08 00 23 4A 80 11 00 00 00 00 00 00 E7 [15:58:59]Write i2c OK [15:58:59]MH_I2C_Read... [15:58:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:58:59]Read from MH i2c: E2 [15:58:59]MH_I2C_Read... [15:58:59]Read from MH i2c: E2 17 00 [15:58:59]MH_I2C_Read... [15:58:59]Read from MH i2c: E2 17 00 23 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 32 [15:58:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:58:59]wFMCommunicate OK [15:58:59]requested_item fd.num is exist - process it [15:58:59]SAM_PROTO_GetFieldsCounters [15:58:59]wFMCommunicate request_size=4 [15:58:59]MH_SAM_APDU [15:58:59]CAPDU: 80 13 00 00 [15:58:59]Write to MH i2c: E2 08 00 24 4A 80 13 00 00 00 00 00 00 EA [15:58:59]Write i2c OK [15:58:59]MH_I2C_Read... [15:58:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:58:59]Read from MH i2c: E2 [15:58:59]MH_I2C_Read... [15:58:59]Read from MH i2c: E2 62 00 [15:58:59]MH_I2C_Read... [15:58:59]Read from MH i2c: E2 62 00 24 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 31 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 45 [15:58:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 31 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:58:59]wFMCommunicate OK [15:58:59]SAM_PROTO_GetFieldsCounters done [15:58:59]requested_item shift.num is exist - process it [15:58:59]requested_item shift.opened is exist - process it [15:58:59]req_shift_opened [15:58:59]FM_GetShiftState [15:58:59]SAM_PROTO_GetShiftState [15:58:59]wFMCommunicate request_size=4 [15:58:59]MH_SAM_APDU [15:58:59]CAPDU: 80 13 01 00 [15:58:59]Write to MH i2c: E2 08 00 25 4A 80 13 01 00 00 00 00 00 EC [15:58:59]Write i2c OK [15:58:59]MH_I2C_Read... [15:58:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:58:59]Read from MH i2c: E2 [15:58:59]MH_I2C_Read... [15:58:59]Read from MH i2c: E2 0E 00 [15:58:59]MH_I2C_Read... [15:58:59]Read from MH i2c: E2 0E 00 25 4A 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 C7 [15:58:59]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [15:58:59]wFMCommunicate OK [15:58:59]SAM_PROTO_GetShiftState done [15:58:59]FM_GetShiftState done [15:58:59]req_shift_opened done [15:58:59]requested_item shift.open_date is exist - process it [15:58:59]req_shift_open_date [15:58:59]req_shift_open_date done [15:58:59]produce_requested_data done [15:58:59]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68401,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [15:58:59]process_action_free close_receipt [15:58:59]json_value_free [15:58:59]json_value_free done [15:58:59]process_json_proto returns [15:58:59]Send response to host [15:58:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68401,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [15:58:59]free response buf [15:58:59]execute_script done [15:58:59]execute_script returns [15:58:59]free content buf [15:58:59]Sock 5.Close socket [15:58:59]Sock 5.Thread stoped [15:59:03]OFD Sender: No OFD packet to send [15:59:07]accept exits with 6 [15:59:07]New connection [15:59:07]New thread 3066686820 created [15:59:07]Thread 3066543460 joined [15:59:07]Waiting for new connection... [15:59:07] Sock 6.Parse request [15:59:07]Sock 6.Check first char [15:59:07]Sock 6.First char is OK [15:59:07]request: POST /json_proto HTTP/1.0 [15:59:07]Method: POST [15:59:07]URL: /json_proto [15:59:07]Method is POST - this is cgi request [15:59:07]url: /json_proto [15:59:07]query_string will be loaded in cgi processing [15:59:07]execute_cgi json_proto POST (null) [15:59:07]execute_cgi path=json_proto method=POST [15:59:07]POST find Content-Length [15:59:07]Host: 172.17.36.132:8080 [15:59:07]Content-Length: 704 [15:59:07]Content-Type: application/json [15:59:07] [15:59:07]POST finish read [15:59:07]Found Content-Length = 704 [15:59:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 68400, "base_FM": "0000000000965400", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706498", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 130.000, "sum" : 9477.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 9477.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:59:07]execute_script... [15:59:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 68400, "base_FM": "0000000000965400", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706498", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 130.000, "sum" : 9477.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 9477.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:59:07]POST & json_proto [15:59:07]process_json_proto [15:59:07]json parsed OK: [15:59:07]protocol is kg_v1.0 [15:59:07]action value=close_receipt [15:59:07]process_action close_receipt [15:59:07]cmd_close_receipt [15:59:07]MH_GetDate [15:59:07]Write to MH i2c: F0 00 00 26 4A 5F [15:59:07]Write i2c OK [15:59:07]MH_I2C_Read... [15:59:07]Read from MH i2c: F0 [15:59:07]MH_I2C_Read... [15:59:07]Read from MH i2c: F0 09 00 [15:59:07]MH_I2C_Read... [15:59:07]Read from MH i2c: F0 09 00 26 4A 00 51 E8 5D 66 B2 22 B0 64 4C [15:59:07]GetLastDocTimeStamp 1717430341 [15:59:07]current date 1717430353 [15:59:07]FM_GetShiftState [15:59:07]SAM_PROTO_GetShiftState [15:59:07]wFMCommunicate request_size=4 [15:59:07]MH_SAM_APDU [15:59:07]CAPDU: 80 13 01 00 [15:59:07]Write to MH i2c: E2 08 00 27 4A 80 13 01 00 00 00 00 00 EE [15:59:07]Write i2c OK [15:59:07]MH_I2C_Read... [15:59:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:07]Read from MH i2c: E2 [15:59:07]MH_I2C_Read... [15:59:07]Read from MH i2c: E2 0E 00 [15:59:07]MH_I2C_Read... [15:59:07]Read from MH i2c: E2 0E 00 27 4A 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 C9 [15:59:07]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [15:59:07]wFMCommunicate OK [15:59:07]SAM_PROTO_GetShiftState done [15:59:07]FM_GetShiftState done [15:59:07]opened in 1717378033 [15:59:07]opened+sec_in_day 1717464433 [15:59:07]quantity*price = 947700 [15:59:07]sum+1 = 947701 [15:59:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 9477.00 НСП 1% : 83.87 НДС 12% : 1006.41 Наличными: 9477.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 148 03.06.2024 15:59 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФД осн.: 68400 ФМ осн.: 0000000000965400 ФМ: 0000000000965400 ФД: 68402 ФПД: 230725094154633 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T155913&type=2&operation_type=1&fn_number=0000000000965400&fd_number=68402&fm=230725094154633&tin=02508201610067®Number=0000000000098096&sum=947700 [15:59:08]StoreToDocumentArchive [15:59:08]shift 324 fd 68402 [15:59:08]save to /storage/0324/doc_00068402 [15:59:08]save last doc name /storage/0324/doc_00068402 to /storage/kkm_last_doc_name [15:59:08]save OK [15:59:08]Clear old archive folders... [15:59:08]ProcessDocumentItem done err = 0, tmpTLVsize=280 [15:59:08]tlvbuf is B6F176E0 [15:59:08]SAM_PROTO_ClearQueue [15:59:08]wFMCommunicate request_size=4 [15:59:08]MH_SAM_APDU [15:59:08]CAPDU: 80 09 00 00 [15:59:08]Write to MH i2c: E2 08 00 36 4A 80 09 00 00 00 00 00 00 F2 [15:59:08]Write i2c OK [15:59:08]MH_I2C_Read... [15:59:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:59:08]Read from MH i2c: E2 [15:59:08]MH_I2C_Read... [15:59:08]Read from MH i2c: E2 03 00 [15:59:08]MH_I2C_Read... [15:59:08]Read from MH i2c: E2 03 00 36 4A 00 90 00 F4 [15:59:08]RAPDU: 90 00 [15:59:08]wFMCommunicate OK [15:59:08]SAM_PROTO_ClearQueue done [15:59:08]KKMCreateOFDPacket [15:59:08]OFDProtocolAddRootSTLVToBuf [15:59:08]FM_MakeSignedData [15:59:08]FM_MakeSignedData [15:59:08]SAM_PROTO_SignData [15:59:08]wFMCommunicate request_size=4 [15:59:08]MH_SAM_APDU [15:59:08]CAPDU: 80 0D 01 02 [15:59:08]Write to MH i2c: E2 08 00 37 4A 80 0D 01 02 00 00 00 00 FA [15:59:08]Write i2c OK [15:59:08]MH_I2C_Read... [15:59:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:59:08]Read from MH i2c: E2 [15:59:08]MH_I2C_Read... [15:59:08]Read from MH i2c: E2 03 00 [15:59:08]MH_I2C_Read... [15:59:08]Read from MH i2c: E2 03 00 37 4A 00 90 00 F5 [15:59:08]RAPDU: 90 00 [15:59:08]wFMCommunicate OK [15:59:08]wFMCommunicate request_size=255 [15:59:08]MH_SAM_APDU [15:59:08]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 02 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 34 FF 03 08 00 03 D0 FB 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 F4 75 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 75 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 89 01 00 00 00 07 04 06 00 F4 75 0E 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 51 E8 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 27 04 04 00 30 0B 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 11 04 10 00 [15:59:08]Write to MH i2c: E2 02 01 38 4A 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 02 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 34 FF 03 08 00 03 D0 FB 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 F4 75 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 75 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 89 01 00 00 00 07 04 06 00 F4 75 0E 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 51 E8 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 27 04 04 00 30 0B 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 11 04 10 00 00 00 D5 [15:59:08]Write i2c OK [15:59:08]MH_I2C_Read... [15:59:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:08]Read from MH i2c: E2 [15:59:08]MH_I2C_Read... [15:59:08]Read from MH i2c: E2 03 00 [15:59:08]MH_I2C_Read... [15:59:08]Read from MH i2c: E2 03 00 38 4A 00 90 00 F6 [15:59:08]RAPDU: 90 00 [15:59:08]wFMCommunicate OK [15:59:08]wFMCommunicate request_size=39 [15:59:08]MH_SAM_APDU [15:59:08]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 32 0B 01 00 35 04 06 00 D1 D7 DF 47 21 89 [15:59:08]Write to MH i2c: E2 2A 00 39 4A 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 32 0B 01 00 35 04 06 00 D1 D7 DF 47 21 89 00 00 66 [15:59:08]Write i2c OK [15:59:08]MH_I2C_Read... [15:59:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:08]Read from MH i2c: E2 [15:59:08]MH_I2C_Read... [15:59:08]Read from MH i2c: E2 03 00 [15:59:08]MH_I2C_Read... [15:59:08]Read from MH i2c: E2 03 00 39 4A 00 90 00 F7 [15:59:08]RAPDU: 90 00 [15:59:08]wFMCommunicate OK [15:59:08]wFMCommunicate request_size=4 [15:59:08]MH_SAM_APDU [15:59:08]CAPDU: 80 0D 03 02 [15:59:08]Write to MH i2c: E2 08 00 3A 4A 80 0D 03 02 00 00 00 00 FF [15:59:08]Write i2c OK [15:59:08]MH_I2C_Read... [15:59:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:59:09]Read from MH i2c: E2 [15:59:09]MH_I2C_Read... [15:59:09]Read from MH i2c: E2 0B 00 [15:59:09]MH_I2C_Read... [15:59:09]Read from MH i2c: E2 0B 00 3A 4A 00 87 39 7C 9F 54 EC F7 01 90 00 13 [15:59:09]RAPDU: 87 39 7C 9F 54 EC F7 01 90 00 [15:59:09]wFMCommunicate OK [15:59:09]SAM_PROTO_SignData done [15:59:09]FM_MakeSignedData done [15:59:09]CreateOFDProtocolMessage [15:59:09]wFMCommunicate request_size=4 [15:59:09]MH_SAM_APDU [15:59:09]CAPDU: 80 11 00 00 [15:59:09]Write to MH i2c: E2 08 00 3B 4A 80 11 00 00 00 00 00 00 FF [15:59:09]Write i2c OK [15:59:09]MH_I2C_Read... [15:59:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:09]Read from MH i2c: E2 [15:59:09]MH_I2C_Read... [15:59:09]Read from MH i2c: E2 17 00 [15:59:09]MH_I2C_Read... [15:59:09]Read from MH i2c: E2 17 00 3B 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 4A [15:59:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:59:09]wFMCommunicate OK [15:59:09]CreateOFDProtocolMessage done [15:59:09]OFDSenderStorePacket 68402 [15:59:09]StoreOFDPacket docnum=68402 [15:59:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 2C 01 00 00 B0 DA 24 01 97 A4 5A 03 01 00 03 00 18 01 1E 04 01 00 02 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 34 FF 03 08 00 03 D0 FB 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 F4 75 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 75 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 89 01 00 00 00 07 04 06 00 F4 75 0E 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 51 E8 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 27 04 04 00 30 0B 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 32 0B 01 00 35 04 06 00 D1 D7 DF 47 21 89 87 39 7C 9F 54 EC F7 01 [15:59:09]CheckFolder [15:59:09]dirname=/storage/ofd_packets [15:59:09]CheckFolder done [15:59:09]ProducePacketName [15:59:09]name=ofd_packets/00068402 [15:59:09]NVStorageSaveData ofd_packets/00068402 [15:59:09]File name is /storage/ofd_packets/00068402 [15:59:09]Write 330 bytes [15:59:09]NVStorageSaveData done [15:59:09]OFDSenderStorePacket done [15:59:09]KKMCreateOFDPacket done [15:59:09]NVStorageSaveData kkm_last_timestamp [15:59:09]File name is /storage/kkm_last_timestamp [15:59:09]Write 4 bytes [15:59:09]NVStorageSaveData done [15:59:09]ExternCall_PrintAddStr [15:59:09]wPrintStart [15:59:09]Write to MH i2c: 01 00 00 3C 4A 86 [15:59:09]Write i2c OK [15:59:09]MH_I2C_Read... [15:59:09]Read from MH i2c: 01 [15:59:09]MH_I2C_Read... [15:59:09]Read from MH i2c: 01 07 00 [15:59:09]MH_I2C_Read... [15:59:09]Read from MH i2c: 01 07 00 3C 4A 00 00 00 00 00 FF 0F 9B [15:59:09]RasterBufferAndPrint [15:59:09]line Счет N : (1)706498 [15:59:09]line ИНН: 02508201610067 [15:59:09]line Контрольно-Кассовый Чек [15:59:09]line ВОЗВРАТ ПРОДАЖИ [15:59:09]line ТРК (МРК, ГНК) : 21 [15:59:09]line Товар: 2710194210 [15:59:09]line ДТ(л)-К-4 [15:59:09]line 130.000 * 72.90 [15:59:09]line = 9477.00 [15:59:09]line НДС 12% НСП 1% [15:59:09]line > о реализуемом товаре [15:59:09]line ИТОГО: 9477.00 [15:59:09]line НСП 1% : 83.87 [15:59:09]line НДС 12% : 1006.41 [15:59:09]line Наличными: 9477.00 [15:59:09]line Безнал.: 0.00 [15:59:09]line Место: АЗС № 62 "Партнер Нефть" [15:59:09]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [15:59:09]line СНО: Общий режим [15:59:09]line Чек 148 03.06.2024 15:59 [15:59:09]line Смена: 324 ФФД: 1.0 [15:59:09]line ЗНМ: 0300000181 [15:59:09]line РНМ: 0000000000098096 [15:59:09]line Версия ККМ: 001 [15:59:09]line ФД осн.: 68400 [15:59:09]line ФМ осн.: 0000000000965400 [15:59:09]line ФМ: 0000000000965400 [15:59:09]line ФД: 68402 [15:59:09]line ФПД: 230725094154633 [15:59:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T155913&type=2&operation_type=1&fn_number=0000000000965400&fd_number=68402&fm=230725094154633&tin=02508201610067®Number=0000000000098096&sum=947700 [15:59:09]OFD Sender: Processing packet 68402 [packets to send 26, broken 25] [15:59:09]ProducePacketName [15:59:09]name=ofd_packets/00068402 [15:59:09]OFD Sender: To server: pG, [15:59:09]CommunicateWithHost lk.salyk.kg:30040 [15:59:09]ConnectInit lk.salyk.kg [15:59:09]written 0, free lines is 4095 [15:59:09]Connected sock=7 [15:59:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 2C 01 00 00 B0 DA 24 01 97 A4 5A 03 01 00 03 00 18 01 1E 04 01 00 02 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 34 FF 03 08 00 03 D0 FB 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 F4 75 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 75 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 89 01 00 00 00 07 04 06 00 F4 75 0E 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 51 E8 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 27 04 04 00 30 0B 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 32 0B 01 00 35 04 06 00 D1 D7 DF 47 21 89 87 39 7C 9F 54 EC F7 01 [15:59:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 06 10 47 00 86 D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 32 0B 01 00 F4 03 04 00 4C 8F 5D 66 B6 04 01 00 00 9C F5 50 EA 8D BB F0 AB [15:59:09]CommunicateWithHost err = 0 [15:59:09]CheckOFDResponse [15:59:09]1017 (14) - 77093643461234 [15:59:09]1041 (16) - 0000000000965400 [15:59:09]1040 (4) - 68402 [15:59:09]1012 (4) - 03.06.2024 09:39 [15:59:09]1206 (1) - 0 [15:59:09]OFD Sender: Remove packet 68402 [15:59:09]ProducePacketName [15:59:09]name=ofd_packets/00068402 [15:59:09]NVStorageDeleteData [15:59:09]Write to MH i2c: 01 00 00 66 4A B0 [15:59:09]Write i2c OK [15:59:09]MH_I2C_Read... [15:59:09]Read from MH i2c: 01 [15:59:09]MH_I2C_Read... [15:59:09]Read from MH i2c: 01 07 00 [15:59:09]MH_I2C_Read... [15:59:09]Read from MH i2c: 01 07 00 66 4A 00 00 00 00 00 FF 0C C2 [15:59:09]RasterBufferAndPrint [15:59:09]line [15:59:09]line [15:59:09]line [15:59:09]line [15:59:09]line [15:59:09]written 0, free lines is 3336 [15:59:09]MH_Cut [15:59:09]Write to MH i2c: D1 01 00 6D 4A 01 89 [15:59:09]Write i2c OK [15:59:09]MH_I2C_Read... [15:59:09]Read from MH i2c: D1 [15:59:09]MH_I2C_Read... [15:59:09]Read from MH i2c: D1 01 00 [15:59:09]MH_I2C_Read... [15:59:09]Read from MH i2c: D1 01 00 6D 4A 00 88 [15:59:09]Write to MH i2c: 01 00 00 6E 4A B8 [15:59:09]Write i2c OK [15:59:09]MH_I2C_Read... [15:59:10]OFD Sender: No OFD packet to send [15:59:10]*** Cut start [15:59:10]*** Partial cut [15:59:10]*** CUTSNS_PIN = 1 [15:59:10]*** CUTSNS_PIN = 0 [15:59:10]*** Brake cut motor [15:59:11]Read from MH i2c: 01 [15:59:11]MH_I2C_Read... [15:59:11]*** Stop cut motor [15:59:11]*** Cut end [15:59:11]Read from MH i2c: 01 07 00 [15:59:11]MH_I2C_Read... [15:59:11]Read from MH i2c: 01 07 00 6E 4A 00 00 00 00 00 FF 0F CD [15:59:11]process_action close_receipt done [15:59:11]requested_data is exist [15:59:11]produce_requested_data [15:59:11]requested_item fm.sn is exist - process it [15:59:11]wFMCommunicate request_size=4 [15:59:11]MH_SAM_APDU [15:59:11]CAPDU: 80 11 00 00 [15:59:11]Write to MH i2c: E2 08 00 6F 4A 80 11 00 00 00 00 00 00 33 [15:59:11]Write i2c OK [15:59:11]MH_I2C_Read... [15:59:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:11]Read from MH i2c: E2 [15:59:11]MH_I2C_Read... [15:59:11]Read from MH i2c: E2 17 00 [15:59:11]MH_I2C_Read... [15:59:11]Read from MH i2c: E2 17 00 6F 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 7E [15:59:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:59:11]wFMCommunicate OK [15:59:11]requested_item fd.num is exist - process it [15:59:11]SAM_PROTO_GetFieldsCounters [15:59:11]wFMCommunicate request_size=4 [15:59:11]MH_SAM_APDU [15:59:11]CAPDU: 80 13 00 00 [15:59:11]Write to MH i2c: E2 08 00 70 4A 80 13 00 00 00 00 00 00 36 [15:59:11]Write i2c OK [15:59:11]MH_I2C_Read... [15:59:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:59:11]Read from MH i2c: E2 [15:59:11]MH_I2C_Read... [15:59:11]Read from MH i2c: E2 62 00 [15:59:11]MH_I2C_Read... [15:59:11]Read from MH i2c: E2 62 00 70 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 32 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 95 [15:59:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 32 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:59:11]wFMCommunicate OK [15:59:11]SAM_PROTO_GetFieldsCounters done [15:59:11]requested_item shift.num is exist - process it [15:59:11]requested_item shift.opened is exist - process it [15:59:11]req_shift_opened [15:59:11]FM_GetShiftState [15:59:11]SAM_PROTO_GetShiftState [15:59:11]wFMCommunicate request_size=4 [15:59:11]MH_SAM_APDU [15:59:11]CAPDU: 80 13 01 00 [15:59:11]Write to MH i2c: E2 08 00 71 4A 80 13 01 00 00 00 00 00 38 [15:59:11]Write i2c OK [15:59:11]MH_I2C_Read... [15:59:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:11]Read from MH i2c: E2 [15:59:11]MH_I2C_Read... [15:59:11]Read from MH i2c: E2 0E 00 [15:59:11]MH_I2C_Read... [15:59:11]Read from MH i2c: E2 0E 00 71 4A 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 13 [15:59:11]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [15:59:11]wFMCommunicate OK [15:59:11]SAM_PROTO_GetShiftState done [15:59:11]FM_GetShiftState done [15:59:11]req_shift_opened done [15:59:11]requested_item shift.open_date is exist - process it [15:59:11]req_shift_open_date [15:59:11]req_shift_open_date done [15:59:11]produce_requested_data done [15:59:11]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68402,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [15:59:11]process_action_free close_receipt [15:59:11]json_value_free [15:59:11]json_value_free done [15:59:11]process_json_proto returns [15:59:11]Send response to host [15:59:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68402,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [15:59:11]free response buf [15:59:11]execute_script done [15:59:11]execute_script returns [15:59:11]free content buf [15:59:11]Sock 6.Close socket [15:59:11]Sock 6.Thread stoped [15:59:11]accept exits with 5 [15:59:11]New connection [15:59:11]New thread 3066543460 created [15:59:11]Thread 3066686820 joined [15:59:11]Waiting for new connection... [15:59:11] Sock 5.Parse request [15:59:11]Sock 5.Check first char [15:59:11]Sock 5.First char is OK [15:59:11]request: POST /json_proto HTTP/1.0 [15:59:11]Method: POST [15:59:11]URL: /json_proto [15:59:11]Method is POST - this is cgi request [15:59:11]url: /json_proto [15:59:11]query_string will be loaded in cgi processing [15:59:11]execute_cgi json_proto POST (null) [15:59:11]execute_cgi path=json_proto method=POST [15:59:11]POST find Content-Length [15:59:11]Host: 172.17.36.132:8080 [15:59:11]Content-Length: 1188 [15:59:11]Content-Type: application/json [15:59:11] [15:59:11]POST finish read [15:59:11]Found Content-Length = 1188 [15:59:11]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706496\u000A03.06.2024 15:36\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 : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-4\u000A 50.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 3645.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A43440\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:59:11]execute_script... [15:59:11]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706496\u000A03.06.2024 15:36\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 : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-4\u000A 50.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 3645.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A43440\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:59:11]POST & json_proto [15:59:11]process_json_proto [15:59:11]json parsed OK: [15:59:11]protocol is kg_v1.0 [15:59:11]action value=print_text [15:59:11]process_action print_text [15:59:11]cmd_print_text [15:59:11]ExternCall_PrintAddStr [15:59:11]wPrintStart [15:59:11]Write to MH i2c: 01 00 00 72 4A BC [15:59:11]Write i2c OK [15:59:11]MH_I2C_Read... [15:59:11]Read from MH i2c: 01 [15:59:11]MH_I2C_Read... [15:59:11]Read from MH i2c: 01 07 00 [15:59:11]MH_I2C_Read... [15:59:11]Read from MH i2c: 01 07 00 72 4A 00 00 00 00 00 FF 0F D1 [15:59:11]RasterBufferAndPrint [15:59:11]line *****ТОВАРНЫЙ ЧЕК***** [15:59:11]line АЗС 62 [15:59:11]line Партнер нефть [15:59:11]line 02508201610067 [15:59:11]line Кассир : Балаев А. [15:59:11]line Счет N : (1)706496 [15:59:11]line 03.06.2024 15:36 [15:59:11]line ПРОДАЖА [15:59:11]line ТРК (МРК, ГНК): 61 [15:59:11]line Вид ГСМ : 2710194210 [15:59:11]line ДТ(л)-К-4 [15:59:11]line 50.000 x 72.90 [15:59:11]line ИТОГ: 3645.00 [15:59:11]line Тип оплаты: Талоны: Топливная Карта [15:59:11]line 43440 [15:59:11]line ______________________ [15:59:11]line (подпись) [15:59:11]written 0, free lines is 4095 [15:59:12]Write to MH i2c: 01 00 00 86 4A D0 [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 86 4A 00 00 00 00 00 10 0E F5 [15:59:12]RasterBufferAndPrint [15:59:12]line [15:59:12]line [15:59:12]line [15:59:12]line [15:59:12]line [15:59:12]written 0, free lines is 3605 [15:59:12]MH_Cut [15:59:12]Write to MH i2c: D1 01 00 8D 4A 01 A9 [15:59:12]Write i2c OK [15:59:12]MH_I2C_Read... [15:59:12]Read from MH i2c: D1 [15:59:12]MH_I2C_Read... [15:59:12]Read from MH i2c: D1 01 00 [15:59:12]MH_I2C_Read... [15:59:12]Read from MH i2c: D1 01 00 8D 4A 00 A8 [15:59:12]Write to MH i2c: 01 00 00 8E 4A D8 [15:59:12]Write i2c OK [15:59:12]MH_I2C_Read... [15:59:12]*** Cut start [15:59:12]*** Partial cut [15:59:12]*** CUTSNS_PIN = 1 [15:59:12]*** CUTSNS_PIN = 0 [15:59:12]*** Brake cut motor [15:59:13]Read from MH i2c: 01 [15:59:13]MH_I2C_Read... [15:59:13]*** Stop cut motor [15:59:13]*** Cut end [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 8E 4A 00 00 00 00 00 FF 0F ED [15:59:13]process_action print_text done [15:59:13]requested_data is exist [15:59:13]produce_requested_data [15:59:13]requested_item fm.sn is exist - process it [15:59:13]wFMCommunicate request_size=4 [15:59:13]MH_SAM_APDU [15:59:13]CAPDU: 80 11 00 00 [15:59:13]Write to MH i2c: E2 08 00 8F 4A 80 11 00 00 00 00 00 00 53 [15:59:13]Write i2c OK [15:59:13]MH_I2C_Read... [15:59:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:13]Read from MH i2c: E2 [15:59:13]MH_I2C_Read... [15:59:13]Read from MH i2c: E2 17 00 [15:59:13]MH_I2C_Read... [15:59:13]Read from MH i2c: E2 17 00 8F 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 9E [15:59:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:59:13]wFMCommunicate OK [15:59:13]requested_item fd.num is exist - process it [15:59:13]SAM_PROTO_GetFieldsCounters [15:59:13]wFMCommunicate request_size=4 [15:59:13]MH_SAM_APDU [15:59:13]CAPDU: 80 13 00 00 [15:59:13]Write to MH i2c: E2 08 00 90 4A 80 13 00 00 00 00 00 00 56 [15:59:13]Write i2c OK [15:59:13]MH_I2C_Read... [15:59:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:59:13]Read from MH i2c: E2 [15:59:13]MH_I2C_Read... [15:59:13]Read from MH i2c: E2 62 00 [15:59:13]MH_I2C_Read... [15:59:13]Read from MH i2c: E2 62 00 90 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 32 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 B5 [15:59:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 32 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:59:13]wFMCommunicate OK [15:59:13]SAM_PROTO_GetFieldsCounters done [15:59:13]requested_item shift.num is exist - process it [15:59:13]requested_item shift.opened is exist - process it [15:59:13]req_shift_opened [15:59:13]FM_GetShiftState [15:59:13]SAM_PROTO_GetShiftState [15:59:13]wFMCommunicate request_size=4 [15:59:13]MH_SAM_APDU [15:59:13]CAPDU: 80 13 01 00 [15:59:13]Write to MH i2c: E2 08 00 91 4A 80 13 01 00 00 00 00 00 58 [15:59:13]Write i2c OK [15:59:13]MH_I2C_Read... [15:59:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:13]Read from MH i2c: E2 [15:59:13]MH_I2C_Read... [15:59:13]Read from MH i2c: E2 0E 00 [15:59:13]MH_I2C_Read... [15:59:13]Read from MH i2c: E2 0E 00 91 4A 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 33 [15:59:13]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [15:59:13]wFMCommunicate OK [15:59:13]SAM_PROTO_GetShiftState done [15:59:13]FM_GetShiftState done [15:59:13]req_shift_opened done [15:59:13]requested_item shift.open_date is exist - process it [15:59:13]req_shift_open_date [15:59:13]req_shift_open_date done [15:59:13]produce_requested_data done [15:59:13]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68402,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [15:59:13]process_action_free print_text [15:59:13]json_value_free [15:59:13]json_value_free done [15:59:13]process_json_proto returns [15:59:13]Send response to host [15:59:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68402,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [15:59:13]free response buf [15:59:13]execute_script done [15:59:13]execute_script returns [15:59:13]free content buf [15:59:13]Sock 5.Close socket [15:59:13]Sock 5.Thread stoped [15:59:13]accept exits with 6 [15:59:13]New connection [15:59:13]New thread 3066686820 created [15:59:13]Thread 3066543460 joined [15:59:13]Waiting for new connection... [15:59:13] Sock 6.Parse request [15:59:13]Sock 6.Check first char [15:59:13]Sock 6.First char is OK [15:59:13]request: POST /json_proto HTTP/1.0 [15:59:13]Method: POST [15:59:13]URL: /json_proto [15:59:13]Method is POST - this is cgi request [15:59:13]url: /json_proto [15:59:13]query_string will be loaded in cgi processing [15:59:13]execute_cgi json_proto POST (null) [15:59:13]execute_cgi path=json_proto method=POST [15:59:13]POST find Content-Length [15:59:13]Host: 172.17.36.132:8080 [15:59:13]Content-Length: 683 [15:59:13]Content-Type: application/json [15:59:13] [15:59:13]POST finish read [15:59:13]Found Content-Length = 683 [15:59:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706498", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 8.600, "sum" : 626.94, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 9477.00, "total" : 626.00, "payments": [ { "type": 0, "sum" : 626.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:59:13]execute_script... [15:59: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)706498", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 8.600, "sum" : 626.94, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 9477.00, "total" : 626.00, "payments": [ { "type": 0, "sum" : 626.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:59:13]POST & json_proto [15:59:13]process_json_proto [15:59:13]json parsed OK: [15:59:13]protocol is kg_v1.0 [15:59:13]action value=close_receipt [15:59:13]process_action close_receipt [15:59:13]cmd_close_receipt [15:59:13]MH_GetDate [15:59:13]Write to MH i2c: F0 00 00 92 4A CB [15:59:13]Write i2c OK [15:59:13]MH_I2C_Read... [15:59:13]Read from MH i2c: F0 [15:59:13]MH_I2C_Read... [15:59:13]Read from MH i2c: F0 09 00 [15:59:13]MH_I2C_Read... [15:59:13]Read from MH i2c: F0 09 00 92 4A 00 57 E8 5D 66 B2 22 B0 64 BE [15:59:13]GetLastDocTimeStamp 1717430353 [15:59:13]current date 1717430359 [15:59:13]FM_GetShiftState [15:59:13]SAM_PROTO_GetShiftState [15:59:13]wFMCommunicate request_size=4 [15:59:13]MH_SAM_APDU [15:59:13]CAPDU: 80 13 01 00 [15:59:13]Write to MH i2c: E2 08 00 93 4A 80 13 01 00 00 00 00 00 5A [15:59:13]Write i2c OK [15:59:13]MH_I2C_Read... [15:59:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:14]Read from MH i2c: E2 [15:59:14]MH_I2C_Read... [15:59:14]Read from MH i2c: E2 0E 00 [15:59:14]MH_I2C_Read... [15:59:14]Read from MH i2c: E2 0E 00 93 4A 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 35 [15:59:14]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [15:59:14]wFMCommunicate OK [15:59:14]SAM_PROTO_GetShiftState done [15:59:14]FM_GetShiftState done [15:59:14]opened in 1717378033 [15:59:14]opened+sec_in_day 1717464433 [15:59:14]quantity*price = 62694 [15:59:14]sum+1 = 62695 [15:59:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.94 ИТОГО: 626.00 Внесено: 9477.00 СДАЧА: 8851.00 НСП 1% : 5.55 НДС 12% : 66.58 Наличными: 626.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 149 03.06.2024 15:59 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68403 ФПД: 137665188591231 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T155919&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68403&fm=137665188591231&tin=02508201610067®Number=0000000000098096&sum=62600 [15:59:14]StoreToDocumentArchive [15:59:14]shift 324 fd 68403 [15:59:14]save to /storage/0324/doc_00068403 [15:59:14]save last doc name /storage/0324/doc_00068403 to /storage/kkm_last_doc_name [15:59:14]save OK [15:59:14]Clear old archive folders... [15:59:14]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:59:14]tlvbuf is 0019F3A0 [15:59:14]SAM_PROTO_ClearQueue [15:59:14]wFMCommunicate request_size=4 [15:59:14]MH_SAM_APDU [15:59:14]CAPDU: 80 09 00 00 [15:59:14]Write to MH i2c: E2 08 00 A0 4A 80 09 00 00 00 00 00 00 5C [15:59:14]Write i2c OK [15:59:14]MH_I2C_Read... [15:59:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:59:14]Read from MH i2c: E2 [15:59:14]MH_I2C_Read... [15:59:14]Read from MH i2c: E2 03 00 [15:59:14]MH_I2C_Read... [15:59:14]Read from MH i2c: E2 03 00 A0 4A 00 90 00 5E [15:59:14]RAPDU: 90 00 [15:59:14]wFMCommunicate OK [15:59:14]SAM_PROTO_ClearQueue done [15:59:14]KKMCreateOFDPacket [15:59:14]OFDProtocolAddRootSTLVToBuf [15:59:14]FM_MakeSignedData [15:59:14]FM_MakeSignedData [15:59:14]SAM_PROTO_SignData [15:59:14]wFMCommunicate request_size=4 [15:59:14]MH_SAM_APDU [15:59:14]CAPDU: 80 0D 01 02 [15:59:14]Write to MH i2c: E2 08 00 A1 4A 80 0D 01 02 00 00 00 00 64 [15:59:14]Write i2c OK [15:59:14]MH_I2C_Read... [15:59:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:59:14]Read from MH i2c: E2 [15:59:14]MH_I2C_Read... [15:59:14]Read from MH i2c: E2 03 00 [15:59:14]MH_I2C_Read... [15:59:14]Read from MH i2c: E2 03 00 A1 4A 00 90 00 5F [15:59:14]RAPDU: 90 00 [15:59:14]wFMCommunicate OK [15:59:14]wFMCommunicate request_size=255 [15:59:14]MH_SAM_APDU [15:59: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 34 FF 03 08 00 03 98 21 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 E6 F4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 F4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 1A 00 00 00 00 07 04 06 00 88 F4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 57 E8 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 33 0B 01 00 35 04 06 00 [15:59:15]Write to MH i2c: E2 02 01 A2 4A 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 34 FF 03 08 00 03 98 21 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 E6 F4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 F4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 1A 00 00 00 00 07 04 06 00 88 F4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 57 E8 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 33 0B 01 00 35 04 06 00 00 00 2C [15:59:15]Write i2c OK [15:59:15]MH_I2C_Read... [15:59:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:15]OFD Sender: No OFD packet to send [15:59:15]Read from MH i2c: E2 [15:59:15]MH_I2C_Read... [15:59:15]Read from MH i2c: E2 03 00 [15:59:15]MH_I2C_Read... [15:59:15]Read from MH i2c: E2 03 00 A2 4A 00 90 00 60 [15:59:15]RAPDU: 90 00 [15:59:15]wFMCommunicate OK [15:59:15]wFMCommunicate request_size=11 [15:59:15]MH_SAM_APDU [15:59:15]CAPDU: 80 0D 02 02 06 7D 34 AC A9 F6 7F [15:59:15]Write to MH i2c: E2 0E 00 A3 4A 80 0D 02 02 06 00 7D 34 AC A9 F6 7F 00 00 EE [15:59:15]Write i2c OK [15:59:15]MH_I2C_Read... [15:59:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:15]Read from MH i2c: E2 [15:59:15]MH_I2C_Read... [15:59:15]Read from MH i2c: E2 03 00 [15:59:15]MH_I2C_Read... [15:59:15]Read from MH i2c: E2 03 00 A3 4A 00 90 00 61 [15:59:15]RAPDU: 90 00 [15:59:15]wFMCommunicate OK [15:59:15]wFMCommunicate request_size=4 [15:59:15]MH_SAM_APDU [15:59:15]CAPDU: 80 0D 03 02 [15:59:15]Write to MH i2c: E2 08 00 A4 4A 80 0D 03 02 00 00 00 00 69 [15:59:15]Write i2c OK [15:59:15]MH_I2C_Read... [15:59:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:59:15]Read from MH i2c: E2 [15:59:15]MH_I2C_Read... [15:59:15]Read from MH i2c: E2 0B 00 [15:59:15]MH_I2C_Read... [15:59:15]Read from MH i2c: E2 0B 00 A4 4A 00 87 0E 22 EA A2 AF 14 68 90 00 D8 [15:59:15]RAPDU: 87 0E 22 EA A2 AF 14 68 90 00 [15:59:15]wFMCommunicate OK [15:59:15]SAM_PROTO_SignData done [15:59:15]FM_MakeSignedData done [15:59:15]CreateOFDProtocolMessage [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 A5 4A 80 11 00 00 00 00 00 00 69 [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 A5 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 B4 [15:59:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:59:15]wFMCommunicate OK [15:59:15]CreateOFDProtocolMessage done [15:59:15]OFDSenderStorePacket 68403 [15:59:15]StoreOFDPacket docnum=68403 [15:59:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 5F 24 08 01 37 28 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 34 FF 03 08 00 03 98 21 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 E6 F4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 F4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 1A 00 00 00 00 07 04 06 00 88 F4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 57 E8 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 33 0B 01 00 35 04 06 00 7D 34 AC A9 F6 7F 87 0E 22 EA A2 AF 14 68 [15:59:15]CheckFolder [15:59:15]dirname=/storage/ofd_packets [15:59:15]CheckFolder done [15:59:15]ProducePacketName [15:59:15]name=ofd_packets/00068403 [15:59:15]NVStorageSaveData ofd_packets/00068403 [15:59:15]File name is /storage/ofd_packets/00068403 [15:59:15]Write 302 bytes [15:59:15]NVStorageSaveData done [15:59:15]OFDSenderStorePacket done [15:59:15]KKMCreateOFDPacket done [15:59:15]NVStorageSaveData kkm_last_timestamp [15:59:15]File name is /storage/kkm_last_timestamp [15:59:15]Write 4 bytes [15:59:15]NVStorageSaveData done [15:59:15]OFD Sender: Processing packet 68403 [packets to send 26, broken 25] [15:59:15]ProducePacketName [15:59:15]ExternCall_PrintAddStr [15:59:15]name=ofd_packets/00068403 [15:59:15]wPrintStart [15:59:15]OFD Sender: To server: pG, [15:59:15]Write to MH i2c: CommunicateWithHost lk.salyk.kg:30040 [15:59:15]01 ConnectInit lk.salyk.kg [15:59:15]00 00 A6 4A F0 [15:59:15]Write i2c OK [15:59:15]MH_I2C_Read... [15:59:15]Read from MH i2c: 01 [15:59:15]MH_I2C_Read... [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 A6 4A 00 00 00 00 00 FF 0F 05 [15:59:15]RasterBufferAndPrint [15:59:15]line Счет N : (1)706498 [15:59:15]line ИНН: 02508201610067 [15:59:15]line Контрольно-Кассовый Чек [15:59:15]line ПРОДАЖА [15:59:15]line ТРК (МРК, ГНК) : 21 [15:59:15]line Товар: 2710194210 [15:59:15]line ДТ(л)-К-4 [15:59:15]line 8.600 * 72.90 [15:59:15]line = 626.94 [15:59:15]line НДС 12% НСП 1% [15:59:15]line > о реализуемом товаре [15:59:15]line ОКРУГЛЕНИЕ: -0.94 [15:59:15]line ИТОГО: 626.00 [15:59:15]line Внесено: 9477.00 [15:59:15]line СДАЧА: 8851.00 [15:59:15]line НСП 1% : 5.55 [15:59:15]line НДС 12% : 66.58 [15:59:15]line Наличными: 626.00 [15:59:15]line Безнал.: 0.00 [15:59:15]line Место: АЗС № 62 "Партнер Нефть" [15:59:15]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [15:59:15]line СНО: Общий режим [15:59:15]line Чек 149 03.06.2024 15:59 [15:59:15]line Смена: 324 ФФД: 1.0 [15:59:15]line ЗНМ: 0300000181 [15:59:15]line РНМ: 0000000000098096 [15:59:15]line Версия ККМ: 001 [15:59:15]line ФМ: 0000000000965400 [15:59:15]line ФД: 68403 [15:59:15]line ФПД: 137665188591231 [15:59:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T155919&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68403&fm=137665188591231&tin=02508201610067®Number=0000000000098096&sum=62600 [15:59:15]written 0, free lines is 4095 [15:59:16]Connected sock=7 [15:59:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 5F 24 08 01 37 28 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 34 FF 03 08 00 03 98 21 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 E6 F4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 F4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 1A 00 00 00 00 07 04 06 00 88 F4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 57 E8 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 33 0B 01 00 35 04 06 00 7D 34 AC A9 F6 7F 87 0E 22 EA A2 AF 14 68 [15:59:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 05 A1 47 00 1E B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 33 0B 01 00 F4 03 04 00 53 8F 5D 66 B6 04 01 00 00 FD 8D 59 0E 49 BE 9A 3A [15:59:16]CommunicateWithHost err = 0 [15:59:16]CheckOFDResponse [15:59:16]1017 (14) - 77093643461234 [15:59:16]1041 (16) - 0000000000965400 [15:59:16]1040 (4) - 68403 [15:59:16]1012 (4) - 03.06.2024 09:39 [15:59:16]1206 (1) - 0 [15:59:16]OFD Sender: Remove packet 68403 [15:59:16]ProducePacketName [15:59:16]name=ofd_packets/00068403 [15:59:16]NVStorageDeleteData [15:59:16]Write to MH i2c: 01 00 00 D1 4A 1B [15:59:16]Write i2c OK [15:59:16]MH_I2C_Read... [15:59:16]Read from MH i2c: 01 [15:59:16]MH_I2C_Read... [15:59:16]Read from MH i2c: 01 07 00 [15:59:16]MH_I2C_Read... [15:59:16]Read from MH i2c: 01 07 00 D1 4A 00 00 00 00 00 F6 0C 24 [15:59:16]RasterBufferAndPrint [15:59:16]line [15:59:16]line [15:59:16]line [15:59:16]line [15:59:16]line [15:59:16]written 0, free lines is 3337 [15:59:16]MH_Cut [15:59:16]Write to MH i2c: D1 01 00 D8 4A 01 F4 [15:59:16]Write i2c OK [15:59:16]MH_I2C_Read... [15:59:16]Read from MH i2c: D1 [15:59:16]MH_I2C_Read... [15:59:16]Read from MH i2c: D1 01 00 [15:59:16]MH_I2C_Read... [15:59:16]Read from MH i2c: D1 01 00 D8 4A 00 F3 [15:59:16]Write to MH i2c: 01 00 00 D9 4A 23 [15:59:16]Write i2c OK [15:59:16]MH_I2C_Read... [15:59:16]OFD Sender: No OFD packet to send [15:59:17]*** Cut start [15:59:17]*** Partial cut [15:59:17]*** CUTSNS_PIN = 1 [15:59:17]*** CUTSNS_PIN = 0 [15:59:17]*** Brake cut motor [15:59:17]Read from MH i2c: 01 [15:59:17]MH_I2C_Read... [15:59:17]*** Stop cut motor [15:59:17]*** Cut end [15:59:17]Read from MH i2c: 01 07 00 [15:59:17]MH_I2C_Read... [15:59:17]Read from MH i2c: 01 07 00 D9 4A 00 00 00 00 00 FF 0F 38 [15:59:17]process_action close_receipt done [15:59:17]requested_data is exist [15:59:17]produce_requested_data [15:59:17]requested_item fm.sn is exist - process it [15:59:17]wFMCommunicate request_size=4 [15:59:17]MH_SAM_APDU [15:59:17]CAPDU: 80 11 00 00 [15:59:17]Write to MH i2c: E2 08 00 DA 4A 80 11 00 00 00 00 00 00 9E [15:59:17]Write i2c OK [15:59:17]MH_I2C_Read... [15:59:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:17]Read from MH i2c: E2 [15:59:17]MH_I2C_Read... [15:59:17]Read from MH i2c: E2 17 00 [15:59:17]MH_I2C_Read... [15:59:17]Read from MH i2c: E2 17 00 DA 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 E9 [15:59:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [15:59:17]wFMCommunicate OK [15:59:17]requested_item fd.num is exist - process it [15:59:17]SAM_PROTO_GetFieldsCounters [15:59:17]wFMCommunicate request_size=4 [15:59:17]MH_SAM_APDU [15:59:17]CAPDU: 80 13 00 00 [15:59:17]Write to MH i2c: E2 08 00 DB 4A 80 13 00 00 00 00 00 00 A1 [15:59:17]Write i2c OK [15:59:17]MH_I2C_Read... [15:59:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:59:18]Read from MH i2c: E2 [15:59:18]MH_I2C_Read... [15:59:18]Read from MH i2c: E2 62 00 [15:59:18]MH_I2C_Read... [15:59:18]Read from MH i2c: E2 62 00 DB 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 33 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 04 [15:59:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 33 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:59:18]wFMCommunicate OK [15:59:18]SAM_PROTO_GetFieldsCounters done [15:59:18]requested_item shift.num is exist - process it [15:59:18]requested_item shift.opened is exist - process it [15:59:18]req_shift_opened [15:59:18]FM_GetShiftState [15:59:18]SAM_PROTO_GetShiftState [15:59:18]wFMCommunicate request_size=4 [15:59:18]MH_SAM_APDU [15:59:18]CAPDU: 80 13 01 00 [15:59:18]Write to MH i2c: E2 08 00 DC 4A 80 13 01 00 00 00 00 00 A3 [15:59:18]Write i2c OK [15:59:18]MH_I2C_Read... [15:59:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:18]Read from MH i2c: E2 [15:59:18]MH_I2C_Read... [15:59:18]Read from MH i2c: E2 0E 00 [15:59:18]MH_I2C_Read... [15:59:18]Read from MH i2c: E2 0E 00 DC 4A 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 7E [15:59:18]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [15:59:18]wFMCommunicate OK [15:59:18]SAM_PROTO_GetShiftState done [15:59:18]FM_GetShiftState done [15:59:18]req_shift_opened done [15:59:18]requested_item shift.open_date is exist - process it [15:59:18]req_shift_open_date [15:59:18]req_shift_open_date done [15:59:18]produce_requested_data done [15:59:18]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68403,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [15:59:18]process_action_free close_receipt [15:59:18]json_value_free [15:59:18]json_value_free done [15:59:18]process_json_proto returns [15:59:18]Send response to host [15:59:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68403,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [15:59:18]free response buf [15:59:18]execute_script done [15:59:18]execute_script returns [15:59:18]free content buf [15:59:18]Sock 6.Close socket [15:59:18]Sock 6.Thread stoped [15:59:21]OFD Sender: No OFD packet to send [15:59:26]OFD Sender: No OFD packet to send [15:59:31]OFD Sender: No OFD packet to send [15:59:36]OFD Sender: No OFD packet to send [15:59:41]OFD Sender: No OFD packet to send [15:59:46]OFD Sender: No OFD packet to send [15:59:51]OFD Sender: No OFD packet to send [15:59:56]OFD Sender: No OFD packet to send [16:00:01]OFD Sender: No OFD packet to send [16:00:06]OFD Sender: No OFD packet to send [16:00:11]OFD Sender: No OFD packet to send [16:00:16]OFD Sender: No OFD packet to send [16:00:21]OFD Sender: No OFD packet to send [16:00:26]OFD Sender: No OFD packet to send [16:00:31]OFD Sender: No OFD packet to send [16:00:36]OFD Sender: No OFD packet to send [16:00:41]OFD Sender: No OFD packet to send [16:00:46]OFD Sender: No OFD packet to send [16:00:51]OFD Sender: No OFD packet to send [16:00:56]OFD Sender: No OFD packet to send [16:01:01]OFD Sender: No OFD packet to send [16:01:06]OFD Sender: No OFD packet to send [16:01:11]OFD Sender: No OFD packet to send [16:01:16]OFD Sender: No OFD packet to send [16:01:21]OFD Sender: No OFD packet to send [16:01:26]OFD Sender: No OFD packet to send [16:01:31]OFD Sender: No OFD packet to send [16:01:36]OFD Sender: No OFD packet to send [16:01:41]OFD Sender: No OFD packet to send [16:01:46]OFD Sender: No OFD packet to send [16:01:51]OFD Sender: No OFD packet to send [16:01:56]OFD Sender: No OFD packet to send [16:02:01]OFD Sender: No OFD packet to send [16:02:06]OFD Sender: No OFD packet to send [16:02:10]accept exits with 5 [16:02:10]New connection [16:02:10]New thread 3066543460 created [16:02:10]Thread 3066686820 joined [16:02:10]Waiting for new connection... [16:02:10] Sock 5.Parse request [16:02:10]Sock 5.Check first char [16:02:10]Sock 5.First char is OK [16:02:10]request: POST /json_proto HTTP/1.0 [16:02:10]Method: POST [16:02:10]URL: /json_proto [16:02:10]Method is POST - this is cgi request [16:02:10]url: /json_proto [16:02:10]query_string will be loaded in cgi processing [16:02:10]execute_cgi json_proto POST (null) [16:02:10]execute_cgi path=json_proto method=POST [16:02:10]POST find Content-Length [16:02:10]Host: 172.17.36.132:8080 [16:02:10]Content-Length: 678 [16:02:10]Content-Type: application/json [16:02:10] [16:02:10]POST finish read [16:02:10]Found Content-Length = 678 [16:02:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706500", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.020, "sum" : 670.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:02:10]execute_script... [16:02: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)706500", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.020, "sum" : 670.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:02:10]POST & json_proto [16:02:10]process_json_proto [16:02:10]json parsed OK: [16:02:10]protocol is kg_v1.0 [16:02:10]action value=close_receipt [16:02:10]process_action close_receipt [16:02:10]cmd_close_receipt [16:02:10]MH_GetDate [16:02:10]Write to MH i2c: F0 00 00 DD 4A 16 [16:02:10]Write i2c OK [16:02:10]MH_I2C_Read... [16:02:10]Read from MH i2c: F0 [16:02:10]MH_I2C_Read... [16:02:10]Read from MH i2c: F0 09 00 [16:02:10]MH_I2C_Read... [16:02:10]Read from MH i2c: F0 09 00 DD 4A 00 08 E9 5D 66 B2 22 B0 64 BB [16:02:10]GetLastDocTimeStamp 1717430359 [16:02:10]current date 1717430536 [16:02:10]FM_GetShiftState [16:02:10]SAM_PROTO_GetShiftState [16:02:10]wFMCommunicate request_size=4 [16:02:10]MH_SAM_APDU [16:02:10]CAPDU: 80 13 01 00 [16:02:10]Write to MH i2c: E2 08 00 DE 4A 80 13 01 00 00 00 00 00 A5 [16:02:10]Write i2c OK [16:02:10]MH_I2C_Read... [16:02:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:02:10]Read from MH i2c: E2 [16:02:10]MH_I2C_Read... [16:02:10]Read from MH i2c: E2 0E 00 [16:02:10]MH_I2C_Read... [16:02:10]Read from MH i2c: E2 0E 00 DE 4A 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 80 [16:02:10]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [16:02:10]wFMCommunicate OK [16:02:10]SAM_PROTO_GetShiftState done [16:02:10]FM_GetShiftState done [16:02:10]opened in 1717378033 [16:02:10]opened+sec_in_day 1717464433 [16:02:10]quantity*price = 67033 [16:02:10]sum+1 = 67035 [16:02:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 670.00 Внесено: 670.00 СДАЧА: 0.00 НСП 1% : 5.93 НДС 12% : 71.19 Наличными: 670.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 150 03.06.2024 16:02 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68404 ФПД: 161652205814681 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T160216&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68404&fm=161652205814681&tin=02508201610067®Number=0000000000098096&sum=67000 [16:02:11]StoreToDocumentArchive [16:02:11]shift 324 fd 68404 [16:02:11]save to /storage/0324/doc_00068404 [16:02:11]save last doc name /storage/0324/doc_00068404 to /storage/kkm_last_doc_name [16:02:11]save OK [16:02:11]Clear old archive folders... [16:02:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:02:11]tlvbuf is 005BB7B0 [16:02:11]SAM_PROTO_ClearQueue [16:02:11]wFMCommunicate request_size=4 [16:02:11]MH_SAM_APDU [16:02:11]CAPDU: 80 09 00 00 [16:02:11]Write to MH i2c: E2 08 00 EB 4A 80 09 00 00 00 00 00 00 A7 [16:02:11]Write i2c OK [16:02:11]MH_I2C_Read... [16:02:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:02:11]Read from MH i2c: E2 [16:02:11]MH_I2C_Read... [16:02:11]Read from MH i2c: E2 03 00 [16:02:11]MH_I2C_Read... [16:02:11]Read from MH i2c: E2 03 00 EB 4A 00 90 00 A9 [16:02:11]RAPDU: 90 00 [16:02:11]wFMCommunicate OK [16:02:11]SAM_PROTO_ClearQueue done [16:02:11]KKMCreateOFDPacket [16:02:11]OFDProtocolAddRootSTLVToBuf [16:02:11]FM_MakeSignedData [16:02:11]FM_MakeSignedData [16:02:11]SAM_PROTO_SignData [16:02:11]wFMCommunicate request_size=4 [16:02:11]MH_SAM_APDU [16:02:11]CAPDU: 80 0D 01 02 [16:02:11]Write to MH i2c: E2 08 00 EC 4A 80 0D 01 02 00 00 00 00 AF [16:02:11]Write i2c OK [16:02:11]MH_I2C_Read... [16:02:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:02:11]Read from MH i2c: E2 [16:02:11]MH_I2C_Read... [16:02:11]Read from MH i2c: E2 03 00 [16:02:11]MH_I2C_Read... [16:02:11]Read from MH i2c: E2 03 00 EC 4A 00 90 00 AA [16:02:11]RAPDU: 90 00 [16:02:11]wFMCommunicate OK [16:02:11]wFMCommunicate request_size=255 [16:02:11]MH_SAM_APDU [16:02: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 34 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DA 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 08 E9 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 34 0B 01 00 35 04 06 00 93 [16:02:11]Write to MH i2c: E2 02 01 ED 4A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DA 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 08 E9 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 34 0B 01 00 35 04 06 00 93 00 00 39 [16:02:11]Write i2c OK [16:02:11]MH_I2C_Read... [16:02:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:02:11]Read from MH i2c: E2 [16:02:11]MH_I2C_Read... [16:02:11]Read from MH i2c: E2 03 00 [16:02:11]MH_I2C_Read... [16:02:11]Read from MH i2c: E2 03 00 ED 4A 00 90 00 AB [16:02:11]RAPDU: 90 00 [16:02:11]wFMCommunicate OK [16:02:11]wFMCommunicate request_size=10 [16:02:11]MH_SAM_APDU [16:02:11]CAPDU: 80 0D 02 02 05 05 96 4E 03 99 [16:02:11]Write to MH i2c: E2 0D 00 EE 4A 80 0D 02 02 05 00 05 96 4E 03 99 00 00 41 [16:02:11]Write i2c OK [16:02:11]MH_I2C_Read... [16:02:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:02:11]Read from MH i2c: E2 [16:02:11]MH_I2C_Read... [16:02:11]Read from MH i2c: E2 03 00 [16:02:11]MH_I2C_Read... [16:02:11]Read from MH i2c: E2 03 00 EE 4A 00 90 00 AC [16:02:11]RAPDU: 90 00 [16:02:11]wFMCommunicate OK [16:02:11]wFMCommunicate request_size=4 [16:02:11]MH_SAM_APDU [16:02:11]CAPDU: 80 0D 03 02 [16:02:11]Write to MH i2c: E2 08 00 EF 4A 80 0D 03 02 00 00 00 00 B4 [16:02:11]Write i2c OK [16:02:11]MH_I2C_Read... [16:02:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:02:11]Read from MH i2c: E2 [16:02:11]MH_I2C_Read... [16:02:11]Read from MH i2c: E2 0B 00 [16:02:11]MH_I2C_Read... [16:02:11]Read from MH i2c: E2 0B 00 EF 4A 00 F7 D1 35 86 82 37 68 F9 90 00 52 [16:02:11]RAPDU: F7 D1 35 86 82 37 68 F9 90 00 [16:02:11]wFMCommunicate OK [16:02:11]SAM_PROTO_SignData done [16:02:11]FM_MakeSignedData done [16:02:11]CreateOFDProtocolMessage [16:02:11]wFMCommunicate request_size=4 [16:02:11]MH_SAM_APDU [16:02:11]CAPDU: 80 11 00 00 [16:02:11]Write to MH i2c: E2 08 00 F0 4A 80 11 00 00 00 00 00 00 B4 [16:02:11]Write i2c OK [16:02:11]MH_I2C_Read... [16:02:12]OFD Sender: No OFD packet to send [16:02:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:02:12]Read from MH i2c: E2 [16:02:12]MH_I2C_Read... [16:02:12]Read from MH i2c: E2 17 00 [16:02:12]MH_I2C_Read... [16:02:12]Read from MH i2c: E2 17 00 F0 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 FF [16:02:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [16:02:12]wFMCommunicate OK [16:02:12]CreateOFDProtocolMessage done [16:02:12]OFDSenderStorePacket 68404 [16:02:12]StoreOFDPacket docnum=68404 [16:02:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 B1 01 07 01 6A AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DA 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 08 E9 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 34 0B 01 00 35 04 06 00 93 05 96 4E 03 99 F7 D1 35 86 82 37 68 F9 [16:02:12]CheckFolder [16:02:12]dirname=/storage/ofd_packets [16:02:12]CheckFolder done [16:02:12]ProducePacketName [16:02:12]name=ofd_packets/00068404 [16:02:12]NVStorageSaveData ofd_packets/00068404 [16:02:12]File name is /storage/ofd_packets/00068404 [16:02:12]Write 301 bytes [16:02:12]NVStorageSaveData done [16:02:12]OFDSenderStorePacket done [16:02:12]KKMCreateOFDPacket done [16:02:12]NVStorageSaveData kkm_last_timestamp [16:02:12]File name is /storage/kkm_last_timestamp [16:02:12]Write 4 bytes [16:02:12]NVStorageSaveData done [16:02:12]ExternCall_PrintAddStr [16:02:12]wPrintStart [16:02:12]Write to MH i2c: 01 00 00 F1 4A 3B [16:02:12]Write i2c OK [16:02:12]MH_I2C_Read... [16:02:12]Read from MH i2c: 01 [16:02:12]MH_I2C_Read... [16:02:12]Read from MH i2c: 01 07 00 [16:02:12]MH_I2C_Read... [16:02:12]Read from MH i2c: 01 07 00 F1 4A 00 00 00 00 00 FF 0F 50 [16:02:12]RasterBufferAndPrint [16:02:12]line Счет N : (1)706500 [16:02:12]line ИНН: 02508201610067 [16:02:12]line Контрольно-Кассовый Чек [16:02:12]line ПРОДАЖА [16:02:12]line ТРК (МРК, ГНК) : 53 [16:02:12]line Товар: 2710124130 [16:02:12]line Аи-92-К-4 [16:02:12]line 10.020 * 66.90 [16:02:12]line = 670.34 [16:02:12]line НДС 12% НСП 1% [16:02:12]line > о реализуемом товаре [16:02:12]line ОКРУГЛЕНИЕ: -0.34 [16:02:12]line ИТОГО: 670.00 [16:02:12]line Внесено: 670.00 [16:02:12]line СДАЧА: 0.00 [16:02:12]line НСП 1% : 5.93 [16:02:12]line НДС 12% : 71.19 [16:02:12]line Наличными: 670.00 [16:02:12]line Безнал.: 0.00 [16:02:12]line Место: АЗС № 62 "Партнер Нефть" [16:02:12]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [16:02:12]line СНО: Общий режим [16:02:12]line Чек 150 03.06.2024 16:02 [16:02:12]line Смена: 324 ФФД: 1.0 [16:02:12]line ЗНМ: 0300000181 [16:02:12]line РНМ: 0000000000098096 [16:02:12]line Версия ККМ: 001 [16:02:12]line ФМ: 0000000000965400 [16:02:12]line ФД: 68404 [16:02:12]line ФПД: 161652205814681 [16:02:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T160216&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68404&fm=161652205814681&tin=02508201610067®Number=0000000000098096&sum=67000 [16:02:12]OFD Sender: Processing packet 68404 [packets to send 26, broken 25] [16:02:12]ProducePacketName [16:02:12]name=ofd_packets/00068404 [16:02:12]OFD Sender: To server: pG, [16:02:12]CommunicateWithHost lk.salyk.kg:30040 [16:02:12]ConnectInit lk.salyk.kg [16:02:12]written 0, free lines is 4095 [16:02:12]Connected sock=7 [16:02:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 B1 01 07 01 6A AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DA 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 08 E9 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 34 0B 01 00 35 04 06 00 93 05 96 4E 03 99 F7 D1 35 86 82 37 68 F9 [16:02:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 0C E9 47 00 A7 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 34 0B 01 00 F4 03 04 00 03 90 5D 66 B6 04 01 00 00 4E 91 8C FA 60 4A E2 D3 [16:02:12]CommunicateWithHost err = 0 [16:02:12]CheckOFDResponse [16:02:12]1017 (14) - 77093643461234 [16:02:12]1041 (16) - 0000000000965400 [16:02:12]1040 (4) - 68404 [16:02:12]1012 (4) - 03.06.2024 09:42 [16:02:12]1206 (1) - 0 [16:02:12]OFD Sender: Remove packet 68404 [16:02:12]ProducePacketName [16:02:12]name=ofd_packets/00068404 [16:02:12]NVStorageDeleteData [16:02:12]Write to MH i2c: 01 00 00 1C 4B 67 [16:02:12]Write i2c OK [16:02:12]MH_I2C_Read... [16:02:12]Read from MH i2c: 01 [16:02:12]MH_I2C_Read... [16:02:12]Read from MH i2c: 01 07 00 [16:02:12]MH_I2C_Read... [16:02:12]Read from MH i2c: 01 07 00 1C 4B 00 00 00 00 00 E1 0C 5B [16:02:12]RasterBufferAndPrint [16:02:12]line [16:02:12]line [16:02:12]line [16:02:12]line [16:02:12]line [16:02:12]written 0, free lines is 3303 [16:02:12]MH_Cut [16:02:12]Write to MH i2c: D1 01 00 23 4B 01 40 [16:02:12]Write i2c OK [16:02:12]MH_I2C_Read... [16:02:12]Read from MH i2c: D1 [16:02:12]MH_I2C_Read... [16:02:12]Read from MH i2c: D1 01 00 [16:02:12]MH_I2C_Read... [16:02:12]Read from MH i2c: D1 01 00 23 4B 00 3F [16:02:12]Write to MH i2c: 01 00 00 24 4B 6F [16:02:12]Write i2c OK [16:02:12]MH_I2C_Read... [16:02:13]OFD Sender: No OFD packet to send [16:02:13]*** Cut start [16:02:13]*** Partial cut [16:02:13]*** CUTSNS_PIN = 1 [16:02:13]*** CUTSNS_PIN = 0 [16:02:13]*** Brake cut motor [16:02:14]Read from MH i2c: 01 [16:02:14]MH_I2C_Read... [16:02:14]*** Stop cut motor [16:02:14]*** Cut end [16:02:14]Read from MH i2c: 01 07 00 [16:02:14]MH_I2C_Read... [16:02:14]Read from MH i2c: 01 07 00 24 4B 00 00 00 00 00 FF 0F 84 [16:02:14]process_action close_receipt done [16:02:14]requested_data is exist [16:02:14]produce_requested_data [16:02:14]requested_item fm.sn is exist - process it [16:02:14]wFMCommunicate request_size=4 [16:02:14]MH_SAM_APDU [16:02:14]CAPDU: 80 11 00 00 [16:02:14]Write to MH i2c: E2 08 00 25 4B 80 11 00 00 00 00 00 00 EA [16:02:14]Write i2c OK [16:02:14]MH_I2C_Read... [16:02:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:02:14]Read from MH i2c: E2 [16:02:14]MH_I2C_Read... [16:02:14]Read from MH i2c: E2 17 00 [16:02:14]MH_I2C_Read... [16:02:14]Read from MH i2c: E2 17 00 25 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 35 [16:02:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [16:02:14]wFMCommunicate OK [16:02:14]requested_item fd.num is exist - process it [16:02:14]SAM_PROTO_GetFieldsCounters [16:02:14]wFMCommunicate request_size=4 [16:02:14]MH_SAM_APDU [16:02:14]CAPDU: 80 13 00 00 [16:02:14]Write to MH i2c: E2 08 00 26 4B 80 13 00 00 00 00 00 00 ED [16:02:14]Write i2c OK [16:02:14]MH_I2C_Read... [16:02:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:02:14]Read from MH i2c: E2 [16:02:14]MH_I2C_Read... [16:02:14]Read from MH i2c: E2 62 00 [16:02:14]MH_I2C_Read... [16:02:14]Read from MH i2c: E2 62 00 26 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 34 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 54 [16:02:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 34 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:02:14]wFMCommunicate OK [16:02:14]SAM_PROTO_GetFieldsCounters done [16:02:14]requested_item shift.num is exist - process it [16:02:14]requested_item shift.opened is exist - process it [16:02:14]req_shift_opened [16:02:14]FM_GetShiftState [16:02:14]SAM_PROTO_GetShiftState [16:02:14]wFMCommunicate request_size=4 [16:02:14]MH_SAM_APDU [16:02:14]CAPDU: 80 13 01 00 [16:02:14]Write to MH i2c: E2 08 00 27 4B 80 13 01 00 00 00 00 00 EF [16:02:14]Write i2c OK [16:02:14]MH_I2C_Read... [16:02:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:02:14]Read from MH i2c: E2 [16:02:14]MH_I2C_Read... [16:02:14]Read from MH i2c: E2 0E 00 [16:02:14]MH_I2C_Read... [16:02:14]Read from MH i2c: E2 0E 00 27 4B 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 CA [16:02:14]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [16:02:14]wFMCommunicate OK [16:02:14]SAM_PROTO_GetShiftState done [16:02:14]FM_GetShiftState done [16:02:14]req_shift_opened done [16:02:14]requested_item shift.open_date is exist - process it [16:02:14]req_shift_open_date [16:02:14]req_shift_open_date done [16:02:14]produce_requested_data done [16:02:14]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68404,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [16:02:14]process_action_free close_receipt [16:02:14]json_value_free [16:02:14]json_value_free done [16:02:14]process_json_proto returns [16:02:14]Send response to host [16:02:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68404,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [16:02:14]free response buf [16:02:14]execute_script done [16:02:14]execute_script returns [16:02:14]free content buf [16:02:14]Sock 5.Close socket [16:02:14]Sock 5.Thread stoped [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:30]accept exits with 6 [16:03:30]New connection [16:03:30]New thread 3066686820 created [16:03:30]Thread 3066543460 joined [16:03:30]Waiting for new connection... [16:03:30] Sock 6.Parse request [16:03:30]Sock 6.Check first char [16:03:30]Sock 6.First char is OK [16:03:30]request: POST /json_proto HTTP/1.0 [16:03:30]Method: POST [16:03:30]URL: /json_proto [16:03:30]Method is POST - this is cgi request [16:03:30]url: /json_proto [16:03:30]query_string will be loaded in cgi processing [16:03:30]execute_cgi json_proto POST (null) [16:03:30]execute_cgi path=json_proto method=POST [16:03:30]POST find Content-Length [16:03:30]Host: 172.17.36.132:8080 [16:03:30]Content-Length: 688 [16:03:30]Content-Type: application/json [16:03:30] [16:03:30]POST finish read [16:03:30]Found Content-Length = 688 [16:03:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706501", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 121.400, "sum" : 8850.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 8850.00, "total" : 8850.00, "payments": [ { "type": 0, "sum" : 8850.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:03:30]execute_script... [16:03: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)706501", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 121.400, "sum" : 8850.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 8850.00, "total" : 8850.00, "payments": [ { "type": 0, "sum" : 8850.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:03:30]POST & json_proto [16:03:30]process_json_proto [16:03:30]json parsed OK: [16:03:30]protocol is kg_v1.0 [16:03:30]action value=close_receipt [16:03:30]process_action close_receipt [16:03:30]cmd_close_receipt [16:03:30]MH_GetDate [16:03:30]Write to MH i2c: F0 00 00 28 4B 62 [16:03:30]Write i2c OK [16:03:30]MH_I2C_Read... [16:03:30]Read from MH i2c: F0 [16:03:30]MH_I2C_Read... [16:03:30]Read from MH i2c: F0 09 00 [16:03:30]MH_I2C_Read... [16:03:30]Read from MH i2c: F0 09 00 28 4B 00 58 E9 5D 66 B2 22 B0 64 57 [16:03:30]GetLastDocTimeStamp 1717430536 [16:03:30]current date 1717430616 [16:03:30]FM_GetShiftState [16:03:30]SAM_PROTO_GetShiftState [16:03:30]wFMCommunicate request_size=4 [16:03:30]MH_SAM_APDU [16:03:30]CAPDU: 80 13 01 00 [16:03:30]Write to MH i2c: E2 08 00 29 4B 80 13 01 00 00 00 00 00 F1 [16:03:30]Write i2c OK [16:03:30]MH_I2C_Read... [16:03:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:03:30]Read from MH i2c: E2 [16:03:30]MH_I2C_Read... [16:03:30]Read from MH i2c: E2 0E 00 [16:03:30]MH_I2C_Read... [16:03:30]Read from MH i2c: E2 0E 00 29 4B 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 CC [16:03:30]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [16:03:30]wFMCommunicate OK [16:03:30]SAM_PROTO_GetShiftState done [16:03:30]FM_GetShiftState done [16:03:30]opened in 1717378033 [16:03:30]opened+sec_in_day 1717464433 [16:03:30]quantity*price = 885006 [16:03:30]sum+1 = 885007 [16:03:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 8850.00 Внесено: 8850.00 СДАЧА: 0.00 НСП 1% : 78.32 НДС 12% : 939.83 Наличными: 8850.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 151 03.06.2024 16:03 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68405 ФПД: 270170990876647 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T160336&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68405&fm=270170990876647&tin=02508201610067®Number=0000000000098096&sum=885000 [16:03:31]StoreToDocumentArchive [16:03:31]shift 324 fd 68405 [16:03:31]save to /storage/0324/doc_00068405 [16:03:31]save last doc name /storage/0324/doc_00068405 to /storage/kkm_last_doc_name [16:03:31]save OK [16:03:31]Clear old archive folders... [16:03:31]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:03:31]tlvbuf is 005B96F0 [16:03:31]SAM_PROTO_ClearQueue [16:03:31]wFMCommunicate request_size=4 [16:03:31]MH_SAM_APDU [16:03:31]CAPDU: 80 09 00 00 [16:03:31]Write to MH i2c: E2 08 00 36 4B 80 09 00 00 00 00 00 00 F3 [16:03:31]Write i2c OK [16:03:31]MH_I2C_Read... [16:03:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:03:31]Read from MH i2c: E2 [16:03:31]MH_I2C_Read... [16:03:31]Read from MH i2c: E2 03 00 [16:03:31]MH_I2C_Read... [16:03:31]Read from MH i2c: E2 03 00 36 4B 00 90 00 F5 [16:03:31]RAPDU: 90 00 [16:03:31]wFMCommunicate OK [16:03:31]SAM_PROTO_ClearQueue done [16:03:31]KKMCreateOFDPacket [16:03:31]OFDProtocolAddRootSTLVToBuf [16:03:31]FM_MakeSignedData [16:03:31]FM_MakeSignedData [16:03:31]SAM_PROTO_SignData [16:03:31]wFMCommunicate request_size=4 [16:03:31]MH_SAM_APDU [16:03:31]CAPDU: 80 0D 01 02 [16:03:31]Write to MH i2c: E2 08 00 37 4B 80 0D 01 02 00 00 00 00 FB [16:03:31]Write i2c OK [16:03:31]MH_I2C_Read... [16:03:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:03:31]Read from MH i2c: E2 [16:03:31]MH_I2C_Read... [16:03:31]Read from MH i2c: E2 03 00 [16:03:31]MH_I2C_Read... [16:03:31]Read from MH i2c: E2 03 00 37 4B 00 90 00 F6 [16:03:31]RAPDU: 90 00 [16:03:31]wFMCommunicate OK [16:03:31]wFMCommunicate request_size=255 [16:03:31]MH_SAM_APDU [16:03:31]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 34 FF 03 08 00 03 38 DA 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0E 81 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 81 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 1E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 6F 01 00 00 00 07 04 06 00 08 81 0D 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 58 E9 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 35 0B 01 00 35 04 06 00 [16:03:31]Write to MH i2c: E2 02 01 38 4B 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 34 FF 03 08 00 03 38 DA 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0E 81 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 81 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 1E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 6F 01 00 00 00 07 04 06 00 08 81 0D 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 58 E9 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 35 0B 01 00 35 04 06 00 00 00 15 [16:03:31]Write i2c OK [16:03:31]MH_I2C_Read... [16:03:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:03:31]Read from MH i2c: E2 [16:03:31]MH_I2C_Read... [16:03:31]Read from MH i2c: E2 03 00 [16:03:31]MH_I2C_Read... [16:03:31]Read from MH i2c: E2 03 00 38 4B 00 90 00 F7 [16:03:31]RAPDU: 90 00 [16:03:31]wFMCommunicate OK [16:03:31]wFMCommunicate request_size=11 [16:03:31]MH_SAM_APDU [16:03:31]CAPDU: 80 0D 02 02 06 F5 B8 15 F0 97 E7 [16:03:31]Write to MH i2c: E2 0E 00 39 4B 80 0D 02 02 06 00 F5 B8 15 F0 97 E7 00 00 3A [16:03:31]Write i2c OK [16:03:31]MH_I2C_Read... [16:03:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:03:31]Read from MH i2c: E2 [16:03:31]MH_I2C_Read... [16:03:31]Read from MH i2c: E2 03 00 [16:03:31]MH_I2C_Read... [16:03:31]Read from MH i2c: E2 03 00 39 4B 00 90 00 F8 [16:03:31]RAPDU: 90 00 [16:03:31]wFMCommunicate OK [16:03:31]wFMCommunicate request_size=4 [16:03:31]MH_SAM_APDU [16:03:31]CAPDU: 80 0D 03 02 [16:03:31]Write to MH i2c: E2 08 00 3A 4B 80 0D 03 02 00 00 00 00 00 [16:03:31]Write i2c OK [16:03:31]MH_I2C_Read... [16:03:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:03:31]Read from MH i2c: E2 [16:03:31]MH_I2C_Read... [16:03:31]Read from MH i2c: E2 0B 00 [16:03:31]MH_I2C_Read... [16:03:31]Read from MH i2c: E2 0B 00 3A 4B 00 25 7D CF 53 BA 94 36 95 90 00 DE [16:03:31]RAPDU: 25 7D CF 53 BA 94 36 95 90 00 [16:03:31]wFMCommunicate OK [16:03:31]SAM_PROTO_SignData done [16:03:31]FM_MakeSignedData done [16:03:31]CreateOFDProtocolMessage [16:03:31]wFMCommunicate request_size=4 [16:03:31]MH_SAM_APDU [16:03:31]CAPDU: 80 11 00 00 [16:03:31]Write to MH i2c: E2 08 00 3B 4B 80 11 00 00 00 00 00 00 00 [16:03:31]Write i2c OK [16:03:31]MH_I2C_Read... [16:03:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:03:31]Read from MH i2c: E2 [16:03:31]MH_I2C_Read... [16:03:31]Read from MH i2c: E2 17 00 [16:03:31]MH_I2C_Read... [16:03:31]Read from MH i2c: E2 17 00 3B 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 4B [16:03:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [16:03:31]wFMCommunicate OK [16:03:31]CreateOFDProtocolMessage done [16:03:31]OFDSenderStorePacket 68405 [16:03:31]StoreOFDPacket docnum=68405 [16:03:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 E1 90 08 01 20 86 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 34 FF 03 08 00 03 38 DA 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0E 81 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 81 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 1E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 6F 01 00 00 00 07 04 06 00 08 81 0D 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 58 E9 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 35 0B 01 00 35 04 06 00 F5 B8 15 F0 97 E7 25 7D CF 53 BA 94 36 95 [16:03:31]CheckFolder [16:03:31]dirname=/storage/ofd_packets [16:03:31]CheckFolder done [16:03:31]ProducePacketName [16:03:31]name=ofd_packets/00068405 [16:03:31]NVStorageSaveData ofd_packets/00068405 [16:03:31]File name is /storage/ofd_packets/00068405 [16:03:31]Write 302 bytes [16:03:31]NVStorageSaveData done [16:03:31]OFDSenderStorePacket done [16:03:31]KKMCreateOFDPacket done [16:03:31]NVStorageSaveData kkm_last_timestamp [16:03:31]File name is /storage/kkm_last_timestamp [16:03:31]Write 4 bytes [16:03:31]NVStorageSaveData done [16:03:31]ExternCall_PrintAddStr [16:03:31]wPrintStart [16:03:31]Write to MH i2c: 01 00 00 3C 4B 87 [16:03:31]Write i2c OK [16:03:31]MH_I2C_Read... [16:03:31]Read from MH i2c: 01 [16:03:31]MH_I2C_Read... [16:03:31]Read from MH i2c: 01 07 00 [16:03:31]MH_I2C_Read... [16:03:31]Read from MH i2c: 01 07 00 3C 4B 00 00 00 00 00 FF 0F 9C [16:03:31]RasterBufferAndPrint [16:03:31]line Счет N : (1)706501 [16:03:31]line ИНН: 02508201610067 [16:03:31]line Контрольно-Кассовый Чек [16:03:31]line ПРОДАЖА [16:03:31]line ТРК (МРК, ГНК) : 21 [16:03:31]line Товар: 2710194210 [16:03:31]line ДТ(л)-К-4 [16:03:31]line 121.400 * 72.90 [16:03:31]line = 8850.06 [16:03:31]line НДС 12% НСП 1% [16:03:31]line > о реализуемом товаре [16:03:31]line ОКРУГЛЕНИЕ: -0.06 [16:03:31]line ИТОГО: 8850.00 [16:03:31]line Внесено: 8850.00 [16:03:31]line СДАЧА: 0.00 [16:03:31]line НСП 1% : 78.32 [16:03:31]line НДС 12% : 939.83 [16:03:31]line Наличными: 8850.00 [16:03:31]line Безнал.: 0.00 [16:03:31]line Место: АЗС № 62 "Партнер Нефть" [16:03:31]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [16:03:31]line СНО: Общий режим [16:03:31]line Чек 151 03.06.2024 16:03 [16:03:31]line Смена: 324 ФФД: 1.0 [16:03:31]line ЗНМ: 0300000181 [16:03:31]line РНМ: 0000000000098096 [16:03:31]line Версия ККМ: 001 [16:03:31]line ФМ: 0000000000965400 [16:03:31]line ФД: 68405 [16:03:31]line ФПД: 270170990876647 [16:03:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T160336&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68405&fm=270170990876647&tin=02508201610067®Number=0000000000098096&sum=885000 [16:03:32]OFD Sender: Processing packet 68405 [packets to send 26, broken 25] [16:03:32]ProducePacketName [16:03:32]name=ofd_packets/00068405 [16:03:32]OFD Sender: To server: pG, [16:03:32]CommunicateWithHost lk.salyk.kg:30040 [16:03:32]ConnectInit lk.salyk.kg [16:03:32]written 0, free lines is 4095 [16:03:32]Connected sock=7 [16:03:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 E1 90 08 01 20 86 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 34 FF 03 08 00 03 38 DA 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 0E 81 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 81 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 1E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 6F 01 00 00 00 07 04 06 00 08 81 0D 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 58 E9 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 35 0B 01 00 35 04 06 00 F5 B8 15 F0 97 E7 25 7D CF 53 BA 94 36 95 [16:03:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 D0 BD 47 00 41 5F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 35 0B 01 00 F4 03 04 00 53 90 5D 66 B6 04 01 00 00 2E 9B 47 3F 0A F9 01 50 [16:03:32]CommunicateWithHost err = 0 [16:03:32]CheckOFDResponse [16:03:32]1017 (14) - 77093643461234 [16:03:32]1041 (16) - 0000000000965400 [16:03:32]1040 (4) - 68405 [16:03:32]1012 (4) - 03.06.2024 09:43 [16:03:32]1206 (1) - 0 [16:03:32]OFD Sender: Remove packet 68405 [16:03:32]ProducePacketName [16:03:32]name=ofd_packets/00068405 [16:03:32]NVStorageDeleteData [16:03:32]Write to MH i2c: 01 00 00 67 4B B2 [16:03:32]Write i2c OK [16:03:32]MH_I2C_Read... [16:03:32]Read from MH i2c: 01 [16:03:32]MH_I2C_Read... [16:03:32]Read from MH i2c: 01 07 00 [16:03:32]MH_I2C_Read... [16:03:32]Read from MH i2c: 01 07 00 67 4B 00 00 00 00 00 E9 0C AE [16:03:32]RasterBufferAndPrint [16:03:32]line [16:03:32]line [16:03:32]line [16:03:32]line [16:03:32]line [16:03:32]written 0, free lines is 3312 [16:03:32]MH_Cut [16:03:32]Write to MH i2c: D1 01 00 6E 4B 01 8B [16:03:32]Write i2c OK [16:03:32]MH_I2C_Read... [16:03:32]Read from MH i2c: D1 [16:03:32]MH_I2C_Read... [16:03:32]Read from MH i2c: D1 01 00 [16:03:32]MH_I2C_Read... [16:03:32]Read from MH i2c: D1 01 00 6E 4B 00 8A [16:03:32]Write to MH i2c: 01 00 00 6F 4B BA [16:03:32]Write i2c OK [16:03:32]MH_I2C_Read... [16:03:32]OFD Sender: No OFD packet to send [16:03:33]*** Cut start [16:03:33]*** Partial cut [16:03:33]*** CUTSNS_PIN = 1 [16:03:33]*** CUTSNS_PIN = 0 [16:03:33]*** Brake cut motor [16:03:34]Read from MH i2c: 01 [16:03:34]MH_I2C_Read... [16:03:34]*** Stop cut motor [16:03:34]*** Cut end [16:03:34]Read from MH i2c: 01 07 00 [16:03:34]MH_I2C_Read... [16:03:34]Read from MH i2c: 01 07 00 6F 4B 00 00 00 00 00 FF 0F CF [16:03:34]process_action close_receipt done [16:03:34]requested_data is exist [16:03:34]produce_requested_data [16:03:34]requested_item fm.sn is exist - process it [16:03:34]wFMCommunicate request_size=4 [16:03:34]MH_SAM_APDU [16:03:34]CAPDU: 80 11 00 00 [16:03:34]Write to MH i2c: E2 08 00 70 4B 80 11 00 00 00 00 00 00 35 [16:03:34]Write i2c OK [16:03:34]MH_I2C_Read... [16:03:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:03:34]Read from MH i2c: E2 [16:03:34]MH_I2C_Read... [16:03:34]Read from MH i2c: E2 17 00 [16:03:34]MH_I2C_Read... [16:03:34]Read from MH i2c: E2 17 00 70 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 80 [16:03:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [16:03:34]wFMCommunicate OK [16:03:34]requested_item fd.num is exist - process it [16:03:34]SAM_PROTO_GetFieldsCounters [16:03:34]wFMCommunicate request_size=4 [16:03:34]MH_SAM_APDU [16:03:34]CAPDU: 80 13 00 00 [16:03:34]Write to MH i2c: E2 08 00 71 4B 80 13 00 00 00 00 00 00 38 [16:03:34]Write i2c OK [16:03:34]MH_I2C_Read... [16:03:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:03:34]Read from MH i2c: E2 [16:03:34]MH_I2C_Read... [16:03:34]Read from MH i2c: E2 62 00 [16:03:34]MH_I2C_Read... [16:03:34]Read from MH i2c: E2 62 00 71 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 35 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 A3 [16:03:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 35 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:03:34]wFMCommunicate OK [16:03:34]SAM_PROTO_GetFieldsCounters done [16:03:34]requested_item shift.num is exist - process it [16:03:34]requested_item shift.opened is exist - process it [16:03:34]req_shift_opened [16:03:34]FM_GetShiftState [16:03:34]SAM_PROTO_GetShiftState [16:03:34]wFMCommunicate request_size=4 [16:03:34]MH_SAM_APDU [16:03:34]CAPDU: 80 13 01 00 [16:03:34]Write to MH i2c: E2 08 00 72 4B 80 13 01 00 00 00 00 00 3A [16:03:34]Write i2c OK [16:03:34]MH_I2C_Read... [16:03:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:03:34]Read from MH i2c: E2 [16:03:34]MH_I2C_Read... [16:03:34]Read from MH i2c: E2 0E 00 [16:03:34]MH_I2C_Read... [16:03:34]Read from MH i2c: E2 0E 00 72 4B 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 15 [16:03:34]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [16:03:34]wFMCommunicate OK [16:03:34]SAM_PROTO_GetShiftState done [16:03:34]FM_GetShiftState done [16:03:34]req_shift_opened done [16:03:34]requested_item shift.open_date is exist - process it [16:03:34]req_shift_open_date [16:03:34]req_shift_open_date done [16:03:34]produce_requested_data done [16:03:34]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68405,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [16:03:34]process_action_free close_receipt [16:03:34]json_value_free [16:03:34]json_value_free done [16:03:34]process_json_proto returns [16:03:34]Send response to host [16:03:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68405,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [16:03:34]free response buf [16:03:34]execute_script done [16:03:34]execute_script returns [16:03:34]free content buf [16:03:34]Sock 6.Close socket [16:03:34]Sock 6.Thread stoped [16:03:37]OFD Sender: No OFD packet to send [16:03:42]OFD Sender: No OFD packet to send [16:03:47]OFD Sender: No OFD packet to send [16:03:52]OFD Sender: No OFD packet to send [16:03:57]OFD Sender: No OFD packet to send [16:04:02]OFD Sender: No OFD packet to send [16:04:07]OFD Sender: No OFD packet to send [16:04:12]OFD Sender: No OFD packet to send [16:04:17]OFD Sender: No OFD packet to send [16:04: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:14]accept exits with 5 [16:05:14]New connection [16:05:14]New thread 3066543460 created [16:05:14]Thread 3066686820 joined [16:05:14]Waiting for new connection... [16:05:14] Sock 5.Parse request [16:05:14]Sock 5.Check first char [16:05:14]Sock 5.First char is OK [16:05:14]request: POST /json_proto HTTP/1.0 [16:05:14]Method: POST [16:05:14]URL: /json_proto [16:05:14]Method is POST - this is cgi request [16:05:14]url: /json_proto [16:05:14]query_string will be loaded in cgi processing [16:05:14]execute_cgi json_proto POST (null) [16:05:14]execute_cgi path=json_proto method=POST [16:05:14]POST find Content-Length [16:05:14]Host: 172.17.36.132:8080 [16:05:14]Content-Length: 648 [16:05:14]Content-Type: application/json [16:05:14] [16:05:14]POST finish read [16:05:14]Found Content-Length = 648 [16:05:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706503", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 130.000, "sum" : 9477.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 9477.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:05:14]execute_script... [16:05:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706503", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 130.000, "sum" : 9477.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 9477.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:05:14]POST & json_proto [16:05:14]process_json_proto [16:05:14]json parsed OK: [16:05:14]protocol is kg_v1.0 [16:05:14]action value=close_receipt [16:05:14]process_action close_receipt [16:05:14]cmd_close_receipt [16:05:14]MH_GetDate [16:05:14]Write to MH i2c: F0 00 00 73 4B AD [16:05:14]Write i2c OK [16:05:14]MH_I2C_Read... [16:05:14]Read from MH i2c: F0 [16:05:14]MH_I2C_Read... [16:05:14]Read from MH i2c: F0 09 00 [16:05:14]MH_I2C_Read... [16:05:14]Read from MH i2c: F0 09 00 73 4B 00 C0 E9 5D 66 B2 22 B0 64 0A [16:05:14]GetLastDocTimeStamp 1717430616 [16:05:14]current date 1717430720 [16:05:14]FM_GetShiftState [16:05:14]SAM_PROTO_GetShiftState [16:05:14]wFMCommunicate request_size=4 [16:05:14]MH_SAM_APDU [16:05:14]CAPDU: 80 13 01 00 [16:05:14]Write to MH i2c: E2 08 00 74 4B 80 13 01 00 00 00 00 00 3C [16:05:14]Write i2c OK [16:05:14]MH_I2C_Read... [16:05:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:05:14]Read from MH i2c: E2 [16:05:14]MH_I2C_Read... [16:05:14]Read from MH i2c: E2 0E 00 [16:05:14]MH_I2C_Read... [16:05:14]Read from MH i2c: E2 0E 00 74 4B 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 17 [16:05:14]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [16:05:14]wFMCommunicate OK [16:05:14]SAM_PROTO_GetShiftState done [16:05:14]FM_GetShiftState done [16:05:14]opened in 1717378033 [16:05:14]opened+sec_in_day 1717464433 [16:05:14]quantity*price = 947700 [16:05:14]sum+1 = 947701 [16:05:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 9477.00 НСП 1% : 83.87 НДС 12% : 1006.41 Наличными: 9477.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 152 03.06.2024 16:05 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68406 ФПД: 132370842714789 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T160520&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68406&fm=132370842714789&tin=02508201610067®Number=0000000000098096&sum=947700 [16:05:15]StoreToDocumentArchive [16:05:15]shift 324 fd 68406 [16:05:15]save to /storage/0324/doc_00068406 [16:05:15]save last doc name /storage/0324/doc_00068406 to /storage/kkm_last_doc_name [16:05:15]save OK [16:05:15]Clear old archive folders... [16:05:15]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:05:15]tlvbuf is 003A1690 [16:05:15]SAM_PROTO_ClearQueue [16:05:15]wFMCommunicate request_size=4 [16:05:15]MH_SAM_APDU [16:05:15]CAPDU: 80 09 00 00 [16:05:15]Write to MH i2c: E2 08 00 81 4B 80 09 00 00 00 00 00 00 3E [16:05:15]Write i2c OK [16:05:15]MH_I2C_Read... [16:05:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:05:15]Read from MH i2c: E2 [16:05:15]MH_I2C_Read... [16:05:15]Read from MH i2c: E2 03 00 [16:05:15]MH_I2C_Read... [16:05:15]Read from MH i2c: E2 03 00 81 4B 00 90 00 40 [16:05:15]RAPDU: 90 00 [16:05:15]wFMCommunicate OK [16:05:15]SAM_PROTO_ClearQueue done [16:05:15]KKMCreateOFDPacket [16:05:15]OFDProtocolAddRootSTLVToBuf [16:05:15]FM_MakeSignedData [16:05:15]FM_MakeSignedData [16:05:15]SAM_PROTO_SignData [16:05:15]wFMCommunicate request_size=4 [16:05:15]MH_SAM_APDU [16:05:15]CAPDU: 80 0D 01 02 [16:05:15]Write to MH i2c: E2 08 00 82 4B 80 0D 01 02 00 00 00 00 46 [16:05:15]Write i2c OK [16:05:15]MH_I2C_Read... [16:05:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:05:15]Read from MH i2c: E2 [16:05:15]MH_I2C_Read... [16:05:15]Read from MH i2c: E2 03 00 [16:05:15]MH_I2C_Read... [16:05:15]Read from MH i2c: E2 03 00 82 4B 00 90 00 41 [16:05:15]RAPDU: 90 00 [16:05:15]wFMCommunicate OK [16:05:15]wFMCommunicate request_size=255 [16:05:15]MH_SAM_APDU [16:05:15]CAPDU: 80 0D 02 02 FA 03 00 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 34 FF 03 08 00 03 D0 FB 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 F4 75 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 75 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 89 01 00 00 00 07 04 06 00 F4 75 0E 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 C0 E9 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 36 0B 01 00 35 04 06 00 [16:05:15]Write to MH i2c: E2 02 01 83 4B 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 34 FF 03 08 00 03 D0 FB 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 F4 75 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 75 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 89 01 00 00 00 07 04 06 00 F4 75 0E 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 C0 E9 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 36 0B 01 00 35 04 06 00 00 00 69 [16:05:15]Write i2c OK [16:05:15]MH_I2C_Read... [16:05:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:05:15]Read from MH i2c: E2 [16:05:15]MH_I2C_Read... [16:05:15]Read from MH i2c: E2 03 00 [16:05:15]MH_I2C_Read... [16:05:15]Read from MH i2c: E2 03 00 83 4B 00 90 00 42 [16:05:15]RAPDU: 90 00 [16:05:15]wFMCommunicate OK [16:05:15]wFMCommunicate request_size=11 [16:05:15]MH_SAM_APDU [16:05:15]CAPDU: 80 0D 02 02 06 78 63 FD 0F 02 A5 [16:05:15]Write to MH i2c: E2 0E 00 84 4B 80 0D 02 02 06 00 78 63 FD 0F 02 A5 00 00 E3 [16:05:15]Write i2c OK [16:05:15]MH_I2C_Read... [16:05:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:05:16]Read from MH i2c: E2 [16:05:16]MH_I2C_Read... [16:05:16]Read from MH i2c: E2 03 00 [16:05:16]MH_I2C_Read... [16:05:16]Read from MH i2c: E2 03 00 84 4B 00 90 00 43 [16:05:16]RAPDU: 90 00 [16:05:16]wFMCommunicate OK [16:05:16]wFMCommunicate request_size=4 [16:05:16]MH_SAM_APDU [16:05:16]CAPDU: 80 0D 03 02 [16:05:16]Write to MH i2c: E2 08 00 85 4B 80 0D 03 02 00 00 00 00 4B [16:05:16]Write i2c OK [16:05:16]MH_I2C_Read... [16:05:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:05:16]Read from MH i2c: E2 [16:05:16]MH_I2C_Read... [16:05:16]Read from MH i2c: E2 0B 00 [16:05:16]MH_I2C_Read... [16:05:16]Read from MH i2c: E2 0B 00 85 4B 00 57 E1 41 ED 0F CF 4D EC 90 00 C9 [16:05:16]RAPDU: 57 E1 41 ED 0F CF 4D EC 90 00 [16:05:16]wFMCommunicate OK [16:05:16]SAM_PROTO_SignData done [16:05:16]FM_MakeSignedData done [16:05:16]CreateOFDProtocolMessage [16:05:16]wFMCommunicate request_size=4 [16:05:16]MH_SAM_APDU [16:05:16]CAPDU: 80 11 00 00 [16:05:16]Write to MH i2c: E2 08 00 86 4B 80 11 00 00 00 00 00 00 4B [16:05:16]Write i2c OK [16:05:16]MH_I2C_Read... [16:05:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:16]Read from MH i2c: E2 [16:05:16]MH_I2C_Read... [16:05:16]Read from MH i2c: E2 17 00 [16:05:16]MH_I2C_Read... [16:05:16]Read from MH i2c: E2 17 00 86 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 96 [16:05:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [16:05:16]wFMCommunicate OK [16:05:16]CreateOFDProtocolMessage done [16:05:16]OFDSenderStorePacket 68406 [16:05:16]StoreOFDPacket docnum=68406 [16:05:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 E3 E3 08 01 67 36 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 34 FF 03 08 00 03 D0 FB 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 F4 75 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 75 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 89 01 00 00 00 07 04 06 00 F4 75 0E 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 C0 E9 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 36 0B 01 00 35 04 06 00 78 63 FD 0F 02 A5 57 E1 41 ED 0F CF 4D EC [16:05:16]CheckFolder [16:05:16]dirname=/storage/ofd_packets [16:05:16]CheckFolder done [16:05:16]ProducePacketName [16:05:16]name=ofd_packets/00068406 [16:05:16]NVStorageSaveData ofd_packets/00068406 [16:05:16]File name is /storage/ofd_packets/00068406 [16:05:16]Write 302 bytes [16:05:16]NVStorageSaveData done [16:05:16]OFDSenderStorePacket done [16:05:16]KKMCreateOFDPacket done [16:05:16]NVStorageSaveData kkm_last_timestamp [16:05:16]File name is /storage/kkm_last_timestamp [16:05:16]Write 4 bytes [16:05:16]NVStorageSaveData done [16:05:16]ExternCall_PrintAddStr [16:05:16]wPrintStart [16:05:16]Write to MH i2c: 01 00 00 87 4B D2 [16:05:16]Write i2c OK [16:05:16]MH_I2C_Read... [16:05:16]Read from MH i2c: 01 [16:05:16]MH_I2C_Read... [16:05:16]Read from MH i2c: 01 07 00 [16:05:16]MH_I2C_Read... [16:05:16]Read from MH i2c: 01 07 00 87 4B 00 00 00 00 00 FF 0F E7 [16:05:16]RasterBufferAndPrint [16:05:16]line Счет N : (1)706503 [16:05:16]line ИНН: 02508201610067 [16:05:16]line Контрольно-Кассовый Чек [16:05:16]line ПРОДАЖА [16:05:16]line ТРК (МРК, ГНК) : 11 [16:05:16]line Товар: 2710194210 [16:05:16]line ДТ(л)-К-4 [16:05:16]line 130.000 * 72.90 [16:05:16]line = 9477.00 [16:05:16]line НДС 12% НСП 1% [16:05:16]line > о реализуемом товаре [16:05:16]line ИТОГО: 9477.00 [16:05:16]line НСП 1% : 83.87 [16:05:16]line НДС 12% : 1006.41 [16:05:16]line Наличными: 9477.00 [16:05:16]line Безнал.: 0.00 [16:05:16]line Место: АЗС № 62 "Партнер Нефть" [16:05:16]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [16:05:16]line СНО: Общий режим [16:05:16]line Чек 152 03.06.2024 16:05 [16:05:16]line Смена: 324 ФФД: 1.0 [16:05:16]line ЗНМ: 0300000181 [16:05:16]line РНМ: 0000000000098096 [16:05:16]line Версия ККМ: 001 [16:05:16]line ФМ: 0000000000965400 [16:05:16]line ФД: 68406 [16:05:16]line ФПД: 132370842714789 [16:05:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T160520&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68406&fm=132370842714789&tin=02508201610067®Number=0000000000098096&sum=947700 [16:05:16]OFD Sender: Processing packet 68406 [packets to send 26, broken 25] [16:05:16]ProducePacketName [16:05:16]name=ofd_packets/00068406 [16:05:16]OFD Sender: To server: pG, [16:05:16]CommunicateWithHost lk.salyk.kg:30040 [16:05:16]ConnectInit lk.salyk.kg [16:05:16]written 0, free lines is 4095 [16:05:16]Connected sock=7 [16:05:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 E3 E3 08 01 67 36 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 34 FF 03 08 00 03 D0 FB 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 F4 75 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 75 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 89 01 00 00 00 07 04 06 00 F4 75 0E 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 C0 E9 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 36 0B 01 00 35 04 06 00 78 63 FD 0F 02 A5 57 E1 41 ED 0F CF 4D EC [16:05:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 8B 79 47 00 A1 F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 36 0B 01 00 F4 03 04 00 BC 90 5D 66 B6 04 01 00 00 03 06 D8 F4 ED C5 4C 4A [16:05:16]CommunicateWithHost err = 0 [16:05:16]CheckOFDResponse [16:05:16]1017 (14) - 77093643461234 [16:05:16]1041 (16) - 0000000000965400 [16:05:16]1040 (4) - 68406 [16:05:16]1012 (4) - 03.06.2024 09:45 [16:05:16]1206 (1) - 0 [16:05:16]OFD Sender: Remove packet 68406 [16:05:16]ProducePacketName [16:05:16]name=ofd_packets/00068406 [16:05:16]NVStorageDeleteData [16:05:16]Write to MH i2c: 01 00 00 AF 4B FA [16:05:16]Write i2c OK [16:05:16]MH_I2C_Read... [16:05:16]Read from MH i2c: 01 [16:05:16]MH_I2C_Read... [16:05:16]Read from MH i2c: 01 07 00 [16:05:16]MH_I2C_Read... [16:05:16]Read from MH i2c: 01 07 00 AF 4B 00 00 00 00 00 10 0D 1E [16:05:16]RasterBufferAndPrint [16:05:16]line [16:05:16]line [16:05:16]line [16:05:16]line [16:05:16]line [16:05:16]written 0, free lines is 3350 [16:05:16]MH_Cut [16:05:16]Write to MH i2c: D1 01 00 B6 4B 01 D3 [16:05:16]Write i2c OK [16:05:16]MH_I2C_Read... [16:05:16]Read from MH i2c: D1 [16:05:16]MH_I2C_Read... [16:05:16]Read from MH i2c: D1 01 00 [16:05:16]MH_I2C_Read... [16:05:16]Read from MH i2c: D1 01 00 B6 4B 00 D2 [16:05:16]Write to MH i2c: 01 00 00 B7 4B 02 [16:05:16]Write i2c OK [16:05:16]MH_I2C_Read... [16:05:17]OFD Sender: No OFD packet to send [16:05:17]*** Cut start [16:05:17]*** Partial cut [16:05:17]*** CUTSNS_PIN = 1 [16:05:17]*** CUTSNS_PIN = 0 [16:05:17]*** Brake cut motor [16:05:18]Read from MH i2c: 01 [16:05:18]MH_I2C_Read... [16:05:18]*** Stop cut motor [16:05:18]*** Cut end [16:05:18]Read from MH i2c: 01 07 00 [16:05:18]MH_I2C_Read... [16:05:18]Read from MH i2c: 01 07 00 B7 4B 00 00 00 00 00 FF 0F 17 [16:05:18]process_action close_receipt done [16:05:18]requested_data is exist [16:05:18]produce_requested_data [16:05:18]requested_item fm.sn is exist - process it [16:05:18]wFMCommunicate request_size=4 [16:05:18]MH_SAM_APDU [16:05:18]CAPDU: 80 11 00 00 [16:05:18]Write to MH i2c: E2 08 00 B8 4B 80 11 00 00 00 00 00 00 7D [16:05:18]Write i2c OK [16:05:18]MH_I2C_Read... [16:05:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:18]Read from MH i2c: E2 [16:05:18]MH_I2C_Read... [16:05:18]Read from MH i2c: E2 17 00 [16:05:18]MH_I2C_Read... [16:05:18]Read from MH i2c: E2 17 00 B8 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 C8 [16:05:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [16:05:18]wFMCommunicate OK [16:05:18]requested_item fd.num is exist - process it [16:05:18]SAM_PROTO_GetFieldsCounters [16:05:18]wFMCommunicate request_size=4 [16:05:18]MH_SAM_APDU [16:05:18]CAPDU: 80 13 00 00 [16:05:18]Write to MH i2c: E2 08 00 B9 4B 80 13 00 00 00 00 00 00 80 [16:05:18]Write i2c OK [16:05:18]MH_I2C_Read... [16:05:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:05:18]Read from MH i2c: E2 [16:05:18]MH_I2C_Read... [16:05:18]Read from MH i2c: E2 62 00 [16:05:18]MH_I2C_Read... [16:05:18]Read from MH i2c: E2 62 00 B9 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 36 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 EF [16:05:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 36 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:05:18]wFMCommunicate OK [16:05:18]SAM_PROTO_GetFieldsCounters done [16:05:18]requested_item shift.num is exist - process it [16:05:18]requested_item shift.opened is exist - process it [16:05:18]req_shift_opened [16:05:18]FM_GetShiftState [16:05:18]SAM_PROTO_GetShiftState [16:05:18]wFMCommunicate request_size=4 [16:05:18]MH_SAM_APDU [16:05:18]CAPDU: 80 13 01 00 [16:05:18]Write to MH i2c: E2 08 00 BA 4B 80 13 01 00 00 00 00 00 82 [16:05:18]Write i2c OK [16:05:18]MH_I2C_Read... [16:05:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:05:18]Read from MH i2c: E2 [16:05:18]MH_I2C_Read... [16:05:18]Read from MH i2c: E2 0E 00 [16:05:18]MH_I2C_Read... [16:05:18]Read from MH i2c: E2 0E 00 BA 4B 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 5D [16:05:18]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [16:05:18]wFMCommunicate OK [16:05:18]SAM_PROTO_GetShiftState done [16:05:18]FM_GetShiftState done [16:05:18]req_shift_opened done [16:05:18]requested_item shift.open_date is exist - process it [16:05:18]req_shift_open_date [16:05:18]req_shift_open_date done [16:05:18]produce_requested_data done [16:05:18]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68406,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [16:05:18]process_action_free close_receipt [16:05:18]json_value_free [16:05:18]json_value_free done [16:05:18]process_json_proto returns [16:05:18]Send response to host [16:05:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68406,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [16:05:18]free response buf [16:05:18]execute_script done [16:05:18]execute_script returns [16:05:18]free content buf [16:05:18]Sock 5.Close socket [16:05:18]Sock 5.Thread stoped [16:05:21]accept exits with 6 [16:05:21]New connection [16:05:21]New thread 3066686820 created [16:05:21]Thread 3066543460 joined [16:05:21]Waiting for new connection... [16:05:21] Sock 6.Parse request [16:05:21]Sock 6.Check first char [16:05:21]Sock 6.First char is OK [16:05:21]request: POST /json_proto HTTP/1.0 [16:05:21]Method: POST [16:05:21]URL: /json_proto [16:05:21]Method is POST - this is cgi request [16:05:21]url: /json_proto [16:05:21]query_string will be loaded in cgi processing [16:05:21]execute_cgi json_proto POST (null) [16:05:21]execute_cgi path=json_proto method=POST [16:05:21]POST find Content-Length [16:05:21]Host: 172.17.36.132:8080 [16:05:21]Content-Length: 682 [16:05:21]Content-Type: application/json [16:05:21] [16:05:21]POST finish read [16:05:21]Found Content-Length = 682 [16:05:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706502", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:05:21]execute_script... [16:05: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)706502", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:05:21]POST & json_proto [16:05:21]process_json_proto [16:05:21]json parsed OK: [16:05:21]protocol is kg_v1.0 [16:05:21]action value=close_receipt [16:05:21]process_action close_receipt [16:05:21]cmd_close_receipt [16:05:21]MH_GetDate [16:05:21]Write to MH i2c: F0 00 00 BB 4B F5 [16:05:21]Write i2c OK [16:05:21]MH_I2C_Read... [16:05:21]Read from MH i2c: F0 [16:05:21]MH_I2C_Read... [16:05:21]Read from MH i2c: F0 09 00 [16:05:21]MH_I2C_Read... [16:05:21]Read from MH i2c: F0 09 00 BB 4B 00 C7 E9 5D 66 B2 22 B0 64 59 [16:05:21]GetLastDocTimeStamp 1717430720 [16:05:21]current date 1717430727 [16:05:21]FM_GetShiftState [16:05:21]SAM_PROTO_GetShiftState [16:05:21]wFMCommunicate request_size=4 [16:05:21]MH_SAM_APDU [16:05:21]CAPDU: 80 13 01 00 [16:05:21]Write to MH i2c: E2 08 00 BC 4B 80 13 01 00 00 00 00 00 84 [16:05:21]Write i2c OK [16:05:21]MH_I2C_Read... [16:05:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:05:21]Read from MH i2c: E2 [16:05:21]MH_I2C_Read... [16:05:21]Read from MH i2c: E2 0E 00 [16:05:21]MH_I2C_Read... [16:05:21]Read from MH i2c: E2 0E 00 BC 4B 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 5F [16:05:21]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [16:05:21]wFMCommunicate OK [16:05:21]SAM_PROTO_GetShiftState done [16:05:21]FM_GetShiftState done [16:05:21]opened in 1717378033 [16:05:21]opened+sec_in_day 1717464433 [16:05:21]quantity*price = 100015 [16:05:21]sum+1 = 100017 [16:05:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 153 03.06.2024 16:05 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68407 ФПД: 195351365281148 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T160527&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68407&fm=195351365281148&tin=02508201610067®Number=0000000000098096&sum=100000 [16:05:22]StoreToDocumentArchive [16:05:22]shift 324 fd 68407 [16:05:22]save to /storage/0324/doc_00068407 [16:05:22]save last doc name /storage/0324/doc_00068407 to /storage/kkm_last_doc_name [16:05:22]save OK [16:05:22]Clear old archive folders... [16:05:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:05:22]tlvbuf is 0023FCB0 [16:05:22]SAM_PROTO_ClearQueue [16:05:22]wFMCommunicate request_size=4 [16:05:22]MH_SAM_APDU [16:05:22]CAPDU: 80 09 00 00 [16:05:22]Write to MH i2c: E2 08 00 C9 4B 80 09 00 00 00 00 00 00 86 [16:05:22]Write i2c OK [16:05:22]MH_I2C_Read... [16:05:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:05:22]Read from MH i2c: E2 [16:05:22]MH_I2C_Read... [16:05:22]Read from MH i2c: E2 03 00 [16:05:22]MH_I2C_Read... [16:05:22]Read from MH i2c: E2 03 00 C9 4B 00 90 00 88 [16:05:22]RAPDU: 90 00 [16:05:22]wFMCommunicate OK [16:05:22]SAM_PROTO_ClearQueue done [16:05:22]KKMCreateOFDPacket [16:05:22]OFDProtocolAddRootSTLVToBuf [16:05:22]FM_MakeSignedData [16:05:22]FM_MakeSignedData [16:05:22]SAM_PROTO_SignData [16:05:22]wFMCommunicate request_size=4 [16:05:22]MH_SAM_APDU [16:05:22]CAPDU: 80 0D 01 02 [16:05:22]Write to MH i2c: E2 08 00 CA 4B 80 0D 01 02 00 00 00 00 8E [16:05:22]Write i2c OK [16:05:22]MH_I2C_Read... [16:05:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:05:22]Read from MH i2c: E2 [16:05:22]MH_I2C_Read... [16:05:22]Read from MH i2c: E2 03 00 [16:05:22]MH_I2C_Read... [16:05:22]Read from MH i2c: E2 03 00 CA 4B 00 90 00 89 [16:05:22]RAPDU: 90 00 [16:05:22]wFMCommunicate OK [16:05:22]wFMCommunicate request_size=255 [16:05:22]MH_SAM_APDU [16:05:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 C7 E9 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 37 0B 01 00 35 04 06 00 B1 [16:05:22]Write to MH i2c: E2 02 01 CB 4B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 C7 E9 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 37 0B 01 00 35 04 06 00 B1 00 00 5A [16:05:22]Write i2c OK [16:05:22]MH_I2C_Read... [16:05:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:05:23]Read from MH i2c: E2 [16:05:23]MH_I2C_Read... [16:05:23]Read from MH i2c: E2 03 00 [16:05:23]MH_I2C_Read... [16:05:23]Read from MH i2c: E2 03 00 CB 4B 00 90 00 8A [16:05:23]RAPDU: 90 00 [16:05:23]wFMCommunicate OK [16:05:23]wFMCommunicate request_size=10 [16:05:23]MH_SAM_APDU [16:05:23]CAPDU: 80 0D 02 02 05 AB C8 BB E5 7C [16:05:23]Write to MH i2c: E2 0D 00 CC 4B 80 0D 02 02 05 00 AB C8 BB E5 7C 00 00 2A [16:05:23]Write i2c OK [16:05:23]MH_I2C_Read... [16:05:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:05:23]Read from MH i2c: E2 [16:05:23]MH_I2C_Read... [16:05:23]Read from MH i2c: E2 03 00 [16:05:23]MH_I2C_Read... [16:05:23]Read from MH i2c: E2 03 00 CC 4B 00 90 00 8B [16:05:23]RAPDU: 90 00 [16:05:23]wFMCommunicate OK [16:05:23]wFMCommunicate request_size=4 [16:05:23]MH_SAM_APDU [16:05:23]CAPDU: 80 0D 03 02 [16:05:23]Write to MH i2c: E2 08 00 CD 4B 80 0D 03 02 00 00 00 00 93 [16:05:23]Write i2c OK [16:05:23]MH_I2C_Read... [16:05:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:05:23]Read from MH i2c: E2 [16:05:23]MH_I2C_Read... [16:05:23]Read from MH i2c: E2 0B 00 [16:05:23]MH_I2C_Read... [16:05:23]Read from MH i2c: E2 0B 00 CD 4B 00 C3 7C 21 55 18 BA 13 A4 90 00 D2 [16:05:23]RAPDU: C3 7C 21 55 18 BA 13 A4 90 00 [16:05:23]wFMCommunicate OK [16:05:23]SAM_PROTO_SignData done [16:05:23]FM_MakeSignedData done [16:05:23]CreateOFDProtocolMessage [16:05:23]wFMCommunicate request_size=4 [16:05:23]MH_SAM_APDU [16:05:23]CAPDU: 80 11 00 00 [16:05:23]Write to MH i2c: E2 08 00 CE 4B 80 11 00 00 00 00 00 00 93 [16:05:23]Write i2c OK [16:05:23]MH_I2C_Read... [16:05:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:23]Read from MH i2c: E2 [16:05:23]MH_I2C_Read... [16:05:23]Read from MH i2c: E2 17 00 [16:05:23]MH_I2C_Read... [16:05:23]Read from MH i2c: E2 17 00 CE 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 DE [16:05:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [16:05:23]wFMCommunicate OK [16:05:23]CreateOFDProtocolMessage done [16:05:23]OFDSenderStorePacket 68407 [16:05:23]StoreOFDPacket docnum=68407 [16:05:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 CD 7D 07 01 CA 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 C7 E9 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 37 0B 01 00 35 04 06 00 B1 AB C8 BB E5 7C C3 7C 21 55 18 BA 13 A4 [16:05:23]CheckFolder [16:05:23]dirname=/storage/ofd_packets [16:05:23]CheckFolder done [16:05:23]ProducePacketName [16:05:23]name=ofd_packets/00068407 [16:05:23]NVStorageSaveData ofd_packets/00068407 [16:05:23]File name is /storage/ofd_packets/00068407 [16:05:23]Write 301 bytes [16:05:23]NVStorageSaveData done [16:05:23]OFDSenderStorePacket done [16:05:23]KKMCreateOFDPacket done [16:05:23]NVStorageSaveData kkm_last_timestamp [16:05:23]File name is /storage/kkm_last_timestamp [16:05:23]Write 4 bytes [16:05:23]NVStorageSaveData done [16:05:23]ExternCall_PrintAddStr [16:05:23]wPrintStart [16:05:23]Write to MH i2c: 01 00 00 CF 4B 1A [16:05:23]Write i2c OK [16:05:23]MH_I2C_Read... [16:05:23]Read from MH i2c: 01 [16:05:23]MH_I2C_Read... [16:05:23]Read from MH i2c: 01 07 00 [16:05:23]MH_I2C_Read... [16:05:23]Read from MH i2c: 01 07 00 CF 4B 00 00 00 00 00 FF 0F 2F [16:05:23]RasterBufferAndPrint [16:05:23]line Счет N : (1)706502 [16:05:23]line ИНН: 02508201610067 [16:05:23]line Контрольно-Кассовый Чек [16:05:23]line ПРОДАЖА [16:05:23]line ТРК (МРК, ГНК) : 32 [16:05:23]line Товар: 2710124130 [16:05:23]line Аи-92-К-4 [16:05:23]line 14.950 * 66.90 [16:05:23]line = 1000.16 [16:05:23]line НДС 12% НСП 1% [16:05:23]line > о реализуемом товаре [16:05:23]line ОКРУГЛЕНИЕ: -0.16 [16:05:23]line ИТОГО: 1000.00 [16:05:23]line Внесено: 1000.00 [16:05:23]line СДАЧА: 0.00 [16:05:23]line НСП 1% : 8.85 [16:05:23]line НДС 12% : 106.21 [16:05:23]line Наличными: 1000.00 [16:05:23]line Безнал.: 0.00 [16:05:23]line Место: АЗС № 62 "Партнер Нефть" [16:05:23]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [16:05:23]line СНО: Общий режим [16:05:23]line Чек 153 03.06.2024 16:05 [16:05:23]line Смена: 324 ФФД: 1.0 [16:05:23]line ЗНМ: 0300000181 [16:05:23]line РНМ: 0000000000098096 [16:05:23]line Версия ККМ: 001 [16:05:23]line ФМ: 0000000000965400 [16:05:23]line ФД: 68407 [16:05:23]line ФПД: 195351365281148 [16:05:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T160527&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68407&fm=195351365281148&tin=02508201610067®Number=0000000000098096&sum=100000 [16:05:23]written 0, free lines is 4095 [16:05:23]OFD Sender: Processing packet 68407 [packets to send 26, broken 25] [16:05:23]ProducePacketName [16:05:23]name=ofd_packets/00068407 [16:05:23]OFD Sender: To server: pG, [16:05:23]CommunicateWithHost lk.salyk.kg:30040 [16:05:23]ConnectInit lk.salyk.kg [16:05:23]Connected sock=7 [16:05:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 CD 7D 07 01 CA 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 C7 E9 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 37 0B 01 00 35 04 06 00 B1 AB C8 BB E5 7C C3 7C 21 55 18 BA 13 A4 [16:05:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 B7 31 47 00 AA 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 37 0B 01 00 F4 03 04 00 C2 90 5D 66 B6 04 01 00 00 D1 32 BC 9B 24 E0 90 76 [16:05:23]CommunicateWithHost err = 0 [16:05:23]CheckOFDResponse [16:05:23]1017 (14) - 77093643461234 [16:05:23]1041 (16) - 0000000000965400 [16:05:23]1040 (4) - 68407 [16:05:23]1012 (4) - 03.06.2024 09:45 [16:05:23]1206 (1) - 0 [16:05:23]OFD Sender: Remove packet 68407 [16:05:23]ProducePacketName [16:05:23]name=ofd_packets/00068407 [16:05:23]NVStorageDeleteData [16:05:23]Write to MH i2c: 01 00 00 FA 4B 45 [16:05:23]Write i2c OK [16:05:23]MH_I2C_Read... [16:05:23]Read from MH i2c: 01 [16:05:23]MH_I2C_Read... [16:05:23]Read from MH i2c: 01 07 00 [16:05:23]MH_I2C_Read... [16:05:23]Read from MH i2c: 01 07 00 FA 4B 00 00 00 00 00 F1 0C 49 [16:05:23]RasterBufferAndPrint [16:05:23]line [16:05:23]line [16:05:23]line [16:05:23]line [16:05:23]line [16:05:23]written 0, free lines is 3322 [16:05:23]MH_Cut [16:05:23]Write to MH i2c: D1 01 00 01 4C 01 1F [16:05:23]Write i2c OK [16:05:23]MH_I2C_Read... [16:05:23]Read from MH i2c: D1 [16:05:23]MH_I2C_Read... [16:05:23]Read from MH i2c: D1 01 00 [16:05:23]MH_I2C_Read... [16:05:23]Read from MH i2c: D1 01 00 01 4C 00 1E [16:05:23]Write to MH i2c: 01 00 00 02 4C 4E [16:05:23]Write i2c OK [16:05:23]MH_I2C_Read... [16:05:24]OFD Sender: No OFD packet to send [16:05:24]*** Cut start [16:05:24]*** Partial cut [16:05:24]*** CUTSNS_PIN = 1 [16:05:24]*** CUTSNS_PIN = 0 [16:05:24]*** Brake cut motor [16:05:25]Read from MH i2c: 01 [16:05:25]MH_I2C_Read... [16:05:25]*** Stop cut motor [16:05:25]*** Cut end [16:05:25]Read from MH i2c: 01 07 00 [16:05:25]MH_I2C_Read... [16:05:25]Read from MH i2c: 01 07 00 02 4C 00 00 00 00 00 FF 0F 63 [16:05:25]process_action close_receipt done [16:05:25]requested_data is exist [16:05:25]produce_requested_data [16:05:25]requested_item fm.sn is exist - process it [16:05:25]wFMCommunicate request_size=4 [16:05:25]MH_SAM_APDU [16:05:25]CAPDU: 80 11 00 00 [16:05:25]Write to MH i2c: E2 08 00 03 4C 80 11 00 00 00 00 00 00 C9 [16:05:25]Write i2c OK [16:05:25]MH_I2C_Read... [16:05:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:25]Read from MH i2c: E2 [16:05:25]MH_I2C_Read... [16:05:25]Read from MH i2c: E2 17 00 [16:05:25]MH_I2C_Read... [16:05:25]Read from MH i2c: E2 17 00 03 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 14 [16:05:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [16:05:25]wFMCommunicate OK [16:05:25]requested_item fd.num is exist - process it [16:05:25]SAM_PROTO_GetFieldsCounters [16:05:25]wFMCommunicate request_size=4 [16:05:25]MH_SAM_APDU [16:05:25]CAPDU: 80 13 00 00 [16:05:25]Write to MH i2c: E2 08 00 04 4C 80 13 00 00 00 00 00 00 CC [16:05:25]Write i2c OK [16:05:25]MH_I2C_Read... [16:05:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:05:25]Read from MH i2c: E2 [16:05:25]MH_I2C_Read... [16:05:25]Read from MH i2c: E2 62 00 [16:05:25]MH_I2C_Read... [16:05:25]Read from MH i2c: E2 62 00 04 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 37 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 3F [16:05:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 37 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:05:25]wFMCommunicate OK [16:05:25]SAM_PROTO_GetFieldsCounters done [16:05:25]requested_item shift.num is exist - process it [16:05:25]requested_item shift.opened is exist - process it [16:05:25]req_shift_opened [16:05:25]FM_GetShiftState [16:05:25]SAM_PROTO_GetShiftState [16:05:25]wFMCommunicate request_size=4 [16:05:25]MH_SAM_APDU [16:05:25]CAPDU: 80 13 01 00 [16:05:25]Write to MH i2c: E2 08 00 05 4C 80 13 01 00 00 00 00 00 CE [16:05:25]Write i2c OK [16:05:25]MH_I2C_Read... [16:05:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:05:25]Read from MH i2c: E2 [16:05:25]MH_I2C_Read... [16:05:25]Read from MH i2c: E2 0E 00 [16:05:25]MH_I2C_Read... [16:05:25]Read from MH i2c: E2 0E 00 05 4C 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 A9 [16:05:25]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [16:05:25]wFMCommunicate OK [16:05:25]SAM_PROTO_GetShiftState done [16:05:25]FM_GetShiftState done [16:05:25]req_shift_opened done [16:05:25]requested_item shift.open_date is exist - process it [16:05:25]req_shift_open_date [16:05:25]req_shift_open_date done [16:05:25]produce_requested_data done [16:05:25]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68407,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [16:05:25]process_action_free close_receipt [16:05:25]json_value_free [16:05:25]json_value_free done [16:05:25]process_json_proto returns [16:05:25]Send response to host [16:05:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68407,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [16:05:25]free response buf [16:05:25]execute_script done [16:05:25]execute_script returns [16:05:25]free content buf [16:05:25]Sock 6.Close socket [16:05:25]Sock 6.Thread stoped [16:05:29]OFD Sender: No OFD packet to send [16:05:34]OFD Sender: No OFD packet to send [16:05:39]OFD Sender: No OFD packet to send [16:05:44]OFD Sender: No OFD packet to send [16:05:49]OFD Sender: No OFD packet to send [16:05:54]OFD Sender: No OFD packet to send [16:05:59]OFD Sender: No OFD packet to send [16:06:04]OFD Sender: No OFD packet to send [16:06:09]OFD Sender: No OFD packet to send [16:06:14]OFD Sender: No OFD packet to send [16:06:19]OFD Sender: No OFD packet to send [16:06:24]OFD Sender: No OFD packet to send [16:06:29]OFD Sender: No OFD packet to send [16:06:34]OFD Sender: No OFD packet to send [16:06:39]OFD Sender: No OFD packet to send [16:06:44]OFD Sender: No OFD packet to send [16:06:49]OFD Sender: No OFD packet to send [16:06:54]OFD Sender: No OFD packet to send [16:06:59]OFD Sender: No OFD packet to send [16:07:04]OFD Sender: No OFD packet to send [16:07:09]OFD Sender: No OFD packet to send [16:07:14]OFD Sender: No OFD packet to send [16:07:19]OFD Sender: No OFD packet to send [16:07:24]OFD Sender: No OFD packet to send [16:07:29]OFD Sender: No OFD packet to send [16:07:34]OFD Sender: No OFD packet to send [16:07:39]OFD Sender: No OFD packet to send [16:07:44]OFD Sender: No OFD packet to send [16:07:49]OFD Sender: No OFD packet to send [16:07:54]OFD Sender: No OFD packet to send [16:07:59]OFD Sender: No OFD packet to send [16:08:04]OFD Sender: No OFD packet to send [16:08:09]OFD Sender: No OFD packet to send [16:08:14]OFD Sender: No OFD packet to send [16:08: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:15]accept exits with 5 [16:09:15]New connection [16:09:15]New thread 3066543460 created [16:09:15]Thread 3066686820 joined [16:09:15]Waiting for new connection... [16:09:15] Sock 5.Parse request [16:09:15]Sock 5.Check first char [16:09:15]Sock 5.First char is OK [16:09:15]request: POST /json_proto HTTP/1.0 [16:09:15]Method: POST [16:09:15]URL: /json_proto [16:09:15]Method is POST - this is cgi request [16:09:15]url: /json_proto [16:09:15]query_string will be loaded in cgi processing [16:09:15]execute_cgi json_proto POST (null) [16:09:15]execute_cgi path=json_proto method=POST [16:09:15]POST find Content-Length [16:09:15]Host: 172.17.36.132:8080 [16:09:15]Content-Length: 677 [16:09:15]Content-Type: application/json [16:09:15] [16:09:15]POST finish read [16:09:15]Found Content-Length = 677 [16:09:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706505", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:09:15]execute_script... [16:09: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)706505", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:09:15]POST & json_proto [16:09:15]process_json_proto [16:09:15]json parsed OK: [16:09:15]protocol is kg_v1.0 [16:09:15]action value=close_receipt [16:09:15]process_action close_receipt [16:09:15]cmd_close_receipt [16:09:15]MH_GetDate [16:09:15]Write to MH i2c: F0 00 00 06 4C 41 [16:09:15]Write i2c OK [16:09:15]MH_I2C_Read... [16:09:15]Read from MH i2c: F0 [16:09:15]MH_I2C_Read... [16:09:15]Read from MH i2c: F0 09 00 [16:09:15]MH_I2C_Read... [16:09:15]Read from MH i2c: F0 09 00 06 4C 00 B1 EA 5D 66 B2 22 B0 64 90 [16:09:15]GetLastDocTimeStamp 1717430727 [16:09:15]current date 1717430961 [16:09:15]FM_GetShiftState [16:09:15]SAM_PROTO_GetShiftState [16:09:15]wFMCommunicate request_size=4 [16:09:15]MH_SAM_APDU [16:09:15]CAPDU: 80 13 01 00 [16:09:15]Write to MH i2c: E2 08 00 07 4C 80 13 01 00 00 00 00 00 D0 [16:09:15]Write i2c OK [16:09:15]MH_I2C_Read... [16:09:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:09:15]Read from MH i2c: E2 [16:09:15]MH_I2C_Read... [16:09:15]Read from MH i2c: E2 0E 00 [16:09:15]MH_I2C_Read... [16:09:15]Read from MH i2c: E2 0E 00 07 4C 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 AB [16:09:15]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [16:09:15]wFMCommunicate OK [16:09:15]SAM_PROTO_GetShiftState done [16:09:15]FM_GetShiftState done [16:09:15]opened in 1717378033 [16:09:15]opened+sec_in_day 1717464433 [16:09:15]quantity*price = 60009 [16:09:15]sum+1 = 60010 [16:09:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 154 03.06.2024 16:09 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68408 ФПД: 15654685636262 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T160921&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68408&fm=15654685636262&tin=02508201610067®Number=0000000000098096&sum=60000 [16:09:16]StoreToDocumentArchive [16:09:16]shift 324 fd 68408 [16:09:16]save to /storage/0324/doc_00068408 [16:09:16]save last doc name /storage/0324/doc_00068408 to /storage/kkm_last_doc_name [16:09:16]save OK [16:09:16]Clear old archive folders... [16:09:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:09:16]tlvbuf is 004D9F80 [16:09:16]SAM_PROTO_ClearQueue [16:09:16]wFMCommunicate request_size=4 [16:09:16]MH_SAM_APDU [16:09:16]CAPDU: 80 09 00 00 [16:09:16]Write to MH i2c: E2 08 00 14 4C 80 09 00 00 00 00 00 00 D2 [16:09:16]Write i2c OK [16:09:16]MH_I2C_Read... [16:09:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:09:16]Read from MH i2c: E2 [16:09:16]MH_I2C_Read... [16:09:16]Read from MH i2c: E2 03 00 [16:09:16]MH_I2C_Read... [16:09:16]Read from MH i2c: E2 03 00 14 4C 00 90 00 D4 [16:09:16]RAPDU: 90 00 [16:09:16]wFMCommunicate OK [16:09:16]SAM_PROTO_ClearQueue done [16:09:16]KKMCreateOFDPacket [16:09:16]OFDProtocolAddRootSTLVToBuf [16:09:16]FM_MakeSignedData [16:09:16]FM_MakeSignedData [16:09:16]SAM_PROTO_SignData [16:09:16]wFMCommunicate request_size=4 [16:09:16]MH_SAM_APDU [16:09:16]CAPDU: 80 0D 01 02 [16:09:16]Write to MH i2c: E2 08 00 15 4C 80 0D 01 02 00 00 00 00 DA [16:09:16]Write i2c OK [16:09:16]MH_I2C_Read... [16:09:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:09:17]Read from MH i2c: E2 [16:09:17]MH_I2C_Read... [16:09:17]Read from MH i2c: E2 03 00 [16:09:17]MH_I2C_Read... [16:09:17]Read from MH i2c: E2 03 00 15 4C 00 90 00 D5 [16:09:17]RAPDU: 90 00 [16:09:17]wFMCommunicate OK [16:09:17]wFMCommunicate request_size=255 [16:09:17]MH_SAM_APDU [16:09:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 B1 EA 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 38 0B 01 00 35 04 06 00 0E [16:09:17]Write to MH i2c: E2 02 01 16 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 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 B1 EA 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 38 0B 01 00 35 04 06 00 0E 00 00 D3 [16:09:17]Write i2c OK [16:09:17]MH_I2C_Read... [16:09:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:09:17]Read from MH i2c: E2 [16:09:17]MH_I2C_Read... [16:09:17]Read from MH i2c: E2 03 00 [16:09:17]MH_I2C_Read... [16:09:17]Read from MH i2c: E2 03 00 16 4C 00 90 00 D6 [16:09:17]RAPDU: 90 00 [16:09:17]wFMCommunicate OK [16:09:17]wFMCommunicate request_size=10 [16:09:17]MH_SAM_APDU [16:09:17]CAPDU: 80 0D 02 02 05 3C E3 F9 F6 A6 [16:09:17]Write to MH i2c: E2 0D 00 17 4C 80 0D 02 02 05 00 3C E3 F9 F6 A6 00 00 9B [16:09:17]Write i2c OK [16:09:17]MH_I2C_Read... [16:09:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:09:17]Read from MH i2c: E2 [16:09:17]MH_I2C_Read... [16:09:17]Read from MH i2c: E2 03 00 [16:09:17]MH_I2C_Read... [16:09:17]Read from MH i2c: E2 03 00 17 4C 00 90 00 D7 [16:09:17]RAPDU: 90 00 [16:09:17]wFMCommunicate OK [16:09:17]wFMCommunicate request_size=4 [16:09:17]MH_SAM_APDU [16:09:17]CAPDU: 80 0D 03 02 [16:09:17]Write to MH i2c: E2 08 00 18 4C 80 0D 03 02 00 00 00 00 DF [16:09:17]Write i2c OK [16:09:17]MH_I2C_Read... [16:09:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:09:17]Read from MH i2c: E2 [16:09:17]MH_I2C_Read... [16:09:17]Read from MH i2c: E2 0B 00 [16:09:17]MH_I2C_Read... [16:09:17]Read from MH i2c: E2 0B 00 18 4C 00 7C 69 1D DE 96 5D 31 AD 90 00 91 [16:09:17]RAPDU: 7C 69 1D DE 96 5D 31 AD 90 00 [16:09:17]wFMCommunicate OK [16:09:17]SAM_PROTO_SignData done [16:09:17]FM_MakeSignedData done [16:09:17]CreateOFDProtocolMessage [16:09:17]wFMCommunicate request_size=4 [16:09:17]MH_SAM_APDU [16:09:17]CAPDU: 80 11 00 00 [16:09:17]Write to MH i2c: E2 08 00 19 4C 80 11 00 00 00 00 00 00 DF [16:09:17]Write i2c OK [16:09:17]MH_I2C_Read... [16:09:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:09:17]Read from MH i2c: E2 [16:09:17]MH_I2C_Read... [16:09:17]Read from MH i2c: E2 17 00 [16:09:17]MH_I2C_Read... [16:09:17]Read from MH i2c: E2 17 00 19 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 2A [16:09:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [16:09:17]wFMCommunicate OK [16:09:17]CreateOFDProtocolMessage done [16:09:17]OFDSenderStorePacket 68408 [16:09:17]StoreOFDPacket docnum=68408 [16:09:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 65 07 07 01 08 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 B1 EA 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 38 0B 01 00 35 04 06 00 0E 3C E3 F9 F6 A6 7C 69 1D DE 96 5D 31 AD [16:09:17]CheckFolder [16:09:17]dirname=/storage/ofd_packets [16:09:17]CheckFolder done [16:09:17]ProducePacketName [16:09:17]name=ofd_packets/00068408 [16:09:17]NVStorageSaveData ofd_packets/00068408 [16:09:17]File name is /storage/ofd_packets/00068408 [16:09:17]Write 301 bytes [16:09:17]NVStorageSaveData done [16:09:17]OFDSenderStorePacket done [16:09:17]KKMCreateOFDPacket done [16:09:17]NVStorageSaveData kkm_last_timestamp [16:09:17]File name is /storage/kkm_last_timestamp [16:09:17]Write 4 bytes [16:09:17]NVStorageSaveData done [16:09:17]ExternCall_PrintAddStr [16:09:17]wPrintStart [16:09:17]Write to MH i2c: 01 00 00 1A 4C 66 [16:09:17]Write i2c OK [16:09:17]MH_I2C_Read... [16:09:17]Read from MH i2c: 01 [16:09:17]MH_I2C_Read... [16:09:17]Read from MH i2c: 01 07 00 [16:09:17]MH_I2C_Read... [16:09:17]Read from MH i2c: 01 07 00 1A 4C 00 00 00 00 00 FF 0F 7B [16:09:17]RasterBufferAndPrint [16:09:17]line Счет N : (1)706505 [16:09:17]line ИНН: 02508201610067 [16:09:17]line Контрольно-Кассовый Чек [16:09:17]line ПРОДАЖА [16:09:17]line ТРК (МРК, ГНК) : 53 [16:09:17]line Товар: 2710124130 [16:09:17]line Аи-92-К-4 [16:09:17]line 8.970 * 66.90 [16:09:17]line = 600.09 [16:09:17]line НДС 12% НСП 1% [16:09:17]line > о реализуемом товаре [16:09:17]line ОКРУГЛЕНИЕ: -0.09 [16:09:17]line ИТОГО: 600.00 [16:09:17]line Внесено: 600.00 [16:09:17]line СДАЧА: 0.00 [16:09:17]line НСП 1% : 5.31 [16:09:17]line НДС 12% : 63.73 [16:09:17]line Наличными: 600.00 [16:09:17]line Безнал.: 0.00 [16:09:17]line Место: АЗС № 62 "Партнер Нефть" [16:09:17]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [16:09:17]line СНО: Общий режим [16:09:17]line Чек 154 03.06.2024 16:09 [16:09:17]line Смена: 324 ФФД: 1.0 [16:09:17]line ЗНМ: 0300000181 [16:09:17]line РНМ: 0000000000098096 [16:09:17]line Версия ККМ: 001 [16:09:17]line ФМ: 0000000000965400 [16:09:17]line ФД: 68408 [16:09:17]line ФПД: 15654685636262 [16:09:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T160921&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68408&fm=15654685636262&tin=02508201610067®Number=0000000000098096&sum=60000 [16:09:17]OFD Sender: Processing packet 68408 [packets to send 26, broken 25] [16:09:17]ProducePacketName [16:09:17]name=ofd_packets/00068408 [16:09:17]OFD Sender: To server: pG, [16:09:17]CommunicateWithHost lk.salyk.kg:30040 [16:09:17]ConnectInit lk.salyk.kg [16:09:17]written 0, free lines is 4095 [16:09:17]Connected sock=7 [16:09:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 65 07 07 01 08 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 B1 EA 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 38 0B 01 00 35 04 06 00 0E 3C E3 F9 F6 A6 7C 69 1D DE 96 5D 31 AD [16:09:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 B8 7C 47 00 47 B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 38 0B 01 00 F4 03 04 00 AD 91 5D 66 B6 04 01 00 00 12 FC 2E 37 C2 22 BC DF [16:09:18]CommunicateWithHost err = 0 [16:09:18]CheckOFDResponse [16:09:18]1017 (14) - 77093643461234 [16:09:18]1041 (16) - 0000000000965400 [16:09:18]1040 (4) - 68408 [16:09:18]1012 (4) - 03.06.2024 09:49 [16:09:18]1206 (1) - 0 [16:09:18]OFD Sender: Remove packet 68408 [16:09:18]ProducePacketName [16:09:18]name=ofd_packets/00068408 [16:09:18]NVStorageDeleteData [16:09:18]Write to MH i2c: 01 00 00 45 4C 91 [16:09:18]Write i2c OK [16:09:18]MH_I2C_Read... [16:09:18]Read from MH i2c: 01 [16:09:18]MH_I2C_Read... [16:09:18]Read from MH i2c: 01 07 00 [16:09:18]MH_I2C_Read... [16:09:18]Read from MH i2c: 01 07 00 45 4C 00 00 00 00 00 E2 0C 86 [16:09:18]RasterBufferAndPrint [16:09:18]line [16:09:18]line [16:09:18]line [16:09:18]line [16:09:18]line [16:09:18]written 0, free lines is 3304 [16:09:18]MH_Cut [16:09:18]Write to MH i2c: D1 01 00 4C 4C 01 6A [16:09:18]Write i2c OK [16:09:18]MH_I2C_Read... [16:09:18]Read from MH i2c: D1 [16:09:18]MH_I2C_Read... [16:09:18]Read from MH i2c: D1 01 00 [16:09:18]MH_I2C_Read... [16:09:18]Read from MH i2c: D1 01 00 4C 4C 00 69 [16:09:18]Write to MH i2c: 01 00 00 4D 4C 99 [16:09:18]Write i2c OK [16:09:18]MH_I2C_Read... [16:09:18]OFD Sender: No OFD packet to send [16:09:19]*** Cut start [16:09:19]*** Partial cut [16:09:19]*** CUTSNS_PIN = 1 [16:09:19]*** CUTSNS_PIN = 0 [16:09:19]*** Brake cut motor [16:09:19]Read from MH i2c: 01 [16:09:19]MH_I2C_Read... [16:09:19]*** Stop cut motor [16:09:19]*** Cut end [16:09:19]Read from MH i2c: 01 07 00 [16:09:19]MH_I2C_Read... [16:09:19]Read from MH i2c: 01 07 00 4D 4C 00 00 00 00 00 FF 0F AE [16:09:19]process_action close_receipt done [16:09:19]requested_data is exist [16:09:19]produce_requested_data [16:09:19]requested_item fm.sn is exist - process it [16:09:19]wFMCommunicate request_size=4 [16:09:19]MH_SAM_APDU [16:09:19]CAPDU: 80 11 00 00 [16:09:19]Write to MH i2c: E2 08 00 4E 4C 80 11 00 00 00 00 00 00 14 [16:09:19]Write i2c OK [16:09:19]MH_I2C_Read... [16:09:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:09:19]Read from MH i2c: E2 [16:09:19]MH_I2C_Read... [16:09:19]Read from MH i2c: E2 17 00 [16:09:19]MH_I2C_Read... [16:09:19]Read from MH i2c: E2 17 00 4E 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 5F [16:09:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [16:09:19]wFMCommunicate OK [16:09:19]requested_item fd.num is exist - process it [16:09:19]SAM_PROTO_GetFieldsCounters [16:09:19]wFMCommunicate request_size=4 [16:09:19]MH_SAM_APDU [16:09:19]CAPDU: 80 13 00 00 [16:09:19]Write to MH i2c: E2 08 00 4F 4C 80 13 00 00 00 00 00 00 17 [16:09:19]Write i2c OK [16:09:19]MH_I2C_Read... [16:09:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:09:19]Read from MH i2c: E2 [16:09:19]MH_I2C_Read... [16:09:19]Read from MH i2c: E2 62 00 [16:09:19]MH_I2C_Read... [16:09:19]Read from MH i2c: E2 62 00 4F 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 38 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 8E [16:09:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 38 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:09:19]wFMCommunicate OK [16:09:19]SAM_PROTO_GetFieldsCounters done [16:09:19]requested_item shift.num is exist - process it [16:09:19]requested_item shift.opened is exist - process it [16:09:19]req_shift_opened [16:09:19]FM_GetShiftState [16:09:19]SAM_PROTO_GetShiftState [16:09:19]wFMCommunicate request_size=4 [16:09:19]MH_SAM_APDU [16:09:19]CAPDU: 80 13 01 00 [16:09:19]Write to MH i2c: E2 08 00 50 4C 80 13 01 00 00 00 00 00 19 [16:09:19]Write i2c OK [16:09:19]MH_I2C_Read... [16:09:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:09:19]Read from MH i2c: E2 [16:09:19]MH_I2C_Read... [16:09:19]Read from MH i2c: E2 0E 00 [16:09:19]MH_I2C_Read... [16:09:19]Read from MH i2c: E2 0E 00 50 4C 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 F4 [16:09:19]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [16:09:19]wFMCommunicate OK [16:09:19]SAM_PROTO_GetShiftState done [16:09:19]FM_GetShiftState done [16:09:19]req_shift_opened done [16:09:19]requested_item shift.open_date is exist - process it [16:09:19]req_shift_open_date [16:09:19]req_shift_open_date done [16:09:19]produce_requested_data done [16:09:19]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68408,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [16:09:19]process_action_free close_receipt [16:09:19]json_value_free [16:09:19]json_value_free done [16:09:19]process_json_proto returns [16:09:19]Send response to host [16:09:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68408,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [16:09:19]free response buf [16:09:19]execute_script done [16:09:19]execute_script returns [16:09:19]free content buf [16:09:19]Sock 5.Close socket [16:09:19]Sock 5.Thread stoped [16:09:23]OFD Sender: No OFD packet to send [16:09:28]OFD Sender: No OFD packet to send [16:09:33]OFD Sender: No OFD packet to send [16:09:38]OFD Sender: No OFD packet to send [16:09:41]accept exits with 6 [16:09:41]New connection [16:09:41]New thread 3066686820 created [16:09:41]Thread 3066543460 joined [16:09:41]Waiting for new connection... [16:09:41] Sock 6.Parse request [16:09:41]Sock 6.Check first char [16:09:41]Sock 6.First char is OK [16:09:41]request: POST /json_proto HTTP/1.0 [16:09:41]Method: POST [16:09:41]URL: /json_proto [16:09:41]Method is POST - this is cgi request [16:09:41]url: /json_proto [16:09:41]query_string will be loaded in cgi processing [16:09:41]execute_cgi json_proto POST (null) [16:09:41]execute_cgi path=json_proto method=POST [16:09:41]POST find Content-Length [16:09:41]Host: 172.17.36.132:8080 [16:09:41]Content-Length: 675 [16:09:41]Content-Type: application/json [16:09:41] [16:09:41]POST finish read [16:09:41]Found Content-Length = 675 [16:09:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706504", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 14.730, "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:09:41]execute_script... [16:09: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)706504", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 14.730, "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:09:41]POST & json_proto [16:09:41]process_json_proto [16:09:41]json parsed OK: [16:09:41]protocol is kg_v1.0 [16:09:41]action value=close_receipt [16:09:41]process_action close_receipt [16:09:41]cmd_close_receipt [16:09:41]MH_GetDate [16:09:41]Write to MH i2c: F0 00 00 51 4C 8C [16:09:41]Write i2c OK [16:09:41]MH_I2C_Read... [16:09:41]Read from MH i2c: F0 [16:09:41]MH_I2C_Read... [16:09:41]Read from MH i2c: F0 09 00 [16:09:41]MH_I2C_Read... [16:09:41]Read from MH i2c: F0 09 00 51 4C 00 CB EA 5D 66 B2 22 B0 64 F5 [16:09:41]GetLastDocTimeStamp 1717430961 [16:09:41]current date 1717430987 [16:09:41]FM_GetShiftState [16:09:41]SAM_PROTO_GetShiftState [16:09:41]wFMCommunicate request_size=4 [16:09:41]MH_SAM_APDU [16:09:41]CAPDU: 80 13 01 00 [16:09:41]Write to MH i2c: E2 08 00 52 4C 80 13 01 00 00 00 00 00 1B [16:09:41]Write i2c OK [16:09:41]MH_I2C_Read... [16:09:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:09:41]Read from MH i2c: E2 [16:09:41]MH_I2C_Read... [16:09:41]Read from MH i2c: E2 0E 00 [16:09:41]MH_I2C_Read... [16:09:41]Read from MH i2c: E2 0E 00 52 4C 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 F6 [16:09:41]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [16:09:41]wFMCommunicate OK [16:09:41]SAM_PROTO_GetShiftState done [16:09:41]FM_GetShiftState done [16:09:41]opened in 1717378033 [16:09:41]opened+sec_in_day 1717464433 [16:09:41]quantity*price = 100016 [16:09:41]sum+1 = 100018 [16:09:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 155 03.06.2024 16:09 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68409 ФПД: 279200789822222 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T160947&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68409&fm=279200789822222&tin=02508201610067®Number=0000000000098096&sum=100000 [16:09:42]StoreToDocumentArchive [16:09:42]shift 324 fd 68409 [16:09:42]save to /storage/0324/doc_00068409 [16:09:42]save last doc name /storage/0324/doc_00068409 to /storage/kkm_last_doc_name [16:09:42]save OK [16:09:42]Clear old archive folders... [16:09:42]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:09:42]tlvbuf is B6D676B0 [16:09:42]SAM_PROTO_ClearQueue [16:09:42]wFMCommunicate request_size=4 [16:09:42]MH_SAM_APDU [16:09:42]CAPDU: 80 09 00 00 [16:09:42]Write to MH i2c: E2 08 00 5F 4C 80 09 00 00 00 00 00 00 1D [16:09:42]Write i2c OK [16:09:42]MH_I2C_Read... [16:09:42]Read from MH i2c: E2 [16:09:42]MH_I2C_Read... [16:09:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:09:42]Read from MH i2c: E2 03 00 [16:09:42]MH_I2C_Read... [16:09:42]Read from MH i2c: E2 03 00 5F 4C 00 90 00 1F [16:09:42]RAPDU: 90 00 [16:09:42]wFMCommunicate OK [16:09:42]SAM_PROTO_ClearQueue done [16:09:42]KKMCreateOFDPacket [16:09:42]OFDProtocolAddRootSTLVToBuf [16:09:42]FM_MakeSignedData [16:09:42]FM_MakeSignedData [16:09:42]SAM_PROTO_SignData [16:09:42]wFMCommunicate request_size=4 [16:09:42]MH_SAM_APDU [16:09:42]CAPDU: 80 0D 01 02 [16:09:42]Write to MH i2c: E2 08 00 60 4C 80 0D 01 02 00 00 00 00 25 [16:09:42]Write i2c OK [16:09:42]MH_I2C_Read... [16:09:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:09:42]Read from MH i2c: E2 [16:09:42]MH_I2C_Read... [16:09:42]Read from MH i2c: E2 03 00 [16:09:42]MH_I2C_Read... [16:09:42]Read from MH i2c: E2 03 00 60 4C 00 90 00 20 [16:09:42]RAPDU: 90 00 [16:09:42]wFMCommunicate OK [16:09:42]wFMCommunicate request_size=255 [16:09:42]MH_SAM_APDU [16:09:42]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 39 00 00 00 00 00 37 04 06 00 86 1A 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 9B 00 00 00 F4 03 04 00 CB EA 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 39 0B 01 00 35 04 06 00 [16:09:42]Write to MH i2c: E2 02 01 61 4C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 39 00 00 00 00 00 37 04 06 00 86 1A 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 9B 00 00 00 F4 03 04 00 CB EA 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 39 0B 01 00 35 04 06 00 00 00 FC [16:09:42]Write i2c OK [16:09:42]MH_I2C_Read... [16:09:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:09:43]Read from MH i2c: E2 [16:09:43]MH_I2C_Read... [16:09:43]Read from MH i2c: E2 03 00 [16:09:43]MH_I2C_Read... [16:09:43]Read from MH i2c: E2 03 00 61 4C 00 90 00 21 [16:09:43]RAPDU: 90 00 [16:09:43]wFMCommunicate OK [16:09:43]wFMCommunicate request_size=11 [16:09:43]MH_SAM_APDU [16:09:43]CAPDU: 80 0D 02 02 06 FD EE 7F E5 FB 0E [16:09:43]Write to MH i2c: E2 0E 00 62 4C 80 0D 02 02 06 00 FD EE 7F E5 FB 0E 00 00 8C [16:09:43]Write i2c OK [16:09:43]MH_I2C_Read... [16:09:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:09:43]Read from MH i2c: E2 [16:09:43]MH_I2C_Read... [16:09:43]Read from MH i2c: E2 03 00 [16:09:43]MH_I2C_Read... [16:09:43]Read from MH i2c: E2 03 00 62 4C 00 90 00 22 [16:09:43]RAPDU: 90 00 [16:09:43]wFMCommunicate OK [16:09:43]wFMCommunicate request_size=4 [16:09:43]MH_SAM_APDU [16:09:43]CAPDU: 80 0D 03 02 [16:09:43]Write to MH i2c: E2 08 00 63 4C 80 0D 03 02 00 00 00 00 2A [16:09:43]Write i2c OK [16:09:43]MH_I2C_Read... [16:09:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:09:43]Read from MH i2c: E2 [16:09:43]MH_I2C_Read... [16:09:43]Read from MH i2c: E2 0B 00 [16:09:43]MH_I2C_Read... [16:09:43]Read from MH i2c: E2 0B 00 63 4C 00 28 CC 56 BF EC C4 A9 FE 90 00 8B [16:09:43]RAPDU: 28 CC 56 BF EC C4 A9 FE 90 00 [16:09:43]wFMCommunicate OK [16:09:43]SAM_PROTO_SignData done [16:09:43]FM_MakeSignedData done [16:09:43]CreateOFDProtocolMessage [16:09:43]wFMCommunicate request_size=4 [16:09:43]MH_SAM_APDU [16:09:43]CAPDU: 80 11 00 00 [16:09:43]Write to MH i2c: E2 08 00 64 4C 80 11 00 00 00 00 00 00 2A [16:09:43]Write i2c OK [16:09:43]MH_I2C_Read... [16:09:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:09:43]Read from MH i2c: E2 [16:09:43]MH_I2C_Read... [16:09:43]Read from MH i2c: E2 17 00 [16:09:43]MH_I2C_Read... [16:09:43]Read from MH i2c: E2 17 00 64 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 75 [16:09:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [16:09:43]wFMCommunicate OK [16:09:43]CreateOFDProtocolMessage done [16:09:43]OFDSenderStorePacket 68409 [16:09:43]StoreOFDPacket docnum=68409 [16:09:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 6C DD 08 01 94 4D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 39 00 00 00 00 00 37 04 06 00 86 1A 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 9B 00 00 00 F4 03 04 00 CB EA 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 39 0B 01 00 35 04 06 00 FD EE 7F E5 FB 0E 28 CC 56 BF EC C4 A9 FE [16:09:43]CheckFolder [16:09:43]dirname=/storage/ofd_packets [16:09:43]CheckFolder done [16:09:43]ProducePacketName [16:09:43]name=ofd_packets/00068409 [16:09:43]NVStorageSaveData ofd_packets/00068409 [16:09:43]File name is /storage/ofd_packets/00068409 [16:09:43]Write 302 bytes [16:09:43]NVStorageSaveData done [16:09:43]OFDSenderStorePacket done [16:09:43]KKMCreateOFDPacket done [16:09:43]NVStorageSaveData kkm_last_timestamp [16:09:43]File name is /storage/kkm_last_timestamp [16:09:43]Write 4 bytes [16:09:43]NVStorageSaveData done [16:09:43]ExternCall_PrintAddStr [16:09:43]wPrintStart [16:09:43]Write to MH i2c: 01 00 00 65 4C B1 [16:09:43]Write i2c OK [16:09:43]MH_I2C_Read... [16:09:43]Read from MH i2c: 01 [16:09:43]MH_I2C_Read... [16:09:43]Read from MH i2c: 01 07 00 [16:09:43]MH_I2C_Read... [16:09:43]Read from MH i2c: 01 07 00 65 4C 00 00 00 00 00 FF 0F C6 [16:09:43]RasterBufferAndPrint [16:09:43]line Счет N : (1)706504 [16:09:43]line ИНН: 02508201610067 [16:09:43]line Контрольно-Кассовый Чек [16:09:43]line ПРОДАЖА [16:09:43]line ТРК (МРК, ГНК) : 41 [16:09:43]line Товар: 2710124130 [16:09:43]line Super-92-К-5 [16:09:43]line 14.730 * 67.90 [16:09:43]line = 1000.17 [16:09:43]line НДС 12% НСП 1% [16:09:43]line > о реализуемом товаре [16:09:43]line ОКРУГЛЕНИЕ: -0.17 [16:09:43]line ИТОГО: 1000.00 [16:09:43]line Внесено: 1000.00 [16:09:43]line СДАЧА: 0.00 [16:09:43]line НСП 1% : 8.85 [16:09:43]line НДС 12% : 106.21 [16:09:43]line Наличными: 1000.00 [16:09:43]line Безнал.: 0.00 [16:09:43]line Место: АЗС № 62 "Партнер Нефть" [16:09:43]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [16:09:43]line СНО: Общий режим [16:09:43]line Чек 155 03.06.2024 16:09 [16:09:43]line Смена: 324 ФФД: 1.0 [16:09:43]line ЗНМ: 0300000181 [16:09:43]line РНМ: 0000000000098096 [16:09:43]line Версия ККМ: 001 [16:09:43]line ФМ: 0000000000965400 [16:09:43]line ФД: 68409 [16:09:43]line ФПД: 279200789822222 [16:09:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T160947&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68409&fm=279200789822222&tin=02508201610067®Number=0000000000098096&sum=100000 [16:09:43]OFD Sender: Processing packet 68409 [packets to send 26, broken 25] [16:09:43]ProducePacketName [16:09:43]name=ofd_packets/00068409 [16:09:43]OFD Sender: To server: pG, [16:09:43]CommunicateWithHost lk.salyk.kg:30040 [16:09:43]ConnectInit lk.salyk.kg [16:09:43]written 0, free lines is 4095 [16:09:43]Connected sock=7 [16:09:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 6C DD 08 01 94 4D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 39 00 00 00 00 00 37 04 06 00 86 1A 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 9B 00 00 00 F4 03 04 00 CB EA 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 39 0B 01 00 35 04 06 00 FD EE 7F E5 FB 0E 28 CC 56 BF EC C4 A9 FE [16:09:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 18 7A 47 00 4A FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 39 0B 01 00 F4 03 04 00 C7 91 5D 66 B6 04 01 00 00 EB D3 9C 84 13 84 F4 0C [16:09:43]CommunicateWithHost err = 0 [16:09:43]CheckOFDResponse [16:09:43]1017 (14) - 77093643461234 [16:09:43]1041 (16) - 0000000000965400 [16:09:43]1040 (4) - 68409 [16:09:43]1012 (4) - 03.06.2024 09:49 [16:09:43]1206 (1) - 0 [16:09:43]OFD Sender: Remove packet 68409 [16:09:43]ProducePacketName [16:09:43]name=ofd_packets/00068409 [16:09:43]NVStorageDeleteData [16:09:44]Write to MH i2c: 01 00 00 90 4C DC [16:09:44]Write i2c OK [16:09:44]MH_I2C_Read... [16:09:44]Read from MH i2c: 01 [16:09:44]MH_I2C_Read... [16:09:44]Read from MH i2c: 01 07 00 [16:09:44]MH_I2C_Read... [16:09:44]Read from MH i2c: 01 07 00 90 4C 00 00 00 00 00 F4 0C E3 [16:09:44]RasterBufferAndPrint [16:09:44]line [16:09:44]line [16:09:44]line [16:09:44]line [16:09:44]line [16:09:44]written 0, free lines is 3323 [16:09:44]MH_Cut [16:09:44]Write to MH i2c: D1 01 00 97 4C 01 B5 [16:09:44]Write i2c OK [16:09:44]MH_I2C_Read... [16:09:44]Read from MH i2c: D1 [16:09:44]MH_I2C_Read... [16:09:44]Read from MH i2c: D1 01 00 [16:09:44]MH_I2C_Read... [16:09:44]Read from MH i2c: D1 01 00 97 4C 00 B4 [16:09:44]Write to MH i2c: 01 00 00 98 4C E4 [16:09:44]Write i2c OK [16:09:44]MH_I2C_Read... [16:09:44]OFD Sender: No OFD packet to send [16:09:44]*** Cut start [16:09:44]*** Partial cut [16:09:44]*** CUTSNS_PIN = 1 [16:09:44]*** CUTSNS_PIN = 0 [16:09:45]*** Brake cut motor [16:09:45]Read from MH i2c: 01 [16:09:45]MH_I2C_Read... [16:09:45]*** Stop cut motor [16:09:45]*** Cut end [16:09:45]Read from MH i2c: 01 07 00 [16:09:45]MH_I2C_Read... [16:09:45]Read from MH i2c: 01 07 00 98 4C 00 00 00 00 00 FF 0F F9 [16:09:45]process_action close_receipt done [16:09:45]requested_data is exist [16:09:45]produce_requested_data [16:09:45]requested_item fm.sn is exist - process it [16:09:45]wFMCommunicate request_size=4 [16:09:45]MH_SAM_APDU [16:09:45]CAPDU: 80 11 00 00 [16:09:45]Write to MH i2c: E2 08 00 99 4C 80 11 00 00 00 00 00 00 5F [16:09:45]Write i2c OK [16:09:45]MH_I2C_Read... [16:09:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:09:45]Read from MH i2c: E2 [16:09:45]MH_I2C_Read... [16:09:45]Read from MH i2c: E2 17 00 [16:09:45]MH_I2C_Read... [16:09:45]Read from MH i2c: E2 17 00 99 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 AA [16:09:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [16:09:45]wFMCommunicate OK [16:09:45]requested_item fd.num is exist - process it [16:09:45]SAM_PROTO_GetFieldsCounters [16:09:45]wFMCommunicate request_size=4 [16:09:45]MH_SAM_APDU [16:09:45]CAPDU: 80 13 00 00 [16:09:45]Write to MH i2c: E2 08 00 9A 4C 80 13 00 00 00 00 00 00 62 [16:09:45]Write i2c OK [16:09:45]MH_I2C_Read... [16:09:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:09:45]Read from MH i2c: E2 [16:09:45]MH_I2C_Read... [16:09:45]Read from MH i2c: E2 62 00 [16:09:45]MH_I2C_Read... [16:09:45]Read from MH i2c: E2 62 00 9A 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 39 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [16:09:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 39 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:09:45]wFMCommunicate OK [16:09:45]SAM_PROTO_GetFieldsCounters done [16:09:45]requested_item shift.num is exist - process it [16:09:45]requested_item shift.opened is exist - process it [16:09:45]req_shift_opened [16:09:45]FM_GetShiftState [16:09:45]SAM_PROTO_GetShiftState [16:09:45]wFMCommunicate request_size=4 [16:09:45]MH_SAM_APDU [16:09:45]CAPDU: 80 13 01 00 [16:09:45]Write to MH i2c: E2 08 00 9B 4C 80 13 01 00 00 00 00 00 64 [16:09:45]Write i2c OK [16:09:45]MH_I2C_Read... [16:09:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:09:45]Read from MH i2c: E2 [16:09:45]MH_I2C_Read... [16:09:45]Read from MH i2c: E2 0E 00 [16:09:45]MH_I2C_Read... [16:09:45]Read from MH i2c: E2 0E 00 9B 4C 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 3F [16:09:45]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [16:09:45]wFMCommunicate OK [16:09:45]SAM_PROTO_GetShiftState done [16:09:45]FM_GetShiftState done [16:09:45]req_shift_opened done [16:09:45]requested_item shift.open_date is exist - process it [16:09:45]req_shift_open_date [16:09:45]req_shift_open_date done [16:09:45]produce_requested_data done [16:09:45]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68409,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [16:09:45]process_action_free close_receipt [16:09:45]json_value_free [16:09:45]json_value_free done [16:09:45]process_json_proto returns [16:09:45]Send response to host [16:09:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68409,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [16:09:45]free response buf [16:09:45]execute_script done [16:09:45]execute_script returns [16:09:45]free content buf [16:09:45]Sock 6.Close socket [16:09:45]Sock 6.Thread stoped [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:46]accept exits with 5 [16:10:46]New connection [16:10:46]New thread 3066543460 created [16:10:46]Thread 3066686820 joined [16:10:46]Waiting for new connection... [16:10:46] Sock 5.Parse request [16:10:46]Sock 5.Check first char [16:10:46]Sock 5.First char is OK [16:10:46]request: POST /json_proto HTTP/1.0 [16:10:46]Method: POST [16:10:46]URL: /json_proto [16:10:46]Method is POST - this is cgi request [16:10:46]url: /json_proto [16:10:46]query_string will be loaded in cgi processing [16:10:46]execute_cgi json_proto POST (null) [16:10:46]execute_cgi path=json_proto method=POST [16:10:46]POST find Content-Length [16:10:46]Host: 172.17.36.132:8080 [16:10:46]Content-Length: 648 [16:10:46]Content-Type: application/json [16:10:46] [16:10:46]POST finish read [16:10:46]Found Content-Length = 648 [16:10:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706506", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 130.000, "sum" : 9477.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 9477.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:10:46]execute_script... [16:10:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706506", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 130.000, "sum" : 9477.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 9477.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:10:46]POST & json_proto [16:10:46]process_json_proto [16:10:46]json parsed OK: [16:10:46]protocol is kg_v1.0 [16:10:46]action value=close_receipt [16:10:46]process_action close_receipt [16:10:46]cmd_close_receipt [16:10:46]MH_GetDate [16:10:46]Write to MH i2c: F0 00 00 9C 4C D7 [16:10:46]Write i2c OK [16:10:46]MH_I2C_Read... [16:10:46]Read from MH i2c: F0 [16:10:46]MH_I2C_Read... [16:10:46]Read from MH i2c: F0 09 00 [16:10:46]MH_I2C_Read... [16:10:46]Read from MH i2c: F0 09 00 9C 4C 00 0C EB 5D 66 B2 22 B0 64 82 [16:10:46]GetLastDocTimeStamp 1717430987 [16:10:46]current date 1717431052 [16:10:46]FM_GetShiftState [16:10:46]SAM_PROTO_GetShiftState [16:10:46]wFMCommunicate request_size=4 [16:10:46]MH_SAM_APDU [16:10:46]CAPDU: 80 13 01 00 [16:10:46]Write to MH i2c: E2 08 00 9D 4C 80 13 01 00 00 00 00 00 66 [16:10:46]Write i2c OK [16:10:46]MH_I2C_Read... [16:10:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:10:46]Read from MH i2c: E2 [16:10:46]MH_I2C_Read... [16:10:46]Read from MH i2c: E2 0E 00 [16:10:46]MH_I2C_Read... [16:10:46]Read from MH i2c: E2 0E 00 9D 4C 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 41 [16:10:46]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [16:10:46]wFMCommunicate OK [16:10:46]SAM_PROTO_GetShiftState done [16:10:46]FM_GetShiftState done [16:10:46]opened in 1717378033 [16:10:46]opened+sec_in_day 1717464433 [16:10:46]quantity*price = 947700 [16:10:46]sum+1 = 947701 [16:10:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 9477.00 НСП 1% : 83.87 НДС 12% : 1006.41 Наличными: 9477.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 156 03.06.2024 16:10 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68410 ФПД: 12509149442944 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T161052&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68410&fm=12509149442944&tin=02508201610067®Number=0000000000098096&sum=947700 [16:10:47]StoreToDocumentArchive [16:10:47]shift 324 fd 68410 [16:10:47]save to /storage/0324/doc_00068410 [16:10:47]save last doc name /storage/0324/doc_00068410 to /storage/kkm_last_doc_name [16:10:47]save OK [16:10:47]Clear old archive folders... [16:10:47]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:10:47]tlvbuf is 001FCF60 [16:10:47]SAM_PROTO_ClearQueue [16:10:47]wFMCommunicate request_size=4 [16:10:47]MH_SAM_APDU [16:10:47]CAPDU: 80 09 00 00 [16:10:47]Write to MH i2c: E2 08 00 AA 4C 80 09 00 00 00 00 00 00 68 [16:10:47]Write i2c OK [16:10:47]MH_I2C_Read... [16:10:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:10:47]Read from MH i2c: E2 [16:10:47]MH_I2C_Read... [16:10:47]Read from MH i2c: E2 03 00 [16:10:47]MH_I2C_Read... [16:10:47]Read from MH i2c: E2 03 00 AA 4C 00 90 00 6A [16:10:47]RAPDU: 90 00 [16:10:47]wFMCommunicate OK [16:10:47]SAM_PROTO_ClearQueue done [16:10:47]KKMCreateOFDPacket [16:10:47]OFDProtocolAddRootSTLVToBuf [16:10:47]FM_MakeSignedData [16:10:47]FM_MakeSignedData [16:10:47]SAM_PROTO_SignData [16:10:47]wFMCommunicate request_size=4 [16:10:47]MH_SAM_APDU [16:10:47]CAPDU: 80 0D 01 02 [16:10:47]Write to MH i2c: E2 08 00 AB 4C 80 0D 01 02 00 00 00 00 70 [16:10:47]Write i2c OK [16:10:47]MH_I2C_Read... [16:10:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:10:47]Read from MH i2c: E2 [16:10:47]MH_I2C_Read... [16:10:47]Read from MH i2c: E2 03 00 [16:10:47]MH_I2C_Read... [16:10:47]Read from MH i2c: E2 03 00 AB 4C 00 90 00 6B [16:10:47]RAPDU: 90 00 [16:10:47]wFMCommunicate OK [16:10:47]wFMCommunicate request_size=255 [16:10:47]MH_SAM_APDU [16:10:47]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 34 FF 03 08 00 03 D0 FB 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 F4 75 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 75 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 89 01 00 00 00 07 04 06 00 F4 75 0E 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 0C EB 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 3A 0B 01 00 35 04 06 00 [16:10:47]Write to MH i2c: E2 02 01 AC 4C 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 34 FF 03 08 00 03 D0 FB 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 F4 75 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 75 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 89 01 00 00 00 07 04 06 00 F4 75 0E 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 0C EB 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 3A 0B 01 00 35 04 06 00 00 00 E9 [16:10:47]Write i2c OK [16:10:47]MH_I2C_Read... [16:10:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:10:47]Read from MH i2c: E2 [16:10:47]MH_I2C_Read... [16:10:47]Read from MH i2c: E2 03 00 [16:10:47]MH_I2C_Read... [16:10:47]Read from MH i2c: E2 03 00 AC 4C 00 90 00 6C [16:10:47]RAPDU: 90 00 [16:10:47]wFMCommunicate OK [16:10:47]wFMCommunicate request_size=11 [16:10:47]MH_SAM_APDU [16:10:47]CAPDU: 80 0D 02 02 06 0B 60 83 68 B3 80 [16:10:47]Write to MH i2c: E2 0E 00 AD 4C 80 0D 02 02 06 00 0B 60 83 68 B3 80 00 00 08 [16:10:47]Write i2c OK [16:10:47]MH_I2C_Read... [16:10:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:10:47]Read from MH i2c: E2 [16:10:47]MH_I2C_Read... [16:10:47]Read from MH i2c: E2 03 00 [16:10:47]MH_I2C_Read... [16:10:47]Read from MH i2c: E2 03 00 AD 4C 00 90 00 6D [16:10:47]RAPDU: 90 00 [16:10:47]wFMCommunicate OK [16:10:47]wFMCommunicate request_size=4 [16:10:47]MH_SAM_APDU [16:10:47]CAPDU: 80 0D 03 02 [16:10:47]Write to MH i2c: E2 08 00 AE 4C 80 0D 03 02 00 00 00 00 75 [16:10:47]Write i2c OK [16:10:47]MH_I2C_Read... [16:10:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:10:47]Read from MH i2c: E2 [16:10:47]MH_I2C_Read... [16:10:47]Read from MH i2c: E2 0B 00 [16:10:47]MH_I2C_Read... [16:10:47]Read from MH i2c: E2 0B 00 AE 4C 00 7A D4 8D 03 4D 60 92 B8 90 00 4B [16:10:47]RAPDU: 7A D4 8D 03 4D 60 92 B8 90 00 [16:10:47]wFMCommunicate OK [16:10:47]SAM_PROTO_SignData done [16:10:47]FM_MakeSignedData done [16:10:47]CreateOFDProtocolMessage [16:10:47]wFMCommunicate request_size=4 [16:10:47]MH_SAM_APDU [16:10:47]CAPDU: 80 11 00 00 [16:10:47]Write to MH i2c: E2 08 00 AF 4C 80 11 00 00 00 00 00 00 75 [16:10:47]Write i2c OK [16:10:47]MH_I2C_Read... [16:10:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:10:47]Read from MH i2c: E2 [16:10:47]MH_I2C_Read... [16:10:47]Read from MH i2c: E2 17 00 [16:10:47]MH_I2C_Read... [16:10:47]Read from MH i2c: E2 17 00 AF 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 C0 [16:10:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [16:10:47]wFMCommunicate OK [16:10:47]CreateOFDProtocolMessage done [16:10:47]OFDSenderStorePacket 68410 [16:10:47]StoreOFDPacket docnum=68410 [16:10:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 BF 64 08 01 18 C3 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 34 FF 03 08 00 03 D0 FB 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 F4 75 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 75 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 89 01 00 00 00 07 04 06 00 F4 75 0E 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 0C EB 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 3A 0B 01 00 35 04 06 00 0B 60 83 68 B3 80 7A D4 8D 03 4D 60 92 B8 [16:10:47]CheckFolder [16:10:47]dirname=/storage/ofd_packets [16:10:47]CheckFolder done [16:10:47]ProducePacketName [16:10:47]name=ofd_packets/00068410 [16:10:47]NVStorageSaveData ofd_packets/00068410 [16:10:47]File name is /storage/ofd_packets/00068410 [16:10:47]Write 302 bytes [16:10:47]NVStorageSaveData done [16:10:47]OFDSenderStorePacket done [16:10:47]KKMCreateOFDPacket done [16:10:47]NVStorageSaveData kkm_last_timestamp [16:10:47]File name is /storage/kkm_last_timestamp [16:10:47]OFD Sender: Processing packet 68410 [packets to send 26, broken 25] [16:10:47]ProducePacketName [16:10:47]name=ofd_packets/00068410 [16:10:47]OFD Sender: To server: pG, [16:10:47]CommunicateWithHost lk.salyk.kg:30040 [16:10:47]ConnectInit lk.salyk.kg [16:10:47]Write 4 bytes [16:10:47]NVStorageSaveData done [16:10:47]ExternCall_PrintAddStr [16:10:47]wPrintStart [16:10:47]Write to MH i2c: 01 00 00 B0 4C FC [16:10:47]Write i2c OK [16:10:47]MH_I2C_Read... [16:10:47]Read from MH i2c: 01 [16:10:47]MH_I2C_Read... [16:10:47]Read from MH i2c: 01 07 00 [16:10:47]MH_I2C_Read... [16:10:47]Read from MH i2c: 01 07 00 B0 4C 00 00 00 00 00 FF 0F 11 [16:10:47]RasterBufferAndPrint [16:10:47]line Счет N : (1)706506 [16:10:47]line ИНН: 02508201610067 [16:10:47]line Контрольно-Кассовый Чек [16:10:47]line ПРОДАЖА [16:10:47]line ТРК (МРК, ГНК) : 21 [16:10:47]line Товар: 2710194210 [16:10:47]line ДТ(л)-К-4 [16:10:47]line 130.000 * 72.90 [16:10:47]line = 9477.00 [16:10:47]line НДС 12% НСП 1% [16:10:47]line > о реализуемом товаре [16:10:47]line ИТОГО: 9477.00 [16:10:47]line НСП 1% : 83.87 [16:10:47]line НДС 12% : 1006.41 [16:10:47]line Наличными: 9477.00 [16:10:47]line Безнал.: 0.00 [16:10:47]line Место: АЗС № 62 "Партнер Нефть" [16:10:47]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [16:10:47]line СНО: Общий режим [16:10:47]line Чек 156 03.06.2024 16:10 [16:10:47]line Смена: 324 ФФД: 1.0 [16:10:47]line ЗНМ: 0300000181 [16:10:47]line РНМ: 0000000000098096 [16:10:47]line Версия ККМ: 001 [16:10:47]line ФМ: 0000000000965400 [16:10:47]line ФД: 68410 [16:10:48]line ФПД: 12509149442944 [16:10:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T161052&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68410&fm=12509149442944&tin=02508201610067®Number=0000000000098096&sum=947700 [16:10:48]Connected sock=9 [16:10:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 BF 64 08 01 18 C3 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 34 FF 03 08 00 03 D0 FB 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 F4 75 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 75 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 89 01 00 00 00 07 04 06 00 F4 75 0E 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 0C EB 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 3A 0B 01 00 35 04 06 00 0B 60 83 68 B3 80 7A D4 8D 03 4D 60 92 B8 [16:10:48]written 0, free lines is 4095 [16:10:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 09 1A 47 00 63 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 3A 0B 01 00 F4 03 04 00 07 92 5D 66 B6 04 01 00 00 9D FC 70 99 1C B2 73 1E [16:10:48]CommunicateWithHost err = 0 [16:10:48]CheckOFDResponse [16:10:48]1017 (14) - 77093643461234 [16:10:48]1041 (16) - 0000000000965400 [16:10:48]1040 (4) - 68410 [16:10:48]1012 (4) - 03.06.2024 09:51 [16:10:48]1206 (1) - 0 [16:10:48]OFD Sender: Remove packet 68410 [16:10:48]ProducePacketName [16:10:48]name=ofd_packets/00068410 [16:10:48]NVStorageDeleteData [16:10:48]Write to MH i2c: 01 00 00 D8 4C 24 [16:10:48]Write i2c OK [16:10:48]MH_I2C_Read... [16:10:48]Read from MH i2c: 01 [16:10:48]MH_I2C_Read... [16:10:48]Read from MH i2c: 01 07 00 [16:10:48]MH_I2C_Read... [16:10:48]Read from MH i2c: 01 07 00 D8 4C 00 00 00 00 00 10 0D 48 [16:10:48]RasterBufferAndPrint [16:10:48]line [16:10:48]line [16:10:48]line [16:10:48]line [16:10:48]line [16:10:48]written 0, free lines is 3350 [16:10:48]MH_Cut [16:10:48]Write to MH i2c: D1 01 00 DF 4C 01 FD [16:10:48]Write i2c OK [16:10:48]MH_I2C_Read... [16:10:48]Read from MH i2c: D1 [16:10:48]MH_I2C_Read... [16:10:48]Read from MH i2c: D1 01 00 [16:10:48]MH_I2C_Read... [16:10:48]Read from MH i2c: D1 01 00 DF 4C 00 FC [16:10:48]Write to MH i2c: 01 00 00 E0 4C 2C [16:10:48]Write i2c OK [16:10:48]MH_I2C_Read... [16:10:48]OFD Sender: No OFD packet to send [16:10:49]*** Cut start [16:10:49]*** Partial cut [16:10:49]*** CUTSNS_PIN = 1 [16:10:49]*** CUTSNS_PIN = 0 [16:10:49]*** Brake cut motor [16:10:49]Read from MH i2c: 01 [16:10:49]MH_I2C_Read... [16:10:49]*** Stop cut motor [16:10:49]*** Cut end [16:10:49]Read from MH i2c: 01 07 00 [16:10:49]MH_I2C_Read... [16:10:49]Read from MH i2c: 01 07 00 E0 4C 00 00 00 00 00 FF 0F 41 [16:10:49]process_action close_receipt done [16:10:49]requested_data is exist [16:10:49]produce_requested_data [16:10:49]requested_item fm.sn is exist - process it [16:10:49]wFMCommunicate request_size=4 [16:10:49]MH_SAM_APDU [16:10:49]CAPDU: 80 11 00 00 [16:10:49]Write to MH i2c: E2 08 00 E1 4C 80 11 00 00 00 00 00 00 A7 [16:10:49]Write i2c OK [16:10:49]MH_I2C_Read... [16:10:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:10:49]Read from MH i2c: E2 [16:10:49]MH_I2C_Read... [16:10:49]Read from MH i2c: E2 17 00 [16:10:49]MH_I2C_Read... [16:10:49]Read from MH i2c: E2 17 00 E1 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 F2 [16:10:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [16:10:49]wFMCommunicate OK [16:10:49]requested_item fd.num is exist - process it [16:10:49]SAM_PROTO_GetFieldsCounters [16:10:49]wFMCommunicate request_size=4 [16:10:49]MH_SAM_APDU [16:10:49]CAPDU: 80 13 00 00 [16:10:49]Write to MH i2c: E2 08 00 E2 4C 80 13 00 00 00 00 00 00 AA [16:10:49]Write i2c OK [16:10:49]MH_I2C_Read... [16:10:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:10:50]Read from MH i2c: E2 [16:10:50]MH_I2C_Read... [16:10:50]Read from MH i2c: E2 62 00 [16:10:50]MH_I2C_Read... [16:10:50]Read from MH i2c: E2 62 00 E2 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 3A 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 29 [16:10:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 3A 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:10:50]wFMCommunicate OK [16:10:50]SAM_PROTO_GetFieldsCounters done [16:10:50]requested_item shift.num is exist - process it [16:10:50]requested_item shift.opened is exist - process it [16:10:50]req_shift_opened [16:10:50]FM_GetShiftState [16:10:50]SAM_PROTO_GetShiftState [16:10:50]wFMCommunicate request_size=4 [16:10:50]MH_SAM_APDU [16:10:50]CAPDU: 80 13 01 00 [16:10:50]Write to MH i2c: E2 08 00 E3 4C 80 13 01 00 00 00 00 00 AC [16:10:50]Write i2c OK [16:10:50]MH_I2C_Read... [16:10:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:10:50]Read from MH i2c: E2 [16:10:50]MH_I2C_Read... [16:10:50]Read from MH i2c: E2 0E 00 [16:10:50]MH_I2C_Read... [16:10:50]Read from MH i2c: E2 0E 00 E3 4C 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 87 [16:10:50]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [16:10:50]wFMCommunicate OK [16:10:50]SAM_PROTO_GetShiftState done [16:10:50]FM_GetShiftState done [16:10:50]req_shift_opened done [16:10:50]requested_item shift.open_date is exist - process it [16:10:50]req_shift_open_date [16:10:50]req_shift_open_date done [16:10:50]produce_requested_data done [16:10:50]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68410,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [16:10:50]process_action_free close_receipt [16:10:50]json_value_free [16:10:50]json_value_free done [16:10:50]process_json_proto returns [16:10:50]Send response to host [16:10:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68410,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [16:10:50]free response buf [16:10:50]execute_script done [16:10:50]execute_script returns [16:10:50]free content buf [16:10:50]Sock 5.Close socket [16:10:50]Sock 5.Thread stoped [16:10:53]OFD Sender: No OFD packet to send [16:10:58]OFD Sender: No OFD packet to send [16:11:03]OFD Sender: No OFD packet to send [16:11:08]OFD Sender: No OFD packet to send [16:11:13]OFD Sender: No OFD packet to send [16:11:18]OFD Sender: No OFD packet to send [16:11:21]accept exits with 6 [16:11:21]New connection [16:11:21]New thread 3066686820 created [16:11:21]Thread 3066543460 joined [16:11:21]Waiting for new connection... [16:11:21] Sock 6.Parse request [16:11:21]Sock 6.Check first char [16:11:21]Sock 6.First char is OK [16:11:21]request: POST /json_proto HTTP/1.0 [16:11:21]Method: POST [16:11:21]URL: /json_proto [16:11:21]Method is POST - this is cgi request [16:11:21]url: /json_proto [16:11:21]query_string will be loaded in cgi processing [16:11:21]execute_cgi json_proto POST (null) [16:11:21]execute_cgi path=json_proto method=POST [16:11:21]POST find Content-Length [16:11:21]Host: 172.17.36.132:8080 [16:11:21]Content-Length: 648 [16:11:21]Content-Type: application/json [16:11:21] [16:11:21]POST finish read [16:11:21]Found Content-Length = 648 [16:11:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706507", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 110.000, "sum" : 8019.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 8019.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:11:21]execute_script... [16:11: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)706507", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 110.000, "sum" : 8019.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 8019.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:11:21]POST & json_proto [16:11:21]process_json_proto [16:11:21]json parsed OK: [16:11:21]protocol is kg_v1.0 [16:11:21]action value=close_receipt [16:11:21]process_action close_receipt [16:11:21]cmd_close_receipt [16:11:21]MH_GetDate [16:11:21]Write to MH i2c: F0 00 00 E4 4C 1F [16:11:21]Write i2c OK [16:11:21]MH_I2C_Read... [16:11:21]Read from MH i2c: F0 [16:11:21]MH_I2C_Read... [16:11:21]Read from MH i2c: F0 09 00 [16:11:21]MH_I2C_Read... [16:11:21]Read from MH i2c: F0 09 00 E4 4C 00 2F EB 5D 66 B2 22 B0 64 ED [16:11:21]GetLastDocTimeStamp 1717431052 [16:11:21]current date 1717431087 [16:11:21]FM_GetShiftState [16:11:21]SAM_PROTO_GetShiftState [16:11:21]wFMCommunicate request_size=4 [16:11:21]MH_SAM_APDU [16:11:21]CAPDU: 80 13 01 00 [16:11:21]Write to MH i2c: E2 08 00 E5 4C 80 13 01 00 00 00 00 00 AE [16:11:21]Write i2c OK [16:11:21]MH_I2C_Read... [16:11:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:11:21]Read from MH i2c: E2 [16:11:21]MH_I2C_Read... [16:11:21]Read from MH i2c: E2 0E 00 [16:11:21]MH_I2C_Read... [16:11:21]Read from MH i2c: E2 0E 00 E5 4C 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 89 [16:11:21]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [16:11:21]wFMCommunicate OK [16:11:21]SAM_PROTO_GetShiftState done [16:11:21]FM_GetShiftState done [16:11:21]opened in 1717378033 [16:11:21]opened+sec_in_day 1717464433 [16:11:21]quantity*price = 801900 [16:11:21]sum+1 = 801901 [16:11:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 8019.00 НСП 1% : 70.96 НДС 12% : 851.57 Наличными: 8019.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 157 03.06.2024 16:11 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68411 ФПД: 75450403559755 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T161127&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68411&fm=75450403559755&tin=02508201610067®Number=0000000000098096&sum=801900 [16:11:22]StoreToDocumentArchive [16:11:22]shift 324 fd 68411 [16:11:22]save to /storage/0324/doc_00068411 [16:11:22]save last doc name /storage/0324/doc_00068411 to /storage/kkm_last_doc_name [16:11:22]save OK [16:11:22]Clear old archive folders... [16:11:22]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:11:22]tlvbuf is B6E994D0 [16:11:22]SAM_PROTO_ClearQueue [16:11:22]wFMCommunicate request_size=4 [16:11:22]MH_SAM_APDU [16:11:22]CAPDU: 80 09 00 00 [16:11:22]Write to MH i2c: E2 08 00 F2 4C 80 09 00 00 00 00 00 00 B0 [16:11:22]Write i2c OK [16:11:22]MH_I2C_Read... [16:11:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:11:22]Read from MH i2c: E2 [16:11:22]MH_I2C_Read... [16:11:22]Read from MH i2c: E2 03 00 [16:11:22]MH_I2C_Read... [16:11:22]Read from MH i2c: E2 03 00 F2 4C 00 90 00 B2 [16:11:22]RAPDU: 90 00 [16:11:22]wFMCommunicate OK [16:11:22]SAM_PROTO_ClearQueue done [16:11:22]KKMCreateOFDPacket [16:11:22]OFDProtocolAddRootSTLVToBuf [16:11:22]FM_MakeSignedData [16:11:22]FM_MakeSignedData [16:11:22]SAM_PROTO_SignData [16:11:22]wFMCommunicate request_size=4 [16:11:22]MH_SAM_APDU [16:11:22]CAPDU: 80 0D 01 02 [16:11:22]Write to MH i2c: E2 08 00 F3 4C 80 0D 01 02 00 00 00 00 B8 [16:11:22]Write i2c OK [16:11:22]MH_I2C_Read... [16:11:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:11:22]Read from MH i2c: E2 [16:11:22]MH_I2C_Read... [16:11:22]Read from MH i2c: E2 03 00 [16:11:22]MH_I2C_Read... [16:11:22]Read from MH i2c: E2 03 00 F3 4C 00 90 00 B3 [16:11:22]RAPDU: 90 00 [16:11:22]wFMCommunicate OK [16:11:22]wFMCommunicate request_size=255 [16:11:22]MH_SAM_APDU [16:11:22]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 34 FF 03 08 00 03 B0 AD 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6C 3C 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 3C 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 4C 01 00 00 00 07 04 06 00 6C 3C 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 2F EB 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 3B 0B 01 00 35 04 06 00 [16:11:22]Write to MH i2c: E2 02 01 F4 4C 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 34 FF 03 08 00 03 B0 AD 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6C 3C 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 3C 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 4C 01 00 00 00 07 04 06 00 6C 3C 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 2F EB 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 3B 0B 01 00 35 04 06 00 00 00 D6 [16:11:22]Write i2c OK [16:11:22]MH_I2C_Read... [16:11:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:11:22]Read from MH i2c: E2 [16:11:22]MH_I2C_Read... [16:11:22]Read from MH i2c: E2 03 00 [16:11:22]MH_I2C_Read... [16:11:22]Read from MH i2c: E2 03 00 F4 4C 00 90 00 B4 [16:11:22]RAPDU: 90 00 [16:11:22]wFMCommunicate OK [16:11:22]wFMCommunicate request_size=11 [16:11:22]MH_SAM_APDU [16:11:22]CAPDU: 80 0D 02 02 06 44 9F 2A 80 99 4B [16:11:22]Write to MH i2c: E2 0E 00 F5 4C 80 0D 02 02 06 00 44 9F 2A 80 99 4B 00 00 38 [16:11:22]Write i2c OK [16:11:22]MH_I2C_Read... [16:11:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:11:22]Read from MH i2c: E2 [16:11:22]MH_I2C_Read... [16:11:22]Read from MH i2c: E2 03 00 [16:11:22]MH_I2C_Read... [16:11:22]Read from MH i2c: E2 03 00 F5 4C 00 90 00 B5 [16:11:22]RAPDU: 90 00 [16:11:22]wFMCommunicate OK [16:11:22]wFMCommunicate request_size=4 [16:11:22]MH_SAM_APDU [16:11:22]CAPDU: 80 0D 03 02 [16:11:22]Write to MH i2c: E2 08 00 F6 4C 80 0D 03 02 00 00 00 00 BD [16:11:22]Write i2c OK [16:11:22]MH_I2C_Read... [16:11:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:11:22]Read from MH i2c: E2 [16:11:22]MH_I2C_Read... [16:11:22]Read from MH i2c: E2 0B 00 [16:11:22]MH_I2C_Read... [16:11:22]Read from MH i2c: E2 0B 00 F6 4C 00 30 98 3C A9 54 C5 98 C4 90 00 E0 [16:11:22]RAPDU: 30 98 3C A9 54 C5 98 C4 90 00 [16:11:22]wFMCommunicate OK [16:11:22]SAM_PROTO_SignData done [16:11:22]FM_MakeSignedData done [16:11:22]CreateOFDProtocolMessage [16:11:22]wFMCommunicate request_size=4 [16:11:22]MH_SAM_APDU [16:11:22]CAPDU: 80 11 00 00 [16:11:22]Write to MH i2c: E2 08 00 F7 4C 80 11 00 00 00 00 00 00 BD [16:11:22]Write i2c OK [16:11:22]MH_I2C_Read... [16:11:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:11:22]Read from MH i2c: E2 [16:11:22]MH_I2C_Read... [16:11:22]Read from MH i2c: E2 17 00 [16:11:22]MH_I2C_Read... [16:11:22]Read from MH i2c: E2 17 00 F7 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 08 [16:11:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [16:11:22]wFMCommunicate OK [16:11:22]CreateOFDProtocolMessage done [16:11:22]OFDSenderStorePacket 68411 [16:11:22]StoreOFDPacket docnum=68411 [16:11:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 E0 6B 08 01 45 A4 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 34 FF 03 08 00 03 B0 AD 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6C 3C 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 3C 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 4C 01 00 00 00 07 04 06 00 6C 3C 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 2F EB 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 3B 0B 01 00 35 04 06 00 44 9F 2A 80 99 4B 30 98 3C A9 54 C5 98 C4 [16:11:22]CheckFolder [16:11:22]dirname=/storage/ofd_packets [16:11:22]CheckFolder done [16:11:22]ProducePacketName [16:11:22]name=ofd_packets/00068411 [16:11:22]NVStorageSaveData ofd_packets/00068411 [16:11:22]File name is /storage/ofd_packets/00068411 [16:11:22]Write 302 bytes [16:11:22]NVStorageSaveData done [16:11:22]OFDSenderStorePacket done [16:11:22]KKMCreateOFDPacket done [16:11:22]NVStorageSaveData kkm_last_timestamp [16:11:22]File name is /storage/kkm_last_timestamp [16:11:22]Write 4 bytes [16:11:22]NVStorageSaveData done [16:11:22]ExternCall_PrintAddStr [16:11:22]wPrintStart [16:11:22]Write to MH i2c: 01 00 00 F8 4C 44 [16:11:22]Write i2c OK [16:11:22]MH_I2C_Read... [16:11:22]Read from MH i2c: 01 [16:11:22]MH_I2C_Read... [16:11:22]Read from MH i2c: 01 07 00 [16:11:22]MH_I2C_Read... [16:11:22]Read from MH i2c: 01 07 00 F8 4C 00 00 00 00 00 FF 0F 59 [16:11:22]RasterBufferAndPrint [16:11:22]line Счет N : (1)706507 [16:11:22]line ИНН: 02508201610067 [16:11:22]line Контрольно-Кассовый Чек [16:11:22]line ПРОДАЖА [16:11:22]line ТРК (МРК, ГНК) : 11 [16:11:22]line Товар: 2710194210 [16:11:22]line ДТ(л)-К-4 [16:11:22]line 110.000 * 72.90 [16:11:22]line = 8019.00 [16:11:22]line НДС 12% НСП 1% [16:11:22]line > о реализуемом товаре [16:11:22]line ИТОГО: 8019.00 [16:11:22]line НСП 1% : 70.96 [16:11:22]line НДС 12% : 851.57 [16:11:22]line Наличными: 8019.00 [16:11:22]line Безнал.: 0.00 [16:11:22]line Место: АЗС № 62 "Партнер Нефть" [16:11:22]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [16:11:22]line СНО: Общий режим [16:11:22]line Чек 157 03.06.2024 16:11 [16:11:22]line Смена: 324 ФФД: 1.0 [16:11:22]line ЗНМ: 0300000181 [16:11:22]line РНМ: 0000000000098096 [16:11:22]line Версия ККМ: 001 [16:11:22]line ФМ: 0000000000965400 [16:11:22]line ФД: 68411 [16:11:22]line ФПД: 75450403559755 [16:11:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T161127&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68411&fm=75450403559755&tin=02508201610067®Number=0000000000098096&sum=801900 [16:11:23]OFD Sender: Processing packet 68411 [packets to send 26, broken 25] [16:11:23]ProducePacketName [16:11:23]name=ofd_packets/00068411 [16:11:23]OFD Sender: To server: pG, [16:11:23]CommunicateWithHost lk.salyk.kg:30040 [16:11:23]ConnectInit lk.salyk.kg [16:11:23]written 0, free lines is 4095 [16:11:23]Connected sock=7 [16:11:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 E0 6B 08 01 45 A4 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 34 FF 03 08 00 03 B0 AD 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6C 3C 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 3C 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 4C 01 00 00 00 07 04 06 00 6C 3C 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 2F EB 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 3B 0B 01 00 35 04 06 00 44 9F 2A 80 99 4B 30 98 3C A9 54 C5 98 C4 [16:11:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 CA 8F 47 00 E2 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 3B 0B 01 00 F4 03 04 00 2A 92 5D 66 B6 04 01 00 00 CD 47 A1 BA B4 87 8A 8E [16:11:23]CommunicateWithHost err = 0 [16:11:23]CheckOFDResponse [16:11:23]1017 (14) - 77093643461234 [16:11:23]1041 (16) - 0000000000965400 [16:11:23]1040 (4) - 68411 [16:11:23]1012 (4) - 03.06.2024 09:51 [16:11:23]1206 (1) - 0 [16:11:23]OFD Sender: Remove packet 68411 [16:11:23]ProducePacketName [16:11:23]name=ofd_packets/00068411 [16:11:23]NVStorageDeleteData [16:11:23]Write to MH i2c: 01 00 00 20 4D 6D [16:11:23]Write i2c OK [16:11:23]MH_I2C_Read... [16:11:23]Read from MH i2c: 01 [16:11:23]MH_I2C_Read... [16:11:23]Read from MH i2c: 01 07 00 [16:11:23]MH_I2C_Read... [16:11:23]Read from MH i2c: 01 07 00 20 4D 00 00 00 00 00 0F 0D 90 [16:11:23]RasterBufferAndPrint [16:11:23]line [16:11:23]line [16:11:23]line [16:11:23]line [16:11:23]line [16:11:23]written 0, free lines is 3349 [16:11:23]MH_Cut [16:11:23]Write to MH i2c: D1 01 00 27 4D 01 46 [16:11:23]Write i2c OK [16:11:23]MH_I2C_Read... [16:11:23]Read from MH i2c: D1 [16:11:23]MH_I2C_Read... [16:11:23]Read from MH i2c: D1 01 00 [16:11:23]MH_I2C_Read... [16:11:23]Read from MH i2c: D1 01 00 27 4D 00 45 [16:11:23]Write to MH i2c: 01 00 00 28 4D 75 [16:11:23]Write i2c OK [16:11:23]MH_I2C_Read... [16:11:23]OFD Sender: No OFD packet to send [16:11:24]*** Cut start [16:11:24]*** Partial cut [16:11:24]*** CUTSNS_PIN = 1 [16:11:24]*** CUTSNS_PIN = 0 [16:11:24]*** Brake cut motor [16:11:24]Read from MH i2c: 01 [16:11:24]MH_I2C_Read... [16:11:24]*** Stop cut motor [16:11:24]*** Cut end [16:11:24]Read from MH i2c: 01 07 00 [16:11:24]MH_I2C_Read... [16:11:24]Read from MH i2c: 01 07 00 28 4D 00 00 00 00 00 FF 0F 8A [16:11:24]process_action close_receipt done [16:11:24]requested_data is exist [16:11:24]produce_requested_data [16:11:24]requested_item fm.sn is exist - process it [16:11:24]wFMCommunicate request_size=4 [16:11:24]MH_SAM_APDU [16:11:24]CAPDU: 80 11 00 00 [16:11:24]Write to MH i2c: E2 08 00 29 4D 80 11 00 00 00 00 00 00 F0 [16:11:24]Write i2c OK [16:11:24]MH_I2C_Read... [16:11:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:11:25]Read from MH i2c: E2 [16:11:25]MH_I2C_Read... [16:11:25]Read from MH i2c: E2 17 00 [16:11:25]MH_I2C_Read... [16:11:25]Read from MH i2c: E2 17 00 29 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 3B [16:11:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [16:11:25]wFMCommunicate OK [16:11:25]requested_item fd.num is exist - process it [16:11:25]SAM_PROTO_GetFieldsCounters [16:11:25]wFMCommunicate request_size=4 [16:11:25]MH_SAM_APDU [16:11:25]CAPDU: 80 13 00 00 [16:11:25]Write to MH i2c: E2 08 00 2A 4D 80 13 00 00 00 00 00 00 F3 [16:11:25]Write i2c OK [16:11:25]MH_I2C_Read... [16:11:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:11:25]Read from MH i2c: E2 [16:11:25]MH_I2C_Read... [16:11:25]Read from MH i2c: E2 62 00 [16:11:25]MH_I2C_Read... [16:11:25]Read from MH i2c: E2 62 00 2A 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 3B 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 76 [16:11:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 3B 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:11:25]wFMCommunicate OK [16:11:25]SAM_PROTO_GetFieldsCounters done [16:11:25]requested_item shift.num is exist - process it [16:11:25]requested_item shift.opened is exist - process it [16:11:25]req_shift_opened [16:11:25]FM_GetShiftState [16:11:25]SAM_PROTO_GetShiftState [16:11:25]wFMCommunicate request_size=4 [16:11:25]MH_SAM_APDU [16:11:25]CAPDU: 80 13 01 00 [16:11:25]Write to MH i2c: E2 08 00 2B 4D 80 13 01 00 00 00 00 00 F5 [16:11:25]Write i2c OK [16:11:25]MH_I2C_Read... [16:11:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:11:25]Read from MH i2c: E2 [16:11:25]MH_I2C_Read... [16:11:25]Read from MH i2c: E2 0E 00 [16:11:25]MH_I2C_Read... [16:11:25]Read from MH i2c: E2 0E 00 2B 4D 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 D0 [16:11:25]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [16:11:25]wFMCommunicate OK [16:11:25]SAM_PROTO_GetShiftState done [16:11:25]FM_GetShiftState done [16:11:25]req_shift_opened done [16:11:25]requested_item shift.open_date is exist - process it [16:11:25]req_shift_open_date [16:11:25]req_shift_open_date done [16:11:25]produce_requested_data done [16:11:25]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68411,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [16:11:25]process_action_free close_receipt [16:11:25]json_value_free [16:11:25]json_value_free done [16:11:25]process_json_proto returns [16:11:25]Send response to host [16:11:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68411,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [16:11:25]free response buf [16:11:25]execute_script done [16:11:25]execute_script returns [16:11:25]free content buf [16:11:25]Sock 6.Close socket [16:11:25]Sock 6.Thread stoped [16:11:28]OFD Sender: No OFD packet to send [16:11:33]OFD Sender: No OFD packet to send [16:11:38]OFD Sender: No OFD packet to send [16:11:43]OFD Sender: No OFD packet to send [16:11:48]OFD Sender: No OFD packet to send [16:11:53]OFD Sender: No OFD packet to send [16:11:58]OFD Sender: No OFD packet to send [16:12:03]OFD Sender: No OFD packet to send [16:12:08]OFD Sender: No OFD packet to send [16:12:13]OFD Sender: No OFD packet to send [16:12:18]OFD Sender: No OFD packet to send [16:12:23]OFD Sender: No OFD packet to send [16:12:28]OFD Sender: No OFD packet to send [16:12:33]OFD Sender: No OFD packet to send [16:12:38]OFD Sender: No OFD packet to send [16:12:43]OFD Sender: No OFD packet to send [16:12:48]OFD Sender: No OFD packet to send [16:12:53]OFD Sender: No OFD packet to send [16:12:58]OFD Sender: No OFD packet to send [16:13:03]OFD Sender: No OFD packet to send [16:13:08]OFD Sender: No OFD packet to send [16:13:14]OFD Sender: No OFD packet to send [16:13:19]OFD Sender: No OFD packet to send [16:13:24]OFD Sender: No OFD packet to send [16:13:29]OFD Sender: No OFD packet to send [16:13:34]OFD Sender: No OFD packet to send [16:13:39]OFD Sender: No OFD packet to send [16:13:44]OFD Sender: No OFD packet to send [16:13:49]OFD Sender: No OFD packet to send [16:13:54]OFD Sender: No OFD packet to send [16:13:59]OFD Sender: No OFD packet to send [16:14:04]OFD Sender: No OFD packet to send [16:14:09]OFD Sender: No OFD packet to send [16:14:14]OFD Sender: No OFD packet to send [16:14:19]OFD Sender: No OFD packet to send [16:14:24]OFD Sender: No OFD packet to send [16:14:29]OFD Sender: No OFD packet to send [16:14:34]OFD Sender: No OFD packet to send [16:14:39]OFD Sender: No OFD packet to send [16:14:44]OFD Sender: No OFD packet to send [16:14:49]OFD Sender: No OFD packet to send [16:14:54]OFD Sender: No OFD packet to send [16:14:59]OFD Sender: No OFD packet to send [16:15:04]OFD Sender: No OFD packet to send [16:15:09]OFD Sender: No OFD packet to send [16:15:14]OFD Sender: No OFD packet to send [16:15:19]OFD Sender: No OFD packet to send [16:15:24]OFD Sender: No OFD packet to send [16:15:29]OFD Sender: No OFD packet to send [16:15:34]OFD Sender: No OFD packet to send [16:15:39]OFD Sender: No OFD packet to send [16:15:44]OFD Sender: No OFD packet to send [16:15:49]OFD Sender: No OFD packet to send [16:15:54]OFD Sender: No OFD packet to send [16:15:59]OFD Sender: No OFD packet to send [16:16:04]OFD Sender: No OFD packet to send [16:16:09]OFD Sender: No OFD packet to send [16:16:14]OFD Sender: No OFD packet to send [16:16:19]OFD Sender: No OFD packet to send [16:16:24]OFD Sender: No OFD packet to send [16:16:29]OFD Sender: No OFD packet to send [16:16:34]OFD Sender: No OFD packet to send [16:16:39]OFD Sender: No OFD packet to send [16:16:44]OFD Sender: No OFD packet to send [16:16:49]OFD Sender: No OFD packet to send [16:16:54]OFD Sender: No OFD packet to send [16:16:59]OFD Sender: No OFD packet to send [16:17:04]OFD Sender: No OFD packet to send [16:17:09]OFD Sender: No OFD packet to send [16:17:14]OFD Sender: No OFD packet to send [16:17:19]OFD Sender: No OFD packet to send [16:17:24]OFD Sender: No OFD packet to send [16:17:29]OFD Sender: No OFD packet to send [16:17:34]OFD Sender: No OFD packet to send [16:17:37]accept exits with 5 [16:17:37]New connection [16:17:37]New thread 3066543460 created [16:17:37]Thread 3066686820 joined [16:17:37]Waiting for new connection... [16:17:37] Sock 5.Parse request [16:17:37]Sock 5.Check first char [16:17:37]Sock 5.First char is OK [16:17:37]request: POST /json_proto HTTP/1.0 [16:17:37]Method: POST [16:17:37]URL: /json_proto [16:17:37]Method is POST - this is cgi request [16:17:37]url: /json_proto [16:17:37]query_string will be loaded in cgi processing [16:17:37]execute_cgi json_proto POST (null) [16:17:37]execute_cgi path=json_proto method=POST [16:17:37]POST find Content-Length [16:17:37]Host: 172.17.36.132:8080 [16:17:37]Content-Length: 648 [16:17:37]Content-Type: application/json [16:17:37] [16:17:37]POST finish read [16:17:37]Found Content-Length = 648 [16:17:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706509", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 110.000, "sum" : 8019.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 8019.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:17:37]execute_script... [16:17:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706509", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 110.000, "sum" : 8019.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 8019.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:17:37]POST & json_proto [16:17:37]process_json_proto [16:17:37]json parsed OK: [16:17:37]protocol is kg_v1.0 [16:17:37]action value=close_receipt [16:17:37]process_action close_receipt [16:17:37]cmd_close_receipt [16:17:37]MH_GetDate [16:17:37]Write to MH i2c: F0 00 00 2C 4D 68 [16:17:37]Write i2c OK [16:17:37]MH_I2C_Read... [16:17:37]Read from MH i2c: F0 [16:17:37]MH_I2C_Read... [16:17:37]Read from MH i2c: F0 09 00 [16:17:37]MH_I2C_Read... [16:17:37]Read from MH i2c: F0 09 00 2C 4D 00 A7 EC 5D 66 B2 22 B0 64 AF [16:17:37]GetLastDocTimeStamp 1717431087 [16:17:37]current date 1717431463 [16:17:37]FM_GetShiftState [16:17:37]SAM_PROTO_GetShiftState [16:17:37]wFMCommunicate request_size=4 [16:17:37]MH_SAM_APDU [16:17:37]CAPDU: 80 13 01 00 [16:17:37]Write to MH i2c: E2 08 00 2D 4D 80 13 01 00 00 00 00 00 F7 [16:17:37]Write i2c OK [16:17:37]MH_I2C_Read... [16:17:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:17:37]Read from MH i2c: E2 [16:17:37]MH_I2C_Read... [16:17:37]Read from MH i2c: E2 0E 00 [16:17:37]MH_I2C_Read... [16:17:37]Read from MH i2c: E2 0E 00 2D 4D 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 D2 [16:17:37]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [16:17:37]wFMCommunicate OK [16:17:37]SAM_PROTO_GetShiftState done [16:17:37]FM_GetShiftState done [16:17:37]opened in 1717378033 [16:17:37]opened+sec_in_day 1717464433 [16:17:37]quantity*price = 801900 [16:17:37]sum+1 = 801901 [16:17:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 8019.00 НСП 1% : 70.96 НДС 12% : 851.57 Наличными: 8019.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 158 03.06.2024 16:17 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68412 ФПД: 40793208014214 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T161743&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68412&fm=40793208014214&tin=02508201610067®Number=0000000000098096&sum=801900 [16:17:38]StoreToDocumentArchive [16:17:38]shift 324 fd 68412 [16:17:38]save to /storage/0324/doc_00068412 [16:17:38]save last doc name /storage/0324/doc_00068412 to /storage/kkm_last_doc_name [16:17:38]save OK [16:17:38]Clear old archive folders... [16:17:38]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:17:38]tlvbuf is 00252F50 [16:17:38]SAM_PROTO_ClearQueue [16:17:38]wFMCommunicate request_size=4 [16:17:38]MH_SAM_APDU [16:17:38]CAPDU: 80 09 00 00 [16:17:38]Write to MH i2c: E2 08 00 3A 4D 80 09 00 00 00 00 00 00 F9 [16:17:38]Write i2c OK [16:17:38]MH_I2C_Read... [16:17:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:17:38]Read from MH i2c: E2 [16:17:38]MH_I2C_Read... [16:17:38]Read from MH i2c: E2 03 00 [16:17:38]MH_I2C_Read... [16:17:38]Read from MH i2c: E2 03 00 3A 4D 00 90 00 FB [16:17:38]RAPDU: 90 00 [16:17:38]wFMCommunicate OK [16:17:38]SAM_PROTO_ClearQueue done [16:17:38]KKMCreateOFDPacket [16:17:38]OFDProtocolAddRootSTLVToBuf [16:17:38]FM_MakeSignedData [16:17:38]FM_MakeSignedData [16:17:38]SAM_PROTO_SignData [16:17:38]wFMCommunicate request_size=4 [16:17:38]MH_SAM_APDU [16:17:38]CAPDU: 80 0D 01 02 [16:17:38]Write to MH i2c: E2 08 00 3B 4D 80 0D 01 02 00 00 00 00 01 [16:17:38]Write i2c OK [16:17:38]MH_I2C_Read... [16:17:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:17:38]Read from MH i2c: E2 [16:17:38]MH_I2C_Read... [16:17:38]Read from MH i2c: E2 03 00 [16:17:38]MH_I2C_Read... [16:17:38]Read from MH i2c: E2 03 00 3B 4D 00 90 00 FC [16:17:38]RAPDU: 90 00 [16:17:38]wFMCommunicate OK [16:17:38]wFMCommunicate request_size=255 [16:17:38]MH_SAM_APDU [16:17:38]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 34 FF 03 08 00 03 B0 AD 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6C 3C 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 3C 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 4C 01 00 00 00 07 04 06 00 6C 3C 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 A7 EC 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 3C 0B 01 00 35 04 06 00 [16:17:38]Write to MH i2c: E2 02 01 3C 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 34 FF 03 08 00 03 B0 AD 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6C 3C 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 3C 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 4C 01 00 00 00 07 04 06 00 6C 3C 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 A7 EC 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 3C 0B 01 00 35 04 06 00 00 00 9A [16:17:38]Write i2c OK [16:17:38]MH_I2C_Read... [16:17:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:17:38]Read from MH i2c: E2 [16:17:38]MH_I2C_Read... [16:17:38]Read from MH i2c: E2 03 00 [16:17:38]MH_I2C_Read... [16:17:38]Read from MH i2c: E2 03 00 3C 4D 00 90 00 FD [16:17:38]RAPDU: 90 00 [16:17:38]wFMCommunicate OK [16:17:38]wFMCommunicate request_size=11 [16:17:38]MH_SAM_APDU [16:17:38]CAPDU: 80 0D 02 02 06 25 19 E8 AC 45 86 [16:17:38]Write to MH i2c: E2 0E 00 3D 4D 80 0D 02 02 06 00 25 19 E8 AC 45 86 00 00 AD [16:17:38]Write i2c OK [16:17:38]MH_I2C_Read... [16:17:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:17:38]Read from MH i2c: E2 [16:17:38]MH_I2C_Read... [16:17:38]Read from MH i2c: E2 03 00 [16:17:38]MH_I2C_Read... [16:17:38]Read from MH i2c: E2 03 00 3D 4D 00 90 00 FE [16:17:38]RAPDU: 90 00 [16:17:38]wFMCommunicate OK [16:17:38]wFMCommunicate request_size=4 [16:17:38]MH_SAM_APDU [16:17:38]CAPDU: 80 0D 03 02 [16:17:38]Write to MH i2c: E2 08 00 3E 4D 80 0D 03 02 00 00 00 00 06 [16:17:38]Write i2c OK [16:17:38]MH_I2C_Read... [16:17:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:17:38]Read from MH i2c: E2 [16:17:38]MH_I2C_Read... [16:17:38]Read from MH i2c: E2 0B 00 [16:17:38]MH_I2C_Read... [16:17:38]Read from MH i2c: E2 0B 00 3E 4D 00 E9 C8 5E B1 2C 4D 58 59 90 00 F1 [16:17:38]RAPDU: E9 C8 5E B1 2C 4D 58 59 90 00 [16:17:38]wFMCommunicate OK [16:17:38]SAM_PROTO_SignData done [16:17:38]FM_MakeSignedData done [16:17:38]CreateOFDProtocolMessage [16:17:38]wFMCommunicate request_size=4 [16:17:38]MH_SAM_APDU [16:17:38]CAPDU: 80 11 00 00 [16:17:38]Write to MH i2c: E2 08 00 3F 4D 80 11 00 00 00 00 00 00 06 [16:17:38]Write i2c OK [16:17:38]MH_I2C_Read... [16:17:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:17:38]Read from MH i2c: E2 [16:17:38]MH_I2C_Read... [16:17:38]Read from MH i2c: E2 17 00 [16:17:38]MH_I2C_Read... [16:17:38]Read from MH i2c: E2 17 00 3F 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 51 [16:17:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [16:17:38]wFMCommunicate OK [16:17:38]CreateOFDProtocolMessage done [16:17:38]OFDSenderStorePacket 68412 [16:17:38]StoreOFDPacket docnum=68412 [16:17:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 E0 67 08 01 52 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 34 FF 03 08 00 03 B0 AD 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6C 3C 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 3C 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 4C 01 00 00 00 07 04 06 00 6C 3C 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 A7 EC 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 3C 0B 01 00 35 04 06 00 25 19 E8 AC 45 86 E9 C8 5E B1 2C 4D 58 59 [16:17:38]CheckFolder [16:17:38]dirname=/storage/ofd_packets [16:17:38]CheckFolder done [16:17:38]ProducePacketName [16:17:38]name=ofd_packets/00068412 [16:17:38]NVStorageSaveData ofd_packets/00068412 [16:17:38]File name is /storage/ofd_packets/00068412 [16:17:38]Write 302 bytes [16:17:38]NVStorageSaveData done [16:17:38]OFDSenderStorePacket done [16:17:38]KKMCreateOFDPacket done [16:17:38]NVStorageSaveData kkm_last_timestamp [16:17:38]File name is /storage/kkm_last_timestamp [16:17:38]Write 4 bytes [16:17:38]NVStorageSaveData done [16:17:38]ExternCall_PrintAddStr [16:17:38]wPrintStart [16:17:38]Write to MH i2c: 01 00 00 40 4D 8D [16:17:38]Write i2c OK [16:17:38]MH_I2C_Read... [16:17:38]Read from MH i2c: 01 [16:17:38]MH_I2C_Read... [16:17:38]Read from MH i2c: 01 07 00 [16:17:38]MH_I2C_Read... [16:17:38]Read from MH i2c: 01 07 00 40 4D 00 00 00 00 00 FF 0F A2 [16:17:38]RasterBufferAndPrint [16:17:38]line Счет N : (1)706509 [16:17:38]line ИНН: 02508201610067 [16:17:38]line Контрольно-Кассовый Чек [16:17:38]line ПРОДАЖА [16:17:38]line ТРК (МРК, ГНК) : 21 [16:17:38]line Товар: 2710194210 [16:17:38]line ДТ(л)-К-4 [16:17:38]line 110.000 * 72.90 [16:17:38]line = 8019.00 [16:17:38]line НДС 12% НСП 1% [16:17:38]line > о реализуемом товаре [16:17:38]line ИТОГО: 8019.00 [16:17:38]line НСП 1% : 70.96 [16:17:38]line НДС 12% : 851.57 [16:17:38]line Наличными: 8019.00 [16:17:38]line Безнал.: 0.00 [16:17:38]line Место: АЗС № 62 "Партнер Нефть" [16:17:38]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [16:17:38]line СНО: Общий режим [16:17:38]line Чек 158 03.06.2024 16:17 [16:17:38]line Смена: 324 ФФД: 1.0 [16:17:38]line ЗНМ: 0300000181 [16:17:38]line РНМ: 0000000000098096 [16:17:38]line Версия ККМ: 001 [16:17:38]line ФМ: 0000000000965400 [16:17:38]line ФД: 68412 [16:17:38]line ФПД: 40793208014214 [16:17:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T161743&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68412&fm=40793208014214&tin=02508201610067®Number=0000000000098096&sum=801900 [16:17:39]OFD Sender: Processing packet 68412 [packets to send 26, broken 25] [16:17:39]ProducePacketName [16:17:39]name=ofd_packets/00068412 [16:17:39]OFD Sender: To server: pG, [16:17:39]CommunicateWithHost lk.salyk.kg:30040 [16:17:39]ConnectInit lk.salyk.kg [16:17:39]written 0, free lines is 4095 [16:17:39]Connected sock=7 [16:17:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 E0 67 08 01 52 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 34 FF 03 08 00 03 B0 AD 01 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 6C 3C 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 3C 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B8 1B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 4C 01 00 00 00 07 04 06 00 6C 3C 0C 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 A7 EC 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 3C 0B 01 00 35 04 06 00 25 19 E8 AC 45 86 E9 C8 5E B1 2C 4D 58 59 [16:17:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 7C A6 47 00 B1 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 3C 0B 01 00 F4 03 04 00 A2 93 5D 66 B6 04 01 00 00 7F DD F1 DC C8 20 EE 38 [16:17:39]CommunicateWithHost err = 0 [16:17:39]CheckOFDResponse [16:17:39]1017 (14) - 77093643461234 [16:17:39]1041 (16) - 0000000000965400 [16:17:39]1040 (4) - 68412 [16:17:39]1012 (4) - 03.06.2024 09:57 [16:17:39]1206 (1) - 0 [16:17:39]OFD Sender: Remove packet 68412 [16:17:39]ProducePacketName [16:17:39]name=ofd_packets/00068412 [16:17:39]NVStorageDeleteData [16:17:39]Write to MH i2c: 01 00 00 68 4D B5 [16:17:39]Write i2c OK [16:17:39]MH_I2C_Read... [16:17:39]Read from MH i2c: 01 [16:17:39]MH_I2C_Read... [16:17:39]Read from MH i2c: 01 07 00 [16:17:39]MH_I2C_Read... [16:17:39]Read from MH i2c: 01 07 00 68 4D 00 00 00 00 00 FF 0C C7 [16:17:39]RasterBufferAndPrint [16:17:39]line [16:17:39]line [16:17:39]line [16:17:39]line [16:17:39]line [16:17:39]written 0, free lines is 3333 [16:17:39]MH_Cut [16:17:39]Write to MH i2c: D1 01 00 6F 4D 01 8E [16:17:39]Write i2c OK [16:17:39]MH_I2C_Read... [16:17:39]Read from MH i2c: D1 [16:17:39]MH_I2C_Read... [16:17:39]Read from MH i2c: D1 01 00 [16:17:39]MH_I2C_Read... [16:17:39]Read from MH i2c: D1 01 00 6F 4D 00 8D [16:17:39]Write to MH i2c: 01 00 00 70 4D BD [16:17:39]Write i2c OK [16:17:39]MH_I2C_Read... [16:17:39]OFD Sender: No OFD packet to send [16:17:40]*** Cut start [16:17:40]*** Partial cut [16:17:40]*** CUTSNS_PIN = 1 [16:17:40]*** CUTSNS_PIN = 0 [16:17:40]*** Brake cut motor [16:17:40]Read from MH i2c: 01 [16:17:40]MH_I2C_Read... [16:17:40]*** Stop cut motor [16:17:40]*** Cut end [16:17:40]Read from MH i2c: 01 07 00 [16:17:40]MH_I2C_Read... [16:17:40]Read from MH i2c: 01 07 00 70 4D 00 00 00 00 00 FF 0F D2 [16:17:40]process_action close_receipt done [16:17:40]requested_data is exist [16:17:40]produce_requested_data [16:17:40]requested_item fm.sn is exist - process it [16:17:40]wFMCommunicate request_size=4 [16:17:40]MH_SAM_APDU [16:17:40]CAPDU: 80 11 00 00 [16:17:40]Write to MH i2c: E2 08 00 71 4D 80 11 00 00 00 00 00 00 38 [16:17:40]Write i2c OK [16:17:40]MH_I2C_Read... [16:17:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:17:40]Read from MH i2c: E2 [16:17:40]MH_I2C_Read... [16:17:40]Read from MH i2c: E2 17 00 [16:17:40]MH_I2C_Read... [16:17:40]Read from MH i2c: E2 17 00 71 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 83 [16:17:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [16:17:40]wFMCommunicate OK [16:17:40]requested_item fd.num is exist - process it [16:17:40]SAM_PROTO_GetFieldsCounters [16:17:40]wFMCommunicate request_size=4 [16:17:40]MH_SAM_APDU [16:17:40]CAPDU: 80 13 00 00 [16:17:40]Write to MH i2c: E2 08 00 72 4D 80 13 00 00 00 00 00 00 3B [16:17:40]Write i2c OK [16:17:40]MH_I2C_Read... [16:17:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:17:41]Read from MH i2c: E2 [16:17:41]MH_I2C_Read... [16:17:41]Read from MH i2c: E2 62 00 [16:17:41]MH_I2C_Read... [16:17:41]Read from MH i2c: E2 62 00 72 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 3C 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 C2 [16:17:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 3C 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:17:41]wFMCommunicate OK [16:17:41]SAM_PROTO_GetFieldsCounters done [16:17:41]requested_item shift.num is exist - process it [16:17:41]requested_item shift.opened is exist - process it [16:17:41]req_shift_opened [16:17:41]FM_GetShiftState [16:17:41]SAM_PROTO_GetShiftState [16:17:41]wFMCommunicate request_size=4 [16:17:41]MH_SAM_APDU [16:17:41]CAPDU: 80 13 01 00 [16:17:41]Write to MH i2c: E2 08 00 73 4D 80 13 01 00 00 00 00 00 3D [16:17:41]Write i2c OK [16:17:41]MH_I2C_Read... [16:17:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:17:41]Read from MH i2c: E2 [16:17:41]MH_I2C_Read... [16:17:41]Read from MH i2c: E2 0E 00 [16:17:41]MH_I2C_Read... [16:17:41]Read from MH i2c: E2 0E 00 73 4D 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 18 [16:17:41]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [16:17:41]wFMCommunicate OK [16:17:41]SAM_PROTO_GetShiftState done [16:17:41]FM_GetShiftState done [16:17:41]req_shift_opened done [16:17:41]requested_item shift.open_date is exist - process it [16:17:41]req_shift_open_date [16:17:41]req_shift_open_date done [16:17:41]produce_requested_data done [16:17:41]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68412,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [16:17:41]process_action_free close_receipt [16:17:41]json_value_free [16:17:41]json_value_free done [16:17:41]process_json_proto returns [16:17:41]Send response to host [16:17:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68412,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [16:17:41]free response buf [16:17:41]execute_script done [16:17:41]execute_script returns [16:17:41]free content buf [16:17:41]Sock 5.Close socket [16:17:41]Sock 5.Thread stoped [16:17:44]OFD Sender: No OFD packet to send [16:17:49]OFD Sender: No OFD packet to send [16:17:54]OFD Sender: No OFD packet to send [16:17:59]OFD Sender: No OFD packet to send [16:18:04]OFD Sender: No OFD packet to send [16:18:09]OFD Sender: No OFD packet to send [16:18:14]OFD Sender: No OFD packet to send [16:18:19]OFD Sender: No OFD packet to send [16:18:20]accept exits with 6 [16:18:20]New connection [16:18:20]New thread 3066686820 created [16:18:20]Thread 3066543460 joined [16:18:20]Waiting for new connection... [16:18:20] Sock 6.Parse request [16:18:20]Sock 6.Check first char [16:18:20]Sock 6.First char is OK [16:18:20]request: POST /json_proto HTTP/1.0 [16:18:20]Method: POST [16:18:20]URL: /json_proto [16:18:20]Method is POST - this is cgi request [16:18:20]url: /json_proto [16:18:20]query_string will be loaded in cgi processing [16:18:20]execute_cgi json_proto POST (null) [16:18:20]execute_cgi path=json_proto method=POST [16:18:20]POST find Content-Length [16:18:20]Host: 172.17.36.132:8080 [16:18:20]Content-Length: 1178 [16:18:20]Content-Type: application/json [16:18:20] [16:18:20]POST finish read [16:18:20]Found Content-Length = 1178 [16:18:20]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706508\u000A03.06.2024 15:55\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 : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-4\u000A 20.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 1458.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\u000A3789801\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:18:20]execute_script... [16:18:20]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706508\u000A03.06.2024 15:55\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 : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-4\u000A 20.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 1458.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\u000A3789801\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:18:20]POST & json_proto [16:18:20]process_json_proto [16:18:20]json parsed OK: [16:18:20]protocol is kg_v1.0 [16:18:20]action value=print_text [16:18:20]process_action print_text [16:18:20]cmd_print_text [16:18:20]ExternCall_PrintAddStr [16:18:20]wPrintStart [16:18:20]Write to MH i2c: 01 00 00 74 4D C1 [16:18:20]Write i2c OK [16:18:20]MH_I2C_Read... [16:18:20]Read from MH i2c: 01 [16:18:20]MH_I2C_Read... [16:18:20]Read from MH i2c: 01 07 00 [16:18:20]MH_I2C_Read... [16:18:20]Read from MH i2c: 01 07 00 74 4D 00 00 00 00 00 FF 0F D6 [16:18:20]RasterBufferAndPrint [16:18:20]line *****ТОВАРНЫЙ ЧЕК***** [16:18:20]line АЗС 62 [16:18:20]line Партнер нефть [16:18:20]line 02508201610067 [16:18:20]line Кассир : Балаев А. [16:18:20]line Счет N : (1)706508 [16:18:20]line 03.06.2024 15:55 [16:18:20]line ПРОДАЖА [16:18:20]line ТРК (МРК, ГНК): 61 [16:18:20]line Вид ГСМ : 2710194210 [16:18:20]line ДТ(л)-К-4 [16:18:20]line 20.000 x 72.90 [16:18:20]line ИТОГ: 1458.00 [16:18:20]line Тип оплаты: Талоны: Партнер нефть [16:18:20]line 3789801 [16:18:20]line ______________________ [16:18:20]line (подпись) [16:18:20]written 0, free lines is 4095 [16:18:20]Write to MH i2c: 01 00 00 88 4D D5 [16:18:20]Write i2c OK [16:18:20]MH_I2C_Read... [16:18:20]Read from MH i2c: 01 [16:18:20]MH_I2C_Read... [16:18:20]Read from MH i2c: 01 07 00 [16:18:20]MH_I2C_Read... [16:18:20]Read from MH i2c: 01 07 00 88 4D 00 00 00 00 00 10 0E FA [16:18:20]RasterBufferAndPrint [16:18:20]line [16:18:20]line [16:18:20]line [16:18:20]line [16:18:20]line [16:18:20]written 0, free lines is 3602 [16:18:20]MH_Cut [16:18:20]Write to MH i2c: D1 01 00 8F 4D 01 AE [16:18:20]Write i2c OK [16:18:20]MH_I2C_Read... [16:18:20]Read from MH i2c: D1 [16:18:20]MH_I2C_Read... [16:18:20]Read from MH i2c: D1 01 00 [16:18:20]MH_I2C_Read... [16:18:20]Read from MH i2c: D1 01 00 8F 4D 00 AD [16:18:20]Write to MH i2c: 01 00 00 90 4D DD [16:18:20]Write i2c OK [16:18:20]MH_I2C_Read... [16:18:21]*** Cut start [16:18:21]*** Partial cut [16:18:21]*** CUTSNS_PIN = 1 [16:18:21]*** CUTSNS_PIN = 0 [16:18:21]*** Brake cut motor [16:18:21]Read from MH i2c: 01 [16:18:21]MH_I2C_Read... [16:18:21]*** Stop cut motor [16:18:21]*** Cut end [16:18:21]Read from MH i2c: 01 07 00 [16:18:21]MH_I2C_Read... [16:18:21]Read from MH i2c: 01 07 00 90 4D 00 00 00 00 00 FF 0F F2 [16:18:21]process_action print_text done [16:18:21]requested_data is exist [16:18:21]produce_requested_data [16:18:21]requested_item fm.sn is exist - process it [16:18:21]wFMCommunicate request_size=4 [16:18:21]MH_SAM_APDU [16:18:21]CAPDU: 80 11 00 00 [16:18:21]Write to MH i2c: E2 08 00 91 4D 80 11 00 00 00 00 00 00 58 [16:18:21]Write i2c OK [16:18:21]MH_I2C_Read... [16:18:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:18:21]Read from MH i2c: E2 [16:18:21]MH_I2C_Read... [16:18:21]Read from MH i2c: E2 17 00 [16:18:21]MH_I2C_Read... [16:18:21]Read from MH i2c: E2 17 00 91 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 A3 [16:18:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [16:18:21]wFMCommunicate OK [16:18:21]requested_item fd.num is exist - process it [16:18:21]SAM_PROTO_GetFieldsCounters [16:18:21]wFMCommunicate request_size=4 [16:18:21]MH_SAM_APDU [16:18:21]CAPDU: 80 13 00 00 [16:18:21]Write to MH i2c: E2 08 00 92 4D 80 13 00 00 00 00 00 00 5B [16:18:21]Write i2c OK [16:18:21]MH_I2C_Read... [16:18:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:18:22]Read from MH i2c: E2 [16:18:22]MH_I2C_Read... [16:18:22]Read from MH i2c: E2 62 00 [16:18:22]MH_I2C_Read... [16:18:22]Read from MH i2c: E2 62 00 92 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 3C 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [16:18:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 3C 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:18:22]wFMCommunicate OK [16:18:22]SAM_PROTO_GetFieldsCounters done [16:18:22]requested_item shift.num is exist - process it [16:18:22]requested_item shift.opened is exist - process it [16:18:22]req_shift_opened [16:18:22]FM_GetShiftState [16:18:22]SAM_PROTO_GetShiftState [16:18:22]wFMCommunicate request_size=4 [16:18:22]MH_SAM_APDU [16:18:22]CAPDU: 80 13 01 00 [16:18:22]Write to MH i2c: E2 08 00 93 4D 80 13 01 00 00 00 00 00 5D [16:18:22]Write i2c OK [16:18:22]MH_I2C_Read... [16:18:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:18:22]Read from MH i2c: E2 [16:18:22]MH_I2C_Read... [16:18:22]Read from MH i2c: E2 0E 00 [16:18:22]MH_I2C_Read... [16:18:22]Read from MH i2c: E2 0E 00 93 4D 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 38 [16:18:22]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [16:18:22]wFMCommunicate OK [16:18:22]SAM_PROTO_GetShiftState done [16:18:22]FM_GetShiftState done [16:18:22]req_shift_opened done [16:18:22]requested_item shift.open_date is exist - process it [16:18:22]req_shift_open_date [16:18:22]req_shift_open_date done [16:18:22]produce_requested_data done [16:18:22]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68412,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [16:18:22]process_action_free print_text [16:18:22]json_value_free [16:18:22]json_value_free done [16:18:22]process_json_proto returns [16:18:22]Send response to host [16:18:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68412,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [16:18:22]free response buf [16:18:22]execute_script done [16:18:22]execute_script returns [16:18:22]free content buf [16:18:22]Sock 6.Close socket [16:18:22]Sock 6.Thread stoped [16:18:24]OFD Sender: No OFD packet to send [16:18:29]OFD Sender: No OFD packet to send [16:18:34]OFD Sender: No OFD packet to send [16:18:39]OFD Sender: No OFD packet to send [16:18:44]OFD Sender: No OFD packet to send [16:18:49]OFD Sender: No OFD packet to send [16:18:54]OFD Sender: No OFD packet to send [16:18:59]OFD Sender: No OFD packet to send [16:19:04]OFD Sender: No OFD packet to send [16:19:09]OFD Sender: No OFD packet to send [16:19:14]OFD Sender: No OFD packet to send [16:19:19]OFD Sender: No OFD packet to send [16:19:24]OFD Sender: No OFD packet to send [16:19:29]OFD Sender: No OFD packet to send [16:19:34]OFD Sender: No OFD packet to send [16:19:39]OFD Sender: No OFD packet to send [16:19:44]OFD Sender: No OFD packet to send [16:19:49]OFD Sender: No OFD packet to send [16:19:54]OFD Sender: No OFD packet to send [16:19:59]OFD Sender: No OFD packet to send [16:20:04]OFD Sender: No OFD packet to send [16:20:09]OFD Sender: No OFD packet to send [16:20:14]OFD Sender: No OFD packet to send [16:20:19]OFD Sender: No OFD packet to send [16:20:24]OFD Sender: No OFD packet to send [16:20:29]OFD Sender: No OFD packet to send [16:20:34]OFD Sender: No OFD packet to send [16:20:39]OFD Sender: No OFD packet to send [16:20:44]OFD Sender: No OFD packet to send [16:20:49]OFD Sender: No OFD packet to send [16:20:54]OFD Sender: No OFD packet to send [16:20:59]OFD Sender: No OFD packet to send [16:21:04]OFD Sender: No OFD packet to send [16:21:09]OFD Sender: No OFD packet to send [16:21:14]OFD Sender: No OFD packet to send [16:21:19]OFD Sender: No OFD packet to send [16:21:24]OFD Sender: No OFD packet to send [16:21:29]OFD Sender: No OFD packet to send [16:21:33]accept exits with 5 [16:21:33]New connection [16:21:33]New thread 3066543460 created [16:21:33]Thread 3066686820 joined [16:21:33]Waiting for new connection... [16:21:33] Sock 5.Parse request [16:21:33]Sock 5.Check first char [16:21:33]Sock 5.First char is OK [16:21:33]request: POST /json_proto HTTP/1.0 [16:21:33]Method: POST [16:21:33]URL: /json_proto [16:21:33]Method is POST - this is cgi request [16:21:33]url: /json_proto [16:21:33]query_string will be loaded in cgi processing [16:21:33]execute_cgi json_proto POST (null) [16:21:33]execute_cgi path=json_proto method=POST [16:21:33]POST find Content-Length [16:21:33]Host: 172.17.36.132:8080 [16:21:33]Content-Length: 677 [16:21:33]Content-Type: application/json [16:21:33] [16:21:33]POST finish read [16:21:33]Found Content-Length = 677 [16:21:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706511", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.780, "sum" : 520.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 520.00, "total" : 520.00, "payments": [ { "type": 0, "sum" : 520.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:21:33]execute_script... [16:21: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)706511", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.780, "sum" : 520.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 520.00, "total" : 520.00, "payments": [ { "type": 0, "sum" : 520.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:21:33]POST & json_proto [16:21:33]process_json_proto [16:21:33]json parsed OK: [16:21:33]protocol is kg_v1.0 [16:21:33]action value=close_receipt [16:21:33]process_action close_receipt [16:21:33]cmd_close_receipt [16:21:33]MH_GetDate [16:21:33]Write to MH i2c: F0 00 00 94 4D D0 [16:21:33]Write i2c OK [16:21:33]MH_I2C_Read... [16:21:33]Read from MH i2c: F0 [16:21:33]MH_I2C_Read... [16:21:33]Read from MH i2c: F0 09 00 [16:21:33]MH_I2C_Read... [16:21:33]Read from MH i2c: F0 09 00 94 4D 00 93 ED 5D 66 B2 22 B0 64 04 [16:21:33]GetLastDocTimeStamp 1717431463 [16:21:33]current date 1717431699 [16:21:33]FM_GetShiftState [16:21:33]SAM_PROTO_GetShiftState [16:21:33]wFMCommunicate request_size=4 [16:21:33]MH_SAM_APDU [16:21:33]CAPDU: 80 13 01 00 [16:21:33]Write to MH i2c: E2 08 00 95 4D 80 13 01 00 00 00 00 00 5F [16:21:33]Write i2c OK [16:21:33]MH_I2C_Read... [16:21:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:33]Read from MH i2c: E2 [16:21:33]MH_I2C_Read... [16:21:33]Read from MH i2c: E2 0E 00 [16:21:33]MH_I2C_Read... [16:21:33]Read from MH i2c: E2 0E 00 95 4D 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 3A [16:21:33]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [16:21:33]wFMCommunicate OK [16:21:33]SAM_PROTO_GetShiftState done [16:21:33]FM_GetShiftState done [16:21:33]opened in 1717378033 [16:21:33]opened+sec_in_day 1717464433 [16:21:33]quantity*price = 52048 [16:21:33]sum+1 = 52049 [16:21:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.48 ИТОГО: 520.00 Внесено: 520.00 СДАЧА: 0.00 НСП 1% : 4.61 НДС 12% : 55.27 Наличными: 520.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 159 03.06.2024 16:21 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68413 ФПД: 226360243635983 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T162139&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68413&fm=226360243635983&tin=02508201610067®Number=0000000000098096&sum=52000 [16:21:34]StoreToDocumentArchive [16:21:34]shift 324 fd 68413 [16:21:34]save to /storage/0324/doc_00068413 [16:21:34]save last doc name /storage/0324/doc_00068413 to /storage/kkm_last_doc_name [16:21:34]save OK [16:21:34]Clear old archive folders... [16:21:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:21:34]tlvbuf is 004CECA0 [16:21:34]SAM_PROTO_ClearQueue [16:21:34]wFMCommunicate request_size=4 [16:21:34]MH_SAM_APDU [16:21:34]CAPDU: 80 09 00 00 [16:21:34]Write to MH i2c: E2 08 00 A2 4D 80 09 00 00 00 00 00 00 61 [16:21:34]Write i2c OK [16:21:34]MH_I2C_Read... [16:21:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:21:34]Read from MH i2c: E2 [16:21:34]MH_I2C_Read... [16:21:34]Read from MH i2c: E2 03 00 [16:21:34]MH_I2C_Read... [16:21:34]Read from MH i2c: E2 03 00 A2 4D 00 90 00 63 [16:21:34]RAPDU: 90 00 [16:21:34]wFMCommunicate OK [16:21:34]SAM_PROTO_ClearQueue done [16:21:34]KKMCreateOFDPacket [16:21:34]OFDProtocolAddRootSTLVToBuf [16:21:34]FM_MakeSignedData [16:21:34]FM_MakeSignedData [16:21:34]SAM_PROTO_SignData [16:21:34]wFMCommunicate request_size=4 [16:21:34]MH_SAM_APDU [16:21:34]CAPDU: 80 0D 01 02 [16:21:34]Write to MH i2c: E2 08 00 A3 4D 80 0D 01 02 00 00 00 00 69 [16:21:34]Write i2c OK [16:21:34]MH_I2C_Read... [16:21:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:21:34]Read from MH i2c: E2 [16:21:34]MH_I2C_Read... [16:21:34]Read from MH i2c: E2 03 00 [16:21:34]MH_I2C_Read... [16:21:34]Read from MH i2c: E2 03 00 A3 4D 00 90 00 64 [16:21:34]RAPDU: 90 00 [16:21:34]wFMCommunicate OK [16:21:34]wFMCommunicate request_size=255 [16:21:34]MH_SAM_APDU [16:21: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 34 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 50 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 93 ED 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 3D 0B 01 00 35 04 06 00 CD [16:21:34]Write to MH i2c: E2 02 01 A4 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 34 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 50 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 93 ED 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 3D 0B 01 00 35 04 06 00 CD 00 00 D7 [16:21:34]Write i2c OK [16:21:34]MH_I2C_Read... [16:21:35]OFD Sender: No OFD packet to send [16:21:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:35]Read from MH i2c: E2 [16:21:35]MH_I2C_Read... [16:21:35]Read from MH i2c: E2 03 00 [16:21:35]MH_I2C_Read... [16:21:35]Read from MH i2c: E2 03 00 A4 4D 00 90 00 65 [16:21:35]RAPDU: 90 00 [16:21:35]wFMCommunicate OK [16:21:35]wFMCommunicate request_size=10 [16:21:35]MH_SAM_APDU [16:21:35]CAPDU: 80 0D 02 02 05 DF 99 E9 C7 0F [16:21:35]Write to MH i2c: E2 0D 00 A5 4D 80 0D 02 02 05 00 DF 99 E9 C7 0F 00 00 AD [16:21:35]Write i2c OK [16:21:35]MH_I2C_Read... [16:21:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:35]Read from MH i2c: E2 [16:21:35]MH_I2C_Read... [16:21:35]Read from MH i2c: E2 03 00 [16:21:35]MH_I2C_Read... [16:21:35]Read from MH i2c: E2 03 00 A5 4D 00 90 00 66 [16:21:35]RAPDU: 90 00 [16:21:35]wFMCommunicate OK [16:21:35]wFMCommunicate request_size=4 [16:21:35]MH_SAM_APDU [16:21:35]CAPDU: 80 0D 03 02 [16:21:35]Write to MH i2c: E2 08 00 A6 4D 80 0D 03 02 00 00 00 00 6E [16:21:35]Write i2c OK [16:21:35]MH_I2C_Read... [16:21:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:21:35]Read from MH i2c: E2 [16:21:35]MH_I2C_Read... [16:21:35]Read from MH i2c: E2 0B 00 [16:21:35]MH_I2C_Read... [16:21:35]Read from MH i2c: E2 0B 00 A6 4D 00 9D EE D9 20 4D B0 C7 1E 90 00 D5 [16:21:35]RAPDU: 9D EE D9 20 4D B0 C7 1E 90 00 [16:21:35]wFMCommunicate OK [16:21:35]SAM_PROTO_SignData done [16:21:35]FM_MakeSignedData done [16:21:35]CreateOFDProtocolMessage [16:21:35]wFMCommunicate request_size=4 [16:21:35]MH_SAM_APDU [16:21:35]CAPDU: 80 11 00 00 [16:21:35]Write to MH i2c: E2 08 00 A7 4D 80 11 00 00 00 00 00 00 6E [16:21:35]Write i2c OK [16:21:35]MH_I2C_Read... [16:21:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:35]Read from MH i2c: E2 [16:21:35]MH_I2C_Read... [16:21:35]Read from MH i2c: E2 17 00 [16:21:35]MH_I2C_Read... [16:21:35]Read from MH i2c: E2 17 00 A7 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 B9 [16:21:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [16:21:35]wFMCommunicate OK [16:21:35]CreateOFDProtocolMessage done [16:21:35]OFDSenderStorePacket 68413 [16:21:35]StoreOFDPacket docnum=68413 [16:21:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 9F E0 07 01 B8 FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 50 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 93 ED 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 3D 0B 01 00 35 04 06 00 CD DF 99 E9 C7 0F 9D EE D9 20 4D B0 C7 1E [16:21:35]CheckFolder [16:21:35]dirname=/storage/ofd_packets [16:21:35]CheckFolder done [16:21:35]ProducePacketName [16:21:35]name=ofd_packets/00068413 [16:21:35]NVStorageSaveData ofd_packets/00068413 [16:21:35]File name is /storage/ofd_packets/00068413 [16:21:35]Write 301 bytes [16:21:35]NVStorageSaveData done [16:21:35]OFDSenderStorePacket done [16:21:35]KKMCreateOFDPacket done [16:21:35]NVStorageSaveData kkm_last_timestamp [16:21:35]File name is /storage/kkm_last_timestamp [16:21:35]Write 4 bytes [16:21:35]NVStorageSaveData done [16:21:35]ExternCall_PrintAddStr [16:21:35]wPrintStart [16:21:35]Write to MH i2c: 01 00 00 A8 4D F5 [16:21:35]Write i2c OK [16:21:35]MH_I2C_Read... [16:21:35]Read from MH i2c: 01 [16:21:35]MH_I2C_Read... [16:21:35]Read from MH i2c: 01 07 00 [16:21:35]MH_I2C_Read... [16:21:35]Read from MH i2c: 01 07 00 A8 4D 00 00 00 00 00 FF 0F 0A [16:21:35]RasterBufferAndPrint [16:21:35]line Счет N : (1)706511 [16:21:35]line ИНН: 02508201610067 [16:21:35]line Контрольно-Кассовый Чек [16:21:35]line ПРОДАЖА [16:21:35]line ТРК (МРК, ГНК) : 63 [16:21:35]line Товар: 2710124130 [16:21:35]line Аи-92-К-4 [16:21:35]line 7.780 * 66.90 [16:21:35]line = 520.48 [16:21:35]line НДС 12% НСП 1% [16:21:35]line > о реализуемом товаре [16:21:35]line ОКРУГЛЕНИЕ: -0.48 [16:21:35]line ИТОГО: 520.00 [16:21:35]line Внесено: 520.00 [16:21:35]line СДАЧА: 0.00 [16:21:35]line НСП 1% : 4.61 [16:21:35]line НДС 12% : 55.27 [16:21:35]line Наличными: 520.00 [16:21:35]line Безнал.: 0.00 [16:21:35]line Место: АЗС № 62 "Партнер Нефть" [16:21:35]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [16:21:35]line СНО: Общий режим [16:21:35]line Чек 159 03.06.2024 16:21 [16:21:35]line Смена: 324 ФФД: 1.0 [16:21:35]line ЗНМ: 0300000181 [16:21:35]line РНМ: 0000000000098096 [16:21:35]line Версия ККМ: 001 [16:21:35]line ФМ: 0000000000965400 [16:21:35]line ФД: 68413 [16:21:35]line ФПД: 226360243635983 [16:21:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T162139&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68413&fm=226360243635983&tin=02508201610067®Number=0000000000098096&sum=52000 [16:21:35]OFD Sender: Processing packet 68413 [packets to send 26, broken 25] [16:21:35]ProducePacketName [16:21:35]name=ofd_packets/00068413 [16:21:35]OFD Sender: To server: pG, [16:21:35]CommunicateWithHost lk.salyk.kg:30040 [16:21:35]ConnectInit lk.salyk.kg [16:21:35]written 0, free lines is 4095 [16:21:35]Connected sock=7 [16:21:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 9F E0 07 01 B8 FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 50 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 93 ED 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 3D 0B 01 00 35 04 06 00 CD DF 99 E9 C7 0F 9D EE D9 20 4D B0 C7 1E [16:21:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 22 BA 47 00 7D E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 3D 0B 01 00 F4 03 04 00 8F 94 5D 66 B6 04 01 00 00 E9 3D C8 BB 9D F5 B5 EE [16:21:36]CommunicateWithHost err = 0 [16:21:36]CheckOFDResponse [16:21:36]1017 (14) - 77093643461234 [16:21:36]1041 (16) - 0000000000965400 [16:21:36]1040 (4) - 68413 [16:21:36]1012 (4) - 03.06.2024 10:01 [16:21:36]1206 (1) - 0 [16:21:36]OFD Sender: Remove packet 68413 [16:21:36]ProducePacketName [16:21:36]name=ofd_packets/00068413 [16:21:36]NVStorageDeleteData [16:21:36]Write to MH i2c: 01 00 00 D3 4D 20 [16:21:36]Write i2c OK [16:21:36]MH_I2C_Read... [16:21:36]Read from MH i2c: 01 [16:21:36]MH_I2C_Read... [16:21:36]Read from MH i2c: 01 07 00 [16:21:36]MH_I2C_Read... [16:21:36]Read from MH i2c: 01 07 00 D3 4D 00 00 00 00 00 E1 0C 14 [16:21:36]RasterBufferAndPrint [16:21:36]line [16:21:36]line [16:21:36]line [16:21:36]line [16:21:36]line [16:21:36]written 0, free lines is 3303 [16:21:36]MH_Cut [16:21:36]Write to MH i2c: D1 01 00 DA 4D 01 F9 [16:21:36]Write i2c OK [16:21:36]MH_I2C_Read... [16:21:36]Read from MH i2c: D1 [16:21:36]MH_I2C_Read... [16:21:36]Read from MH i2c: D1 01 00 [16:21:36]MH_I2C_Read... [16:21:36]Read from MH i2c: D1 01 00 DA 4D 00 F8 [16:21:36]Write to MH i2c: 01 00 00 DB 4D 28 [16:21:36]Write i2c OK [16:21:36]MH_I2C_Read... [16:21:36]OFD Sender: No OFD packet to send [16:21:36]*** Cut start [16:21:36]*** Partial cut [16:21:36]*** CUTSNS_PIN = 1 [16:21:36]*** CUTSNS_PIN = 0 [16:21:37]*** Brake cut motor [16:21:37]Read from MH i2c: 01 [16:21:37]MH_I2C_Read... [16:21:37]*** Stop cut motor [16:21:37]*** Cut end [16:21:37]Read from MH i2c: 01 07 00 [16:21:37]MH_I2C_Read... [16:21:37]Read from MH i2c: 01 07 00 DB 4D 00 00 00 00 00 FF 0F 3D [16:21:37]process_action close_receipt done [16:21:37]requested_data is exist [16:21:37]produce_requested_data [16:21:37]requested_item fm.sn is exist - process it [16:21:37]wFMCommunicate request_size=4 [16:21:37]MH_SAM_APDU [16:21:37]CAPDU: 80 11 00 00 [16:21:37]Write to MH i2c: E2 08 00 DC 4D 80 11 00 00 00 00 00 00 A3 [16:21:37]Write i2c OK [16:21:37]MH_I2C_Read... [16:21:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:37]Read from MH i2c: E2 [16:21:37]MH_I2C_Read... [16:21:37]Read from MH i2c: E2 17 00 [16:21:37]MH_I2C_Read... [16:21:37]Read from MH i2c: E2 17 00 DC 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 EE [16:21:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [16:21:37]wFMCommunicate OK [16:21:37]requested_item fd.num is exist - process it [16:21:37]SAM_PROTO_GetFieldsCounters [16:21:37]wFMCommunicate request_size=4 [16:21:37]MH_SAM_APDU [16:21:37]CAPDU: 80 13 00 00 [16:21:37]Write to MH i2c: E2 08 00 DD 4D 80 13 00 00 00 00 00 00 A6 [16:21:37]Write i2c OK [16:21:37]MH_I2C_Read... [16:21:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:21:37]Read from MH i2c: E2 [16:21:37]MH_I2C_Read... [16:21:37]Read from MH i2c: E2 62 00 [16:21:37]MH_I2C_Read... [16:21:37]Read from MH i2c: E2 62 00 DD 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 3D 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 31 [16:21:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 3D 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:21:37]wFMCommunicate OK [16:21:37]SAM_PROTO_GetFieldsCounters done [16:21:37]requested_item shift.num is exist - process it [16:21:37]requested_item shift.opened is exist - process it [16:21:37]req_shift_opened [16:21:37]FM_GetShiftState [16:21:37]SAM_PROTO_GetShiftState [16:21:37]wFMCommunicate request_size=4 [16:21:37]MH_SAM_APDU [16:21:37]CAPDU: 80 13 01 00 [16:21:37]Write to MH i2c: E2 08 00 DE 4D 80 13 01 00 00 00 00 00 A8 [16:21:37]Write i2c OK [16:21:37]MH_I2C_Read... [16:21:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:37]Read from MH i2c: E2 [16:21:37]MH_I2C_Read... [16:21:37]Read from MH i2c: E2 0E 00 [16:21:37]MH_I2C_Read... [16:21:37]Read from MH i2c: E2 0E 00 DE 4D 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 83 [16:21:37]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [16:21:37]wFMCommunicate OK [16:21:37]SAM_PROTO_GetShiftState done [16:21:37]FM_GetShiftState done [16:21:37]req_shift_opened done [16:21:37]requested_item shift.open_date is exist - process it [16:21:37]req_shift_open_date [16:21:37]req_shift_open_date done [16:21:37]produce_requested_data done [16:21:37]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68413,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [16:21:37]process_action_free close_receipt [16:21:37]json_value_free [16:21:37]json_value_free done [16:21:37]process_json_proto returns [16:21:37]Send response to host [16:21:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68413,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [16:21:37]free response buf [16:21:37]execute_script done [16:21:37]execute_script returns [16:21:37]free content buf [16:21:37]Sock 5.Close socket [16:21:37]Sock 5.Thread stoped [16:21:41]OFD Sender: No OFD packet to send [16:21:46]OFD Sender: No OFD packet to send [16:21:51]OFD Sender: No OFD packet to send [16:21:56]OFD Sender: No OFD packet to send [16:22:01]OFD Sender: No OFD packet to send [16:22:06]OFD Sender: No OFD packet to send [16:22:11]OFD Sender: No OFD packet to send [16:22:16]OFD Sender: No OFD packet to send [16:22:19]accept exits with 6 [16:22:19]New connection [16:22:19]New thread 3066686820 created [16:22:19]Thread 3066543460 joined [16:22:19]Waiting for new connection... [16:22:19] Sock 6.Parse request [16:22:19]Sock 6.Check first char [16:22:19]Sock 6.First char is OK [16:22:19]request: POST /json_proto HTTP/1.0 [16:22:19]Method: POST [16:22:19]URL: /json_proto [16:22:19]Method is POST - this is cgi request [16:22:19]url: /json_proto [16:22:19]query_string will be loaded in cgi processing [16:22:19]execute_cgi json_proto POST (null) [16:22:19]execute_cgi path=json_proto method=POST [16:22:19]POST find Content-Length [16:22:19]Host: 172.17.36.132:8080 [16:22:19]Content-Length: 687 [16:22:19]Content-Type: application/json [16:22:19] [16:22:19]POST finish read [16:22:19]Found Content-Length = 687 [16:22:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706510", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "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:22:19]execute_script... [16:22: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)706510", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "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:22:19]POST & json_proto [16:22:19]process_json_proto [16:22:19]json parsed OK: [16:22:19]protocol is kg_v1.0 [16:22:19]action value=close_receipt [16:22:19]process_action close_receipt [16:22:19]cmd_close_receipt [16:22:19]MH_GetDate [16:22:19]Write to MH i2c: F0 00 00 DF 4D 1B [16:22:19]Write i2c OK [16:22:19]MH_I2C_Read... [16:22:19]Read from MH i2c: F0 [16:22:19]MH_I2C_Read... [16:22:19]Read from MH i2c: F0 09 00 [16:22:19]MH_I2C_Read... [16:22:19]Read from MH i2c: F0 09 00 DF 4D 00 C1 ED 5D 66 B2 22 B0 64 7D [16:22:19]GetLastDocTimeStamp 1717431699 [16:22:19]current date 1717431745 [16:22:19]FM_GetShiftState [16:22:19]SAM_PROTO_GetShiftState [16:22:19]wFMCommunicate request_size=4 [16:22:19]MH_SAM_APDU [16:22:19]CAPDU: 80 13 01 00 [16:22:19]Write to MH i2c: E2 08 00 E0 4D 80 13 01 00 00 00 00 00 AA [16:22:19]Write i2c OK [16:22:19]MH_I2C_Read... [16:22:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:19]Read from MH i2c: E2 [16:22:19]MH_I2C_Read... [16:22:19]Read from MH i2c: E2 0E 00 [16:22:19]MH_I2C_Read... [16:22:19]Read from MH i2c: E2 0E 00 E0 4D 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 85 [16:22:19]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [16:22:19]wFMCommunicate OK [16:22:19]SAM_PROTO_GetShiftState done [16:22:19]FM_GetShiftState done [16:22:19]opened in 1717378033 [16:22:19]opened+sec_in_day 1717464433 [16:22:19]quantity*price = 100018 [16:22:19]sum+1 = 100020 [16:22:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 160 03.06.2024 16:22 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68414 ФПД: 205000945339944 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T162225&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68414&fm=205000945339944&tin=02508201610067®Number=0000000000098096&sum=100000 [16:22:20]StoreToDocumentArchive [16:22:20]shift 324 fd 68414 [16:22:20]save to /storage/0324/doc_00068414 [16:22:20]save last doc name /storage/0324/doc_00068414 to /storage/kkm_last_doc_name [16:22:20]save OK [16:22:20]Clear old archive folders... [16:22:20]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:22:20]tlvbuf is 005A59A0 [16:22:20]SAM_PROTO_ClearQueue [16:22:20]wFMCommunicate request_size=4 [16:22:20]MH_SAM_APDU [16:22:20]CAPDU: 80 09 00 00 [16:22:20]Write to MH i2c: E2 08 00 ED 4D 80 09 00 00 00 00 00 00 AC [16:22:20]Write i2c OK [16:22:20]MH_I2C_Read... [16:22:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:22:20]Read from MH i2c: E2 [16:22:20]MH_I2C_Read... [16:22:20]Read from MH i2c: E2 03 00 [16:22:20]MH_I2C_Read... [16:22:20]Read from MH i2c: E2 03 00 ED 4D 00 90 00 AE [16:22:20]RAPDU: 90 00 [16:22:20]wFMCommunicate OK [16:22:20]SAM_PROTO_ClearQueue done [16:22:20]KKMCreateOFDPacket [16:22:20]OFDProtocolAddRootSTLVToBuf [16:22:20]FM_MakeSignedData [16:22:20]FM_MakeSignedData [16:22:20]SAM_PROTO_SignData [16:22:20]wFMCommunicate request_size=4 [16:22:20]MH_SAM_APDU [16:22:20]CAPDU: 80 0D 01 02 [16:22:20]Write to MH i2c: E2 08 00 EE 4D 80 0D 01 02 00 00 00 00 B4 [16:22:20]Write i2c OK [16:22:20]MH_I2C_Read... [16:22:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:22:20]Read from MH i2c: E2 [16:22:20]MH_I2C_Read... [16:22:20]Read from MH i2c: E2 03 00 [16:22:20]MH_I2C_Read... [16:22:20]Read from MH i2c: E2 03 00 EE 4D 00 90 00 AF [16:22:20]RAPDU: 90 00 [16:22:20]wFMCommunicate OK [16:22:20]wFMCommunicate request_size=255 [16:22:20]MH_SAM_APDU [16:22: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 34 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A0 00 00 00 F4 03 04 00 C1 ED 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 3E 0B 01 00 35 04 06 00 [16:22:20]Write to MH i2c: E2 02 01 EF 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 34 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A0 00 00 00 F4 03 04 00 C1 ED 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 3E 0B 01 00 35 04 06 00 00 00 A0 [16:22:20]Write i2c OK [16:22:20]MH_I2C_Read... [16:22:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:20]Read from MH i2c: E2 [16:22:20]MH_I2C_Read... [16:22:20]Read from MH i2c: E2 03 00 [16:22:20]MH_I2C_Read... [16:22:20]Read from MH i2c: E2 03 00 EF 4D 00 90 00 B0 [16:22:20]RAPDU: 90 00 [16:22:20]wFMCommunicate OK [16:22:20]wFMCommunicate request_size=11 [16:22:20]MH_SAM_APDU [16:22:20]CAPDU: 80 0D 02 02 06 BA 72 80 86 8E 28 [16:22:20]Write to MH i2c: E2 0E 00 F0 4D 80 0D 02 02 06 00 BA 72 80 86 8E 28 00 00 AB [16:22:20]Write i2c OK [16:22:20]MH_I2C_Read... [16:22:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:20]Read from MH i2c: E2 [16:22:20]MH_I2C_Read... [16:22:20]Read from MH i2c: E2 03 00 [16:22:20]MH_I2C_Read... [16:22:20]Read from MH i2c: E2 03 00 F0 4D 00 90 00 B1 [16:22:20]RAPDU: 90 00 [16:22:20]wFMCommunicate OK [16:22:20]wFMCommunicate request_size=4 [16:22:20]MH_SAM_APDU [16:22:20]CAPDU: 80 0D 03 02 [16:22:20]Write to MH i2c: E2 08 00 F1 4D 80 0D 03 02 00 00 00 00 B9 [16:22:20]Write i2c OK [16:22:20]MH_I2C_Read... [16:22:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:22:20]Read from MH i2c: E2 [16:22:20]MH_I2C_Read... [16:22:20]Read from MH i2c: E2 0B 00 [16:22:20]MH_I2C_Read... [16:22:20]Read from MH i2c: E2 0B 00 F1 4D 00 6F 19 62 DB 04 F2 9D 1D 90 00 2F [16:22:20]RAPDU: 6F 19 62 DB 04 F2 9D 1D 90 00 [16:22:20]wFMCommunicate OK [16:22:20]SAM_PROTO_SignData done [16:22:20]FM_MakeSignedData done [16:22:20]CreateOFDProtocolMessage [16:22:20]wFMCommunicate request_size=4 [16:22:20]MH_SAM_APDU [16:22:20]CAPDU: 80 11 00 00 [16:22:20]Write to MH i2c: E2 08 00 F2 4D 80 11 00 00 00 00 00 00 B9 [16:22:20]Write i2c OK [16:22:20]MH_I2C_Read... [16:22:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:20]Read from MH i2c: E2 [16:22:20]MH_I2C_Read... [16:22:20]Read from MH i2c: E2 17 00 [16:22:20]MH_I2C_Read... [16:22:20]Read from MH i2c: E2 17 00 F2 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 04 [16:22:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [16:22:20]wFMCommunicate OK [16:22:20]CreateOFDProtocolMessage done [16:22:20]OFDSenderStorePacket 68414 [16:22:20]StoreOFDPacket docnum=68414 [16:22:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 44 53 08 01 31 1C 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 34 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A0 00 00 00 F4 03 04 00 C1 ED 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 3E 0B 01 00 35 04 06 00 BA 72 80 86 8E 28 6F 19 62 DB 04 F2 9D 1D [16:22:20]CheckFolder [16:22:20]dirname=/storage/ofd_packets [16:22:20]CheckFolder done [16:22:20]ProducePacketName [16:22:20]name=ofd_packets/00068414 [16:22:20]NVStorageSaveData ofd_packets/00068414 [16:22:20]File name is /storage/ofd_packets/00068414 [16:22:20]Write 302 bytes [16:22:20]NVStorageSaveData done [16:22:20]OFDSenderStorePacket done [16:22:20]KKMCreateOFDPacket done [16:22:20]NVStorageSaveData kkm_last_timestamp [16:22:20]File name is /storage/kkm_last_timestamp [16:22:20]Write 4 bytes [16:22:20]NVStorageSaveData done [16:22:20]ExternCall_PrintAddStr [16:22:20]wPrintStart [16:22:20]Write to MH i2c: 01 00 00 F3 4D 40 [16:22:20]Write i2c OK [16:22:20]MH_I2C_Read... [16:22:20]Read from MH i2c: 01 [16:22:20]MH_I2C_Read... [16:22:20]Read from MH i2c: 01 07 00 [16:22:20]MH_I2C_Read... [16:22:20]Read from MH i2c: 01 07 00 F3 4D 00 00 00 00 00 FF 0F 55 [16:22:20]RasterBufferAndPrint [16:22:20]line Счет N : (1)706510 [16:22:20]line ИНН: 02508201610067 [16:22:20]line Контрольно-Кассовый Чек [16:22:20]line ПРОДАЖА [16:22:20]line ТРК (МРК, ГНК) : 51 [16:22:20]line Товар: 2710194210 [16:22:20]line ДТ(л)-К-4 [16:22:20]line 13.720 * 72.90 [16:22:20]line = 1000.19 [16:22:20]line НДС 12% НСП 1% [16:22:20]line > о реализуемом товаре [16:22:20]line ОКРУГЛЕНИЕ: -0.19 [16:22:20]line ИТОГО: 1000.00 [16:22:20]line Внесено: 1000.00 [16:22:20]line СДАЧА: 0.00 [16:22:20]line НСП 1% : 8.85 [16:22:20]line НДС 12% : 106.21 [16:22:20]line Наличными: 1000.00 [16:22:20]line Безнал.: 0.00 [16:22:20]line Место: АЗС № 62 "Партнер Нефть" [16:22:20]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [16:22:20]line СНО: Общий режим [16:22:20]line Чек 160 03.06.2024 16:22 [16:22:20]line Смена: 324 ФФД: 1.0 [16:22:20]line ЗНМ: 0300000181 [16:22:20]line РНМ: 0000000000098096 [16:22:20]line Версия ККМ: 001 [16:22:20]line ФМ: 0000000000965400 [16:22:20]line ФД: 68414 [16:22:20]line ФПД: 205000945339944 [16:22:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T162225&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68414&fm=205000945339944&tin=02508201610067®Number=0000000000098096&sum=100000 [16:22:21]OFD Sender: Processing packet 68414 [packets to send 26, broken 25] [16:22:21]ProducePacketName [16:22:21]name=ofd_packets/00068414 [16:22:21]OFD Sender: To server: pG, [16:22:21]CommunicateWithHost lk.salyk.kg:30040 [16:22:21]ConnectInit lk.salyk.kg [16:22:21]written 0, free lines is 4095 [16:22:21]Connected sock=7 [16:22:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 44 53 08 01 31 1C 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 34 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A0 00 00 00 F4 03 04 00 C1 ED 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 3E 0B 01 00 35 04 06 00 BA 72 80 86 8E 28 6F 19 62 DB 04 F2 9D 1D [16:22:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 5F E6 47 00 49 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 3E 0B 01 00 F4 03 04 00 BC 94 5D 66 B6 04 01 00 00 33 89 84 8F BF 20 0E A2 [16:22:21]CommunicateWithHost err = 0 [16:22:21]CheckOFDResponse [16:22:21]1017 (14) - 77093643461234 [16:22:21]1041 (16) - 0000000000965400 [16:22:21]1040 (4) - 68414 [16:22:21]1012 (4) - 03.06.2024 10:02 [16:22:21]1206 (1) - 0 [16:22:21]OFD Sender: Remove packet 68414 [16:22:21]ProducePacketName [16:22:21]name=ofd_packets/00068414 [16:22:21]NVStorageDeleteData [16:22:21]Write to MH i2c: 01 00 00 1E 4E 6C [16:22:21]Write i2c OK [16:22:21]MH_I2C_Read... [16:22:21]Read from MH i2c: 01 [16:22:21]MH_I2C_Read... [16:22:21]Read from MH i2c: 01 07 00 [16:22:21]MH_I2C_Read... [16:22:21]Read from MH i2c: 01 07 00 1E 4E 00 00 00 00 00 E4 0C 63 [16:22:21]RasterBufferAndPrint [16:22:21]line [16:22:21]line [16:22:21]line [16:22:21]line [16:22:21]line [16:22:21]written 0, free lines is 3306 [16:22:21]MH_Cut [16:22:21]Write to MH i2c: D1 01 00 25 4E 01 45 [16:22:21]Write i2c OK [16:22:21]MH_I2C_Read... [16:22:21]Read from MH i2c: D1 [16:22:21]MH_I2C_Read... [16:22:21]Read from MH i2c: D1 01 00 [16:22:21]MH_I2C_Read... [16:22:21]Read from MH i2c: D1 01 00 25 4E 00 44 [16:22:21]Write to MH i2c: 01 00 00 26 4E 74 [16:22:21]Write i2c OK [16:22:21]MH_I2C_Read... [16:22:22]OFD Sender: No OFD packet to send [16:22:22]*** Cut start [16:22:22]*** Partial cut [16:22:22]*** CUTSNS_PIN = 1 [16:22:22]*** CUTSNS_PIN = 0 [16:22:22]*** Brake cut motor [16:22:23]Read from MH i2c: 01 [16:22:23]MH_I2C_Read... [16:22:23]*** Stop cut motor [16:22:23]*** Cut end [16:22:23]Read from MH i2c: 01 07 00 [16:22:23]MH_I2C_Read... [16:22:23]Read from MH i2c: 01 07 00 26 4E 00 00 00 00 00 FF 0F 89 [16:22:23]process_action close_receipt done [16:22:23]requested_data is exist [16:22:23]produce_requested_data [16:22:23]requested_item fm.sn is exist - process it [16:22:23]wFMCommunicate request_size=4 [16:22:23]MH_SAM_APDU [16:22:23]CAPDU: 80 11 00 00 [16:22:23]Write to MH i2c: E2 08 00 27 4E 80 11 00 00 00 00 00 00 EF [16:22:23]Write i2c OK [16:22:23]MH_I2C_Read... [16:22:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:23]Read from MH i2c: E2 [16:22:23]MH_I2C_Read... [16:22:23]Read from MH i2c: E2 17 00 [16:22:23]MH_I2C_Read... [16:22:23]Read from MH i2c: E2 17 00 27 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 3A [16:22:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [16:22:23]wFMCommunicate OK [16:22:23]requested_item fd.num is exist - process it [16:22:23]SAM_PROTO_GetFieldsCounters [16:22:23]wFMCommunicate request_size=4 [16:22:23]MH_SAM_APDU [16:22:23]CAPDU: 80 13 00 00 [16:22:23]Write to MH i2c: E2 08 00 28 4E 80 13 00 00 00 00 00 00 F2 [16:22:23]Write i2c OK [16:22:23]MH_I2C_Read... [16:22:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:22:23]Read from MH i2c: E2 [16:22:23]MH_I2C_Read... [16:22:23]Read from MH i2c: E2 62 00 [16:22:23]MH_I2C_Read... [16:22:23]Read from MH i2c: E2 62 00 28 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 3E 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 81 [16:22:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 3E 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:22:23]wFMCommunicate OK [16:22:23]SAM_PROTO_GetFieldsCounters done [16:22:23]requested_item shift.num is exist - process it [16:22:23]requested_item shift.opened is exist - process it [16:22:23]req_shift_opened [16:22:23]FM_GetShiftState [16:22:23]SAM_PROTO_GetShiftState [16:22:23]wFMCommunicate request_size=4 [16:22:23]MH_SAM_APDU [16:22:23]CAPDU: 80 13 01 00 [16:22:23]Write to MH i2c: E2 08 00 29 4E 80 13 01 00 00 00 00 00 F4 [16:22:23]Write i2c OK [16:22:23]MH_I2C_Read... [16:22:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:23]Read from MH i2c: E2 [16:22:23]MH_I2C_Read... [16:22:23]Read from MH i2c: E2 0E 00 [16:22:23]MH_I2C_Read... [16:22:23]Read from MH i2c: E2 0E 00 29 4E 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 CF [16:22:23]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [16:22:23]wFMCommunicate OK [16:22:23]SAM_PROTO_GetShiftState done [16:22:23]FM_GetShiftState done [16:22:23]req_shift_opened done [16:22:23]requested_item shift.open_date is exist - process it [16:22:23]req_shift_open_date [16:22:23]req_shift_open_date done [16:22:23]produce_requested_data done [16:22:23]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68414,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [16:22:23]process_action_free close_receipt [16:22:23]json_value_free [16:22:23]json_value_free done [16:22:23]process_json_proto returns [16:22:23]Send response to host [16:22:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68414,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [16:22:23]free response buf [16:22:23]execute_script done [16:22:23]execute_script returns [16:22:23]free content buf [16:22:23]Sock 6.Close socket [16:22:23]Sock 6.Thread stoped [16:22:27]OFD Sender: No OFD packet to send [16:22:32]OFD Sender: No OFD packet to send [16:22:37]OFD Sender: No OFD packet to send [16:22:42]OFD Sender: No OFD packet to send [16:22:47]OFD Sender: No OFD packet to send [16:22:52]OFD Sender: No OFD packet to send [16:22:57]OFD Sender: No OFD packet to send [16:23:02]OFD Sender: No OFD packet to send [16:23:07]OFD Sender: No OFD packet to send [16:23:12]OFD Sender: No OFD packet to send [16:23:17]OFD Sender: No OFD packet to send [16:23:22]OFD Sender: No OFD packet to send [16:23:27]OFD Sender: No OFD packet to send [16:23:32]OFD Sender: No OFD packet to send [16:23:37]OFD Sender: No OFD packet to send [16:23:42]OFD Sender: No OFD packet to send [16:23:47]OFD Sender: No OFD packet to send [16:23:52]OFD Sender: No OFD packet to send [16:23:57]OFD Sender: No OFD packet to send [16:24:02]OFD Sender: No OFD packet to send [16:24:07]OFD Sender: No OFD packet to send [16:24:08]accept exits with 5 [16:24:08]New connection [16:24:08]New thread 3066543460 created [16:24:08]Thread 3066686820 joined [16:24:08]Waiting for new connection... [16:24:08] Sock 5.Parse request [16:24:08]Sock 5.Check first char [16:24:08]Sock 5.First char is OK [16:24:08]request: POST /json_proto HTTP/1.0 [16:24:08]Method: POST [16:24:08]URL: /json_proto [16:24:08]Method is POST - this is cgi request [16:24:08]url: /json_proto [16:24:08]query_string will be loaded in cgi processing [16:24:08]execute_cgi json_proto POST (null) [16:24:08]execute_cgi path=json_proto method=POST [16:24:08]POST find Content-Length [16:24:08]Host: 172.17.36.132:8080 [16:24:08]Content-Length: 843 [16:24:08]Content-Type: application/json [16:24:08] [16:24:08]POST finish read [16:24:08]Found Content-Length = 843 [16:24:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706512", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 27.070, "sum" : 2000.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 2000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:24:08]execute_script... [16:24:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706512", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 27.070, "sum" : 2000.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 2000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:24:08]POST & json_proto [16:24:08]process_json_proto [16:24:08]json parsed OK: [16:24:08]protocol is kg_v1.0 [16:24:08]action value=close_receipt [16:24:08]process_action close_receipt [16:24:08]cmd_close_receipt [16:24:08]MH_GetDate [16:24:08]Write to MH i2c: F0 00 00 2A 4E 67 [16:24:08]Write i2c OK [16:24:08]MH_I2C_Read... [16:24:08]Read from MH i2c: F0 [16:24:08]MH_I2C_Read... [16:24:08]Read from MH i2c: F0 09 00 [16:24:08]MH_I2C_Read... [16:24:08]Read from MH i2c: F0 09 00 2A 4E 00 2E EE 5D 66 B2 22 B0 64 37 [16:24:08]GetLastDocTimeStamp 1717431745 [16:24:08]current date 1717431854 [16:24:08]FM_GetShiftState [16:24:08]SAM_PROTO_GetShiftState [16:24:08]wFMCommunicate request_size=4 [16:24:08]MH_SAM_APDU [16:24:08]CAPDU: 80 13 01 00 [16:24:08]Write to MH i2c: E2 08 00 2B 4E 80 13 01 00 00 00 00 00 F6 [16:24:08]Write i2c OK [16:24:08]MH_I2C_Read... [16:24:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:24:08]Read from MH i2c: E2 [16:24:08]MH_I2C_Read... [16:24:08]Read from MH i2c: E2 0E 00 [16:24:08]MH_I2C_Read... [16:24:08]Read from MH i2c: E2 0E 00 2B 4E 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 D1 [16:24:08]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [16:24:08]wFMCommunicate OK [16:24:08]SAM_PROTO_GetShiftState done [16:24:08]FM_GetShiftState done [16:24:08]opened in 1717378033 [16:24:08]opened+sec_in_day 1717464433 [16:24:08]quantity*price = 200047 [16:24:08]sum+1 = 200048 [16:24:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.47 НСП 1% : 17.70 НДС 12% : 212.44 Наличными: 0.00 Безнал.: 2000.47 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 161 03.06.2024 16:24 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68415 ФПД: 249387020126358 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T162414&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68415&fm=249387020126358&tin=02508201610067®Number=0000000000098096&sum=200047 [16:24:09]StoreToDocumentArchive [16:24:09]shift 324 fd 68415 [16:24:09]save to /storage/0324/doc_00068415 [16:24:09]save last doc name /storage/0324/doc_00068415 to /storage/kkm_last_doc_name [16:24:09]save OK [16:24:09]Clear old archive folders... [16:24:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:24:09]tlvbuf is 003DF230 [16:24:09]SAM_PROTO_ClearQueue [16:24:09]wFMCommunicate request_size=4 [16:24:09]MH_SAM_APDU [16:24:09]CAPDU: 80 09 00 00 [16:24:09]Write to MH i2c: E2 08 00 38 4E 80 09 00 00 00 00 00 00 F8 [16:24:09]Write i2c OK [16:24:09]MH_I2C_Read... [16:24:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:24:09]Read from MH i2c: E2 [16:24:09]MH_I2C_Read... [16:24:09]Read from MH i2c: E2 03 00 [16:24:09]MH_I2C_Read... [16:24:09]Read from MH i2c: E2 03 00 38 4E 00 90 00 FA [16:24:09]RAPDU: 90 00 [16:24:09]wFMCommunicate OK [16:24:09]SAM_PROTO_ClearQueue done [16:24:09]KKMCreateOFDPacket [16:24:09]OFDProtocolAddRootSTLVToBuf [16:24:09]FM_MakeSignedData [16:24:09]FM_MakeSignedData [16:24:09]SAM_PROTO_SignData [16:24:09]wFMCommunicate request_size=4 [16:24:09]MH_SAM_APDU [16:24:09]CAPDU: 80 0D 01 02 [16:24:09]Write to MH i2c: E2 08 00 39 4E 80 0D 01 02 00 00 00 00 00 [16:24:09]Write i2c OK [16:24:09]MH_I2C_Read... [16:24:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:24:09]Read from MH i2c: E2 [16:24:09]MH_I2C_Read... [16:24:09]Read from MH i2c: E2 03 00 [16:24:09]MH_I2C_Read... [16:24:09]Read from MH i2c: E2 03 00 39 4E 00 90 00 FB [16:24:09]RAPDU: 90 00 [16:24:09]wFMCommunicate OK [16:24:09]wFMCommunicate request_size=255 [16:24:09]MH_SAM_APDU [16:24:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 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 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 2E EE 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 3F 0B 01 00 35 04 06 00 E2 [16:24:09]Write to MH i2c: E2 02 01 3A 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 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 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 2E EE 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 3F 0B 01 00 35 04 06 00 E2 00 00 DB [16:24:09]Write i2c OK [16:24:09]MH_I2C_Read... [16:24:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:24:10]Read from MH i2c: E2 [16:24:10]MH_I2C_Read... [16:24:10]Read from MH i2c: E2 03 00 [16:24:10]MH_I2C_Read... [16:24:10]Read from MH i2c: E2 03 00 3A 4E 00 90 00 FC [16:24:10]RAPDU: 90 00 [16:24:10]wFMCommunicate OK [16:24:10]wFMCommunicate request_size=10 [16:24:10]MH_SAM_APDU [16:24:10]CAPDU: 80 0D 02 02 05 D0 F0 BF 08 96 [16:24:10]Write to MH i2c: E2 0D 00 3B 4E 80 0D 02 02 05 00 D0 F0 BF 08 96 00 00 2A [16:24:10]Write i2c OK [16:24:10]MH_I2C_Read... [16:24:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:24:10]Read from MH i2c: E2 [16:24:10]MH_I2C_Read... [16:24:10]Read from MH i2c: E2 03 00 [16:24:10]MH_I2C_Read... [16:24:10]Read from MH i2c: E2 03 00 3B 4E 00 90 00 FD [16:24:10]RAPDU: 90 00 [16:24:10]wFMCommunicate OK [16:24:10]wFMCommunicate request_size=4 [16:24:10]MH_SAM_APDU [16:24:10]CAPDU: 80 0D 03 02 [16:24:10]Write to MH i2c: E2 08 00 3C 4E 80 0D 03 02 00 00 00 00 05 [16:24:10]Write i2c OK [16:24:10]MH_I2C_Read... [16:24:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:24:10]Read from MH i2c: E2 [16:24:10]MH_I2C_Read... [16:24:10]Read from MH i2c: E2 0B 00 [16:24:10]MH_I2C_Read... [16:24:10]Read from MH i2c: E2 0B 00 3C 4E 00 A4 A2 2F EF 3A B0 36 1B 90 00 A5 [16:24:10]RAPDU: A4 A2 2F EF 3A B0 36 1B 90 00 [16:24:10]wFMCommunicate OK [16:24:10]SAM_PROTO_SignData done [16:24:10]FM_MakeSignedData done [16:24:10]CreateOFDProtocolMessage [16:24:10]wFMCommunicate request_size=4 [16:24:10]MH_SAM_APDU [16:24:10]CAPDU: 80 11 00 00 [16:24:10]Write to MH i2c: E2 08 00 3D 4E 80 11 00 00 00 00 00 00 05 [16:24:10]Write i2c OK [16:24:10]MH_I2C_Read... [16:24:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:24:10]Read from MH i2c: E2 [16:24:10]MH_I2C_Read... [16:24:10]Read from MH i2c: E2 17 00 [16:24:10]MH_I2C_Read... [16:24:10]Read from MH i2c: E2 17 00 3D 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 50 [16:24:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [16:24:10]wFMCommunicate OK [16:24:10]CreateOFDProtocolMessage done [16:24:10]OFDSenderStorePacket 68415 [16:24:10]StoreOFDPacket docnum=68415 [16:24:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 11 15 07 01 ED 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 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 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 2E EE 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 3F 0B 01 00 35 04 06 00 E2 D0 F0 BF 08 96 A4 A2 2F EF 3A B0 36 1B [16:24:10]CheckFolder [16:24:10]dirname=/storage/ofd_packets [16:24:10]CheckFolder done [16:24:10]ProducePacketName [16:24:10]name=ofd_packets/00068415 [16:24:10]NVStorageSaveData ofd_packets/00068415 [16:24:10]File name is /storage/ofd_packets/00068415 [16:24:10]Write 301 bytes [16:24:10]NVStorageSaveData done [16:24:10]OFDSenderStorePacket done [16:24:10]KKMCreateOFDPacket done [16:24:10]NVStorageSaveData kkm_last_timestamp [16:24:10]File name is /storage/kkm_last_timestamp [16:24:10]Write 4 bytes [16:24:10]NVStorageSaveData done [16:24:10]ExternCall_PrintAddStr [16:24:10]wPrintStart [16:24:10]Write to MH i2c: 01 00 00 3E 4E 8C [16:24:10]Write i2c OK [16:24:10]MH_I2C_Read... [16:24:10]Read from MH i2c: 01 [16:24:10]MH_I2C_Read... [16:24:10]Read from MH i2c: 01 07 00 [16:24:10]MH_I2C_Read... [16:24:10]Read from MH i2c: 01 07 00 3E 4E 00 00 00 00 00 FF 0F A1 [16:24:10]RasterBufferAndPrint [16:24:10]line Счет N : (1)706512 [16:24:10]line ИНН: 02508201610067 [16:24:10]line Контрольно-Кассовый Чек [16:24:10]line ПРОДАЖА [16:24:10]line ТРК (МРК, ГНК) : 43 [16:24:10]line Товар: 2710124500 [16:24:10]line Аи-95-К-5 [16:24:10]line 27.070 * 73.90 [16:24:10]line = 2000.47 [16:24:10]line НДС 12% НСП 1% [16:24:10]line > о реализуемом товаре [16:24:10]line ИТОГО: 2000.47 [16:24:10]line НСП 1% : 17.70 [16:24:10]line НДС 12% : 212.44 [16:24:10]line Наличными: 0.00 [16:24:10]line Безнал.: 2000.47 [16:24:10]line Место: АЗС № 62 "Партнер Нефть" [16:24:10]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [16:24:10]line СНО: Общий режим [16:24:10]line Чек 161 03.06.2024 16:24 [16:24:10]line Смена: 324 ФФД: 1.0 [16:24:10]line ЗНМ: 0300000181 [16:24:10]line РНМ: 0000000000098096 [16:24:10]line Версия ККМ: 001 [16:24:10]line Платежная система: АКБ Кыргызстан [16:24:10]line ФМ: 0000000000965400 [16:24:10]line ФД: 68415 [16:24:10]line ФПД: 249387020126358 [16:24:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T162414&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68415&fm=249387020126358&tin=02508201610067®Number=0000000000098096&sum=200047 [16:24:10]OFD Sender: Processing packet 68415 [packets to send 26, broken 25] [16:24:10]ProducePacketName [16:24:10]name=ofd_packets/00068415 [16:24:10]OFD Sender: To server: pG, [16:24:10]CommunicateWithHost lk.salyk.kg:30040 [16:24:10]ConnectInit lk.salyk.kg [16:24:10]written 0, free lines is 4095 [16:24:10]Connected sock=7 [16:24:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 11 15 07 01 ED 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BE 69 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 6F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 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 FC 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 2E EE 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 3F 0B 01 00 35 04 06 00 E2 D0 F0 BF 08 96 A4 A2 2F EF 3A B0 36 1B [16:24:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 7F E1 47 00 5B C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 3F 0B 01 00 F4 03 04 00 2A 95 5D 66 B6 04 01 00 00 65 7E 3F 0B 9C 95 E2 42 [16:24:10]CommunicateWithHost err = 0 [16:24:10]CheckOFDResponse [16:24:10]1017 (14) - 77093643461234 [16:24:10]1041 (16) - 0000000000965400 [16:24:10]1040 (4) - 68415 [16:24:10]1012 (4) - 03.06.2024 10:04 [16:24:10]1206 (1) - 0 [16:24:10]OFD Sender: Remove packet 68415 [16:24:10]ProducePacketName [16:24:10]name=ofd_packets/00068415 [16:24:10]NVStorageDeleteData [16:24:11]Write to MH i2c: 01 00 00 68 4E B6 [16:24:11]Write i2c OK [16:24:11]MH_I2C_Read... [16:24:11]Read from MH i2c: 01 [16:24:11]MH_I2C_Read... [16:24:11]Read from MH i2c: 01 07 00 [16:24:11]MH_I2C_Read... [16:24:11]Read from MH i2c: 01 07 00 68 4E 00 00 00 00 00 EB 0C B4 [16:24:11]RasterBufferAndPrint [16:24:11]line [16:24:11]line [16:24:11]line [16:24:11]line [16:24:11]line [16:24:11]written 0, free lines is 3314 [16:24:11]MH_Cut [16:24:11]Write to MH i2c: D1 01 00 6F 4E 01 8F [16:24:11]Write i2c OK [16:24:11]MH_I2C_Read... [16:24:11]Read from MH i2c: D1 [16:24:11]MH_I2C_Read... [16:24:11]Read from MH i2c: D1 01 00 [16:24:11]MH_I2C_Read... [16:24:11]Read from MH i2c: D1 01 00 6F 4E 00 8E [16:24:11]Write to MH i2c: 01 00 00 70 4E BE [16:24:11]Write i2c OK [16:24:11]MH_I2C_Read... [16:24:11]OFD Sender: No OFD packet to send [16:24:11]*** Cut start [16:24:11]*** Partial cut [16:24:11]*** CUTSNS_PIN = 1 [16:24:11]*** CUTSNS_PIN = 0 [16:24:12]*** Brake cut motor [16:24:12]Read from MH i2c: 01 [16:24:12]MH_I2C_Read... [16:24:12]*** Stop cut motor [16:24:12]*** Cut end [16:24:12]Read from MH i2c: 01 07 00 [16:24:12]MH_I2C_Read... [16:24:12]Read from MH i2c: 01 07 00 70 4E 00 00 00 00 00 FF 0F D3 [16:24:12]process_action close_receipt done [16:24:12]requested_data is exist [16:24:12]produce_requested_data [16:24:12]requested_item fm.sn is exist - process it [16:24:12]wFMCommunicate request_size=4 [16:24:12]MH_SAM_APDU [16:24:12]CAPDU: 80 11 00 00 [16:24:12]Write to MH i2c: E2 08 00 71 4E 80 11 00 00 00 00 00 00 39 [16:24:12]Write i2c OK [16:24:12]MH_I2C_Read... [16:24:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:24:12]Read from MH i2c: E2 [16:24:12]MH_I2C_Read... [16:24:12]Read from MH i2c: E2 17 00 [16:24:12]MH_I2C_Read... [16:24:12]Read from MH i2c: E2 17 00 71 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 84 [16:24:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [16:24:12]wFMCommunicate OK [16:24:12]requested_item fd.num is exist - process it [16:24:12]SAM_PROTO_GetFieldsCounters [16:24:12]wFMCommunicate request_size=4 [16:24:12]MH_SAM_APDU [16:24:12]CAPDU: 80 13 00 00 [16:24:12]Write to MH i2c: E2 08 00 72 4E 80 13 00 00 00 00 00 00 3C [16:24:12]Write i2c OK [16:24:12]MH_I2C_Read... [16:24:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:24:12]Read from MH i2c: E2 [16:24:12]MH_I2C_Read... [16:24:12]Read from MH i2c: E2 62 00 [16:24:12]MH_I2C_Read... [16:24:12]Read from MH i2c: E2 62 00 72 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 3F 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 CF [16:24:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 3F 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:24:12]wFMCommunicate OK [16:24:12]SAM_PROTO_GetFieldsCounters done [16:24:12]requested_item shift.num is exist - process it [16:24:12]requested_item shift.opened is exist - process it [16:24:12]req_shift_opened [16:24:12]FM_GetShiftState [16:24:12]SAM_PROTO_GetShiftState [16:24:12]wFMCommunicate request_size=4 [16:24:12]MH_SAM_APDU [16:24:12]CAPDU: 80 13 01 00 [16:24:12]Write to MH i2c: E2 08 00 73 4E 80 13 01 00 00 00 00 00 3E [16:24:12]Write i2c OK [16:24:12]MH_I2C_Read... [16:24:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:24:12]Read from MH i2c: E2 [16:24:12]MH_I2C_Read... [16:24:12]Read from MH i2c: E2 0E 00 [16:24:12]MH_I2C_Read... [16:24:12]Read from MH i2c: E2 0E 00 73 4E 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 19 [16:24:12]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [16:24:12]wFMCommunicate OK [16:24:12]SAM_PROTO_GetShiftState done [16:24:12]FM_GetShiftState done [16:24:12]req_shift_opened done [16:24:12]requested_item shift.open_date is exist - process it [16:24:12]req_shift_open_date [16:24:12]req_shift_open_date done [16:24:12]produce_requested_data done [16:24:12]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68415,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [16:24:12]process_action_free close_receipt [16:24:12]json_value_free [16:24:12]json_value_free done [16:24:12]process_json_proto returns [16:24:12]Send response to host [16:24:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68415,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [16:24:12]free response buf [16:24:12]execute_script done [16:24:12]execute_script returns [16:24:12]free content buf [16:24:12]Sock 5.Close socket [16:24:12]Sock 5.Thread stoped [16:24:16]OFD Sender: No OFD packet to send [16:24:21]OFD Sender: No OFD packet to send [16:24:26]OFD Sender: No OFD packet to send [16:24:31]OFD Sender: No OFD packet to send [16:24:36]OFD Sender: No OFD packet to send [16:24:41]OFD Sender: No OFD packet to send [16:24:46]OFD Sender: No OFD packet to send [16:24:51]OFD Sender: No OFD packet to send [16:24:56]OFD Sender: No OFD packet to send [16:25:01]OFD Sender: No OFD packet to send [16:25:06]OFD Sender: No OFD packet to send [16:25:11]OFD Sender: No OFD packet to send [16:25:16]OFD Sender: No OFD packet to send [16:25:21]OFD Sender: No OFD packet to send [16:25:26]OFD Sender: No OFD packet to send [16:25:31]OFD Sender: No OFD packet to send [16:25:36]OFD Sender: No OFD packet to send [16:25:38]accept exits with 6 [16:25:38]New connection [16:25:38]New thread 3066686820 created [16:25:38]Thread 3066543460 joined [16:25:38]Waiting for new connection... [16:25:38] Sock 6.Parse request [16:25:38]Sock 6.Check first char [16:25:38]Sock 6.First char is OK [16:25:38]request: POST /json_proto HTTP/1.0 [16:25:38]Method: POST [16:25:38]URL: /json_proto [16:25:38]Method is POST - this is cgi request [16:25:38]url: /json_proto [16:25:38]query_string will be loaded in cgi processing [16:25:38]execute_cgi json_proto POST (null) [16:25:38]execute_cgi path=json_proto method=POST [16:25:38]POST find Content-Length [16:25:38]Host: 172.17.36.132:8080 [16:25:38]Content-Length: 682 [16:25:38]Content-Type: application/json [16:25:38] [16:25:38]POST finish read [16:25:38]Found Content-Length = 682 [16:25:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706513", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 13.540, "sum" : 1000.61, "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:25:38]execute_script... [16:25:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706513", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 13.540, "sum" : 1000.61, "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:25:38]POST & json_proto [16:25:38]process_json_proto [16:25:38]json parsed OK: [16:25:38]protocol is kg_v1.0 [16:25:38]action value=close_receipt [16:25:38]process_action close_receipt [16:25:38]cmd_close_receipt [16:25:38]MH_GetDate [16:25:38]Write to MH i2c: F0 00 00 74 4E B1 [16:25:38]Write i2c OK [16:25:38]MH_I2C_Read... [16:25:38]Read from MH i2c: F0 [16:25:38]MH_I2C_Read... [16:25:38]Read from MH i2c: F0 09 00 [16:25:38]MH_I2C_Read... [16:25:38]Read from MH i2c: F0 09 00 74 4E 00 88 EE 5D 66 B2 22 B0 64 DB [16:25:38]GetLastDocTimeStamp 1717431854 [16:25:38]current date 1717431944 [16:25:38]FM_GetShiftState [16:25:38]SAM_PROTO_GetShiftState [16:25:38]wFMCommunicate request_size=4 [16:25:38]MH_SAM_APDU [16:25:38]CAPDU: 80 13 01 00 [16:25:38]Write to MH i2c: E2 08 00 75 4E 80 13 01 00 00 00 00 00 40 [16:25:38]Write i2c OK [16:25:38]MH_I2C_Read... [16:25:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:25:38]Read from MH i2c: E2 [16:25:38]MH_I2C_Read... [16:25:38]Read from MH i2c: E2 0E 00 [16:25:38]MH_I2C_Read... [16:25:38]Read from MH i2c: E2 0E 00 75 4E 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 1B [16:25:38]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [16:25:38]wFMCommunicate OK [16:25:38]SAM_PROTO_GetShiftState done [16:25:38]FM_GetShiftState done [16:25:38]opened in 1717378033 [16:25:38]opened+sec_in_day 1717464433 [16:25:38]quantity*price = 100060 [16:25:38]sum+1 = 100062 [16:25:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 162 03.06.2024 16:25 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68416 ФПД: 240130408035660 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T162544&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68416&fm=240130408035660&tin=02508201610067®Number=0000000000098096&sum=100000 [16:25:39]StoreToDocumentArchive [16:25:39]shift 324 fd 68416 [16:25:39]save to /storage/0324/doc_00068416 [16:25:39]save last doc name /storage/0324/doc_00068416 to /storage/kkm_last_doc_name [16:25:39]save OK [16:25:39]Clear old archive folders... [16:25:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:25:39]tlvbuf is 003785A0 [16:25:39]SAM_PROTO_ClearQueue [16:25:39]wFMCommunicate request_size=4 [16:25:39]MH_SAM_APDU [16:25:39]CAPDU: 80 09 00 00 [16:25:39]Write to MH i2c: E2 08 00 82 4E 80 09 00 00 00 00 00 00 42 [16:25:39]Write i2c OK [16:25:39]MH_I2C_Read... [16:25:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:25:39]Read from MH i2c: E2 [16:25:39]MH_I2C_Read... [16:25:39]Read from MH i2c: E2 03 00 [16:25:39]MH_I2C_Read... [16:25:39]Read from MH i2c: E2 03 00 82 4E 00 90 00 44 [16:25:39]RAPDU: 90 00 [16:25:39]wFMCommunicate OK [16:25:39]SAM_PROTO_ClearQueue done [16:25:39]KKMCreateOFDPacket [16:25:39]OFDProtocolAddRootSTLVToBuf [16:25:39]FM_MakeSignedData [16:25:39]FM_MakeSignedData [16:25:39]SAM_PROTO_SignData [16:25:39]wFMCommunicate request_size=4 [16:25:39]MH_SAM_APDU [16:25:39]CAPDU: 80 0D 01 02 [16:25:39]Write to MH i2c: E2 08 00 83 4E 80 0D 01 02 00 00 00 00 4A [16:25:39]Write i2c OK [16:25:39]MH_I2C_Read... [16:25:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:25:39]Read from MH i2c: E2 [16:25:39]MH_I2C_Read... [16:25:39]Read from MH i2c: E2 03 00 [16:25:39]MH_I2C_Read... [16:25:39]Read from MH i2c: E2 03 00 83 4E 00 90 00 45 [16:25:39]RAPDU: 90 00 [16:25:39]wFMCommunicate OK [16:25:39]wFMCommunicate request_size=255 [16:25:39]MH_SAM_APDU [16:25:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 88 EE 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 40 0B 01 00 35 04 06 00 DA [16:25:39]Write to MH i2c: E2 02 01 84 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 88 EE 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 40 0B 01 00 35 04 06 00 DA 00 00 84 [16:25:39]Write i2c OK [16:25:39]MH_I2C_Read... [16:25:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:25:40]Read from MH i2c: E2 [16:25:40]MH_I2C_Read... [16:25:40]Read from MH i2c: E2 03 00 [16:25:40]MH_I2C_Read... [16:25:40]Read from MH i2c: E2 03 00 84 4E 00 90 00 46 [16:25:40]RAPDU: 90 00 [16:25:40]wFMCommunicate OK [16:25:40]wFMCommunicate request_size=10 [16:25:40]MH_SAM_APDU [16:25:40]CAPDU: 80 0D 02 02 05 65 B7 AB B5 4C [16:25:40]Write to MH i2c: E2 0D 00 85 4E 80 0D 02 02 05 00 65 B7 AB B5 4C 00 00 1F [16:25:40]Write i2c OK [16:25:40]MH_I2C_Read... [16:25:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:25:40]Read from MH i2c: E2 [16:25:40]MH_I2C_Read... [16:25:40]Read from MH i2c: E2 03 00 [16:25:40]MH_I2C_Read... [16:25:40]Read from MH i2c: E2 03 00 85 4E 00 90 00 47 [16:25:40]RAPDU: 90 00 [16:25:40]wFMCommunicate OK [16:25:40]wFMCommunicate request_size=4 [16:25:40]MH_SAM_APDU [16:25:40]CAPDU: 80 0D 03 02 [16:25:40]Write to MH i2c: E2 08 00 86 4E 80 0D 03 02 00 00 00 00 4F [16:25:40]Write i2c OK [16:25:40]MH_I2C_Read... [16:25:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:25:40]Read from MH i2c: E2 [16:25:40]MH_I2C_Read... [16:25:40]Read from MH i2c: E2 0B 00 [16:25:40]MH_I2C_Read... [16:25:40]Read from MH i2c: E2 0B 00 86 4E 00 84 A1 74 44 D8 A1 60 6E 90 00 74 [16:25:40]RAPDU: 84 A1 74 44 D8 A1 60 6E 90 00 [16:25:40]wFMCommunicate OK [16:25:40]SAM_PROTO_SignData done [16:25:40]FM_MakeSignedData done [16:25:40]CreateOFDProtocolMessage [16:25:40]wFMCommunicate request_size=4 [16:25:40]MH_SAM_APDU [16:25:40]CAPDU: 80 11 00 00 [16:25:40]Write to MH i2c: E2 08 00 87 4E 80 11 00 00 00 00 00 00 4F [16:25:40]Write i2c OK [16:25:40]MH_I2C_Read... [16:25:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:40]Read from MH i2c: E2 [16:25:40]MH_I2C_Read... [16:25:40]Read from MH i2c: E2 17 00 [16:25:40]MH_I2C_Read... [16:25:40]Read from MH i2c: E2 17 00 87 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 9A [16:25:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [16:25:40]wFMCommunicate OK [16:25:40]CreateOFDProtocolMessage done [16:25:40]OFDSenderStorePacket 68416 [16:25:40]StoreOFDPacket docnum=68416 [16:25:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 E9 2D 07 01 BA 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 88 EE 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 40 0B 01 00 35 04 06 00 DA 65 B7 AB B5 4C 84 A1 74 44 D8 A1 60 6E [16:25:40]CheckFolder [16:25:40]dirname=/storage/ofd_packets [16:25:40]CheckFolder done [16:25:40]ProducePacketName [16:25:40]name=ofd_packets/00068416 [16:25:40]NVStorageSaveData ofd_packets/00068416 [16:25:40]File name is /storage/ofd_packets/00068416 [16:25:40]Write 301 bytes [16:25:40]NVStorageSaveData done [16:25:40]OFDSenderStorePacket done [16:25:40]KKMCreateOFDPacket done [16:25:40]NVStorageSaveData kkm_last_timestamp [16:25:40]File name is /storage/kkm_last_timestamp [16:25:40]Write 4 bytes [16:25:40]NVStorageSaveData done [16:25:40]ExternCall_PrintAddStr [16:25:40]wPrintStart [16:25:40]Write to MH i2c: 01 00 00 88 4E D6 [16:25:40]Write i2c OK [16:25:40]MH_I2C_Read... [16:25:40]Read from MH i2c: 01 [16:25:40]MH_I2C_Read... [16:25:40]Read from MH i2c: 01 07 00 [16:25:40]MH_I2C_Read... [16:25:40]Read from MH i2c: 01 07 00 88 4E 00 00 00 00 00 FF 0F EB [16:25:40]RasterBufferAndPrint [16:25:40]line Счет N : (1)706513 [16:25:40]line ИНН: 02508201610067 [16:25:40]line Контрольно-Кассовый Чек [16:25:40]line ПРОДАЖА [16:25:40]line ТРК (МРК, ГНК) : 24 [16:25:40]line Товар: 2710124500 [16:25:40]line Аи-95-К-5 [16:25:40]line 13.540 * 73.90 [16:25:40]line = 1000.61 [16:25:40]line НДС 12% НСП 1% [16:25:40]line > о реализуемом товаре [16:25:40]line ОКРУГЛЕНИЕ: -0.61 [16:25:40]line ИТОГО: 1000.00 [16:25:40]line Внесено: 1000.00 [16:25:40]line СДАЧА: 0.00 [16:25:40]line НСП 1% : 8.85 [16:25:40]line НДС 12% : 106.26 [16:25:40]line Наличными: 1000.00 [16:25:40]line Безнал.: 0.00 [16:25:40]line Место: АЗС № 62 "Партнер Нефть" [16:25:40]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [16:25:40]line СНО: Общий режим [16:25:40]line Чек 162 03.06.2024 16:25 [16:25:40]line Смена: 324 ФФД: 1.0 [16:25:40]line ЗНМ: 0300000181 [16:25:40]line РНМ: 0000000000098096 [16:25:40]line Версия ККМ: 001 [16:25:40]line ФМ: 0000000000965400 [16:25:40]line ФД: 68416 [16:25:40]line ФПД: 240130408035660 [16:25:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T162544&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68416&fm=240130408035660&tin=02508201610067®Number=0000000000098096&sum=100000 [16:25:40]OFD Sender: Processing packet 68416 [packets to send 26, broken 25] [16:25:40]ProducePacketName [16:25:40]name=ofd_packets/00068416 [16:25:40]OFD Sender: To server: pG, [16:25:40]CommunicateWithHost lk.salyk.kg:30040 [16:25:40]ConnectInit lk.salyk.kg [16:25:40]written 0, free lines is 4095 [16:25:40]Connected sock=7 [16:25:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 E9 2D 07 01 BA 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 88 EE 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 40 0B 01 00 35 04 06 00 DA 65 B7 AB B5 4C 84 A1 74 44 D8 A1 60 6E [16:25:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 85 D4 47 00 D7 A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 40 0B 01 00 F4 03 04 00 84 95 5D 66 B6 04 01 00 00 55 35 34 C8 86 39 94 DB [16:25:40]CommunicateWithHost err = 0 [16:25:40]CheckOFDResponse [16:25:40]1017 (14) - 77093643461234 [16:25:40]1041 (16) - 0000000000965400 [16:25:40]1040 (4) - 68416 [16:25:40]1012 (4) - 03.06.2024 10:05 [16:25:40]1206 (1) - 0 [16:25:40]OFD Sender: Remove packet 68416 [16:25:40]ProducePacketName [16:25:40]name=ofd_packets/00068416 [16:25:40]NVStorageDeleteData [16:25:40]Write to MH i2c: 01 00 00 B3 4E 01 [16:25:40]Write i2c OK [16:25:40]MH_I2C_Read... [16:25:40]Read from MH i2c: 01 [16:25:40]MH_I2C_Read... [16:25:40]Read from MH i2c: 01 07 00 [16:25:40]MH_I2C_Read... [16:25:40]Read from MH i2c: 01 07 00 B3 4E 00 00 00 00 00 D9 0C ED [16:25:40]RasterBufferAndPrint [16:25:40]line [16:25:40]line [16:25:40]line [16:25:40]line [16:25:40]line [16:25:40]written 0, free lines is 3296 [16:25:40]MH_Cut [16:25:40]Write to MH i2c: D1 01 00 BA 4E 01 DA [16:25:40]Write i2c OK [16:25:40]MH_I2C_Read... [16:25:40]Read from MH i2c: D1 [16:25:40]MH_I2C_Read... [16:25:40]Read from MH i2c: D1 01 00 [16:25:41]MH_I2C_Read... [16:25:41]Read from MH i2c: D1 01 00 BA 4E 00 D9 [16:25:41]Write to MH i2c: 01 00 00 BB 4E 09 [16:25:41]Write i2c OK [16:25:41]MH_I2C_Read... [16:25:41]OFD Sender: No OFD packet to send [16:25:41]*** Cut start [16:25:41]*** Partial cut [16:25:41]*** CUTSNS_PIN = 1 [16:25:41]*** CUTSNS_PIN = 0 [16:25:42]*** Brake cut motor [16:25:42]Read from MH i2c: 01 [16:25:42]MH_I2C_Read... [16:25:42]*** Stop cut motor [16:25:42]*** Cut end [16:25:42]Read from MH i2c: 01 07 00 [16:25:42]MH_I2C_Read... [16:25:42]Read from MH i2c: 01 07 00 BB 4E 00 00 00 00 00 FF 0F 1E [16:25:42]process_action close_receipt done [16:25:42]requested_data is exist [16:25:42]produce_requested_data [16:25:42]requested_item fm.sn is exist - process it [16:25:42]wFMCommunicate request_size=4 [16:25:42]MH_SAM_APDU [16:25:42]CAPDU: 80 11 00 00 [16:25:42]Write to MH i2c: E2 08 00 BC 4E 80 11 00 00 00 00 00 00 84 [16:25:42]Write i2c OK [16:25:42]MH_I2C_Read... [16:25:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:42]Read from MH i2c: E2 [16:25:42]MH_I2C_Read... [16:25:42]Read from MH i2c: E2 17 00 [16:25:42]MH_I2C_Read... [16:25:42]Read from MH i2c: E2 17 00 BC 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 CF [16:25:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [16:25:42]wFMCommunicate OK [16:25:42]requested_item fd.num is exist - process it [16:25:42]SAM_PROTO_GetFieldsCounters [16:25:42]wFMCommunicate request_size=4 [16:25:42]MH_SAM_APDU [16:25:42]CAPDU: 80 13 00 00 [16:25:42]Write to MH i2c: E2 08 00 BD 4E 80 13 00 00 00 00 00 00 87 [16:25:42]Write i2c OK [16:25:42]MH_I2C_Read... [16:25:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:25:42]Read from MH i2c: E2 [16:25:42]MH_I2C_Read... [16:25:42]Read from MH i2c: E2 62 00 [16:25:42]MH_I2C_Read... [16:25:42]Read from MH i2c: E2 62 00 BD 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 40 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 1E [16:25:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 40 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:25:42]wFMCommunicate OK [16:25:42]SAM_PROTO_GetFieldsCounters done [16:25:42]requested_item shift.num is exist - process it [16:25:42]requested_item shift.opened is exist - process it [16:25:42]req_shift_opened [16:25:42]FM_GetShiftState [16:25:42]SAM_PROTO_GetShiftState [16:25:42]wFMCommunicate request_size=4 [16:25:42]MH_SAM_APDU [16:25:42]CAPDU: 80 13 01 00 [16:25:42]Write to MH i2c: E2 08 00 BE 4E 80 13 01 00 00 00 00 00 89 [16:25:42]Write i2c OK [16:25:42]MH_I2C_Read... [16:25:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:25:42]Read from MH i2c: E2 [16:25:42]MH_I2C_Read... [16:25:42]Read from MH i2c: E2 0E 00 [16:25:42]MH_I2C_Read... [16:25:42]Read from MH i2c: E2 0E 00 BE 4E 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 64 [16:25:42]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [16:25:42]wFMCommunicate OK [16:25:42]SAM_PROTO_GetShiftState done [16:25:42]FM_GetShiftState done [16:25:42]req_shift_opened done [16:25:42]requested_item shift.open_date is exist - process it [16:25:42]req_shift_open_date [16:25:42]req_shift_open_date done [16:25:42]produce_requested_data done [16:25:42]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68416,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [16:25:42]process_action_free close_receipt [16:25:42]json_value_free [16:25:42]json_value_free done [16:25:42]process_json_proto returns [16:25:42]Send response to host [16:25:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68416,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [16:25:42]free response buf [16:25:42]execute_script done [16:25:42]execute_script returns [16:25:42]free content buf [16:25:42]Sock 6.Close socket [16:25:42]Sock 6.Thread stoped [16:25:46]OFD Sender: No OFD packet to send [16:25:51]OFD Sender: No OFD packet to send [16:25:56]OFD Sender: No OFD packet to send [16:26:01]OFD Sender: No OFD packet to send [16:26:06]OFD Sender: No OFD packet to send [16:26:11]OFD Sender: No OFD packet to send [16:26:12]accept exits with 5 [16:26:12]New connection [16:26:12]New thread 3066543460 created [16:26:12]Thread 3066686820 joined [16:26:12]Waiting for new connection... [16:26:12] Sock 5.Parse request [16:26:12]Sock 5.Check first char [16:26:12]Sock 5.First char is OK [16:26:12]request: POST /json_proto HTTP/1.0 [16:26:12]Method: POST [16:26:12]URL: /json_proto [16:26:12]Method is POST - this is cgi request [16:26:12]url: /json_proto [16:26:12]query_string will be loaded in cgi processing [16:26:12]execute_cgi json_proto POST (null) [16:26:12]execute_cgi path=json_proto method=POST [16:26:12]POST find Content-Length [16:26:12]Host: 172.17.36.132:8080 [16:26:12]Content-Length: 1183 [16:26:12]Content-Type: application/json [16:26:12] [16:26:12]POST finish read [16:26:12]Found Content-Length = 1183 [16:26:12]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706514\u000A03.06.2024 16:03\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 63\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 20.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 1338.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A91351\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:26:12]execute_script... [16:26:12]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706514\u000A03.06.2024 16:03\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 63\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 20.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 1338.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A91351\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:26:12]POST & json_proto [16:26:12]process_json_proto [16:26:12]json parsed OK: [16:26:12]protocol is kg_v1.0 [16:26:12]action value=print_text [16:26:12]process_action print_text [16:26:12]cmd_print_text [16:26:12]ExternCall_PrintAddStr [16:26:12]wPrintStart [16:26:12]Write to MH i2c: 01 00 00 BF 4E 0D [16:26:12]Write i2c OK [16:26:12]MH_I2C_Read... [16:26:12]Read from MH i2c: 01 [16:26:12]MH_I2C_Read... [16:26:12]Read from MH i2c: 01 07 00 [16:26:12]MH_I2C_Read... [16:26:12]Read from MH i2c: 01 07 00 BF 4E 00 00 00 00 00 FF 0F 22 [16:26:12]RasterBufferAndPrint [16:26:12]line *****ТОВАРНЫЙ ЧЕК***** [16:26:12]line АЗС 62 [16:26:12]line Партнер нефть [16:26:12]line 02508201610067 [16:26:12]line Кассир : Балаев А. [16:26:12]line Счет N : (1)706514 [16:26:12]line 03.06.2024 16:03 [16:26:12]line ПРОДАЖА [16:26:12]line ТРК (МРК, ГНК): 63 [16:26:12]line Вид ГСМ : 2710124130 [16:26:12]line Аи-92-К-4 [16:26:12]line 20.000 x 66.90 [16:26:12]line ИТОГ: 1338.00 [16:26:12]line Тип оплаты: Талоны: Топливная Карта [16:26:12]line 91351 [16:26:12]line ______________________ [16:26:12]line (подпись) [16:26:12]written 0, free lines is 4095 [16:26:13]Write to MH i2c: 01 00 00 D3 4E 21 [16:26:13]Write i2c OK [16:26:13]MH_I2C_Read... [16:26:13]Read from MH i2c: 01 [16:26:13]MH_I2C_Read... [16:26:13]Read from MH i2c: 01 07 00 [16:26:13]MH_I2C_Read... [16:26:13]Read from MH i2c: 01 07 00 D3 4E 00 00 00 00 00 11 0E 47 [16:26:13]RasterBufferAndPrint [16:26:13]line [16:26:13]line [16:26:13]line [16:26:13]line [16:26:13]line [16:26:13]written 0, free lines is 3602 [16:26:13]MH_Cut [16:26:13]Write to MH i2c: D1 01 00 DA 4E 01 FA [16:26:13]Write i2c OK [16:26:13]MH_I2C_Read... [16:26:13]Read from MH i2c: D1 [16:26:13]MH_I2C_Read... [16:26:13]Read from MH i2c: D1 01 00 [16:26:13]MH_I2C_Read... [16:26:13]Read from MH i2c: D1 01 00 DA 4E 00 F9 [16:26:13]Write to MH i2c: 01 00 00 DB 4E 29 [16:26:13]Write i2c OK [16:26:13]MH_I2C_Read... [16:26:13]*** Cut start [16:26:13]*** Partial cut [16:26:13]*** CUTSNS_PIN = 1 [16:26:13]*** CUTSNS_PIN = 0 [16:26:13]*** Brake cut motor [16:26:14]Read from MH i2c: 01 [16:26:14]MH_I2C_Read... [16:26:14]*** Stop cut motor [16:26:14]*** Cut end [16:26:14]Read from MH i2c: 01 07 00 [16:26:14]MH_I2C_Read... [16:26:14]Read from MH i2c: 01 07 00 DB 4E 00 00 00 00 00 FF 0F 3E [16:26:14]process_action print_text done [16:26:14]requested_data is exist [16:26:14]produce_requested_data [16:26:14]requested_item fm.sn is exist - process it [16:26:14]wFMCommunicate request_size=4 [16:26:14]MH_SAM_APDU [16:26:14]CAPDU: 80 11 00 00 [16:26:14]Write to MH i2c: E2 08 00 DC 4E 80 11 00 00 00 00 00 00 A4 [16:26:14]Write i2c OK [16:26:14]MH_I2C_Read... [16:26:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:26:14]Read from MH i2c: E2 [16:26:14]MH_I2C_Read... [16:26:14]Read from MH i2c: E2 17 00 [16:26:14]MH_I2C_Read... [16:26:14]Read from MH i2c: E2 17 00 DC 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 EF [16:26:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [16:26:14]wFMCommunicate OK [16:26:14]requested_item fd.num is exist - process it [16:26:14]SAM_PROTO_GetFieldsCounters [16:26:14]wFMCommunicate request_size=4 [16:26:14]MH_SAM_APDU [16:26:14]CAPDU: 80 13 00 00 [16:26:14]Write to MH i2c: E2 08 00 DD 4E 80 13 00 00 00 00 00 00 A7 [16:26:14]Write i2c OK [16:26:14]MH_I2C_Read... [16:26:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:26:14]Read from MH i2c: E2 [16:26:14]MH_I2C_Read... [16:26:14]Read from MH i2c: E2 62 00 [16:26:14]MH_I2C_Read... [16:26:14]Read from MH i2c: E2 62 00 DD 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 40 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 3E [16:26:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 40 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:26:14]wFMCommunicate OK [16:26:14]SAM_PROTO_GetFieldsCounters done [16:26:14]requested_item shift.num is exist - process it [16:26:14]requested_item shift.opened is exist - process it [16:26:14]req_shift_opened [16:26:14]FM_GetShiftState [16:26:14]SAM_PROTO_GetShiftState [16:26:14]wFMCommunicate request_size=4 [16:26:14]MH_SAM_APDU [16:26:14]CAPDU: 80 13 01 00 [16:26:14]Write to MH i2c: E2 08 00 DE 4E 80 13 01 00 00 00 00 00 A9 [16:26:14]Write i2c OK [16:26:14]MH_I2C_Read... [16:26:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:26:14]Read from MH i2c: E2 [16:26:14]MH_I2C_Read... [16:26:14]Read from MH i2c: E2 0E 00 [16:26:14]MH_I2C_Read... [16:26:14]Read from MH i2c: E2 0E 00 DE 4E 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 84 [16:26:14]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [16:26:14]wFMCommunicate OK [16:26:14]SAM_PROTO_GetShiftState done [16:26:14]FM_GetShiftState done [16:26:14]req_shift_opened done [16:26:14]requested_item shift.open_date is exist - process it [16:26:14]req_shift_open_date [16:26:14]req_shift_open_date done [16:26:14]produce_requested_data done [16:26:14]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68416,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [16:26:14]process_action_free print_text [16:26:14]json_value_free [16:26:14]json_value_free done [16:26:14]process_json_proto returns [16:26:14]Send response to host [16:26:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68416,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [16:26:14]free response buf [16:26:14]execute_script done [16:26:14]execute_script returns [16:26:14]free content buf [16:26:14]Sock 5.Close socket [16:26:14]Sock 5.Thread stoped [16:26:16]OFD Sender: No OFD packet to send [16:26:21]OFD Sender: No OFD packet to send [16:26:26]OFD Sender: No OFD packet to send [16:26:31]OFD Sender: No OFD packet to send [16:26:36]OFD Sender: No OFD packet to send [16:26:41]OFD Sender: No OFD packet to send [16:26:46]OFD Sender: No OFD packet to send [16:26:51]OFD Sender: No OFD packet to send [16:26:56]OFD Sender: No OFD packet to send [16:27:01]OFD Sender: No OFD packet to send [16:27:06]accept exits with 6 [16:27:06]New connection [16:27:06]New thread 3066686820 created [16:27:06]Thread 3066543460 joined [16:27:06]Waiting for new connection... [16:27:06] Sock 6.Parse request [16:27:06]Sock 6.Check first char [16:27:06]Sock 6.First char is OK [16:27:06]request: POST /json_proto HTTP/1.0 [16:27:06]Method: POST [16:27:06]URL: /json_proto [16:27:06]Method is POST - this is cgi request [16:27:06]url: /json_proto [16:27:06]query_string will be loaded in cgi processing [16:27:06]execute_cgi json_proto POST (null) [16:27:06]execute_cgi path=json_proto method=POST [16:27:06]POST find Content-Length [16:27:06]Host: 172.17.36.132:8080 [16:27:06]Content-Length: 677 [16:27:06]Content-Type: application/json [16:27:06] [16:27:06]POST finish read [16:27:06]Found Content-Length = 677 [16:27:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706515", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:27:06]execute_script... [16:27:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706515", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:27:06]POST & json_proto [16:27:06]process_json_proto [16:27:06]json parsed OK: [16:27:06]protocol is kg_v1.0 [16:27:06]action value=close_receipt [16:27:06]process_action close_receipt [16:27:06]cmd_close_receipt [16:27:06]MH_GetDate [16:27:06]Write to MH i2c: F0 00 00 DF 4E 1C [16:27:06]Write i2c OK [16:27:06]MH_I2C_Read... [16:27:06]Read from MH i2c: F0 [16:27:06]MH_I2C_Read... [16:27:06]Read from MH i2c: F0 09 00 [16:27:06]MH_I2C_Read... [16:27:06]Read from MH i2c: F0 09 00 DF 4E 00 E0 EE 5D 66 B2 22 B0 64 9E [16:27:06]GetLastDocTimeStamp 1717431944 [16:27:06]current date 1717432032 [16:27:06]FM_GetShiftState [16:27:06]SAM_PROTO_GetShiftState [16:27:06]wFMCommunicate request_size=4 [16:27:06]MH_SAM_APDU [16:27:06]CAPDU: 80 13 01 00 [16:27:06]Write to MH i2c: E2 08 00 E0 4E 80 13 01 00 00 00 00 00 AB [16:27:06]Write i2c OK [16:27:06]MH_I2C_Read... [16:27:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:27:06]Read from MH i2c: E2 [16:27:06]MH_I2C_Read... [16:27:06]Read from MH i2c: E2 0E 00 [16:27:06]MH_I2C_Read... [16:27:06]Read from MH i2c: E2 0E 00 E0 4E 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 86 [16:27:06]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [16:27:06]wFMCommunicate OK [16:27:06]SAM_PROTO_GetShiftState done [16:27:06]FM_GetShiftState done [16:27:06]opened in 1717378033 [16:27:06]opened+sec_in_day 1717464433 [16:27:06]quantity*price = 60009 [16:27:06]sum+1 = 60010 [16:27:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 163 03.06.2024 16:27 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68417 ФПД: 146540098989931 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T162712&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68417&fm=146540098989931&tin=02508201610067®Number=0000000000098096&sum=60000 [16:27:07]StoreToDocumentArchive [16:27:07]shift 324 fd 68417 [16:27:07]save to /storage/0324/doc_00068417 [16:27:07]save last doc name /storage/0324/doc_00068417 to /storage/kkm_last_doc_name [16:27:07]save OK [16:27:07]Clear old archive folders... [16:27:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:27:07]tlvbuf is 005AD360 [16:27:07]SAM_PROTO_ClearQueue [16:27:07]wFMCommunicate request_size=4 [16:27:07]MH_SAM_APDU [16:27:07]CAPDU: 80 09 00 00 [16:27:07]Write to MH i2c: E2 08 00 ED 4E 80 09 00 00 00 00 00 00 AD [16:27:07]Write i2c OK [16:27:07]MH_I2C_Read... [16:27:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:27:07]Read from MH i2c: E2 [16:27:07]MH_I2C_Read... [16:27:07]Read from MH i2c: E2 03 00 [16:27:07]MH_I2C_Read... [16:27:07]Read from MH i2c: E2 03 00 ED 4E 00 90 00 AF [16:27:07]RAPDU: 90 00 [16:27:07]wFMCommunicate OK [16:27:07]SAM_PROTO_ClearQueue done [16:27:07]KKMCreateOFDPacket [16:27:07]OFDProtocolAddRootSTLVToBuf [16:27:07]FM_MakeSignedData [16:27:07]FM_MakeSignedData [16:27:07]SAM_PROTO_SignData [16:27:07]wFMCommunicate request_size=4 [16:27:07]MH_SAM_APDU [16:27:07]CAPDU: 80 0D 01 02 [16:27:07]Write to MH i2c: E2 08 00 EE 4E 80 0D 01 02 00 00 00 00 B5 [16:27:07]Write i2c OK [16:27:07]MH_I2C_Read... [16:27:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:27:07]Read from MH i2c: E2 [16:27:07]MH_I2C_Read... [16:27:07]Read from MH i2c: E2 03 00 [16:27:07]MH_I2C_Read... [16:27:07]Read from MH i2c: E2 03 00 EE 4E 00 90 00 B0 [16:27:07]RAPDU: 90 00 [16:27:07]wFMCommunicate OK [16:27:07]wFMCommunicate request_size=255 [16:27:07]MH_SAM_APDU [16:27:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 E0 EE 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 41 0B 01 00 35 04 06 00 85 [16:27:07]Write to MH i2c: E2 02 01 EF 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 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 E0 EE 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 41 0B 01 00 35 04 06 00 85 00 00 6A [16:27:07]Write i2c OK [16:27:07]MH_I2C_Read... [16:27:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:27:07]Read from MH i2c: E2 [16:27:07]MH_I2C_Read... [16:27:07]Read from MH i2c: E2 03 00 [16:27:07]MH_I2C_Read... [16:27:07]Read from MH i2c: E2 03 00 EF 4E 00 90 00 B1 [16:27:07]RAPDU: 90 00 [16:27:07]wFMCommunicate OK [16:27:07]wFMCommunicate request_size=10 [16:27:07]MH_SAM_APDU [16:27:07]CAPDU: 80 0D 02 02 05 47 06 8B AF 6B [16:27:07]Write to MH i2c: E2 0D 00 F0 4E 80 0D 02 02 05 00 47 06 8B AF 6B 00 00 B4 [16:27:07]Write i2c OK [16:27:07]MH_I2C_Read... [16:27:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:27:07]Read from MH i2c: E2 [16:27:07]MH_I2C_Read... [16:27:07]Read from MH i2c: E2 03 00 [16:27:07]MH_I2C_Read... [16:27:07]Read from MH i2c: E2 03 00 F0 4E 00 90 00 B2 [16:27:07]RAPDU: 90 00 [16:27:07]wFMCommunicate OK [16:27:07]wFMCommunicate request_size=4 [16:27:07]MH_SAM_APDU [16:27:07]CAPDU: 80 0D 03 02 [16:27:07]Write to MH i2c: E2 08 00 F1 4E 80 0D 03 02 00 00 00 00 BA [16:27:07]Write i2c OK [16:27:07]MH_I2C_Read... [16:27:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:27:07]Read from MH i2c: E2 [16:27:07]MH_I2C_Read... [16:27:07]Read from MH i2c: E2 0B 00 [16:27:07]MH_I2C_Read... [16:27:07]Read from MH i2c: E2 0B 00 F1 4E 00 92 9E F6 06 93 95 2B 5F 90 00 99 [16:27:07]RAPDU: 92 9E F6 06 93 95 2B 5F 90 00 [16:27:07]wFMCommunicate OK [16:27:07]SAM_PROTO_SignData done [16:27:07]FM_MakeSignedData done [16:27:07]CreateOFDProtocolMessage [16:27:07]wFMCommunicate request_size=4 [16:27:07]MH_SAM_APDU [16:27:07]CAPDU: 80 11 00 00 [16:27:07]Write to MH i2c: E2 08 00 F2 4E 80 11 00 00 00 00 00 00 BA [16:27:07]Write i2c OK [16:27:07]MH_I2C_Read... [16:27:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:27:07]Read from MH i2c: E2 [16:27:07]MH_I2C_Read... [16:27:07]Read from MH i2c: E2 17 00 [16:27:07]MH_I2C_Read... [16:27:07]Read from MH i2c: E2 17 00 F2 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 05 [16:27:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [16:27:07]wFMCommunicate OK [16:27:07]CreateOFDProtocolMessage done [16:27:07]OFDSenderStorePacket 68417 [16:27:07]StoreOFDPacket docnum=68417 [16:27:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 2B DC 07 01 E9 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 E0 EE 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 41 0B 01 00 35 04 06 00 85 47 06 8B AF 6B 92 9E F6 06 93 95 2B 5F [16:27:07]CheckFolder [16:27:07]dirname=/storage/ofd_packets [16:27:07]CheckFolder done [16:27:07]ProducePacketName [16:27:07]name=ofd_packets/00068417 [16:27:07]NVStorageSaveData ofd_packets/00068417 [16:27:07]File name is /storage/ofd_packets/00068417 [16:27:07]Write 301 bytes [16:27:07]NVStorageSaveData done [16:27:07]OFDSenderStorePacket done [16:27:07]KKMCreateOFDPacket done [16:27:07]NVStorageSaveData kkm_last_timestamp [16:27:07]File name is /storage/kkm_last_timestamp [16:27:07]Write 4 bytes [16:27:07]NVStorageSaveData done [16:27:07]ExternCall_PrintAddStr [16:27:07]wPrintStart [16:27:07]Write to MH i2c: 01 00 00 F3 4E 41 [16:27:07]Write i2c OK [16:27:07]MH_I2C_Read... [16:27:07]Read from MH i2c: 01 [16:27:07]MH_I2C_Read... [16:27:07]Read from MH i2c: 01 07 00 [16:27:07]MH_I2C_Read... [16:27:07]Read from MH i2c: 01 07 00 F3 4E 00 00 00 00 00 FF 0F 56 [16:27:07]RasterBufferAndPrint [16:27:07]line Счет N : (1)706515 [16:27:07]line ИНН: 02508201610067 [16:27:07]line Контрольно-Кассовый Чек [16:27:07]line ПРОДАЖА [16:27:07]line ТРК (МРК, ГНК) : 42 [16:27:07]line Товар: 2710124130 [16:27:07]line Аи-92-К-4 [16:27:07]line 8.970 * 66.90 [16:27:07]line = 600.09 [16:27:07]line НДС 12% НСП 1% [16:27:07]line > о реализуемом товаре [16:27:07]line ОКРУГЛЕНИЕ: -0.09 [16:27:07]line ИТОГО: 600.00 [16:27:07]line Внесено: 600.00 [16:27:07]line СДАЧА: 0.00 [16:27:07]line НСП 1% : 5.31 [16:27:07]line НДС 12% : 63.73 [16:27:07]line Наличными: 600.00 [16:27:07]line Безнал.: 0.00 [16:27:07]line Место: АЗС № 62 "Партнер Нефть" [16:27:07]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [16:27:07]line СНО: Общий режим [16:27:07]line Чек 163 03.06.2024 16:27 [16:27:07]line Смена: 324 ФФД: 1.0 [16:27:07]line ЗНМ: 0300000181 [16:27:07]line РНМ: 0000000000098096 [16:27:07]line Версия ККМ: 001 [16:27:07]line ФМ: 0000000000965400 [16:27:07]line ФД: 68417 [16:27:07]line ФПД: 146540098989931 [16:27:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T162712&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68417&fm=146540098989931&tin=02508201610067®Number=0000000000098096&sum=60000 [16:27:08]OFD Sender: Processing packet 68417 [packets to send 26, broken 25] [16:27:08]ProducePacketName [16:27:08]name=ofd_packets/00068417 [16:27:08]OFD Sender: To server: pG, [16:27:08]CommunicateWithHost lk.salyk.kg:30040 [16:27:08]ConnectInit lk.salyk.kg [16:27:08]written 0, free lines is 4095 [16:27:08]Connected sock=7 [16:27:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 2B DC 07 01 E9 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 E0 EE 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 41 0B 01 00 35 04 06 00 85 47 06 8B AF 6B 92 9E F6 06 93 95 2B 5F [16:27:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 CB 6F 47 00 79 E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 41 0B 01 00 F4 03 04 00 DB 95 5D 66 B6 04 01 00 00 CB 31 C0 B6 BF 3B 4F EB [16:27:08]CommunicateWithHost err = 0 [16:27:08]CheckOFDResponse [16:27:08]1017 (14) - 77093643461234 [16:27:08]1041 (16) - 0000000000965400 [16:27:08]1040 (4) - 68417 [16:27:08]1012 (4) - 03.06.2024 10:07 [16:27:08]1206 (1) - 0 [16:27:08]OFD Sender: Remove packet 68417 [16:27:08]ProducePacketName [16:27:08]name=ofd_packets/00068417 [16:27:08]NVStorageDeleteData [16:27:08]Write to MH i2c: 01 00 00 1E 4F 6D [16:27:08]Write i2c OK [16:27:08]MH_I2C_Read... [16:27:08]Read from MH i2c: 01 [16:27:08]MH_I2C_Read... [16:27:08]Read from MH i2c: 01 07 00 [16:27:08]MH_I2C_Read... [16:27:08]Read from MH i2c: 01 07 00 1E 4F 00 00 00 00 00 E2 0C 62 [16:27:08]RasterBufferAndPrint [16:27:08]line [16:27:08]line [16:27:08]line [16:27:08]line [16:27:08]line [16:27:08]written 0, free lines is 3304 [16:27:08]MH_Cut [16:27:08]Write to MH i2c: D1 01 00 25 4F 01 46 [16:27:08]Write i2c OK [16:27:08]MH_I2C_Read... [16:27:08]Read from MH i2c: D1 [16:27:08]MH_I2C_Read... [16:27:08]Read from MH i2c: D1 01 00 [16:27:08]MH_I2C_Read... [16:27:08]Read from MH i2c: D1 01 00 25 4F 00 45 [16:27:08]Write to MH i2c: 01 00 00 26 4F 75 [16:27:08]Write i2c OK [16:27:08]MH_I2C_Read... [16:27:08]OFD Sender: No OFD packet to send [16:27:09]*** Cut start [16:27:09]*** Partial cut [16:27:09]*** CUTSNS_PIN = 1 [16:27:09]*** CUTSNS_PIN = 0 [16:27:09]*** Brake cut motor [16:27:09]Read from MH i2c: 01 [16:27:09]MH_I2C_Read... [16:27:09]*** Stop cut motor [16:27:09]*** Cut end [16:27:09]Read from MH i2c: 01 07 00 [16:27:09]MH_I2C_Read... [16:27:09]Read from MH i2c: 01 07 00 26 4F 00 00 00 00 00 FF 0F 8A [16:27:09]process_action close_receipt done [16:27:09]requested_data is exist [16:27:09]produce_requested_data [16:27:09]requested_item fm.sn is exist - process it [16:27:09]wFMCommunicate request_size=4 [16:27:09]MH_SAM_APDU [16:27:09]CAPDU: 80 11 00 00 [16:27:09]Write to MH i2c: E2 08 00 27 4F 80 11 00 00 00 00 00 00 F0 [16:27:09]Write i2c OK [16:27:09]MH_I2C_Read... [16:27:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:27:10]Read from MH i2c: E2 [16:27:10]MH_I2C_Read... [16:27:10]Read from MH i2c: E2 17 00 [16:27:10]MH_I2C_Read... [16:27:10]Read from MH i2c: E2 17 00 27 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 3B [16:27:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [16:27:10]wFMCommunicate OK [16:27:10]requested_item fd.num is exist - process it [16:27:10]SAM_PROTO_GetFieldsCounters [16:27:10]wFMCommunicate request_size=4 [16:27:10]MH_SAM_APDU [16:27:10]CAPDU: 80 13 00 00 [16:27:10]Write to MH i2c: E2 08 00 28 4F 80 13 00 00 00 00 00 00 F3 [16:27:10]Write i2c OK [16:27:10]MH_I2C_Read... [16:27:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:27:10]Read from MH i2c: E2 [16:27:10]MH_I2C_Read... [16:27:10]Read from MH i2c: E2 62 00 [16:27:10]MH_I2C_Read... [16:27:10]Read from MH i2c: E2 62 00 28 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 41 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 8E [16:27:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 41 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:27:10]wFMCommunicate OK [16:27:10]SAM_PROTO_GetFieldsCounters done [16:27:10]requested_item shift.num is exist - process it [16:27:10]requested_item shift.opened is exist - process it [16:27:10]req_shift_opened [16:27:10]FM_GetShiftState [16:27:10]SAM_PROTO_GetShiftState [16:27:10]wFMCommunicate request_size=4 [16:27:10]MH_SAM_APDU [16:27:10]CAPDU: 80 13 01 00 [16:27:10]Write to MH i2c: E2 08 00 29 4F 80 13 01 00 00 00 00 00 F5 [16:27:10]Write i2c OK [16:27:10]MH_I2C_Read... [16:27:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:27:10]Read from MH i2c: E2 [16:27:10]MH_I2C_Read... [16:27:10]Read from MH i2c: E2 0E 00 [16:27:10]MH_I2C_Read... [16:27:10]Read from MH i2c: E2 0E 00 29 4F 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 D0 [16:27:10]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [16:27:10]wFMCommunicate OK [16:27:10]SAM_PROTO_GetShiftState done [16:27:10]FM_GetShiftState done [16:27:10]req_shift_opened done [16:27:10]requested_item shift.open_date is exist - process it [16:27:10]req_shift_open_date [16:27:10]req_shift_open_date done [16:27:10]produce_requested_data done [16:27:10]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68417,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [16:27:10]process_action_free close_receipt [16:27:10]json_value_free [16:27:10]json_value_free done [16:27:10]process_json_proto returns [16:27:10]Send response to host [16:27:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68417,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [16:27:10]free response buf [16:27:10]execute_script done [16:27:10]execute_script returns [16:27:10]free content buf [16:27:10]Sock 6.Close socket [16:27:10]Sock 6.Thread stoped [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:46]accept exits with 5 [16:27:46]New connection [16:27:46]New thread 3066543460 created [16:27:46]Thread 3066686820 joined [16:27:46]Waiting for new connection... [16:27:46] Sock 5.Parse request [16:27:46]Sock 5.Check first char [16:27:46]Sock 5.First char is OK [16:27:46]request: POST /json_proto HTTP/1.0 [16:27:46]Method: POST [16:27:46]URL: /json_proto [16:27:46]Method is POST - this is cgi request [16:27:46]url: /json_proto [16:27:46]query_string will be loaded in cgi processing [16:27:46]execute_cgi json_proto POST (null) [16:27:46]execute_cgi path=json_proto method=POST [16:27:46]POST find Content-Length [16:27:46]Host: 172.17.36.132:8080 [16:27:46]Content-Length: 682 [16:27:46]Content-Type: application/json [16:27:46] [16:27:46]POST finish read [16:27:46]Found Content-Length = 682 [16:27:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706516", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 4.120, "sum" : 300.35, "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" ] } } [16:27:46]execute_script... [16:27:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706516", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 4.120, "sum" : 300.35, "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" ] } } [16:27:46]POST & json_proto [16:27:46]process_json_proto [16:27:46]json parsed OK: [16:27:46]protocol is kg_v1.0 [16:27:46]action value=close_receipt [16:27:46]process_action close_receipt [16:27:46]cmd_close_receipt [16:27:46]MH_GetDate [16:27:46]Write to MH i2c: F0 00 00 2A 4F 68 [16:27:46]Write i2c OK [16:27:46]MH_I2C_Read... [16:27:46]Read from MH i2c: F0 [16:27:46]MH_I2C_Read... [16:27:46]Read from MH i2c: F0 09 00 [16:27:46]MH_I2C_Read... [16:27:46]Read from MH i2c: F0 09 00 2A 4F 00 08 EF 5D 66 B2 22 B0 64 13 [16:27:46]GetLastDocTimeStamp 1717432032 [16:27:46]current date 1717432072 [16:27:46]FM_GetShiftState [16:27:46]SAM_PROTO_GetShiftState [16:27:46]wFMCommunicate request_size=4 [16:27:46]MH_SAM_APDU [16:27:46]CAPDU: 80 13 01 00 [16:27:46]Write to MH i2c: E2 08 00 2B 4F 80 13 01 00 00 00 00 00 F7 [16:27:46]Write i2c OK [16:27:46]MH_I2C_Read... [16:27:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:27:46]Read from MH i2c: E2 [16:27:46]MH_I2C_Read... [16:27:46]Read from MH i2c: E2 0E 00 [16:27:46]MH_I2C_Read... [16:27:46]Read from MH i2c: E2 0E 00 2B 4F 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 D2 [16:27:46]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [16:27:46]wFMCommunicate OK [16:27:46]SAM_PROTO_GetShiftState done [16:27:46]FM_GetShiftState done [16:27:46]opened in 1717378033 [16:27:46]opened+sec_in_day 1717464433 [16:27:46]quantity*price = 30034 [16:27:46]sum+1 = 30036 [16:27:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 164 03.06.2024 16:27 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68418 ФПД: 28976112966601 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T162752&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68418&fm=28976112966601&tin=02508201610067®Number=0000000000098096&sum=30000 [16:27:47]StoreToDocumentArchive [16:27:47]shift 324 fd 68418 [16:27:47]save to /storage/0324/doc_00068418 [16:27:47]save last doc name /storage/0324/doc_00068418 to /storage/kkm_last_doc_name [16:27:47]save OK [16:27:47]Clear old archive folders... [16:27:47]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:27:47]tlvbuf is 00265A60 [16:27:47]SAM_PROTO_ClearQueue [16:27:47]wFMCommunicate request_size=4 [16:27:47]MH_SAM_APDU [16:27:47]CAPDU: 80 09 00 00 [16:27:47]Write to MH i2c: E2 08 00 38 4F 80 09 00 00 00 00 00 00 F9 [16:27:47]Write i2c OK [16:27:47]MH_I2C_Read... [16:27:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:27:47]Read from MH i2c: E2 [16:27:47]MH_I2C_Read... [16:27:47]Read from MH i2c: E2 03 00 [16:27:47]MH_I2C_Read... [16:27:47]Read from MH i2c: E2 03 00 38 4F 00 90 00 FB [16:27:47]RAPDU: 90 00 [16:27:47]wFMCommunicate OK [16:27:47]SAM_PROTO_ClearQueue done [16:27:47]KKMCreateOFDPacket [16:27:47]OFDProtocolAddRootSTLVToBuf [16:27:47]FM_MakeSignedData [16:27:47]FM_MakeSignedData [16:27:47]SAM_PROTO_SignData [16:27:47]wFMCommunicate request_size=4 [16:27:47]MH_SAM_APDU [16:27:47]CAPDU: 80 0D 01 02 [16:27:47]Write to MH i2c: E2 08 00 39 4F 80 0D 01 02 00 00 00 00 01 [16:27:47]Write i2c OK [16:27:47]MH_I2C_Read... [16:27:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:27:47]Read from MH i2c: E2 [16:27:47]MH_I2C_Read... [16:27:47]Read from MH i2c: E2 03 00 [16:27:47]MH_I2C_Read... [16:27:47]Read from MH i2c: E2 03 00 39 4F 00 90 00 FC [16:27:47]RAPDU: 90 00 [16:27:47]wFMCommunicate OK [16:27:47]wFMCommunicate request_size=255 [16:27:47]MH_SAM_APDU [16:27:47]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 34 FF 03 08 00 03 18 10 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 08 EF 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 42 0B 01 00 35 04 06 00 [16:27:47]Write to MH i2c: E2 02 01 3A 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 34 FF 03 08 00 03 18 10 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 08 EF 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 42 0B 01 00 35 04 06 00 00 00 92 [16:27:47]Write i2c OK [16:27:47]MH_I2C_Read... [16:27:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:27:48]Read from MH i2c: E2 [16:27:48]MH_I2C_Read... [16:27:48]Read from MH i2c: E2 03 00 [16:27:48]MH_I2C_Read... [16:27:48]Read from MH i2c: E2 03 00 3A 4F 00 90 00 FD [16:27:48]RAPDU: 90 00 [16:27:48]wFMCommunicate OK [16:27:48]wFMCommunicate request_size=11 [16:27:48]MH_SAM_APDU [16:27:48]CAPDU: 80 0D 02 02 06 1A 5A 86 EB 9B C9 [16:27:48]Write to MH i2c: E2 0E 00 3B 4F 80 0D 02 02 06 00 1A 5A 86 EB 9B C9 00 00 59 [16:27:48]Write i2c OK [16:27:48]MH_I2C_Read... [16:27:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:27:48]Read from MH i2c: E2 [16:27:48]MH_I2C_Read... [16:27:48]Read from MH i2c: E2 03 00 [16:27:48]MH_I2C_Read... [16:27:48]Read from MH i2c: E2 03 00 3B 4F 00 90 00 FE [16:27:48]RAPDU: 90 00 [16:27:48]wFMCommunicate OK [16:27:48]wFMCommunicate request_size=4 [16:27:48]MH_SAM_APDU [16:27:48]CAPDU: 80 0D 03 02 [16:27:48]Write to MH i2c: E2 08 00 3C 4F 80 0D 03 02 00 00 00 00 06 [16:27:48]Write i2c OK [16:27:48]MH_I2C_Read... [16:27:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:27:48]Read from MH i2c: E2 [16:27:48]MH_I2C_Read... [16:27:48]Read from MH i2c: E2 0B 00 [16:27:48]MH_I2C_Read... [16:27:48]Read from MH i2c: E2 0B 00 3C 4F 00 4F 42 2A AF BE A2 6B B7 90 00 F3 [16:27:48]RAPDU: 4F 42 2A AF BE A2 6B B7 90 00 [16:27:48]wFMCommunicate OK [16:27:48]SAM_PROTO_SignData done [16:27:48]FM_MakeSignedData done [16:27:48]CreateOFDProtocolMessage [16:27:48]wFMCommunicate request_size=4 [16:27:48]MH_SAM_APDU [16:27:48]CAPDU: 80 11 00 00 [16:27:48]Write to MH i2c: E2 08 00 3D 4F 80 11 00 00 00 00 00 00 06 [16:27:48]Write i2c OK [16:27:48]MH_I2C_Read... [16:27:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:27:48]Read from MH i2c: E2 [16:27:48]MH_I2C_Read... [16:27:48]Read from MH i2c: E2 17 00 [16:27:48]MH_I2C_Read... [16:27:48]Read from MH i2c: E2 17 00 3D 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 51 [16:27:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [16:27:48]wFMCommunicate OK [16:27:48]CreateOFDProtocolMessage done [16:27:48]OFDSenderStorePacket 68418 [16:27:48]StoreOFDPacket docnum=68418 [16:27:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 16 0E 08 01 53 55 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 34 FF 03 08 00 03 18 10 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 08 EF 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 42 0B 01 00 35 04 06 00 1A 5A 86 EB 9B C9 4F 42 2A AF BE A2 6B B7 [16:27:48]CheckFolder [16:27:48]dirname=/storage/ofd_packets [16:27:48]CheckFolder done [16:27:48]ProducePacketName [16:27:48]name=ofd_packets/00068418 [16:27:48]NVStorageSaveData ofd_packets/00068418 [16:27:48]File name is /storage/ofd_packets/00068418 [16:27:48]Write 302 bytes [16:27:48]NVStorageSaveData done [16:27:48]OFDSenderStorePacket done [16:27:48]KKMCreateOFDPacket done [16:27:48]NVStorageSaveData kkm_last_timestamp [16:27:48]File name is /storage/kkm_last_timestamp [16:27:48]Write 4 bytes [16:27:48]NVStorageSaveData done [16:27:48]ExternCall_PrintAddStr [16:27:48]wPrintStart [16:27:48]Write to MH i2c: 01 00 00 3E 4F 8D [16:27:48]Write i2c OK [16:27:48]MH_I2C_Read... [16:27:48]Read from MH i2c: 01 [16:27:48]MH_I2C_Read... [16:27:48]Read from MH i2c: 01 07 00 [16:27:48]MH_I2C_Read... [16:27:48]Read from MH i2c: 01 07 00 3E 4F 00 00 00 00 00 FF 0F A2 [16:27:48]RasterBufferAndPrint [16:27:48]line Счет N : (1)706516 [16:27:48]line ИНН: 02508201610067 [16:27:48]line Контрольно-Кассовый Чек [16:27:48]line ПРОДАЖА [16:27:48]line ТРК (МРК, ГНК) : 51 [16:27:48]line Товар: 2710194210 [16:27:48]line ДТ(л)-К-4 [16:27:48]line 4.120 * 72.90 [16:27:48]line = 300.35 [16:27:48]line НДС 12% НСП 1% [16:27:48]line > о реализуемом товаре [16:27:48]line ОКРУГЛЕНИЕ: -0.35 [16:27:48]line ИТОГО: 300.00 [16:27:48]line Внесено: 300.00 [16:27:48]line СДАЧА: 0.00 [16:27:48]line НСП 1% : 2.66 [16:27:48]line НДС 12% : 31.90 [16:27:48]line Наличными: 300.00 [16:27:48]line Безнал.: 0.00 [16:27:48]line Место: АЗС № 62 "Партнер Нефть" [16:27:48]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [16:27:48]line СНО: Общий режим [16:27:48]line Чек 164 03.06.2024 16:27 [16:27:48]line Смена: 324 ФФД: 1.0 [16:27:48]line ЗНМ: 0300000181 [16:27:48]line РНМ: 0000000000098096 [16:27:48]line Версия ККМ: 001 [16:27:48]line ФМ: 0000000000965400 [16:27:48]line ФД: 68418 [16:27:48]line ФПД: 28976112966601 [16:27:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T162752&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68418&fm=28976112966601&tin=02508201610067®Number=0000000000098096&sum=30000 [16:27:48]OFD Sender: Processing packet 68418 [packets to send 26, broken 25] [16:27:48]ProducePacketName [16:27:48]name=ofd_packets/00068418 [16:27:48]OFD Sender: To server: pG, [16:27:48]CommunicateWithHost lk.salyk.kg:30040 [16:27:48]ConnectInit lk.salyk.kg [16:27:48]written 0, free lines is 4095 [16:27:48]Connected sock=7 [16:27:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 16 0E 08 01 53 55 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 34 FF 03 08 00 03 18 10 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 53 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 08 EF 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 42 0B 01 00 35 04 06 00 1A 5A 86 EB 9B C9 4F 42 2A AF BE A2 6B B7 [16:27:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 B1 D6 47 00 A1 DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 42 0B 01 00 F4 03 04 00 04 96 5D 66 B6 04 01 00 00 7E 5D 17 10 CD ED 92 0B [16:27:48]CommunicateWithHost err = 0 [16:27:48]CheckOFDResponse [16:27:48]1017 (14) - 77093643461234 [16:27:48]1041 (16) - 0000000000965400 [16:27:48]1040 (4) - 68418 [16:27:48]1012 (4) - 03.06.2024 10:08 [16:27:48]1206 (1) - 0 [16:27:48]OFD Sender: Remove packet 68418 [16:27:48]ProducePacketName [16:27:48]name=ofd_packets/00068418 [16:27:48]NVStorageDeleteData [16:27:48]Write to MH i2c: 01 00 00 69 4F B8 [16:27:48]Write i2c OK [16:27:48]MH_I2C_Read... [16:27:48]Read from MH i2c: 01 [16:27:48]MH_I2C_Read... [16:27:48]Read from MH i2c: 01 07 00 [16:27:48]MH_I2C_Read... [16:27:48]Read from MH i2c: 01 07 00 69 4F 00 00 00 00 00 F2 0C BD [16:27:48]RasterBufferAndPrint [16:27:48]line [16:27:48]line [16:27:48]line [16:27:48]line [16:27:48]line [16:27:48]written 0, free lines is 3320 [16:27:48]MH_Cut [16:27:48]Write to MH i2c: D1 01 00 70 4F 01 91 [16:27:48]Write i2c OK [16:27:48]MH_I2C_Read... [16:27:48]Read from MH i2c: D1 [16:27:48]MH_I2C_Read... [16:27:48]Read from MH i2c: D1 01 00 [16:27:48]MH_I2C_Read... [16:27:48]Read from MH i2c: D1 01 00 70 4F 00 90 [16:27:48]Write to MH i2c: 01 00 00 71 4F C0 [16:27:48]Write i2c OK [16:27:48]MH_I2C_Read... [16:27:49]OFD Sender: No OFD packet to send [16:27:49]*** Cut start [16:27:49]*** Partial cut [16:27:49]*** CUTSNS_PIN = 1 [16:27:49]*** CUTSNS_PIN = 0 [16:27:50]*** Brake cut motor [16:27:50]Read from MH i2c: 01 [16:27:50]MH_I2C_Read... [16:27:50]*** Stop cut motor [16:27:50]*** Cut end [16:27:50]Read from MH i2c: 01 07 00 [16:27:50]MH_I2C_Read... [16:27:50]Read from MH i2c: 01 07 00 71 4F 00 00 00 00 00 FF 0F D5 [16:27:50]process_action close_receipt done [16:27:50]requested_data is exist [16:27:50]produce_requested_data [16:27:50]requested_item fm.sn is exist - process it [16:27:50]wFMCommunicate request_size=4 [16:27:50]MH_SAM_APDU [16:27:50]CAPDU: 80 11 00 00 [16:27:50]Write to MH i2c: E2 08 00 72 4F 80 11 00 00 00 00 00 00 3B [16:27:50]Write i2c OK [16:27:50]MH_I2C_Read... [16:27:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:27:50]Read from MH i2c: E2 [16:27:50]MH_I2C_Read... [16:27:50]Read from MH i2c: E2 17 00 [16:27:50]MH_I2C_Read... [16:27:50]Read from MH i2c: E2 17 00 72 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 86 [16:27:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [16:27:50]wFMCommunicate OK [16:27:50]requested_item fd.num is exist - process it [16:27:50]SAM_PROTO_GetFieldsCounters [16:27:50]wFMCommunicate request_size=4 [16:27:50]MH_SAM_APDU [16:27:50]CAPDU: 80 13 00 00 [16:27:50]Write to MH i2c: E2 08 00 73 4F 80 13 00 00 00 00 00 00 3E [16:27:50]Write i2c OK [16:27:50]MH_I2C_Read... [16:27:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:27:50]Read from MH i2c: E2 [16:27:50]MH_I2C_Read... [16:27:50]Read from MH i2c: E2 62 00 [16:27:50]MH_I2C_Read... [16:27:50]Read from MH i2c: E2 62 00 73 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 42 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [16:27:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 42 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:27:50]wFMCommunicate OK [16:27:50]SAM_PROTO_GetFieldsCounters done [16:27:50]requested_item shift.num is exist - process it [16:27:50]requested_item shift.opened is exist - process it [16:27:50]req_shift_opened [16:27:50]FM_GetShiftState [16:27:50]SAM_PROTO_GetShiftState [16:27:50]wFMCommunicate request_size=4 [16:27:50]MH_SAM_APDU [16:27:50]CAPDU: 80 13 01 00 [16:27:50]Write to MH i2c: E2 08 00 74 4F 80 13 01 00 00 00 00 00 40 [16:27:50]Write i2c OK [16:27:50]MH_I2C_Read... [16:27:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:27:50]Read from MH i2c: E2 [16:27:50]MH_I2C_Read... [16:27:50]Read from MH i2c: E2 0E 00 [16:27:50]MH_I2C_Read... [16:27:50]Read from MH i2c: E2 0E 00 74 4F 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 1B [16:27:50]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [16:27:50]wFMCommunicate OK [16:27:50]SAM_PROTO_GetShiftState done [16:27:50]FM_GetShiftState done [16:27:50]req_shift_opened done [16:27:50]requested_item shift.open_date is exist - process it [16:27:50]req_shift_open_date [16:27:50]req_shift_open_date done [16:27:50]produce_requested_data done [16:27:50]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68418,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [16:27:50]process_action_free close_receipt [16:27:50]json_value_free [16:27:50]json_value_free done [16:27:50]process_json_proto returns [16:27:50]Send response to host [16:27:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68418,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [16:27:50]free response buf [16:27:50]execute_script done [16:27:50]execute_script returns [16:27:50]free content buf [16:27:50]Sock 5.Close socket [16:27:50]Sock 5.Thread stoped [16:27:54]OFD Sender: No OFD packet to send [16:27:59]OFD Sender: No OFD packet to send [16:28:04]OFD Sender: No OFD packet to send [16:28:09]OFD Sender: No OFD packet to send [16:28:14]OFD Sender: No OFD packet to send [16:28:19]OFD Sender: No OFD packet to send [16:28:24]OFD Sender: No OFD packet to send [16:28:29]OFD Sender: No OFD packet to send [16:28:34]OFD Sender: No OFD packet to send [16:28:39]OFD Sender: No OFD packet to send [16:28:44]OFD Sender: No OFD packet to send [16:28:49]OFD Sender: No OFD packet to send [16:28:54]OFD Sender: No OFD packet to send [16:28:59]OFD Sender: No OFD packet to send [16:29:04]OFD Sender: No OFD packet to send [16:29:09]OFD Sender: No OFD packet to send [16:29:14]OFD Sender: No OFD packet to send [16:29:19]OFD Sender: No OFD packet to send [16:29:24]OFD Sender: No OFD packet to send [16:29:29]OFD Sender: No OFD packet to send [16:29:34]OFD Sender: No OFD packet to send [16:29:39]OFD Sender: No OFD packet to send [16:29:44]OFD Sender: No OFD packet to send [16:29:49]OFD Sender: No OFD packet to send [16:29:54]OFD Sender: No OFD packet to send [16:29:59]OFD Sender: No OFD packet to send [16:30:04]OFD Sender: No OFD packet to send [16:30:09]OFD Sender: No OFD packet to send [16:30:14]OFD Sender: No OFD packet to send [16:30:19]OFD Sender: No OFD packet to send [16:30:24]OFD Sender: No OFD packet to send [16:30:29]OFD Sender: No OFD packet to send [16:30:34]OFD Sender: No OFD packet to send [16:30:39]OFD Sender: No OFD packet to send [16:30:44]OFD Sender: No OFD packet to send [16:30:49]OFD Sender: No OFD packet to send [16:30:54]OFD Sender: No OFD packet to send [16:30:59]OFD Sender: No OFD packet to send [16:31:04]OFD Sender: No OFD packet to send [16:31:09]OFD Sender: No OFD packet to send [16:31:14]OFD Sender: No OFD packet to send [16:31:19]OFD Sender: No OFD packet to send [16:31:24]OFD Sender: No OFD packet to send [16:31:29]OFD Sender: No OFD packet to send [16:31:34]OFD Sender: No OFD packet to send [16:31:39]OFD Sender: No OFD packet to send [16:31:44]OFD Sender: No OFD packet to send [16:31:49]OFD Sender: No OFD packet to send [16:31:54]OFD Sender: No OFD packet to send [16:31:59]OFD Sender: No OFD packet to send [16:32:04]OFD Sender: No OFD packet to send [16:32:09]OFD Sender: No OFD packet to send [16:32:14]OFD Sender: No OFD packet to send [16:32:19]OFD Sender: No OFD packet to send [16:32:24]OFD Sender: No OFD packet to send [16:32:29]OFD Sender: No OFD packet to send [16:32:34]OFD Sender: No OFD packet to send [16:32:39]OFD Sender: No OFD packet to send [16:32:44]OFD Sender: No OFD packet to send [16:32:49]OFD Sender: No OFD packet to send [16:32:54]OFD Sender: No OFD packet to send [16:32:59]OFD Sender: No OFD packet to send [16:33:04]OFD Sender: No OFD packet to send [16:33:09]OFD Sender: No OFD packet to send [16:33:14]OFD Sender: No OFD packet to send [16:33:19]OFD Sender: No OFD packet to send [16:33:24]OFD Sender: No OFD packet to send [16:33:29]OFD Sender: No OFD packet to send [16:33:34]OFD Sender: No OFD packet to send [16:33:39]OFD Sender: No OFD packet to send [16:33:44]OFD Sender: No OFD packet to send [16:33:49]OFD Sender: No OFD packet to send [16:33:54]OFD Sender: No OFD packet to send [16:33:59]OFD Sender: No OFD packet to send [16:34:04]OFD Sender: No OFD packet to send [16:34:09]OFD Sender: No OFD packet to send [16:34:14]OFD Sender: No OFD packet to send [16:34:19]OFD Sender: No OFD packet to send [16:34:24]OFD Sender: No OFD packet to send [16:34:29]OFD Sender: No OFD packet to send [16:34:34]OFD Sender: No OFD packet to send [16:34:39]OFD Sender: No OFD packet to send [16:34:44]OFD Sender: No OFD packet to send [16:34:49]OFD Sender: No OFD packet to send [16:34:54]OFD Sender: No OFD packet to send [16:34:59]OFD Sender: No OFD packet to send [16:35:04]OFD Sender: No OFD packet to send [16:35:09]OFD Sender: No OFD packet to send [16:35:14]OFD Sender: No OFD packet to send [16:35:19]OFD Sender: No OFD packet to send [16:35:24]OFD Sender: No OFD packet to send [16:35:29]OFD Sender: No OFD packet to send [16:35:34]OFD Sender: No OFD packet to send [16:35:39]OFD Sender: No OFD packet to send [16:35:44]OFD Sender: No OFD packet to send [16:35:49]OFD Sender: No OFD packet to send [16:35:54]OFD Sender: No OFD packet to send [16:35:59]OFD Sender: No OFD packet to send [16:36:04]OFD Sender: No OFD packet to send [16:36:09]OFD Sender: No OFD packet to send [16:36:14]OFD Sender: No OFD packet to send [16:36:19]OFD Sender: No OFD packet to send [16:36:24]OFD Sender: No OFD packet to send [16:36:29]OFD Sender: No OFD packet to send [16:36:34]OFD Sender: No OFD packet to send [16:36:39]OFD Sender: No OFD packet to send [16:36:44]OFD Sender: No OFD packet to send [16:36:49]OFD Sender: No OFD packet to send [16:36:54]OFD Sender: No OFD packet to send [16:36:59]OFD Sender: No OFD packet to send [16:37:04]OFD Sender: No OFD packet to send [16:37:09]OFD Sender: No OFD packet to send [16:37:14]OFD Sender: No OFD packet to send [16:37:19]OFD Sender: No OFD packet to send [16:37:24]OFD Sender: No OFD packet to send [16:37:29]OFD Sender: No OFD packet to send [16:37:34]OFD Sender: No OFD packet to send [16:37:39]OFD Sender: No OFD packet to send [16:37:44]OFD Sender: No OFD packet to send [16:37:49]OFD Sender: No OFD packet to send [16:37:54]OFD Sender: No OFD packet to send [16:37:59]OFD Sender: No OFD packet to send [16:38:04]OFD Sender: No OFD packet to send [16:38:09]OFD Sender: No OFD packet to send [16:38:14]OFD Sender: No OFD packet to send [16:38:19]OFD Sender: No OFD packet to send [16:38:24]OFD Sender: No OFD packet to send [16:38:29]OFD Sender: No OFD packet to send [16:38:34]OFD Sender: No OFD packet to send [16:38:39]OFD Sender: No OFD packet to send [16:38:44]OFD Sender: No OFD packet to send [16:38:49]OFD Sender: No OFD packet to send [16:38:54]OFD Sender: No OFD packet to send [16:38:59]OFD Sender: No OFD packet to send [16:39:04]OFD Sender: No OFD packet to send [16:39:09]OFD Sender: No OFD packet to send [16:39:14]OFD Sender: No OFD packet to send [16:39:19]OFD Sender: No OFD packet to send [16:39:24]OFD Sender: No OFD packet to send [16:39:29]OFD Sender: No OFD packet to send [16:39:34]OFD Sender: No OFD packet to send [16:39:39]OFD Sender: No OFD packet to send [16:39:44]OFD Sender: No OFD packet to send [16:39:49]OFD Sender: No OFD packet to send [16:39:54]OFD Sender: No OFD packet to send [16:39:59]OFD Sender: No OFD packet to send [16:40:04]OFD Sender: No OFD packet to send [16:40:09]OFD Sender: No OFD packet to send [16:40:14]OFD Sender: No OFD packet to send [16:40:18]accept exits with 6 [16:40:18]New connection [16:40:18]New thread 3066686820 created [16:40:18]Thread 3066543460 joined [16:40:18]Waiting for new connection... [16:40:18] Sock 6.Parse request [16:40:18]Sock 6.Check first char [16:40:18]Sock 6.First char is OK [16:40:18]request: POST /json_proto HTTP/1.0 [16:40:18]Method: POST [16:40:18]URL: /json_proto [16:40:18]Method is POST - this is cgi request [16:40:18]url: /json_proto [16:40:18]query_string will be loaded in cgi processing [16:40:18]execute_cgi json_proto POST (null) [16:40:18]execute_cgi path=json_proto method=POST [16:40:18]POST find Content-Length [16:40:18]Host: 172.17.36.132:8080 [16:40:18]Content-Length: 843 [16:40:18]Content-Type: application/json [16:40:18] [16:40:18]POST finish read [16:40:18]Found Content-Length = 843 [16:40:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706517", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 13.540, "sum" : 1000.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.61 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:40:18]execute_script... [16:40: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)706517", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 13.540, "sum" : 1000.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.61 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:40:18]POST & json_proto [16:40:18]process_json_proto [16:40:18]json parsed OK: [16:40:18]protocol is kg_v1.0 [16:40:18]action value=close_receipt [16:40:18]process_action close_receipt [16:40:18]cmd_close_receipt [16:40:18]MH_GetDate [16:40:18]Write to MH i2c: F0 00 00 75 4F B3 [16:40:18]Write i2c OK [16:40:18]MH_I2C_Read... [16:40:18]Read from MH i2c: F0 [16:40:18]MH_I2C_Read... [16:40:18]Read from MH i2c: F0 09 00 [16:40:18]MH_I2C_Read... [16:40:18]Read from MH i2c: F0 09 00 75 4F 00 F8 F1 5D 66 B2 22 B0 64 50 [16:40:18]GetLastDocTimeStamp 1717432072 [16:40:18]current date 1717432824 [16:40:18]FM_GetShiftState [16:40:18]SAM_PROTO_GetShiftState [16:40:18]wFMCommunicate request_size=4 [16:40:18]MH_SAM_APDU [16:40:18]CAPDU: 80 13 01 00 [16:40:18]Write to MH i2c: E2 08 00 76 4F 80 13 01 00 00 00 00 00 42 [16:40:18]Write i2c OK [16:40:18]MH_I2C_Read... [16:40:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:40:18]Read from MH i2c: E2 [16:40:18]MH_I2C_Read... [16:40:18]Read from MH i2c: E2 0E 00 [16:40:18]MH_I2C_Read... [16:40:18]Read from MH i2c: E2 0E 00 76 4F 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 1D [16:40:18]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [16:40:18]wFMCommunicate OK [16:40:18]SAM_PROTO_GetShiftState done [16:40:18]FM_GetShiftState done [16:40:18]opened in 1717378033 [16:40:18]opened+sec_in_day 1717464433 [16:40:18]quantity*price = 100060 [16:40:18]sum+1 = 100062 [16:40:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.61 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.61 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 165 03.06.2024 16:40 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68419 ФПД: 234168323606036 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T164024&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68419&fm=234168323606036&tin=02508201610067®Number=0000000000098096&sum=100061 [16:40:19]StoreToDocumentArchive [16:40:19]shift 324 fd 68419 [16:40:19]save to /storage/0324/doc_00068419 [16:40:19]save last doc name /storage/0324/doc_00068419 to /storage/kkm_last_doc_name [16:40:19]save OK [16:40:19]Clear old archive folders... [16:40:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:40:19]tlvbuf is 004D9EE0 [16:40:19]SAM_PROTO_ClearQueue [16:40:19]wFMCommunicate request_size=4 [16:40:19]MH_SAM_APDU [16:40:19]CAPDU: 80 09 00 00 [16:40:19]Write to MH i2c: E2 08 00 83 4F 80 09 00 00 00 00 00 00 44 [16:40:19]Write i2c OK [16:40:19]MH_I2C_Read... [16:40:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:40:19]Read from MH i2c: E2 [16:40:19]MH_I2C_Read... [16:40:19]Read from MH i2c: E2 03 00 [16:40:19]MH_I2C_Read... [16:40:19]Read from MH i2c: E2 03 00 83 4F 00 90 00 46 [16:40:19]RAPDU: 90 00 [16:40:19]wFMCommunicate OK [16:40:19]SAM_PROTO_ClearQueue done [16:40:19]KKMCreateOFDPacket [16:40:19]OFDProtocolAddRootSTLVToBuf [16:40:19]FM_MakeSignedData [16:40:19]FM_MakeSignedData [16:40:19]SAM_PROTO_SignData [16:40:19]wFMCommunicate request_size=4 [16:40:19]MH_SAM_APDU [16:40:19]CAPDU: 80 0D 01 02 [16:40:19]Write to MH i2c: E2 08 00 84 4F 80 0D 01 02 00 00 00 00 4C [16:40:19]Write i2c OK [16:40:19]MH_I2C_Read... [16:40:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:40:19]Read from MH i2c: E2 [16:40:19]MH_I2C_Read... [16:40:19]Read from MH i2c: E2 03 00 [16:40:19]MH_I2C_Read... [16:40:19]Read from MH i2c: E2 03 00 84 4F 00 90 00 47 [16:40:19]RAPDU: 90 00 [16:40:19]wFMCommunicate OK [16:40:19]wFMCommunicate request_size=255 [16:40:19]MH_SAM_APDU [16:40: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 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 F8 F1 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 43 0B 01 00 35 04 06 00 D4 [16:40:19]Write to MH i2c: E2 02 01 85 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 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 F8 F1 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 43 0B 01 00 35 04 06 00 D4 00 00 73 [16:40:19]Write i2c OK [16:40:19]MH_I2C_Read... [16:40:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:40:19]Read from MH i2c: E2 [16:40:19]MH_I2C_Read... [16:40:19]Read from MH i2c: E2 03 00 [16:40:19]MH_I2C_Read... [16:40:19]Read from MH i2c: E2 03 00 85 4F 00 90 00 48 [16:40:19]RAPDU: 90 00 [16:40:19]wFMCommunicate OK [16:40:19]wFMCommunicate request_size=10 [16:40:19]MH_SAM_APDU [16:40:19]CAPDU: 80 0D 02 02 05 F9 8F BF 06 14 [16:40:19]Write to MH i2c: E2 0D 00 86 4F 80 0D 02 02 05 00 F9 8F BF 06 14 00 00 BA [16:40:19]Write i2c OK [16:40:19]MH_I2C_Read... [16:40:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:40:19]Read from MH i2c: E2 [16:40:19]MH_I2C_Read... [16:40:19]Read from MH i2c: E2 03 00 [16:40:19]MH_I2C_Read... [16:40:19]Read from MH i2c: E2 03 00 86 4F 00 90 00 49 [16:40:19]RAPDU: 90 00 [16:40:19]wFMCommunicate OK [16:40:19]wFMCommunicate request_size=4 [16:40:19]MH_SAM_APDU [16:40:19]CAPDU: 80 0D 03 02 [16:40:19]Write to MH i2c: E2 08 00 87 4F 80 0D 03 02 00 00 00 00 51 [16:40:19]Write i2c OK [16:40:19]MH_I2C_Read... [16:40:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:40:19]Read from MH i2c: E2 [16:40:19]MH_I2C_Read... [16:40:19]Read from MH i2c: E2 0B 00 [16:40:19]MH_I2C_Read... [16:40:19]Read from MH i2c: E2 0B 00 87 4F 00 87 58 8F 7D 5A 99 BA F3 90 00 DD [16:40:19]RAPDU: 87 58 8F 7D 5A 99 BA F3 90 00 [16:40:19]wFMCommunicate OK [16:40:19]SAM_PROTO_SignData done [16:40:19]FM_MakeSignedData done [16:40:19]CreateOFDProtocolMessage [16:40:19]wFMCommunicate request_size=4 [16:40:19]MH_SAM_APDU [16:40:19]CAPDU: 80 11 00 00 [16:40:19]Write to MH i2c: E2 08 00 88 4F 80 11 00 00 00 00 00 00 51 [16:40:19]Write i2c OK [16:40:19]MH_I2C_Read... [16:40:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:40:19]Read from MH i2c: E2 [16:40:19]MH_I2C_Read... [16:40:19]Read from MH i2c: E2 17 00 [16:40:19]MH_I2C_Read... [16:40:19]Read from MH i2c: E2 17 00 88 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 9C [16:40:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [16:40:19]wFMCommunicate OK [16:40:19]CreateOFDProtocolMessage done [16:40:19]OFDSenderStorePacket 68419 [16:40:19]StoreOFDPacket docnum=68419 [16:40:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 84 F7 07 01 53 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 F8 F1 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 43 0B 01 00 35 04 06 00 D4 F9 8F BF 06 14 87 58 8F 7D 5A 99 BA F3 [16:40:19]CheckFolder [16:40:19]dirname=/storage/ofd_packets [16:40:19]CheckFolder done [16:40:19]ProducePacketName [16:40:19]name=ofd_packets/00068419 [16:40:19]NVStorageSaveData ofd_packets/00068419 [16:40:19]File name is /storage/ofd_packets/00068419 [16:40:19]Write 301 bytes [16:40:19]NVStorageSaveData done [16:40:19]OFDSenderStorePacket done [16:40:19]KKMCreateOFDPacket done [16:40:19]NVStorageSaveData kkm_last_timestamp [16:40:19]File name is /storage/kkm_last_timestamp [16:40:19]Write 4 bytes [16:40:19]NVStorageSaveData done [16:40:19]ExternCall_PrintAddStr [16:40:19]wPrintStart [16:40:19]Write to MH i2c: 01 00 00 89 4F D8 [16:40:19]Write i2c OK [16:40:19]MH_I2C_Read... [16:40:19]Read from MH i2c: 01 [16:40:19]MH_I2C_Read... [16:40:19]Read from MH i2c: 01 07 00 [16:40:19]MH_I2C_Read... [16:40:19]Read from MH i2c: 01 07 00 89 4F 00 00 00 00 00 FF 0F ED [16:40:19]RasterBufferAndPrint [16:40:19]line Счет N : (1)706517 [16:40:19]line ИНН: 02508201610067 [16:40:19]line Контрольно-Кассовый Чек [16:40:19]line ПРОДАЖА [16:40:19]line ТРК (МРК, ГНК) : 43 [16:40:19]line Товар: 2710124500 [16:40:19]line Аи-95-К-5 [16:40:19]line 13.540 * 73.90 [16:40:19]line = 1000.61 [16:40:19]line НДС 12% НСП 1% [16:40:19]line > о реализуемом товаре [16:40:19]line ИТОГО: 1000.61 [16:40:19]line НСП 1% : 8.85 [16:40:19]line НДС 12% : 106.26 [16:40:19]line Наличными: 0.00 [16:40:19]line Безнал.: 1000.61 [16:40:19]line Место: АЗС № 62 "Партнер Нефть" [16:40:19]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [16:40:19]line СНО: Общий режим [16:40:19]line Чек 165 03.06.2024 16:40 [16:40:19]line Смена: 324 ФФД: 1.0 [16:40:19]line ЗНМ: 0300000181 [16:40:19]line РНМ: 0000000000098096 [16:40:19]line Версия ККМ: 001 [16:40:19]line Платежная система: АКБ Кыргызстан [16:40:19]line ФМ: 0000000000965400 [16:40:19]line ФД: 68419 [16:40:19]line ФПД: 234168323606036 [16:40:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T164024&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68419&fm=234168323606036&tin=02508201610067®Number=0000000000098096&sum=100061 [16:40:20]OFD Sender: Processing packet 68419 [packets to send 26, broken 25] [16:40:20]ProducePacketName [16:40:20]name=ofd_packets/00068419 [16:40:20]OFD Sender: To server: pG, [16:40:20]CommunicateWithHost lk.salyk.kg:30040 [16:40:20]ConnectInit lk.salyk.kg [16:40:20]written 0, free lines is 4095 [16:40:20]Connected sock=9 [16:40:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 84 F7 07 01 53 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 F8 F1 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 43 0B 01 00 35 04 06 00 D4 F9 8F BF 06 14 87 58 8F 7D 5A 99 BA F3 [16:40:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 B0 B8 47 00 85 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 43 0B 01 00 F4 03 04 00 F3 98 5D 66 B6 04 01 00 00 52 70 61 25 BF 4C 44 DE [16:40:20]CommunicateWithHost err = 0 [16:40:20]CheckOFDResponse [16:40:20]1017 (14) - 77093643461234 [16:40:20]1041 (16) - 0000000000965400 [16:40:20]1040 (4) - 68419 [16:40:20]1012 (4) - 03.06.2024 10:20 [16:40:20]1206 (1) - 0 [16:40:20]OFD Sender: Remove packet 68419 [16:40:20]ProducePacketName [16:40:20]name=ofd_packets/00068419 [16:40:20]NVStorageDeleteData [16:40:20]Write to MH i2c: 01 00 00 B3 4F 02 [16:40:20]Write i2c OK [16:40:20]MH_I2C_Read... [16:40:20]Read from MH i2c: 01 [16:40:20]MH_I2C_Read... [16:40:20]Read from MH i2c: 01 07 00 [16:40:20]MH_I2C_Read... [16:40:20]Read from MH i2c: 01 07 00 B3 4F 00 00 00 00 00 FB 0C 10 [16:40:20]RasterBufferAndPrint [16:40:20]line [16:40:20]line [16:40:20]line [16:40:20]line [16:40:20]line [16:40:20]written 0, free lines is 3331 [16:40:20]MH_Cut [16:40:20]Write to MH i2c: D1 01 00 BA 4F 01 DB [16:40:20]Write i2c OK [16:40:20]MH_I2C_Read... [16:40:20]Read from MH i2c: D1 [16:40:20]MH_I2C_Read... [16:40:20]Read from MH i2c: D1 01 00 [16:40:20]MH_I2C_Read... [16:40:20]Read from MH i2c: D1 01 00 BA 4F 00 DA [16:40:20]Write to MH i2c: 01 00 00 BB 4F 0A [16:40:20]Write i2c OK [16:40:20]MH_I2C_Read... [16:40:20]OFD Sender: No OFD packet to send [16:40:21]*** Cut start [16:40:21]*** Partial cut [16:40:21]*** CUTSNS_PIN = 1 [16:40:21]*** CUTSNS_PIN = 0 [16:40:21]*** Brake cut motor [16:40:21]Read from MH i2c: 01 [16:40:22]MH_I2C_Read... [16:40:22]*** Stop cut motor [16:40:22]*** Cut end [16:40:22]Read from MH i2c: 01 07 00 [16:40:22]MH_I2C_Read... [16:40:22]Read from MH i2c: 01 07 00 BB 4F 00 00 00 00 00 FF 0F 1F [16:40:22]process_action close_receipt done [16:40:22]requested_data is exist [16:40:22]produce_requested_data [16:40:22]requested_item fm.sn is exist - process it [16:40:22]wFMCommunicate request_size=4 [16:40:22]MH_SAM_APDU [16:40:22]CAPDU: 80 11 00 00 [16:40:22]Write to MH i2c: E2 08 00 BC 4F 80 11 00 00 00 00 00 00 85 [16:40:22]Write i2c OK [16:40:22]MH_I2C_Read... [16:40:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:40:22]Read from MH i2c: E2 [16:40:22]MH_I2C_Read... [16:40:22]Read from MH i2c: E2 17 00 [16:40:22]MH_I2C_Read... [16:40:22]Read from MH i2c: E2 17 00 BC 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 D0 [16:40:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [16:40:22]wFMCommunicate OK [16:40:22]requested_item fd.num is exist - process it [16:40:22]SAM_PROTO_GetFieldsCounters [16:40:22]wFMCommunicate request_size=4 [16:40:22]MH_SAM_APDU [16:40:22]CAPDU: 80 13 00 00 [16:40:22]Write to MH i2c: E2 08 00 BD 4F 80 13 00 00 00 00 00 00 88 [16:40:22]Write i2c OK [16:40:22]MH_I2C_Read... [16:40:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:40:22]Read from MH i2c: E2 [16:40:22]MH_I2C_Read... [16:40:22]Read from MH i2c: E2 62 00 [16:40:22]MH_I2C_Read... [16:40:22]Read from MH i2c: E2 62 00 BD 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 43 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 2B [16:40:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 43 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:40:22]wFMCommunicate OK [16:40:22]SAM_PROTO_GetFieldsCounters done [16:40:22]requested_item shift.num is exist - process it [16:40:22]requested_item shift.opened is exist - process it [16:40:22]req_shift_opened [16:40:22]FM_GetShiftState [16:40:22]SAM_PROTO_GetShiftState [16:40:22]wFMCommunicate request_size=4 [16:40:22]MH_SAM_APDU [16:40:22]CAPDU: 80 13 01 00 [16:40:22]Write to MH i2c: E2 08 00 BE 4F 80 13 01 00 00 00 00 00 8A [16:40:22]Write i2c OK [16:40:22]MH_I2C_Read... [16:40:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:40:22]Read from MH i2c: E2 [16:40:22]MH_I2C_Read... [16:40:22]Read from MH i2c: E2 0E 00 [16:40:22]MH_I2C_Read... [16:40:22]Read from MH i2c: E2 0E 00 BE 4F 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 65 [16:40:22]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [16:40:22]wFMCommunicate OK [16:40:22]SAM_PROTO_GetShiftState done [16:40:22]FM_GetShiftState done [16:40:22]req_shift_opened done [16:40:22]requested_item shift.open_date is exist - process it [16:40:22]req_shift_open_date [16:40:22]req_shift_open_date done [16:40:22]produce_requested_data done [16:40:22]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68419,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [16:40:22]process_action_free close_receipt [16:40:22]json_value_free [16:40:22]json_value_free done [16:40:22]process_json_proto returns [16:40:22]Send response to host [16:40:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68419,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [16:40:22]free response buf [16:40:22]execute_script done [16:40:22]execute_script returns [16:40:22]free content buf [16:40:22]Sock 6.Close socket [16:40:22]Sock 6.Thread stoped [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:02]accept exits with 5 [16:42:02]New connection [16:42:02]New thread 3066543460 created [16:42:02]Thread 3066686820 joined [16:42:02]Waiting for new connection... [16:42:02] Sock 5.Parse request [16:42:02]Sock 5.Check first char [16:42:02]Sock 5.First char is OK [16:42:02]request: POST /json_proto HTTP/1.0 [16:42:02]Method: POST [16:42:02]URL: /json_proto [16:42:02]Method is POST - this is cgi request [16:42:02]url: /json_proto [16:42:02]query_string will be loaded in cgi processing [16:42:02]execute_cgi json_proto POST (null) [16:42:02]execute_cgi path=json_proto method=POST [16:42:02]POST find Content-Length [16:42:02]Host: 172.17.36.132:8080 [16:42:02]Content-Length: 687 [16:42:02]Content-Type: application/json [16:42:02] [16:42:02]POST finish read [16:42:02]Found Content-Length = 687 [16:42:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706518", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 25.890, "sum" : 1887.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1887.00, "total" : 1887.00, "payments": [ { "type": 0, "sum" : 1887.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:42:02]execute_script... [16:42: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)706518", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 25.890, "sum" : 1887.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1887.00, "total" : 1887.00, "payments": [ { "type": 0, "sum" : 1887.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:42:02]POST & json_proto [16:42:02]process_json_proto [16:42:02]json parsed OK: [16:42:02]protocol is kg_v1.0 [16:42:02]action value=close_receipt [16:42:02]process_action close_receipt [16:42:02]cmd_close_receipt [16:42:02]MH_GetDate [16:42:02]Write to MH i2c: F0 00 00 BF 4F FD [16:42:02]Write i2c OK [16:42:02]MH_I2C_Read... [16:42:02]Read from MH i2c: F0 [16:42:02]MH_I2C_Read... [16:42:02]Read from MH i2c: F0 09 00 [16:42:02]MH_I2C_Read... [16:42:02]Read from MH i2c: F0 09 00 BF 4F 00 60 F2 5D 66 B2 22 B0 64 03 [16:42:02]GetLastDocTimeStamp 1717432824 [16:42:02]current date 1717432928 [16:42:02]FM_GetShiftState [16:42:02]SAM_PROTO_GetShiftState [16:42:02]wFMCommunicate request_size=4 [16:42:02]MH_SAM_APDU [16:42:02]CAPDU: 80 13 01 00 [16:42:02]Write to MH i2c: E2 08 00 C0 4F 80 13 01 00 00 00 00 00 8C [16:42:02]Write i2c OK [16:42:02]MH_I2C_Read... [16:42:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:42:02]Read from MH i2c: E2 [16:42:02]MH_I2C_Read... [16:42:02]Read from MH i2c: E2 0E 00 [16:42:02]MH_I2C_Read... [16:42:02]Read from MH i2c: E2 0E 00 C0 4F 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 67 [16:42:02]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [16:42:02]wFMCommunicate OK [16:42:02]SAM_PROTO_GetShiftState done [16:42:02]FM_GetShiftState done [16:42:02]opened in 1717378033 [16:42:02]opened+sec_in_day 1717464433 [16:42:02]quantity*price = 188738 [16:42:02]sum+1 = 188739 [16:42:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1887.00 Внесено: 1887.00 СДАЧА: 0.00 НСП 1% : 16.70 НДС 12% : 200.43 Наличными: 1887.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 166 03.06.2024 16:42 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68420 ФПД: 118253844688577 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T164208&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68420&fm=118253844688577&tin=02508201610067®Number=0000000000098096&sum=188700 [16:42:03]StoreToDocumentArchive [16:42:03]shift 324 fd 68420 [16:42:03]save to /storage/0324/doc_00068420 [16:42:03]save last doc name /storage/0324/doc_00068420 to /storage/kkm_last_doc_name [16:42:03]save OK [16:42:03]Clear old archive folders... [16:42:03]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:42:03]tlvbuf is B6E999A0 [16:42:03]SAM_PROTO_ClearQueue [16:42:03]wFMCommunicate request_size=4 [16:42:03]MH_SAM_APDU [16:42:03]CAPDU: 80 09 00 00 [16:42:03]Write to MH i2c: E2 08 00 CD 4F 80 09 00 00 00 00 00 00 8E [16:42:03]Write i2c OK [16:42:03]MH_I2C_Read... [16:42:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:42:03]Read from MH i2c: E2 [16:42:03]MH_I2C_Read... [16:42:03]Read from MH i2c: E2 03 00 [16:42:03]MH_I2C_Read... [16:42:03]Read from MH i2c: E2 03 00 CD 4F 00 90 00 90 [16:42:03]RAPDU: 90 00 [16:42:03]wFMCommunicate OK [16:42:03]SAM_PROTO_ClearQueue done [16:42:03]KKMCreateOFDPacket [16:42:03]OFDProtocolAddRootSTLVToBuf [16:42:03]FM_MakeSignedData [16:42:03]FM_MakeSignedData [16:42:03]SAM_PROTO_SignData [16:42:03]wFMCommunicate request_size=4 [16:42:03]MH_SAM_APDU [16:42:03]CAPDU: 80 0D 01 02 [16:42:03]Write to MH i2c: E2 08 00 CE 4F 80 0D 01 02 00 00 00 00 96 [16:42:03]Write i2c OK [16:42:03]MH_I2C_Read... [16:42:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:42:03]Read from MH i2c: E2 [16:42:03]MH_I2C_Read... [16:42:03]Read from MH i2c: E2 03 00 [16:42:03]MH_I2C_Read... [16:42:03]Read from MH i2c: E2 03 00 CE 4F 00 90 00 91 [16:42:03]RAPDU: 90 00 [16:42:03]wFMCommunicate OK [16:42:03]wFMCommunicate request_size=255 [16:42:03]MH_SAM_APDU [16:42: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 34 FF 03 08 00 03 22 65 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 42 E1 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C E1 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 4E 00 00 00 00 07 04 06 00 1C E1 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 60 F2 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 44 0B 01 00 35 04 06 00 [16:42:03]Write to MH i2c: E2 02 01 CF 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 34 FF 03 08 00 03 22 65 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 42 E1 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C E1 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 4E 00 00 00 00 07 04 06 00 1C E1 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 60 F2 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 44 0B 01 00 35 04 06 00 00 00 8E [16:42:03]Write i2c OK [16:42:03]MH_I2C_Read... [16:42:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:42:04]Read from MH i2c: E2 [16:42:04]MH_I2C_Read... [16:42:04]Read from MH i2c: E2 03 00 [16:42:04]MH_I2C_Read... [16:42:04]Read from MH i2c: E2 03 00 CF 4F 00 90 00 92 [16:42:04]RAPDU: 90 00 [16:42:04]wFMCommunicate OK [16:42:04]wFMCommunicate request_size=11 [16:42:04]MH_SAM_APDU [16:42:04]CAPDU: 80 0D 02 02 06 6B 8D 1E 67 EE C1 [16:42:04]Write to MH i2c: E2 0E 00 D0 4F 80 0D 02 02 06 00 6B 8D 1E 67 EE C1 00 00 D1 [16:42:04]Write i2c OK [16:42:04]MH_I2C_Read... [16:42:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:42:04]Read from MH i2c: E2 [16:42:04]MH_I2C_Read... [16:42:04]Read from MH i2c: E2 03 00 [16:42:04]MH_I2C_Read... [16:42:04]Read from MH i2c: E2 03 00 D0 4F 00 90 00 93 [16:42:04]RAPDU: 90 00 [16:42:04]wFMCommunicate OK [16:42:04]wFMCommunicate request_size=4 [16:42:04]MH_SAM_APDU [16:42:04]CAPDU: 80 0D 03 02 [16:42:04]Write to MH i2c: E2 08 00 D1 4F 80 0D 03 02 00 00 00 00 9B [16:42:04]Write i2c OK [16:42:04]MH_I2C_Read... [16:42:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:42:04]Read from MH i2c: E2 [16:42:04]MH_I2C_Read... [16:42:04]Read from MH i2c: E2 0B 00 [16:42:04]MH_I2C_Read... [16:42:04]Read from MH i2c: E2 0B 00 D1 4F 00 84 CD 3B B5 C8 8D 9C 46 90 00 14 [16:42:04]RAPDU: 84 CD 3B B5 C8 8D 9C 46 90 00 [16:42:04]wFMCommunicate OK [16:42:04]SAM_PROTO_SignData done [16:42:04]FM_MakeSignedData done [16:42:04]CreateOFDProtocolMessage [16:42:04]wFMCommunicate request_size=4 [16:42:04]MH_SAM_APDU [16:42:04]CAPDU: 80 11 00 00 [16:42:04]Write to MH i2c: E2 08 00 D2 4F 80 11 00 00 00 00 00 00 9B [16:42:04]Write i2c OK [16:42:04]MH_I2C_Read... [16:42:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:42:04]Read from MH i2c: E2 [16:42:04]MH_I2C_Read... [16:42:04]Read from MH i2c: E2 17 00 [16:42:04]MH_I2C_Read... [16:42:04]Read from MH i2c: E2 17 00 D2 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 E6 [16:42:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [16:42:04]wFMCommunicate OK [16:42:04]CreateOFDProtocolMessage done [16:42:04]OFDSenderStorePacket 68420 [16:42:04]StoreOFDPacket docnum=68420 [16:42:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 09 47 08 01 15 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 34 FF 03 08 00 03 22 65 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 42 E1 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C E1 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 4E 00 00 00 00 07 04 06 00 1C E1 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 60 F2 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 44 0B 01 00 35 04 06 00 6B 8D 1E 67 EE C1 84 CD 3B B5 C8 8D 9C 46 [16:42:04]CheckFolder [16:42:04]dirname=/storage/ofd_packets [16:42:04]CheckFolder done [16:42:04]ProducePacketName [16:42:04]name=ofd_packets/00068420 [16:42:04]NVStorageSaveData ofd_packets/00068420 [16:42:04]File name is /storage/ofd_packets/00068420 [16:42:04]Write 302 bytes [16:42:04]NVStorageSaveData done [16:42:04]OFDSenderStorePacket done [16:42:04]KKMCreateOFDPacket done [16:42:04]NVStorageSaveData kkm_last_timestamp [16:42:04]File name is /storage/kkm_last_timestamp [16:42:04]Write 4 bytes [16:42:04]NVStorageSaveData done [16:42:04]ExternCall_PrintAddStr [16:42:04]wPrintStart [16:42:04]Write to MH i2c: 01 00 00 D3 4F 22 [16:42:04]Write i2c OK [16:42:04]MH_I2C_Read... [16:42:04]Read from MH i2c: 01 [16:42:04]MH_I2C_Read... [16:42:04]Read from MH i2c: 01 07 00 [16:42:04]MH_I2C_Read... [16:42:04]Read from MH i2c: 01 07 00 D3 4F 00 00 00 00 00 FF 0F 37 [16:42:04]RasterBufferAndPrint [16:42:04]line Счет N : (1)706518 [16:42:04]line ИНН: 02508201610067 [16:42:04]line Контрольно-Кассовый Чек [16:42:04]line ПРОДАЖА [16:42:04]line ТРК (МРК, ГНК) : 21 [16:42:04]line Товар: 2710194210 [16:42:04]line ДТ(л)-К-4 [16:42:04]line 25.890 * 72.90 [16:42:04]line = 1887.38 [16:42:04]line НДС 12% НСП 1% [16:42:04]line > о реализуемом товаре [16:42:04]line ОКРУГЛЕНИЕ: -0.38 [16:42:04]line ИТОГО: 1887.00 [16:42:04]line Внесено: 1887.00 [16:42:04]line СДАЧА: 0.00 [16:42:04]line НСП 1% : 16.70 [16:42:04]line НДС 12% : 200.43 [16:42:04]line Наличными: 1887.00 [16:42:04]line Безнал.: 0.00 [16:42:04]line Место: АЗС № 62 "Партнер Нефть" [16:42:04]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [16:42:04]line СНО: Общий режим [16:42:04]line Чек 166 03.06.2024 16:42 [16:42:04]line Смена: 324 ФФД: 1.0 [16:42:04]line ЗНМ: 0300000181 [16:42:04]line РНМ: 0000000000098096 [16:42:04]line Версия ККМ: 001 [16:42:04]line ФМ: 0000000000965400 [16:42:04]line ФД: 68420 [16:42:04]line ФПД: 118253844688577 [16:42:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T164208&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68420&fm=118253844688577&tin=02508201610067®Number=0000000000098096&sum=188700 [16:42:04]OFD Sender: Processing packet 68420 [packets to send 26, broken 25] [16:42:04]ProducePacketName [16:42:04]name=ofd_packets/00068420 [16:42:04]OFD Sender: To server: pG, [16:42:04]CommunicateWithHost lk.salyk.kg:30040 [16:42:04]ConnectInit lk.salyk.kg [16:42:04]written 0, free lines is 4095 [16:42:04]Connected sock=7 [16:42:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 09 47 08 01 15 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 34 FF 03 08 00 03 22 65 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 42 E1 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C E1 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 4E 00 00 00 00 07 04 06 00 1C E1 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 60 F2 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 44 0B 01 00 35 04 06 00 6B 8D 1E 67 EE C1 84 CD 3B B5 C8 8D 9C 46 [16:42:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 10 44 47 00 A7 C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 44 0B 01 00 F4 03 04 00 5C 99 5D 66 B6 04 01 00 00 78 1D 81 2D 5A 35 FC 4B [16:42:04]CommunicateWithHost err = 0 [16:42:04]CheckOFDResponse [16:42:04]1017 (14) - 77093643461234 [16:42:04]1041 (16) - 0000000000965400 [16:42:04]1040 (4) - 68420 [16:42:04]1012 (4) - 03.06.2024 10:22 [16:42:04]1206 (1) - 0 [16:42:04]OFD Sender: Remove packet 68420 [16:42:04]ProducePacketName [16:42:04]name=ofd_packets/00068420 [16:42:04]NVStorageDeleteData [16:42:04]Write to MH i2c: 01 00 00 FE 4F 4D [16:42:04]Write i2c OK [16:42:04]MH_I2C_Read... [16:42:04]Read from MH i2c: 01 [16:42:04]MH_I2C_Read... [16:42:04]Read from MH i2c: 01 07 00 [16:42:04]MH_I2C_Read... [16:42:04]Read from MH i2c: 01 07 00 FE 4F 00 00 00 00 00 F1 0C 51 [16:42:04]RasterBufferAndPrint [16:42:04]line [16:42:04]line [16:42:04]line [16:42:04]line [16:42:04]line [16:42:04]written 0, free lines is 3319 [16:42:05]MH_Cut [16:42:05]Write to MH i2c: D1 01 00 05 50 01 27 [16:42:05]Write i2c OK [16:42:05]MH_I2C_Read... [16:42:05]Read from MH i2c: D1 [16:42:05]MH_I2C_Read... [16:42:05]Read from MH i2c: D1 01 00 [16:42:05]MH_I2C_Read... [16:42:05]Read from MH i2c: D1 01 00 05 50 00 26 [16:42:05]Write to MH i2c: 01 00 00 06 50 56 [16:42:05]Write i2c OK [16:42:05]MH_I2C_Read... [16:42:05]OFD Sender: No OFD packet to send [16:42:05]*** Cut start [16:42:05]*** Partial cut [16:42:05]*** CUTSNS_PIN = 1 [16:42:05]*** CUTSNS_PIN = 0 [16:42:06]*** Brake cut motor [16:42:06]Read from MH i2c: 01 [16:42:06]MH_I2C_Read... [16:42:06]*** Stop cut motor [16:42:06]*** Cut end [16:42:06]Read from MH i2c: 01 07 00 [16:42:06]MH_I2C_Read... [16:42:06]Read from MH i2c: 01 07 00 06 50 00 00 00 00 00 FF 0F 6B [16:42:06]process_action close_receipt done [16:42:06]requested_data is exist [16:42:06]produce_requested_data [16:42:06]requested_item fm.sn is exist - process it [16:42:06]wFMCommunicate request_size=4 [16:42:06]MH_SAM_APDU [16:42:06]CAPDU: 80 11 00 00 [16:42:06]Write to MH i2c: E2 08 00 07 50 80 11 00 00 00 00 00 00 D1 [16:42:06]Write i2c OK [16:42:06]MH_I2C_Read... [16:42:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:42:06]Read from MH i2c: E2 [16:42:06]MH_I2C_Read... [16:42:06]Read from MH i2c: E2 17 00 [16:42:06]MH_I2C_Read... [16:42:06]Read from MH i2c: E2 17 00 07 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 1C [16:42:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [16:42:06]wFMCommunicate OK [16:42:06]requested_item fd.num is exist - process it [16:42:06]SAM_PROTO_GetFieldsCounters [16:42:06]wFMCommunicate request_size=4 [16:42:06]MH_SAM_APDU [16:42:06]CAPDU: 80 13 00 00 [16:42:06]Write to MH i2c: E2 08 00 08 50 80 13 00 00 00 00 00 00 D4 [16:42:06]Write i2c OK [16:42:06]MH_I2C_Read... [16:42:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:42:06]Read from MH i2c: E2 [16:42:06]MH_I2C_Read... [16:42:06]Read from MH i2c: E2 62 00 [16:42:06]MH_I2C_Read... [16:42:06]Read from MH i2c: E2 62 00 08 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 44 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [16:42:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 44 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:42:06]wFMCommunicate OK [16:42:06]SAM_PROTO_GetFieldsCounters done [16:42:06]requested_item shift.num is exist - process it [16:42:06]requested_item shift.opened is exist - process it [16:42:06]req_shift_opened [16:42:06]FM_GetShiftState [16:42:06]SAM_PROTO_GetShiftState [16:42:06]wFMCommunicate request_size=4 [16:42:06]MH_SAM_APDU [16:42:06]CAPDU: 80 13 01 00 [16:42:06]Write to MH i2c: E2 08 00 09 50 80 13 01 00 00 00 00 00 D6 [16:42:06]Write i2c OK [16:42:06]MH_I2C_Read... [16:42:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:42:06]Read from MH i2c: E2 [16:42:06]MH_I2C_Read... [16:42:06]Read from MH i2c: E2 0E 00 [16:42:06]MH_I2C_Read... [16:42:06]Read from MH i2c: E2 0E 00 09 50 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 B1 [16:42:06]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [16:42:06]wFMCommunicate OK [16:42:06]SAM_PROTO_GetShiftState done [16:42:06]FM_GetShiftState done [16:42:06]req_shift_opened done [16:42:06]requested_item shift.open_date is exist - process it [16:42:06]req_shift_open_date [16:42:06]req_shift_open_date done [16:42:06]produce_requested_data done [16:42:06]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68420,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [16:42:06]process_action_free close_receipt [16:42:06]json_value_free [16:42:06]json_value_free done [16:42:06]process_json_proto returns [16:42:06]Send response to host [16:42:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68420,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [16:42:06]free response buf [16:42:06]execute_script done [16:42:06]execute_script returns [16:42:06]free content buf [16:42:06]Sock 5.Close socket [16:42:06]Sock 5.Thread stoped [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:45]OFD Sender: No OFD packet to send [16:48:50]OFD Sender: No OFD packet to send [16:48:55]OFD Sender: No OFD packet to send [16:49:00]OFD Sender: No OFD packet to send [16:49:05]OFD Sender: No OFD packet to send [16:49:10]OFD Sender: No OFD packet to send [16:49:15]OFD Sender: No OFD packet to send [16:49:20]OFD Sender: No OFD packet to send [16:49:25]OFD Sender: No OFD packet to send [16:49:30]OFD Sender: No OFD packet to send [16:49:35]OFD Sender: No OFD packet to send [16:49:40]OFD Sender: No OFD packet to send [16:49:45]OFD Sender: No OFD packet to send [16:49:50]OFD Sender: No OFD packet to send [16:49:55]OFD Sender: No OFD packet to send [16:50:00]OFD Sender: No OFD packet to send [16:50:05]OFD Sender: No OFD packet to send [16:50:10]OFD Sender: No OFD packet to send [16:50:15]OFD Sender: No OFD packet to send [16:50:20]OFD Sender: No OFD packet to send [16:50:25]OFD Sender: No OFD packet to send [16:50:30]OFD Sender: No OFD packet to send [16:50:35]OFD Sender: No OFD packet to send [16:50:40]OFD Sender: No OFD packet to send [16:50:45]OFD Sender: No OFD packet to send [16:50:50]OFD Sender: No OFD packet to send [16:50:55]OFD Sender: No OFD packet to send [16:51:00]OFD Sender: No OFD packet to send [16:51:05]OFD Sender: No OFD packet to send [16:51:10]OFD Sender: No OFD packet to send [16:51:15]OFD Sender: No OFD packet to send [16:51:20]OFD Sender: No OFD packet to send [16:51:25]OFD Sender: No OFD packet to send [16:51:30]OFD Sender: No OFD packet to send [16:51:35]OFD Sender: No OFD packet to send [16:51:40]OFD Sender: No OFD packet to send [16:51:45]OFD Sender: No OFD packet to send [16:51:50]OFD Sender: No OFD packet to send [16:51:55]OFD Sender: No OFD packet to send [16:52:00]OFD Sender: No OFD packet to send [16:52:05]OFD Sender: No OFD packet to send [16:52:10]OFD Sender: No OFD packet to send [16:52:15]OFD Sender: No OFD packet to send [16:52:20]OFD Sender: No OFD packet to send [16:52:25]OFD Sender: No OFD packet to send [16:52:30]OFD Sender: No OFD packet to send [16:52:35]OFD Sender: No OFD packet to send [16:52:40]OFD Sender: No OFD packet to send [16:52:45]OFD Sender: No OFD packet to send [16:52:50]OFD Sender: No OFD packet to send [16:52:55]OFD Sender: No OFD packet to send [16:53:00]OFD Sender: No OFD packet to send [16:53:05]OFD Sender: No OFD packet to send [16:53:10]OFD Sender: No OFD packet to send [16:53:15]OFD Sender: No OFD packet to send [16:53:20]OFD Sender: No OFD packet to send [16:53:25]OFD Sender: No OFD packet to send [16:53:30]OFD Sender: No OFD packet to send [16:53:35]OFD Sender: No OFD packet to send [16:53:38]accept exits with 6 [16:53:38]New connection [16:53:38]New thread 3066686820 created [16:53:38]Thread 3066543460 joined [16:53:38]Waiting for new connection... [16:53:38] Sock 6.Parse request [16:53:38]Sock 6.Check first char [16:53:38]Sock 6.First char is OK [16:53:38]request: POST /json_proto HTTP/1.0 [16:53:38]Method: POST [16:53:38]URL: /json_proto [16:53:38]Method is POST - this is cgi request [16:53:38]url: /json_proto [16:53:38]query_string will be loaded in cgi processing [16:53:38]execute_cgi json_proto POST (null) [16:53:38]execute_cgi path=json_proto method=POST [16:53:38]POST find Content-Length [16:53:38]Host: 172.17.36.132:8080 [16:53:38]Content-Length: 840 [16:53:38]Content-Type: application/json [16:53:38] [16:53:38]POST finish read [16:53:38]Found Content-Length = 840 [16:53:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706519", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:53:38]execute_script... [16:53:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706519", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:53:38]POST & json_proto [16:53:38]process_json_proto [16:53:38]json parsed OK: [16:53:38]protocol is kg_v1.0 [16:53:38]action value=close_receipt [16:53:38]process_action close_receipt [16:53:38]cmd_close_receipt [16:53:38]MH_GetDate [16:53:38]Write to MH i2c: F0 00 00 0A 50 49 [16:53:38]Write i2c OK [16:53:38]MH_I2C_Read... [16:53:38]Read from MH i2c: F0 [16:53:38]MH_I2C_Read... [16:53:38]Read from MH i2c: F0 09 00 [16:53:38]MH_I2C_Read... [16:53:38]Read from MH i2c: F0 09 00 0A 50 00 18 F5 5D 66 B2 22 B0 64 0A [16:53:38]GetLastDocTimeStamp 1717432928 [16:53:38]current date 1717433624 [16:53:38]FM_GetShiftState [16:53:38]SAM_PROTO_GetShiftState [16:53:38]wFMCommunicate request_size=4 [16:53:38]MH_SAM_APDU [16:53:38]CAPDU: 80 13 01 00 [16:53:38]Write to MH i2c: E2 08 00 0B 50 80 13 01 00 00 00 00 00 D8 [16:53:38]Write i2c OK [16:53:38]MH_I2C_Read... [16:53:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:53:38]Read from MH i2c: E2 [16:53:38]MH_I2C_Read... [16:53:38]Read from MH i2c: E2 0E 00 [16:53:38]MH_I2C_Read... [16:53:38]Read from MH i2c: E2 0E 00 0B 50 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 B3 [16:53:38]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [16:53:38]wFMCommunicate OK [16:53:38]SAM_PROTO_GetShiftState done [16:53:38]FM_GetShiftState done [16:53:38]opened in 1717378033 [16:53:38]opened+sec_in_day 1717464433 [16:53:38]quantity*price = 20003 [16:53:38]sum+1 = 20004 [16:53:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.03 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 0.00 Безнал.: 200.03 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 167 03.06.2024 16:53 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68421 ФПД: 7753513193123 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T165344&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68421&fm=7753513193123&tin=02508201610067®Number=0000000000098096&sum=20003 [16:53:39]StoreToDocumentArchive [16:53:39]shift 324 fd 68421 [16:53:39]save to /storage/0324/doc_00068421 [16:53:39]save last doc name /storage/0324/doc_00068421 to /storage/kkm_last_doc_name [16:53:39]save OK [16:53:39]Clear old archive folders... [16:53:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:53:39]tlvbuf is 001FD1B0 [16:53:39]SAM_PROTO_ClearQueue [16:53:39]wFMCommunicate request_size=4 [16:53:39]MH_SAM_APDU [16:53:39]CAPDU: 80 09 00 00 [16:53:39]Write to MH i2c: E2 08 00 18 50 80 09 00 00 00 00 00 00 DA [16:53:39]Write i2c OK [16:53:39]MH_I2C_Read... [16:53:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:53:39]Read from MH i2c: E2 [16:53:39]MH_I2C_Read... [16:53:39]Read from MH i2c: E2 03 00 [16:53:39]MH_I2C_Read... [16:53:39]Read from MH i2c: E2 03 00 18 50 00 90 00 DC [16:53:39]RAPDU: 90 00 [16:53:39]wFMCommunicate OK [16:53:39]SAM_PROTO_ClearQueue done [16:53:39]KKMCreateOFDPacket [16:53:39]OFDProtocolAddRootSTLVToBuf [16:53:39]FM_MakeSignedData [16:53:39]FM_MakeSignedData [16:53:39]SAM_PROTO_SignData [16:53:39]wFMCommunicate request_size=4 [16:53:39]MH_SAM_APDU [16:53:39]CAPDU: 80 0D 01 02 [16:53:39]Write to MH i2c: E2 08 00 19 50 80 0D 01 02 00 00 00 00 E2 [16:53:39]Write i2c OK [16:53:39]MH_I2C_Read... [16:53:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:53:40]Read from MH i2c: E2 [16:53:40]MH_I2C_Read... [16:53:40]Read from MH i2c: E2 03 00 [16:53:40]MH_I2C_Read... [16:53:40]Read from MH i2c: E2 03 00 19 50 00 90 00 DD [16:53:40]RAPDU: 90 00 [16:53:40]wFMCommunicate OK [16:53:40]wFMCommunicate request_size=255 [16:53:40]MH_SAM_APDU [16:53: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 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 18 F5 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 45 0B 01 00 35 04 06 00 07 [16:53:40]Write to MH i2c: E2 02 01 1A 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 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 18 F5 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 45 0B 01 00 35 04 06 00 07 00 00 4B [16:53:40]Write i2c OK [16:53:40]MH_I2C_Read... [16:53:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:53:40]Read from MH i2c: E2 [16:53:40]MH_I2C_Read... [16:53:40]Read from MH i2c: E2 03 00 [16:53:40]MH_I2C_Read... [16:53:40]Read from MH i2c: E2 03 00 1A 50 00 90 00 DE [16:53:40]RAPDU: 90 00 [16:53:40]wFMCommunicate OK [16:53:40]wFMCommunicate request_size=10 [16:53:40]MH_SAM_APDU [16:53:40]CAPDU: 80 0D 02 02 05 0D 41 66 4E A3 [16:53:40]Write to MH i2c: E2 0D 00 1B 50 80 0D 02 02 05 00 0D 41 66 4E A3 00 00 94 [16:53:40]Write i2c OK [16:53:40]MH_I2C_Read... [16:53:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:53:40]Read from MH i2c: E2 [16:53:40]MH_I2C_Read... [16:53:40]Read from MH i2c: E2 03 00 [16:53:40]MH_I2C_Read... [16:53:40]Read from MH i2c: E2 03 00 1B 50 00 90 00 DF [16:53:40]RAPDU: 90 00 [16:53:40]wFMCommunicate OK [16:53:40]wFMCommunicate request_size=4 [16:53:40]MH_SAM_APDU [16:53:40]CAPDU: 80 0D 03 02 [16:53:40]Write to MH i2c: E2 08 00 1C 50 80 0D 03 02 00 00 00 00 E7 [16:53:40]Write i2c OK [16:53:40]MH_I2C_Read... [16:53:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:53:40]Read from MH i2c: E2 [16:53:40]MH_I2C_Read... [16:53:40]Read from MH i2c: E2 0B 00 [16:53:40]MH_I2C_Read... [16:53:40]Read from MH i2c: E2 0B 00 1C 50 00 97 1F 9C 8C A7 E4 7E 8A 90 00 59 [16:53:40]RAPDU: 97 1F 9C 8C A7 E4 7E 8A 90 00 [16:53:40]wFMCommunicate OK [16:53:40]SAM_PROTO_SignData done [16:53:40]FM_MakeSignedData done [16:53:40]CreateOFDProtocolMessage [16:53:40]wFMCommunicate request_size=4 [16:53:40]MH_SAM_APDU [16:53:40]CAPDU: 80 11 00 00 [16:53:40]Write to MH i2c: E2 08 00 1D 50 80 11 00 00 00 00 00 00 E7 [16:53:40]Write i2c OK [16:53:40]MH_I2C_Read... [16:53:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:53:40]Read from MH i2c: E2 [16:53:40]MH_I2C_Read... [16:53:40]Read from MH i2c: E2 17 00 [16:53:40]MH_I2C_Read... [16:53:40]Read from MH i2c: E2 17 00 1D 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 32 [16:53:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [16:53:40]wFMCommunicate OK [16:53:40]CreateOFDProtocolMessage done [16:53:40]OFDSenderStorePacket 68421 [16:53:40]StoreOFDPacket docnum=68421 [16:53:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 91 CF 07 01 61 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 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 18 F5 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 45 0B 01 00 35 04 06 00 07 0D 41 66 4E A3 97 1F 9C 8C A7 E4 7E 8A [16:53:40]CheckFolder [16:53:40]dirname=/storage/ofd_packets [16:53:40]CheckFolder done [16:53:40]ProducePacketName [16:53:40]name=ofd_packets/00068421 [16:53:40]NVStorageSaveData ofd_packets/00068421 [16:53:40]File name is /storage/ofd_packets/00068421 [16:53:40]Write 301 bytes [16:53:40]NVStorageSaveData done [16:53:40]OFDSenderStorePacket done [16:53:40]KKMCreateOFDPacket done [16:53:40]NVStorageSaveData kkm_last_timestamp [16:53:40]File name is /storage/kkm_last_timestamp [16:53:40]Write 4 bytes [16:53:40]NVStorageSaveData done [16:53:40]ExternCall_PrintAddStr [16:53:40]wPrintStart [16:53:40]Write to MH i2c: 01 00 00 1E 50 6E [16:53:40]Write i2c OK [16:53:40]MH_I2C_Read... [16:53:40]Read from MH i2c: 01 [16:53:40]MH_I2C_Read... [16:53:40]Read from MH i2c: 01 07 00 [16:53:40]MH_I2C_Read... [16:53:40]Read from MH i2c: 01 07 00 1E 50 00 00 00 00 00 FF 0F 83 [16:53:40]RasterBufferAndPrint [16:53:40]line Счет N : (1)706519 [16:53:40]line ИНН: 02508201610067 [16:53:40]line Контрольно-Кассовый Чек [16:53:40]line ПРОДАЖА [16:53:40]line ТРК (МРК, ГНК) : 32 [16:53:40]line Товар: 2710124130 [16:53:40]line Аи-92-К-4 [16:53:40]line 2.990 * 66.90 [16:53:40]line = 200.03 [16:53:40]line НДС 12% НСП 1% [16:53:40]line > о реализуемом товаре [16:53:40]line ИТОГО: 200.03 [16:53:40]line НСП 1% : 1.77 [16:53:40]line НДС 12% : 21.24 [16:53:40]line Наличными: 0.00 [16:53:40]line Безнал.: 200.03 [16:53:40]line Место: АЗС № 62 "Партнер Нефть" [16:53:40]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [16:53:40]line СНО: Общий режим [16:53:40]line Чек 167 03.06.2024 16:53 [16:53:40]line Смена: 324 ФФД: 1.0 [16:53:40]line ЗНМ: 0300000181 [16:53:40]line РНМ: 0000000000098096 [16:53:40]line Версия ККМ: 001 [16:53:40]line Платежная система: АКБ Кыргызстан [16:53:40]line ФМ: 0000000000965400 [16:53:40]line ФД: 68421 [16:53:40]line ФПД: 7753513193123 [16:53:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T165344&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68421&fm=7753513193123&tin=02508201610067®Number=0000000000098096&sum=20003 [16:53:40]OFD Sender: Processing packet 68421 [packets to send 26, broken 25] [16:53:40]ProducePacketName [16:53:40]name=ofd_packets/00068421 [16:53:40]OFD Sender: To server: pG, [16:53:40]CommunicateWithHost lk.salyk.kg:30040 [16:53:40]ConnectInit lk.salyk.kg [16:53:40]written 0, free lines is 4095 [16:53:40]Connected sock=7 [16:53:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 91 CF 07 01 61 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 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 18 F5 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 45 0B 01 00 35 04 06 00 07 0D 41 66 4E A3 97 1F 9C 8C A7 E4 7E 8A [16:53:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 D5 A3 47 00 16 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 45 0B 01 00 F4 03 04 00 14 9C 5D 66 B6 04 01 00 00 37 13 C8 8D A3 FE 28 F4 [16:53:41]CommunicateWithHost err = 0 [16:53:41]CheckOFDResponse [16:53:41]1017 (14) - 77093643461234 [16:53:41]1041 (16) - 0000000000965400 [16:53:41]1040 (4) - 68421 [16:53:41]1012 (4) - 03.06.2024 10:33 [16:53:41]1206 (1) - 0 [16:53:41]OFD Sender: Remove packet 68421 [16:53:41]ProducePacketName [16:53:41]name=ofd_packets/00068421 [16:53:41]NVStorageDeleteData [16:53:41]Write to MH i2c: 01 00 00 48 50 98 [16:53:41]Write i2c OK [16:53:41]MH_I2C_Read... [16:53:41]Read from MH i2c: 01 [16:53:41]MH_I2C_Read... [16:53:41]Read from MH i2c: 01 07 00 [16:53:41]MH_I2C_Read... [16:53:41]Read from MH i2c: 01 07 00 48 50 00 00 00 00 00 F2 0C 9D [16:53:41]RasterBufferAndPrint [16:53:41]line [16:53:41]line [16:53:41]line [16:53:41]line [16:53:41]line [16:53:41]written 0, free lines is 3320 [16:53:41]MH_Cut [16:53:41]Write to MH i2c: D1 01 00 4F 50 01 71 [16:53:41]Write i2c OK [16:53:41]MH_I2C_Read... [16:53:41]Read from MH i2c: D1 [16:53:41]MH_I2C_Read... [16:53:41]Read from MH i2c: D1 01 00 [16:53:41]MH_I2C_Read... [16:53:41]Read from MH i2c: D1 01 00 4F 50 00 70 [16:53:41]Write to MH i2c: 01 00 00 50 50 A0 [16:53:41]Write i2c OK [16:53:41]MH_I2C_Read... [16:53:41]OFD Sender: No OFD packet to send [16:53:42]*** Cut start [16:53:42]*** Partial cut [16:53:42]*** CUTSNS_PIN = 1 [16:53:42]*** CUTSNS_PIN = 0 [16:53:42]*** Brake cut motor [16:53:42]Read from MH i2c: 01 [16:53:42]MH_I2C_Read... [16:53:42]*** Stop cut motor [16:53:42]*** Cut end [16:53:42]Read from MH i2c: 01 07 00 [16:53:42]MH_I2C_Read... [16:53:42]Read from MH i2c: 01 07 00 50 50 00 00 00 00 00 FF 0F B5 [16:53:42]process_action close_receipt done [16:53:42]requested_data is exist [16:53:42]produce_requested_data [16:53:42]requested_item fm.sn is exist - process it [16:53:42]wFMCommunicate request_size=4 [16:53:42]MH_SAM_APDU [16:53:42]CAPDU: 80 11 00 00 [16:53:42]Write to MH i2c: E2 08 00 51 50 80 11 00 00 00 00 00 00 1B [16:53:42]Write i2c OK [16:53:42]MH_I2C_Read... [16:53:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:53:42]Read from MH i2c: E2 [16:53:42]MH_I2C_Read... [16:53:42]Read from MH i2c: E2 17 00 [16:53:42]MH_I2C_Read... [16:53:42]Read from MH i2c: E2 17 00 51 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 66 [16:53:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [16:53:42]wFMCommunicate OK [16:53:42]requested_item fd.num is exist - process it [16:53:42]SAM_PROTO_GetFieldsCounters [16:53:42]wFMCommunicate request_size=4 [16:53:42]MH_SAM_APDU [16:53:42]CAPDU: 80 13 00 00 [16:53:42]Write to MH i2c: E2 08 00 52 50 80 13 00 00 00 00 00 00 1E [16:53:42]Write i2c OK [16:53:42]MH_I2C_Read... [16:53:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:53:42]Read from MH i2c: E2 [16:53:42]MH_I2C_Read... [16:53:42]Read from MH i2c: E2 62 00 [16:53:42]MH_I2C_Read... [16:53:42]Read from MH i2c: E2 62 00 52 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 45 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [16:53:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 45 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:53:42]wFMCommunicate OK [16:53:42]SAM_PROTO_GetFieldsCounters done [16:53:42]requested_item shift.num is exist - process it [16:53:42]requested_item shift.opened is exist - process it [16:53:42]req_shift_opened [16:53:42]FM_GetShiftState [16:53:42]SAM_PROTO_GetShiftState [16:53:42]wFMCommunicate request_size=4 [16:53:42]MH_SAM_APDU [16:53:42]CAPDU: 80 13 01 00 [16:53:42]Write to MH i2c: E2 08 00 53 50 80 13 01 00 00 00 00 00 20 [16:53:42]Write i2c OK [16:53:42]MH_I2C_Read... [16:53:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:53:42]Read from MH i2c: E2 [16:53:42]MH_I2C_Read... [16:53:42]Read from MH i2c: E2 0E 00 [16:53:42]MH_I2C_Read... [16:53:42]Read from MH i2c: E2 0E 00 53 50 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 FB [16:53:42]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [16:53:42]wFMCommunicate OK [16:53:42]SAM_PROTO_GetShiftState done [16:53:42]FM_GetShiftState done [16:53:42]req_shift_opened done [16:53:42]requested_item shift.open_date is exist - process it [16:53:42]req_shift_open_date [16:53:42]req_shift_open_date done [16:53:42]produce_requested_data done [16:53:42]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68421,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [16:53:42]process_action_free close_receipt [16:53:42]json_value_free [16:53:42]json_value_free done [16:53:42]process_json_proto returns [16:53:42]Send response to host [16:53:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68421,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [16:53:42]free response buf [16:53:42]execute_script done [16:53:42]execute_script returns [16:53:42]free content buf [16:53:42]Sock 6.Close socket [16:53:42]Sock 6.Thread stoped [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:54:59]accept exits with 5 [16:54:59]New connection [16:54:59]New thread 3066543460 created [16:54:59]Thread 3066686820 joined [16:54:59]Waiting for new connection... [16:54:59] Sock 5.Parse request [16:54:59]Sock 5.Check first char [16:54:59]Sock 5.First char is OK [16:54:59]request: POST /json_proto HTTP/1.0 [16:54:59]Method: POST [16:54:59]URL: /json_proto [16:54:59]Method is POST - this is cgi request [16:54:59]url: /json_proto [16:54:59]query_string will be loaded in cgi processing [16:54:59]execute_cgi json_proto POST (null) [16:54:59]execute_cgi path=json_proto method=POST [16:54:59]POST find Content-Length [16:54:59]Host: 172.17.36.132:8080 [16:54:59]Content-Length: 840 [16:54:59]Content-Type: application/json [16:54:59] [16:54:59]POST finish read [16:54:59]Found Content-Length = 840 [16:54:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706520", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:54:59]execute_script... [16:54:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706520", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:54:59]POST & json_proto [16:54:59]process_json_proto [16:54:59]json parsed OK: [16:54:59]protocol is kg_v1.0 [16:54:59]action value=close_receipt [16:54:59]process_action close_receipt [16:54:59]cmd_close_receipt [16:54:59]MH_GetDate [16:54:59]Write to MH i2c: F0 00 00 54 50 93 [16:54:59]Write i2c OK [16:54:59]MH_I2C_Read... [16:54:59]Read from MH i2c: F0 [16:54:59]MH_I2C_Read... [16:54:59]Read from MH i2c: F0 09 00 [16:54:59]MH_I2C_Read... [16:54:59]Read from MH i2c: F0 09 00 54 50 00 69 F5 5D 66 B2 22 B0 64 A5 [16:54:59]GetLastDocTimeStamp 1717433624 [16:54:59]current date 1717433705 [16:54:59]FM_GetShiftState [16:54:59]SAM_PROTO_GetShiftState [16:54:59]wFMCommunicate request_size=4 [16:54:59]MH_SAM_APDU [16:54:59]CAPDU: 80 13 01 00 [16:54:59]Write to MH i2c: E2 08 00 55 50 80 13 01 00 00 00 00 00 22 [16:54:59]Write i2c OK [16:54:59]MH_I2C_Read... [16:54:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:54:59]Read from MH i2c: E2 [16:54:59]MH_I2C_Read... [16:54:59]Read from MH i2c: E2 0E 00 [16:54:59]MH_I2C_Read... [16:54:59]Read from MH i2c: E2 0E 00 55 50 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 FD [16:54:59]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [16:54:59]wFMCommunicate OK [16:54:59]SAM_PROTO_GetShiftState done [16:54:59]FM_GetShiftState done [16:54:59]opened in 1717378033 [16:54:59]opened+sec_in_day 1717464433 [16:54:59]quantity*price = 30038 [16:54:59]sum+1 = 30039 [16:54:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.38 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.38 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 168 03.06.2024 16:55 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68422 ФПД: 42227103966947 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T165505&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68422&fm=42227103966947&tin=02508201610067®Number=0000000000098096&sum=30038 [16:55:00]StoreToDocumentArchive [16:55:00]shift 324 fd 68422 [16:55:00]save to /storage/0324/doc_00068422 [16:55:00]save last doc name /storage/0324/doc_00068422 to /storage/kkm_last_doc_name [16:55:00]save OK [16:55:00]Clear old archive folders... [16:55:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:55:00]tlvbuf is 00377BC0 [16:55:00]SAM_PROTO_ClearQueue [16:55:00]wFMCommunicate request_size=4 [16:55:00]MH_SAM_APDU [16:55:00]CAPDU: 80 09 00 00 [16:55:00]Write to MH i2c: E2 08 00 62 50 80 09 00 00 00 00 00 00 24 [16:55:00]Write i2c OK [16:55:00]MH_I2C_Read... [16:55:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:55:00]Read from MH i2c: E2 [16:55:00]MH_I2C_Read... [16:55:00]Read from MH i2c: E2 03 00 [16:55:00]MH_I2C_Read... [16:55:00]Read from MH i2c: E2 03 00 62 50 00 90 00 26 [16:55:00]RAPDU: 90 00 [16:55:00]wFMCommunicate OK [16:55:00]SAM_PROTO_ClearQueue done [16:55:00]KKMCreateOFDPacket [16:55:00]OFDProtocolAddRootSTLVToBuf [16:55:00]FM_MakeSignedData [16:55:00]FM_MakeSignedData [16:55:00]SAM_PROTO_SignData [16:55:00]wFMCommunicate request_size=4 [16:55:00]MH_SAM_APDU [16:55:00]CAPDU: 80 0D 01 02 [16:55:00]Write to MH i2c: E2 08 00 63 50 80 0D 01 02 00 00 00 00 2C [16:55:00]Write i2c OK [16:55:00]MH_I2C_Read... [16:55:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:55:00]Read from MH i2c: E2 [16:55:00]MH_I2C_Read... [16:55:00]Read from MH i2c: E2 03 00 [16:55:00]MH_I2C_Read... [16:55:00]Read from MH i2c: E2 03 00 63 50 00 90 00 27 [16:55:00]RAPDU: 90 00 [16:55:00]wFMCommunicate OK [16:55:00]wFMCommunicate request_size=255 [16:55:00]MH_SAM_APDU [16:55:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 69 F5 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 46 0B 01 00 35 04 06 00 26 [16:55:00]Write to MH i2c: E2 02 01 64 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 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 69 F5 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 46 0B 01 00 35 04 06 00 26 00 00 7F [16:55:00]Write i2c OK [16:55:00]MH_I2C_Read... [16:55:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:00]Read from MH i2c: E2 [16:55:00]MH_I2C_Read... [16:55:00]Read from MH i2c: E2 03 00 [16:55:00]MH_I2C_Read... [16:55:00]Read from MH i2c: E2 03 00 64 50 00 90 00 28 [16:55:00]RAPDU: 90 00 [16:55:00]wFMCommunicate OK [16:55:00]wFMCommunicate request_size=10 [16:55:00]MH_SAM_APDU [16:55:00]CAPDU: 80 0D 02 02 05 67 C3 88 26 E3 [16:55:00]Write to MH i2c: E2 0D 00 65 50 80 0D 02 02 05 00 67 C3 88 26 E3 00 00 F4 [16:55:00]Write i2c OK [16:55:00]MH_I2C_Read... [16:55:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:00]Read from MH i2c: E2 [16:55:00]MH_I2C_Read... [16:55:00]Read from MH i2c: E2 03 00 [16:55:00]MH_I2C_Read... [16:55:00]Read from MH i2c: E2 03 00 65 50 00 90 00 29 [16:55:00]RAPDU: 90 00 [16:55:00]wFMCommunicate OK [16:55:00]wFMCommunicate request_size=4 [16:55:00]MH_SAM_APDU [16:55:00]CAPDU: 80 0D 03 02 [16:55:00]Write to MH i2c: E2 08 00 66 50 80 0D 03 02 00 00 00 00 31 [16:55:00]Write i2c OK [16:55:00]MH_I2C_Read... [16:55:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:55:00]Read from MH i2c: E2 [16:55:00]MH_I2C_Read... [16:55:00]Read from MH i2c: E2 0B 00 [16:55:00]MH_I2C_Read... [16:55:00]Read from MH i2c: E2 0B 00 66 50 00 32 A5 58 41 7D AF B7 76 90 00 FB [16:55:00]RAPDU: 32 A5 58 41 7D AF B7 76 90 00 [16:55:00]wFMCommunicate OK [16:55:00]SAM_PROTO_SignData done [16:55:00]FM_MakeSignedData done [16:55:00]CreateOFDProtocolMessage [16:55:00]wFMCommunicate request_size=4 [16:55:00]MH_SAM_APDU [16:55:00]CAPDU: 80 11 00 00 [16:55:00]Write to MH i2c: E2 08 00 67 50 80 11 00 00 00 00 00 00 31 [16:55:00]Write i2c OK [16:55:00]MH_I2C_Read... [16:55:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:00]Read from MH i2c: E2 [16:55:00]MH_I2C_Read... [16:55:00]Read from MH i2c: E2 17 00 [16:55:00]MH_I2C_Read... [16:55:00]Read from MH i2c: E2 17 00 67 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 7C [16:55:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [16:55:00]wFMCommunicate OK [16:55:00]CreateOFDProtocolMessage done [16:55:00]OFDSenderStorePacket 68422 [16:55:00]StoreOFDPacket docnum=68422 [16:55:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 83 8B 07 01 54 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 69 F5 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 46 0B 01 00 35 04 06 00 26 67 C3 88 26 E3 32 A5 58 41 7D AF B7 76 [16:55:00]CheckFolder [16:55:00]dirname=/storage/ofd_packets [16:55:00]CheckFolder done [16:55:00]ProducePacketName [16:55:00]name=ofd_packets/00068422 [16:55:00]NVStorageSaveData ofd_packets/00068422 [16:55:00]File name is /storage/ofd_packets/00068422 [16:55:00]Write 301 bytes [16:55:00]NVStorageSaveData done [16:55:00]OFDSenderStorePacket done [16:55:00]KKMCreateOFDPacket done [16:55:00]NVStorageSaveData kkm_last_timestamp [16:55:00]File name is /storage/kkm_last_timestamp [16:55:00]Write 4 bytes [16:55:00]NVStorageSaveData done [16:55:00]ExternCall_PrintAddStr [16:55:00]wPrintStart [16:55:00]Write to MH i2c: 01 00 00 68 50 B8 [16:55:00]Write i2c OK [16:55:00]MH_I2C_Read... [16:55:00]Read from MH i2c: 01 [16:55:00]MH_I2C_Read... [16:55:00]Read from MH i2c: 01 07 00 [16:55:00]MH_I2C_Read... [16:55:00]Read from MH i2c: 01 07 00 68 50 00 00 00 00 00 FF 0F CD [16:55:00]RasterBufferAndPrint [16:55:00]line Счет N : (1)706520 [16:55:00]line ИНН: 02508201610067 [16:55:00]line Контрольно-Кассовый Чек [16:55:00]line ПРОДАЖА [16:55:00]line ТРК (МРК, ГНК) : 32 [16:55:00]line Товар: 2710124130 [16:55:00]line Аи-92-К-4 [16:55:00]line 4.490 * 66.90 [16:55:00]line = 300.38 [16:55:00]line НДС 12% НСП 1% [16:55:00]line > о реализуемом товаре [16:55:00]line ИТОГО: 300.38 [16:55:00]line НСП 1% : 2.66 [16:55:00]line НДС 12% : 31.90 [16:55:00]line Наличными: 0.00 [16:55:00]line Безнал.: 300.38 [16:55:00]line Место: АЗС № 62 "Партнер Нефть" [16:55:00]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [16:55:00]line СНО: Общий режим [16:55:00]line Чек 168 03.06.2024 16:55 [16:55:00]line Смена: 324 ФФД: 1.0 [16:55:00]line ЗНМ: 0300000181 [16:55:00]line РНМ: 0000000000098096 [16:55:00]line Версия ККМ: 001 [16:55:00]line Платежная система: АКБ Кыргызстан [16:55:00]line ФМ: 0000000000965400 [16:55:00]line ФД: 68422 [16:55:00]line ФПД: 42227103966947 [16:55:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T165505&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68422&fm=42227103966947&tin=02508201610067®Number=0000000000098096&sum=30038 [16:55:01]OFD Sender: Processing packet 68422 [packets to send 26, broken 25] [16:55:01]ProducePacketName [16:55:01]name=ofd_packets/00068422 [16:55:01]OFD Sender: To server: pG, [16:55:01]CommunicateWithHost lk.salyk.kg:30040 [16:55:01]ConnectInit lk.salyk.kg [16:55:01]written 0, free lines is 4095 [16:55:01]Connected sock=7 [16:55:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 83 8B 07 01 54 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 69 F5 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 46 0B 01 00 35 04 06 00 26 67 C3 88 26 E3 32 A5 58 41 7D AF B7 76 [16:55:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 78 A2 47 00 14 FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 46 0B 01 00 F4 03 04 00 64 9C 5D 66 B6 04 01 00 00 91 4D 8C 90 8D E3 21 55 [16:55:01]CommunicateWithHost err = 0 [16:55:01]CheckOFDResponse [16:55:01]1017 (14) - 77093643461234 [16:55:01]1041 (16) - 0000000000965400 [16:55:01]1040 (4) - 68422 [16:55:01]1012 (4) - 03.06.2024 10:35 [16:55:01]1206 (1) - 0 [16:55:01]OFD Sender: Remove packet 68422 [16:55:01]ProducePacketName [16:55:01]name=ofd_packets/00068422 [16:55:01]NVStorageDeleteData [16:55:01]Write to MH i2c: 01 00 00 92 50 E2 [16:55:01]Write i2c OK [16:55:01]MH_I2C_Read... [16:55:01]Read from MH i2c: 01 [16:55:01]MH_I2C_Read... [16:55:01]Read from MH i2c: 01 07 00 [16:55:01]MH_I2C_Read... [16:55:01]Read from MH i2c: 01 07 00 92 50 00 00 00 00 00 03 0D F9 [16:55:01]RasterBufferAndPrint [16:55:01]line [16:55:01]line [16:55:01]line [16:55:01]line [16:55:01]line [16:55:01]written 0, free lines is 3337 [16:55:01]MH_Cut [16:55:01]Write to MH i2c: D1 01 00 99 50 01 BB [16:55:01]Write i2c OK [16:55:01]MH_I2C_Read... [16:55:01]Read from MH i2c: D1 [16:55:01]MH_I2C_Read... [16:55:01]Read from MH i2c: D1 01 00 [16:55:01]MH_I2C_Read... [16:55:01]Read from MH i2c: D1 01 00 99 50 00 BA [16:55:01]Write to MH i2c: 01 00 00 9A 50 EA [16:55:01]Write i2c OK [16:55:01]MH_I2C_Read... [16:55:01]OFD Sender: No OFD packet to send [16:55:02]*** Cut start [16:55:02]*** Partial cut [16:55:02]*** CUTSNS_PIN = 1 [16:55:02]*** CUTSNS_PIN = 0 [16:55:02]*** Brake cut motor [16:55:03]Read from MH i2c: 01 [16:55:03]MH_I2C_Read... [16:55:03]*** Stop cut motor [16:55:03]*** Cut end [16:55:03]Read from MH i2c: 01 07 00 [16:55:03]MH_I2C_Read... [16:55:03]Read from MH i2c: 01 07 00 9A 50 00 00 00 00 00 FF 0F FF [16:55:03]process_action close_receipt done [16:55:03]requested_data is exist [16:55:03]produce_requested_data [16:55:03]requested_item fm.sn is exist - process it [16:55:03]wFMCommunicate request_size=4 [16:55:03]MH_SAM_APDU [16:55:03]CAPDU: 80 11 00 00 [16:55:03]Write to MH i2c: E2 08 00 9B 50 80 11 00 00 00 00 00 00 65 [16:55:03]Write i2c OK [16:55:03]MH_I2C_Read... [16:55:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:03]Read from MH i2c: E2 [16:55:03]MH_I2C_Read... [16:55:03]Read from MH i2c: E2 17 00 [16:55:03]MH_I2C_Read... [16:55:03]Read from MH i2c: E2 17 00 9B 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 B0 [16:55:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [16:55:03]wFMCommunicate OK [16:55:03]requested_item fd.num is exist - process it [16:55:03]SAM_PROTO_GetFieldsCounters [16:55:03]wFMCommunicate request_size=4 [16:55:03]MH_SAM_APDU [16:55:03]CAPDU: 80 13 00 00 [16:55:03]Write to MH i2c: E2 08 00 9C 50 80 13 00 00 00 00 00 00 68 [16:55:03]Write i2c OK [16:55:03]MH_I2C_Read... [16:55:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:55:03]Read from MH i2c: E2 [16:55:03]MH_I2C_Read... [16:55:03]Read from MH i2c: E2 62 00 [16:55:03]MH_I2C_Read... [16:55:03]Read from MH i2c: E2 62 00 9C 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 46 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 17 [16:55:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 46 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:55:03]wFMCommunicate OK [16:55:03]SAM_PROTO_GetFieldsCounters done [16:55:03]requested_item shift.num is exist - process it [16:55:03]requested_item shift.opened is exist - process it [16:55:03]req_shift_opened [16:55:03]FM_GetShiftState [16:55:03]SAM_PROTO_GetShiftState [16:55:03]wFMCommunicate request_size=4 [16:55:03]MH_SAM_APDU [16:55:03]CAPDU: 80 13 01 00 [16:55:03]Write to MH i2c: E2 08 00 9D 50 80 13 01 00 00 00 00 00 6A [16:55:03]Write i2c OK [16:55:03]MH_I2C_Read... [16:55:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:03]Read from MH i2c: E2 [16:55:03]MH_I2C_Read... [16:55:03]Read from MH i2c: E2 0E 00 [16:55:03]MH_I2C_Read... [16:55:03]Read from MH i2c: E2 0E 00 9D 50 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 45 [16:55:03]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [16:55:03]wFMCommunicate OK [16:55:03]SAM_PROTO_GetShiftState done [16:55:03]FM_GetShiftState done [16:55:03]req_shift_opened done [16:55:03]requested_item shift.open_date is exist - process it [16:55:03]req_shift_open_date [16:55:03]req_shift_open_date done [16:55:03]produce_requested_data done [16:55:03]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68422,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [16:55:03]process_action_free close_receipt [16:55:03]json_value_free [16:55:03]json_value_free done [16:55:03]process_json_proto returns [16:55:03]Send response to host [16:55:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68422,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [16:55:03]free response buf [16:55:03]execute_script done [16:55:03]execute_script returns [16:55:03]free content buf [16:55:03]Sock 5.Close socket [16:55:03]Sock 5.Thread stoped [16:55:07]OFD Sender: No OFD packet to send [16:55:12]OFD Sender: No OFD packet to send [16:55:17]OFD Sender: No OFD packet to send [16:55:22]OFD Sender: No OFD packet to send [16:55:27]OFD Sender: No OFD packet to send [16:55:32]OFD Sender: No OFD packet to send [16:55:37]OFD Sender: No OFD packet to send [16:55:42]OFD Sender: No OFD packet to send [16:55:47]OFD Sender: No OFD packet to send [16:55:52]OFD Sender: No OFD packet to send [16:55:57]OFD Sender: No OFD packet to send [16:56:02]OFD Sender: No OFD packet to send [16:56:07]OFD Sender: No OFD packet to send [16:56:12]OFD Sender: No OFD packet to send [16:56:17]OFD Sender: No OFD packet to send [16:56:22]OFD Sender: No OFD packet to send [16:56:27]OFD Sender: No OFD packet to send [16:56:32]OFD Sender: No OFD packet to send [16:56:37]OFD Sender: No OFD packet to send [16:56:42]OFD Sender: No OFD packet to send [16:56:47]OFD Sender: No OFD packet to send [16:56:52]OFD Sender: No OFD packet to send [16:56:57]OFD Sender: No OFD packet to send [16:57:02]OFD Sender: No OFD packet to send [16:57:07]OFD Sender: No OFD packet to send [16:57:12]OFD Sender: No OFD packet to send [16:57:17]OFD Sender: No OFD packet to send [16:57:22]OFD Sender: No OFD packet to send [16:57:27]OFD Sender: No OFD packet to send [16:57:32]OFD Sender: No OFD packet to send [16:57:37]OFD Sender: No OFD packet to send [16:57:42]OFD Sender: No OFD packet to send [16:57:47]OFD Sender: No OFD packet to send [16:57:52]OFD Sender: No OFD packet to send [16:57:57]OFD Sender: No OFD packet to send [16:57:57]accept exits with 6 [16:57:57]New connection [16:57:57]New thread 3066686820 created [16:57:57]Thread 3066543460 joined [16:57:57]Waiting for new connection... [16:57:57] Sock 6.Parse request [16:57:57]Sock 6.Check first char [16:57:57]Sock 6.First char is OK [16:57:57]request: POST /json_proto HTTP/1.0 [16:57:57]Method: POST [16:57:57]URL: /json_proto [16:57:57]Method is POST - this is cgi request [16:57:57]url: /json_proto [16:57:57]query_string will be loaded in cgi processing [16:57:57]execute_cgi json_proto POST (null) [16:57:57]execute_cgi path=json_proto method=POST [16:57:57]POST find Content-Length [16:57:57]Host: 172.17.36.132:8080 [16:57:57]Content-Length: 682 [16:57:57]Content-Type: application/json [16:57:57] [16:57:57]POST finish read [16:57:57]Found Content-Length = 682 [16:57:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706521", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 13.540, "sum" : 1000.61, "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:57:57]execute_script... [16:57:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706521", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 13.540, "sum" : 1000.61, "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:57:57]POST & json_proto [16:57:57]process_json_proto [16:57:57]json parsed OK: [16:57:57]protocol is kg_v1.0 [16:57:57]action value=close_receipt [16:57:57]process_action close_receipt [16:57:57]cmd_close_receipt [16:57:57]MH_GetDate [16:57:57]Write to MH i2c: F0 00 00 9E 50 DD [16:57:57]Write i2c OK [16:57:57]MH_I2C_Read... [16:57:57]Read from MH i2c: F0 [16:57:57]MH_I2C_Read... [16:57:57]Read from MH i2c: F0 09 00 [16:57:57]MH_I2C_Read... [16:57:57]Read from MH i2c: F0 09 00 9E 50 00 1B F6 5D 66 B2 22 B0 64 A2 [16:57:57]GetLastDocTimeStamp 1717433705 [16:57:57]current date 1717433883 [16:57:57]FM_GetShiftState [16:57:57]SAM_PROTO_GetShiftState [16:57:57]wFMCommunicate request_size=4 [16:57:57]MH_SAM_APDU [16:57:57]CAPDU: 80 13 01 00 [16:57:57]Write to MH i2c: E2 08 00 9F 50 80 13 01 00 00 00 00 00 6C [16:57:57]Write i2c OK [16:57:57]MH_I2C_Read... [16:57:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:57:57]Read from MH i2c: E2 [16:57:57]MH_I2C_Read... [16:57:57]Read from MH i2c: E2 0E 00 [16:57:57]MH_I2C_Read... [16:57:57]Read from MH i2c: E2 0E 00 9F 50 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 47 [16:57:57]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [16:57:57]wFMCommunicate OK [16:57:57]SAM_PROTO_GetShiftState done [16:57:57]FM_GetShiftState done [16:57:57]opened in 1717378033 [16:57:57]opened+sec_in_day 1717464433 [16:57:57]quantity*price = 100060 [16:57:57]sum+1 = 100062 [16:57:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 169 03.06.2024 16:58 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68423 ФПД: 275686253485730 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T165803&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68423&fm=275686253485730&tin=02508201610067®Number=0000000000098096&sum=100000 [16:57:58]StoreToDocumentArchive [16:57:58]shift 324 fd 68423 [16:57:58]save to /storage/0324/doc_00068423 [16:57:58]save last doc name /storage/0324/doc_00068423 to /storage/kkm_last_doc_name [16:57:58]save OK [16:57:58]Clear old archive folders... [16:57:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:57:58]tlvbuf is 00377E70 [16:57:58]SAM_PROTO_ClearQueue [16:57:58]wFMCommunicate request_size=4 [16:57:58]MH_SAM_APDU [16:57:58]CAPDU: 80 09 00 00 [16:57:58]Write to MH i2c: E2 08 00 AC 50 80 09 00 00 00 00 00 00 6E [16:57:58]Write i2c OK [16:57:58]MH_I2C_Read... [16:57:58]Read from MH i2c: E2 [16:57:58]MH_I2C_Read... [16:57:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:57:58]Read from MH i2c: E2 03 00 [16:57:58]MH_I2C_Read... [16:57:58]Read from MH i2c: E2 03 00 AC 50 00 90 00 70 [16:57:58]RAPDU: 90 00 [16:57:58]wFMCommunicate OK [16:57:58]SAM_PROTO_ClearQueue done [16:57:58]KKMCreateOFDPacket [16:57:58]OFDProtocolAddRootSTLVToBuf [16:57:58]FM_MakeSignedData [16:57:58]FM_MakeSignedData [16:57:58]SAM_PROTO_SignData [16:57:58]wFMCommunicate request_size=4 [16:57:58]MH_SAM_APDU [16:57:58]CAPDU: 80 0D 01 02 [16:57:58]Write to MH i2c: E2 08 00 AD 50 80 0D 01 02 00 00 00 00 76 [16:57:58]Write i2c OK [16:57:58]MH_I2C_Read... [16:57:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:57:58]Read from MH i2c: E2 [16:57:58]MH_I2C_Read... [16:57:58]Read from MH i2c: E2 03 00 [16:57:58]MH_I2C_Read... [16:57:58]Read from MH i2c: E2 03 00 AD 50 00 90 00 71 [16:57:58]RAPDU: 90 00 [16:57:58]wFMCommunicate OK [16:57:58]wFMCommunicate request_size=255 [16:57:58]MH_SAM_APDU [16:57:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 1B F6 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 47 0B 01 00 35 04 06 00 FA [16:57:58]Write to MH i2c: E2 02 01 AE 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 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 1B F6 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 47 0B 01 00 35 04 06 00 FA 00 00 79 [16:57:58]Write i2c OK [16:57:58]MH_I2C_Read... [16:57:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:57:59]Read from MH i2c: E2 [16:57:59]MH_I2C_Read... [16:57:59]Read from MH i2c: E2 03 00 [16:57:59]MH_I2C_Read... [16:57:59]Read from MH i2c: E2 03 00 AE 50 00 90 00 72 [16:57:59]RAPDU: 90 00 [16:57:59]wFMCommunicate OK [16:57:59]wFMCommunicate request_size=10 [16:57:59]MH_SAM_APDU [16:57:59]CAPDU: 80 0D 02 02 05 BC 35 35 5E A2 [16:57:59]Write to MH i2c: E2 0D 00 AF 50 80 0D 02 02 05 00 BC 35 35 5E A2 00 00 A9 [16:57:59]Write i2c OK [16:57:59]MH_I2C_Read... [16:57:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:57:59]Read from MH i2c: E2 [16:57:59]MH_I2C_Read... [16:57:59]Read from MH i2c: E2 03 00 [16:57:59]MH_I2C_Read... [16:57:59]Read from MH i2c: E2 03 00 AF 50 00 90 00 73 [16:57:59]RAPDU: 90 00 [16:57:59]wFMCommunicate OK [16:57:59]wFMCommunicate request_size=4 [16:57:59]MH_SAM_APDU [16:57:59]CAPDU: 80 0D 03 02 [16:57:59]Write to MH i2c: E2 08 00 B0 50 80 0D 03 02 00 00 00 00 7B [16:57:59]Write i2c OK [16:57:59]MH_I2C_Read... [16:57:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:57:59]Read from MH i2c: E2 [16:57:59]MH_I2C_Read... [16:57:59]Read from MH i2c: E2 0B 00 [16:57:59]MH_I2C_Read... [16:57:59]Read from MH i2c: E2 0B 00 B0 50 00 F7 92 D4 A5 B6 BF DD D1 90 00 A1 [16:57:59]RAPDU: F7 92 D4 A5 B6 BF DD D1 90 00 [16:57:59]wFMCommunicate OK [16:57:59]SAM_PROTO_SignData done [16:57:59]FM_MakeSignedData done [16:57:59]CreateOFDProtocolMessage [16:57:59]wFMCommunicate request_size=4 [16:57:59]MH_SAM_APDU [16:57:59]CAPDU: 80 11 00 00 [16:57:59]Write to MH i2c: E2 08 00 B1 50 80 11 00 00 00 00 00 00 7B [16:57:59]Write i2c OK [16:57:59]MH_I2C_Read... [16:57:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:57:59]Read from MH i2c: E2 [16:57:59]MH_I2C_Read... [16:57:59]Read from MH i2c: E2 17 00 [16:57:59]MH_I2C_Read... [16:57:59]Read from MH i2c: E2 17 00 B1 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 C6 [16:57:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [16:57:59]wFMCommunicate OK [16:57:59]CreateOFDProtocolMessage done [16:57:59]OFDSenderStorePacket 68423 [16:57:59]StoreOFDPacket docnum=68423 [16:57:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 F1 FC 07 01 24 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 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 1B F6 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 47 0B 01 00 35 04 06 00 FA BC 35 35 5E A2 F7 92 D4 A5 B6 BF DD D1 [16:57:59]CheckFolder [16:57:59]dirname=/storage/ofd_packets [16:57:59]CheckFolder done [16:57:59]ProducePacketName [16:57:59]name=ofd_packets/00068423 [16:57:59]NVStorageSaveData ofd_packets/00068423 [16:57:59]File name is /storage/ofd_packets/00068423 [16:57:59]Write 301 bytes [16:57:59]NVStorageSaveData done [16:57:59]OFDSenderStorePacket done [16:57:59]KKMCreateOFDPacket done [16:57:59]NVStorageSaveData kkm_last_timestamp [16:57:59]File name is /storage/kkm_last_timestamp [16:57:59]Write 4 bytes [16:57:59]NVStorageSaveData done [16:57:59]ExternCall_PrintAddStr [16:57:59]wPrintStart [16:57:59]Write to MH i2c: 01 00 00 B2 50 02 [16:57:59]Write i2c OK [16:57:59]MH_I2C_Read... [16:57:59]Read from MH i2c: 01 [16:57:59]MH_I2C_Read... [16:57:59]Read from MH i2c: 01 07 00 [16:57:59]MH_I2C_Read... [16:57:59]Read from MH i2c: 01 07 00 B2 50 00 00 00 00 00 FF 0F 17 [16:57:59]RasterBufferAndPrint [16:57:59]line Счет N : (1)706521 [16:57:59]line ИНН: 02508201610067 [16:57:59]line Контрольно-Кассовый Чек [16:57:59]line ПРОДАЖА [16:57:59]line ТРК (МРК, ГНК) : 43 [16:57:59]line Товар: 2710124500 [16:57:59]line Аи-95-К-5 [16:57:59]line 13.540 * 73.90 [16:57:59]line = 1000.61 [16:57:59]line НДС 12% НСП 1% [16:57:59]line > о реализуемом товаре [16:57:59]line ОКРУГЛЕНИЕ: -0.61 [16:57:59]line ИТОГО: 1000.00 [16:57:59]line Внесено: 1000.00 [16:57:59]line СДАЧА: 0.00 [16:57:59]line НСП 1% : 8.85 [16:57:59]line НДС 12% : 106.26 [16:57:59]line Наличными: 1000.00 [16:57:59]line Безнал.: 0.00 [16:57:59]line Место: АЗС № 62 "Партнер Нефть" [16:57:59]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [16:57:59]line СНО: Общий режим [16:57:59]line Чек 169 03.06.2024 16:58 [16:57:59]line Смена: 324 ФФД: 1.0 [16:57:59]line ЗНМ: 0300000181 [16:57:59]line РНМ: 0000000000098096 [16:57:59]line Версия ККМ: 001 [16:57:59]line ФМ: 0000000000965400 [16:57:59]line ФД: 68423 [16:57:59]line ФПД: 275686253485730 [16:57:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T165803&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68423&fm=275686253485730&tin=02508201610067®Number=0000000000098096&sum=100000 [16:57:59]OFD Sender: Processing packet 68423 [packets to send 26, broken 25] [16:57:59]ProducePacketName [16:57:59]name=ofd_packets/00068423 [16:57:59]OFD Sender: To server: pG, [16:57:59]CommunicateWithHost lk.salyk.kg:30040 [16:57:59]ConnectInit lk.salyk.kg [16:57:59]written 0, free lines is 4095 [16:57:59]Connected sock=7 [16:57:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 F1 FC 07 01 24 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 E4 34 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 DD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 1B F6 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 47 0B 01 00 35 04 06 00 FA BC 35 35 5E A2 F7 92 D4 A5 B6 BF DD D1 [16:57:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 BE 01 47 00 98 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 47 0B 01 00 F4 03 04 00 17 9D 5D 66 B6 04 01 00 00 48 FA C6 DB 88 8B 42 8A [16:57:59]CommunicateWithHost err = 0 [16:57:59]CheckOFDResponse [16:57:59]1017 (14) - 77093643461234 [16:57:59]1041 (16) - 0000000000965400 [16:57:59]1040 (4) - 68423 [16:57:59]1012 (4) - 03.06.2024 10:38 [16:57:59]1206 (1) - 0 [16:57:59]OFD Sender: Remove packet 68423 [16:57:59]ProducePacketName [16:57:59]name=ofd_packets/00068423 [16:57:59]NVStorageDeleteData [16:58:00]Write to MH i2c: 01 00 00 DD 50 2D [16:58:00]Write i2c OK [16:58:00]MH_I2C_Read... [16:58:00]Read from MH i2c: 01 [16:58:00]MH_I2C_Read... [16:58:00]Read from MH i2c: 01 07 00 [16:58:00]MH_I2C_Read... [16:58:00]Read from MH i2c: 01 07 00 DD 50 00 00 00 00 00 F0 0C 30 [16:58:00]RasterBufferAndPrint [16:58:00]line [16:58:00]line [16:58:00]line [16:58:00]line [16:58:00]line [16:58:00]written 0, free lines is 3321 [16:58:00]MH_Cut [16:58:00]Write to MH i2c: D1 01 00 E4 50 01 06 [16:58:00]Write i2c OK [16:58:00]MH_I2C_Read... [16:58:00]Read from MH i2c: D1 [16:58:00]MH_I2C_Read... [16:58:00]Read from MH i2c: D1 01 00 [16:58:00]MH_I2C_Read... [16:58:00]Read from MH i2c: D1 01 00 E4 50 00 05 [16:58:00]Write to MH i2c: 01 00 00 E5 50 35 [16:58:00]Write i2c OK [16:58:00]MH_I2C_Read... [16:58:00]OFD Sender: No OFD packet to send [16:58:00]*** Cut start [16:58:00]*** Partial cut [16:58:00]*** CUTSNS_PIN = 1 [16:58:00]*** CUTSNS_PIN = 0 [16:58:01]*** Brake cut motor [16:58:01]Read from MH i2c: 01 [16:58:01]MH_I2C_Read... [16:58:01]*** Stop cut motor [16:58:01]*** Cut end [16:58:01]Read from MH i2c: 01 07 00 [16:58:01]MH_I2C_Read... [16:58:01]Read from MH i2c: 01 07 00 E5 50 00 00 00 00 00 FF 0F 4A [16:58:01]process_action close_receipt done [16:58:01]requested_data is exist [16:58:01]produce_requested_data [16:58:01]requested_item fm.sn is exist - process it [16:58:01]wFMCommunicate request_size=4 [16:58:01]MH_SAM_APDU [16:58:01]CAPDU: 80 11 00 00 [16:58:01]Write to MH i2c: E2 08 00 E6 50 80 11 00 00 00 00 00 00 B0 [16:58:01]Write i2c OK [16:58:01]MH_I2C_Read... [16:58:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:58:01]Read from MH i2c: E2 [16:58:01]MH_I2C_Read... [16:58:01]Read from MH i2c: E2 17 00 [16:58:01]MH_I2C_Read... [16:58:01]Read from MH i2c: E2 17 00 E6 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 FB [16:58:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [16:58:01]wFMCommunicate OK [16:58:01]requested_item fd.num is exist - process it [16:58:01]SAM_PROTO_GetFieldsCounters [16:58:01]wFMCommunicate request_size=4 [16:58:01]MH_SAM_APDU [16:58:01]CAPDU: 80 13 00 00 [16:58:01]Write to MH i2c: E2 08 00 E7 50 80 13 00 00 00 00 00 00 B3 [16:58:01]Write i2c OK [16:58:01]MH_I2C_Read... [16:58:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:58:01]Read from MH i2c: E2 [16:58:01]MH_I2C_Read... [16:58:01]Read from MH i2c: E2 62 00 [16:58:01]MH_I2C_Read... [16:58:01]Read from MH i2c: E2 62 00 E7 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 47 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 66 [16:58:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 47 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:58:01]wFMCommunicate OK [16:58:01]SAM_PROTO_GetFieldsCounters done [16:58:01]requested_item shift.num is exist - process it [16:58:01]requested_item shift.opened is exist - process it [16:58:01]req_shift_opened [16:58:01]FM_GetShiftState [16:58:01]SAM_PROTO_GetShiftState [16:58:01]wFMCommunicate request_size=4 [16:58:01]MH_SAM_APDU [16:58:01]CAPDU: 80 13 01 00 [16:58:01]Write to MH i2c: E2 08 00 E8 50 80 13 01 00 00 00 00 00 B5 [16:58:01]Write i2c OK [16:58:01]MH_I2C_Read... [16:58:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:58:01]Read from MH i2c: E2 [16:58:01]MH_I2C_Read... [16:58:01]Read from MH i2c: E2 0E 00 [16:58:01]MH_I2C_Read... [16:58:01]Read from MH i2c: E2 0E 00 E8 50 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 90 [16:58:01]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [16:58:01]wFMCommunicate OK [16:58:01]SAM_PROTO_GetShiftState done [16:58:01]FM_GetShiftState done [16:58:01]req_shift_opened done [16:58:01]requested_item shift.open_date is exist - process it [16:58:01]req_shift_open_date [16:58:01]req_shift_open_date done [16:58:01]produce_requested_data done [16:58:01]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68423,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [16:58:01]process_action_free close_receipt [16:58:01]json_value_free [16:58:01]json_value_free done [16:58:01]process_json_proto returns [16:58:01]Send response to host [16:58:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68423,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [16:58:01]free response buf [16:58:01]execute_script done [16:58:01]execute_script returns [16:58:01]free content buf [16:58:01]Sock 6.Close socket [16:58:01]Sock 6.Thread stoped [16:58:05]OFD Sender: No OFD packet to send [16:58:10]OFD Sender: No OFD packet to send [16:58:15]OFD Sender: No OFD packet to send [16:58:20]OFD Sender: No OFD packet to send [16:58:25]OFD Sender: No OFD packet to send [16:58:30]OFD Sender: No OFD packet to send [16:58:35]OFD Sender: No OFD packet to send [16:58:40]OFD Sender: No OFD packet to send [16:58:45]OFD Sender: No OFD packet to send [16:58:50]OFD Sender: No OFD packet to send [16:58:55]OFD Sender: No OFD packet to send [16:59:00]OFD Sender: No OFD packet to send [16:59:05]OFD Sender: No OFD packet to send [16:59:10]OFD Sender: No OFD packet to send [16:59:15]OFD Sender: No OFD packet to send [16:59:20]OFD Sender: No OFD packet to send [16:59:25]OFD Sender: No OFD packet to send [16:59:30]OFD Sender: No OFD packet to send [16:59:35]OFD Sender: No OFD packet to send [16:59:40]OFD Sender: No OFD packet to send [16:59:45]OFD Sender: No OFD packet to send [16:59:50]OFD Sender: No OFD packet to send [16:59:55]OFD Sender: No OFD packet to send [17:00:00]OFD Sender: No OFD packet to send [17:00:05]OFD Sender: No OFD packet to send [17:00:10]OFD Sender: No OFD packet to send [17:00:15]OFD Sender: No OFD packet to send [17:00:20]OFD Sender: No OFD packet to send [17:00:25]OFD Sender: No OFD packet to send [17:00:30]OFD Sender: No OFD packet to send [17:00:35]OFD Sender: No OFD packet to send [17:00:40]OFD Sender: No OFD packet to send [17:00:45]OFD Sender: No OFD packet to send [17:00:50]OFD Sender: No OFD packet to send [17:00:55]OFD Sender: No OFD packet to send [17:01:00]OFD Sender: No OFD packet to send [17:01:05]OFD Sender: No OFD packet to send [17:01:10]OFD Sender: No OFD packet to send [17:01:15]OFD Sender: No OFD packet to send [17:01:20]OFD Sender: No OFD packet to send [17:01:25]OFD Sender: No OFD packet to send [17:01:30]OFD Sender: No OFD packet to send [17:01:35]OFD Sender: No OFD packet to send [17:01:40]OFD Sender: No OFD packet to send [17:01:45]OFD Sender: No OFD packet to send [17:01:50]OFD Sender: No OFD packet to send [17:01:55]OFD Sender: No OFD packet to send [17:02:00]OFD Sender: No OFD packet to send [17:02:05]OFD Sender: No OFD packet to send [17:02:10]OFD Sender: No OFD packet to send [17:02:15]OFD Sender: No OFD packet to send [17:02:20]OFD Sender: No OFD packet to send [17:02:25]OFD Sender: No OFD packet to send [17:02:30]OFD Sender: No OFD packet to send [17:02:35]OFD Sender: No OFD packet to send [17:02:40]OFD Sender: No OFD packet to send [17:02:45]OFD Sender: No OFD packet to send [17:02:50]OFD Sender: No OFD packet to send [17:02:55]OFD Sender: No OFD packet to send [17:03:00]OFD Sender: No OFD packet to send [17:03:05]OFD Sender: No OFD packet to send [17:03:10]OFD Sender: No OFD packet to send [17:03:15]OFD Sender: No OFD packet to send [17:03:20]OFD Sender: No OFD packet to send [17:03:25]OFD Sender: No OFD packet to send [17:03:30]OFD Sender: No OFD packet to send [17:03:35]OFD Sender: No OFD packet to send [17:03:40]OFD Sender: No OFD packet to send [17:03:45]OFD Sender: No OFD packet to send [17:03:50]OFD Sender: No OFD packet to send [17:03:55]OFD Sender: No OFD packet to send [17:04:00]OFD Sender: No OFD packet to send [17:04:05]OFD Sender: No OFD packet to send [17:04:10]OFD Sender: No OFD packet to send [17:04:15]OFD Sender: No OFD packet to send [17:04:20]OFD Sender: No OFD packet to send [17:04:25]OFD Sender: No OFD packet to send [17:04:30]OFD Sender: No OFD packet to send [17:04:35]OFD Sender: No OFD packet to send [17:04:40]OFD Sender: No OFD packet to send [17:04:45]OFD Sender: No OFD packet to send [17:04:50]OFD Sender: No OFD packet to send [17:04:55]OFD Sender: No OFD packet to send [17:05:00]OFD Sender: No OFD packet to send [17:05:05]OFD Sender: No OFD packet to send [17:05:10]OFD Sender: No OFD packet to send [17:05:15]OFD Sender: No OFD packet to send [17:05:20]OFD Sender: No OFD packet to send [17:05:25]OFD Sender: No OFD packet to send [17:05:30]OFD Sender: No OFD packet to send [17:05:35]OFD Sender: No OFD packet to send [17:05:40]OFD Sender: No OFD packet to send [17:05:45]OFD Sender: No OFD packet to send [17:05:50]OFD Sender: No OFD packet to send [17:05:55]OFD Sender: No OFD packet to send [17:06:00]OFD Sender: No OFD packet to send [17:06:05]OFD Sender: No OFD packet to send [17:06:10]OFD Sender: No OFD packet to send [17:06:15]OFD Sender: No OFD packet to send [17:06:20]OFD Sender: No OFD packet to send [17:06:25]OFD Sender: No OFD packet to send [17:06:30]OFD Sender: No OFD packet to send [17:06:35]OFD Sender: No OFD packet to send [17:06:40]OFD Sender: No OFD packet to send [17:06:45]OFD Sender: No OFD packet to send [17:06:50]OFD Sender: No OFD packet to send [17:06:55]OFD Sender: No OFD packet to send [17:07:00]OFD Sender: No OFD packet to send [17:07:05]OFD Sender: No OFD packet to send [17:07:10]OFD Sender: No OFD packet to send [17:07:15]OFD Sender: No OFD packet to send [17:07:20]OFD Sender: No OFD packet to send [17:07:25]OFD Sender: No OFD packet to send [17:07:30]OFD Sender: No OFD packet to send [17:07:35]OFD Sender: No OFD packet to send [17:07:40]OFD Sender: No OFD packet to send [17:07:45]OFD Sender: No OFD packet to send [17:07:50]OFD Sender: No OFD packet to send [17:07:56]OFD Sender: No OFD packet to send [17:08:01]OFD Sender: No OFD packet to send [17:08:06]OFD Sender: No OFD packet to send [17:08:11]OFD Sender: No OFD packet to send [17:08:16]OFD Sender: No OFD packet to send [17:08:21]OFD Sender: No OFD packet to send [17:08:26]OFD Sender: No OFD packet to send [17:08:31]OFD Sender: No OFD packet to send [17:08:36]OFD Sender: No OFD packet to send [17:08:41]OFD Sender: No OFD packet to send [17:08:46]OFD Sender: No OFD packet to send [17:08:51]OFD Sender: No OFD packet to send [17:08:56]OFD Sender: No OFD packet to send [17:09:01]OFD Sender: No OFD packet to send [17:09:06]OFD Sender: No OFD packet to send [17:09:11]OFD Sender: No OFD packet to send [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:21]OFD Sender: No OFD packet to send [17:10:26]OFD Sender: No OFD packet to send [17:10:31]OFD Sender: No OFD packet to send [17:10:36]OFD Sender: No OFD packet to send [17:10:41]OFD Sender: No OFD packet to send [17:10:46]OFD Sender: No OFD packet to send [17:10:51]OFD Sender: No OFD packet to send [17:10:56]OFD Sender: No OFD packet to send [17:11:01]OFD Sender: No OFD packet to send [17:11:06]OFD Sender: No OFD packet to send [17:11:11]OFD Sender: No OFD packet to send [17:11:16]OFD Sender: No OFD packet to send [17:11:21]OFD Sender: No OFD packet to send [17:11:26]OFD Sender: No OFD packet to send [17:11:31]OFD Sender: No OFD packet to send [17:11:36]OFD Sender: No OFD packet to send [17:11:41]OFD Sender: No OFD packet to send [17:11:46]OFD Sender: No OFD packet to send [17:11:51]OFD Sender: No OFD packet to send [17:11:56]OFD Sender: No OFD packet to send [17:12:01]OFD Sender: No OFD packet to send [17:12:06]OFD Sender: No OFD packet to send [17:12:11]OFD Sender: No OFD packet to send [17:12:16]OFD Sender: No OFD packet to send [17:12:21]OFD Sender: No OFD packet to send [17:12:26]OFD Sender: No OFD packet to send [17:12:31]OFD Sender: No OFD packet to send [17:12:36]OFD Sender: No OFD packet to send [17:12:41]OFD Sender: No OFD packet to send [17:12:46]OFD Sender: No OFD packet to send [17:12:51]OFD Sender: No OFD packet to send [17:12:56]OFD Sender: No OFD packet to send [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:36]OFD Sender: No OFD packet to send [17:16:41]OFD Sender: No OFD packet to send [17:16:45]accept exits with 5 [17:16:45]New connection [17:16:45]New thread 3066543460 created [17:16:45]Thread 3066686820 joined [17:16:45]Waiting for new connection... [17:16:45] Sock 5.Parse request [17:16:45]Sock 5.Check first char [17:16:45]Sock 5.First char is OK [17:16:45]request: POST /json_proto HTTP/1.0 [17:16:45]Method: POST [17:16:45]URL: /json_proto [17:16:45]Method is POST - this is cgi request [17:16:45]url: /json_proto [17:16:45]query_string will be loaded in cgi processing [17:16:45]execute_cgi json_proto POST (null) [17:16:45]execute_cgi path=json_proto method=POST [17:16:45]POST find Content-Length [17:16:45]Host: 172.17.36.132:8080 [17:16:45]Content-Length: 1185 [17:16:45]Content-Type: application/json [17:16:45] [17:16:45]POST finish read [17:16:45]Found Content-Length = 1185 [17:16:45]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706523\u000A03.06.2024 16:54\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-4\u000A 1.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 72.90\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A43440\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:16:45]execute_script... [17:16:45]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706523\u000A03.06.2024 16:54\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-4\u000A 1.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 72.90\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A43440\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:16:45]POST & json_proto [17:16:45]process_json_proto [17:16:45]json parsed OK: [17:16:45]protocol is kg_v1.0 [17:16:45]action value=print_text [17:16:45]process_action print_text [17:16:45]cmd_print_text [17:16:45]ExternCall_PrintAddStr [17:16:45]wPrintStart [17:16:45]Write to MH i2c: 01 00 00 E9 50 39 [17:16:45]Write i2c OK [17:16:45]MH_I2C_Read... [17:16:45]Read from MH i2c: 01 [17:16:45]MH_I2C_Read... [17:16:45]Read from MH i2c: 01 07 00 [17:16:45]MH_I2C_Read... [17:16:45]Read from MH i2c: 01 07 00 E9 50 00 00 00 00 00 FF 0F 4E [17:16:45]RasterBufferAndPrint [17:16:45]line *****ТОВАРНЫЙ ЧЕК***** [17:16:45]line АЗС 62 [17:16:45]line Партнер нефть [17:16:45]line 02508201610067 [17:16:45]line Кассир : Балаев А. [17:16:45]line Счет N : (1)706523 [17:16:45]line 03.06.2024 16:54 [17:16:45]line ПРОДАЖА [17:16:45]line ТРК (МРК, ГНК): 21 [17:16:45]line Вид ГСМ : 2710194210 [17:16:45]line ДТ(л)-К-4 [17:16:45]line 1.000 x 72.90 [17:16:45]line ИТОГ: 72.90 [17:16:45]line Тип оплаты: Талоны: Топливная Карта [17:16:45]line 43440 [17:16:45]line ______________________ [17:16:45]line (подпись) [17:16:45]written 0, free lines is 4095 [17:16:45]Write to MH i2c: 01 00 00 FD 50 4D [17:16:45]Write i2c OK [17:16:45]MH_I2C_Read... [17:16:45]Read from MH i2c: 01 [17:16:45]MH_I2C_Read... [17:16:45]Read from MH i2c: 01 07 00 [17:16:45]MH_I2C_Read... [17:16:45]Read from MH i2c: 01 07 00 FD 50 00 00 00 00 00 0E 0E 70 [17:16:45]RasterBufferAndPrint [17:16:45]line [17:16:45]line [17:16:45]line [17:16:45]line [17:16:45]line [17:16:45]written 0, free lines is 3600 [17:16:45]MH_Cut [17:16:45]Write to MH i2c: D1 01 00 04 51 01 27 [17:16:45]Write i2c OK [17:16:45]MH_I2C_Read... [17:16:45]Read from MH i2c: D1 [17:16:45]MH_I2C_Read... [17:16:45]Read from MH i2c: D1 01 00 [17:16:45]MH_I2C_Read... [17:16:45]Read from MH i2c: D1 01 00 04 51 00 26 [17:16:45]Write to MH i2c: 01 00 00 05 51 56 [17:16:45]Write i2c OK [17:16:45]MH_I2C_Read... [17:16:46]*** Cut start [17:16:46]*** Partial cut [17:16:46]*** CUTSNS_PIN = 1 [17:16:46]*** CUTSNS_PIN = 0 [17:16:46]OFD Sender: No OFD packet to send [17:16:46]*** Brake cut motor [17:16:46]Read from MH i2c: 01 [17:16:46]MH_I2C_Read... [17:16:46]*** Stop cut motor [17:16:46]*** Cut end [17:16:46]Read from MH i2c: 01 07 00 [17:16:46]MH_I2C_Read... [17:16:46]Read from MH i2c: 01 07 00 05 51 00 00 00 00 00 FF 0F 6B [17:16:46]process_action print_text done [17:16:46]requested_data is exist [17:16:46]produce_requested_data [17:16:46]requested_item fm.sn is exist - process it [17:16:46]wFMCommunicate request_size=4 [17:16:46]MH_SAM_APDU [17:16:46]CAPDU: 80 11 00 00 [17:16:46]Write to MH i2c: E2 08 00 06 51 80 11 00 00 00 00 00 00 D1 [17:16:46]Write i2c OK [17:16:46]MH_I2C_Read... [17:16:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:16:46]Read from MH i2c: E2 [17:16:46]MH_I2C_Read... [17:16:46]Read from MH i2c: E2 17 00 [17:16:46]MH_I2C_Read... [17:16:46]Read from MH i2c: E2 17 00 06 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 1C [17:16:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [17:16:46]wFMCommunicate OK [17:16:46]requested_item fd.num is exist - process it [17:16:46]SAM_PROTO_GetFieldsCounters [17:16:46]wFMCommunicate request_size=4 [17:16:46]MH_SAM_APDU [17:16:46]CAPDU: 80 13 00 00 [17:16:46]Write to MH i2c: E2 08 00 07 51 80 13 00 00 00 00 00 00 D4 [17:16:46]Write i2c OK [17:16:46]MH_I2C_Read... [17:16:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:16:46]Read from MH i2c: E2 [17:16:46]MH_I2C_Read... [17:16:46]Read from MH i2c: E2 62 00 [17:16:46]MH_I2C_Read... [17:16:46]Read from MH i2c: E2 62 00 07 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 47 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 87 [17:16:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 47 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:16:46]wFMCommunicate OK [17:16:46]SAM_PROTO_GetFieldsCounters done [17:16:46]requested_item shift.num is exist - process it [17:16:46]requested_item shift.opened is exist - process it [17:16:46]req_shift_opened [17:16:46]FM_GetShiftState [17:16:46]SAM_PROTO_GetShiftState [17:16:46]wFMCommunicate request_size=4 [17:16:46]MH_SAM_APDU [17:16:46]CAPDU: 80 13 01 00 [17:16:46]Write to MH i2c: E2 08 00 08 51 80 13 01 00 00 00 00 00 D6 [17:16:46]Write i2c OK [17:16:46]MH_I2C_Read... [17:16:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:16:47]Read from MH i2c: E2 [17:16:47]MH_I2C_Read... [17:16:47]Read from MH i2c: E2 0E 00 [17:16:47]MH_I2C_Read... [17:16:47]Read from MH i2c: E2 0E 00 08 51 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 B1 [17:16:47]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [17:16:47]wFMCommunicate OK [17:16:47]SAM_PROTO_GetShiftState done [17:16:47]FM_GetShiftState done [17:16:47]req_shift_opened done [17:16:47]requested_item shift.open_date is exist - process it [17:16:47]req_shift_open_date [17:16:47]req_shift_open_date done [17:16:47]produce_requested_data done [17:16:47]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68423,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [17:16:47]process_action_free print_text [17:16:47]json_value_free [17:16:47]json_value_free done [17:16:47]process_json_proto returns [17:16:47]Send response to host [17:16:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68423,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [17:16:47]free response buf [17:16:47]execute_script done [17:16:47]execute_script returns [17:16:47]free content buf [17:16:47]Sock 5.Close socket [17:16:47]Sock 5.Thread stoped [17:16:51]OFD Sender: No OFD packet to send [17:16:56]OFD Sender: No OFD packet to send [17:17:01]OFD Sender: No OFD packet to send [17:17:06]OFD Sender: No OFD packet to send [17:17:11]OFD Sender: No OFD packet to send [17:17:16]OFD Sender: No OFD packet to send [17:17:21]OFD Sender: No OFD packet to send [17:17:26]OFD Sender: No OFD packet to send [17:17:31]OFD Sender: No OFD packet to send [17:17:36]OFD Sender: No OFD packet to send [17:17:41]OFD Sender: No OFD packet to send [17:17:44]accept exits with 6 [17:17:44]New connection [17:17:44]New thread 3066686820 created [17:17:44]Thread 3066543460 joined [17:17:44]Waiting for new connection... [17:17:44] Sock 6.Parse request [17:17:44]Sock 6.Check first char [17:17:44]Sock 6.First char is OK [17:17:44]request: POST /json_proto HTTP/1.0 [17:17:44]Method: POST [17:17:44]URL: /json_proto [17:17:44]Method is POST - this is cgi request [17:17:44]url: /json_proto [17:17:44]query_string will be loaded in cgi processing [17:17:44]execute_cgi json_proto POST (null) [17:17:44]execute_cgi path=json_proto method=POST [17:17:44]POST find Content-Length [17:17:44]Host: 172.17.36.132:8080 [17:17:44]Content-Length: 682 [17:17:44]Content-Type: application/json [17:17:44] [17:17:44]POST finish read [17:17:44]Found Content-Length = 682 [17:17:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706524", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 3.130, "sum" : 228.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 228.00, "total" : 228.00, "payments": [ { "type": 0, "sum" : 228.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:17:44]execute_script... [17:17:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706524", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 3.130, "sum" : 228.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 228.00, "total" : 228.00, "payments": [ { "type": 0, "sum" : 228.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:17:44]POST & json_proto [17:17:44]process_json_proto [17:17:44]json parsed OK: [17:17:44]protocol is kg_v1.0 [17:17:44]action value=close_receipt [17:17:44]process_action close_receipt [17:17:44]cmd_close_receipt [17:17:44]MH_GetDate [17:17:44]Write to MH i2c: F0 00 00 09 51 49 [17:17:44]Write i2c OK [17:17:44]MH_I2C_Read... [17:17:44]Read from MH i2c: F0 [17:17:44]MH_I2C_Read... [17:17:44]Read from MH i2c: F0 09 00 [17:17:44]MH_I2C_Read... [17:17:44]Read from MH i2c: F0 09 00 09 51 00 BE FA 5D 66 B2 22 B0 64 B5 [17:17:44]GetLastDocTimeStamp 1717433883 [17:17:44]current date 1717435070 [17:17:44]FM_GetShiftState [17:17:44]SAM_PROTO_GetShiftState [17:17:44]wFMCommunicate request_size=4 [17:17:44]MH_SAM_APDU [17:17:44]CAPDU: 80 13 01 00 [17:17:44]Write to MH i2c: E2 08 00 0A 51 80 13 01 00 00 00 00 00 D8 [17:17:44]Write i2c OK [17:17:44]MH_I2C_Read... [17:17:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:17:44]Read from MH i2c: E2 [17:17:44]MH_I2C_Read... [17:17:44]Read from MH i2c: E2 0E 00 [17:17:44]MH_I2C_Read... [17:17:44]Read from MH i2c: E2 0E 00 0A 51 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 B3 [17:17:44]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [17:17:44]wFMCommunicate OK [17:17:44]SAM_PROTO_GetShiftState done [17:17:44]FM_GetShiftState done [17:17:44]opened in 1717378033 [17:17:44]opened+sec_in_day 1717464433 [17:17:44]quantity*price = 22817 [17:17:44]sum+1 = 22819 [17:17:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 228.00 Внесено: 228.00 СДАЧА: 0.00 НСП 1% : 2.02 НДС 12% : 24.23 Наличными: 228.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 170 03.06.2024 17:17 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68424 ФПД: 193721818266290 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T171750&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68424&fm=193721818266290&tin=02508201610067®Number=0000000000098096&sum=22800 [17:17:45]StoreToDocumentArchive [17:17:45]shift 324 fd 68424 [17:17:45]save to /storage/0324/doc_00068424 [17:17:45]save last doc name /storage/0324/doc_00068424 to /storage/kkm_last_doc_name [17:17:45]save OK [17:17:45]Clear old archive folders... [17:17:45]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:17:45]tlvbuf is B6E998F0 [17:17:45]SAM_PROTO_ClearQueue [17:17:45]wFMCommunicate request_size=4 [17:17:45]MH_SAM_APDU [17:17:45]CAPDU: 80 09 00 00 [17:17:45]Write to MH i2c: E2 08 00 17 51 80 09 00 00 00 00 00 00 DA [17:17:45]Write i2c OK [17:17:45]MH_I2C_Read... [17:17:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:17:45]Read from MH i2c: E2 [17:17:45]MH_I2C_Read... [17:17:45]Read from MH i2c: E2 03 00 [17:17:45]MH_I2C_Read... [17:17:45]Read from MH i2c: E2 03 00 17 51 00 90 00 DC [17:17:45]RAPDU: 90 00 [17:17:45]wFMCommunicate OK [17:17:45]SAM_PROTO_ClearQueue done [17:17:45]KKMCreateOFDPacket [17:17:45]OFDProtocolAddRootSTLVToBuf [17:17:45]FM_MakeSignedData [17:17:45]FM_MakeSignedData [17:17:45]SAM_PROTO_SignData [17:17:45]wFMCommunicate request_size=4 [17:17:45]MH_SAM_APDU [17:17:45]CAPDU: 80 0D 01 02 [17:17:45]Write to MH i2c: E2 08 00 18 51 80 0D 01 02 00 00 00 00 E2 [17:17:45]Write i2c OK [17:17:45]MH_I2C_Read... [17:17:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:17:45]Read from MH i2c: E2 [17:17:45]MH_I2C_Read... [17:17:45]Read from MH i2c: E2 03 00 [17:17:45]MH_I2C_Read... [17:17:45]Read from MH i2c: E2 03 00 18 51 00 90 00 DD [17:17:45]RAPDU: 90 00 [17:17:45]wFMCommunicate OK [17:17:45]wFMCommunicate request_size=255 [17:17:45]MH_SAM_APDU [17:17:45]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 34 FF 03 08 00 03 3A 0C 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 22 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 09 00 00 00 00 07 04 06 00 10 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 BE FA 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 48 0B 01 00 35 04 06 00 [17:17:45]Write to MH i2c: E2 02 01 19 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 34 FF 03 08 00 03 3A 0C 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 22 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 09 00 00 00 00 07 04 06 00 10 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 BE FA 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 48 0B 01 00 35 04 06 00 00 00 56 [17:17:45]Write i2c OK [17:17:45]MH_I2C_Read... [17:17:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:17:46]Read from MH i2c: E2 [17:17:46]MH_I2C_Read... [17:17:46]Read from MH i2c: E2 03 00 [17:17:46]MH_I2C_Read... [17:17:46]Read from MH i2c: E2 03 00 19 51 00 90 00 DE [17:17:46]RAPDU: 90 00 [17:17:46]wFMCommunicate OK [17:17:46]wFMCommunicate request_size=11 [17:17:46]MH_SAM_APDU [17:17:46]CAPDU: 80 0D 02 02 06 B0 30 60 29 BA B2 [17:17:46]Write to MH i2c: E2 0E 00 1A 51 80 0D 02 02 06 00 B0 30 60 29 BA B2 00 00 C6 [17:17:46]Write i2c OK [17:17:46]MH_I2C_Read... [17:17:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:17:46]Read from MH i2c: E2 [17:17:46]MH_I2C_Read... [17:17:46]Read from MH i2c: E2 03 00 [17:17:46]MH_I2C_Read... [17:17:46]Read from MH i2c: E2 03 00 1A 51 00 90 00 DF [17:17:46]RAPDU: 90 00 [17:17:46]wFMCommunicate OK [17:17:46]wFMCommunicate request_size=4 [17:17:46]MH_SAM_APDU [17:17:46]CAPDU: 80 0D 03 02 [17:17:46]Write to MH i2c: E2 08 00 1B 51 80 0D 03 02 00 00 00 00 E7 [17:17:46]Write i2c OK [17:17:46]MH_I2C_Read... [17:17:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:17:46]Read from MH i2c: E2 [17:17:46]MH_I2C_Read... [17:17:46]Read from MH i2c: E2 0B 00 [17:17:46]MH_I2C_Read... [17:17:46]Read from MH i2c: E2 0B 00 1B 51 00 4D C7 31 43 11 26 47 54 90 00 42 [17:17:46]RAPDU: 4D C7 31 43 11 26 47 54 90 00 [17:17:46]wFMCommunicate OK [17:17:46]SAM_PROTO_SignData done [17:17:46]FM_MakeSignedData done [17:17:46]CreateOFDProtocolMessage [17:17:46]wFMCommunicate request_size=4 [17:17:46]MH_SAM_APDU [17:17:46]CAPDU: 80 11 00 00 [17:17:46]Write to MH i2c: E2 08 00 1C 51 80 11 00 00 00 00 00 00 E7 [17:17:46]Write i2c OK [17:17:46]MH_I2C_Read... [17:17:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:17:46]Read from MH i2c: E2 [17:17:46]MH_I2C_Read... [17:17:46]Read from MH i2c: E2 17 00 [17:17:46]MH_I2C_Read... [17:17:46]Read from MH i2c: E2 17 00 1C 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 32 [17:17:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [17:17:46]wFMCommunicate OK [17:17:46]CreateOFDProtocolMessage done [17:17:46]OFDSenderStorePacket 68424 [17:17:46]StoreOFDPacket docnum=68424 [17:17:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 0A 59 08 01 BE 88 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 34 FF 03 08 00 03 3A 0C 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 22 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 09 00 00 00 00 07 04 06 00 10 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 BE FA 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 48 0B 01 00 35 04 06 00 B0 30 60 29 BA B2 4D C7 31 43 11 26 47 54 [17:17:46]CheckFolder [17:17:46]dirname=/storage/ofd_packets [17:17:46]CheckFolder done [17:17:46]ProducePacketName [17:17:46]name=ofd_packets/00068424 [17:17:46]NVStorageSaveData ofd_packets/00068424 [17:17:46]File name is /storage/ofd_packets/00068424 [17:17:46]Write 302 bytes [17:17:46]NVStorageSaveData done [17:17:46]OFDSenderStorePacket done [17:17:46]KKMCreateOFDPacket done [17:17:46]NVStorageSaveData kkm_last_timestamp [17:17:46]File name is /storage/kkm_last_timestamp [17:17:46]Write 4 bytes [17:17:46]NVStorageSaveData done [17:17:46]ExternCall_PrintAddStr [17:17:46]wPrintStart [17:17:46]Write to MH i2c: 01 00 00 1D 51 6E [17:17:46]Write i2c OK [17:17:46]MH_I2C_Read... [17:17:46]Read from MH i2c: 01 [17:17:46]MH_I2C_Read... [17:17:46]Read from MH i2c: 01 07 00 [17:17:46]MH_I2C_Read... [17:17:46]Read from MH i2c: 01 07 00 1D 51 00 00 00 00 00 FF 0F 83 [17:17:46]RasterBufferAndPrint [17:17:46]line Счет N : (1)706524 [17:17:46]line ИНН: 02508201610067 [17:17:46]line Контрольно-Кассовый Чек [17:17:46]line ПРОДАЖА [17:17:46]line ТРК (МРК, ГНК) : 21 [17:17:46]line Товар: 2710194210 [17:17:46]line ДТ(л)-К-4 [17:17:46]line 3.130 * 72.90 [17:17:46]line = 228.18 [17:17:46]line НДС 12% НСП 1% [17:17:46]line > о реализуемом товаре [17:17:46]line ОКРУГЛЕНИЕ: -0.18 [17:17:46]line ИТОГО: 228.00 [17:17:46]line Внесено: 228.00 [17:17:46]line СДАЧА: 0.00 [17:17:46]line НСП 1% : 2.02 [17:17:46]line НДС 12% : 24.23 [17:17:46]line Наличными: 228.00 [17:17:46]line Безнал.: 0.00 [17:17:46]line Место: АЗС № 62 "Партнер Нефть" [17:17:46]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [17:17:46]line СНО: Общий режим [17:17:46]line Чек 170 03.06.2024 17:17 [17:17:46]line Смена: 324 ФФД: 1.0 [17:17:46]line ЗНМ: 0300000181 [17:17:46]line РНМ: 0000000000098096 [17:17:46]line Версия ККМ: 001 [17:17:46]line ФМ: 0000000000965400 [17:17:46]line ФД: 68424 [17:17:46]line ФПД: 193721818266290 [17:17:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T171750&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68424&fm=193721818266290&tin=02508201610067®Number=0000000000098096&sum=22800 [17:17:46]OFD Sender: Processing packet 68424 [packets to send 26, broken 25] [17:17:46]ProducePacketName [17:17:46]name=ofd_packets/00068424 [17:17:46]OFD Sender: To server: pG, [17:17:46]CommunicateWithHost lk.salyk.kg:30040 [17:17:46]ConnectInit lk.salyk.kg [17:17:46]written 0, free lines is 4095 [17:17:46]Connected sock=7 [17:17:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 0A 59 08 01 BE 88 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 34 FF 03 08 00 03 3A 0C 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 22 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 09 00 00 00 00 07 04 06 00 10 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 BE FA 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 48 0B 01 00 35 04 06 00 B0 30 60 29 BA B2 4D C7 31 43 11 26 47 54 [17:17:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 9D D7 47 00 AF F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 48 0B 01 00 F4 03 04 00 BA A1 5D 66 B6 04 01 00 00 5B F3 96 5C 0A C5 FC 66 [17:17:47]CommunicateWithHost err = 0 [17:17:47]CheckOFDResponse [17:17:47]1017 (14) - 77093643461234 [17:17:47]1041 (16) - 0000000000965400 [17:17:47]1040 (4) - 68424 [17:17:47]1012 (4) - 03.06.2024 10:58 [17:17:47]1206 (1) - 0 [17:17:47]OFD Sender: Remove packet 68424 [17:17:47]ProducePacketName [17:17:47]name=ofd_packets/00068424 [17:17:47]NVStorageDeleteData [17:17:47]Write to MH i2c: 01 00 00 48 51 99 [17:17:47]Write i2c OK [17:17:47]MH_I2C_Read... [17:17:47]Read from MH i2c: 01 [17:17:47]MH_I2C_Read... [17:17:47]Read from MH i2c: 01 07 00 [17:17:47]MH_I2C_Read... [17:17:47]Read from MH i2c: 01 07 00 48 51 00 00 00 00 00 E9 0C 95 [17:17:47]RasterBufferAndPrint [17:17:47]line [17:17:47]line [17:17:47]line [17:17:47]line [17:17:47]line [17:17:47]written 0, free lines is 3311 [17:17:47]MH_Cut [17:17:47]Write to MH i2c: D1 01 00 4F 51 01 72 [17:17:47]Write i2c OK [17:17:47]MH_I2C_Read... [17:17:47]Read from MH i2c: D1 [17:17:47]MH_I2C_Read... [17:17:47]Read from MH i2c: D1 01 00 [17:17:47]MH_I2C_Read... [17:17:47]Read from MH i2c: D1 01 00 4F 51 00 71 [17:17:47]Write to MH i2c: 01 00 00 50 51 A1 [17:17:47]Write i2c OK [17:17:47]MH_I2C_Read... [17:17:47]OFD Sender: No OFD packet to send [17:17:47]*** Cut start [17:17:47]*** Partial cut [17:17:47]*** CUTSNS_PIN = 1 [17:17:48]*** CUTSNS_PIN = 0 [17:17:48]*** Brake cut motor [17:17:48]Read from MH i2c: 01 [17:17:48]MH_I2C_Read... [17:17:48]*** Stop cut motor [17:17:48]*** Cut end [17:17:48]Read from MH i2c: 01 07 00 [17:17:48]MH_I2C_Read... [17:17:48]Read from MH i2c: 01 07 00 50 51 00 00 00 00 00 FF 0F B6 [17:17:48]process_action close_receipt done [17:17:48]requested_data is exist [17:17:48]produce_requested_data [17:17:48]requested_item fm.sn is exist - process it [17:17:48]wFMCommunicate request_size=4 [17:17:48]MH_SAM_APDU [17:17:48]CAPDU: 80 11 00 00 [17:17:48]Write to MH i2c: E2 08 00 51 51 80 11 00 00 00 00 00 00 1C [17:17:48]Write i2c OK [17:17:48]MH_I2C_Read... [17:17:48]Read from MH i2c: E2 [17:17:48]MH_I2C_Read... [17:17:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:17:48]Read from MH i2c: E2 17 00 [17:17:48]MH_I2C_Read... [17:17:48]Read from MH i2c: E2 17 00 51 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 67 [17:17:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [17:17:48]wFMCommunicate OK [17:17:48]requested_item fd.num is exist - process it [17:17:48]SAM_PROTO_GetFieldsCounters [17:17:48]wFMCommunicate request_size=4 [17:17:48]MH_SAM_APDU [17:17:48]CAPDU: 80 13 00 00 [17:17:48]Write to MH i2c: E2 08 00 52 51 80 13 00 00 00 00 00 00 1F [17:17:48]Write i2c OK [17:17:48]MH_I2C_Read... [17:17:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:17:48]Read from MH i2c: E2 [17:17:48]MH_I2C_Read... [17:17:48]Read from MH i2c: E2 62 00 [17:17:48]MH_I2C_Read... [17:17:48]Read from MH i2c: E2 62 00 52 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 48 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 D6 [17:17:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 48 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:17:48]wFMCommunicate OK [17:17:48]SAM_PROTO_GetFieldsCounters done [17:17:48]requested_item shift.num is exist - process it [17:17:48]requested_item shift.opened is exist - process it [17:17:48]req_shift_opened [17:17:48]FM_GetShiftState [17:17:48]SAM_PROTO_GetShiftState [17:17:48]wFMCommunicate request_size=4 [17:17:48]MH_SAM_APDU [17:17:48]CAPDU: 80 13 01 00 [17:17:48]Write to MH i2c: E2 08 00 53 51 80 13 01 00 00 00 00 00 21 [17:17:48]Write i2c OK [17:17:48]MH_I2C_Read... [17:17:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:17:48]Read from MH i2c: E2 [17:17:48]MH_I2C_Read... [17:17:48]Read from MH i2c: E2 0E 00 [17:17:48]MH_I2C_Read... [17:17:48]Read from MH i2c: E2 0E 00 53 51 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 FC [17:17:48]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [17:17:48]wFMCommunicate OK [17:17:48]SAM_PROTO_GetShiftState done [17:17:48]FM_GetShiftState done [17:17:48]req_shift_opened done [17:17:48]requested_item shift.open_date is exist - process it [17:17:48]req_shift_open_date [17:17:48]req_shift_open_date done [17:17:48]produce_requested_data done [17:17:48]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68424,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [17:17:48]process_action_free close_receipt [17:17:48]json_value_free [17:17:48]json_value_free done [17:17:48]process_json_proto returns [17:17:48]Send response to host [17:17:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68424,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [17:17:48]free response buf [17:17:48]execute_script done [17:17:48]execute_script returns [17:17:48]free content buf [17:17:48]Sock 6.Close socket [17:17:48]Sock 6.Thread stoped [17:17:52]OFD Sender: No OFD packet to send [17:17:57]OFD Sender: No OFD packet to send [17:18:02]OFD Sender: No OFD packet to send [17:18:07]OFD Sender: No OFD packet to send [17:18:12]OFD Sender: No OFD packet to send [17:18:17]OFD Sender: No OFD packet to send [17:18:22]OFD Sender: No OFD packet to send [17:18:27]OFD Sender: No OFD packet to send [17:18:32]OFD Sender: No OFD packet to send [17:18:37]OFD Sender: No OFD packet to send [17:18:42]OFD Sender: No OFD packet to send [17:18:47]OFD Sender: No OFD packet to send [17:18:52]OFD Sender: No OFD packet to send [17:18:57]OFD Sender: No OFD packet to send [17:19:00]accept exits with 5 [17:19:00]New connection [17:19:00]New thread 3066543460 created [17:19:00]Thread 3066686820 joined [17:19:00]Waiting for new connection... [17:19:00] Sock 5.Parse request [17:19:00]Sock 5.Check first char [17:19:00]Sock 5.First char is OK [17:19:00]request: POST /json_proto HTTP/1.0 [17:19:00]Method: POST [17:19:00]URL: /json_proto [17:19:00]Method is POST - this is cgi request [17:19:00]url: /json_proto [17:19:00]query_string will be loaded in cgi processing [17:19:00]execute_cgi json_proto POST (null) [17:19:00]execute_cgi path=json_proto method=POST [17:19:00]POST find Content-Length [17:19:00]Host: 172.17.36.132:8080 [17:19:00]Content-Length: 666 [17:19:00]Content-Type: application/json [17:19:00] [17:19:00]POST finish read [17:19:00]Found Content-Length = 666 [17:19:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706525", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 10.000, "sum" : 729.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "payments": [ { "type": 0, "sum" : 729.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:19:00]execute_script... [17:19:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706525", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 10.000, "sum" : 729.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "payments": [ { "type": 0, "sum" : 729.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:19:00]POST & json_proto [17:19:00]process_json_proto [17:19:00]json parsed OK: [17:19:00]protocol is kg_v1.0 [17:19:00]action value=close_receipt [17:19:00]process_action close_receipt [17:19:00]cmd_close_receipt [17:19:00]MH_GetDate [17:19:00]Write to MH i2c: F0 00 00 54 51 94 [17:19:00]Write i2c OK [17:19:00]MH_I2C_Read... [17:19:00]Read from MH i2c: F0 [17:19:00]MH_I2C_Read... [17:19:00]Read from MH i2c: F0 09 00 [17:19:00]MH_I2C_Read... [17:19:00]Read from MH i2c: F0 09 00 54 51 00 0A FB 5D 66 B2 22 B0 64 4D [17:19:00]GetLastDocTimeStamp 1717435070 [17:19:00]current date 1717435146 [17:19:00]FM_GetShiftState [17:19:00]SAM_PROTO_GetShiftState [17:19:00]wFMCommunicate request_size=4 [17:19:00]MH_SAM_APDU [17:19:00]CAPDU: 80 13 01 00 [17:19:00]Write to MH i2c: E2 08 00 55 51 80 13 01 00 00 00 00 00 23 [17:19:00]Write i2c OK [17:19:00]MH_I2C_Read... [17:19:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:00]Read from MH i2c: E2 [17:19:00]MH_I2C_Read... [17:19:00]Read from MH i2c: E2 0E 00 [17:19:00]MH_I2C_Read... [17:19:00]Read from MH i2c: E2 0E 00 55 51 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 FE [17:19:00]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [17:19:00]wFMCommunicate OK [17:19:00]SAM_PROTO_GetShiftState done [17:19:00]FM_GetShiftState done [17:19:00]opened in 1717378033 [17:19:00]opened+sec_in_day 1717464433 [17:19:00]quantity*price = 72900 [17:19:00]sum+1 = 72901 [17:19:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 729.00 Внесено: 1000.00 СДАЧА: 271.00 НСП 1% : 6.45 НДС 12% : 77.42 Наличными: 729.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 171 03.06.2024 17:19 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68425 ФПД: 190398691347329 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T171906&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68425&fm=190398691347329&tin=02508201610067®Number=0000000000098096&sum=72900 [17:19:01]StoreToDocumentArchive [17:19:01]shift 324 fd 68425 [17:19:01]save to /storage/0324/doc_00068425 [17:19:01]save last doc name /storage/0324/doc_00068425 to /storage/kkm_last_doc_name [17:19:01]save OK [17:19:01]Clear old archive folders... [17:19:01]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:19:01]tlvbuf is 0026D470 [17:19:01]SAM_PROTO_ClearQueue [17:19:01]wFMCommunicate request_size=4 [17:19:01]MH_SAM_APDU [17:19:01]CAPDU: 80 09 00 00 [17:19:01]Write to MH i2c: E2 08 00 62 51 80 09 00 00 00 00 00 00 25 [17:19:01]Write i2c OK [17:19:01]MH_I2C_Read... [17:19:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:19:01]Read from MH i2c: E2 [17:19:01]MH_I2C_Read... [17:19:01]Read from MH i2c: E2 03 00 [17:19:01]MH_I2C_Read... [17:19:01]Read from MH i2c: E2 03 00 62 51 00 90 00 27 [17:19:01]RAPDU: 90 00 [17:19:01]wFMCommunicate OK [17:19:01]SAM_PROTO_ClearQueue done [17:19:01]KKMCreateOFDPacket [17:19:01]OFDProtocolAddRootSTLVToBuf [17:19:01]FM_MakeSignedData [17:19:01]FM_MakeSignedData [17:19:01]SAM_PROTO_SignData [17:19:01]wFMCommunicate request_size=4 [17:19:01]MH_SAM_APDU [17:19:01]CAPDU: 80 0D 01 02 [17:19:01]Write to MH i2c: E2 08 00 63 51 80 0D 01 02 00 00 00 00 2D [17:19:01]Write i2c OK [17:19:01]MH_I2C_Read... [17:19:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:19:01]Read from MH i2c: E2 [17:19:01]MH_I2C_Read... [17:19:01]Read from MH i2c: E2 03 00 [17:19:01]MH_I2C_Read... [17:19:01]Read from MH i2c: E2 03 00 63 51 00 90 00 28 [17:19:01]RAPDU: 90 00 [17:19:01]wFMCommunicate OK [17:19:01]wFMCommunicate request_size=255 [17:19:01]MH_SAM_APDU [17:19:01]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 C4 1C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 1C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 1E 00 00 00 00 07 04 06 00 C4 1C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 0A FB 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 49 0B 01 00 35 04 06 00 [17:19:01]Write to MH i2c: E2 02 01 64 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 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 C4 1C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 1C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 1E 00 00 00 00 07 04 06 00 C4 1C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 0A FB 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 49 0B 01 00 35 04 06 00 00 00 D0 [17:19:01]Write i2c OK [17:19:01]MH_I2C_Read... [17:19:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:01]Read from MH i2c: E2 [17:19:01]MH_I2C_Read... [17:19:01]Read from MH i2c: E2 03 00 [17:19:01]MH_I2C_Read... [17:19:01]Read from MH i2c: E2 03 00 64 51 00 90 00 29 [17:19:01]RAPDU: 90 00 [17:19:01]wFMCommunicate OK [17:19:01]wFMCommunicate request_size=11 [17:19:01]MH_SAM_APDU [17:19:01]CAPDU: 80 0D 02 02 06 AD 2A A6 5D 0B 81 [17:19:01]Write to MH i2c: E2 0E 00 65 51 80 0D 02 02 06 00 AD 2A A6 5D 0B 81 00 00 A2 [17:19:01]Write i2c OK [17:19:01]MH_I2C_Read... [17:19:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:01]Read from MH i2c: E2 [17:19:01]MH_I2C_Read... [17:19:01]Read from MH i2c: E2 03 00 [17:19:01]MH_I2C_Read... [17:19:01]Read from MH i2c: E2 03 00 65 51 00 90 00 2A [17:19:01]RAPDU: 90 00 [17:19:01]wFMCommunicate OK [17:19:01]wFMCommunicate request_size=4 [17:19:01]MH_SAM_APDU [17:19:01]CAPDU: 80 0D 03 02 [17:19:01]Write to MH i2c: E2 08 00 66 51 80 0D 03 02 00 00 00 00 32 [17:19:01]Write i2c OK [17:19:01]MH_I2C_Read... [17:19:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:19:01]Read from MH i2c: E2 [17:19:01]MH_I2C_Read... [17:19:01]Read from MH i2c: E2 0B 00 [17:19:01]MH_I2C_Read... [17:19:01]Read from MH i2c: E2 0B 00 66 51 00 BE 1A A1 2F 9A 11 E7 06 90 00 73 [17:19:01]RAPDU: BE 1A A1 2F 9A 11 E7 06 90 00 [17:19:01]wFMCommunicate OK [17:19:01]SAM_PROTO_SignData done [17:19:01]FM_MakeSignedData done [17:19:01]CreateOFDProtocolMessage [17:19:01]wFMCommunicate request_size=4 [17:19:01]MH_SAM_APDU [17:19:01]CAPDU: 80 11 00 00 [17:19:01]Write to MH i2c: E2 08 00 67 51 80 11 00 00 00 00 00 00 32 [17:19:01]Write i2c OK [17:19:01]MH_I2C_Read... [17:19:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:01]Read from MH i2c: E2 [17:19:01]MH_I2C_Read... [17:19:01]Read from MH i2c: E2 17 00 [17:19:01]MH_I2C_Read... [17:19:01]Read from MH i2c: E2 17 00 67 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 7D [17:19:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [17:19:01]wFMCommunicate OK [17:19:01]CreateOFDProtocolMessage done [17:19:01]OFDSenderStorePacket 68425 [17:19:01]StoreOFDPacket docnum=68425 [17:19:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 F0 96 08 01 08 F6 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 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 C4 1C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 1C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 1E 00 00 00 00 07 04 06 00 C4 1C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 0A FB 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 49 0B 01 00 35 04 06 00 AD 2A A6 5D 0B 81 BE 1A A1 2F 9A 11 E7 06 [17:19:01]CheckFolder [17:19:01]dirname=/storage/ofd_packets [17:19:01]CheckFolder done [17:19:01]ProducePacketName [17:19:01]name=ofd_packets/00068425 [17:19:01]NVStorageSaveData ofd_packets/00068425 [17:19:01]File name is /storage/ofd_packets/00068425 [17:19:01]Write 302 bytes [17:19:01]NVStorageSaveData done [17:19:01]OFDSenderStorePacket done [17:19:01]KKMCreateOFDPacket done [17:19:01]NVStorageSaveData kkm_last_timestamp [17:19:01]File name is /storage/kkm_last_timestamp [17:19:01]Write 4 bytes [17:19:01]NVStorageSaveData done [17:19:01]ExternCall_PrintAddStr [17:19:01]wPrintStart [17:19:01]Write to MH i2c: 01 00 00 68 51 B9 [17:19:01]Write i2c OK [17:19:01]MH_I2C_Read... [17:19:01]Read from MH i2c: 01 [17:19:01]MH_I2C_Read... [17:19:01]Read from MH i2c: 01 07 00 [17:19:01]MH_I2C_Read... [17:19:01]Read from MH i2c: 01 07 00 68 51 00 00 00 00 00 FF 0F CE [17:19:01]RasterBufferAndPrint [17:19:01]line Счет N : (1)706525 [17:19:01]line ИНН: 02508201610067 [17:19:01]line Контрольно-Кассовый Чек [17:19:01]line ПРОДАЖА [17:19:01]line ТРК (МРК, ГНК) : 11 [17:19:01]line Товар: 2710194210 [17:19:01]line ДТ(л)-К-4 [17:19:01]line 10.000 * 72.90 [17:19:01]line = 729.00 [17:19:01]line НДС 12% НСП 1% [17:19:01]line > о реализуемом товаре [17:19:01]line ИТОГО: 729.00 [17:19:01]line Внесено: 1000.00 [17:19:01]line СДАЧА: 271.00 [17:19:01]line НСП 1% : 6.45 [17:19:01]line НДС 12% : 77.42 [17:19:01]line Наличными: 729.00 [17:19:01]line Безнал.: 0.00 [17:19:01]line Место: АЗС № 62 "Партнер Нефть" [17:19:01]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [17:19:01]line СНО: Общий режим [17:19:01]line Чек 171 03.06.2024 17:19 [17:19:01]line Смена: 324 ФФД: 1.0 [17:19:02]line ЗНМ: 0300000181 [17:19:02]line РНМ: 0000000000098096 [17:19:02]line Версия ККМ: 001 [17:19:02]line ФМ: 0000000000965400 [17:19:02]line ФД: 68425 [17:19:02]line ФПД: 190398691347329 [17:19:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T171906&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68425&fm=190398691347329&tin=02508201610067®Number=0000000000098096&sum=72900 [17:19:02]OFD Sender: Processing packet 68425 [packets to send 26, broken 25] [17:19:02]ProducePacketName [17:19:02]name=ofd_packets/00068425 [17:19:02]OFD Sender: To server: pG, [17:19:02]CommunicateWithHost lk.salyk.kg:30040 [17:19:02]ConnectInit lk.salyk.kg [17:19:02]written 0, free lines is 4095 [17:19:02]Connected sock=7 [17:19:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 F0 96 08 01 08 F6 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 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 C4 1C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 1C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 1E 00 00 00 00 07 04 06 00 C4 1C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 0A FB 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 49 0B 01 00 35 04 06 00 AD 2A A6 5D 0B 81 BE 1A A1 2F 9A 11 E7 06 [17:19:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 ED 75 47 00 4F 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 49 0B 01 00 F4 03 04 00 05 A2 5D 66 B6 04 01 00 00 38 EE FF 5D 29 1A B0 E3 [17:19:02]CommunicateWithHost err = 0 [17:19:02]CheckOFDResponse [17:19:02]1017 (14) - 77093643461234 [17:19:02]1041 (16) - 0000000000965400 [17:19:02]1040 (4) - 68425 [17:19:02]1012 (4) - 03.06.2024 10:59 [17:19:02]1206 (1) - 0 [17:19:02]OFD Sender: Remove packet 68425 [17:19:02]ProducePacketName [17:19:02]name=ofd_packets/00068425 [17:19:02]NVStorageDeleteData [17:19:02]Write to MH i2c: 01 00 00 92 51 E3 [17:19:02]Write i2c OK [17:19:02]MH_I2C_Read... [17:19:02]Read from MH i2c: 01 [17:19:02]MH_I2C_Read... [17:19:02]Read from MH i2c: 01 07 00 [17:19:02]MH_I2C_Read... [17:19:02]Read from MH i2c: 01 07 00 92 51 00 00 00 00 00 F3 0C E9 [17:19:02]RasterBufferAndPrint [17:19:02]line [17:19:02]line [17:19:02]line [17:19:02]line [17:19:02]line [17:19:02]written 0, free lines is 3321 [17:19:02]MH_Cut [17:19:02]Write to MH i2c: D1 01 00 99 51 01 BC [17:19:02]Write i2c OK [17:19:02]MH_I2C_Read... [17:19:02]Read from MH i2c: D1 [17:19:02]MH_I2C_Read... [17:19:02]Read from MH i2c: D1 01 00 [17:19:02]MH_I2C_Read... [17:19:02]Read from MH i2c: D1 01 00 99 51 00 BB [17:19:02]Write to MH i2c: 01 00 00 9A 51 EB [17:19:02]Write i2c OK [17:19:02]MH_I2C_Read... [17:19:02]OFD Sender: No OFD packet to send [17:19:03]*** Cut start [17:19:03]*** Partial cut [17:19:03]*** CUTSNS_PIN = 1 [17:19:03]*** CUTSNS_PIN = 0 [17:19:03]*** Brake cut motor [17:19:03]Read from MH i2c: 01 [17:19:03]MH_I2C_Read... [17:19:03]*** Stop cut motor [17:19:03]*** Cut end [17:19:03]Read from MH i2c: 01 07 00 [17:19:03]MH_I2C_Read... [17:19:03]Read from MH i2c: 01 07 00 9A 51 00 00 00 00 00 FF 0F 00 [17:19:03]process_action close_receipt done [17:19:03]requested_data is exist [17:19:03]produce_requested_data [17:19:03]requested_item fm.sn is exist - process it [17:19:03]wFMCommunicate request_size=4 [17:19:03]MH_SAM_APDU [17:19:03]CAPDU: 80 11 00 00 [17:19:03]Write to MH i2c: E2 08 00 9B 51 80 11 00 00 00 00 00 00 66 [17:19:03]Write i2c OK [17:19:03]MH_I2C_Read... [17:19:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:03]Read from MH i2c: E2 [17:19:03]MH_I2C_Read... [17:19:03]Read from MH i2c: E2 17 00 [17:19:03]MH_I2C_Read... [17:19:03]Read from MH i2c: E2 17 00 9B 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 B1 [17:19:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [17:19:03]wFMCommunicate OK [17:19:03]requested_item fd.num is exist - process it [17:19:03]SAM_PROTO_GetFieldsCounters [17:19:03]wFMCommunicate request_size=4 [17:19:03]MH_SAM_APDU [17:19:03]CAPDU: 80 13 00 00 [17:19:03]Write to MH i2c: E2 08 00 9C 51 80 13 00 00 00 00 00 00 69 [17:19:03]Write i2c OK [17:19:03]MH_I2C_Read... [17:19:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:19:04]Read from MH i2c: E2 [17:19:04]MH_I2C_Read... [17:19:04]Read from MH i2c: E2 62 00 [17:19:04]MH_I2C_Read... [17:19:04]Read from MH i2c: E2 62 00 9C 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 49 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 24 [17:19:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 49 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:19:04]wFMCommunicate OK [17:19:04]SAM_PROTO_GetFieldsCounters done [17:19:04]requested_item shift.num is exist - process it [17:19:04]requested_item shift.opened is exist - process it [17:19:04]req_shift_opened [17:19:04]FM_GetShiftState [17:19:04]SAM_PROTO_GetShiftState [17:19:04]wFMCommunicate request_size=4 [17:19:04]MH_SAM_APDU [17:19:04]CAPDU: 80 13 01 00 [17:19:04]Write to MH i2c: E2 08 00 9D 51 80 13 01 00 00 00 00 00 6B [17:19:04]Write i2c OK [17:19:04]MH_I2C_Read... [17:19:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:04]Read from MH i2c: E2 [17:19:04]MH_I2C_Read... [17:19:04]Read from MH i2c: E2 0E 00 [17:19:04]MH_I2C_Read... [17:19:04]Read from MH i2c: E2 0E 00 9D 51 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 46 [17:19:04]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [17:19:04]wFMCommunicate OK [17:19:04]SAM_PROTO_GetShiftState done [17:19:04]FM_GetShiftState done [17:19:04]req_shift_opened done [17:19:04]requested_item shift.open_date is exist - process it [17:19:04]req_shift_open_date [17:19:04]req_shift_open_date done [17:19:04]produce_requested_data done [17:19:04]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68425,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [17:19:04]process_action_free close_receipt [17:19:04]json_value_free [17:19:04]json_value_free done [17:19:04]process_json_proto returns [17:19:04]Send response to host [17:19:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68425,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [17:19:04]free response buf [17:19:04]execute_script done [17:19:04]execute_script returns [17:19:04]free content buf [17:19:04]Sock 5.Close socket [17:19:04]Sock 5.Thread stoped [17:19:07]OFD Sender: No OFD packet to send [17:19:12]OFD Sender: No OFD packet to send [17:19:17]OFD Sender: No OFD packet to send [17:19:22]OFD Sender: No OFD packet to send [17:19:27]OFD Sender: No OFD packet to send [17:19:32]OFD Sender: No OFD packet to send [17:19:37]OFD Sender: No OFD packet to send [17:19:42]OFD Sender: No OFD packet to send [17:19:47]OFD Sender: No OFD packet to send [17:19:52]OFD Sender: No OFD packet to send [17:19:57]OFD Sender: No OFD packet to send [17:20:02]OFD Sender: No OFD packet to send [17:20:07]OFD Sender: No OFD packet to send [17:20:12]OFD Sender: No OFD packet to send [17:20:17]OFD Sender: No OFD packet to send [17:20:22]OFD Sender: No OFD packet to send [17:20:27]OFD Sender: No OFD packet to send [17:20:32]OFD Sender: No OFD packet to send [17:20:37]OFD Sender: No OFD packet to send [17:20:42]OFD Sender: No OFD packet to send [17:20:47]OFD Sender: No OFD packet to send [17:20:52]OFD Sender: No OFD packet to send [17:20:57]OFD Sender: No OFD packet to send [17:21:02]OFD Sender: No OFD packet to send [17:21:07]OFD Sender: No OFD packet to send [17:21:12]OFD Sender: No OFD packet to send [17:21:17]OFD Sender: No OFD packet to send [17:21:22]OFD Sender: No OFD packet to send [17:21:27]OFD Sender: No OFD packet to send [17:21:32]OFD Sender: No OFD packet to send [17:21:37]OFD Sender: No OFD packet to send [17:21:42]OFD Sender: No OFD packet to send [17:21:47]OFD Sender: No OFD packet to send [17:21:52]OFD Sender: No OFD packet to send [17:21:57]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:26]accept exits with 6 [17:24:26]New connection [17:24:26]New thread 3066686820 created [17:24:26]Thread 3066543460 joined [17:24:26]Waiting for new connection... [17:24:26] Sock 6.Parse request [17:24:26]Sock 6.Check first char [17:24:26]Sock 6.First char is OK [17:24:26]request: POST /json_proto HTTP/1.0 [17:24:26]Method: POST [17:24:26]URL: /json_proto [17:24:26]Method is POST - this is cgi request [17:24:26]url: /json_proto [17:24:26]query_string will be loaded in cgi processing [17:24:26]execute_cgi json_proto POST (null) [17:24:26]execute_cgi path=json_proto method=POST [17:24:26]POST find Content-Length [17:24:26]Host: 172.17.36.132:8080 [17:24:26]Content-Length: 678 [17:24:26]Content-Type: application/json [17:24:26] [17:24:26]POST finish read [17:24:26]Found Content-Length = 678 [17:24:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706526", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:26]execute_script... [17:24:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706526", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:26]POST & json_proto [17:24:26]process_json_proto [17:24:26]json parsed OK: [17:24:26]protocol is kg_v1.0 [17:24:26]action value=close_receipt [17:24:26]process_action close_receipt [17:24:26]cmd_close_receipt [17:24:26]MH_GetDate [17:24:26]Write to MH i2c: F0 00 00 9E 51 DE [17:24:26]Write i2c OK [17:24:26]MH_I2C_Read... [17:24:26]Read from MH i2c: F0 [17:24:26]MH_I2C_Read... [17:24:26]Read from MH i2c: F0 09 00 [17:24:26]MH_I2C_Read... [17:24:26]Read from MH i2c: F0 09 00 9E 51 00 50 FC 5D 66 B2 22 B0 64 DE [17:24:26]GetLastDocTimeStamp 1717435146 [17:24:26]current date 1717435472 [17:24:26]FM_GetShiftState [17:24:26]SAM_PROTO_GetShiftState [17:24:26]wFMCommunicate request_size=4 [17:24:26]MH_SAM_APDU [17:24:26]CAPDU: 80 13 01 00 [17:24:26]Write to MH i2c: E2 08 00 9F 51 80 13 01 00 00 00 00 00 6D [17:24:26]Write i2c OK [17:24:26]MH_I2C_Read... [17:24:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:26]Read from MH i2c: E2 [17:24:26]MH_I2C_Read... [17:24:26]Read from MH i2c: E2 0E 00 [17:24:26]MH_I2C_Read... [17:24:26]Read from MH i2c: E2 0E 00 9F 51 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 48 [17:24:26]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [17:24:26]wFMCommunicate OK [17:24:26]SAM_PROTO_GetShiftState done [17:24:26]FM_GetShiftState done [17:24:26]opened in 1717378033 [17:24:26]opened+sec_in_day 1717464433 [17:24:26]quantity*price = 70044 [17:24:26]sum+1 = 70045 [17:24:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 172 03.06.2024 17:24 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68426 ФПД: 267903800299518 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T172432&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68426&fm=267903800299518&tin=02508201610067®Number=0000000000098096&sum=70000 [17:24:27]StoreToDocumentArchive [17:24:27]shift 324 fd 68426 [17:24:27]save to /storage/0324/doc_00068426 [17:24:27]save last doc name /storage/0324/doc_00068426 to /storage/kkm_last_doc_name [17:24:27]save OK [17:24:27]Clear old archive folders... [17:24:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:24:27]tlvbuf is 0026B230 [17:24:27]SAM_PROTO_ClearQueue [17:24:27]wFMCommunicate request_size=4 [17:24:27]MH_SAM_APDU [17:24:27]CAPDU: 80 09 00 00 [17:24:27]Write to MH i2c: E2 08 00 AC 51 80 09 00 00 00 00 00 00 6F [17:24:27]Write i2c OK [17:24:27]MH_I2C_Read... [17:24:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:24:27]Read from MH i2c: E2 [17:24:27]MH_I2C_Read... [17:24:27]Read from MH i2c: E2 03 00 [17:24:27]MH_I2C_Read... [17:24:27]Read from MH i2c: E2 03 00 AC 51 00 90 00 71 [17:24:27]RAPDU: 90 00 [17:24:27]wFMCommunicate OK [17:24:27]SAM_PROTO_ClearQueue done [17:24:27]KKMCreateOFDPacket [17:24:27]OFDProtocolAddRootSTLVToBuf [17:24:27]FM_MakeSignedData [17:24:27]FM_MakeSignedData [17:24:27]SAM_PROTO_SignData [17:24:27]wFMCommunicate request_size=4 [17:24:27]MH_SAM_APDU [17:24:27]CAPDU: 80 0D 01 02 [17:24:27]Write to MH i2c: E2 08 00 AD 51 80 0D 01 02 00 00 00 00 77 [17:24:27]Write i2c OK [17:24:27]MH_I2C_Read... [17:24:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:24:27]Read from MH i2c: E2 [17:24:27]MH_I2C_Read... [17:24:27]Read from MH i2c: E2 03 00 [17:24:27]MH_I2C_Read... [17:24:27]Read from MH i2c: E2 03 00 AD 51 00 90 00 72 [17:24:27]RAPDU: 90 00 [17:24:27]wFMCommunicate OK [17:24:27]wFMCommunicate request_size=255 [17:24:27]MH_SAM_APDU [17:24:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 50 FC 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 4A 0B 01 00 35 04 06 00 F3 [17:24:27]Write to MH i2c: E2 02 01 AE 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 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 50 FC 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 4A 0B 01 00 35 04 06 00 F3 00 00 5D [17:24:27]Write i2c OK [17:24:27]MH_I2C_Read... [17:24:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:28]Read from MH i2c: E2 [17:24:28]MH_I2C_Read... [17:24:28]Read from MH i2c: E2 03 00 [17:24:28]MH_I2C_Read... [17:24:28]Read from MH i2c: E2 03 00 AE 51 00 90 00 73 [17:24:28]RAPDU: 90 00 [17:24:28]wFMCommunicate OK [17:24:28]wFMCommunicate request_size=10 [17:24:28]MH_SAM_APDU [17:24:28]CAPDU: 80 0D 02 02 05 A8 36 D9 CF FE [17:24:28]Write to MH i2c: E2 0D 00 AF 51 80 0D 02 02 05 00 A8 36 D9 CF FE 00 00 08 [17:24:28]Write i2c OK [17:24:28]MH_I2C_Read... [17:24:28]OFD Sender: No OFD packet to send [17:24:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:28]Read from MH i2c: E2 [17:24:28]MH_I2C_Read... [17:24:28]Read from MH i2c: E2 03 00 [17:24:28]MH_I2C_Read... [17:24:28]Read from MH i2c: E2 03 00 AF 51 00 90 00 74 [17:24:28]RAPDU: 90 00 [17:24:28]wFMCommunicate OK [17:24:28]wFMCommunicate request_size=4 [17:24:28]MH_SAM_APDU [17:24:28]CAPDU: 80 0D 03 02 [17:24:28]Write to MH i2c: E2 08 00 B0 51 80 0D 03 02 00 00 00 00 7C [17:24:28]Write i2c OK [17:24:28]MH_I2C_Read... [17:24:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:24:28]Read from MH i2c: E2 [17:24:28]MH_I2C_Read... [17:24:28]Read from MH i2c: E2 0B 00 [17:24:28]MH_I2C_Read... [17:24:28]Read from MH i2c: E2 0B 00 B0 51 00 82 F4 00 4D 84 35 B2 F6 90 00 A1 [17:24:28]RAPDU: 82 F4 00 4D 84 35 B2 F6 90 00 [17:24:28]wFMCommunicate OK [17:24:28]SAM_PROTO_SignData done [17:24:28]FM_MakeSignedData done [17:24:28]CreateOFDProtocolMessage [17:24:28]wFMCommunicate request_size=4 [17:24:28]MH_SAM_APDU [17:24:28]CAPDU: 80 11 00 00 [17:24:28]Write to MH i2c: E2 08 00 B1 51 80 11 00 00 00 00 00 00 7C [17:24:28]Write i2c OK [17:24:28]MH_I2C_Read... [17:24:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:28]Read from MH i2c: E2 [17:24:28]MH_I2C_Read... [17:24:28]Read from MH i2c: E2 17 00 [17:24:28]MH_I2C_Read... [17:24:28]Read from MH i2c: E2 17 00 B1 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 C7 [17:24:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [17:24:28]wFMCommunicate OK [17:24:28]CreateOFDProtocolMessage done [17:24:28]OFDSenderStorePacket 68426 [17:24:28]StoreOFDPacket docnum=68426 [17:24:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 90 13 07 01 E4 F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 50 FC 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 4A 0B 01 00 35 04 06 00 F3 A8 36 D9 CF FE 82 F4 00 4D 84 35 B2 F6 [17:24:28]CheckFolder [17:24:28]dirname=/storage/ofd_packets [17:24:28]CheckFolder done [17:24:28]ProducePacketName [17:24:28]name=ofd_packets/00068426 [17:24:28]NVStorageSaveData ofd_packets/00068426 [17:24:28]File name is /storage/ofd_packets/00068426 [17:24:28]Write 301 bytes [17:24:28]NVStorageSaveData done [17:24:28]OFDSenderStorePacket done [17:24:28]KKMCreateOFDPacket done [17:24:28]NVStorageSaveData kkm_last_timestamp [17:24:28]File name is /storage/kkm_last_timestamp [17:24:28]Write 4 bytes [17:24:28]NVStorageSaveData done [17:24:28]ExternCall_PrintAddStr [17:24:28]wPrintStart [17:24:28]Write to MH i2c: 01 00 00 B2 51 03 [17:24:28]Write i2c OK [17:24:28]MH_I2C_Read... [17:24:28]Read from MH i2c: 01 [17:24:28]MH_I2C_Read... [17:24:28]Read from MH i2c: 01 07 00 [17:24:28]MH_I2C_Read... [17:24:28]Read from MH i2c: 01 07 00 B2 51 00 00 00 00 00 FF 0F 18 [17:24:28]RasterBufferAndPrint [17:24:28]line Счет N : (1)706526 [17:24:28]line ИНН: 02508201610067 [17:24:28]line Контрольно-Кассовый Чек [17:24:28]line ПРОДАЖА [17:24:28]line ТРК (МРК, ГНК) : 63 [17:24:28]line Товар: 2710124130 [17:24:28]line Аи-92-К-4 [17:24:28]line 10.470 * 66.90 [17:24:28]line = 700.44 [17:24:28]line НДС 12% НСП 1% [17:24:28]line > о реализуемом товаре [17:24:28]line ОКРУГЛЕНИЕ: -0.44 [17:24:28]line ИТОГО: 700.00 [17:24:28]line Внесено: 700.00 [17:24:28]line СДАЧА: 0.00 [17:24:28]line НСП 1% : 6.20 [17:24:28]line НДС 12% : 74.38 [17:24:28]line Наличными: 700.00 [17:24:28]line Безнал.: 0.00 [17:24:28]line Место: АЗС № 62 "Партнер Нефть" [17:24:28]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [17:24:28]line СНО: Общий режим [17:24:28]line Чек 172 03.06.2024 17:24 [17:24:28]line Смена: 324 ФФД: 1.0 [17:24:28]line ЗНМ: 0300000181 [17:24:28]line РНМ: 0000000000098096 [17:24:28]line Версия ККМ: 001 [17:24:28]line ФМ: 0000000000965400 [17:24:28]line ФД: 68426 [17:24:28]line ФПД: 267903800299518 [17:24:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T172432&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68426&fm=267903800299518&tin=02508201610067®Number=0000000000098096&sum=70000 [17:24:28]OFD Sender: Processing packet 68426 [packets to send 26, broken 25] [17:24:28]ProducePacketName [17:24:28]name=ofd_packets/00068426 [17:24:28]OFD Sender: To server: pG, [17:24:28]CommunicateWithHost lk.salyk.kg:30040 [17:24:28]ConnectInit lk.salyk.kg [17:24:28]written 0, free lines is 4095 [17:24:28]Connected sock=7 [17:24:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 90 13 07 01 E4 F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 50 FC 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 4A 0B 01 00 35 04 06 00 F3 A8 36 D9 CF FE 82 F4 00 4D 84 35 B2 F6 [17:24:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 D6 CF 47 00 52 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 4A 0B 01 00 F4 03 04 00 4C A3 5D 66 B6 04 01 00 00 06 3D 39 B1 84 9C 7D E5 [17:24:28]CommunicateWithHost err = 0 [17:24:28]CheckOFDResponse [17:24:28]1017 (14) - 77093643461234 [17:24:28]1041 (16) - 0000000000965400 [17:24:28]1040 (4) - 68426 [17:24:28]1012 (4) - 03.06.2024 11:04 [17:24:28]1206 (1) - 0 [17:24:28]OFD Sender: Remove packet 68426 [17:24:28]ProducePacketName [17:24:28]name=ofd_packets/00068426 [17:24:28]NVStorageDeleteData [17:24:29]Write to MH i2c: 01 00 00 DD 51 2E [17:24:29]Write i2c OK [17:24:29]MH_I2C_Read... [17:24:29]Read from MH i2c: 01 [17:24:29]MH_I2C_Read... [17:24:29]Read from MH i2c: 01 07 00 [17:24:29]MH_I2C_Read... [17:24:29]Read from MH i2c: 01 07 00 DD 51 00 00 00 00 00 DC 0C 1D [17:24:29]RasterBufferAndPrint [17:24:29]line [17:24:29]line [17:24:29]line [17:24:29]line [17:24:29]line [17:24:29]written 0, free lines is 3302 [17:24:29]MH_Cut [17:24:29]Write to MH i2c: D1 01 00 E4 51 01 07 [17:24:29]Write i2c OK [17:24:29]MH_I2C_Read... [17:24:29]Read from MH i2c: D1 [17:24:29]MH_I2C_Read... [17:24:29]Read from MH i2c: D1 01 00 [17:24:29]MH_I2C_Read... [17:24:29]Read from MH i2c: D1 01 00 E4 51 00 06 [17:24:29]Write to MH i2c: 01 00 00 E5 51 36 [17:24:29]Write i2c OK [17:24:29]MH_I2C_Read... [17:24:29]OFD Sender: No OFD packet to send [17:24:29]*** Cut start [17:24:29]*** Partial cut [17:24:29]*** CUTSNS_PIN = 1 [17:24:29]*** CUTSNS_PIN = 0 [17:24:30]*** Brake cut motor [17:24:30]Read from MH i2c: 01 [17:24:30]MH_I2C_Read... [17:24:30]*** Stop cut motor [17:24:30]*** Cut end [17:24:30]Read from MH i2c: 01 07 00 [17:24:30]MH_I2C_Read... [17:24:30]Read from MH i2c: 01 07 00 E5 51 00 00 00 00 00 FF 0F 4B [17:24:30]process_action close_receipt done [17:24:30]requested_data is exist [17:24:30]produce_requested_data [17:24:30]requested_item fm.sn is exist - process it [17:24:30]wFMCommunicate request_size=4 [17:24:30]MH_SAM_APDU [17:24:30]CAPDU: 80 11 00 00 [17:24:30]Write to MH i2c: E2 08 00 E6 51 80 11 00 00 00 00 00 00 B1 [17:24:30]Write i2c OK [17:24:30]MH_I2C_Read... [17:24:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:30]Read from MH i2c: E2 [17:24:30]MH_I2C_Read... [17:24:30]Read from MH i2c: E2 17 00 [17:24:30]MH_I2C_Read... [17:24:30]Read from MH i2c: E2 17 00 E6 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 FC [17:24:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [17:24:30]wFMCommunicate OK [17:24:30]requested_item fd.num is exist - process it [17:24:30]SAM_PROTO_GetFieldsCounters [17:24:30]wFMCommunicate request_size=4 [17:24:30]MH_SAM_APDU [17:24:30]CAPDU: 80 13 00 00 [17:24:30]Write to MH i2c: E2 08 00 E7 51 80 13 00 00 00 00 00 00 B4 [17:24:30]Write i2c OK [17:24:30]MH_I2C_Read... [17:24:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:24:30]Read from MH i2c: E2 [17:24:30]MH_I2C_Read... [17:24:30]Read from MH i2c: E2 62 00 [17:24:30]MH_I2C_Read... [17:24:30]Read from MH i2c: E2 62 00 E7 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 4A 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 73 [17:24:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 4A 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:24:30]wFMCommunicate OK [17:24:30]SAM_PROTO_GetFieldsCounters done [17:24:30]requested_item shift.num is exist - process it [17:24:30]requested_item shift.opened is exist - process it [17:24:30]req_shift_opened [17:24:30]FM_GetShiftState [17:24:30]SAM_PROTO_GetShiftState [17:24:30]wFMCommunicate request_size=4 [17:24:30]MH_SAM_APDU [17:24:30]CAPDU: 80 13 01 00 [17:24:30]Write to MH i2c: E2 08 00 E8 51 80 13 01 00 00 00 00 00 B6 [17:24:30]Write i2c OK [17:24:30]MH_I2C_Read... [17:24:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:30]Read from MH i2c: E2 [17:24:30]MH_I2C_Read... [17:24:30]Read from MH i2c: E2 0E 00 [17:24:30]MH_I2C_Read... [17:24:30]Read from MH i2c: E2 0E 00 E8 51 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 91 [17:24:30]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [17:24:30]wFMCommunicate OK [17:24:30]SAM_PROTO_GetShiftState done [17:24:30]FM_GetShiftState done [17:24:30]req_shift_opened done [17:24:30]requested_item shift.open_date is exist - process it [17:24:30]req_shift_open_date [17:24:30]req_shift_open_date done [17:24:30]produce_requested_data done [17:24:30]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68426,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [17:24:30]process_action_free close_receipt [17:24:30]json_value_free [17:24:30]json_value_free done [17:24:30]process_json_proto returns [17:24:30]Send response to host [17:24:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68426,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [17:24:30]free response buf [17:24:30]execute_script done [17:24:30]execute_script returns [17:24:30]free content buf [17:24:30]Sock 6.Close socket [17:24:30]Sock 6.Thread stoped [17:24:34]OFD Sender: No OFD packet to send [17:24:39]OFD Sender: No OFD packet to send [17:24:44]OFD Sender: No OFD packet to send [17:24:49]OFD Sender: No OFD packet to send [17:24:54]OFD Sender: No OFD packet to send [17:24:59]OFD Sender: No OFD packet to send [17:25:04]OFD Sender: No OFD packet to send [17:25:09]OFD Sender: No OFD packet to send [17:25:14]OFD Sender: No OFD packet to send [17:25:19]OFD Sender: No OFD packet to send [17:25:24]OFD Sender: No OFD packet to send [17:25:29]OFD Sender: No OFD packet to send [17:25:34]OFD Sender: No OFD packet to send [17:25:39]OFD Sender: No OFD packet to send [17:25:44]OFD Sender: No OFD packet to send [17:25:49]OFD Sender: No OFD packet to send [17:25:54]OFD Sender: No OFD packet to send [17:25:59]OFD Sender: No OFD packet to send [17:26:04]OFD Sender: No OFD packet to send [17:26:09]OFD Sender: No OFD packet to send [17:26:14]OFD Sender: No OFD packet to send [17:26:19]OFD Sender: No OFD packet to send [17:26:24]OFD Sender: No OFD packet to send [17:26:29]OFD Sender: No OFD packet to send [17:26:34]OFD Sender: No OFD packet to send [17:26:39]OFD Sender: No OFD packet to send [17:26:44]OFD Sender: No OFD packet to send [17:26:49]OFD Sender: No OFD packet to send [17:26:54]OFD Sender: No OFD packet to send [17:26:59]OFD Sender: No OFD packet to send [17:27:04]OFD Sender: No OFD packet to send [17:27:09]OFD Sender: No OFD packet to send [17:27:14]OFD Sender: No OFD packet to send [17:27:19]OFD Sender: No OFD packet to send [17:27:24]OFD Sender: No OFD packet to send [17:27:29]OFD Sender: No OFD packet to send [17:27:34]OFD Sender: No OFD packet to send [17:27:39]OFD Sender: No OFD packet to send [17:27:44]OFD Sender: No OFD packet to send [17:27:49]OFD Sender: No OFD packet to send [17:27:54]OFD Sender: No OFD packet to send [17:27:59]OFD Sender: No OFD packet to send [17:28:04]OFD Sender: No OFD packet to send [17:28:09]OFD Sender: No OFD packet to send [17:28:14]OFD Sender: No OFD packet to send [17:28:19]OFD Sender: No OFD packet to send [17:28:24]OFD Sender: No OFD packet to send [17:28:29]OFD Sender: No OFD packet to send [17:28:34]OFD Sender: No OFD packet to send [17:28:39]OFD Sender: No OFD packet to send [17:28:40]accept exits with 5 [17:28:40]New connection [17:28:40]New thread 3066543460 created [17:28:40]Thread 3066686820 joined [17:28:40]Waiting for new connection... [17:28:40] Sock 5.Parse request [17:28:40]Sock 5.Check first char [17:28:40]Sock 5.First char is OK [17:28:40]request: POST /json_proto HTTP/1.0 [17:28:40]Method: POST [17:28:40]URL: /json_proto [17:28:40]Method is POST - this is cgi request [17:28:40]url: /json_proto [17:28:40]query_string will be loaded in cgi processing [17:28:40]execute_cgi json_proto POST (null) [17:28:40]execute_cgi path=json_proto method=POST [17:28:40]POST find Content-Length [17:28:40]Host: 172.17.36.132:8080 [17:28:40]Content-Length: 843 [17:28:40]Content-Type: application/json [17:28:40] [17:28:40]POST finish read [17:28:40]Found Content-Length = 843 [17:28:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706527", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:28:40]execute_script... [17:28: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)706527", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:28:40]POST & json_proto [17:28:40]process_json_proto [17:28:40]json parsed OK: [17:28:40]protocol is kg_v1.0 [17:28:40]action value=close_receipt [17:28:40]process_action close_receipt [17:28:40]cmd_close_receipt [17:28:40]MH_GetDate [17:28:40]Write to MH i2c: F0 00 00 E9 51 29 [17:28:40]Write i2c OK [17:28:40]MH_I2C_Read... [17:28:40]Read from MH i2c: F0 [17:28:40]MH_I2C_Read... [17:28:40]Read from MH i2c: F0 09 00 [17:28:40]MH_I2C_Read... [17:28:40]Read from MH i2c: F0 09 00 E9 51 00 4F FD 5D 66 B2 22 B0 64 29 [17:28:40]GetLastDocTimeStamp 1717435472 [17:28:40]current date 1717435727 [17:28:40]FM_GetShiftState [17:28:40]SAM_PROTO_GetShiftState [17:28:40]wFMCommunicate request_size=4 [17:28:40]MH_SAM_APDU [17:28:40]CAPDU: 80 13 01 00 [17:28:40]Write to MH i2c: E2 08 00 EA 51 80 13 01 00 00 00 00 00 B8 [17:28:40]Write i2c OK [17:28:40]MH_I2C_Read... [17:28:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:40]Read from MH i2c: E2 [17:28:40]MH_I2C_Read... [17:28:40]Read from MH i2c: E2 0E 00 [17:28:40]MH_I2C_Read... [17:28:40]Read from MH i2c: E2 0E 00 EA 51 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 93 [17:28:40]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [17:28:40]wFMCommunicate OK [17:28:40]SAM_PROTO_GetShiftState done [17:28:40]FM_GetShiftState done [17:28:40]opened in 1717378033 [17:28:40]opened+sec_in_day 1717464433 [17:28:40]quantity*price = 100015 [17:28:40]sum+1 = 100017 [17:28:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 173 03.06.2024 17:28 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68427 ФПД: 250831119997157 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T172847&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68427&fm=250831119997157&tin=02508201610067®Number=0000000000098096&sum=100016 [17:28:42]StoreToDocumentArchive [17:28:42]shift 324 fd 68427 [17:28:42]save to /storage/0324/doc_00068427 [17:28:42]save last doc name /storage/0324/doc_00068427 to /storage/kkm_last_doc_name [17:28:42]save OK [17:28:42]Clear old archive folders... [17:28:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:28:42]tlvbuf is 00464920 [17:28:42]SAM_PROTO_ClearQueue [17:28:42]wFMCommunicate request_size=4 [17:28:42]MH_SAM_APDU [17:28:42]CAPDU: 80 09 00 00 [17:28:42]Write to MH i2c: E2 08 00 F7 51 80 09 00 00 00 00 00 00 BA [17:28:42]Write i2c OK [17:28:42]MH_I2C_Read... [17:28:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:28:42]Read from MH i2c: E2 [17:28:42]MH_I2C_Read... [17:28:42]Read from MH i2c: E2 03 00 [17:28:42]MH_I2C_Read... [17:28:42]Read from MH i2c: E2 03 00 F7 51 00 90 00 BC [17:28:42]RAPDU: 90 00 [17:28:42]wFMCommunicate OK [17:28:42]SAM_PROTO_ClearQueue done [17:28:42]KKMCreateOFDPacket [17:28:42]OFDProtocolAddRootSTLVToBuf [17:28:42]FM_MakeSignedData [17:28:42]FM_MakeSignedData [17:28:42]SAM_PROTO_SignData [17:28:42]wFMCommunicate request_size=4 [17:28:42]MH_SAM_APDU [17:28:42]CAPDU: 80 0D 01 02 [17:28:42]Write to MH i2c: E2 08 00 F8 51 80 0D 01 02 00 00 00 00 C2 [17:28:42]Write i2c OK [17:28:42]MH_I2C_Read... [17:28:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:28:42]Read from MH i2c: E2 [17:28:42]MH_I2C_Read... [17:28:42]Read from MH i2c: E2 03 00 [17:28:42]MH_I2C_Read... [17:28:42]Read from MH i2c: E2 03 00 F8 51 00 90 00 BD [17:28:42]RAPDU: 90 00 [17:28:42]wFMCommunicate OK [17:28:42]wFMCommunicate request_size=255 [17:28:42]MH_SAM_APDU [17:28:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 4F FD 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 4B 0B 01 00 35 04 06 00 E4 [17:28:42]Write to MH i2c: E2 02 01 F9 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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 4F FD 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 4B 0B 01 00 35 04 06 00 E4 00 00 A5 [17:28:42]Write i2c OK [17:28:42]MH_I2C_Read... [17:28:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:42]Read from MH i2c: E2 [17:28:42]MH_I2C_Read... [17:28:42]Read from MH i2c: E2 03 00 [17:28:42]MH_I2C_Read... [17:28:42]Read from MH i2c: E2 03 00 F9 51 00 90 00 BE [17:28:42]RAPDU: 90 00 [17:28:42]wFMCommunicate OK [17:28:42]wFMCommunicate request_size=10 [17:28:42]MH_SAM_APDU [17:28:42]CAPDU: 80 0D 02 02 05 21 2B CE 58 E5 [17:28:42]Write to MH i2c: E2 0D 00 FA 51 80 0D 02 02 05 00 21 2B CE 58 E5 00 00 26 [17:28:42]Write i2c OK [17:28:42]MH_I2C_Read... [17:28:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:42]Read from MH i2c: E2 [17:28:42]MH_I2C_Read... [17:28:42]Read from MH i2c: E2 03 00 [17:28:42]MH_I2C_Read... [17:28:42]Read from MH i2c: E2 03 00 FA 51 00 90 00 BF [17:28:42]RAPDU: 90 00 [17:28:42]wFMCommunicate OK [17:28:42]wFMCommunicate request_size=4 [17:28:42]MH_SAM_APDU [17:28:42]CAPDU: 80 0D 03 02 [17:28:42]Write to MH i2c: E2 08 00 FB 51 80 0D 03 02 00 00 00 00 C7 [17:28:42]Write i2c OK [17:28:42]MH_I2C_Read... [17:28:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:28:42]Read from MH i2c: E2 [17:28:42]MH_I2C_Read... [17:28:42]Read from MH i2c: E2 0B 00 [17:28:42]MH_I2C_Read... [17:28:42]Read from MH i2c: E2 0B 00 FB 51 00 E3 C8 3C 24 29 18 FA EF 90 00 FD [17:28:42]RAPDU: E3 C8 3C 24 29 18 FA EF 90 00 [17:28:42]wFMCommunicate OK [17:28:42]SAM_PROTO_SignData done [17:28:42]FM_MakeSignedData done [17:28:42]CreateOFDProtocolMessage [17:28:42]wFMCommunicate request_size=4 [17:28:42]MH_SAM_APDU [17:28:42]CAPDU: 80 11 00 00 [17:28:42]Write to MH i2c: E2 08 00 FC 51 80 11 00 00 00 00 00 00 C7 [17:28:42]Write i2c OK [17:28:42]MH_I2C_Read... [17:28:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:42]Read from MH i2c: E2 [17:28:42]MH_I2C_Read... [17:28:42]Read from MH i2c: E2 17 00 [17:28:42]MH_I2C_Read... [17:28:42]Read from MH i2c: E2 17 00 FC 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 12 [17:28:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [17:28:42]wFMCommunicate OK [17:28:42]CreateOFDProtocolMessage done [17:28:42]OFDSenderStorePacket 68427 [17:28:42]StoreOFDPacket docnum=68427 [17:28:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 B0 33 07 01 BB 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 4F FD 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 4B 0B 01 00 35 04 06 00 E4 21 2B CE 58 E5 E3 C8 3C 24 29 18 FA EF [17:28:42]CheckFolder [17:28:42]dirname=/storage/ofd_packets [17:28:42]CheckFolder done [17:28:42]ProducePacketName [17:28:42]name=ofd_packets/00068427 [17:28:42]NVStorageSaveData ofd_packets/00068427 [17:28:42]File name is /storage/ofd_packets/00068427 [17:28:42]Write 301 bytes [17:28:42]NVStorageSaveData done [17:28:42]OFDSenderStorePacket done [17:28:42]KKMCreateOFDPacket done [17:28:42]NVStorageSaveData kkm_last_timestamp [17:28:42]File name is /storage/kkm_last_timestamp [17:28:42]Write 4 bytes [17:28:42]NVStorageSaveData done [17:28:42]ExternCall_PrintAddStr [17:28:42]wPrintStart [17:28:42]Write to MH i2c: 01 00 00 FD 51 4E [17:28:42]Write i2c OK [17:28:42]MH_I2C_Read... [17:28:42]Read from MH i2c: 01 [17:28:42]MH_I2C_Read... [17:28:42]Read from MH i2c: 01 07 00 [17:28:42]MH_I2C_Read... [17:28:42]Read from MH i2c: 01 07 00 FD 51 00 00 00 00 00 FF 0F 63 [17:28:42]RasterBufferAndPrint [17:28:42]line Счет N : (1)706527 [17:28:42]line ИНН: 02508201610067 [17:28:42]line Контрольно-Кассовый Чек [17:28:42]line ПРОДАЖА [17:28:42]line ТРК (МРК, ГНК) : 53 [17:28:42]line Товар: 2710124130 [17:28:42]line Аи-92-К-4 [17:28:42]line 14.950 * 66.90 [17:28:42]line = 1000.16 [17:28:42]line НДС 12% НСП 1% [17:28:42]line > о реализуемом товаре [17:28:42]line ИТОГО: 1000.16 [17:28:42]line НСП 1% : 8.85 [17:28:42]line НДС 12% : 106.21 [17:28:42]line Наличными: 0.00 [17:28:42]line Безнал.: 1000.16 [17:28:42]line Место: АЗС № 62 "Партнер Нефть" [17:28:42]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [17:28:42]line СНО: Общий режим [17:28:42]line Чек 173 03.06.2024 17:28 [17:28:42]line Смена: 324 ФФД: 1.0 [17:28:42]line ЗНМ: 0300000181 [17:28:42]line РНМ: 0000000000098096 [17:28:42]line Версия ККМ: 001 [17:28:42]line Платежная система: АКБ Кыргызстан [17:28:42]line ФМ: 0000000000965400 [17:28:42]line ФД: 68427 [17:28:42]line ФПД: 250831119997157 [17:28:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T172847&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68427&fm=250831119997157&tin=02508201610067®Number=0000000000098096&sum=100016 [17:28:42]OFD Sender: Processing packet 68427 [packets to send 26, broken 25] [17:28:42]ProducePacketName [17:28:42]name=ofd_packets/00068427 [17:28:42]OFD Sender: To server: pG, [17:28:42]CommunicateWithHost lk.salyk.kg:30040 [17:28:42]ConnectInit lk.salyk.kg [17:28:42]written 0, free lines is 4095 [17:28:42]Connected sock=7 [17:28:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 B0 33 07 01 BB 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 4F FD 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 4B 0B 01 00 35 04 06 00 E4 21 2B CE 58 E5 E3 C8 3C 24 29 18 FA EF [17:28:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 FB D4 47 00 CB 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 4B 0B 01 00 F4 03 04 00 4A A4 5D 66 B6 04 01 00 00 7D 36 67 8C 11 81 4C DB [17:28:43]CommunicateWithHost err = 0 [17:28:43]CheckOFDResponse [17:28:43]1017 (14) - 77093643461234 [17:28:43]1041 (16) - 0000000000965400 [17:28:43]1040 (4) - 68427 [17:28:43]1012 (4) - 03.06.2024 11:08 [17:28:43]1206 (1) - 0 [17:28:43]OFD Sender: Remove packet 68427 [17:28:43]ProducePacketName [17:28:43]name=ofd_packets/00068427 [17:28:43]NVStorageDeleteData [17:28:43]Write to MH i2c: 01 00 00 27 52 79 [17:28:43]Write i2c OK [17:28:43]MH_I2C_Read... [17:28:43]Read from MH i2c: 01 [17:28:43]MH_I2C_Read... [17:28:43]Read from MH i2c: 01 07 00 [17:28:43]MH_I2C_Read... [17:28:43]Read from MH i2c: 01 07 00 27 52 00 00 00 00 00 FB 0C 87 [17:28:43]RasterBufferAndPrint [17:28:43]line [17:28:43]line [17:28:43]line [17:28:43]line [17:28:43]line [17:28:43]written 0, free lines is 3332 [17:28:43]MH_Cut [17:28:43]Write to MH i2c: D1 01 00 2E 52 01 52 [17:28:43]Write i2c OK [17:28:43]MH_I2C_Read... [17:28:43]Read from MH i2c: D1 [17:28:43]MH_I2C_Read... [17:28:43]Read from MH i2c: D1 01 00 [17:28:43]MH_I2C_Read... [17:28:43]Read from MH i2c: D1 01 00 2E 52 00 51 [17:28:43]Write to MH i2c: 01 00 00 2F 52 81 [17:28:43]Write i2c OK [17:28:43]MH_I2C_Read... [17:28:43]OFD Sender: No OFD packet to send [17:28:44]*** Cut start [17:28:44]*** Partial cut [17:28:44]*** CUTSNS_PIN = 1 [17:28:44]*** CUTSNS_PIN = 0 [17:28:44]*** Brake cut motor [17:28:44]Read from MH i2c: 01 [17:28:44]MH_I2C_Read... [17:28:44]*** Stop cut motor [17:28:44]*** Cut end [17:28:44]Read from MH i2c: 01 07 00 [17:28:44]MH_I2C_Read... [17:28:44]Read from MH i2c: 01 07 00 2F 52 00 00 00 00 00 FF 0F 96 [17:28:44]process_action close_receipt done [17:28:44]requested_data is exist [17:28:44]produce_requested_data [17:28:44]requested_item fm.sn is exist - process it [17:28:44]wFMCommunicate request_size=4 [17:28:44]MH_SAM_APDU [17:28:44]CAPDU: 80 11 00 00 [17:28:44]Write to MH i2c: E2 08 00 30 52 80 11 00 00 00 00 00 00 FC [17:28:44]Write i2c OK [17:28:44]MH_I2C_Read... [17:28:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:44]Read from MH i2c: E2 [17:28:44]MH_I2C_Read... [17:28:44]Read from MH i2c: E2 17 00 [17:28:44]MH_I2C_Read... [17:28:44]Read from MH i2c: E2 17 00 30 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 47 [17:28:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [17:28:44]wFMCommunicate OK [17:28:44]requested_item fd.num is exist - process it [17:28:44]SAM_PROTO_GetFieldsCounters [17:28:44]wFMCommunicate request_size=4 [17:28:44]MH_SAM_APDU [17:28:44]CAPDU: 80 13 00 00 [17:28:44]Write to MH i2c: E2 08 00 31 52 80 13 00 00 00 00 00 00 FF [17:28:44]Write i2c OK [17:28:44]MH_I2C_Read... [17:28:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:28:44]Read from MH i2c: E2 [17:28:44]MH_I2C_Read... [17:28:44]Read from MH i2c: E2 62 00 [17:28:44]MH_I2C_Read... [17:28:44]Read from MH i2c: E2 62 00 31 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 4B 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 C2 [17:28:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 4B 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:28:44]wFMCommunicate OK [17:28:44]SAM_PROTO_GetFieldsCounters done [17:28:44]requested_item shift.num is exist - process it [17:28:44]requested_item shift.opened is exist - process it [17:28:44]req_shift_opened [17:28:44]FM_GetShiftState [17:28:44]SAM_PROTO_GetShiftState [17:28:44]wFMCommunicate request_size=4 [17:28:44]MH_SAM_APDU [17:28:44]CAPDU: 80 13 01 00 [17:28:44]Write to MH i2c: E2 08 00 32 52 80 13 01 00 00 00 00 00 01 [17:28:44]Write i2c OK [17:28:44]MH_I2C_Read... [17:28:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:45]Read from MH i2c: E2 [17:28:45]MH_I2C_Read... [17:28:45]Read from MH i2c: E2 0E 00 [17:28:45]MH_I2C_Read... [17:28:45]Read from MH i2c: E2 0E 00 32 52 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 DC [17:28:45]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [17:28:45]wFMCommunicate OK [17:28:45]SAM_PROTO_GetShiftState done [17:28:45]FM_GetShiftState done [17:28:45]req_shift_opened done [17:28:45]requested_item shift.open_date is exist - process it [17:28:45]req_shift_open_date [17:28:45]req_shift_open_date done [17:28:45]produce_requested_data done [17:28:45]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68427,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [17:28:45]process_action_free close_receipt [17:28:45]json_value_free [17:28:45]json_value_free done [17:28:45]process_json_proto returns [17:28:45]Send response to host [17:28:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68427,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [17:28:45]free response buf [17:28:45]execute_script done [17:28:45]execute_script returns [17:28:45]free content buf [17:28:45]Sock 5.Close socket [17:28:45]Sock 5.Thread stoped [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:26]accept exits with 6 [17:31:26]New connection [17:31:26]New thread 3066686820 created [17:31:26]Thread 3066543460 joined [17:31:26]Waiting for new connection... [17:31:26] Sock 6.Parse request [17:31:26]Sock 6.Check first char [17:31:26]Sock 6.First char is OK [17:31:26]request: POST /json_proto HTTP/1.0 [17:31:26]Method: POST [17:31:26]URL: /json_proto [17:31:26]Method is POST - this is cgi request [17:31:26]url: /json_proto [17:31:26]query_string will be loaded in cgi processing [17:31:26]execute_cgi json_proto POST (null) [17:31:26]execute_cgi path=json_proto method=POST [17:31:26]POST find Content-Length [17:31:26]Host: 172.17.36.132:8080 [17:31:26]Content-Length: 677 [17:31:26]Content-Type: application/json [17:31:26] [17:31:26]POST finish read [17:31:26]Found Content-Length = 677 [17:31:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706529", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.090, "sum" : 340.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 340.00, "payments": [ { "type": 0, "sum" : 340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:31:26]execute_script... [17:31:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706529", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.090, "sum" : 340.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 340.00, "payments": [ { "type": 0, "sum" : 340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:31:26]POST & json_proto [17:31:26]process_json_proto [17:31:26]json parsed OK: [17:31:26]protocol is kg_v1.0 [17:31:26]action value=close_receipt [17:31:26]process_action close_receipt [17:31:26]cmd_close_receipt [17:31:26]MH_GetDate [17:31:26]Write to MH i2c: F0 00 00 33 52 74 [17:31:26]Write i2c OK [17:31:26]MH_I2C_Read... [17:31:26]Read from MH i2c: F0 [17:31:26]MH_I2C_Read... [17:31:26]Read from MH i2c: F0 09 00 [17:31:26]MH_I2C_Read... [17:31:26]Read from MH i2c: F0 09 00 33 52 00 F4 FD 5D 66 B2 22 B0 64 19 [17:31:26]GetLastDocTimeStamp 1717435727 [17:31:26]current date 1717435892 [17:31:26]FM_GetShiftState [17:31:26]SAM_PROTO_GetShiftState [17:31:26]wFMCommunicate request_size=4 [17:31:26]MH_SAM_APDU [17:31:26]CAPDU: 80 13 01 00 [17:31:26]Write to MH i2c: E2 08 00 34 52 80 13 01 00 00 00 00 00 03 [17:31:26]Write i2c OK [17:31:26]MH_I2C_Read... [17:31:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:26]Read from MH i2c: E2 [17:31:26]MH_I2C_Read... [17:31:26]Read from MH i2c: E2 0E 00 [17:31:26]MH_I2C_Read... [17:31:26]Read from MH i2c: E2 0E 00 34 52 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 DE [17:31:26]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [17:31:26]wFMCommunicate OK [17:31:26]SAM_PROTO_GetShiftState done [17:31:26]FM_GetShiftState done [17:31:26]opened in 1717378033 [17:31:26]opened+sec_in_day 1717464433 [17:31:26]quantity*price = 34052 [17:31:26]sum+1 = 34053 [17:31:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 340.00 Внесено: 340.00 СДАЧА: 0.00 НСП 1% : 3.01 НДС 12% : 36.16 Наличными: 340.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 174 03.06.2024 17:31 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68428 ФПД: 266954616851544 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T173132&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68428&fm=266954616851544&tin=02508201610067®Number=0000000000098096&sum=34000 [17:31:27]StoreToDocumentArchive [17:31:27]shift 324 fd 68428 [17:31:27]save to /storage/0324/doc_00068428 [17:31:27]save last doc name /storage/0324/doc_00068428 to /storage/kkm_last_doc_name [17:31:27]save OK [17:31:27]Clear old archive folders... [17:31:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:31:27]tlvbuf is 003A15E0 [17:31:27]SAM_PROTO_ClearQueue [17:31:27]wFMCommunicate request_size=4 [17:31:27]MH_SAM_APDU [17:31:27]CAPDU: 80 09 00 00 [17:31:27]Write to MH i2c: E2 08 00 41 52 80 09 00 00 00 00 00 00 05 [17:31:27]Write i2c OK [17:31:27]MH_I2C_Read... [17:31:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:31:27]Read from MH i2c: E2 [17:31:27]MH_I2C_Read... [17:31:27]Read from MH i2c: E2 03 00 [17:31:27]MH_I2C_Read... [17:31:27]Read from MH i2c: E2 03 00 41 52 00 90 00 07 [17:31:27]RAPDU: 90 00 [17:31:27]wFMCommunicate OK [17:31:27]SAM_PROTO_ClearQueue done [17:31:27]KKMCreateOFDPacket [17:31:27]OFDProtocolAddRootSTLVToBuf [17:31:27]FM_MakeSignedData [17:31:27]FM_MakeSignedData [17:31:27]SAM_PROTO_SignData [17:31:27]wFMCommunicate request_size=4 [17:31:27]MH_SAM_APDU [17:31:27]CAPDU: 80 0D 01 02 [17:31:27]Write to MH i2c: E2 08 00 42 52 80 0D 01 02 00 00 00 00 0D [17:31:27]Write i2c OK [17:31:27]MH_I2C_Read... [17:31:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:31:27]Read from MH i2c: E2 [17:31:27]MH_I2C_Read... [17:31:27]Read from MH i2c: E2 03 00 [17:31:27]MH_I2C_Read... [17:31:27]Read from MH i2c: E2 03 00 42 52 00 90 00 08 [17:31:27]RAPDU: 90 00 [17:31:27]wFMCommunicate OK [17:31:27]wFMCommunicate request_size=255 [17:31:27]MH_SAM_APDU [17:31:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 F4 FD 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 4C 0B 01 00 35 04 06 00 F2 [17:31:27]Write to MH i2c: E2 02 01 43 52 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 F4 FD 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 4C 0B 01 00 35 04 06 00 F2 00 00 C4 [17:31:27]Write i2c OK [17:31:27]MH_I2C_Read... [17:31:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:27]Read from MH i2c: E2 [17:31:27]MH_I2C_Read... [17:31:27]Read from MH i2c: E2 03 00 [17:31:27]MH_I2C_Read... [17:31:27]Read from MH i2c: E2 03 00 43 52 00 90 00 09 [17:31:27]RAPDU: 90 00 [17:31:27]wFMCommunicate OK [17:31:27]wFMCommunicate request_size=10 [17:31:27]MH_SAM_APDU [17:31:27]CAPDU: 80 0D 02 02 05 CB 37 1B CC 58 [17:31:27]Write to MH i2c: E2 0D 00 44 52 80 0D 02 02 05 00 CB 37 1B CC 58 00 00 5B [17:31:27]Write i2c OK [17:31:27]MH_I2C_Read... [17:31:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:27]Read from MH i2c: E2 [17:31:27]MH_I2C_Read... [17:31:27]Read from MH i2c: E2 03 00 [17:31:27]MH_I2C_Read... [17:31:27]Read from MH i2c: E2 03 00 44 52 00 90 00 0A [17:31:27]RAPDU: 90 00 [17:31:27]wFMCommunicate OK [17:31:27]wFMCommunicate request_size=4 [17:31:27]MH_SAM_APDU [17:31:27]CAPDU: 80 0D 03 02 [17:31:27]Write to MH i2c: E2 08 00 45 52 80 0D 03 02 00 00 00 00 12 [17:31:27]Write i2c OK [17:31:27]MH_I2C_Read... [17:31:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:31:27]Read from MH i2c: E2 [17:31:27]MH_I2C_Read... [17:31:27]Read from MH i2c: E2 0B 00 [17:31:27]MH_I2C_Read... [17:31:27]Read from MH i2c: E2 0B 00 45 52 00 9E C9 D7 51 37 CA E3 B5 90 00 3B [17:31:27]RAPDU: 9E C9 D7 51 37 CA E3 B5 90 00 [17:31:27]wFMCommunicate OK [17:31:27]SAM_PROTO_SignData done [17:31:27]FM_MakeSignedData done [17:31:27]CreateOFDProtocolMessage [17:31:27]wFMCommunicate request_size=4 [17:31:27]MH_SAM_APDU [17:31:27]CAPDU: 80 11 00 00 [17:31:27]Write to MH i2c: E2 08 00 46 52 80 11 00 00 00 00 00 00 12 [17:31:27]Write i2c OK [17:31:27]MH_I2C_Read... [17:31:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:27]Read from MH i2c: E2 [17:31:27]MH_I2C_Read... [17:31:27]Read from MH i2c: E2 17 00 [17:31:27]MH_I2C_Read... [17:31:27]Read from MH i2c: E2 17 00 46 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 5D [17:31:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [17:31:27]wFMCommunicate OK [17:31:27]CreateOFDProtocolMessage done [17:31:27]OFDSenderStorePacket 68428 [17:31:27]StoreOFDPacket docnum=68428 [17:31:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 A6 D3 07 01 68 F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 F4 FD 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 4C 0B 01 00 35 04 06 00 F2 CB 37 1B CC 58 9E C9 D7 51 37 CA E3 B5 [17:31:27]CheckFolder [17:31:27]dirname=/storage/ofd_packets [17:31:27]CheckFolder done [17:31:27]ProducePacketName [17:31:27]name=ofd_packets/00068428 [17:31:27]NVStorageSaveData ofd_packets/00068428 [17:31:27]File name is /storage/ofd_packets/00068428 [17:31:27]Write 301 bytes [17:31:27]NVStorageSaveData done [17:31:27]OFDSenderStorePacket done [17:31:27]KKMCreateOFDPacket done [17:31:27]NVStorageSaveData kkm_last_timestamp [17:31:27]File name is /storage/kkm_last_timestamp [17:31:27]Write 4 bytes [17:31:27]NVStorageSaveData done [17:31:27]ExternCall_PrintAddStr [17:31:27]wPrintStart [17:31:27]Write to MH i2c: 01 00 00 47 52 99 [17:31:28]Write i2c OK [17:31:28]MH_I2C_Read... [17:31:28]Read from MH i2c: 01 [17:31:28]MH_I2C_Read... [17:31:28]Read from MH i2c: 01 07 00 [17:31:28]MH_I2C_Read... [17:31:28]Read from MH i2c: 01 07 00 47 52 00 00 00 00 00 FF 0F AE [17:31:28]RasterBufferAndPrint [17:31:28]line Счет N : (1)706529 [17:31:28]line ИНН: 02508201610067 [17:31:28]line Контрольно-Кассовый Чек [17:31:28]line ПРОДАЖА [17:31:28]line ТРК (МРК, ГНК) : 32 [17:31:28]line Товар: 2710124130 [17:31:28]line Аи-92-К-4 [17:31:28]line 5.090 * 66.90 [17:31:28]line = 340.52 [17:31:28]line НДС 12% НСП 1% [17:31:28]line > о реализуемом товаре [17:31:28]line ОКРУГЛЕНИЕ: -0.52 [17:31:28]line ИТОГО: 340.00 [17:31:28]line Внесено: 340.00 [17:31:28]line СДАЧА: 0.00 [17:31:28]line НСП 1% : 3.01 [17:31:28]line НДС 12% : 36.16 [17:31:28]line Наличными: 340.00 [17:31:28]line Безнал.: 0.00 [17:31:28]line Место: АЗС № 62 "Партнер Нефть" [17:31:28]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [17:31:28]line СНО: Общий режим [17:31:28]line Чек 174 03.06.2024 17:31 [17:31:28]line Смена: 324 ФФД: 1.0 [17:31:28]line ЗНМ: 0300000181 [17:31:28]line РНМ: 0000000000098096 [17:31:28]line Версия ККМ: 001 [17:31:28]line ФМ: 0000000000965400 [17:31:28]line ФД: 68428 [17:31:28]line ФПД: 266954616851544 [17:31:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T173132&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68428&fm=266954616851544&tin=02508201610067®Number=0000000000098096&sum=34000 [17:31:28]OFD Sender: Processing packet 68428 [packets to send 26, broken 25] [17:31:28]ProducePacketName [17:31:28]name=ofd_packets/00068428 [17:31:28]OFD Sender: To server: pG, [17:31:28]CommunicateWithHost lk.salyk.kg:30040 [17:31:28]ConnectInit lk.salyk.kg [17:31:28]written 0, free lines is 4095 [17:31:28]Connected sock=7 [17:31:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 A6 D3 07 01 68 F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 F4 FD 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 4C 0B 01 00 35 04 06 00 F2 CB 37 1B CC 58 9E C9 D7 51 37 CA E3 B5 [17:31:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 E6 5F 47 00 4E 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 4C 0B 01 00 F4 03 04 00 F0 A4 5D 66 B6 04 01 00 00 BC F5 A9 B8 5B 9B 49 87 [17:31:28]CommunicateWithHost err = 0 [17:31:28]CheckOFDResponse [17:31:28]1017 (14) - 77093643461234 [17:31:28]1041 (16) - 0000000000965400 [17:31:28]1040 (4) - 68428 [17:31:28]1012 (4) - 03.06.2024 11:11 [17:31:28]1206 (1) - 0 [17:31:28]OFD Sender: Remove packet 68428 [17:31:28]ProducePacketName [17:31:28]name=ofd_packets/00068428 [17:31:28]NVStorageDeleteData [17:31:28]Write to MH i2c: 01 00 00 72 52 C4 [17:31:28]Write i2c OK [17:31:28]MH_I2C_Read... [17:31:28]Read from MH i2c: 01 [17:31:28]MH_I2C_Read... [17:31:28]Read from MH i2c: 01 07 00 [17:31:28]MH_I2C_Read... [17:31:28]Read from MH i2c: 01 07 00 72 52 00 00 00 00 00 DE 0C B5 [17:31:28]RasterBufferAndPrint [17:31:28]line [17:31:28]line [17:31:28]line [17:31:28]line [17:31:28]line [17:31:28]written 0, free lines is 3300 [17:31:28]MH_Cut [17:31:28]Write to MH i2c: D1 01 00 79 52 01 9D [17:31:28]Write i2c OK [17:31:28]MH_I2C_Read... [17:31:28]Read from MH i2c: D1 [17:31:28]MH_I2C_Read... [17:31:28]Read from MH i2c: D1 01 00 [17:31:28]MH_I2C_Read... [17:31:28]Read from MH i2c: D1 01 00 79 52 00 9C [17:31:28]Write to MH i2c: 01 00 00 7A 52 CC [17:31:28]Write i2c OK [17:31:28]MH_I2C_Read... [17:31:29]OFD Sender: No OFD packet to send [17:31:29]*** Cut start [17:31:29]*** Partial cut [17:31:29]*** CUTSNS_PIN = 1 [17:31:29]*** CUTSNS_PIN = 0 [17:31:29]*** Brake cut motor [17:31:30]Read from MH i2c: 01 [17:31:30]MH_I2C_Read... [17:31:30]*** Stop cut motor [17:31:30]*** Cut end [17:31:30]Read from MH i2c: 01 07 00 [17:31:30]MH_I2C_Read... [17:31:30]Read from MH i2c: 01 07 00 7A 52 00 00 00 00 00 FF 0F E1 [17:31:30]process_action close_receipt done [17:31:30]requested_data is exist [17:31:30]produce_requested_data [17:31:30]requested_item fm.sn is exist - process it [17:31:30]wFMCommunicate request_size=4 [17:31:30]MH_SAM_APDU [17:31:30]CAPDU: 80 11 00 00 [17:31:30]Write to MH i2c: E2 08 00 7B 52 80 11 00 00 00 00 00 00 47 [17:31:30]Write i2c OK [17:31:30]MH_I2C_Read... [17:31:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:30]Read from MH i2c: E2 [17:31:30]MH_I2C_Read... [17:31:30]Read from MH i2c: E2 17 00 [17:31:30]MH_I2C_Read... [17:31:30]Read from MH i2c: E2 17 00 7B 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 92 [17:31:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [17:31:30]wFMCommunicate OK [17:31:30]requested_item fd.num is exist - process it [17:31:30]SAM_PROTO_GetFieldsCounters [17:31:30]wFMCommunicate request_size=4 [17:31:30]MH_SAM_APDU [17:31:30]CAPDU: 80 13 00 00 [17:31:30]Write to MH i2c: E2 08 00 7C 52 80 13 00 00 00 00 00 00 4A [17:31:30]Write i2c OK [17:31:30]MH_I2C_Read... [17:31:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:31:30]Read from MH i2c: E2 [17:31:30]MH_I2C_Read... [17:31:30]Read from MH i2c: E2 62 00 [17:31:30]MH_I2C_Read... [17:31:30]Read from MH i2c: E2 62 00 7C 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 4C 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 11 [17:31:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 4C 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:31:30]wFMCommunicate OK [17:31:30]SAM_PROTO_GetFieldsCounters done [17:31:30]requested_item shift.num is exist - process it [17:31:30]requested_item shift.opened is exist - process it [17:31:30]req_shift_opened [17:31:30]FM_GetShiftState [17:31:30]SAM_PROTO_GetShiftState [17:31:30]wFMCommunicate request_size=4 [17:31:30]MH_SAM_APDU [17:31:30]CAPDU: 80 13 01 00 [17:31:30]Write to MH i2c: E2 08 00 7D 52 80 13 01 00 00 00 00 00 4C [17:31:30]Write i2c OK [17:31:30]MH_I2C_Read... [17:31:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:30]Read from MH i2c: E2 [17:31:30]MH_I2C_Read... [17:31:30]Read from MH i2c: E2 0E 00 [17:31:30]MH_I2C_Read... [17:31:30]Read from MH i2c: E2 0E 00 7D 52 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 27 [17:31:30]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [17:31:30]wFMCommunicate OK [17:31:30]SAM_PROTO_GetShiftState done [17:31:30]FM_GetShiftState done [17:31:30]req_shift_opened done [17:31:30]requested_item shift.open_date is exist - process it [17:31:30]req_shift_open_date [17:31:30]req_shift_open_date done [17:31:30]produce_requested_data done [17:31:30]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68428,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [17:31:30]process_action_free close_receipt [17:31:30]json_value_free [17:31:30]json_value_free done [17:31:30]process_json_proto returns [17:31:30]Send response to host [17:31:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68428,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [17:31:30]free response buf [17:31:30]execute_script done [17:31:30]execute_script returns [17:31:30]free content buf [17:31:30]Sock 6.Close socket [17:31:30]Sock 6.Thread stoped [17:31:34]OFD Sender: No OFD packet to send [17:31:39]OFD Sender: No OFD packet to send [17:31:44]OFD Sender: No OFD packet to send [17:31:49]OFD Sender: No OFD packet to send [17:31:54]OFD Sender: No OFD packet to send [17:31:59]OFD Sender: No OFD packet to send [17:32:04]OFD Sender: No OFD packet to send [17:32:09]OFD Sender: No OFD packet to send [17:32:14]OFD Sender: No OFD packet to send [17:32:19]OFD Sender: No OFD packet to send [17:32:21]accept exits with 5 [17:32:21]New connection [17:32:21]New thread 3066543460 created [17:32:21]Thread 3066686820 joined [17:32:21]Waiting for new connection... [17:32:21] Sock 5.Parse request [17:32:21]Sock 5.Check first char [17:32:21]Sock 5.First char is OK [17:32:21]request: POST /json_proto HTTP/1.0 [17:32:21]Method: POST [17:32:21]URL: /json_proto [17:32:21]Method is POST - this is cgi request [17:32:21]url: /json_proto [17:32:21]query_string will be loaded in cgi processing [17:32:21]execute_cgi json_proto POST (null) [17:32:21]execute_cgi path=json_proto method=POST [17:32:21]POST find Content-Length [17:32:21]Host: 172.17.36.132:8080 [17:32:21]Content-Length: 677 [17:32:21]Content-Type: application/json [17:32:21] [17:32:21]POST finish read [17:32:21]Found Content-Length = 677 [17:32:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706530", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:32:21]execute_script... [17:32: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)706530", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:32:21]POST & json_proto [17:32:21]process_json_proto [17:32:21]json parsed OK: [17:32:21]protocol is kg_v1.0 [17:32:21]action value=close_receipt [17:32:21]process_action close_receipt [17:32:21]cmd_close_receipt [17:32:21]MH_GetDate [17:32:21]Write to MH i2c: F0 00 00 7E 52 BF [17:32:21]Write i2c OK [17:32:21]MH_I2C_Read... [17:32:21]Read from MH i2c: F0 [17:32:21]MH_I2C_Read... [17:32:21]Read from MH i2c: F0 09 00 [17:32:21]MH_I2C_Read... [17:32:21]Read from MH i2c: F0 09 00 7E 52 00 2B FE 5D 66 B2 22 B0 64 9C [17:32:21]GetLastDocTimeStamp 1717435892 [17:32:21]current date 1717435947 [17:32:21]FM_GetShiftState [17:32:21]SAM_PROTO_GetShiftState [17:32:21]wFMCommunicate request_size=4 [17:32:21]MH_SAM_APDU [17:32:21]CAPDU: 80 13 01 00 [17:32:21]Write to MH i2c: E2 08 00 7F 52 80 13 01 00 00 00 00 00 4E [17:32:21]Write i2c OK [17:32:21]MH_I2C_Read... [17:32:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:32:21]Read from MH i2c: E2 [17:32:21]MH_I2C_Read... [17:32:21]Read from MH i2c: E2 0E 00 [17:32:21]MH_I2C_Read... [17:32:21]Read from MH i2c: E2 0E 00 7F 52 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 29 [17:32:21]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [17:32:21]wFMCommunicate OK [17:32:21]SAM_PROTO_GetShiftState done [17:32:21]FM_GetShiftState done [17:32:21]opened in 1717378033 [17:32:21]opened+sec_in_day 1717464433 [17:32:21]quantity*price = 30038 [17:32:21]sum+1 = 30039 [17:32:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 175 03.06.2024 17:32 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68429 ФПД: 168323363684242 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T173227&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68429&fm=168323363684242&tin=02508201610067®Number=0000000000098096&sum=30000 [17:32:22]StoreToDocumentArchive [17:32:22]shift 324 fd 68429 [17:32:22]save to /storage/0324/doc_00068429 [17:32:22]save last doc name /storage/0324/doc_00068429 to /storage/kkm_last_doc_name [17:32:22]save OK [17:32:22]Clear old archive folders... [17:32:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:32:22]tlvbuf is B6F14510 [17:32:22]SAM_PROTO_ClearQueue [17:32:22]wFMCommunicate request_size=4 [17:32:22]MH_SAM_APDU [17:32:22]CAPDU: 80 09 00 00 [17:32:22]Write to MH i2c: E2 08 00 8C 52 80 09 00 00 00 00 00 00 50 [17:32:22]Write i2c OK [17:32:22]MH_I2C_Read... [17:32:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:32:22]Read from MH i2c: E2 [17:32:22]MH_I2C_Read... [17:32:22]Read from MH i2c: E2 03 00 [17:32:22]MH_I2C_Read... [17:32:22]Read from MH i2c: E2 03 00 8C 52 00 90 00 52 [17:32:22]RAPDU: 90 00 [17:32:22]wFMCommunicate OK [17:32:22]SAM_PROTO_ClearQueue done [17:32:22]KKMCreateOFDPacket [17:32:22]OFDProtocolAddRootSTLVToBuf [17:32:22]FM_MakeSignedData [17:32:22]FM_MakeSignedData [17:32:22]SAM_PROTO_SignData [17:32:22]wFMCommunicate request_size=4 [17:32:22]MH_SAM_APDU [17:32:22]CAPDU: 80 0D 01 02 [17:32:22]Write to MH i2c: E2 08 00 8D 52 80 0D 01 02 00 00 00 00 58 [17:32:22]Write i2c OK [17:32:22]MH_I2C_Read... [17:32:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:32:22]Read from MH i2c: E2 [17:32:22]MH_I2C_Read... [17:32:22]Read from MH i2c: E2 03 00 [17:32:22]MH_I2C_Read... [17:32:22]Read from MH i2c: E2 03 00 8D 52 00 90 00 53 [17:32:22]RAPDU: 90 00 [17:32:22]wFMCommunicate OK [17:32:22]wFMCommunicate request_size=255 [17:32:22]MH_SAM_APDU [17:32:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 2B FE 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 4D 0B 01 00 35 04 06 00 99 [17:32:22]Write to MH i2c: E2 02 01 8E 52 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 2B FE 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 4D 0B 01 00 35 04 06 00 99 00 00 AB [17:32:22]Write i2c OK [17:32:22]MH_I2C_Read... [17:32:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:32:23]Read from MH i2c: E2 [17:32:23]MH_I2C_Read... [17:32:23]Read from MH i2c: E2 03 00 [17:32:23]MH_I2C_Read... [17:32:23]Read from MH i2c: E2 03 00 8E 52 00 90 00 54 [17:32:23]RAPDU: 90 00 [17:32:23]wFMCommunicate OK [17:32:23]wFMCommunicate request_size=10 [17:32:23]MH_SAM_APDU [17:32:23]CAPDU: 80 0D 02 02 05 16 D6 4C BF 92 [17:32:23]Write to MH i2c: E2 0D 00 8F 52 80 0D 02 02 05 00 16 D6 4C BF 92 00 00 EE [17:32:23]Write i2c OK [17:32:23]MH_I2C_Read... [17:32:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:32:23]Read from MH i2c: E2 [17:32:23]MH_I2C_Read... [17:32:23]Read from MH i2c: E2 03 00 [17:32:23]MH_I2C_Read... [17:32:23]Read from MH i2c: E2 03 00 8F 52 00 90 00 55 [17:32:23]RAPDU: 90 00 [17:32:23]wFMCommunicate OK [17:32:23]wFMCommunicate request_size=4 [17:32:23]MH_SAM_APDU [17:32:23]CAPDU: 80 0D 03 02 [17:32:23]Write to MH i2c: E2 08 00 90 52 80 0D 03 02 00 00 00 00 5D [17:32:23]Write i2c OK [17:32:23]MH_I2C_Read... [17:32:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:32:23]Read from MH i2c: E2 [17:32:23]MH_I2C_Read... [17:32:23]Read from MH i2c: E2 0B 00 [17:32:23]MH_I2C_Read... [17:32:23]Read from MH i2c: E2 0B 00 90 52 00 15 72 C8 03 1C CE D0 1A 90 00 84 [17:32:23]RAPDU: 15 72 C8 03 1C CE D0 1A 90 00 [17:32:23]wFMCommunicate OK [17:32:23]SAM_PROTO_SignData done [17:32:23]FM_MakeSignedData done [17:32:23]CreateOFDProtocolMessage [17:32:23]wFMCommunicate request_size=4 [17:32:23]MH_SAM_APDU [17:32:23]CAPDU: 80 11 00 00 [17:32:23]Write to MH i2c: E2 08 00 91 52 80 11 00 00 00 00 00 00 5D [17:32:23]Write i2c OK [17:32:23]MH_I2C_Read... [17:32:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:32:23]Read from MH i2c: E2 [17:32:23]MH_I2C_Read... [17:32:23]Read from MH i2c: E2 17 00 [17:32:23]MH_I2C_Read... [17:32:23]Read from MH i2c: E2 17 00 91 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 A8 [17:32:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [17:32:23]wFMCommunicate OK [17:32:23]CreateOFDProtocolMessage done [17:32:23]OFDSenderStorePacket 68429 [17:32:23]StoreOFDPacket docnum=68429 [17:32:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 B0 C0 07 01 E2 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 2B FE 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 4D 0B 01 00 35 04 06 00 99 16 D6 4C BF 92 15 72 C8 03 1C CE D0 1A [17:32:23]CheckFolder [17:32:23]dirname=/storage/ofd_packets [17:32:23]CheckFolder done [17:32:23]ProducePacketName [17:32:23]name=ofd_packets/00068429 [17:32:23]NVStorageSaveData ofd_packets/00068429 [17:32:23]File name is /storage/ofd_packets/00068429 [17:32:23]Write 301 bytes [17:32:23]NVStorageSaveData done [17:32:23]OFDSenderStorePacket done [17:32:23]KKMCreateOFDPacket done [17:32:23]NVStorageSaveData kkm_last_timestamp [17:32:23]File name is /storage/kkm_last_timestamp [17:32:23]Write 4 bytes [17:32:23]NVStorageSaveData done [17:32:23]ExternCall_PrintAddStr [17:32:23]wPrintStart [17:32:23]Write to MH i2c: 01 00 00 92 52 E4 [17:32:23]Write i2c OK [17:32:23]MH_I2C_Read... [17:32:23]Read from MH i2c: 01 [17:32:23]MH_I2C_Read... [17:32:23]Read from MH i2c: 01 07 00 [17:32:23]MH_I2C_Read... [17:32:23]Read from MH i2c: 01 07 00 92 52 00 00 00 00 00 FF 0F F9 [17:32:23]RasterBufferAndPrint [17:32:23]line Счет N : (1)706530 [17:32:23]line ИНН: 02508201610067 [17:32:23]line Контрольно-Кассовый Чек [17:32:23]line ПРОДАЖА [17:32:23]line ТРК (МРК, ГНК) : 42 [17:32:23]line Товар: 2710124130 [17:32:23]line Аи-92-К-4 [17:32:23]line 4.490 * 66.90 [17:32:23]line = 300.38 [17:32:23]line НДС 12% НСП 1% [17:32:23]line > о реализуемом товаре [17:32:23]line ОКРУГЛЕНИЕ: -0.38 [17:32:23]line ИТОГО: 300.00 [17:32:23]line Внесено: 300.00 [17:32:23]line СДАЧА: 0.00 [17:32:23]line НСП 1% : 2.66 [17:32:23]line НДС 12% : 31.90 [17:32:23]line Наличными: 300.00 [17:32:23]line Безнал.: 0.00 [17:32:23]line Место: АЗС № 62 "Партнер Нефть" [17:32:23]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [17:32:23]line СНО: Общий режим [17:32:23]line Чек 175 03.06.2024 17:32 [17:32:23]line Смена: 324 ФФД: 1.0 [17:32:23]line ЗНМ: 0300000181 [17:32:23]line РНМ: 0000000000098096 [17:32:23]line Версия ККМ: 001 [17:32:23]line ФМ: 0000000000965400 [17:32:23]line ФД: 68429 [17:32:23]line ФПД: 168323363684242 [17:32:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T173227&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68429&fm=168323363684242&tin=02508201610067®Number=0000000000098096&sum=30000 [17:32:23]OFD Sender: Processing packet 68429 [packets to send 26, broken 25] [17:32:23]ProducePacketName [17:32:23]name=ofd_packets/00068429 [17:32:23]OFD Sender: To server: pG, [17:32:23]CommunicateWithHost lk.salyk.kg:30040 [17:32:23]ConnectInit lk.salyk.kg [17:32:23]written 0, free lines is 4095 [17:32:23]Connected sock=7 [17:32:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 B0 C0 07 01 E2 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 2B FE 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 4D 0B 01 00 35 04 06 00 99 16 D6 4C BF 92 15 72 C8 03 1C CE D0 1A [17:32:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 C9 3D 47 00 8E 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 4D 0B 01 00 F4 03 04 00 27 A5 5D 66 B6 04 01 00 00 43 66 59 A5 CA 44 1F D5 [17:32:23]CommunicateWithHost err = 0 [17:32:23]CheckOFDResponse [17:32:23]1017 (14) - 77093643461234 [17:32:23]1041 (16) - 0000000000965400 [17:32:23]1040 (4) - 68429 [17:32:23]1012 (4) - 03.06.2024 11:12 [17:32:23]1206 (1) - 0 [17:32:23]OFD Sender: Remove packet 68429 [17:32:23]ProducePacketName [17:32:23]name=ofd_packets/00068429 [17:32:23]NVStorageDeleteData [17:32:24]Write to MH i2c: 01 00 00 BD 52 0F [17:32:24]Write i2c OK [17:32:24]MH_I2C_Read... [17:32:24]Read from MH i2c: 01 [17:32:24]MH_I2C_Read... [17:32:24]Read from MH i2c: 01 07 00 [17:32:24]MH_I2C_Read... [17:32:24]Read from MH i2c: 01 07 00 BD 52 00 00 00 00 00 DE 0C 00 [17:32:24]RasterBufferAndPrint [17:32:24]line [17:32:24]line [17:32:24]line [17:32:24]line [17:32:24]line [17:32:24]written 0, free lines is 3301 [17:32:24]MH_Cut [17:32:24]Write to MH i2c: D1 01 00 C4 52 01 E8 [17:32:24]Write i2c OK [17:32:24]MH_I2C_Read... [17:32:24]Read from MH i2c: D1 [17:32:24]MH_I2C_Read... [17:32:24]Read from MH i2c: D1 01 00 [17:32:24]MH_I2C_Read... [17:32:24]Read from MH i2c: D1 01 00 C4 52 00 E7 [17:32:24]Write to MH i2c: 01 00 00 C5 52 17 [17:32:24]Write i2c OK [17:32:24]MH_I2C_Read... [17:32:24]OFD Sender: No OFD packet to send [17:32:24]*** Cut start [17:32:24]*** Partial cut [17:32:24]*** CUTSNS_PIN = 1 [17:32:24]*** CUTSNS_PIN = 0 [17:32:25]*** Brake cut motor [17:32:25]Read from MH i2c: 01 [17:32:25]MH_I2C_Read... [17:32:25]*** Stop cut motor [17:32:25]*** Cut end [17:32:25]Read from MH i2c: 01 07 00 [17:32:25]MH_I2C_Read... [17:32:25]Read from MH i2c: 01 07 00 C5 52 00 00 00 00 00 FF 0F 2C [17:32:25]process_action close_receipt done [17:32:25]requested_data is exist [17:32:25]produce_requested_data [17:32:25]requested_item fm.sn is exist - process it [17:32:25]wFMCommunicate request_size=4 [17:32:25]MH_SAM_APDU [17:32:25]CAPDU: 80 11 00 00 [17:32:25]Write to MH i2c: E2 08 00 C6 52 80 11 00 00 00 00 00 00 92 [17:32:25]Write i2c OK [17:32:25]MH_I2C_Read... [17:32:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:32:25]Read from MH i2c: E2 [17:32:25]MH_I2C_Read... [17:32:25]Read from MH i2c: E2 17 00 [17:32:25]MH_I2C_Read... [17:32:25]Read from MH i2c: E2 17 00 C6 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 DD [17:32:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [17:32:25]wFMCommunicate OK [17:32:25]requested_item fd.num is exist - process it [17:32:25]SAM_PROTO_GetFieldsCounters [17:32:25]wFMCommunicate request_size=4 [17:32:25]MH_SAM_APDU [17:32:25]CAPDU: 80 13 00 00 [17:32:25]Write to MH i2c: E2 08 00 C7 52 80 13 00 00 00 00 00 00 95 [17:32:25]Write i2c OK [17:32:25]MH_I2C_Read... [17:32:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:32:25]Read from MH i2c: E2 [17:32:25]MH_I2C_Read... [17:32:25]Read from MH i2c: E2 62 00 [17:32:25]MH_I2C_Read... [17:32:25]Read from MH i2c: E2 62 00 C7 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 4D 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 60 [17:32:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 4D 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:32:25]wFMCommunicate OK [17:32:25]SAM_PROTO_GetFieldsCounters done [17:32:25]requested_item shift.num is exist - process it [17:32:25]requested_item shift.opened is exist - process it [17:32:25]req_shift_opened [17:32:25]FM_GetShiftState [17:32:25]SAM_PROTO_GetShiftState [17:32:25]wFMCommunicate request_size=4 [17:32:25]MH_SAM_APDU [17:32:25]CAPDU: 80 13 01 00 [17:32:25]Write to MH i2c: E2 08 00 C8 52 80 13 01 00 00 00 00 00 97 [17:32:25]Write i2c OK [17:32:25]MH_I2C_Read... [17:32:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:32:25]Read from MH i2c: E2 [17:32:25]MH_I2C_Read... [17:32:25]Read from MH i2c: E2 0E 00 [17:32:25]MH_I2C_Read... [17:32:25]Read from MH i2c: E2 0E 00 C8 52 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 72 [17:32:25]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [17:32:25]wFMCommunicate OK [17:32:25]SAM_PROTO_GetShiftState done [17:32:25]FM_GetShiftState done [17:32:25]req_shift_opened done [17:32:25]requested_item shift.open_date is exist - process it [17:32:25]req_shift_open_date [17:32:25]req_shift_open_date done [17:32:25]produce_requested_data done [17:32:25]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68429,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [17:32:25]process_action_free close_receipt [17:32:25]json_value_free [17:32:25]json_value_free done [17:32:25]process_json_proto returns [17:32:25]Send response to host [17:32:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68429,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [17:32:25]free response buf [17:32:25]execute_script done [17:32:25]execute_script returns [17:32:25]free content buf [17:32:25]Sock 5.Close socket [17:32:25]Sock 5.Thread stoped [17:32:29]OFD Sender: No OFD packet to send [17:32:34]OFD Sender: No OFD packet to send [17:32:39]OFD Sender: No OFD packet to send [17:32:44]OFD Sender: No OFD packet to send [17:32:49]OFD Sender: No OFD packet to send [17:32:51]accept exits with 6 [17:32:51]New connection [17:32:51]New thread 3066686820 created [17:32:51]Thread 3066543460 joined [17:32:51]Waiting for new connection... [17:32:51] Sock 6.Parse request [17:32:51]Sock 6.Check first char [17:32:51]Sock 6.First char is OK [17:32:51]request: POST /json_proto HTTP/1.0 [17:32:51]Method: POST [17:32:51]URL: /json_proto [17:32:51]Method is POST - this is cgi request [17:32:51]url: /json_proto [17:32:51]query_string will be loaded in cgi processing [17:32:51]execute_cgi json_proto POST (null) [17:32:51]execute_cgi path=json_proto method=POST [17:32:51]POST find Content-Length [17:32:51]Host: 172.17.36.132:8080 [17:32:51]Content-Length: 1150 [17:32:51]Content-Type: application/json [17:32:51] [17:32:51]POST finish read [17:32:51]Found Content-Length = 1150 [17:32:51]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706528\u000A03.06.2024 17:10\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-4\u000A 60.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 4374.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30053096\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:32:51]execute_script... [17:32:51]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706528\u000A03.06.2024 17:10\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-4\u000A 60.000 x 72.90\u000A\u0418\u0422\u041E\u0413: 4374.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30053096\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:32:51]POST & json_proto [17:32:51]process_json_proto [17:32:51]json parsed OK: [17:32:51]protocol is kg_v1.0 [17:32:51]action value=print_text [17:32:51]process_action print_text [17:32:51]cmd_print_text [17:32:51]ExternCall_PrintAddStr [17:32:51]wPrintStart [17:32:51]Write to MH i2c: 01 00 00 C9 52 1B [17:32:51]Write i2c OK [17:32:51]MH_I2C_Read... [17:32:51]Read from MH i2c: 01 [17:32:51]MH_I2C_Read... [17:32:51]Read from MH i2c: 01 07 00 [17:32:51]MH_I2C_Read... [17:32:51]Read from MH i2c: 01 07 00 C9 52 00 00 00 00 00 FF 0F 30 [17:32:51]RasterBufferAndPrint [17:32:51]line *****ТОВАРНЫЙ ЧЕК***** [17:32:51]line АЗС 62 [17:32:51]line Партнер нефть [17:32:51]line 02508201610067 [17:32:51]line Кассир : Балаев А. [17:32:51]line Счет N : (1)706528 [17:32:51]line 03.06.2024 17:10 [17:32:51]line ПРОДАЖА [17:32:51]line ТРК (МРК, ГНК): 11 [17:32:51]line Вид ГСМ : 2710194210 [17:32:51]line ДТ(л)-К-4 [17:32:51]line 60.000 x 72.90 [17:32:51]line ИТОГ: 4374.00 [17:32:51]line Тип оплаты: Талоны: ТК ГПНА Online [17:32:51]line 30053096 [17:32:51]line ______________________ [17:32:51]line (подпись) [17:32:51]written 0, free lines is 4095 [17:32:51]Write to MH i2c: 01 00 00 DD 52 2F [17:32:51]Write i2c OK [17:32:51]MH_I2C_Read... [17:32:51]Read from MH i2c: 01 [17:32:51]MH_I2C_Read... [17:32:51]Read from MH i2c: 01 07 00 [17:32:51]MH_I2C_Read... [17:32:51]Read from MH i2c: 01 07 00 DD 52 00 00 00 00 00 0E 0E 52 [17:32:51]RasterBufferAndPrint [17:32:51]line [17:32:51]line [17:32:51]line [17:32:51]line [17:32:51]line [17:32:51]written 0, free lines is 3600 [17:32:51]MH_Cut [17:32:51]Write to MH i2c: D1 01 00 E4 52 01 08 [17:32:51]Write i2c OK [17:32:51]MH_I2C_Read... [17:32:51]Read from MH i2c: D1 [17:32:51]MH_I2C_Read... [17:32:51]Read from MH i2c: D1 01 00 [17:32:51]MH_I2C_Read... [17:32:51]Read from MH i2c: D1 01 00 E4 52 00 07 [17:32:51]Write to MH i2c: 01 00 00 E5 52 37 [17:32:51]Write i2c OK [17:32:51]MH_I2C_Read... [17:32:52]*** Cut start [17:32:52]*** Partial cut [17:32:52]*** CUTSNS_PIN = 1 [17:32:52]*** CUTSNS_PIN = 0 [17:32:52]*** Brake cut motor [17:32:53]Read from MH i2c: 01 [17:32:53]MH_I2C_Read... [17:32:53]*** Stop cut motor [17:32:53]*** Cut end [17:32:53]Read from MH i2c: 01 07 00 [17:32:53]MH_I2C_Read... [17:32:53]Read from MH i2c: 01 07 00 E5 52 00 00 00 00 00 FF 0F 4C [17:32:53]process_action print_text done [17:32:53]requested_data is exist [17:32:53]produce_requested_data [17:32:53]requested_item fm.sn is exist - process it [17:32:53]wFMCommunicate request_size=4 [17:32:53]MH_SAM_APDU [17:32:53]CAPDU: 80 11 00 00 [17:32:53]Write to MH i2c: E2 08 00 E6 52 80 11 00 00 00 00 00 00 B2 [17:32:53]Write i2c OK [17:32:53]MH_I2C_Read... [17:32:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:32:53]Read from MH i2c: E2 [17:32:53]MH_I2C_Read... [17:32:53]Read from MH i2c: E2 17 00 [17:32:53]MH_I2C_Read... [17:32:53]Read from MH i2c: E2 17 00 E6 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 FD [17:32:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [17:32:53]wFMCommunicate OK [17:32:53]requested_item fd.num is exist - process it [17:32:53]SAM_PROTO_GetFieldsCounters [17:32:53]wFMCommunicate request_size=4 [17:32:53]MH_SAM_APDU [17:32:53]CAPDU: 80 13 00 00 [17:32:53]Write to MH i2c: E2 08 00 E7 52 80 13 00 00 00 00 00 00 B5 [17:32:53]Write i2c OK [17:32:53]MH_I2C_Read... [17:32:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:32:53]Read from MH i2c: E2 [17:32:53]MH_I2C_Read... [17:32:53]Read from MH i2c: E2 62 00 [17:32:53]MH_I2C_Read... [17:32:53]Read from MH i2c: E2 62 00 E7 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 4D 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 80 [17:32:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 4D 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:32:53]wFMCommunicate OK [17:32:53]SAM_PROTO_GetFieldsCounters done [17:32:53]requested_item shift.num is exist - process it [17:32:53]requested_item shift.opened is exist - process it [17:32:53]req_shift_opened [17:32:53]FM_GetShiftState [17:32:53]SAM_PROTO_GetShiftState [17:32:53]wFMCommunicate request_size=4 [17:32:53]MH_SAM_APDU [17:32:53]CAPDU: 80 13 01 00 [17:32:53]Write to MH i2c: E2 08 00 E8 52 80 13 01 00 00 00 00 00 B7 [17:32:53]Write i2c OK [17:32:53]MH_I2C_Read... [17:32:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:32:53]Read from MH i2c: E2 [17:32:53]MH_I2C_Read... [17:32:53]Read from MH i2c: E2 0E 00 [17:32:53]MH_I2C_Read... [17:32:53]Read from MH i2c: E2 0E 00 E8 52 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 92 [17:32:53]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [17:32:53]wFMCommunicate OK [17:32:53]SAM_PROTO_GetShiftState done [17:32:53]FM_GetShiftState done [17:32:53]req_shift_opened done [17:32:53]requested_item shift.open_date is exist - process it [17:32:53]req_shift_open_date [17:32:53]req_shift_open_date done [17:32:53]produce_requested_data done [17:32:53]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68429,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [17:32:53]process_action_free print_text [17:32:53]json_value_free [17:32:53]json_value_free done [17:32:53]process_json_proto returns [17:32:53]Send response to host [17:32:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68429,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [17:32:53]free response buf [17:32:53]execute_script done [17:32:53]execute_script returns [17:32:53]free content buf [17:32:53]Sock 6.Close socket [17:32:53]Sock 6.Thread stoped [17:32:54]OFD Sender: No OFD packet to send [17:32:59]OFD Sender: No OFD packet to send [17:33:04]OFD Sender: No OFD packet to send [17:33:09]OFD Sender: No OFD packet to send [17:33:14]OFD Sender: No OFD packet to send [17:33:19]OFD Sender: No OFD packet to send [17:33:24]OFD Sender: No OFD packet to send [17:33:29]OFD Sender: No OFD packet to send [17:33:34]OFD Sender: No OFD packet to send [17:33:39]OFD Sender: No OFD packet to send [17:33:44]OFD Sender: No OFD packet to send [17:33:49]OFD Sender: No OFD packet to send [17:33:54]OFD Sender: No OFD packet to send [17:33:59]OFD Sender: No OFD packet to send [17:34:04]OFD Sender: No OFD packet to send [17:34:09]OFD Sender: No OFD packet to send [17:34:14]OFD Sender: No OFD packet to send [17:34:19]OFD Sender: No OFD packet to send [17:34:24]OFD Sender: No OFD packet to send [17:34:29]OFD Sender: No OFD packet to send [17:34:29]accept exits with 5 [17:34:29]New connection [17:34:29]New thread 3066543460 created [17:34:29]Thread 3066686820 joined [17:34:29]Waiting for new connection... [17:34:29] Sock 5.Parse request [17:34:29]Sock 5.Check first char [17:34:29]Sock 5.First char is OK [17:34:29]request: POST /json_proto HTTP/1.0 [17:34:29]Method: POST [17:34:29]URL: /json_proto [17:34:29]Method is POST - this is cgi request [17:34:29]url: /json_proto [17:34:29]query_string will be loaded in cgi processing [17:34:29]execute_cgi json_proto POST (null) [17:34:29]execute_cgi path=json_proto method=POST [17:34:29]POST find Content-Length [17:34:29]Host: 172.17.36.132:8080 [17:34:29]Content-Length: 840 [17:34:29]Content-Type: application/json [17:34:29] [17:34:29]POST finish read [17:34:29]Found Content-Length = 840 [17:34:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706531", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.000, "sum" : 334.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 334.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:34:29]execute_script... [17:34: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)706531", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.000, "sum" : 334.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 334.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:34:29]POST & json_proto [17:34:29]process_json_proto [17:34:29]json parsed OK: [17:34:29]protocol is kg_v1.0 [17:34:29]action value=close_receipt [17:34:29]process_action close_receipt [17:34:29]cmd_close_receipt [17:34:29]MH_GetDate [17:34:29]Write to MH i2c: F0 00 00 E9 52 2A [17:34:29]Write i2c OK [17:34:29]MH_I2C_Read... [17:34:29]Read from MH i2c: F0 [17:34:29]MH_I2C_Read... [17:34:29]Read from MH i2c: F0 09 00 [17:34:29]MH_I2C_Read... [17:34:29]Read from MH i2c: F0 09 00 E9 52 00 AC FE 5D 66 B2 22 B0 64 88 [17:34:29]GetLastDocTimeStamp 1717435947 [17:34:29]current date 1717436076 [17:34:29]FM_GetShiftState [17:34:29]SAM_PROTO_GetShiftState [17:34:29]wFMCommunicate request_size=4 [17:34:29]MH_SAM_APDU [17:34:29]CAPDU: 80 13 01 00 [17:34:29]Write to MH i2c: E2 08 00 EA 52 80 13 01 00 00 00 00 00 B9 [17:34:29]Write i2c OK [17:34:29]MH_I2C_Read... [17:34:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:29]Read from MH i2c: E2 [17:34:29]MH_I2C_Read... [17:34:29]Read from MH i2c: E2 0E 00 [17:34:29]MH_I2C_Read... [17:34:29]Read from MH i2c: E2 0E 00 EA 52 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 94 [17:34:29]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [17:34:29]wFMCommunicate OK [17:34:29]SAM_PROTO_GetShiftState done [17:34:29]FM_GetShiftState done [17:34:29]opened in 1717378033 [17:34:29]opened+sec_in_day 1717464433 [17:34:29]quantity*price = 33450 [17:34:29]sum+1 = 33451 [17:34:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 334.50 НСП 1% : 2.96 НДС 12% : 35.52 Наличными: 0.00 Безнал.: 334.50 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 176 03.06.2024 17:34 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68430 ФПД: 250480728655612 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T173436&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68430&fm=250480728655612&tin=02508201610067®Number=0000000000098096&sum=33450 [17:34:31]StoreToDocumentArchive [17:34:31]shift 324 fd 68430 [17:34:31]save to /storage/0324/doc_00068430 [17:34:31]save last doc name /storage/0324/doc_00068430 to /storage/kkm_last_doc_name [17:34:31]save OK [17:34:31]Clear old archive folders... [17:34:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:34:31]tlvbuf is 0025D780 [17:34:31]SAM_PROTO_ClearQueue [17:34:31]wFMCommunicate request_size=4 [17:34:31]MH_SAM_APDU [17:34:31]CAPDU: 80 09 00 00 [17:34:31]Write to MH i2c: E2 08 00 F7 52 80 09 00 00 00 00 00 00 BB [17:34:31]Write i2c OK [17:34:31]MH_I2C_Read... [17:34:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:34:31]Read from MH i2c: E2 [17:34:31]MH_I2C_Read... [17:34:31]Read from MH i2c: E2 03 00 [17:34:31]MH_I2C_Read... [17:34:31]Read from MH i2c: E2 03 00 F7 52 00 90 00 BD [17:34:31]RAPDU: 90 00 [17:34:31]wFMCommunicate OK [17:34:31]SAM_PROTO_ClearQueue done [17:34:31]KKMCreateOFDPacket [17:34:31]OFDProtocolAddRootSTLVToBuf [17:34:31]FM_MakeSignedData [17:34:31]FM_MakeSignedData [17:34:31]SAM_PROTO_SignData [17:34:31]wFMCommunicate request_size=4 [17:34:31]MH_SAM_APDU [17:34:31]CAPDU: 80 0D 01 02 [17:34:31]Write to MH i2c: E2 08 00 F8 52 80 0D 01 02 00 00 00 00 C3 [17:34:31]Write i2c OK [17:34:31]MH_I2C_Read... [17:34:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:34:31]Read from MH i2c: E2 [17:34:31]MH_I2C_Read... [17:34:31]Read from MH i2c: E2 03 00 [17:34:31]MH_I2C_Read... [17:34:31]Read from MH i2c: E2 03 00 F8 52 00 90 00 BE [17:34:31]RAPDU: 90 00 [17:34:31]wFMCommunicate OK [17:34:31]wFMCommunicate request_size=255 [17:34:31]MH_SAM_APDU [17:34:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 AA 82 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AA 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AA 82 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 AC FE 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 4E 0B 01 00 35 04 06 00 E3 [17:34:31]Write to MH i2c: E2 02 01 F9 52 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 AA 82 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AA 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AA 82 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 AC FE 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 4E 0B 01 00 35 04 06 00 E3 00 00 DB [17:34:31]Write i2c OK [17:34:31]MH_I2C_Read... [17:34:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:31]Read from MH i2c: E2 [17:34:31]MH_I2C_Read... [17:34:31]Read from MH i2c: E2 03 00 [17:34:31]MH_I2C_Read... [17:34:31]Read from MH i2c: E2 03 00 F9 52 00 90 00 BF [17:34:31]RAPDU: 90 00 [17:34:31]wFMCommunicate OK [17:34:31]wFMCommunicate request_size=10 [17:34:31]MH_SAM_APDU [17:34:31]CAPDU: 80 0D 02 02 05 CF 96 DA C6 FC [17:34:31]Write to MH i2c: E2 0D 00 FA 52 80 0D 02 02 05 00 CF 96 DA C6 FC 00 00 D1 [17:34:31]Write i2c OK [17:34:31]MH_I2C_Read... [17:34:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:31]Read from MH i2c: E2 [17:34:31]MH_I2C_Read... [17:34:31]Read from MH i2c: E2 03 00 [17:34:31]MH_I2C_Read... [17:34:31]Read from MH i2c: E2 03 00 FA 52 00 90 00 C0 [17:34:31]RAPDU: 90 00 [17:34:31]wFMCommunicate OK [17:34:31]wFMCommunicate request_size=4 [17:34:31]MH_SAM_APDU [17:34:31]CAPDU: 80 0D 03 02 [17:34:31]Write to MH i2c: E2 08 00 FB 52 80 0D 03 02 00 00 00 00 C8 [17:34:31]Write i2c OK [17:34:31]MH_I2C_Read... [17:34:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:34:31]Read from MH i2c: E2 [17:34:31]MH_I2C_Read... [17:34:31]Read from MH i2c: E2 0B 00 [17:34:31]MH_I2C_Read... [17:34:31]Read from MH i2c: E2 0B 00 FB 52 00 40 DE 1B D5 58 5D 20 61 90 00 0D [17:34:31]RAPDU: 40 DE 1B D5 58 5D 20 61 90 00 [17:34:31]wFMCommunicate OK [17:34:31]SAM_PROTO_SignData done [17:34:31]FM_MakeSignedData done [17:34:31]CreateOFDProtocolMessage [17:34:31]wFMCommunicate request_size=4 [17:34:31]MH_SAM_APDU [17:34:31]CAPDU: 80 11 00 00 [17:34:31]Write to MH i2c: E2 08 00 FC 52 80 11 00 00 00 00 00 00 C8 [17:34:31]Write i2c OK [17:34:31]MH_I2C_Read... [17:34:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:31]Read from MH i2c: E2 [17:34:31]MH_I2C_Read... [17:34:31]Read from MH i2c: E2 17 00 [17:34:31]MH_I2C_Read... [17:34:31]Read from MH i2c: E2 17 00 FC 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 13 [17:34:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [17:34:31]wFMCommunicate OK [17:34:31]CreateOFDProtocolMessage done [17:34:31]OFDSenderStorePacket 68430 [17:34:31]StoreOFDPacket docnum=68430 [17:34:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 52 99 07 01 C9 EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 AA 82 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AA 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AA 82 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 AC FE 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 4E 0B 01 00 35 04 06 00 E3 CF 96 DA C6 FC 40 DE 1B D5 58 5D 20 61 [17:34:31]CheckFolder [17:34:31]dirname=/storage/ofd_packets [17:34:31]CheckFolder done [17:34:31]ProducePacketName [17:34:31]name=ofd_packets/00068430 [17:34:31]NVStorageSaveData ofd_packets/00068430 [17:34:31]File name is /storage/ofd_packets/00068430 [17:34:31]Write 301 bytes [17:34:31]NVStorageSaveData done [17:34:31]OFDSenderStorePacket done [17:34:31]KKMCreateOFDPacket done [17:34:31]NVStorageSaveData kkm_last_timestamp [17:34:31]File name is /storage/kkm_last_timestamp [17:34:31]Write 4 bytes [17:34:31]NVStorageSaveData done [17:34:31]ExternCall_PrintAddStr [17:34:31]wPrintStart [17:34:31]Write to MH i2c: 01 00 00 FD 52 4F [17:34:31]Write i2c OK [17:34:31]MH_I2C_Read... [17:34:31]Read from MH i2c: 01 [17:34:31]MH_I2C_Read... [17:34:31]Read from MH i2c: 01 07 00 [17:34:31]MH_I2C_Read... [17:34:31]Read from MH i2c: 01 07 00 FD 52 00 00 00 00 00 FF 0F 64 [17:34:31]RasterBufferAndPrint [17:34:31]line Счет N : (1)706531 [17:34:31]line ИНН: 02508201610067 [17:34:31]line Контрольно-Кассовый Чек [17:34:31]line ПРОДАЖА [17:34:31]line ТРК (МРК, ГНК) : 53 [17:34:31]line Товар: 2710124130 [17:34:31]line Аи-92-К-4 [17:34:31]line 5.000 * 66.90 [17:34:31]line = 334.50 [17:34:31]line НДС 12% НСП 1% [17:34:31]line > о реализуемом товаре [17:34:31]line ИТОГО: 334.50 [17:34:31]line НСП 1% : 2.96 [17:34:31]line НДС 12% : 35.52 [17:34:31]line Наличными: 0.00 [17:34:31]line Безнал.: 334.50 [17:34:31]line Место: АЗС № 62 "Партнер Нефть" [17:34:31]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [17:34:31]line СНО: Общий режим [17:34:31]line Чек 176 03.06.2024 17:34 [17:34:31]line Смена: 324 ФФД: 1.0 [17:34:31]line ЗНМ: 0300000181 [17:34:31]line РНМ: 0000000000098096 [17:34:31]line Версия ККМ: 001 [17:34:31]line Платежная система: АКБ Кыргызстан [17:34:31]line ФМ: 0000000000965400 [17:34:31]line ФД: 68430 [17:34:31]line ФПД: 250480728655612 [17:34:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T173436&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68430&fm=250480728655612&tin=02508201610067®Number=0000000000098096&sum=33450 [17:34:31]OFD Sender: Processing packet 68430 [packets to send 26, broken 25] [17:34:31]ProducePacketName [17:34:31]name=ofd_packets/00068430 [17:34:31]OFD Sender: To server: pG, [17:34:31]CommunicateWithHost lk.salyk.kg:30040 [17:34:31]ConnectInit lk.salyk.kg [17:34:31]written 0, free lines is 4095 [17:34:31]Connected sock=7 [17:34:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 52 99 07 01 C9 EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 AA 82 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AA 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AA 82 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 AC FE 5D 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 4E 0B 01 00 35 04 06 00 E3 CF 96 DA C6 FC 40 DE 1B D5 58 5D 20 61 [17:34:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 17 08 47 00 62 C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 4E 0B 01 00 F4 03 04 00 A7 A5 5D 66 B6 04 01 00 00 44 FE 77 B8 65 E7 B9 DD [17:34:32]CommunicateWithHost err = 0 [17:34:32]CheckOFDResponse [17:34:32]1017 (14) - 77093643461234 [17:34:32]1041 (16) - 0000000000965400 [17:34:32]1040 (4) - 68430 [17:34:32]1012 (4) - 03.06.2024 11:14 [17:34:32]1206 (1) - 0 [17:34:32]OFD Sender: Remove packet 68430 [17:34:32]ProducePacketName [17:34:32]name=ofd_packets/00068430 [17:34:32]NVStorageDeleteData [17:34:32]Write to MH i2c: 01 00 00 27 53 7A [17:34:32]Write i2c OK [17:34:32]MH_I2C_Read... [17:34:32]Read from MH i2c: 01 [17:34:32]MH_I2C_Read... [17:34:32]Read from MH i2c: 01 07 00 [17:34:32]MH_I2C_Read... [17:34:32]Read from MH i2c: 01 07 00 27 53 00 00 00 00 00 EA 0C 77 [17:34:32]RasterBufferAndPrint [17:34:32]line [17:34:32]line [17:34:32]line [17:34:32]line [17:34:32]line [17:34:32]written 0, free lines is 3312 [17:34:32]MH_Cut [17:34:32]Write to MH i2c: D1 01 00 2E 53 01 53 [17:34:32]Write i2c OK [17:34:32]MH_I2C_Read... [17:34:32]Read from MH i2c: D1 [17:34:32]MH_I2C_Read... [17:34:32]Read from MH i2c: D1 01 00 [17:34:32]MH_I2C_Read... [17:34:32]Read from MH i2c: D1 01 00 2E 53 00 52 [17:34:32]Write to MH i2c: 01 00 00 2F 53 82 [17:34:32]Write i2c OK [17:34:32]MH_I2C_Read... [17:34:32]OFD Sender: No OFD packet to send [17:34:33]*** Cut start [17:34:33]*** Partial cut [17:34:33]*** CUTSNS_PIN = 1 [17:34:33]*** CUTSNS_PIN = 0 [17:34:33]*** Brake cut motor [17:34:33]Read from MH i2c: 01 [17:34:33]MH_I2C_Read... [17:34:33]*** Stop cut motor [17:34:33]*** Cut end [17:34:33]Read from MH i2c: 01 07 00 [17:34:33]MH_I2C_Read... [17:34:33]Read from MH i2c: 01 07 00 2F 53 00 00 00 00 00 FF 0F 97 [17:34:33]process_action close_receipt done [17:34:33]requested_data is exist [17:34:33]produce_requested_data [17:34:33]requested_item fm.sn is exist - process it [17:34:33]wFMCommunicate request_size=4 [17:34:33]MH_SAM_APDU [17:34:33]CAPDU: 80 11 00 00 [17:34:33]Write to MH i2c: E2 08 00 30 53 80 11 00 00 00 00 00 00 FD [17:34:33]Write i2c OK [17:34:33]MH_I2C_Read... [17:34:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:33]Read from MH i2c: E2 [17:34:33]MH_I2C_Read... [17:34:33]Read from MH i2c: E2 17 00 [17:34:33]MH_I2C_Read... [17:34:33]Read from MH i2c: E2 17 00 30 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 48 [17:34:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [17:34:33]wFMCommunicate OK [17:34:33]requested_item fd.num is exist - process it [17:34:33]SAM_PROTO_GetFieldsCounters [17:34:33]wFMCommunicate request_size=4 [17:34:33]MH_SAM_APDU [17:34:33]CAPDU: 80 13 00 00 [17:34:33]Write to MH i2c: E2 08 00 31 53 80 13 00 00 00 00 00 00 00 [17:34:33]Write i2c OK [17:34:33]MH_I2C_Read... [17:34:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:34:33]Read from MH i2c: E2 [17:34:33]MH_I2C_Read... [17:34:33]Read from MH i2c: E2 62 00 [17:34:33]MH_I2C_Read... [17:34:33]Read from MH i2c: E2 62 00 31 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 4E 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 CF [17:34:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 4E 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:34:33]wFMCommunicate OK [17:34:33]SAM_PROTO_GetFieldsCounters done [17:34:33]requested_item shift.num is exist - process it [17:34:33]requested_item shift.opened is exist - process it [17:34:33]req_shift_opened [17:34:33]FM_GetShiftState [17:34:33]SAM_PROTO_GetShiftState [17:34:33]wFMCommunicate request_size=4 [17:34:33]MH_SAM_APDU [17:34:33]CAPDU: 80 13 01 00 [17:34:33]Write to MH i2c: E2 08 00 32 53 80 13 01 00 00 00 00 00 02 [17:34:33]Write i2c OK [17:34:33]MH_I2C_Read... [17:34:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:34]Read from MH i2c: E2 [17:34:34]MH_I2C_Read... [17:34:34]Read from MH i2c: E2 0E 00 [17:34:34]MH_I2C_Read... [17:34:34]Read from MH i2c: E2 0E 00 32 53 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 DD [17:34:34]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [17:34:34]wFMCommunicate OK [17:34:34]SAM_PROTO_GetShiftState done [17:34:34]FM_GetShiftState done [17:34:34]req_shift_opened done [17:34:34]requested_item shift.open_date is exist - process it [17:34:34]req_shift_open_date [17:34:34]req_shift_open_date done [17:34:34]produce_requested_data done [17:34:34]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68430,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [17:34:34]process_action_free close_receipt [17:34:34]json_value_free [17:34:34]json_value_free done [17:34:34]process_json_proto returns [17:34:34]Send response to host [17:34:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68430,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [17:34:34]free response buf [17:34:34]execute_script done [17:34:34]execute_script returns [17:34:34]free content buf [17:34:34]Sock 5.Close socket [17:34:34]Sock 5.Thread stoped [17:34:37]OFD Sender: No OFD packet to send [17:34:42]OFD Sender: No OFD packet to send [17:34:47]OFD Sender: No OFD packet to send [17:34:52]OFD Sender: No OFD packet to send [17:34:57]OFD Sender: No OFD packet to send [17:35:02]OFD Sender: No OFD packet to send [17:35:07]OFD Sender: No OFD packet to send [17:35:12]OFD Sender: No OFD packet to send [17:35:17]OFD Sender: No OFD packet to send [17:35:22]OFD Sender: No OFD packet to send [17:35:27]OFD Sender: No OFD packet to send [17:35:32]OFD Sender: No OFD packet to send [17:35:37]OFD Sender: No OFD packet to send [17:35:42]OFD Sender: No OFD packet to send [17:35:47]OFD Sender: No OFD packet to send [17:35:52]OFD Sender: No OFD packet to send [17:35:57]OFD Sender: No OFD packet to send [17:36:02]OFD Sender: No OFD packet to send [17:36:07]OFD Sender: No OFD packet to send [17:36:12]OFD Sender: No OFD packet to send [17:36:17]OFD Sender: No OFD packet to send [17:36:22]OFD Sender: No OFD packet to send [17:36:27]OFD Sender: No OFD packet to send [17:36:32]OFD Sender: No OFD packet to send [17:36:37]OFD Sender: No OFD packet to send [17:36:42]OFD Sender: No OFD packet to send [17:36:47]OFD Sender: No OFD packet to send [17:36:52]OFD Sender: No OFD packet to send [17:36:57]OFD Sender: No OFD packet to send [17:37:02]OFD Sender: No OFD packet to send [17:37:07]OFD Sender: No OFD packet to send [17:37:12]OFD Sender: No OFD packet to send [17:37:17]OFD Sender: No OFD packet to send [17:37:22]OFD Sender: No OFD packet to send [17:37:27]OFD Sender: No OFD packet to send [17:37:32]OFD Sender: No OFD packet to send [17:37:37]OFD Sender: No OFD packet to send [17:37:42]OFD Sender: No OFD packet to send [17:37:47]OFD Sender: No OFD packet to send [17:37:52]OFD Sender: No OFD packet to send [17:37:57]OFD Sender: No OFD packet to send [17:38:02]OFD Sender: No OFD packet to send [17:38:07]OFD Sender: No OFD packet to send [17:38:12]OFD Sender: No OFD packet to send [17:38:17]OFD Sender: No OFD packet to send [17:38:22]OFD Sender: No OFD packet to send [17:38:27]OFD Sender: No OFD packet to send [17:38:32]OFD Sender: No OFD packet to send [17:38:37]OFD Sender: No OFD packet to send [17:38:42]OFD Sender: No OFD packet to send [17:38:47]OFD Sender: No OFD packet to send [17:38:52]OFD Sender: No OFD packet to send [17:38:57]OFD Sender: No OFD packet to send [17:39:02]OFD Sender: No OFD packet to send [17:39:07]OFD Sender: No OFD packet to send [17:39:12]OFD Sender: No OFD packet to send [17:39:17]OFD Sender: No OFD packet to send [17:39:22]OFD Sender: No OFD packet to send [17:39:27]OFD Sender: No OFD packet to send [17:39:32]OFD Sender: No OFD packet to send [17:39:37]OFD Sender: No OFD packet to send [17:39:42]OFD Sender: No OFD packet to send [17:39:47]OFD Sender: No OFD packet to send [17:39:52]OFD Sender: No OFD packet to send [17:39:57]OFD Sender: No OFD packet to send [17:40:02]OFD Sender: No OFD packet to send [17:40:07]OFD Sender: No OFD packet to send [17:40:12]OFD Sender: No OFD packet to send [17:40:17]OFD Sender: No OFD packet to send [17:40:22]OFD Sender: No OFD packet to send [17:40:27]OFD Sender: No OFD packet to send [17:40:32]OFD Sender: No OFD packet to send [17:40:37]OFD Sender: No OFD packet to send [17:40:42]OFD Sender: No OFD packet to send [17:40:47]OFD Sender: No OFD packet to send [17:40:52]OFD Sender: No OFD packet to send [17:40:57]OFD Sender: No OFD packet to send [17:41:02]OFD Sender: No OFD packet to send [17:41:07]OFD Sender: No OFD packet to send [17:41:12]OFD Sender: No OFD packet to send [17:41:17]OFD Sender: No OFD packet to send [17:41:22]OFD Sender: No OFD packet to send [17:41:27]OFD Sender: No OFD packet to send [17:41:32]OFD Sender: No OFD packet to send [17:41:37]OFD Sender: No OFD packet to send [17:41: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:43]OFD Sender: No OFD packet to send [17:46:48]OFD Sender: No OFD packet to send [17:46:53]OFD Sender: No OFD packet to send [17:46:58]OFD Sender: No OFD packet to send [17:47:03]OFD Sender: No OFD packet to send [17:47:08]OFD Sender: No OFD packet to send [17:47:13]OFD Sender: No OFD packet to send [17:47:18]OFD Sender: No OFD packet to send [17:47:23]OFD Sender: No OFD packet to send [17:47:28]OFD Sender: No OFD packet to send [17:47:33]OFD Sender: No OFD packet to send [17:47:38]OFD Sender: No OFD packet to send [17:47:43]OFD Sender: No OFD packet to send [17:47:48]OFD Sender: No OFD packet to send [17:47:53]OFD Sender: No OFD packet to send [17:47:58]OFD Sender: No OFD packet to send [17:48:03]OFD Sender: No OFD packet to send [17:48:08]OFD Sender: No OFD packet to send [17:48:11]accept exits with 6 [17:48:11]New connection [17:48:11]New thread 3066686820 created [17:48:11]Thread 3066543460 joined [17:48:11]Waiting for new connection... [17:48:11] Sock 6.Parse request [17:48:11]Sock 6.Check first char [17:48:11]Sock 6.First char is OK [17:48:11]request: POST /json_proto HTTP/1.0 [17:48:11]Method: POST [17:48:11]URL: /json_proto [17:48:11]Method is POST - this is cgi request [17:48:11]url: /json_proto [17:48:11]query_string will be loaded in cgi processing [17:48:11]execute_cgi json_proto POST (null) [17:48:11]execute_cgi path=json_proto method=POST [17:48:11]POST find Content-Length [17:48:11]Host: 172.17.36.132:8080 [17:48:11]Content-Length: 848 [17:48:11]Content-Type: application/json [17:48:11] [17:48:11]POST finish read [17:48:11]Found Content-Length = 848 [17:48:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706532", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:48:11]execute_script... [17:48:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706532", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:48:11]POST & json_proto [17:48:11]process_json_proto [17:48:11]json parsed OK: [17:48:11]protocol is kg_v1.0 [17:48:11]action value=close_receipt [17:48:11]process_action close_receipt [17:48:11]cmd_close_receipt [17:48:11]MH_GetDate [17:48:11]Write to MH i2c: F0 00 00 33 53 75 [17:48:11]Write i2c OK [17:48:11]MH_I2C_Read... [17:48:11]Read from MH i2c: F0 [17:48:11]MH_I2C_Read... [17:48:11]Read from MH i2c: F0 09 00 [17:48:11]MH_I2C_Read... [17:48:11]Read from MH i2c: F0 09 00 33 53 00 E1 01 5E 66 B2 22 B0 64 0C [17:48:11]GetLastDocTimeStamp 1717436076 [17:48:11]current date 1717436897 [17:48:11]FM_GetShiftState [17:48:11]SAM_PROTO_GetShiftState [17:48:11]wFMCommunicate request_size=4 [17:48:11]MH_SAM_APDU [17:48:11]CAPDU: 80 13 01 00 [17:48:11]Write to MH i2c: E2 08 00 34 53 80 13 01 00 00 00 00 00 04 [17:48:11]Write i2c OK [17:48:11]MH_I2C_Read... [17:48:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:11]Read from MH i2c: E2 [17:48:11]MH_I2C_Read... [17:48:11]Read from MH i2c: E2 0E 00 [17:48:11]MH_I2C_Read... [17:48:11]Read from MH i2c: E2 0E 00 34 53 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 DF [17:48:11]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [17:48:11]wFMCommunicate OK [17:48:11]SAM_PROTO_GetShiftState done [17:48:11]FM_GetShiftState done [17:48:11]opened in 1717378033 [17:48:11]opened+sec_in_day 1717464433 [17:48:11]quantity*price = 100018 [17:48:11]sum+1 = 100020 [17:48:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.19 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.19 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 177 03.06.2024 17:48 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68431 ФПД: 130838258878895 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T174817&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68431&fm=130838258878895&tin=02508201610067®Number=0000000000098096&sum=100019 [17:48:12]StoreToDocumentArchive [17:48:12]shift 324 fd 68431 [17:48:12]save to /storage/0324/doc_00068431 [17:48:12]save last doc name /storage/0324/doc_00068431 to /storage/kkm_last_doc_name [17:48:12]save OK [17:48:12]Clear old archive folders... [17:48:12]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:48:12]tlvbuf is 00547A70 [17:48:12]SAM_PROTO_ClearQueue [17:48:12]wFMCommunicate request_size=4 [17:48:12]MH_SAM_APDU [17:48:12]CAPDU: 80 09 00 00 [17:48:12]Write to MH i2c: E2 08 00 41 53 80 09 00 00 00 00 00 00 06 [17:48:12]Write i2c OK [17:48:12]MH_I2C_Read... [17:48:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:48:12]Read from MH i2c: E2 [17:48:12]MH_I2C_Read... [17:48:12]Read from MH i2c: E2 03 00 [17:48:12]MH_I2C_Read... [17:48:12]Read from MH i2c: E2 03 00 41 53 00 90 00 08 [17:48:12]RAPDU: 90 00 [17:48:12]wFMCommunicate OK [17:48:12]SAM_PROTO_ClearQueue done [17:48:12]KKMCreateOFDPacket [17:48:12]OFDProtocolAddRootSTLVToBuf [17:48:12]FM_MakeSignedData [17:48:12]FM_MakeSignedData [17:48:12]SAM_PROTO_SignData [17:48:12]wFMCommunicate request_size=4 [17:48:12]MH_SAM_APDU [17:48:12]CAPDU: 80 0D 01 02 [17:48:12]Write to MH i2c: E2 08 00 42 53 80 0D 01 02 00 00 00 00 0E [17:48:12]Write i2c OK [17:48:12]MH_I2C_Read... [17:48:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:48:12]Read from MH i2c: E2 [17:48:12]MH_I2C_Read... [17:48:12]Read from MH i2c: E2 03 00 [17:48:12]MH_I2C_Read... [17:48:12]Read from MH i2c: E2 03 00 42 53 00 90 00 09 [17:48:12]RAPDU: 90 00 [17:48:12]wFMCommunicate OK [17:48:12]wFMCommunicate request_size=255 [17:48:12]MH_SAM_APDU [17:48:12]CAPDU: 80 0D 02 02 FA 03 00 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 34 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 E1 01 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 4F 0B 01 00 35 04 06 00 [17:48:12]Write to MH i2c: E2 02 01 43 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 34 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 E1 01 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 4F 0B 01 00 35 04 06 00 00 00 77 [17:48:12]Write i2c OK [17:48:12]MH_I2C_Read... [17:48:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:13]Read from MH i2c: E2 [17:48:13]MH_I2C_Read... [17:48:13]Read from MH i2c: E2 03 00 [17:48:13]MH_I2C_Read... [17:48:13]Read from MH i2c: E2 03 00 43 53 00 90 00 0A [17:48:13]RAPDU: 90 00 [17:48:13]wFMCommunicate OK [17:48:13]wFMCommunicate request_size=11 [17:48:13]MH_SAM_APDU [17:48:13]CAPDU: 80 0D 02 02 06 76 FF 27 F1 89 AF [17:48:13]Write to MH i2c: E2 0E 00 44 53 80 0D 02 02 06 00 76 FF 27 F1 89 AF 00 00 E2 [17:48:13]Write i2c OK [17:48:13]MH_I2C_Read... [17:48:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:13]Read from MH i2c: E2 [17:48:13]MH_I2C_Read... [17:48:13]Read from MH i2c: E2 03 00 [17:48:13]MH_I2C_Read... [17:48:13]Read from MH i2c: E2 03 00 44 53 00 90 00 0B [17:48:13]RAPDU: 90 00 [17:48:13]wFMCommunicate OK [17:48:13]wFMCommunicate request_size=4 [17:48:13]MH_SAM_APDU [17:48:13]CAPDU: 80 0D 03 02 [17:48:13]Write to MH i2c: E2 08 00 45 53 80 0D 03 02 00 00 00 00 13 [17:48:13]Write i2c OK [17:48:13]MH_I2C_Read... [17:48:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:48:13]Read from MH i2c: E2 [17:48:13]MH_I2C_Read... [17:48:13]Read from MH i2c: E2 0B 00 [17:48:13]MH_I2C_Read... [17:48:13]Read from MH i2c: E2 0B 00 45 53 00 31 34 45 25 3E EF F1 00 90 00 01 [17:48:13]RAPDU: 31 34 45 25 3E EF F1 00 90 00 [17:48:13]wFMCommunicate OK [17:48:13]SAM_PROTO_SignData done [17:48:13]FM_MakeSignedData done [17:48:13]CreateOFDProtocolMessage [17:48:13]wFMCommunicate request_size=4 [17:48:13]MH_SAM_APDU [17:48:13]CAPDU: 80 11 00 00 [17:48:13]Write to MH i2c: E2 08 00 46 53 80 11 00 00 00 00 00 00 13 [17:48:13]Write i2c OK [17:48:13]MH_I2C_Read... [17:48:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:13]Read from MH i2c: E2 [17:48:13]MH_I2C_Read... [17:48:13]Read from MH i2c: E2 17 00 [17:48:13]MH_I2C_Read... [17:48:13]Read from MH i2c: E2 17 00 46 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 5E [17:48:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [17:48:13]wFMCommunicate OK [17:48:13]CreateOFDProtocolMessage done [17:48:13]OFDSenderStorePacket 68431 [17:48:13]StoreOFDPacket docnum=68431 [17:48:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 25 80 08 01 A7 2A 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 34 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 E1 01 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 4F 0B 01 00 35 04 06 00 76 FF 27 F1 89 AF 31 34 45 25 3E EF F1 00 [17:48:13]CheckFolder [17:48:13]dirname=/storage/ofd_packets [17:48:13]CheckFolder done [17:48:13]ProducePacketName [17:48:13]name=ofd_packets/00068431 [17:48:13]NVStorageSaveData ofd_packets/00068431 [17:48:13]File name is /storage/ofd_packets/00068431 [17:48:13]Write 302 bytes [17:48:13]NVStorageSaveData done [17:48:13]OFDSenderStorePacket done [17:48:13]KKMCreateOFDPacket done [17:48:13]NVStorageSaveData kkm_last_timestamp [17:48:13]File name is /storage/kkm_last_timestamp [17:48:13]Write 4 bytes [17:48:13]NVStorageSaveData done [17:48:13]ExternCall_PrintAddStr [17:48:13]wPrintStart [17:48:13]Write to MH i2c: 01 00 00 47 53 9A [17:48:13]Write i2c OK [17:48:13]MH_I2C_Read... [17:48:13]Read from MH i2c: 01 [17:48:13]MH_I2C_Read... [17:48:13]Read from MH i2c: 01 07 00 [17:48:13]MH_I2C_Read... [17:48:13]Read from MH i2c: 01 07 00 47 53 00 00 00 00 00 FF 0F AF [17:48:13]RasterBufferAndPrint [17:48:13]line Счет N : (1)706532 [17:48:13]line ИНН: 02508201610067 [17:48:13]line Контрольно-Кассовый Чек [17:48:13]line ПРОДАЖА [17:48:13]line ТРК (МРК, ГНК) : 11 [17:48:13]line Товар: 2710194210 [17:48:13]line ДТ(л)-К-4 [17:48:13]line 13.720 * 72.90 [17:48:13]line = 1000.19 [17:48:13]line НДС 12% НСП 1% [17:48:13]line > о реализуемом товаре [17:48:13]line ИТОГО: 1000.19 [17:48:13]line НСП 1% : 8.85 [17:48:13]line НДС 12% : 106.21 [17:48:13]line Наличными: 0.00 [17:48:13]line Безнал.: 1000.19 [17:48:13]line Место: АЗС № 62 "Партнер Нефть" [17:48:13]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [17:48:13]line СНО: Общий режим [17:48:13]line Чек 177 03.06.2024 17:48 [17:48:13]line Смена: 324 ФФД: 1.0 [17:48:13]line ЗНМ: 0300000181 [17:48:13]line РНМ: 0000000000098096 [17:48:13]line Версия ККМ: 001 [17:48:13]line Платежная система: АКБ Кыргызстан [17:48:13]line ФМ: 0000000000965400 [17:48:13]line ФД: 68431 [17:48:13]line ФПД: 130838258878895 [17:48:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T174817&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68431&fm=130838258878895&tin=02508201610067®Number=0000000000098096&sum=100019 [17:48:13]OFD Sender: Processing packet 68431 [packets to send 26, broken 25] [17:48:13]ProducePacketName [17:48:13]name=ofd_packets/00068431 [17:48:13]OFD Sender: To server: pG, [17:48:13]CommunicateWithHost lk.salyk.kg:30040 [17:48:13]ConnectInit lk.salyk.kg [17:48:13]written 0, free lines is 4095 [17:48:13]Connected sock=7 [17:48:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 25 80 08 01 A7 2A 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 34 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 E1 01 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 4F 0B 01 00 35 04 06 00 76 FF 27 F1 89 AF 31 34 45 25 3E EF F1 00 [17:48:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 1C FF 47 00 F9 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 4F 0B 01 00 F4 03 04 00 DD A8 5D 66 B6 04 01 00 00 29 71 F3 AB B8 82 7B FD [17:48:13]CommunicateWithHost err = 0 [17:48:13]CheckOFDResponse [17:48:13]1017 (14) - 77093643461234 [17:48:13]1041 (16) - 0000000000965400 [17:48:13]1040 (4) - 68431 [17:48:13]1012 (4) - 03.06.2024 11:28 [17:48:13]1206 (1) - 0 [17:48:13]OFD Sender: Remove packet 68431 [17:48:13]ProducePacketName [17:48:13]name=ofd_packets/00068431 [17:48:13]NVStorageDeleteData [17:48:13]Write to MH i2c: 01 00 00 71 53 C4 [17:48:13]Write i2c OK [17:48:13]MH_I2C_Read... [17:48:13]Read from MH i2c: 01 [17:48:13]MH_I2C_Read... [17:48:13]Read from MH i2c: 01 07 00 [17:48:13]MH_I2C_Read... [17:48:13]Read from MH i2c: 01 07 00 71 53 00 00 00 00 00 EE 0C C5 [17:48:13]RasterBufferAndPrint [17:48:13]line [17:48:13]line [17:48:13]line [17:48:13]line [17:48:13]line [17:48:13]written 0, free lines is 3317 [17:48:13]MH_Cut [17:48:13]Write to MH i2c: D1 01 00 78 53 01 9D [17:48:14]Write i2c OK [17:48:14]MH_I2C_Read... [17:48:14]Read from MH i2c: D1 [17:48:14]MH_I2C_Read... [17:48:14]Read from MH i2c: D1 01 00 [17:48:14]MH_I2C_Read... [17:48:14]Read from MH i2c: D1 01 00 78 53 00 9C [17:48:14]Write to MH i2c: 01 00 00 79 53 CC [17:48:14]Write i2c OK [17:48:14]MH_I2C_Read... [17:48:14]OFD Sender: No OFD packet to send [17:48:14]*** Cut start [17:48:14]*** Partial cut [17:48:14]*** CUTSNS_PIN = 1 [17:48:14]*** CUTSNS_PIN = 0 [17:48:15]*** Brake cut motor [17:48:15]Read from MH i2c: 01 [17:48:15]MH_I2C_Read... [17:48:15]*** Stop cut motor [17:48:15]*** Cut end [17:48:15]Read from MH i2c: 01 07 00 [17:48:15]MH_I2C_Read... [17:48:15]Read from MH i2c: 01 07 00 79 53 00 00 00 00 00 FF 0F E1 [17:48:15]process_action close_receipt done [17:48:15]requested_data is exist [17:48:15]produce_requested_data [17:48:15]requested_item fm.sn is exist - process it [17:48:15]wFMCommunicate request_size=4 [17:48:15]MH_SAM_APDU [17:48:15]CAPDU: 80 11 00 00 [17:48:15]Write to MH i2c: E2 08 00 7A 53 80 11 00 00 00 00 00 00 47 [17:48:15]Write i2c OK [17:48:15]MH_I2C_Read... [17:48:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:15]Read from MH i2c: E2 [17:48:15]MH_I2C_Read... [17:48:15]Read from MH i2c: E2 17 00 [17:48:15]MH_I2C_Read... [17:48:15]Read from MH i2c: E2 17 00 7A 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 92 [17:48:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [17:48:15]wFMCommunicate OK [17:48:15]requested_item fd.num is exist - process it [17:48:15]SAM_PROTO_GetFieldsCounters [17:48:15]wFMCommunicate request_size=4 [17:48:15]MH_SAM_APDU [17:48:15]CAPDU: 80 13 00 00 [17:48:15]Write to MH i2c: E2 08 00 7B 53 80 13 00 00 00 00 00 00 4A [17:48:15]Write i2c OK [17:48:15]MH_I2C_Read... [17:48:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:48:15]Read from MH i2c: E2 [17:48:15]MH_I2C_Read... [17:48:15]Read from MH i2c: E2 62 00 [17:48:15]MH_I2C_Read... [17:48:15]Read from MH i2c: E2 62 00 7B 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 4F 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 1D [17:48:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 4F 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:48:15]wFMCommunicate OK [17:48:15]SAM_PROTO_GetFieldsCounters done [17:48:15]requested_item shift.num is exist - process it [17:48:15]requested_item shift.opened is exist - process it [17:48:15]req_shift_opened [17:48:15]FM_GetShiftState [17:48:15]SAM_PROTO_GetShiftState [17:48:15]wFMCommunicate request_size=4 [17:48:15]MH_SAM_APDU [17:48:15]CAPDU: 80 13 01 00 [17:48:15]Write to MH i2c: E2 08 00 7C 53 80 13 01 00 00 00 00 00 4C [17:48:15]Write i2c OK [17:48:15]MH_I2C_Read... [17:48:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:15]Read from MH i2c: E2 [17:48:15]MH_I2C_Read... [17:48:15]Read from MH i2c: E2 0E 00 [17:48:15]MH_I2C_Read... [17:48:15]Read from MH i2c: E2 0E 00 7C 53 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 27 [17:48:15]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [17:48:15]wFMCommunicate OK [17:48:15]SAM_PROTO_GetShiftState done [17:48:15]FM_GetShiftState done [17:48:15]req_shift_opened done [17:48:15]requested_item shift.open_date is exist - process it [17:48:15]req_shift_open_date [17:48:15]req_shift_open_date done [17:48:15]produce_requested_data done [17:48:15]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68431,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [17:48:15]process_action_free close_receipt [17:48:15]json_value_free [17:48:15]json_value_free done [17:48:15]process_json_proto returns [17:48:15]Send response to host [17:48:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68431,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [17:48:15]free response buf [17:48:15]execute_script done [17:48:15]execute_script returns [17:48:15]free content buf [17:48:15]Sock 6.Close socket [17:48:15]Sock 6.Thread stoped [17:48:19]OFD Sender: No OFD packet to send [17:48:24]OFD Sender: No OFD packet to send [17:48:29]OFD Sender: No OFD packet to send [17:48:34]OFD Sender: No OFD packet to send [17:48:39]OFD Sender: No OFD packet to send [17:48:44]OFD Sender: No OFD packet to send [17:48:49]OFD Sender: No OFD packet to send [17:48:54]OFD Sender: No OFD packet to send [17:48:59]OFD Sender: No OFD packet to send [17:49:04]OFD Sender: No OFD packet to send [17:49:08]accept exits with 5 [17:49:08]New connection [17:49:08]New thread 3066543460 created [17:49:08]Thread 3066686820 joined [17:49:08]Waiting for new connection... [17:49:08] Sock 5.Parse request [17:49:08]Sock 5.Check first char [17:49:08]Sock 5.First char is OK [17:49:08]request: POST /json_proto HTTP/1.0 [17:49:08]Method: POST [17:49:08]URL: /json_proto [17:49:08]Method is POST - this is cgi request [17:49:08]url: /json_proto [17:49:08]query_string will be loaded in cgi processing [17:49:08]execute_cgi json_proto POST (null) [17:49:08]execute_cgi path=json_proto method=POST [17:49:08]POST find Content-Length [17:49:08]Host: 172.17.36.132:8080 [17:49:08]Content-Length: 677 [17:49:08]Content-Type: application/json [17:49:08] [17:49:08]POST finish read [17:49:08]Found Content-Length = 677 [17:49:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706533", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:49:08]execute_script... [17:49:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706533", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:49:08]POST & json_proto [17:49:08]process_json_proto [17:49:08]json parsed OK: [17:49:08]protocol is kg_v1.0 [17:49:08]action value=close_receipt [17:49:08]process_action close_receipt [17:49:08]cmd_close_receipt [17:49:08]MH_GetDate [17:49:08]Write to MH i2c: F0 00 00 7D 53 BF [17:49:08]Write i2c OK [17:49:08]MH_I2C_Read... [17:49:08]Read from MH i2c: F0 [17:49:08]MH_I2C_Read... [17:49:08]Read from MH i2c: F0 09 00 [17:49:08]MH_I2C_Read... [17:49:08]Read from MH i2c: F0 09 00 7D 53 00 1B 02 5E 66 B2 22 B0 64 91 [17:49:08]GetLastDocTimeStamp 1717436897 [17:49:08]current date 1717436955 [17:49:08]FM_GetShiftState [17:49:08]SAM_PROTO_GetShiftState [17:49:08]wFMCommunicate request_size=4 [17:49:08]MH_SAM_APDU [17:49:08]CAPDU: 80 13 01 00 [17:49:08]Write to MH i2c: E2 08 00 7E 53 80 13 01 00 00 00 00 00 4E [17:49:08]Write i2c OK [17:49:08]MH_I2C_Read... [17:49:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:49:08]Read from MH i2c: E2 [17:49:08]MH_I2C_Read... [17:49:08]Read from MH i2c: E2 0E 00 [17:49:08]MH_I2C_Read... [17:49:08]Read from MH i2c: E2 0E 00 7E 53 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 29 [17:49:08]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [17:49:08]wFMCommunicate OK [17:49:08]SAM_PROTO_GetShiftState done [17:49:08]FM_GetShiftState done [17:49:08]opened in 1717378033 [17:49:08]opened+sec_in_day 1717464433 [17:49:08]quantity*price = 40006 [17:49:08]sum+1 = 40007 [17:49:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 178 03.06.2024 17:49 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68432 ФПД: 57464383382759 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T174915&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68432&fm=57464383382759&tin=02508201610067®Number=0000000000098096&sum=40000 [17:49:10]StoreToDocumentArchive [17:49:10]shift 324 fd 68432 [17:49:10]save to /storage/0324/doc_00068432 [17:49:10]save last doc name /storage/0324/doc_00068432 to /storage/kkm_last_doc_name [17:49:10]save OK [17:49:10]Clear old archive folders... [17:49:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:49:10]tlvbuf is 005BBDD0 [17:49:10]SAM_PROTO_ClearQueue [17:49:10]wFMCommunicate request_size=4 [17:49:10]MH_SAM_APDU [17:49:10]CAPDU: 80 09 00 00 [17:49:10]Write to MH i2c: E2 08 00 8B 53 80 09 00 00 00 00 00 00 50 [17:49:10]Write i2c OK [17:49:10]MH_I2C_Read... [17:49:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:49:10]Read from MH i2c: E2 [17:49:10]MH_I2C_Read... [17:49:10]Read from MH i2c: E2 03 00 [17:49:10]MH_I2C_Read... [17:49:10]Read from MH i2c: E2 03 00 8B 53 00 90 00 52 [17:49:10]RAPDU: 90 00 [17:49:10]wFMCommunicate OK [17:49:10]SAM_PROTO_ClearQueue done [17:49:10]KKMCreateOFDPacket [17:49:10]OFDProtocolAddRootSTLVToBuf [17:49:10]FM_MakeSignedData [17:49:10]FM_MakeSignedData [17:49:10]SAM_PROTO_SignData [17:49:10]wFMCommunicate request_size=4 [17:49:10]MH_SAM_APDU [17:49:10]CAPDU: 80 0D 01 02 [17:49:10]Write to MH i2c: E2 08 00 8C 53 80 0D 01 02 00 00 00 00 58 [17:49:10]Write i2c OK [17:49:10]MH_I2C_Read... [17:49:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:49:10]Read from MH i2c: E2 [17:49:10]MH_I2C_Read... [17:49:10]Read from MH i2c: E2 03 00 [17:49:10]MH_I2C_Read... [17:49:10]Read from MH i2c: E2 03 00 8C 53 00 90 00 53 [17:49:10]RAPDU: 90 00 [17:49:10]wFMCommunicate OK [17:49:10]wFMCommunicate request_size=255 [17:49:10]MH_SAM_APDU [17:49: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 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 1B 02 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 50 0B 01 00 35 04 06 00 34 [17:49:10]Write to MH i2c: E2 02 01 8D 53 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 1B 02 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 50 0B 01 00 35 04 06 00 34 00 00 1C [17:49:10]Write i2c OK [17:49:10]MH_I2C_Read... [17:49:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:49:10]Read from MH i2c: E2 [17:49:10]MH_I2C_Read... [17:49:10]Read from MH i2c: E2 03 00 [17:49:10]MH_I2C_Read... [17:49:10]Read from MH i2c: E2 03 00 8D 53 00 90 00 54 [17:49:10]RAPDU: 90 00 [17:49:10]wFMCommunicate OK [17:49:10]wFMCommunicate request_size=10 [17:49:10]MH_SAM_APDU [17:49:10]CAPDU: 80 0D 02 02 05 43 78 28 A4 E7 [17:49:10]Write to MH i2c: E2 0D 00 8E 53 80 0D 02 02 05 00 43 78 28 A4 E7 00 00 D3 [17:49:10]Write i2c OK [17:49:10]MH_I2C_Read... [17:49:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:49:10]Read from MH i2c: E2 [17:49:10]MH_I2C_Read... [17:49:10]Read from MH i2c: E2 03 00 [17:49:10]MH_I2C_Read... [17:49:10]Read from MH i2c: E2 03 00 8E 53 00 90 00 55 [17:49:10]RAPDU: 90 00 [17:49:10]wFMCommunicate OK [17:49:10]wFMCommunicate request_size=4 [17:49:10]MH_SAM_APDU [17:49:10]CAPDU: 80 0D 03 02 [17:49:10]Write to MH i2c: E2 08 00 8F 53 80 0D 03 02 00 00 00 00 5D [17:49:10]Write i2c OK [17:49:10]MH_I2C_Read... [17:49:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:49:10]Read from MH i2c: E2 [17:49:10]MH_I2C_Read... [17:49:10]Read from MH i2c: E2 0B 00 [17:49:10]MH_I2C_Read... [17:49:10]Read from MH i2c: E2 0B 00 8F 53 00 C0 93 C0 5C E3 0E 30 14 90 00 02 [17:49:10]RAPDU: C0 93 C0 5C E3 0E 30 14 90 00 [17:49:10]wFMCommunicate OK [17:49:10]SAM_PROTO_SignData done [17:49:10]FM_MakeSignedData done [17:49:10]CreateOFDProtocolMessage [17:49:10]wFMCommunicate request_size=4 [17:49:10]MH_SAM_APDU [17:49:10]CAPDU: 80 11 00 00 [17:49:10]Write to MH i2c: E2 08 00 90 53 80 11 00 00 00 00 00 00 5D [17:49:10]Write i2c OK [17:49:10]MH_I2C_Read... [17:49:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:49:10]Read from MH i2c: E2 [17:49:10]MH_I2C_Read... [17:49:10]Read from MH i2c: E2 17 00 [17:49:10]MH_I2C_Read... [17:49:10]Read from MH i2c: E2 17 00 90 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 A8 [17:49:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [17:49:10]wFMCommunicate OK [17:49:10]CreateOFDProtocolMessage done [17:49:10]OFDSenderStorePacket 68432 [17:49:10]StoreOFDPacket docnum=68432 [17:49:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 29 59 07 01 DC 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 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 1B 02 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 50 0B 01 00 35 04 06 00 34 43 78 28 A4 E7 C0 93 C0 5C E3 0E 30 14 [17:49:10]CheckFolder [17:49:10]dirname=/storage/ofd_packets [17:49:10]CheckFolder done [17:49:10]ProducePacketName [17:49:10]name=ofd_packets/00068432 [17:49:10]NVStorageSaveData ofd_packets/00068432 [17:49:10]File name is /storage/ofd_packets/00068432 [17:49:10]Write 301 bytes [17:49:10]NVStorageSaveData done [17:49:10]OFDSenderStorePacket done [17:49:10]KKMCreateOFDPacket done [17:49:10]NVStorageSaveData kkm_last_timestamp [17:49:10]File name is /storage/kkm_last_timestamp [17:49:10]Write 4 bytes [17:49:10]NVStorageSaveData done [17:49:10]ExternCall_PrintAddStr [17:49:10]wPrintStart [17:49:10]Write to MH i2c: 01 00 00 91 53 E4 [17:49:10]Write i2c OK [17:49:10]MH_I2C_Read... [17:49:10]Read from MH i2c: 01 [17:49:10]MH_I2C_Read... [17:49:10]Read from MH i2c: 01 07 00 [17:49:10]MH_I2C_Read... [17:49:10]Read from MH i2c: 01 07 00 91 53 00 00 00 00 00 FF 0F F9 [17:49:10]RasterBufferAndPrint [17:49:10]line Счет N : (1)706533 [17:49:10]line ИНН: 02508201610067 [17:49:10]line Контрольно-Кассовый Чек [17:49:10]line ПРОДАЖА [17:49:10]line ТРК (МРК, ГНК) : 63 [17:49:10]line Товар: 2710124130 [17:49:10]line Аи-92-К-4 [17:49:10]line 5.980 * 66.90 [17:49:10]line = 400.06 [17:49:10]line НДС 12% НСП 1% [17:49:10]line > о реализуемом товаре [17:49:10]line ОКРУГЛЕНИЕ: -0.06 [17:49:10]line ИТОГО: 400.00 [17:49:10]line Внесено: 400.00 [17:49:10]line СДАЧА: 0.00 [17:49:10]line НСП 1% : 3.54 [17:49:10]line НДС 12% : 42.48 [17:49:10]line Наличными: 400.00 [17:49:10]line Безнал.: 0.00 [17:49:10]line Место: АЗС № 62 "Партнер Нефть" [17:49:10]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [17:49:10]line СНО: Общий режим [17:49:10]line Чек 178 03.06.2024 17:49 [17:49:10]line Смена: 324 ФФД: 1.0 [17:49:10]line ЗНМ: 0300000181 [17:49:10]line РНМ: 0000000000098096 [17:49:10]line Версия ККМ: 001 [17:49:10]line ФМ: 0000000000965400 [17:49:10]line ФД: 68432 [17:49:10]line ФПД: 57464383382759 [17:49:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T174915&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68432&fm=57464383382759&tin=02508201610067®Number=0000000000098096&sum=40000 [17:49:10]OFD Sender: Processing packet 68432 [packets to send 26, broken 25] [17:49:10]ProducePacketName [17:49:10]name=ofd_packets/00068432 [17:49:10]OFD Sender: To server: pG, [17:49:10]CommunicateWithHost lk.salyk.kg:30040 [17:49:10]ConnectInit lk.salyk.kg [17:49:10]written 0, free lines is 4095 [17:49:10]Connected sock=7 [17:49:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 29 59 07 01 DC 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 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 1B 02 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 50 0B 01 00 35 04 06 00 34 43 78 28 A4 E7 C0 93 C0 5C E3 0E 30 14 [17:49:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 15 88 47 00 A6 E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 50 0B 01 00 F4 03 04 00 16 A9 5D 66 B6 04 01 00 00 F0 8B 13 A5 4B 2F 0D DC [17:49:11]CommunicateWithHost err = 0 [17:49:11]CheckOFDResponse [17:49:11]1017 (14) - 77093643461234 [17:49:11]1041 (16) - 0000000000965400 [17:49:11]1040 (4) - 68432 [17:49:11]1012 (4) - 03.06.2024 11:29 [17:49:11]1206 (1) - 0 [17:49:11]OFD Sender: Remove packet 68432 [17:49:11]ProducePacketName [17:49:11]name=ofd_packets/00068432 [17:49:11]NVStorageDeleteData [17:49:11]Write to MH i2c: 01 00 00 BC 53 0F [17:49:11]Write i2c OK [17:49:11]MH_I2C_Read... [17:49:11]Read from MH i2c: 01 [17:49:11]MH_I2C_Read... [17:49:11]Read from MH i2c: 01 07 00 [17:49:11]MH_I2C_Read... [17:49:11]Read from MH i2c: 01 07 00 BC 53 00 00 00 00 00 E5 0C 07 [17:49:11]RasterBufferAndPrint [17:49:11]line [17:49:11]line [17:49:11]line [17:49:11]line [17:49:11]line [17:49:11]written 0, free lines is 3307 [17:49:11]MH_Cut [17:49:11]Write to MH i2c: D1 01 00 C3 53 01 E8 [17:49:11]Write i2c OK [17:49:11]MH_I2C_Read... [17:49:11]Read from MH i2c: D1 [17:49:11]MH_I2C_Read... [17:49:11]Read from MH i2c: D1 01 00 [17:49:11]MH_I2C_Read... [17:49:11]Read from MH i2c: D1 01 00 C3 53 00 E7 [17:49:11]Write to MH i2c: 01 00 00 C4 53 17 [17:49:11]Write i2c OK [17:49:11]MH_I2C_Read... [17:49:11]OFD Sender: No OFD packet to send [17:49:12]*** Cut start [17:49:12]*** Partial cut [17:49:12]*** CUTSNS_PIN = 1 [17:49:12]*** CUTSNS_PIN = 0 [17:49:12]*** Brake cut motor [17:49:12]Read from MH i2c: 01 [17:49:12]MH_I2C_Read... [17:49:12]*** Stop cut motor [17:49:12]*** Cut end [17:49:12]Read from MH i2c: 01 07 00 [17:49:12]MH_I2C_Read... [17:49:12]Read from MH i2c: 01 07 00 C4 53 00 00 00 00 00 FF 0F 2C [17:49:12]process_action close_receipt done [17:49:12]requested_data is exist [17:49:12]produce_requested_data [17:49:12]requested_item fm.sn is exist - process it [17:49:12]wFMCommunicate request_size=4 [17:49:12]MH_SAM_APDU [17:49:12]CAPDU: 80 11 00 00 [17:49:12]Write to MH i2c: E2 08 00 C5 53 80 11 00 00 00 00 00 00 92 [17:49:12]Write i2c OK [17:49:12]MH_I2C_Read... [17:49:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:49:12]Read from MH i2c: E2 [17:49:12]MH_I2C_Read... [17:49:12]Read from MH i2c: E2 17 00 [17:49:12]MH_I2C_Read... [17:49:12]Read from MH i2c: E2 17 00 C5 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 DD [17:49:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [17:49:12]wFMCommunicate OK [17:49:12]requested_item fd.num is exist - process it [17:49:12]SAM_PROTO_GetFieldsCounters [17:49:12]wFMCommunicate request_size=4 [17:49:12]MH_SAM_APDU [17:49:12]CAPDU: 80 13 00 00 [17:49:12]Write to MH i2c: E2 08 00 C6 53 80 13 00 00 00 00 00 00 95 [17:49:12]Write i2c OK [17:49:12]MH_I2C_Read... [17:49:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:49:12]Read from MH i2c: E2 [17:49:12]MH_I2C_Read... [17:49:12]Read from MH i2c: E2 62 00 [17:49:12]MH_I2C_Read... [17:49:12]Read from MH i2c: E2 62 00 C6 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 50 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 6C [17:49:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 50 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:49:12]wFMCommunicate OK [17:49:12]SAM_PROTO_GetFieldsCounters done [17:49:12]requested_item shift.num is exist - process it [17:49:12]requested_item shift.opened is exist - process it [17:49:12]req_shift_opened [17:49:12]FM_GetShiftState [17:49:12]SAM_PROTO_GetShiftState [17:49:12]wFMCommunicate request_size=4 [17:49:12]MH_SAM_APDU [17:49:12]CAPDU: 80 13 01 00 [17:49:12]Write to MH i2c: E2 08 00 C7 53 80 13 01 00 00 00 00 00 97 [17:49:12]Write i2c OK [17:49:12]MH_I2C_Read... [17:49:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:49:13]Read from MH i2c: E2 [17:49:13]MH_I2C_Read... [17:49:13]Read from MH i2c: E2 0E 00 [17:49:13]MH_I2C_Read... [17:49:13]Read from MH i2c: E2 0E 00 C7 53 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 72 [17:49:13]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [17:49:13]wFMCommunicate OK [17:49:13]SAM_PROTO_GetShiftState done [17:49:13]FM_GetShiftState done [17:49:13]req_shift_opened done [17:49:13]requested_item shift.open_date is exist - process it [17:49:13]req_shift_open_date [17:49:13]req_shift_open_date done [17:49:13]produce_requested_data done [17:49:13]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68432,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [17:49:13]process_action_free close_receipt [17:49:13]json_value_free [17:49:13]json_value_free done [17:49:13]process_json_proto returns [17:49:13]Send response to host [17:49:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68432,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [17:49:13]free response buf [17:49:13]execute_script done [17:49:13]execute_script returns [17:49:13]free content buf [17:49:13]Sock 5.Close socket [17:49:13]Sock 5.Thread stoped [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:29]accept exits with 6 [17:49:29]New connection [17:49:29]New thread 3066686820 created [17:49:29]Thread 3066543460 joined [17:49:29]Waiting for new connection... [17:49:29] Sock 6.Parse request [17:49:29]Sock 6.Check first char [17:49:29]Sock 6.First char is OK [17:49:29]request: POST /json_proto HTTP/1.0 [17:49:29]Method: POST [17:49:29]URL: /json_proto [17:49:29]Method is POST - this is cgi request [17:49:29]url: /json_proto [17:49:29]query_string will be loaded in cgi processing [17:49:29]execute_cgi json_proto POST (null) [17:49:29]execute_cgi path=json_proto method=POST [17:49:29]POST find Content-Length [17:49:29]Host: 172.17.36.132:8080 [17:49:29]Content-Length: 733 [17:49:29]Content-Type: application/json [17:49:29] [17:49:29]POST finish read [17:49:29]Found Content-Length = 733 [17:49:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 68432, "base_FM": "0000000000965400", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706533", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:49:29]execute_script... [17:49:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 68432, "base_FM": "0000000000965400", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706533", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:49:29]POST & json_proto [17:49:29]process_json_proto [17:49:29]json parsed OK: [17:49:29]protocol is kg_v1.0 [17:49:29]action value=close_receipt [17:49:29]process_action close_receipt [17:49:29]cmd_close_receipt [17:49:29]MH_GetDate [17:49:29]Write to MH i2c: F0 00 00 C8 53 0A [17:49:29]Write i2c OK [17:49:29]MH_I2C_Read... [17:49:29]Read from MH i2c: F0 [17:49:29]MH_I2C_Read... [17:49:29]Read from MH i2c: F0 09 00 [17:49:29]MH_I2C_Read... [17:49:29]Read from MH i2c: F0 09 00 C8 53 00 30 02 5E 66 B2 22 B0 64 F1 [17:49:29]GetLastDocTimeStamp 1717436955 [17:49:29]current date 1717436976 [17:49:29]FM_GetShiftState [17:49:29]SAM_PROTO_GetShiftState [17:49:29]wFMCommunicate request_size=4 [17:49:29]MH_SAM_APDU [17:49:29]CAPDU: 80 13 01 00 [17:49:29]Write to MH i2c: E2 08 00 C9 53 80 13 01 00 00 00 00 00 99 [17:49:29]Write i2c OK [17:49:29]MH_I2C_Read... [17:49:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:49:29]Read from MH i2c: E2 [17:49:29]MH_I2C_Read... [17:49:29]Read from MH i2c: E2 0E 00 [17:49:29]MH_I2C_Read... [17:49:29]Read from MH i2c: E2 0E 00 C9 53 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 74 [17:49:29]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [17:49:29]wFMCommunicate OK [17:49:29]SAM_PROTO_GetShiftState done [17:49:29]FM_GetShiftState done [17:49:29]opened in 1717378033 [17:49:29]opened+sec_in_day 1717464433 [17:49:29]quantity*price = 40006 [17:49:29]sum+1 = 40007 [17:49:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 179 03.06.2024 17:49 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФД осн.: 68432 ФМ осн.: 0000000000965400 ФМ: 0000000000965400 ФД: 68433 ФПД: 68094574874082 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T174936&type=2&operation_type=1&fn_number=0000000000965400&fd_number=68433&fm=68094574874082&tin=02508201610067®Number=0000000000098096&sum=40000 [17:49:31]StoreToDocumentArchive [17:49:31]shift 324 fd 68433 [17:49:31]save to /storage/0324/doc_00068433 [17:49:31]save last doc name /storage/0324/doc_00068433 to /storage/kkm_last_doc_name [17:49:31]save OK [17:49:31]Clear old archive folders... [17:49:31]ProcessDocumentItem done err = 0, tmpTLVsize=279 [17:49:31]tlvbuf is 0027E6C0 [17:49:31]SAM_PROTO_ClearQueue [17:49:31]wFMCommunicate request_size=4 [17:49:31]MH_SAM_APDU [17:49:31]CAPDU: 80 09 00 00 [17:49:31]Write to MH i2c: E2 08 00 D8 53 80 09 00 00 00 00 00 00 9D [17:49:31]Write i2c OK [17:49:31]MH_I2C_Read... [17:49:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:49:31]Read from MH i2c: E2 [17:49:31]MH_I2C_Read... [17:49:31]Read from MH i2c: E2 03 00 [17:49:31]MH_I2C_Read... [17:49:31]Read from MH i2c: E2 03 00 D8 53 00 90 00 9F [17:49:31]RAPDU: 90 00 [17:49:31]wFMCommunicate OK [17:49:31]SAM_PROTO_ClearQueue done [17:49:31]KKMCreateOFDPacket [17:49:31]OFDProtocolAddRootSTLVToBuf [17:49:31]FM_MakeSignedData [17:49:31]FM_MakeSignedData [17:49:31]SAM_PROTO_SignData [17:49:31]wFMCommunicate request_size=4 [17:49:31]MH_SAM_APDU [17:49:31]CAPDU: 80 0D 01 02 [17:49:31]Write to MH i2c: E2 08 00 D9 53 80 0D 01 02 00 00 00 00 A5 [17:49:31]Write i2c OK [17:49:31]MH_I2C_Read... [17:49:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:49:31]Read from MH i2c: E2 [17:49:31]MH_I2C_Read... [17:49:31]Read from MH i2c: E2 03 00 [17:49:31]MH_I2C_Read... [17:49:31]Read from MH i2c: E2 03 00 D9 53 00 90 00 A0 [17:49:31]RAPDU: 90 00 [17:49:31]wFMCommunicate OK [17:49:31]wFMCommunicate request_size=255 [17:49:31]MH_SAM_APDU [17:49:31]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 30 02 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 27 04 04 00 50 0B 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 11 04 10 00 30 [17:49:31]Write to MH i2c: E2 02 01 DA 53 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 30 02 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 27 04 04 00 50 0B 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 11 04 10 00 30 00 00 AD [17:49:31]Write i2c OK [17:49:31]MH_I2C_Read... [17:49:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:49:31]Read from MH i2c: E2 [17:49:31]MH_I2C_Read... [17:49:31]Read from MH i2c: E2 03 00 [17:49:31]MH_I2C_Read... [17:49:31]Read from MH i2c: E2 03 00 DA 53 00 90 00 A1 [17:49:31]RAPDU: 90 00 [17:49:31]wFMCommunicate OK [17:49:31]wFMCommunicate request_size=38 [17:49:31]MH_SAM_APDU [17:49:31]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 51 0B 01 00 35 04 06 00 3D EE 80 F2 4D E2 [17:49:31]Write to MH i2c: E2 29 00 DB 53 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 51 0B 01 00 35 04 06 00 3D EE 80 F2 4D E2 00 00 52 [17:49:31]Write i2c OK [17:49:31]MH_I2C_Read... [17:49:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:49:31]Read from MH i2c: E2 [17:49:31]MH_I2C_Read... [17:49:31]Read from MH i2c: E2 03 00 [17:49:31]MH_I2C_Read... [17:49:31]Read from MH i2c: E2 03 00 DB 53 00 90 00 A2 [17:49:31]RAPDU: 90 00 [17:49:31]wFMCommunicate OK [17:49:31]wFMCommunicate request_size=4 [17:49:31]MH_SAM_APDU [17:49:31]CAPDU: 80 0D 03 02 [17:49:31]Write to MH i2c: E2 08 00 DC 53 80 0D 03 02 00 00 00 00 AA [17:49:31]Write i2c OK [17:49:31]MH_I2C_Read... [17:49:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:49:31]Read from MH i2c: E2 [17:49:31]MH_I2C_Read... [17:49:31]Read from MH i2c: E2 0B 00 [17:49:31]MH_I2C_Read... [17:49:31]Read from MH i2c: E2 0B 00 DC 53 00 92 3D A0 A9 51 7C 25 C7 90 00 7C [17:49:31]RAPDU: 92 3D A0 A9 51 7C 25 C7 90 00 [17:49:31]wFMCommunicate OK [17:49:31]SAM_PROTO_SignData done [17:49:31]FM_MakeSignedData done [17:49:31]CreateOFDProtocolMessage [17:49:31]wFMCommunicate request_size=4 [17:49:31]MH_SAM_APDU [17:49:31]CAPDU: 80 11 00 00 [17:49:31]Write to MH i2c: E2 08 00 DD 53 80 11 00 00 00 00 00 00 AA [17:49:31]Write i2c OK [17:49:31]MH_I2C_Read... [17:49:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:49:31]Read from MH i2c: E2 [17:49:31]MH_I2C_Read... [17:49:31]Read from MH i2c: E2 17 00 [17:49:31]MH_I2C_Read... [17:49:31]Read from MH i2c: E2 17 00 DD 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 F5 [17:49:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [17:49:31]wFMCommunicate OK [17:49:31]CreateOFDProtocolMessage done [17:49:31]OFDSenderStorePacket 68433 [17:49:31]StoreOFDPacket docnum=68433 [17:49:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 2B 01 00 00 55 6B 23 01 25 3E 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 30 02 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 27 04 04 00 50 0B 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 51 0B 01 00 35 04 06 00 3D EE 80 F2 4D E2 92 3D A0 A9 51 7C 25 C7 [17:49:31]CheckFolder [17:49:31]dirname=/storage/ofd_packets [17:49:31]CheckFolder done [17:49:31]ProducePacketName [17:49:31]name=ofd_packets/00068433 [17:49:31]NVStorageSaveData ofd_packets/00068433 [17:49:31]File name is /storage/ofd_packets/00068433 [17:49:31]Write 329 bytes [17:49:31]NVStorageSaveData done [17:49:31]OFDSenderStorePacket done [17:49:31]KKMCreateOFDPacket done [17:49:31]NVStorageSaveData kkm_last_timestamp [17:49:31]File name is /storage/kkm_last_timestamp [17:49:31]Write 4 bytes [17:49:31]NVStorageSaveData done [17:49:31]ExternCall_PrintAddStr [17:49:31]wPrintStart [17:49:31]Write to MH i2c: 01 00 00 DE 53 31 [17:49:31]Write i2c OK [17:49:31]MH_I2C_Read... [17:49:31]Read from MH i2c: 01 [17:49:31]MH_I2C_Read... [17:49:31]Read from MH i2c: 01 07 00 [17:49:31]MH_I2C_Read... [17:49:31]Read from MH i2c: 01 07 00 DE 53 00 00 00 00 00 FF 0F 46 [17:49:31]RasterBufferAndPrint [17:49:31]line Счет N : (1)706533 [17:49:31]line ИНН: 02508201610067 [17:49:31]line Контрольно-Кассовый Чек [17:49:31]line ВОЗВРАТ ПРОДАЖИ [17:49:31]line ТРК (МРК, ГНК) : 63 [17:49:31]line Товар: 2710124130 [17:49:31]line Аи-92-К-4 [17:49:31]line 5.980 * 66.90 [17:49:31]line = 400.06 [17:49:31]line НДС 12% НСП 1% [17:49:31]line > о реализуемом товаре [17:49:31]line ОКРУГЛЕНИЕ: -0.06 [17:49:31]line ИТОГО: 400.00 [17:49:31]line НСП 1% : 3.54 [17:49:31]line НДС 12% : 42.48 [17:49:31]line Наличными: 400.00 [17:49:31]line Безнал.: 0.00 [17:49:31]line Место: АЗС № 62 "Партнер Нефть" [17:49:31]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [17:49:31]line СНО: Общий режим [17:49:31]line Чек 179 03.06.2024 17:49 [17:49:31]line Смена: 324 ФФД: 1.0 [17:49:31]line ЗНМ: 0300000181 [17:49:31]line РНМ: 0000000000098096 [17:49:31]line Версия ККМ: 001 [17:49:31]line ФД осн.: 68432 [17:49:31]line ФМ осн.: 0000000000965400 [17:49:31]line ФМ: 0000000000965400 [17:49:31]line ФД: 68433 [17:49:31]line ФПД: 68094574874082 [17:49:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T174936&type=2&operation_type=1&fn_number=0000000000965400&fd_number=68433&fm=68094574874082&tin=02508201610067®Number=0000000000098096&sum=40000 [17:49:32]OFD Sender: Processing packet 68433 [packets to send 26, broken 25] [17:49:32]ProducePacketName [17:49:32]name=ofd_packets/00068433 [17:49:32]OFD Sender: To server: pG, [17:49:32]CommunicateWithHost lk.salyk.kg:30040 [17:49:32]ConnectInit lk.salyk.kg [17:49:32]written 0, free lines is 4095 [17:49:32]Connected sock=7 [17:49:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 2B 01 00 00 55 6B 23 01 25 3E 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 30 02 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 27 04 04 00 50 0B 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 51 0B 01 00 35 04 06 00 3D EE 80 F2 4D E2 92 3D A0 A9 51 7C 25 C7 [17:49:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 BE 15 47 00 D0 B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 51 0B 01 00 F4 03 04 00 2B A9 5D 66 B6 04 01 00 00 9F E3 36 3C 97 09 DC 18 [17:49:32]CommunicateWithHost err = 0 [17:49:32]CheckOFDResponse [17:49:32]1017 (14) - 77093643461234 [17:49:32]1041 (16) - 0000000000965400 [17:49:32]1040 (4) - 68433 [17:49:32]1012 (4) - 03.06.2024 11:29 [17:49:32]1206 (1) - 0 [17:49:32]OFD Sender: Remove packet 68433 [17:49:32]ProducePacketName [17:49:32]name=ofd_packets/00068433 [17:49:32]NVStorageDeleteData [17:49:32]Write to MH i2c: 01 00 00 09 54 5D [17:49:32]Write i2c OK [17:49:32]MH_I2C_Read... [17:49:32]Read from MH i2c: 01 [17:49:32]MH_I2C_Read... [17:49:32]Read from MH i2c: 01 07 00 [17:49:32]MH_I2C_Read... [17:49:32]Read from MH i2c: 01 07 00 09 54 00 00 00 00 00 E4 0C 54 [17:49:32]RasterBufferAndPrint [17:49:32]line [17:49:32]line [17:49:32]line [17:49:32]line [17:49:32]line [17:49:32]written 0, free lines is 3307 [17:49:32]MH_Cut [17:49:32]Write to MH i2c: D1 01 00 10 54 01 36 [17:49:32]Write i2c OK [17:49:32]MH_I2C_Read... [17:49:32]Read from MH i2c: D1 [17:49:32]MH_I2C_Read... [17:49:32]Read from MH i2c: D1 01 00 [17:49:32]MH_I2C_Read... [17:49:32]Read from MH i2c: D1 01 00 10 54 00 35 [17:49:32]Write to MH i2c: 01 00 00 11 54 65 [17:49:32]Write i2c OK [17:49:32]MH_I2C_Read... [17:49:32]OFD Sender: No OFD packet to send [17:49:33]*** Cut start [17:49:33]*** Partial cut [17:49:33]*** CUTSNS_PIN = 1 [17:49:33]*** CUTSNS_PIN = 0 [17:49:33]*** Brake cut motor [17:49:33]Read from MH i2c: 01 [17:49:33]MH_I2C_Read... [17:49:33]*** Stop cut motor [17:49:33]*** Cut end [17:49:33]Read from MH i2c: 01 07 00 [17:49:33]MH_I2C_Read... [17:49:33]Read from MH i2c: 01 07 00 11 54 00 00 00 00 00 FF 0F 7A [17:49:33]process_action close_receipt done [17:49:33]requested_data is exist [17:49:33]produce_requested_data [17:49:33]requested_item fm.sn is exist - process it [17:49:33]wFMCommunicate request_size=4 [17:49:33]MH_SAM_APDU [17:49:33]CAPDU: 80 11 00 00 [17:49:33]Write to MH i2c: E2 08 00 12 54 80 11 00 00 00 00 00 00 E0 [17:49:33]Write i2c OK [17:49:33]MH_I2C_Read... [17:49:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:49:33]Read from MH i2c: E2 [17:49:33]MH_I2C_Read... [17:49:33]Read from MH i2c: E2 17 00 [17:49:33]MH_I2C_Read... [17:49:33]Read from MH i2c: E2 17 00 12 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 2B [17:49:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [17:49:33]wFMCommunicate OK [17:49:33]requested_item fd.num is exist - process it [17:49:33]SAM_PROTO_GetFieldsCounters [17:49:33]wFMCommunicate request_size=4 [17:49:33]MH_SAM_APDU [17:49:33]CAPDU: 80 13 00 00 [17:49:33]Write to MH i2c: E2 08 00 13 54 80 13 00 00 00 00 00 00 E3 [17:49:33]Write i2c OK [17:49:33]MH_I2C_Read... [17:49:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:49:34]Read from MH i2c: E2 [17:49:34]MH_I2C_Read... [17:49:34]Read from MH i2c: E2 62 00 [17:49:34]MH_I2C_Read... [17:49:34]Read from MH i2c: E2 62 00 13 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 51 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 BE [17:49:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 51 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:49:34]wFMCommunicate OK [17:49:34]SAM_PROTO_GetFieldsCounters done [17:49:34]requested_item shift.num is exist - process it [17:49:34]requested_item shift.opened is exist - process it [17:49:34]req_shift_opened [17:49:34]FM_GetShiftState [17:49:34]SAM_PROTO_GetShiftState [17:49:34]wFMCommunicate request_size=4 [17:49:34]MH_SAM_APDU [17:49:34]CAPDU: 80 13 01 00 [17:49:34]Write to MH i2c: E2 08 00 14 54 80 13 01 00 00 00 00 00 E5 [17:49:34]Write i2c OK [17:49:34]MH_I2C_Read... [17:49:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:49:34]Read from MH i2c: E2 [17:49:34]MH_I2C_Read... [17:49:34]Read from MH i2c: E2 0E 00 [17:49:34]MH_I2C_Read... [17:49:34]Read from MH i2c: E2 0E 00 14 54 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 C0 [17:49:34]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [17:49:34]wFMCommunicate OK [17:49:34]SAM_PROTO_GetShiftState done [17:49:34]FM_GetShiftState done [17:49:34]req_shift_opened done [17:49:34]requested_item shift.open_date is exist - process it [17:49:34]req_shift_open_date [17:49:34]req_shift_open_date done [17:49:34]produce_requested_data done [17:49:34]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68433,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [17:49:34]process_action_free close_receipt [17:49:34]json_value_free [17:49:34]json_value_free done [17:49:34]process_json_proto returns [17:49:34]Send response to host [17:49:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68433,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [17:49:34]free response buf [17:49:34]execute_script done [17:49:34]execute_script returns [17:49:34]free content buf [17:49:34]Sock 6.Close socket [17:49:34]Sock 6.Thread stoped [17:49:37]OFD Sender: No OFD packet to send [17:49:42]OFD Sender: No OFD packet to send [17:49:47]OFD Sender: No OFD packet to send [17:49:52]OFD Sender: No OFD packet to send [17:49:57]OFD Sender: No OFD packet to send [17:50:02]OFD Sender: No OFD packet to send [17:50:07]OFD Sender: No OFD packet to send [17:50:12]accept exits with 5 [17:50:12]New connection [17:50:12]New thread 3066543460 created [17:50:12]Thread 3066686820 joined [17:50:12]Waiting for new connection... [17:50:12] Sock 5.Parse request [17:50:12]Sock 5.Check first char [17:50:12]Sock 5.First char is OK [17:50:12]request: POST /json_proto HTTP/1.0 [17:50:12]Method: POST [17:50:12]URL: /json_proto [17:50:12]Method is POST - this is cgi request [17:50:12]url: /json_proto [17:50:12]query_string will be loaded in cgi processing [17:50:12]execute_cgi json_proto POST (null) [17:50:12]execute_cgi path=json_proto method=POST [17:50:12]POST find Content-Length [17:50:12]Host: 172.17.36.132:8080 [17:50:12]Content-Length: 670 [17:50:12]Content-Type: application/json [17:50:12] [17:50:12]POST finish read [17:50:12]Found Content-Length = 670 [17:50:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706534", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 5.900, "sum" : 400.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:50:12]execute_script... [17:50: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)706534", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 5.900, "sum" : 400.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:50:12]POST & json_proto [17:50:12]process_json_proto [17:50:12]json parsed OK: [17:50:12]protocol is kg_v1.0 [17:50:12]action value=close_receipt [17:50:12]process_action close_receipt [17:50:12]cmd_close_receipt [17:50:12]MH_GetDate [17:50:12]Write to MH i2c: F0 00 00 15 54 58 [17:50:12]Write i2c OK [17:50:12]MH_I2C_Read... [17:50:12]Read from MH i2c: F0 [17:50:12]MH_I2C_Read... [17:50:12]Read from MH i2c: F0 09 00 [17:50:12]MH_I2C_Read... [17:50:12]Read from MH i2c: F0 09 00 15 54 00 5B 02 5E 66 B2 22 B0 64 6A [17:50:12]GetLastDocTimeStamp 1717436976 [17:50:12]current date 1717437019 [17:50:12]FM_GetShiftState [17:50:12]SAM_PROTO_GetShiftState [17:50:12]wFMCommunicate request_size=4 [17:50:12]MH_SAM_APDU [17:50:12]CAPDU: 80 13 01 00 [17:50:12]Write to MH i2c: E2 08 00 16 54 80 13 01 00 00 00 00 00 E7 [17:50:12]Write i2c OK [17:50:12]MH_I2C_Read... [17:50:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:50:12]Read from MH i2c: E2 [17:50:12]MH_I2C_Read... [17:50:12]Read from MH i2c: E2 0E 00 [17:50:12]MH_I2C_Read... [17:50:12]Read from MH i2c: E2 0E 00 16 54 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 C2 [17:50:12]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [17:50:12]wFMCommunicate OK [17:50:12]SAM_PROTO_GetShiftState done [17:50:12]FM_GetShiftState done [17:50:12]opened in 1717378033 [17:50:12]opened+sec_in_day 1717464433 [17:50:12]quantity*price = 40061 [17:50:12]sum+1 = 40062 [17:50:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 180 03.06.2024 17:50 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68434 ФПД: 215820359176336 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T175019&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68434&fm=215820359176336&tin=02508201610067®Number=0000000000098096&sum=40000 [17:50:13]StoreToDocumentArchive [17:50:13]shift 324 fd 68434 [17:50:13]save to /storage/0324/doc_00068434 [17:50:13]save last doc name /storage/0324/doc_00068434 to /storage/kkm_last_doc_name [17:50:13]save OK [17:50:13]Clear old archive folders... [17:50:13]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:50:13]tlvbuf is 0023A750 [17:50:13]SAM_PROTO_ClearQueue [17:50:13]wFMCommunicate request_size=4 [17:50:13]MH_SAM_APDU [17:50:13]CAPDU: 80 09 00 00 [17:50:13]Write to MH i2c: E2 08 00 23 54 80 09 00 00 00 00 00 00 E9 [17:50:13]Write i2c OK [17:50:13]MH_I2C_Read... [17:50:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:50:13]Read from MH i2c: E2 [17:50:13]MH_I2C_Read... [17:50:13]Read from MH i2c: E2 03 00 [17:50:13]MH_I2C_Read... [17:50:13]Read from MH i2c: E2 03 00 23 54 00 90 00 EB [17:50:13]RAPDU: 90 00 [17:50:13]wFMCommunicate OK [17:50:13]SAM_PROTO_ClearQueue done [17:50:13]KKMCreateOFDPacket [17:50:13]OFDProtocolAddRootSTLVToBuf [17:50:13]FM_MakeSignedData [17:50:13]FM_MakeSignedData [17:50:13]SAM_PROTO_SignData [17:50:13]wFMCommunicate request_size=4 [17:50:13]MH_SAM_APDU [17:50:13]CAPDU: 80 0D 01 02 [17:50:13]Write to MH i2c: E2 08 00 24 54 80 0D 01 02 00 00 00 00 F1 [17:50:13]Write i2c OK [17:50:13]MH_I2C_Read... [17:50:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:50:13]Read from MH i2c: E2 [17:50:13]MH_I2C_Read... [17:50:13]Read from MH i2c: E2 03 00 [17:50:13]MH_I2C_Read... [17:50:13]Read from MH i2c: E2 03 00 24 54 00 90 00 EC [17:50:13]RAPDU: 90 00 [17:50:13]wFMCommunicate OK [17:50:13]wFMCommunicate request_size=255 [17:50:13]MH_SAM_APDU [17:50:13]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 7D 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 9E 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 B4 00 00 00 F4 03 04 00 5B 02 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 52 0B 01 00 35 04 06 00 [17:50:13]Write to MH i2c: E2 02 01 25 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 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 7D 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 9E 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 B4 00 00 00 F4 03 04 00 5B 02 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 52 0B 01 00 35 04 06 00 00 00 41 [17:50:13]Write i2c OK [17:50:13]MH_I2C_Read... [17:50:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:50:14]Read from MH i2c: E2 [17:50:14]MH_I2C_Read... [17:50:14]Read from MH i2c: E2 03 00 [17:50:14]MH_I2C_Read... [17:50:14]Read from MH i2c: E2 03 00 25 54 00 90 00 ED [17:50:14]RAPDU: 90 00 [17:50:14]wFMCommunicate OK [17:50:14]wFMCommunicate request_size=11 [17:50:14]MH_SAM_APDU [17:50:14]CAPDU: 80 0D 02 02 06 C4 49 97 D8 10 90 [17:50:14]Write to MH i2c: E2 0E 00 26 54 80 0D 02 02 06 00 C4 49 97 D8 10 90 00 00 1C [17:50:14]Write i2c OK [17:50:14]MH_I2C_Read... [17:50:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:50:14]Read from MH i2c: E2 [17:50:14]MH_I2C_Read... [17:50:14]Read from MH i2c: E2 03 00 [17:50:14]MH_I2C_Read... [17:50:14]Read from MH i2c: E2 03 00 26 54 00 90 00 EE [17:50:14]RAPDU: 90 00 [17:50:14]wFMCommunicate OK [17:50:14]wFMCommunicate request_size=4 [17:50:14]MH_SAM_APDU [17:50:14]CAPDU: 80 0D 03 02 [17:50:14]Write to MH i2c: E2 08 00 27 54 80 0D 03 02 00 00 00 00 F6 [17:50:14]Write i2c OK [17:50:14]MH_I2C_Read... [17:50:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:50:14]Read from MH i2c: E2 [17:50:14]MH_I2C_Read... [17:50:14]Read from MH i2c: E2 0B 00 [17:50:14]MH_I2C_Read... [17:50:14]Read from MH i2c: E2 0B 00 27 54 00 16 99 90 66 45 63 35 B8 90 00 31 [17:50:14]RAPDU: 16 99 90 66 45 63 35 B8 90 00 [17:50:14]wFMCommunicate OK [17:50:14]SAM_PROTO_SignData done [17:50:14]FM_MakeSignedData done [17:50:14]CreateOFDProtocolMessage [17:50:14]wFMCommunicate request_size=4 [17:50:14]MH_SAM_APDU [17:50:14]CAPDU: 80 11 00 00 [17:50:14]Write to MH i2c: E2 08 00 28 54 80 11 00 00 00 00 00 00 F6 [17:50:14]Write i2c OK [17:50:14]MH_I2C_Read... [17:50:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:50:14]Read from MH i2c: E2 [17:50:14]MH_I2C_Read... [17:50:14]Read from MH i2c: E2 17 00 [17:50:14]MH_I2C_Read... [17:50:14]Read from MH i2c: E2 17 00 28 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 41 [17:50:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [17:50:14]wFMCommunicate OK [17:50:14]CreateOFDProtocolMessage done [17:50:14]OFDSenderStorePacket 68434 [17:50:14]StoreOFDPacket docnum=68434 [17:50:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 29 38 08 01 02 A0 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 7D 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 9E 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 B4 00 00 00 F4 03 04 00 5B 02 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 52 0B 01 00 35 04 06 00 C4 49 97 D8 10 90 16 99 90 66 45 63 35 B8 [17:50:14]CheckFolder [17:50:14]dirname=/storage/ofd_packets [17:50:14]CheckFolder done [17:50:14]ProducePacketName [17:50:14]name=ofd_packets/00068434 [17:50:14]NVStorageSaveData ofd_packets/00068434 [17:50:14]File name is /storage/ofd_packets/00068434 [17:50:14]Write 302 bytes [17:50:14]NVStorageSaveData done [17:50:14]OFDSenderStorePacket done [17:50:14]KKMCreateOFDPacket done [17:50:14]NVStorageSaveData kkm_last_timestamp [17:50:14]File name is /storage/kkm_last_timestamp [17:50:14]Write 4 bytes [17:50:14]NVStorageSaveData done [17:50:14]ExternCall_PrintAddStr [17:50:14]wPrintStart [17:50:14]Write to MH i2c: 01 00 00 29 54 7D [17:50:14]Write i2c OK [17:50:14]MH_I2C_Read... [17:50:14]Read from MH i2c: 01 [17:50:14]MH_I2C_Read... [17:50:14]Read from MH i2c: 01 07 00 [17:50:14]MH_I2C_Read... [17:50:14]Read from MH i2c: 01 07 00 29 54 00 00 00 00 00 FF 0F 92 [17:50:14]RasterBufferAndPrint [17:50:14]line Счет N : (1)706534 [17:50:14]line ИНН: 02508201610067 [17:50:14]line Контрольно-Кассовый Чек [17:50:14]line ПРОДАЖА [17:50:14]line ТРК (МРК, ГНК) : 62 [17:50:14]line Товар: 2710124130 [17:50:14]line Super-92-К-5 [17:50:14]line 5.900 * 67.90 [17:50:14]line = 400.61 [17:50:14]line НДС 12% НСП 1% [17:50:14]line > о реализуемом товаре [17:50:14]line ОКРУГЛЕНИЕ: -0.61 [17:50:14]line ИТОГО: 400.00 [17:50:14]line Внесено: 400.00 [17:50:14]line СДАЧА: 0.00 [17:50:14]line НСП 1% : 3.54 [17:50:14]line НДС 12% : 42.54 [17:50:14]line Наличными: 400.00 [17:50:14]line Безнал.: 0.00 [17:50:14]line Место: АЗС № 62 "Партнер Нефть" [17:50:14]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [17:50:14]line СНО: Общий режим [17:50:14]line Чек 180 03.06.2024 17:50 [17:50:14]line Смена: 324 ФФД: 1.0 [17:50:14]line ЗНМ: 0300000181 [17:50:14]line РНМ: 0000000000098096 [17:50:14]line Версия ККМ: 001 [17:50:14]line ФМ: 0000000000965400 [17:50:14]line ФД: 68434 [17:50:14]line ФПД: 215820359176336 [17:50:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T175019&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68434&fm=215820359176336&tin=02508201610067®Number=0000000000098096&sum=40000 [17:50:14]OFD Sender: Processing packet 68434 [packets to send 26, broken 25] [17:50:14]ProducePacketName [17:50:14]name=ofd_packets/00068434 [17:50:14]OFD Sender: To server: pG, [17:50:14]CommunicateWithHost lk.salyk.kg:30040 [17:50:14]ConnectInit lk.salyk.kg [17:50:14]written 0, free lines is 4095 [17:50:14]Connected sock=7 [17:50:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 29 38 08 01 02 A0 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 17 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 7D 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 9E 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 B4 00 00 00 F4 03 04 00 5B 02 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 52 0B 01 00 35 04 06 00 C4 49 97 D8 10 90 16 99 90 66 45 63 35 B8 [17:50:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 C2 D1 47 00 91 C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 52 0B 01 00 F4 03 04 00 56 A9 5D 66 B6 04 01 00 00 D4 10 9D 82 7F 4C B1 EC [17:50:14]CommunicateWithHost err = 0 [17:50:14]CheckOFDResponse [17:50:14]1017 (14) - 77093643461234 [17:50:14]1041 (16) - 0000000000965400 [17:50:14]1040 (4) - 68434 [17:50:14]1012 (4) - 03.06.2024 11:30 [17:50:14]1206 (1) - 0 [17:50:14]OFD Sender: Remove packet 68434 [17:50:14]ProducePacketName [17:50:14]name=ofd_packets/00068434 [17:50:14]NVStorageDeleteData [17:50:15]Write to MH i2c: 01 00 00 54 54 A8 [17:50:15]Write i2c OK [17:50:15]MH_I2C_Read... [17:50:15]Read from MH i2c: 01 [17:50:15]MH_I2C_Read... [17:50:15]Read from MH i2c: 01 07 00 [17:50:15]MH_I2C_Read... [17:50:15]Read from MH i2c: 01 07 00 54 54 00 00 00 00 00 E0 0C 9B [17:50:15]RasterBufferAndPrint [17:50:15]line [17:50:15]line [17:50:15]line [17:50:15]line [17:50:15]line [17:50:15]written 0, free lines is 3305 [17:50:15]MH_Cut [17:50:15]Write to MH i2c: D1 01 00 5B 54 01 81 [17:50:15]Write i2c OK [17:50:15]MH_I2C_Read... [17:50:15]Read from MH i2c: D1 [17:50:15]MH_I2C_Read... [17:50:15]Read from MH i2c: D1 01 00 [17:50:15]MH_I2C_Read... [17:50:15]Read from MH i2c: D1 01 00 5B 54 00 80 [17:50:15]Write to MH i2c: 01 00 00 5C 54 B0 [17:50:15]Write i2c OK [17:50:15]MH_I2C_Read... [17:50:15]OFD Sender: No OFD packet to send [17:50:15]*** Cut start [17:50:15]*** Partial cut [17:50:15]*** CUTSNS_PIN = 1 [17:50:15]*** CUTSNS_PIN = 0 [17:50:16]*** Brake cut motor [17:50:16]Read from MH i2c: 01 [17:50:16]MH_I2C_Read... [17:50:16]*** Stop cut motor [17:50:16]*** Cut end [17:50:16]Read from MH i2c: 01 07 00 [17:50:16]MH_I2C_Read... [17:50:16]Read from MH i2c: 01 07 00 5C 54 00 00 00 00 00 FF 0F C5 [17:50:16]process_action close_receipt done [17:50:16]requested_data is exist [17:50:16]produce_requested_data [17:50:16]requested_item fm.sn is exist - process it [17:50:16]wFMCommunicate request_size=4 [17:50:16]MH_SAM_APDU [17:50:16]CAPDU: 80 11 00 00 [17:50:16]Write to MH i2c: E2 08 00 5D 54 80 11 00 00 00 00 00 00 2B [17:50:16]Write i2c OK [17:50:16]MH_I2C_Read... [17:50:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:50:16]Read from MH i2c: E2 [17:50:16]MH_I2C_Read... [17:50:16]Read from MH i2c: E2 17 00 [17:50:16]MH_I2C_Read... [17:50:16]Read from MH i2c: E2 17 00 5D 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 76 [17:50:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [17:50:16]wFMCommunicate OK [17:50:16]requested_item fd.num is exist - process it [17:50:16]SAM_PROTO_GetFieldsCounters [17:50:16]wFMCommunicate request_size=4 [17:50:16]MH_SAM_APDU [17:50:16]CAPDU: 80 13 00 00 [17:50:16]Write to MH i2c: E2 08 00 5E 54 80 13 00 00 00 00 00 00 2E [17:50:16]Write i2c OK [17:50:16]MH_I2C_Read... [17:50:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:50:16]Read from MH i2c: E2 [17:50:16]MH_I2C_Read... [17:50:16]Read from MH i2c: E2 62 00 [17:50:16]MH_I2C_Read... [17:50:16]Read from MH i2c: E2 62 00 5E 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 52 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 0D [17:50:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 52 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:50:16]wFMCommunicate OK [17:50:16]SAM_PROTO_GetFieldsCounters done [17:50:16]requested_item shift.num is exist - process it [17:50:16]requested_item shift.opened is exist - process it [17:50:16]req_shift_opened [17:50:16]FM_GetShiftState [17:50:16]SAM_PROTO_GetShiftState [17:50:16]wFMCommunicate request_size=4 [17:50:16]MH_SAM_APDU [17:50:16]CAPDU: 80 13 01 00 [17:50:16]Write to MH i2c: E2 08 00 5F 54 80 13 01 00 00 00 00 00 30 [17:50:16]Write i2c OK [17:50:16]MH_I2C_Read... [17:50:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:50:16]Read from MH i2c: E2 [17:50:16]MH_I2C_Read... [17:50:16]Read from MH i2c: E2 0E 00 [17:50:16]MH_I2C_Read... [17:50:16]Read from MH i2c: E2 0E 00 5F 54 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 0B [17:50:16]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [17:50:16]wFMCommunicate OK [17:50:16]SAM_PROTO_GetShiftState done [17:50:16]FM_GetShiftState done [17:50:16]req_shift_opened done [17:50:16]requested_item shift.open_date is exist - process it [17:50:16]req_shift_open_date [17:50:16]req_shift_open_date done [17:50:16]produce_requested_data done [17:50:16]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68434,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [17:50:16]process_action_free close_receipt [17:50:16]json_value_free [17:50:16]json_value_free done [17:50:16]process_json_proto returns [17:50:16]Send response to host [17:50:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68434,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [17:50:16]free response buf [17:50:16]execute_script done [17:50:16]execute_script returns [17:50:16]free content buf [17:50:16]Sock 5.Close socket [17:50:16]Sock 5.Thread stoped [17:50:20]OFD Sender: No OFD packet to send [17:50:25]OFD Sender: No OFD packet to send [17:50:30]OFD Sender: No OFD packet to send [17:50:35]OFD Sender: No OFD packet to send [17:50:40]OFD Sender: No OFD packet to send [17:50:45]OFD Sender: No OFD packet to send [17:50:50]OFD Sender: No OFD packet to send [17:50:55]OFD Sender: No OFD packet to send [17:51:00]OFD Sender: No OFD packet to send [17:51:05]OFD Sender: No OFD packet to send [17:51:10]OFD Sender: No OFD packet to send [17:51:15]OFD Sender: No OFD packet to send [17:51:20]OFD Sender: No OFD packet to send [17:51:25]OFD Sender: No OFD packet to send [17:51:30]OFD Sender: No OFD packet to send [17:51:35]OFD Sender: No OFD packet to send [17:51:40]OFD Sender: No OFD packet to send [17:51:45]OFD Sender: No OFD packet to send [17:51:50]OFD Sender: No OFD packet to send [17:51:55]OFD Sender: No OFD packet to send [17:52:00]OFD Sender: No OFD packet to send [17:52:05]OFD Sender: No OFD packet to send [17:52:10]OFD Sender: No OFD packet to send [17:52:15]OFD Sender: No OFD packet to send [17:52:20]OFD Sender: No OFD packet to send [17:52:25]OFD Sender: No OFD packet to send [17:52:30]OFD Sender: No OFD packet to send [17:52:35]OFD Sender: No OFD packet to send [17:52:40]OFD Sender: No OFD packet to send [17:52:45]OFD Sender: No OFD packet to send [17:52:50]OFD Sender: No OFD packet to send [17:52:55]OFD Sender: No OFD packet to send [17:53:00]OFD Sender: No OFD packet to send [17:53:05]OFD Sender: No OFD packet to send [17:53:10]OFD Sender: No OFD packet to send [17:53:15]OFD Sender: No OFD packet to send [17:53:20]OFD Sender: No OFD packet to send [17:53:25]OFD Sender: No OFD packet to send [17:53:30]OFD Sender: No OFD packet to send [17:53:35]OFD Sender: No OFD packet to send [17:53:40]OFD Sender: No OFD packet to send [17:53:45]OFD Sender: No OFD packet to send [17:53:50]OFD Sender: No OFD packet to send [17:53:55]OFD Sender: No OFD packet to send [17:54:00]OFD Sender: No OFD packet to send [17:54:05]OFD Sender: No OFD packet to send [17:54:10]OFD Sender: No OFD packet to send [17:54:15]OFD Sender: No OFD packet to send [17:54:16]accept exits with 6 [17:54:16]New connection [17:54:16]New thread 3066686820 created [17:54:16]Thread 3066543460 joined [17:54:16]Waiting for new connection... [17:54:16] Sock 6.Parse request [17:54:16]Sock 6.Check first char [17:54:16]Sock 6.First char is OK [17:54:16]request: POST /json_proto HTTP/1.0 [17:54:16]Method: POST [17:54:16]URL: /json_proto [17:54:16]Method is POST - this is cgi request [17:54:16]url: /json_proto [17:54:16]query_string will be loaded in cgi processing [17:54:16]execute_cgi json_proto POST (null) [17:54:16]execute_cgi path=json_proto method=POST [17:54:16]POST find Content-Length [17:54:16]Host: 172.17.36.132:8080 [17:54:16]Content-Length: 687 [17:54:16]Content-Type: application/json [17:54:16] [17:54:16]POST finish read [17:54:16]Found Content-Length = 687 [17:54:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706535", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "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:54:16]execute_script... [17:54: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)706535", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "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:54:16]POST & json_proto [17:54:16]process_json_proto [17:54:16]json parsed OK: [17:54:16]protocol is kg_v1.0 [17:54:16]action value=close_receipt [17:54:16]process_action close_receipt [17:54:16]cmd_close_receipt [17:54:16]MH_GetDate [17:54:16]Write to MH i2c: F0 00 00 60 54 A3 [17:54:16]Write i2c OK [17:54:16]MH_I2C_Read... [17:54:16]Read from MH i2c: F0 [17:54:16]MH_I2C_Read... [17:54:16]Read from MH i2c: F0 09 00 [17:54:16]MH_I2C_Read... [17:54:16]Read from MH i2c: F0 09 00 60 54 00 4E 03 5E 66 B2 22 B0 64 A9 [17:54:16]GetLastDocTimeStamp 1717437019 [17:54:16]current date 1717437262 [17:54:16]FM_GetShiftState [17:54:16]SAM_PROTO_GetShiftState [17:54:16]wFMCommunicate request_size=4 [17:54:16]MH_SAM_APDU [17:54:16]CAPDU: 80 13 01 00 [17:54:16]Write to MH i2c: E2 08 00 61 54 80 13 01 00 00 00 00 00 32 [17:54:16]Write i2c OK [17:54:16]MH_I2C_Read... [17:54:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:54:16]Read from MH i2c: E2 [17:54:16]MH_I2C_Read... [17:54:16]Read from MH i2c: E2 0E 00 [17:54:16]MH_I2C_Read... [17:54:16]Read from MH i2c: E2 0E 00 61 54 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 0D [17:54:16]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [17:54:16]wFMCommunicate OK [17:54:16]SAM_PROTO_GetShiftState done [17:54:16]FM_GetShiftState done [17:54:16]opened in 1717378033 [17:54:16]opened+sec_in_day 1717464433 [17:54:16]quantity*price = 100018 [17:54:16]sum+1 = 100020 [17:54:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 181 03.06.2024 17:54 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68435 ФПД: 238744447800846 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T175422&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68435&fm=238744447800846&tin=02508201610067®Number=0000000000098096&sum=100000 [17:54:17]StoreToDocumentArchive [17:54:17]shift 324 fd 68435 [17:54:17]save to /storage/0324/doc_00068435 [17:54:17]save last doc name /storage/0324/doc_00068435 to /storage/kkm_last_doc_name [17:54:17]save OK [17:54:17]Clear old archive folders... [17:54:17]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:54:17]tlvbuf is B6D67720 [17:54:17]SAM_PROTO_ClearQueue [17:54:17]wFMCommunicate request_size=4 [17:54:17]MH_SAM_APDU [17:54:17]CAPDU: 80 09 00 00 [17:54:17]Write to MH i2c: E2 08 00 6E 54 80 09 00 00 00 00 00 00 34 [17:54:17]Write i2c OK [17:54:17]MH_I2C_Read... [17:54:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:54:17]Read from MH i2c: E2 [17:54:17]MH_I2C_Read... [17:54:17]Read from MH i2c: E2 03 00 [17:54:17]MH_I2C_Read... [17:54:17]Read from MH i2c: E2 03 00 6E 54 00 90 00 36 [17:54:17]RAPDU: 90 00 [17:54:17]wFMCommunicate OK [17:54:17]SAM_PROTO_ClearQueue done [17:54:17]KKMCreateOFDPacket [17:54:17]OFDProtocolAddRootSTLVToBuf [17:54:17]FM_MakeSignedData [17:54:17]FM_MakeSignedData [17:54:17]SAM_PROTO_SignData [17:54:17]wFMCommunicate request_size=4 [17:54:17]MH_SAM_APDU [17:54:17]CAPDU: 80 0D 01 02 [17:54:17]Write to MH i2c: E2 08 00 6F 54 80 0D 01 02 00 00 00 00 3C [17:54:17]Write i2c OK [17:54:17]MH_I2C_Read... [17:54:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:54:17]Read from MH i2c: E2 [17:54:17]MH_I2C_Read... [17:54:17]Read from MH i2c: E2 03 00 [17:54:17]MH_I2C_Read... [17:54:17]Read from MH i2c: E2 03 00 6F 54 00 90 00 37 [17:54:17]RAPDU: 90 00 [17:54:17]wFMCommunicate OK [17:54:17]wFMCommunicate request_size=255 [17:54:17]MH_SAM_APDU [17:54:17]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 34 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B5 00 00 00 F4 03 04 00 4E 03 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 53 0B 01 00 35 04 06 00 [17:54:17]Write to MH i2c: E2 02 01 70 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 34 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B5 00 00 00 F4 03 04 00 4E 03 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 53 0B 01 00 35 04 06 00 00 00 F6 [17:54:17]Write i2c OK [17:54:17]MH_I2C_Read... [17:54:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:54:17]Read from MH i2c: E2 [17:54:17]MH_I2C_Read... [17:54:17]Read from MH i2c: E2 03 00 [17:54:17]MH_I2C_Read... [17:54:17]Read from MH i2c: E2 03 00 70 54 00 90 00 38 [17:54:17]RAPDU: 90 00 [17:54:17]wFMCommunicate OK [17:54:17]wFMCommunicate request_size=11 [17:54:17]MH_SAM_APDU [17:54:17]CAPDU: 80 0D 02 02 06 D9 23 06 00 D6 0E [17:54:17]Write to MH i2c: E2 0E 00 71 54 80 0D 02 02 06 00 D9 23 06 00 D6 0E 00 00 31 [17:54:17]Write i2c OK [17:54:17]MH_I2C_Read... [17:54:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:54:17]Read from MH i2c: E2 [17:54:17]MH_I2C_Read... [17:54:17]Read from MH i2c: E2 03 00 [17:54:17]MH_I2C_Read... [17:54:17]Read from MH i2c: E2 03 00 71 54 00 90 00 39 [17:54:17]RAPDU: 90 00 [17:54:17]wFMCommunicate OK [17:54:17]wFMCommunicate request_size=4 [17:54:17]MH_SAM_APDU [17:54:17]CAPDU: 80 0D 03 02 [17:54:17]Write to MH i2c: E2 08 00 72 54 80 0D 03 02 00 00 00 00 41 [17:54:17]Write i2c OK [17:54:17]MH_I2C_Read... [17:54:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:54:17]Read from MH i2c: E2 [17:54:17]MH_I2C_Read... [17:54:17]Read from MH i2c: E2 0B 00 [17:54:17]MH_I2C_Read... [17:54:17]Read from MH i2c: E2 0B 00 72 54 00 C4 E1 5D A9 94 4A 1A F2 90 00 D7 [17:54:17]RAPDU: C4 E1 5D A9 94 4A 1A F2 90 00 [17:54:17]wFMCommunicate OK [17:54:17]SAM_PROTO_SignData done [17:54:17]FM_MakeSignedData done [17:54:17]CreateOFDProtocolMessage [17:54:17]wFMCommunicate request_size=4 [17:54:17]MH_SAM_APDU [17:54:17]CAPDU: 80 11 00 00 [17:54:17]Write to MH i2c: E2 08 00 73 54 80 11 00 00 00 00 00 00 41 [17:54:17]Write i2c OK [17:54:17]MH_I2C_Read... [17:54:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:54:17]Read from MH i2c: E2 [17:54:17]MH_I2C_Read... [17:54:17]Read from MH i2c: E2 17 00 [17:54:17]MH_I2C_Read... [17:54:17]Read from MH i2c: E2 17 00 73 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 8C [17:54:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [17:54:17]wFMCommunicate OK [17:54:17]CreateOFDProtocolMessage done [17:54:17]OFDSenderStorePacket 68435 [17:54:17]StoreOFDPacket docnum=68435 [17:54:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 10 20 08 01 3A AE 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 34 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B5 00 00 00 F4 03 04 00 4E 03 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 53 0B 01 00 35 04 06 00 D9 23 06 00 D6 0E C4 E1 5D A9 94 4A 1A F2 [17:54:17]CheckFolder [17:54:17]dirname=/storage/ofd_packets [17:54:17]CheckFolder done [17:54:17]ProducePacketName [17:54:17]name=ofd_packets/00068435 [17:54:17]NVStorageSaveData ofd_packets/00068435 [17:54:17]File name is /storage/ofd_packets/00068435 [17:54:17]Write 302 bytes [17:54:17]NVStorageSaveData done [17:54:17]OFDSenderStorePacket done [17:54:17]KKMCreateOFDPacket done [17:54:17]NVStorageSaveData kkm_last_timestamp [17:54:17]File name is /storage/kkm_last_timestamp [17:54:17]Write 4 bytes [17:54:17]NVStorageSaveData done [17:54:17]ExternCall_PrintAddStr [17:54:17]wPrintStart [17:54:17]Write to MH i2c: 01 00 00 74 54 C8 [17:54:17]Write i2c OK [17:54:17]MH_I2C_Read... [17:54:17]Read from MH i2c: 01 [17:54:17]MH_I2C_Read... [17:54:17]Read from MH i2c: 01 07 00 [17:54:17]MH_I2C_Read... [17:54:17]Read from MH i2c: 01 07 00 74 54 00 00 00 00 00 FF 0F DD [17:54:17]RasterBufferAndPrint [17:54:17]line Счет N : (1)706535 [17:54:17]line ИНН: 02508201610067 [17:54:17]line Контрольно-Кассовый Чек [17:54:17]line ПРОДАЖА [17:54:17]line ТРК (МРК, ГНК) : 61 [17:54:17]line Товар: 2710194210 [17:54:17]line ДТ(л)-К-4 [17:54:17]line 13.720 * 72.90 [17:54:17]line = 1000.19 [17:54:17]line НДС 12% НСП 1% [17:54:17]line > о реализуемом товаре [17:54:17]line ОКРУГЛЕНИЕ: -0.19 [17:54:17]line ИТОГО: 1000.00 [17:54:17]line Внесено: 1000.00 [17:54:17]line СДАЧА: 0.00 [17:54:17]line НСП 1% : 8.85 [17:54:17]line НДС 12% : 106.21 [17:54:17]line Наличными: 1000.00 [17:54:17]line Безнал.: 0.00 [17:54:17]line Место: АЗС № 62 "Партнер Нефть" [17:54:17]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [17:54:17]line СНО: Общий режим [17:54:17]line Чек 181 03.06.2024 17:54 [17:54:17]line Смена: 324 ФФД: 1.0 [17:54:17]line ЗНМ: 0300000181 [17:54:17]line РНМ: 0000000000098096 [17:54:17]line Версия ККМ: 001 [17:54:17]line ФМ: 0000000000965400 [17:54:17]line ФД: 68435 [17:54:17]line ФПД: 238744447800846 [17:54:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T175422&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68435&fm=238744447800846&tin=02508201610067®Number=0000000000098096&sum=100000 [17:54:18]OFD Sender: Processing packet 68435 [packets to send 26, broken 25] [17:54:18]ProducePacketName [17:54:18]name=ofd_packets/00068435 [17:54:18]OFD Sender: To server: pG, [17:54:18]CommunicateWithHost lk.salyk.kg:30040 [17:54:18]ConnectInit lk.salyk.kg [17:54:18]written 0, free lines is 4095 [17:54:18]Connected sock=7 [17:54:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 10 20 08 01 3A AE 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 34 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B5 00 00 00 F4 03 04 00 4E 03 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 53 0B 01 00 35 04 06 00 D9 23 06 00 D6 0E C4 E1 5D A9 94 4A 1A F2 [17:54:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 7C 8D 47 00 1F 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 53 0B 01 00 F4 03 04 00 49 AA 5D 66 B6 04 01 00 00 EF 68 4C 37 98 9F 16 02 [17:54:18]CommunicateWithHost err = 0 [17:54:18]CheckOFDResponse [17:54:18]1017 (14) - 77093643461234 [17:54:18]1041 (16) - 0000000000965400 [17:54:18]1040 (4) - 68435 [17:54:18]1012 (4) - 03.06.2024 11:34 [17:54:18]1206 (1) - 0 [17:54:18]OFD Sender: Remove packet 68435 [17:54:18]ProducePacketName [17:54:18]name=ofd_packets/00068435 [17:54:18]NVStorageDeleteData [17:54:18]Write to MH i2c: 01 00 00 9F 54 F3 [17:54:18]Write i2c OK [17:54:18]MH_I2C_Read... [17:54:18]Read from MH i2c: 01 [17:54:18]MH_I2C_Read... [17:54:18]Read from MH i2c: 01 07 00 [17:54:18]MH_I2C_Read... [17:54:18]Read from MH i2c: 01 07 00 9F 54 00 00 00 00 00 D9 0C DF [17:54:18]RasterBufferAndPrint [17:54:18]line [17:54:18]line [17:54:18]line [17:54:18]line [17:54:18]line [17:54:18]written 0, free lines is 3296 [17:54:18]MH_Cut [17:54:18]Write to MH i2c: D1 01 00 A6 54 01 CC [17:54:18]Write i2c OK [17:54:18]MH_I2C_Read... [17:54:18]Read from MH i2c: D1 [17:54:18]MH_I2C_Read... [17:54:18]Read from MH i2c: D1 01 00 [17:54:18]MH_I2C_Read... [17:54:18]Read from MH i2c: D1 01 00 A6 54 00 CB [17:54:18]Write to MH i2c: 01 00 00 A7 54 FB [17:54:18]Write i2c OK [17:54:18]MH_I2C_Read... [17:54:18]OFD Sender: No OFD packet to send [17:54:19]*** Cut start [17:54:19]*** Partial cut [17:54:19]*** CUTSNS_PIN = 1 [17:54:19]*** CUTSNS_PIN = 0 [17:54:19]*** Brake cut motor [17:54:19]Read from MH i2c: 01 [17:54:19]MH_I2C_Read... [17:54:19]*** Stop cut motor [17:54:19]*** Cut end [17:54:19]Read from MH i2c: 01 07 00 [17:54:19]MH_I2C_Read... [17:54:19]Read from MH i2c: 01 07 00 A7 54 00 00 00 00 00 FF 0F 10 [17:54:19]process_action close_receipt done [17:54:19]requested_data is exist [17:54:19]produce_requested_data [17:54:19]requested_item fm.sn is exist - process it [17:54:19]wFMCommunicate request_size=4 [17:54:19]MH_SAM_APDU [17:54:19]CAPDU: 80 11 00 00 [17:54:19]Write to MH i2c: E2 08 00 A8 54 80 11 00 00 00 00 00 00 76 [17:54:19]Write i2c OK [17:54:19]MH_I2C_Read... [17:54:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:54:19]Read from MH i2c: E2 [17:54:19]MH_I2C_Read... [17:54:19]Read from MH i2c: E2 17 00 [17:54:19]MH_I2C_Read... [17:54:19]Read from MH i2c: E2 17 00 A8 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 C1 [17:54:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [17:54:20]wFMCommunicate OK [17:54:20]requested_item fd.num is exist - process it [17:54:20]SAM_PROTO_GetFieldsCounters [17:54:20]wFMCommunicate request_size=4 [17:54:20]MH_SAM_APDU [17:54:20]CAPDU: 80 13 00 00 [17:54:20]Write to MH i2c: E2 08 00 A9 54 80 13 00 00 00 00 00 00 79 [17:54:20]Write i2c OK [17:54:20]MH_I2C_Read... [17:54:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:54:20]Read from MH i2c: E2 [17:54:20]MH_I2C_Read... [17:54:20]Read from MH i2c: E2 62 00 [17:54:20]MH_I2C_Read... [17:54:20]Read from MH i2c: E2 62 00 A9 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 53 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 5C [17:54:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 53 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:54:20]wFMCommunicate OK [17:54:20]SAM_PROTO_GetFieldsCounters done [17:54:20]requested_item shift.num is exist - process it [17:54:20]requested_item shift.opened is exist - process it [17:54:20]req_shift_opened [17:54:20]FM_GetShiftState [17:54:20]SAM_PROTO_GetShiftState [17:54:20]wFMCommunicate request_size=4 [17:54:20]MH_SAM_APDU [17:54:20]CAPDU: 80 13 01 00 [17:54:20]Write to MH i2c: E2 08 00 AA 54 80 13 01 00 00 00 00 00 7B [17:54:20]Write i2c OK [17:54:20]MH_I2C_Read... [17:54:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:54:20]Read from MH i2c: E2 [17:54:20]MH_I2C_Read... [17:54:20]Read from MH i2c: E2 0E 00 [17:54:20]MH_I2C_Read... [17:54:20]Read from MH i2c: E2 0E 00 AA 54 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 56 [17:54:20]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [17:54:20]wFMCommunicate OK [17:54:20]SAM_PROTO_GetShiftState done [17:54:20]FM_GetShiftState done [17:54:20]req_shift_opened done [17:54:20]requested_item shift.open_date is exist - process it [17:54:20]req_shift_open_date [17:54:20]req_shift_open_date done [17:54:20]produce_requested_data done [17:54:20]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68435,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [17:54:20]process_action_free close_receipt [17:54:20]json_value_free [17:54:20]json_value_free done [17:54:20]process_json_proto returns [17:54:20]Send response to host [17:54:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68435,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [17:54:20]free response buf [17:54:20]execute_script done [17:54:20]execute_script returns [17:54:20]free content buf [17:54:20]Sock 6.Close socket [17:54:20]Sock 6.Thread stoped [17:54:23]OFD Sender: No OFD packet to send [17:54:28]OFD Sender: No OFD packet to send [17:54:33]OFD Sender: No OFD packet to send [17:54:38]OFD Sender: No OFD packet to send [17:54:43]OFD Sender: No OFD packet to send [17:54:48]OFD Sender: No OFD packet to send [17:54:53]OFD Sender: No OFD packet to send [17:54:58]OFD Sender: No OFD packet to send [17:55:03]OFD Sender: No OFD packet to send [17:55:08]OFD Sender: No OFD packet to send [17:55:13]OFD Sender: No OFD packet to send [17:55:18]OFD Sender: No OFD packet to send [17:55:23]OFD Sender: No OFD packet to send [17:55:28]OFD Sender: No OFD packet to send [17:55:33]OFD Sender: No OFD packet to send [17:55:38]OFD Sender: No OFD packet to send [17:55:43]OFD Sender: No OFD packet to send [17:55:48]OFD Sender: No OFD packet to send [17:55:53]OFD Sender: No OFD packet to send [17:55:58]OFD Sender: No OFD packet to send [17:56:03]OFD Sender: No OFD packet to send [17:56:08]OFD Sender: No OFD packet to send [17:56:13]OFD Sender: No OFD packet to send [17:56:18]OFD Sender: No OFD packet to send [17:56:23]OFD Sender: No OFD packet to send [17:56:28]OFD Sender: No OFD packet to send [17:56:33]OFD Sender: No OFD packet to send [17:56:38]OFD Sender: No OFD packet to send [17:56:43]OFD Sender: No OFD packet to send [17:56:48]OFD Sender: No OFD packet to send [17:56:53]OFD Sender: No OFD packet to send [17:56:58]OFD Sender: No OFD packet to send [17:57:03]OFD Sender: No OFD packet to send [17:57:08]OFD Sender: No OFD packet to send [17:57:13]OFD Sender: No OFD packet to send [17:57:18]OFD Sender: No OFD packet to send [17:57:23]OFD Sender: No OFD packet to send [17:57:28]OFD Sender: No OFD packet to send [17:57:33]OFD Sender: No OFD packet to send [17:57:38]OFD Sender: No OFD packet to send [17:57:44]OFD Sender: No OFD packet to send [17:57:49]OFD Sender: No OFD packet to send [17:57:54]OFD Sender: No OFD packet to send [17:57:59]OFD Sender: No OFD packet to send [17:58:04]OFD Sender: No OFD packet to send [17:58:09]OFD Sender: No OFD packet to send [17:58:14]OFD Sender: No OFD packet to send [17:58:19]OFD Sender: No OFD packet to send [17:58:24]OFD Sender: No OFD packet to send [17:58:29]OFD Sender: No OFD packet to send [17:58:34]OFD Sender: No OFD packet to send [17:58:39]OFD Sender: No OFD packet to send [17:58:44]OFD Sender: No OFD packet to send [17:58:49]OFD Sender: No OFD packet to send [17:58:54]OFD Sender: No OFD packet to send [17:58:59]OFD Sender: No OFD packet to send [17:59:04]OFD Sender: No OFD packet to send [17:59:09]OFD Sender: No OFD packet to send [17:59:14]OFD Sender: No OFD packet to send [17:59:19]OFD Sender: No OFD packet to send [17:59:24]OFD Sender: No OFD packet to send [17:59:29]OFD Sender: No OFD packet to send [17:59:34]OFD Sender: No OFD packet to send [17:59:39]OFD Sender: No OFD packet to send [17:59:44]OFD Sender: No OFD packet to send [17:59:49]OFD Sender: No OFD packet to send [17:59:54]OFD Sender: No OFD packet to send [17:59:59]OFD Sender: No OFD packet to send [18:00:04]OFD Sender: No OFD packet to send [18:00:09]OFD Sender: No OFD packet to send [18:00:14]OFD Sender: No OFD packet to send [18:00:19]OFD Sender: No OFD packet to send [18:00:24]OFD Sender: No OFD packet to send [18:00:29]OFD Sender: No OFD packet to send [18:00:34]OFD Sender: No OFD packet to send [18:00:39]OFD Sender: No OFD packet to send [18:00:44]OFD Sender: No OFD packet to send [18:00:49]OFD Sender: No OFD packet to send [18:00:54]OFD Sender: No OFD packet to send [18:00:59]OFD Sender: No OFD packet to send [18:01:04]OFD Sender: No OFD packet to send [18:01:09]OFD Sender: No OFD packet to send [18:01:14]OFD Sender: No OFD packet to send [18:01:19]OFD Sender: No OFD packet to send [18:01:24]OFD Sender: No OFD packet to send [18:01:29]OFD Sender: No OFD packet to send [18:01:34]OFD Sender: No OFD packet to send [18:01:39]OFD Sender: No OFD packet to send [18:01:44]OFD Sender: No OFD packet to send [18:01:49]OFD Sender: No OFD packet to send [18:01:54]OFD Sender: No OFD packet to send [18:01:59]OFD Sender: No OFD packet to send [18:02:04]OFD Sender: No OFD packet to send [18:02:09]OFD Sender: No OFD packet to send [18:02:14]OFD Sender: No OFD packet to send [18:02:19]OFD Sender: No OFD packet to send [18:02:24]OFD Sender: No OFD packet to send [18:02:29]OFD Sender: No OFD packet to send [18:02:34]OFD Sender: No OFD packet to send [18:02:39]OFD Sender: No OFD packet to send [18:02:44]OFD Sender: No OFD packet to send [18:02:49]OFD Sender: No OFD packet to send [18:02:54]OFD Sender: No OFD packet to send [18:02:59]OFD Sender: No OFD packet to send [18:03:04]OFD Sender: No OFD packet to send [18:03:09]OFD Sender: No OFD packet to send [18:03:14]OFD Sender: No OFD packet to send [18:03:19]OFD Sender: No OFD packet to send [18:03:24]OFD Sender: No OFD packet to send [18:03:29]OFD Sender: No OFD packet to send [18:03:34]OFD Sender: No OFD packet to send [18:03:39]OFD Sender: No OFD packet to send [18:03:44]OFD Sender: No OFD packet to send [18:03:48]accept exits with 5 [18:03:48]New connection [18:03:48]New thread 3066543460 created [18:03:48]Thread 3066686820 joined [18:03:48]Waiting for new connection... [18:03:48] Sock 5.Parse request [18:03:48]Sock 5.Check first char [18:03:48]Sock 5.First char is OK [18:03:48]request: POST /json_proto HTTP/1.0 [18:03:48]Method: POST [18:03:48]URL: /json_proto [18:03:48]Method is POST - this is cgi request [18:03:48]url: /json_proto [18:03:48]query_string will be loaded in cgi processing [18:03:48]execute_cgi json_proto POST (null) [18:03:48]execute_cgi path=json_proto method=POST [18:03:48]POST find Content-Length [18:03:48]Host: 172.17.36.132:8080 [18:03:48]Content-Length: 687 [18:03:48]Content-Type: application/json [18:03:48] [18:03:48]POST finish read [18:03:48]Found Content-Length = 687 [18:03:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706537", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:03:48]execute_script... [18:03:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706537", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 13.720, "sum" : 1000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:03:48]POST & json_proto [18:03:48]process_json_proto [18:03:48]json parsed OK: [18:03:48]protocol is kg_v1.0 [18:03:48]action value=close_receipt [18:03:48]process_action close_receipt [18:03:48]cmd_close_receipt [18:03:48]MH_GetDate [18:03:48]Write to MH i2c: F0 00 00 AB 54 EE [18:03:48]Write i2c OK [18:03:48]MH_I2C_Read... [18:03:48]Read from MH i2c: F0 [18:03:48]MH_I2C_Read... [18:03:48]Read from MH i2c: F0 09 00 [18:03:48]MH_I2C_Read... [18:03:48]Read from MH i2c: F0 09 00 AB 54 00 8B 05 5E 66 B2 22 B0 64 33 [18:03:48]GetLastDocTimeStamp 1717437262 [18:03:48]current date 1717437835 [18:03:48]FM_GetShiftState [18:03:48]SAM_PROTO_GetShiftState [18:03:48]wFMCommunicate request_size=4 [18:03:48]MH_SAM_APDU [18:03:48]CAPDU: 80 13 01 00 [18:03:48]Write to MH i2c: E2 08 00 AC 54 80 13 01 00 00 00 00 00 7D [18:03:48]Write i2c OK [18:03:48]MH_I2C_Read... [18:03:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:48]Read from MH i2c: E2 [18:03:48]MH_I2C_Read... [18:03:48]Read from MH i2c: E2 0E 00 [18:03:48]MH_I2C_Read... [18:03:48]Read from MH i2c: E2 0E 00 AC 54 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 58 [18:03:48]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [18:03:48]wFMCommunicate OK [18:03:48]SAM_PROTO_GetShiftState done [18:03:48]FM_GetShiftState done [18:03:48]opened in 1717378033 [18:03:48]opened+sec_in_day 1717464433 [18:03:48]quantity*price = 100018 [18:03:48]sum+1 = 100020 [18:03:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 182 03.06.2024 18:03 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68436 ФПД: 28210641158742 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T180355&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68436&fm=28210641158742&tin=02508201610067®Number=0000000000098096&sum=100000 [18:03:50]StoreToDocumentArchive [18:03:50]shift 324 fd 68436 [18:03:50]save to /storage/0324/doc_00068436 [18:03:50]save last doc name /storage/0324/doc_00068436 to /storage/kkm_last_doc_name [18:03:50]save OK [18:03:50]Clear old archive folders... [18:03:50]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:03:50]tlvbuf is 003A15C0 [18:03:50]SAM_PROTO_ClearQueue [18:03:50]wFMCommunicate request_size=4 [18:03:50]MH_SAM_APDU [18:03:50]CAPDU: 80 09 00 00 [18:03:50]Write to MH i2c: E2 08 00 B9 54 80 09 00 00 00 00 00 00 7F [18:03:50]Write i2c OK [18:03:50]MH_I2C_Read... [18:03:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:03:50]Read from MH i2c: E2 [18:03:50]MH_I2C_Read... [18:03:50]Read from MH i2c: E2 03 00 [18:03:50]MH_I2C_Read... [18:03:50]Read from MH i2c: E2 03 00 B9 54 00 90 00 81 [18:03:50]RAPDU: 90 00 [18:03:50]wFMCommunicate OK [18:03:50]SAM_PROTO_ClearQueue done [18:03:50]KKMCreateOFDPacket [18:03:50]OFDProtocolAddRootSTLVToBuf [18:03:50]FM_MakeSignedData [18:03:50]FM_MakeSignedData [18:03:50]SAM_PROTO_SignData [18:03:50]wFMCommunicate request_size=4 [18:03:50]MH_SAM_APDU [18:03:50]CAPDU: 80 0D 01 02 [18:03:50]Write to MH i2c: E2 08 00 BA 54 80 0D 01 02 00 00 00 00 87 [18:03:50]Write i2c OK [18:03:50]MH_I2C_Read... [18:03:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:03:50]Read from MH i2c: E2 [18:03:50]MH_I2C_Read... [18:03:50]Read from MH i2c: E2 03 00 [18:03:50]MH_I2C_Read... [18:03:50]Read from MH i2c: E2 03 00 BA 54 00 90 00 82 [18:03:50]RAPDU: 90 00 [18:03:50]wFMCommunicate OK [18:03:50]wFMCommunicate request_size=255 [18:03:50]MH_SAM_APDU [18:03:50]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 34 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B6 00 00 00 F4 03 04 00 8B 05 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 54 0B 01 00 35 04 06 00 [18:03:50]Write to MH i2c: E2 02 01 BB 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 34 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B6 00 00 00 F4 03 04 00 8B 05 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 54 0B 01 00 35 04 06 00 00 00 82 [18:03:50]Write i2c OK [18:03:50]MH_I2C_Read... [18:03:50]Read from MH i2c: E2 [18:03:50]MH_I2C_Read... [18:03:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:50]Read from MH i2c: E2 03 00 [18:03:50]MH_I2C_Read... [18:03:50]Read from MH i2c: E2 03 00 BB 54 00 90 00 83 [18:03:50]RAPDU: 90 00 [18:03:50]wFMCommunicate OK [18:03:50]wFMCommunicate request_size=11 [18:03:50]MH_SAM_APDU [18:03:50]CAPDU: 80 0D 02 02 06 19 A8 4D 3E C2 56 [18:03:50]Write to MH i2c: E2 0E 00 BC 54 80 0D 02 02 06 00 19 A8 4D 3E C2 56 00 00 FA [18:03:50]Write i2c OK [18:03:50]MH_I2C_Read... [18:03:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:03:50]Read from MH i2c: E2 [18:03:50]MH_I2C_Read... [18:03:50]Read from MH i2c: E2 03 00 [18:03:50]MH_I2C_Read... [18:03:50]Read from MH i2c: E2 03 00 BC 54 00 90 00 84 [18:03:50]RAPDU: 90 00 [18:03:50]wFMCommunicate OK [18:03:50]wFMCommunicate request_size=4 [18:03:50]MH_SAM_APDU [18:03:50]CAPDU: 80 0D 03 02 [18:03:50]Write to MH i2c: E2 08 00 BD 54 80 0D 03 02 00 00 00 00 8C [18:03:50]Write i2c OK [18:03:50]MH_I2C_Read... [18:03:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:03:50]Read from MH i2c: E2 [18:03:50]MH_I2C_Read... [18:03:50]Read from MH i2c: E2 0B 00 [18:03:50]MH_I2C_Read... [18:03:50]Read from MH i2c: E2 0B 00 BD 54 00 4E 6E 1A 57 0A 22 49 3A 90 00 69 [18:03:50]RAPDU: 4E 6E 1A 57 0A 22 49 3A 90 00 [18:03:50]wFMCommunicate OK [18:03:50]SAM_PROTO_SignData done [18:03:50]FM_MakeSignedData done [18:03:50]CreateOFDProtocolMessage [18:03:50]wFMCommunicate request_size=4 [18:03:50]MH_SAM_APDU [18:03:50]CAPDU: 80 11 00 00 [18:03:50]Write to MH i2c: E2 08 00 BE 54 80 11 00 00 00 00 00 00 8C [18:03:50]Write i2c OK [18:03:50]MH_I2C_Read... [18:03:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:50]Read from MH i2c: E2 [18:03:50]MH_I2C_Read... [18:03:50]Read from MH i2c: E2 17 00 [18:03:50]MH_I2C_Read... [18:03:50]Read from MH i2c: E2 17 00 BE 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 D7 [18:03:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [18:03:50]wFMCommunicate OK [18:03:50]CreateOFDProtocolMessage done [18:03:50]OFDSenderStorePacket 68436 [18:03:50]StoreOFDPacket docnum=68436 [18:03:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 B0 49 08 01 EA 1A 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 34 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B6 00 00 00 F4 03 04 00 8B 05 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 54 0B 01 00 35 04 06 00 19 A8 4D 3E C2 56 4E 6E 1A 57 0A 22 49 3A [18:03:50]CheckFolder [18:03:50]dirname=/storage/ofd_packets [18:03:50]CheckFolder done [18:03:50]ProducePacketName [18:03:50]name=ofd_packets/00068436 [18:03:50]NVStorageSaveData ofd_packets/00068436 [18:03:50]File name is /storage/ofd_packets/00068436 [18:03:50]Write 302 bytes [18:03:50]NVStorageSaveData done [18:03:50]OFDSenderStorePacket done [18:03:50]KKMCreateOFDPacket done [18:03:50]NVStorageSaveData kkm_last_timestamp [18:03:50]File name is /storage/kkm_last_timestamp [18:03:50]Write 4 bytes [18:03:50]NVStorageSaveData done [18:03:50]ExternCall_PrintAddStr [18:03:50]wPrintStart [18:03:50]Write to MH i2c: 01 00 00 BF 54 13 [18:03:50]Write i2c OK [18:03:50]MH_I2C_Read... [18:03:50]Read from MH i2c: 01 [18:03:50]MH_I2C_Read... [18:03:50]Read from MH i2c: 01 07 00 [18:03:50]MH_I2C_Read... [18:03:50]Read from MH i2c: 01 07 00 BF 54 00 00 00 00 00 FF 0F 28 [18:03:50]RasterBufferAndPrint [18:03:50]line Счет N : (1)706537 [18:03:50]line ИНН: 02508201610067 [18:03:50]line Контрольно-Кассовый Чек [18:03:50]line ПРОДАЖА [18:03:50]line ТРК (МРК, ГНК) : 11 [18:03:50]line Товар: 2710194210 [18:03:50]line ДТ(л)-К-4 [18:03:50]line 13.720 * 72.90 [18:03:50]line = 1000.19 [18:03:50]line НДС 12% НСП 1% [18:03:50]line > о реализуемом товаре [18:03:50]line ОКРУГЛЕНИЕ: -0.19 [18:03:50]line ИТОГО: 1000.00 [18:03:50]line Внесено: 1000.00 [18:03:50]line СДАЧА: 0.00 [18:03:50]line НСП 1% : 8.85 [18:03:50]line НДС 12% : 106.21 [18:03:50]line Наличными: 1000.00 [18:03:50]line Безнал.: 0.00 [18:03:50]line Место: АЗС № 62 "Партнер Нефть" [18:03:50]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [18:03:50]line СНО: Общий режим [18:03:50]line Чек 182 03.06.2024 18:03 [18:03:50]line Смена: 324 ФФД: 1.0 [18:03:50]line ЗНМ: 0300000181 [18:03:50]line РНМ: 0000000000098096 [18:03:50]line Версия ККМ: 001 [18:03:50]line ФМ: 0000000000965400 [18:03:50]line ФД: 68436 [18:03:50]line ФПД: 28210641158742 [18:03:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T180355&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68436&fm=28210641158742&tin=02508201610067®Number=0000000000098096&sum=100000 [18:03:50]OFD Sender: Processing packet 68436 [packets to send 26, broken 25] [18:03:50]ProducePacketName [18:03:50]name=ofd_packets/00068436 [18:03:50]OFD Sender: To server: pG, [18:03:50]CommunicateWithHost lk.salyk.kg:30040 [18:03:50]ConnectInit lk.salyk.kg [18:03:50]written 0, free lines is 4095 [18:03:50]Connected sock=7 [18:03:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 B0 49 08 01 EA 1A 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 34 FF 03 08 00 03 98 35 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 B3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B6 00 00 00 F4 03 04 00 8B 05 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 54 0B 01 00 35 04 06 00 19 A8 4D 3E C2 56 4E 6E 1A 57 0A 22 49 3A [18:03:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 39 AD 47 00 AF 41 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 54 0B 01 00 F4 03 04 00 86 AC 5D 66 B6 04 01 00 00 D8 E0 6C 6A F5 B9 25 B9 [18:03:51]CommunicateWithHost err = 0 [18:03:51]CheckOFDResponse [18:03:51]1017 (14) - 77093643461234 [18:03:51]1041 (16) - 0000000000965400 [18:03:51]1040 (4) - 68436 [18:03:51]1012 (4) - 03.06.2024 11:44 [18:03:51]1206 (1) - 0 [18:03:51]OFD Sender: Remove packet 68436 [18:03:51]ProducePacketName [18:03:51]name=ofd_packets/00068436 [18:03:51]NVStorageDeleteData [18:03:51]Write to MH i2c: 01 00 00 EA 54 3E [18:03:51]Write i2c OK [18:03:51]MH_I2C_Read... [18:03:51]Read from MH i2c: 01 [18:03:51]MH_I2C_Read... [18:03:51]Read from MH i2c: 01 07 00 [18:03:51]MH_I2C_Read... [18:03:51]Read from MH i2c: 01 07 00 EA 54 00 00 00 00 00 DA 0C 2B [18:03:51]RasterBufferAndPrint [18:03:51]line [18:03:51]line [18:03:51]line [18:03:51]line [18:03:51]line [18:03:51]written 0, free lines is 3297 [18:03:51]MH_Cut [18:03:51]Write to MH i2c: D1 01 00 F1 54 01 17 [18:03:51]Write i2c OK [18:03:51]MH_I2C_Read... [18:03:51]Read from MH i2c: D1 [18:03:51]MH_I2C_Read... [18:03:51]Read from MH i2c: D1 01 00 [18:03:51]MH_I2C_Read... [18:03:51]Read from MH i2c: D1 01 00 F1 54 00 16 [18:03:51]Write to MH i2c: 01 00 00 F2 54 46 [18:03:51]Write i2c OK [18:03:51]MH_I2C_Read... [18:03:51]OFD Sender: No OFD packet to send [18:03:52]*** Cut start [18:03:52]*** Partial cut [18:03:52]*** CUTSNS_PIN = 1 [18:03:52]*** CUTSNS_PIN = 0 [18:03:52]*** Brake cut motor [18:03:52]Read from MH i2c: 01 [18:03:52]MH_I2C_Read... [18:03:52]*** Stop cut motor [18:03:52]*** Cut end [18:03:52]Read from MH i2c: 01 07 00 [18:03:52]MH_I2C_Read... [18:03:52]Read from MH i2c: 01 07 00 F2 54 00 00 00 00 00 FF 0F 5B [18:03:52]process_action close_receipt done [18:03:52]requested_data is exist [18:03:52]produce_requested_data [18:03:52]requested_item fm.sn is exist - process it [18:03:52]wFMCommunicate request_size=4 [18:03:52]MH_SAM_APDU [18:03:52]CAPDU: 80 11 00 00 [18:03:52]Write to MH i2c: E2 08 00 F3 54 80 11 00 00 00 00 00 00 C1 [18:03:52]Write i2c OK [18:03:52]MH_I2C_Read... [18:03:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:03:52]Read from MH i2c: E2 [18:03:52]MH_I2C_Read... [18:03:52]Read from MH i2c: E2 17 00 [18:03:52]MH_I2C_Read... [18:03:52]Read from MH i2c: E2 17 00 F3 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 0C [18:03:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [18:03:52]wFMCommunicate OK [18:03:52]requested_item fd.num is exist - process it [18:03:52]SAM_PROTO_GetFieldsCounters [18:03:52]wFMCommunicate request_size=4 [18:03:52]MH_SAM_APDU [18:03:52]CAPDU: 80 13 00 00 [18:03:52]Write to MH i2c: E2 08 00 F4 54 80 13 00 00 00 00 00 00 C4 [18:03:52]Write i2c OK [18:03:52]MH_I2C_Read... [18:03:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:03:52]Read from MH i2c: E2 [18:03:52]MH_I2C_Read... [18:03:52]Read from MH i2c: E2 62 00 [18:03:52]MH_I2C_Read... [18:03:52]Read from MH i2c: E2 62 00 F4 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 54 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 AB [18:03:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 54 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:03:52]wFMCommunicate OK [18:03:52]SAM_PROTO_GetFieldsCounters done [18:03:52]requested_item shift.num is exist - process it [18:03:52]requested_item shift.opened is exist - process it [18:03:52]req_shift_opened [18:03:52]FM_GetShiftState [18:03:52]SAM_PROTO_GetShiftState [18:03:52]wFMCommunicate request_size=4 [18:03:52]MH_SAM_APDU [18:03:52]CAPDU: 80 13 01 00 [18:03:52]Write to MH i2c: E2 08 00 F5 54 80 13 01 00 00 00 00 00 C6 [18:03:52]Write i2c OK [18:03:52]MH_I2C_Read... [18:03:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:53]Read from MH i2c: E2 [18:03:53]MH_I2C_Read... [18:03:53]Read from MH i2c: E2 0E 00 [18:03:53]MH_I2C_Read... [18:03:53]Read from MH i2c: E2 0E 00 F5 54 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 A1 [18:03:53]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [18:03:53]wFMCommunicate OK [18:03:53]SAM_PROTO_GetShiftState done [18:03:53]FM_GetShiftState done [18:03:53]req_shift_opened done [18:03:53]requested_item shift.open_date is exist - process it [18:03:53]req_shift_open_date [18:03:53]req_shift_open_date done [18:03:53]produce_requested_data done [18:03:53]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68436,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [18:03:53]process_action_free close_receipt [18:03:53]json_value_free [18:03:53]json_value_free done [18:03:53]process_json_proto returns [18:03:53]Send response to host [18:03:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68436,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [18:03:53]free response buf [18:03:53]execute_script done [18:03:53]execute_script returns [18:03:53]free content buf [18:03:53]Sock 5.Close socket [18:03:53]Sock 5.Thread stoped [18:03:56]OFD Sender: No OFD packet to send [18:03:58]accept exits with 6 [18:03:58]New connection [18:03:58]New thread 3066686820 created [18:03:58]Thread 3066543460 joined [18:03:58]Waiting for new connection... [18:03:58] Sock 6.Parse request [18:03:58]Sock 6.Check first char [18:03:58]Sock 6.First char is OK [18:03:58]request: POST /json_proto HTTP/1.0 [18:03:58]Method: POST [18:03:58]URL: /json_proto [18:03:58]Method is POST - this is cgi request [18:03:58]url: /json_proto [18:03:58]query_string will be loaded in cgi processing [18:03:58]execute_cgi json_proto POST (null) [18:03:58]execute_cgi path=json_proto method=POST [18:03:58]POST find Content-Length [18:03:58]Host: 172.17.36.132:8080 [18:03:58]Content-Length: 678 [18:03:58]Content-Type: application/json [18:03:58] [18:03:58]POST finish read [18:03:58]Found Content-Length = 678 [18:03:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706536", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:03:58]execute_script... [18:03: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)706536", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:03:58]POST & json_proto [18:03:58]process_json_proto [18:03:58]json parsed OK: [18:03:58]protocol is kg_v1.0 [18:03:58]action value=close_receipt [18:03:58]process_action close_receipt [18:03:58]cmd_close_receipt [18:03:58]MH_GetDate [18:03:58]Write to MH i2c: F0 00 00 F6 54 39 [18:03:58]Write i2c OK [18:03:58]MH_I2C_Read... [18:03:58]Read from MH i2c: F0 [18:03:58]MH_I2C_Read... [18:03:58]Read from MH i2c: F0 09 00 [18:03:58]MH_I2C_Read... [18:03:58]Read from MH i2c: F0 09 00 F6 54 00 94 05 5E 66 B2 22 B0 64 87 [18:03:58]GetLastDocTimeStamp 1717437835 [18:03:58]current date 1717437844 [18:03:58]FM_GetShiftState [18:03:58]SAM_PROTO_GetShiftState [18:03:58]wFMCommunicate request_size=4 [18:03:58]MH_SAM_APDU [18:03:58]CAPDU: 80 13 01 00 [18:03:58]Write to MH i2c: E2 08 00 F7 54 80 13 01 00 00 00 00 00 C8 [18:03:58]Write i2c OK [18:03:58]MH_I2C_Read... [18:03:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:03:58]Read from MH i2c: E2 [18:03:58]MH_I2C_Read... [18:03:58]Read from MH i2c: E2 0E 00 [18:03:58]MH_I2C_Read... [18:03:58]Read from MH i2c: E2 0E 00 F7 54 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 A3 [18:03:58]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [18:03:58]wFMCommunicate OK [18:03:58]SAM_PROTO_GetShiftState done [18:03:58]FM_GetShiftState done [18:03:58]opened in 1717378033 [18:03:58]opened+sec_in_day 1717464433 [18:03:58]quantity*price = 70044 [18:03:58]sum+1 = 70045 [18:03:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 183 03.06.2024 18:04 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68437 ФПД: 136965374644442 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T180405&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68437&fm=136965374644442&tin=02508201610067®Number=0000000000098096&sum=70000 [18:03:59]StoreToDocumentArchive [18:03:59]shift 324 fd 68437 [18:03:59]save to /storage/0324/doc_00068437 [18:03:59]save last doc name /storage/0324/doc_00068437 to /storage/kkm_last_doc_name [18:03:59]save OK [18:03:59]Clear old archive folders... [18:03:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:03:59]tlvbuf is 001EDB90 [18:03:59]SAM_PROTO_ClearQueue [18:03:59]wFMCommunicate request_size=4 [18:03:59]MH_SAM_APDU [18:03:59]CAPDU: 80 09 00 00 [18:03:59]Write to MH i2c: E2 08 00 04 55 80 09 00 00 00 00 00 00 CB [18:03:59]Write i2c OK [18:03:59]MH_I2C_Read... [18:03:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:03:59]Read from MH i2c: E2 [18:03:59]MH_I2C_Read... [18:03:59]Read from MH i2c: E2 03 00 [18:03:59]MH_I2C_Read... [18:03:59]Read from MH i2c: E2 03 00 04 55 00 90 00 CD [18:03:59]RAPDU: 90 00 [18:03:59]wFMCommunicate OK [18:03:59]SAM_PROTO_ClearQueue done [18:03:59]KKMCreateOFDPacket [18:03:59]OFDProtocolAddRootSTLVToBuf [18:03:59]FM_MakeSignedData [18:03:59]FM_MakeSignedData [18:03:59]SAM_PROTO_SignData [18:03:59]wFMCommunicate request_size=4 [18:03:59]MH_SAM_APDU [18:03:59]CAPDU: 80 0D 01 02 [18:03:59]Write to MH i2c: E2 08 00 05 55 80 0D 01 02 00 00 00 00 D3 [18:03:59]Write i2c OK [18:03:59]MH_I2C_Read... [18:03:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:03:59]Read from MH i2c: E2 [18:03:59]MH_I2C_Read... [18:03:59]Read from MH i2c: E2 03 00 [18:03:59]MH_I2C_Read... [18:03:59]Read from MH i2c: E2 03 00 05 55 00 90 00 CE [18:03:59]RAPDU: 90 00 [18:03:59]wFMCommunicate OK [18:03:59]wFMCommunicate request_size=255 [18:03:59]MH_SAM_APDU [18:03:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 95 05 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 55 0B 01 00 35 04 06 00 7C [18:03:59]Write to MH i2c: E2 02 01 06 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 95 05 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 55 0B 01 00 35 04 06 00 7C 00 00 A7 [18:03:59]Write i2c OK [18:03:59]MH_I2C_Read... [18:04:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:04:00]Read from MH i2c: E2 [18:04:00]MH_I2C_Read... [18:04:00]Read from MH i2c: E2 03 00 [18:04:00]MH_I2C_Read... [18:04:00]Read from MH i2c: E2 03 00 06 55 00 90 00 CF [18:04:00]RAPDU: 90 00 [18:04:00]wFMCommunicate OK [18:04:00]wFMCommunicate request_size=10 [18:04:00]MH_SAM_APDU [18:04:00]CAPDU: 80 0D 02 02 05 91 BC 80 90 DA [18:04:00]Write to MH i2c: E2 0D 00 07 55 80 0D 02 02 05 00 91 BC 80 90 DA 00 00 17 [18:04:00]Write i2c OK [18:04:00]MH_I2C_Read... [18:04:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:04:00]Read from MH i2c: E2 [18:04:00]MH_I2C_Read... [18:04:00]Read from MH i2c: E2 03 00 [18:04:00]MH_I2C_Read... [18:04:00]Read from MH i2c: E2 03 00 07 55 00 90 00 D0 [18:04:00]RAPDU: 90 00 [18:04:00]wFMCommunicate OK [18:04:00]wFMCommunicate request_size=4 [18:04:00]MH_SAM_APDU [18:04:00]CAPDU: 80 0D 03 02 [18:04:00]Write to MH i2c: E2 08 00 08 55 80 0D 03 02 00 00 00 00 D8 [18:04:00]Write i2c OK [18:04:00]MH_I2C_Read... [18:04:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:04:00]Read from MH i2c: E2 [18:04:00]MH_I2C_Read... [18:04:00]Read from MH i2c: E2 0B 00 [18:04:00]MH_I2C_Read... [18:04:00]Read from MH i2c: E2 0B 00 08 55 00 78 E3 BE 8D DD CF 16 46 90 00 87 [18:04:00]RAPDU: 78 E3 BE 8D DD CF 16 46 90 00 [18:04:00]wFMCommunicate OK [18:04:00]SAM_PROTO_SignData done [18:04:00]FM_MakeSignedData done [18:04:00]CreateOFDProtocolMessage [18:04:00]wFMCommunicate request_size=4 [18:04:00]MH_SAM_APDU [18:04:00]CAPDU: 80 11 00 00 [18:04:00]Write to MH i2c: E2 08 00 09 55 80 11 00 00 00 00 00 00 D8 [18:04:00]Write i2c OK [18:04:00]MH_I2C_Read... [18:04:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:04:00]Read from MH i2c: E2 [18:04:00]MH_I2C_Read... [18:04:00]Read from MH i2c: E2 17 00 [18:04:00]MH_I2C_Read... [18:04:00]Read from MH i2c: E2 17 00 09 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 23 [18:04:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [18:04:00]wFMCommunicate OK [18:04:00]CreateOFDProtocolMessage done [18:04:00]OFDSenderStorePacket 68437 [18:04:00]StoreOFDPacket docnum=68437 [18:04:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 FC 01 07 01 F3 EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 95 05 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 55 0B 01 00 35 04 06 00 7C 91 BC 80 90 DA 78 E3 BE 8D DD CF 16 46 [18:04:00]CheckFolder [18:04:00]dirname=/storage/ofd_packets [18:04:00]CheckFolder done [18:04:00]ProducePacketName [18:04:00]name=ofd_packets/00068437 [18:04:00]NVStorageSaveData ofd_packets/00068437 [18:04:00]File name is /storage/ofd_packets/00068437 [18:04:00]Write 301 bytes [18:04:00]NVStorageSaveData done [18:04:00]OFDSenderStorePacket done [18:04:00]KKMCreateOFDPacket done [18:04:00]NVStorageSaveData kkm_last_timestamp [18:04:00]File name is /storage/kkm_last_timestamp [18:04:00]Write 4 bytes [18:04:00]NVStorageSaveData done [18:04:00]ExternCall_PrintAddStr [18:04:00]wPrintStart [18:04:00]Write to MH i2c: 01 00 00 0A 55 5F [18:04:00]Write i2c OK [18:04:00]MH_I2C_Read... [18:04:00]Read from MH i2c: 01 [18:04:00]MH_I2C_Read... [18:04:00]Read from MH i2c: 01 07 00 [18:04:00]MH_I2C_Read... [18:04:00]Read from MH i2c: 01 07 00 0A 55 00 00 00 00 00 FF 0F 74 [18:04:00]RasterBufferAndPrint [18:04:00]line Счет N : (1)706536 [18:04:00]line ИНН: 02508201610067 [18:04:00]line Контрольно-Кассовый Чек [18:04:00]line ПРОДАЖА [18:04:00]line ТРК (МРК, ГНК) : 42 [18:04:00]line Товар: 2710124130 [18:04:00]line Аи-92-К-4 [18:04:00]line 10.470 * 66.90 [18:04:00]line = 700.44 [18:04:00]line НДС 12% НСП 1% [18:04:00]line > о реализуемом товаре [18:04:00]line ОКРУГЛЕНИЕ: -0.44 [18:04:00]line ИТОГО: 700.00 [18:04:00]line Внесено: 700.00 [18:04:00]line СДАЧА: 0.00 [18:04:00]line НСП 1% : 6.20 [18:04:00]line НДС 12% : 74.38 [18:04:00]line Наличными: 700.00 [18:04:00]line Безнал.: 0.00 [18:04:00]line Место: АЗС № 62 "Партнер Нефть" [18:04:00]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [18:04:00]line СНО: Общий режим [18:04:00]line Чек 183 03.06.2024 18:04 [18:04:00]line Смена: 324 ФФД: 1.0 [18:04:00]line ЗНМ: 0300000181 [18:04:00]line РНМ: 0000000000098096 [18:04:00]line Версия ККМ: 001 [18:04:00]line ФМ: 0000000000965400 [18:04:00]line ФД: 68437 [18:04:00]line ФПД: 136965374644442 [18:04:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T180405&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68437&fm=136965374644442&tin=02508201610067®Number=0000000000098096&sum=70000 [18:04:00]written 0, free lines is 4095 [18:04:00]OFD Sender: Processing packet 68437 [packets to send 26, broken 25] [18:04:00]ProducePacketName [18:04:00]name=ofd_packets/00068437 [18:04:00]OFD Sender: To server: pG, [18:04:00]CommunicateWithHost lk.salyk.kg:30040 [18:04:00]ConnectInit lk.salyk.kg [18:04:00]Connected sock=7 [18:04:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 FC 01 07 01 F3 EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 95 05 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 55 0B 01 00 35 04 06 00 7C 91 BC 80 90 DA 78 E3 BE 8D DD CF 16 46 [18:04:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 67 28 47 00 43 B6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 55 0B 01 00 F4 03 04 00 90 AC 5D 66 B6 04 01 00 00 29 C2 D8 AD ED 0B A8 B9 [18:04:00]CommunicateWithHost err = 0 [18:04:00]CheckOFDResponse [18:04:00]1017 (14) - 77093643461234 [18:04:00]1041 (16) - 0000000000965400 [18:04:00]1040 (4) - 68437 [18:04:00]1012 (4) - 03.06.2024 11:44 [18:04:00]1206 (1) - 0 [18:04:00]OFD Sender: Remove packet 68437 [18:04:00]ProducePacketName [18:04:00]name=ofd_packets/00068437 [18:04:00]NVStorageDeleteData [18:04:00]Write to MH i2c: 01 00 00 35 55 8A [18:04:00]Write i2c OK [18:04:00]MH_I2C_Read... [18:04:00]Read from MH i2c: 01 [18:04:00]MH_I2C_Read... [18:04:00]Read from MH i2c: 01 07 00 [18:04:00]MH_I2C_Read... [18:04:00]Read from MH i2c: 01 07 00 35 55 00 00 00 00 00 F2 0C 8F [18:04:00]RasterBufferAndPrint [18:04:00]line [18:04:00]line [18:04:00]line [18:04:00]line [18:04:00]line [18:04:00]written 0, free lines is 3323 [18:04:00]MH_Cut [18:04:00]Write to MH i2c: D1 01 00 3C 55 01 63 [18:04:00]Write i2c OK [18:04:00]MH_I2C_Read... [18:04:00]Read from MH i2c: D1 [18:04:00]MH_I2C_Read... [18:04:00]Read from MH i2c: D1 01 00 [18:04:00]MH_I2C_Read... [18:04:00]Read from MH i2c: D1 01 00 3C 55 00 62 [18:04:00]Write to MH i2c: 01 00 00 3D 55 92 [18:04:00]Write i2c OK [18:04:00]MH_I2C_Read... [18:04:01]OFD Sender: No OFD packet to send [18:04:01]*** Cut start [18:04:01]*** Partial cut [18:04:01]*** CUTSNS_PIN = 1 [18:04:01]*** CUTSNS_PIN = 0 [18:04:01]*** Brake cut motor [18:04:02]Read from MH i2c: 01 [18:04:02]MH_I2C_Read... [18:04:02]*** Stop cut motor [18:04:02]*** Cut end [18:04:02]Read from MH i2c: 01 07 00 [18:04:02]MH_I2C_Read... [18:04:02]Read from MH i2c: 01 07 00 3D 55 00 00 00 00 00 FF 0F A7 [18:04:02]process_action close_receipt done [18:04:02]requested_data is exist [18:04:02]produce_requested_data [18:04:02]requested_item fm.sn is exist - process it [18:04:02]wFMCommunicate request_size=4 [18:04:02]MH_SAM_APDU [18:04:02]CAPDU: 80 11 00 00 [18:04:02]Write to MH i2c: E2 08 00 3E 55 80 11 00 00 00 00 00 00 0D [18:04:02]Write i2c OK [18:04:02]MH_I2C_Read... [18:04:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:04:02]Read from MH i2c: E2 [18:04:02]MH_I2C_Read... [18:04:02]Read from MH i2c: E2 17 00 [18:04:02]MH_I2C_Read... [18:04:02]Read from MH i2c: E2 17 00 3E 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 58 [18:04:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [18:04:02]wFMCommunicate OK [18:04:02]requested_item fd.num is exist - process it [18:04:02]SAM_PROTO_GetFieldsCounters [18:04:02]wFMCommunicate request_size=4 [18:04:02]MH_SAM_APDU [18:04:02]CAPDU: 80 13 00 00 [18:04:02]Write to MH i2c: E2 08 00 3F 55 80 13 00 00 00 00 00 00 10 [18:04:02]Write i2c OK [18:04:02]MH_I2C_Read... [18:04:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:04:02]Read from MH i2c: E2 [18:04:02]MH_I2C_Read... [18:04:02]Read from MH i2c: E2 62 00 [18:04:02]MH_I2C_Read... [18:04:02]Read from MH i2c: E2 62 00 3F 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 55 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 FB [18:04:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 55 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:04:02]wFMCommunicate OK [18:04:02]SAM_PROTO_GetFieldsCounters done [18:04:02]requested_item shift.num is exist - process it [18:04:02]requested_item shift.opened is exist - process it [18:04:02]req_shift_opened [18:04:02]FM_GetShiftState [18:04:02]SAM_PROTO_GetShiftState [18:04:02]wFMCommunicate request_size=4 [18:04:02]MH_SAM_APDU [18:04:02]CAPDU: 80 13 01 00 [18:04:02]Write to MH i2c: E2 08 00 40 55 80 13 01 00 00 00 00 00 12 [18:04:02]Write i2c OK [18:04:02]MH_I2C_Read... [18:04:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:04:02]Read from MH i2c: E2 [18:04:02]MH_I2C_Read... [18:04:02]Read from MH i2c: E2 0E 00 [18:04:02]MH_I2C_Read... [18:04:02]Read from MH i2c: E2 0E 00 40 55 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 ED [18:04:02]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [18:04:02]wFMCommunicate OK [18:04:02]SAM_PROTO_GetShiftState done [18:04:02]FM_GetShiftState done [18:04:02]req_shift_opened done [18:04:02]requested_item shift.open_date is exist - process it [18:04:02]req_shift_open_date [18:04:02]req_shift_open_date done [18:04:02]produce_requested_data done [18:04:02]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68437,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [18:04:02]process_action_free close_receipt [18:04:02]json_value_free [18:04:02]json_value_free done [18:04:02]process_json_proto returns [18:04:02]Send response to host [18:04:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68437,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [18:04:02]free response buf [18:04:02]execute_script done [18:04:02]execute_script returns [18:04:02]free content buf [18:04:02]Sock 6.Close socket [18:04:02]Sock 6.Thread stoped [18:04:06]OFD Sender: No OFD packet to send [18:04:11]OFD Sender: No OFD packet to send [18:04:16]OFD Sender: No OFD packet to send [18:04:21]OFD Sender: No OFD packet to send [18:04:26]OFD Sender: No OFD packet to send [18:04:31]OFD Sender: No OFD packet to send [18:04:36]OFD Sender: No OFD packet to send [18:04:41]OFD Sender: No OFD packet to send [18:04:46]OFD Sender: No OFD packet to send [18:04:51]OFD Sender: No OFD packet to send [18:04:56]OFD Sender: No OFD packet to send [18:05:01]OFD Sender: No OFD packet to send [18:05:06]OFD Sender: No OFD packet to send [18:05:08]accept exits with 5 [18:05:08]New connection [18:05:08]New thread 3066543460 created [18:05:08]Thread 3066686820 joined [18:05:08]Waiting for new connection... [18:05:08] Sock 5.Parse request [18:05:08]Sock 5.Check first char [18:05:08]Sock 5.First char is OK [18:05:08]request: POST /json_proto HTTP/1.0 [18:05:08]Method: POST [18:05:08]URL: /json_proto [18:05:08]Method is POST - this is cgi request [18:05:08]url: /json_proto [18:05:08]query_string will be loaded in cgi processing [18:05:08]execute_cgi json_proto POST (null) [18:05:08]execute_cgi path=json_proto method=POST [18:05:08]POST find Content-Length [18:05:08]Host: 172.17.36.132:8080 [18:05:08]Content-Length: 677 [18:05:08]Content-Type: application/json [18:05:08] [18:05:08]POST finish read [18:05:08]Found Content-Length = 677 [18:05:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706538", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:05:08]execute_script... [18:05:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706538", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:05:08]POST & json_proto [18:05:08]process_json_proto [18:05:08]json parsed OK: [18:05:08]protocol is kg_v1.0 [18:05:08]action value=close_receipt [18:05:08]process_action close_receipt [18:05:08]cmd_close_receipt [18:05:08]MH_GetDate [18:05:08]Write to MH i2c: F0 00 00 41 55 85 [18:05:08]Write i2c OK [18:05:08]MH_I2C_Read... [18:05:08]Read from MH i2c: F0 [18:05:08]MH_I2C_Read... [18:05:08]Read from MH i2c: F0 09 00 [18:05:08]MH_I2C_Read... [18:05:08]Read from MH i2c: F0 09 00 41 55 00 DA 05 5E 66 B2 22 B0 64 19 [18:05:08]GetLastDocTimeStamp 1717437845 [18:05:08]current date 1717437914 [18:05:08]FM_GetShiftState [18:05:08]SAM_PROTO_GetShiftState [18:05:08]wFMCommunicate request_size=4 [18:05:08]MH_SAM_APDU [18:05:08]CAPDU: 80 13 01 00 [18:05:08]Write to MH i2c: E2 08 00 42 55 80 13 01 00 00 00 00 00 14 [18:05:08]Write i2c OK [18:05:08]MH_I2C_Read... [18:05:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:05:08]Read from MH i2c: E2 [18:05:08]MH_I2C_Read... [18:05:08]Read from MH i2c: E2 0E 00 [18:05:08]MH_I2C_Read... [18:05:08]Read from MH i2c: E2 0E 00 42 55 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 EF [18:05:08]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [18:05:08]wFMCommunicate OK [18:05:08]SAM_PROTO_GetShiftState done [18:05:08]FM_GetShiftState done [18:05:08]opened in 1717378033 [18:05:08]opened+sec_in_day 1717464433 [18:05:08]quantity*price = 30038 [18:05:08]sum+1 = 30039 [18:05:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 184 03.06.2024 18:05 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68438 ФПД: 29524638076685 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T180514&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68438&fm=29524638076685&tin=02508201610067®Number=0000000000098096&sum=30000 [18:05:09]StoreToDocumentArchive [18:05:09]shift 324 fd 68438 [18:05:09]save to /storage/0324/doc_00068438 [18:05:09]save last doc name /storage/0324/doc_00068438 to /storage/kkm_last_doc_name [18:05:09]save OK [18:05:09]Clear old archive folders... [18:05:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:05:09]tlvbuf is 00265750 [18:05:09]SAM_PROTO_ClearQueue [18:05:09]wFMCommunicate request_size=4 [18:05:09]MH_SAM_APDU [18:05:09]CAPDU: 80 09 00 00 [18:05:09]Write to MH i2c: E2 08 00 4F 55 80 09 00 00 00 00 00 00 16 [18:05:09]Write i2c OK [18:05:09]MH_I2C_Read... [18:05:09]Read from MH i2c: E2 [18:05:09]MH_I2C_Read... [18:05:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:05:09]Read from MH i2c: E2 03 00 [18:05:09]MH_I2C_Read... [18:05:09]Read from MH i2c: E2 03 00 4F 55 00 90 00 18 [18:05:09]RAPDU: 90 00 [18:05:09]wFMCommunicate OK [18:05:09]SAM_PROTO_ClearQueue done [18:05:09]KKMCreateOFDPacket [18:05:09]OFDProtocolAddRootSTLVToBuf [18:05:09]FM_MakeSignedData [18:05:09]FM_MakeSignedData [18:05:09]SAM_PROTO_SignData [18:05:09]wFMCommunicate request_size=4 [18:05:09]MH_SAM_APDU [18:05:09]CAPDU: 80 0D 01 02 [18:05:09]Write to MH i2c: E2 08 00 50 55 80 0D 01 02 00 00 00 00 1E [18:05:09]Write i2c OK [18:05:09]MH_I2C_Read... [18:05:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:05:09]Read from MH i2c: E2 [18:05:09]MH_I2C_Read... [18:05:09]Read from MH i2c: E2 03 00 [18:05:09]MH_I2C_Read... [18:05:09]Read from MH i2c: E2 03 00 50 55 00 90 00 19 [18:05:09]RAPDU: 90 00 [18:05:09]wFMCommunicate OK [18:05:09]wFMCommunicate request_size=255 [18:05:09]MH_SAM_APDU [18:05:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 DA 05 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 56 0B 01 00 35 04 06 00 1A [18:05:09]Write to MH i2c: E2 02 01 51 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 DA 05 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 56 0B 01 00 35 04 06 00 1A 00 00 BB [18:05:09]Write i2c OK [18:05:09]MH_I2C_Read... [18:05:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:05:09]Read from MH i2c: E2 [18:05:09]MH_I2C_Read... [18:05:09]Read from MH i2c: E2 03 00 [18:05:09]MH_I2C_Read... [18:05:09]Read from MH i2c: E2 03 00 51 55 00 90 00 1A [18:05:09]RAPDU: 90 00 [18:05:09]wFMCommunicate OK [18:05:09]wFMCommunicate request_size=10 [18:05:09]MH_SAM_APDU [18:05:09]CAPDU: 80 0D 02 02 05 DA 3D 90 8F 0D [18:05:09]Write to MH i2c: E2 0D 00 52 55 80 0D 02 02 05 00 DA 3D 90 8F 0D 00 00 6E [18:05:09]Write i2c OK [18:05:09]MH_I2C_Read... [18:05:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:05:09]Read from MH i2c: E2 [18:05:09]MH_I2C_Read... [18:05:09]Read from MH i2c: E2 03 00 [18:05:09]MH_I2C_Read... [18:05:09]Read from MH i2c: E2 03 00 52 55 00 90 00 1B [18:05:09]RAPDU: 90 00 [18:05:09]wFMCommunicate OK [18:05:09]wFMCommunicate request_size=4 [18:05:09]MH_SAM_APDU [18:05:09]CAPDU: 80 0D 03 02 [18:05:09]Write to MH i2c: E2 08 00 53 55 80 0D 03 02 00 00 00 00 23 [18:05:09]Write i2c OK [18:05:09]MH_I2C_Read... [18:05:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:05:09]Read from MH i2c: E2 [18:05:09]MH_I2C_Read... [18:05:09]Read from MH i2c: E2 0B 00 [18:05:09]MH_I2C_Read... [18:05:09]Read from MH i2c: E2 0B 00 53 55 00 90 8F CA 89 6E BA 13 24 90 00 F5 [18:05:09]RAPDU: 90 8F CA 89 6E BA 13 24 90 00 [18:05:09]wFMCommunicate OK [18:05:09]SAM_PROTO_SignData done [18:05:09]FM_MakeSignedData done [18:05:09]CreateOFDProtocolMessage [18:05:09]wFMCommunicate request_size=4 [18:05:09]MH_SAM_APDU [18:05:09]CAPDU: 80 11 00 00 [18:05:09]Write to MH i2c: E2 08 00 54 55 80 11 00 00 00 00 00 00 23 [18:05:09]Write i2c OK [18:05:09]MH_I2C_Read... [18:05:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:05:09]Read from MH i2c: E2 [18:05:09]MH_I2C_Read... [18:05:09]Read from MH i2c: E2 17 00 [18:05:09]MH_I2C_Read... [18:05:09]Read from MH i2c: E2 17 00 54 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 6E [18:05:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [18:05:09]wFMCommunicate OK [18:05:09]CreateOFDProtocolMessage done [18:05:09]OFDSenderStorePacket 68438 [18:05:09]StoreOFDPacket docnum=68438 [18:05:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 F6 C2 07 01 59 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 DA 05 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 56 0B 01 00 35 04 06 00 1A DA 3D 90 8F 0D 90 8F CA 89 6E BA 13 24 [18:05:09]CheckFolder [18:05:09]dirname=/storage/ofd_packets [18:05:09]CheckFolder done [18:05:09]ProducePacketName [18:05:09]name=ofd_packets/00068438 [18:05:09]NVStorageSaveData ofd_packets/00068438 [18:05:09]File name is /storage/ofd_packets/00068438 [18:05:09]Write 301 bytes [18:05:09]NVStorageSaveData done [18:05:09]OFDSenderStorePacket done [18:05:09]KKMCreateOFDPacket done [18:05:09]NVStorageSaveData kkm_last_timestamp [18:05:09]File name is /storage/kkm_last_timestamp [18:05:09]Write 4 bytes [18:05:09]NVStorageSaveData done [18:05:09]ExternCall_PrintAddStr [18:05:09]wPrintStart [18:05:09]Write to MH i2c: 01 00 00 55 55 AA [18:05:09]Write i2c OK [18:05:09]MH_I2C_Read... [18:05:09]Read from MH i2c: 01 [18:05:09]MH_I2C_Read... [18:05:09]Read from MH i2c: 01 07 00 [18:05:09]MH_I2C_Read... [18:05:09]Read from MH i2c: 01 07 00 55 55 00 00 00 00 00 FF 0F BF [18:05:09]RasterBufferAndPrint [18:05:09]line Счет N : (1)706538 [18:05:09]line ИНН: 02508201610067 [18:05:09]line Контрольно-Кассовый Чек [18:05:09]line ПРОДАЖА [18:05:09]line ТРК (МРК, ГНК) : 32 [18:05:09]line Товар: 2710124130 [18:05:09]line Аи-92-К-4 [18:05:09]line 4.490 * 66.90 [18:05:09]line = 300.38 [18:05:09]line НДС 12% НСП 1% [18:05:09]line > о реализуемом товаре [18:05:09]line ОКРУГЛЕНИЕ: -0.38 [18:05:09]line ИТОГО: 300.00 [18:05:09]line Внесено: 300.00 [18:05:09]line СДАЧА: 0.00 [18:05:09]line НСП 1% : 2.66 [18:05:09]line НДС 12% : 31.90 [18:05:09]line Наличными: 300.00 [18:05:09]line Безнал.: 0.00 [18:05:09]line Место: АЗС № 62 "Партнер Нефть" [18:05:09]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [18:05:09]line СНО: Общий режим [18:05:09]line Чек 184 03.06.2024 18:05 [18:05:09]line Смена: 324 ФФД: 1.0 [18:05:09]line ЗНМ: 0300000181 [18:05:09]line РНМ: 0000000000098096 [18:05:09]line Версия ККМ: 001 [18:05:09]line ФМ: 0000000000965400 [18:05:09]line ФД: 68438 [18:05:09]line ФПД: 29524638076685 [18:05:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T180514&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68438&fm=29524638076685&tin=02508201610067®Number=0000000000098096&sum=30000 [18:05:10]OFD Sender: Processing packet 68438 [packets to send 26, broken 25] [18:05:10]ProducePacketName [18:05:10]name=ofd_packets/00068438 [18:05:10]OFD Sender: To server: pG, [18:05:10]CommunicateWithHost lk.salyk.kg:30040 [18:05:10]ConnectInit lk.salyk.kg [18:05:10]written 0, free lines is 4095 [18:05:10]Connected sock=7 [18:05:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 F6 C2 07 01 59 10 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 DA 05 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 56 0B 01 00 35 04 06 00 1A DA 3D 90 8F 0D 90 8F CA 89 6E BA 13 24 [18:05:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 D8 6E 47 00 5A E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 56 0B 01 00 F4 03 04 00 D5 AC 5D 66 B6 04 01 00 00 A6 74 3B 13 CB 2F BB 73 [18:05:10]CommunicateWithHost err = 0 [18:05:10]CheckOFDResponse [18:05:10]1017 (14) - 77093643461234 [18:05:10]1041 (16) - 0000000000965400 [18:05:10]1040 (4) - 68438 [18:05:10]1012 (4) - 03.06.2024 11:45 [18:05:10]1206 (1) - 0 [18:05:10]OFD Sender: Remove packet 68438 [18:05:10]ProducePacketName [18:05:10]name=ofd_packets/00068438 [18:05:10]NVStorageDeleteData [18:05:10]Write to MH i2c: 01 00 00 80 55 D5 [18:05:10]Write i2c OK [18:05:10]MH_I2C_Read... [18:05:10]Read from MH i2c: 01 [18:05:10]MH_I2C_Read... [18:05:10]Read from MH i2c: 01 07 00 [18:05:10]MH_I2C_Read... [18:05:10]Read from MH i2c: 01 07 00 80 55 00 00 00 00 00 EF 0C D7 [18:05:10]RasterBufferAndPrint [18:05:10]line [18:05:10]line [18:05:10]line [18:05:10]line [18:05:10]line [18:05:10]written 0, free lines is 3317 [18:05:10]MH_Cut [18:05:10]Write to MH i2c: D1 01 00 87 55 01 AE [18:05:10]Write i2c OK [18:05:10]MH_I2C_Read... [18:05:10]Read from MH i2c: D1 [18:05:10]MH_I2C_Read... [18:05:10]Read from MH i2c: D1 01 00 [18:05:10]MH_I2C_Read... [18:05:10]Read from MH i2c: D1 01 00 87 55 00 AD [18:05:10]Write to MH i2c: 01 00 00 88 55 DD [18:05:10]Write i2c OK [18:05:10]MH_I2C_Read... [18:05:10]OFD Sender: No OFD packet to send [18:05:11]*** Cut start [18:05:11]*** Partial cut [18:05:11]*** CUTSNS_PIN = 1 [18:05:11]*** CUTSNS_PIN = 0 [18:05:11]*** Brake cut motor [18:05:11]Read from MH i2c: 01 [18:05:11]MH_I2C_Read... [18:05:11]*** Stop cut motor [18:05:11]*** Cut end [18:05:11]Read from MH i2c: 01 07 00 [18:05:11]MH_I2C_Read... [18:05:11]Read from MH i2c: 01 07 00 88 55 00 00 00 00 00 FF 0F F2 [18:05:11]process_action close_receipt done [18:05:11]requested_data is exist [18:05:11]produce_requested_data [18:05:11]requested_item fm.sn is exist - process it [18:05:11]wFMCommunicate request_size=4 [18:05:11]MH_SAM_APDU [18:05:11]CAPDU: 80 11 00 00 [18:05:11]Write to MH i2c: E2 08 00 89 55 80 11 00 00 00 00 00 00 58 [18:05:11]Write i2c OK [18:05:11]MH_I2C_Read... [18:05:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:05:11]Read from MH i2c: E2 [18:05:11]MH_I2C_Read... [18:05:11]Read from MH i2c: E2 17 00 [18:05:11]MH_I2C_Read... [18:05:11]Read from MH i2c: E2 17 00 89 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 A3 [18:05:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [18:05:11]wFMCommunicate OK [18:05:11]requested_item fd.num is exist - process it [18:05:11]SAM_PROTO_GetFieldsCounters [18:05:11]wFMCommunicate request_size=4 [18:05:11]MH_SAM_APDU [18:05:11]CAPDU: 80 13 00 00 [18:05:11]Write to MH i2c: E2 08 00 8A 55 80 13 00 00 00 00 00 00 5B [18:05:11]Write i2c OK [18:05:11]MH_I2C_Read... [18:05:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:05:12]Read from MH i2c: E2 [18:05:12]MH_I2C_Read... [18:05:12]Read from MH i2c: E2 62 00 [18:05:12]MH_I2C_Read... [18:05:12]Read from MH i2c: E2 62 00 8A 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 56 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 4A [18:05:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 56 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:05:12]wFMCommunicate OK [18:05:12]SAM_PROTO_GetFieldsCounters done [18:05:12]requested_item shift.num is exist - process it [18:05:12]requested_item shift.opened is exist - process it [18:05:12]req_shift_opened [18:05:12]FM_GetShiftState [18:05:12]SAM_PROTO_GetShiftState [18:05:12]wFMCommunicate request_size=4 [18:05:12]MH_SAM_APDU [18:05:12]CAPDU: 80 13 01 00 [18:05:12]Write to MH i2c: E2 08 00 8B 55 80 13 01 00 00 00 00 00 5D [18:05:12]Write i2c OK [18:05:12]MH_I2C_Read... [18:05:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:05:12]Read from MH i2c: E2 [18:05:12]MH_I2C_Read... [18:05:12]Read from MH i2c: E2 0E 00 [18:05:12]MH_I2C_Read... [18:05:12]Read from MH i2c: E2 0E 00 8B 55 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 38 [18:05:12]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [18:05:12]wFMCommunicate OK [18:05:12]SAM_PROTO_GetShiftState done [18:05:12]FM_GetShiftState done [18:05:12]req_shift_opened done [18:05:12]requested_item shift.open_date is exist - process it [18:05:12]req_shift_open_date [18:05:12]req_shift_open_date done [18:05:12]produce_requested_data done [18:05:12]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68438,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [18:05:12]process_action_free close_receipt [18:05:12]json_value_free [18:05:12]json_value_free done [18:05:12]process_json_proto returns [18:05:12]Send response to host [18:05:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68438,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [18:05:12]free response buf [18:05:12]execute_script done [18:05:12]execute_script returns [18:05:12]free content buf [18:05:12]Sock 5.Close socket [18:05:12]Sock 5.Thread stoped [18:05:15]OFD Sender: No OFD packet to send [18:05:20]OFD Sender: No OFD packet to send [18:05:25]OFD Sender: No OFD packet to send [18:05:30]OFD Sender: No OFD packet to send [18:05:35]OFD Sender: No OFD packet to send [18:05:40]OFD Sender: No OFD packet to send [18:05:45]OFD Sender: No OFD packet to send [18:05:50]OFD Sender: No OFD packet to send [18:05:55]OFD Sender: No OFD packet to send [18:06:00]OFD Sender: No OFD packet to send [18:06:05]OFD Sender: No OFD packet to send [18:06:10]OFD Sender: No OFD packet to send [18:06:15]OFD Sender: No OFD packet to send [18:06:20]OFD Sender: No OFD packet to send [18:06:25]OFD Sender: No OFD packet to send [18:06:30]OFD Sender: No OFD packet to send [18:06:35]OFD Sender: No OFD packet to send [18:06:40]OFD Sender: No OFD packet to send [18:06:45]OFD Sender: No OFD packet to send [18:06:50]OFD Sender: No OFD packet to send [18:06:55]OFD Sender: No OFD packet to send [18:07:00]OFD Sender: No OFD packet to send [18:07:05]OFD Sender: No OFD packet to send [18:07:10]OFD Sender: No OFD packet to send [18:07:15]OFD Sender: No OFD packet to send [18:07:20]OFD Sender: No OFD packet to send [18:07:25]OFD Sender: No OFD packet to send [18:07:30]OFD Sender: No OFD packet to send [18:07:35]OFD Sender: No OFD packet to send [18:07:40]OFD Sender: No OFD packet to send [18:07:45]OFD Sender: No OFD packet to send [18:07:50]OFD Sender: No OFD packet to send [18:07:55]OFD Sender: No OFD packet to send [18:08:00]OFD Sender: No OFD packet to send [18:08:05]OFD Sender: No OFD packet to send [18:08:10]OFD Sender: No OFD packet to send [18:08:15]OFD Sender: No OFD packet to send [18:08:20]OFD Sender: No OFD packet to send [18:08:26]OFD Sender: No OFD packet to send [18:08:31]OFD Sender: No OFD packet to send [18:08:32]accept exits with 6 [18:08:32]New connection [18:08:32]New thread 3066686820 created [18:08:32]Thread 3066543460 joined [18:08:32]Waiting for new connection... [18:08:32] Sock 6.Parse request [18:08:32]Sock 6.Check first char [18:08:32]Sock 6.First char is OK [18:08:32]request: POST /json_proto HTTP/1.0 [18:08:32]Method: POST [18:08:32]URL: /json_proto [18:08:32]Method is POST - this is cgi request [18:08:32]url: /json_proto [18:08:32]query_string will be loaded in cgi processing [18:08:32]execute_cgi json_proto POST (null) [18:08:32]execute_cgi path=json_proto method=POST [18:08:32]POST find Content-Length [18:08:32]Host: 172.17.36.132:8080 [18:08:32]Content-Length: 682 [18:08:32]Content-Type: application/json [18:08:32] [18:08:32]POST finish read [18:08:32]Found Content-Length = 682 [18:08:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706539", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:08:32]execute_script... [18:08: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)706539", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:08:32]POST & json_proto [18:08:32]process_json_proto [18:08:32]json parsed OK: [18:08:32]protocol is kg_v1.0 [18:08:32]action value=close_receipt [18:08:32]process_action close_receipt [18:08:32]cmd_close_receipt [18:08:32]MH_GetDate [18:08:32]Write to MH i2c: F0 00 00 8C 55 D0 [18:08:32]Write i2c OK [18:08:32]MH_I2C_Read... [18:08:32]Read from MH i2c: F0 [18:08:32]MH_I2C_Read... [18:08:32]Read from MH i2c: F0 09 00 [18:08:32]MH_I2C_Read... [18:08:32]Read from MH i2c: F0 09 00 8C 55 00 A6 06 5E 66 B2 22 B0 64 31 [18:08:32]GetLastDocTimeStamp 1717437914 [18:08:32]current date 1717438118 [18:08:32]FM_GetShiftState [18:08:32]SAM_PROTO_GetShiftState [18:08:32]wFMCommunicate request_size=4 [18:08:32]MH_SAM_APDU [18:08:32]CAPDU: 80 13 01 00 [18:08:32]Write to MH i2c: E2 08 00 8D 55 80 13 01 00 00 00 00 00 5F [18:08:32]Write i2c OK [18:08:32]MH_I2C_Read... [18:08:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:08:32]Read from MH i2c: E2 [18:08:32]MH_I2C_Read... [18:08:32]Read from MH i2c: E2 0E 00 [18:08:32]MH_I2C_Read... [18:08:32]Read from MH i2c: E2 0E 00 8D 55 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 3A [18:08:32]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [18:08:32]wFMCommunicate OK [18:08:32]SAM_PROTO_GetShiftState done [18:08:32]FM_GetShiftState done [18:08:32]opened in 1717378033 [18:08:32]opened+sec_in_day 1717464433 [18:08:32]quantity*price = 100015 [18:08:32]sum+1 = 100017 [18:08:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 185 03.06.2024 18:08 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68439 ФПД: 128549911236734 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T180838&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68439&fm=128549911236734&tin=02508201610067®Number=0000000000098096&sum=100000 [18:08:33]StoreToDocumentArchive [18:08:33]shift 324 fd 68439 [18:08:33]save to /storage/0324/doc_00068439 [18:08:33]save last doc name /storage/0324/doc_00068439 to /storage/kkm_last_doc_name [18:08:33]save OK [18:08:33]Clear old archive folders... [18:08:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:08:33]tlvbuf is 003DF220 [18:08:33]SAM_PROTO_ClearQueue [18:08:33]wFMCommunicate request_size=4 [18:08:33]MH_SAM_APDU [18:08:33]CAPDU: 80 09 00 00 [18:08:33]Write to MH i2c: E2 08 00 9A 55 80 09 00 00 00 00 00 00 61 [18:08:33]Write i2c OK [18:08:33]MH_I2C_Read... [18:08:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:08:33]Read from MH i2c: E2 [18:08:33]MH_I2C_Read... [18:08:33]Read from MH i2c: E2 03 00 [18:08:33]MH_I2C_Read... [18:08:33]Read from MH i2c: E2 03 00 9A 55 00 90 00 63 [18:08:33]RAPDU: 90 00 [18:08:33]wFMCommunicate OK [18:08:33]SAM_PROTO_ClearQueue done [18:08:33]KKMCreateOFDPacket [18:08:33]OFDProtocolAddRootSTLVToBuf [18:08:33]FM_MakeSignedData [18:08:33]FM_MakeSignedData [18:08:33]SAM_PROTO_SignData [18:08:33]wFMCommunicate request_size=4 [18:08:33]MH_SAM_APDU [18:08:33]CAPDU: 80 0D 01 02 [18:08:33]Write to MH i2c: E2 08 00 9B 55 80 0D 01 02 00 00 00 00 69 [18:08:33]Write i2c OK [18:08:33]MH_I2C_Read... [18:08:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:08:33]Read from MH i2c: E2 [18:08:33]MH_I2C_Read... [18:08:33]Read from MH i2c: E2 03 00 [18:08:33]MH_I2C_Read... [18:08:33]Read from MH i2c: E2 03 00 9B 55 00 90 00 64 [18:08:33]RAPDU: 90 00 [18:08:33]wFMCommunicate OK [18:08:33]wFMCommunicate request_size=255 [18:08:33]MH_SAM_APDU [18:08:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 A6 06 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 57 0B 01 00 35 04 06 00 74 [18:08:33]Write to MH i2c: E2 02 01 9C 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 A6 06 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 57 0B 01 00 35 04 06 00 74 00 00 35 [18:08:33]Write i2c OK [18:08:33]MH_I2C_Read... [18:08:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:08:33]Read from MH i2c: E2 [18:08:33]MH_I2C_Read... [18:08:33]Read from MH i2c: E2 03 00 [18:08:33]MH_I2C_Read... [18:08:33]Read from MH i2c: E2 03 00 9C 55 00 90 00 65 [18:08:33]RAPDU: 90 00 [18:08:33]wFMCommunicate OK [18:08:33]wFMCommunicate request_size=10 [18:08:33]MH_SAM_APDU [18:08:33]CAPDU: 80 0D 02 02 05 EA 5B CB 90 7E [18:08:33]Write to MH i2c: E2 0D 00 9D 55 80 0D 02 02 05 00 EA 5B CB 90 7E 00 00 94 [18:08:33]Write i2c OK [18:08:33]MH_I2C_Read... [18:08:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:08:33]Read from MH i2c: E2 [18:08:33]MH_I2C_Read... [18:08:33]Read from MH i2c: E2 03 00 [18:08:33]MH_I2C_Read... [18:08:33]Read from MH i2c: E2 03 00 9D 55 00 90 00 66 [18:08:33]RAPDU: 90 00 [18:08:33]wFMCommunicate OK [18:08:33]wFMCommunicate request_size=4 [18:08:33]MH_SAM_APDU [18:08:33]CAPDU: 80 0D 03 02 [18:08:33]Write to MH i2c: E2 08 00 9E 55 80 0D 03 02 00 00 00 00 6E [18:08:33]Write i2c OK [18:08:33]MH_I2C_Read... [18:08:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:08:33]Read from MH i2c: E2 [18:08:33]MH_I2C_Read... [18:08:33]Read from MH i2c: E2 0B 00 [18:08:33]MH_I2C_Read... [18:08:33]Read from MH i2c: E2 0B 00 9E 55 00 9B C2 D1 78 0A 76 2B 06 90 00 C6 [18:08:33]RAPDU: 9B C2 D1 78 0A 76 2B 06 90 00 [18:08:33]wFMCommunicate OK [18:08:33]SAM_PROTO_SignData done [18:08:33]FM_MakeSignedData done [18:08:33]CreateOFDProtocolMessage [18:08:33]wFMCommunicate request_size=4 [18:08:33]MH_SAM_APDU [18:08:33]CAPDU: 80 11 00 00 [18:08:33]Write to MH i2c: E2 08 00 9F 55 80 11 00 00 00 00 00 00 6E [18:08:33]Write i2c OK [18:08:33]MH_I2C_Read... [18:08:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:08:33]Read from MH i2c: E2 [18:08:33]MH_I2C_Read... [18:08:33]Read from MH i2c: E2 17 00 [18:08:33]MH_I2C_Read... [18:08:33]Read from MH i2c: E2 17 00 9F 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 B9 [18:08:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [18:08:33]wFMCommunicate OK [18:08:33]CreateOFDProtocolMessage done [18:08:33]OFDSenderStorePacket 68439 [18:08:33]StoreOFDPacket docnum=68439 [18:08:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 30 9E 07 01 1D AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 A6 06 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 57 0B 01 00 35 04 06 00 74 EA 5B CB 90 7E 9B C2 D1 78 0A 76 2B 06 [18:08:33]CheckFolder [18:08:33]dirname=/storage/ofd_packets [18:08:33]CheckFolder done [18:08:33]ProducePacketName [18:08:33]name=ofd_packets/00068439 [18:08:33]NVStorageSaveData ofd_packets/00068439 [18:08:34]File name is /storage/ofd_packets/00068439 [18:08:34]Write 301 bytes [18:08:34]NVStorageSaveData done [18:08:34]OFDSenderStorePacket done [18:08:34]KKMCreateOFDPacket done [18:08:34]NVStorageSaveData kkm_last_timestamp [18:08:34]File name is /storage/kkm_last_timestamp [18:08:34]Write 4 bytes [18:08:34]NVStorageSaveData done [18:08:34]ExternCall_PrintAddStr [18:08:34]wPrintStart [18:08:34]Write to MH i2c: 01 00 00 A0 55 F5 [18:08:34]Write i2c OK [18:08:34]MH_I2C_Read... [18:08:34]Read from MH i2c: 01 [18:08:34]MH_I2C_Read... [18:08:34]Read from MH i2c: 01 07 00 [18:08:34]MH_I2C_Read... [18:08:34]Read from MH i2c: 01 07 00 A0 55 00 00 00 00 00 FF 0F 0A [18:08:34]RasterBufferAndPrint [18:08:34]line Счет N : (1)706539 [18:08:34]line ИНН: 02508201610067 [18:08:34]line Контрольно-Кассовый Чек [18:08:34]line ПРОДАЖА [18:08:34]line ТРК (МРК, ГНК) : 32 [18:08:34]line Товар: 2710124130 [18:08:34]line Аи-92-К-4 [18:08:34]line 14.950 * 66.90 [18:08:34]line = 1000.16 [18:08:34]line НДС 12% НСП 1% [18:08:34]line > о реализуемом товаре [18:08:34]line ОКРУГЛЕНИЕ: -0.16 [18:08:34]line ИТОГО: 1000.00 [18:08:34]line Внесено: 1000.00 [18:08:34]line СДАЧА: 0.00 [18:08:34]line НСП 1% : 8.85 [18:08:34]line НДС 12% : 106.21 [18:08:34]line Наличными: 1000.00 [18:08:34]line Безнал.: 0.00 [18:08:34]line Место: АЗС № 62 "Партнер Нефть" [18:08:34]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [18:08:34]line СНО: Общий режим [18:08:34]line Чек 185 03.06.2024 18:08 [18:08:34]line Смена: 324 ФФД: 1.0 [18:08:34]line ЗНМ: 0300000181 [18:08:34]line РНМ: 0000000000098096 [18:08:34]line Версия ККМ: 001 [18:08:34]line ФМ: 0000000000965400 [18:08:34]line ФД: 68439 [18:08:34]line ФПД: 128549911236734 [18:08:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T180838&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68439&fm=128549911236734&tin=02508201610067®Number=0000000000098096&sum=100000 [18:08:34]OFD Sender: Processing packet 68439 [packets to send 26, broken 25] [18:08:34]ProducePacketName [18:08:34]name=ofd_packets/00068439 [18:08:34]OFD Sender: To server: pG, [18:08:34]CommunicateWithHost lk.salyk.kg:30040 [18:08:34]ConnectInit lk.salyk.kg [18:08:34]written 0, free lines is 4095 [18:08:34]Connected sock=7 [18:08:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 30 9E 07 01 1D AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 A6 06 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 57 0B 01 00 35 04 06 00 74 EA 5B CB 90 7E 9B C2 D1 78 0A 76 2B 06 [18:08:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 E7 49 47 00 84 E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 57 0B 01 00 F4 03 04 00 A2 AD 5D 66 B6 04 01 00 00 5C C2 4A 60 3F 69 B6 F9 [18:08:34]CommunicateWithHost err = 0 [18:08:34]CheckOFDResponse [18:08:34]1017 (14) - 77093643461234 [18:08:34]1041 (16) - 0000000000965400 [18:08:34]1040 (4) - 68439 [18:08:34]1012 (4) - 03.06.2024 11:48 [18:08:34]1206 (1) - 0 [18:08:34]OFD Sender: Remove packet 68439 [18:08:34]ProducePacketName [18:08:34]name=ofd_packets/00068439 [18:08:34]NVStorageDeleteData [18:08:34]Write to MH i2c: 01 00 00 CB 55 20 [18:08:34]Write i2c OK [18:08:34]MH_I2C_Read... [18:08:34]Read from MH i2c: 01 [18:08:34]MH_I2C_Read... [18:08:34]Read from MH i2c: 01 07 00 [18:08:34]MH_I2C_Read... [18:08:34]Read from MH i2c: 01 07 00 CB 55 00 00 00 00 00 EF 0C 22 [18:08:34]RasterBufferAndPrint [18:08:34]line [18:08:34]line [18:08:34]line [18:08:34]line [18:08:34]line [18:08:34]written 0, free lines is 3317 [18:08:34]MH_Cut [18:08:34]Write to MH i2c: D1 01 00 D2 55 01 F9 [18:08:34]Write i2c OK [18:08:34]MH_I2C_Read... [18:08:34]Read from MH i2c: D1 [18:08:34]MH_I2C_Read... [18:08:34]Read from MH i2c: D1 01 00 [18:08:34]MH_I2C_Read... [18:08:34]Read from MH i2c: D1 01 00 D2 55 00 F8 [18:08:34]Write to MH i2c: 01 00 00 D3 55 28 [18:08:34]Write i2c OK [18:08:34]MH_I2C_Read... [18:08:35]OFD Sender: No OFD packet to send [18:08:35]*** Cut start [18:08:35]*** Partial cut [18:08:35]*** CUTSNS_PIN = 1 [18:08:35]*** CUTSNS_PIN = 0 [18:08:35]*** Brake cut motor [18:08:36]Read from MH i2c: 01 [18:08:36]MH_I2C_Read... [18:08:36]*** Stop cut motor [18:08:36]*** Cut end [18:08:36]Read from MH i2c: 01 07 00 [18:08:36]MH_I2C_Read... [18:08:36]Read from MH i2c: 01 07 00 D3 55 00 00 00 00 00 FF 0F 3D [18:08:36]process_action close_receipt done [18:08:36]requested_data is exist [18:08:36]produce_requested_data [18:08:36]requested_item fm.sn is exist - process it [18:08:36]wFMCommunicate request_size=4 [18:08:36]MH_SAM_APDU [18:08:36]CAPDU: 80 11 00 00 [18:08:36]Write to MH i2c: E2 08 00 D4 55 80 11 00 00 00 00 00 00 A3 [18:08:36]Write i2c OK [18:08:36]MH_I2C_Read... [18:08:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:08:36]Read from MH i2c: E2 [18:08:36]MH_I2C_Read... [18:08:36]Read from MH i2c: E2 17 00 [18:08:36]MH_I2C_Read... [18:08:36]Read from MH i2c: E2 17 00 D4 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 EE [18:08:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [18:08:36]wFMCommunicate OK [18:08:36]requested_item fd.num is exist - process it [18:08:36]SAM_PROTO_GetFieldsCounters [18:08:36]wFMCommunicate request_size=4 [18:08:36]MH_SAM_APDU [18:08:36]CAPDU: 80 13 00 00 [18:08:36]Write to MH i2c: E2 08 00 D5 55 80 13 00 00 00 00 00 00 A6 [18:08:36]Write i2c OK [18:08:36]MH_I2C_Read... [18:08:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:08:36]Read from MH i2c: E2 [18:08:36]MH_I2C_Read... [18:08:36]Read from MH i2c: E2 62 00 [18:08:36]MH_I2C_Read... [18:08:36]Read from MH i2c: E2 62 00 D5 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 57 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 99 [18:08:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 57 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:08:36]wFMCommunicate OK [18:08:36]SAM_PROTO_GetFieldsCounters done [18:08:36]requested_item shift.num is exist - process it [18:08:36]requested_item shift.opened is exist - process it [18:08:36]req_shift_opened [18:08:36]FM_GetShiftState [18:08:36]SAM_PROTO_GetShiftState [18:08:36]wFMCommunicate request_size=4 [18:08:36]MH_SAM_APDU [18:08:36]CAPDU: 80 13 01 00 [18:08:36]Write to MH i2c: E2 08 00 D6 55 80 13 01 00 00 00 00 00 A8 [18:08:36]Write i2c OK [18:08:36]MH_I2C_Read... [18:08:36]Read from MH i2c: E2 [18:08:36]MH_I2C_Read... [18:08:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:08:36]Read from MH i2c: E2 0E 00 [18:08:36]MH_I2C_Read... [18:08:36]Read from MH i2c: E2 0E 00 D6 55 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 83 [18:08:36]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [18:08:36]wFMCommunicate OK [18:08:36]SAM_PROTO_GetShiftState done [18:08:36]FM_GetShiftState done [18:08:36]req_shift_opened done [18:08:36]requested_item shift.open_date is exist - process it [18:08:36]req_shift_open_date [18:08:36]req_shift_open_date done [18:08:36]produce_requested_data done [18:08:36]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68439,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [18:08:36]process_action_free close_receipt [18:08:36]json_value_free [18:08:36]json_value_free done [18:08:36]process_json_proto returns [18:08:36]Send response to host [18:08:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68439,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [18:08:36]free response buf [18:08:36]execute_script done [18:08:36]execute_script returns [18:08:36]free content buf [18:08:36]Sock 6.Close socket [18:08:36]Sock 6.Thread stoped [18:08:40]OFD Sender: No OFD packet to send [18:08:45]OFD Sender: No OFD packet to send [18:08:50]OFD Sender: No OFD packet to send [18:08:55]OFD Sender: No OFD packet to send [18:09:00]OFD Sender: No OFD packet to send [18:09:05]OFD Sender: No OFD packet to send [18:09:10]OFD Sender: No OFD packet to send [18:09:15]OFD Sender: No OFD packet to send [18:09:20]OFD Sender: No OFD packet to send [18:09:25]OFD Sender: No OFD packet to send [18:09:30]OFD Sender: No OFD packet to send [18:09:35]OFD Sender: No OFD packet to send [18:09:40]OFD Sender: No OFD packet to send [18:09:45]OFD Sender: No OFD packet to send [18:09:50]OFD Sender: No OFD packet to send [18:09:55]OFD Sender: No OFD packet to send [18:10:00]OFD Sender: No OFD packet to send [18:10:05]OFD Sender: No OFD packet to send [18:10:10]OFD Sender: No OFD packet to send [18:10:15]OFD Sender: No OFD packet to send [18:10:20]OFD Sender: No OFD packet to send [18:10:25]OFD Sender: No OFD packet to send [18:10:30]OFD Sender: No OFD packet to send [18:10:35]OFD Sender: No OFD packet to send [18:10:40]OFD Sender: No OFD packet to send [18:10:45]OFD Sender: No OFD packet to send [18:10:50]OFD Sender: No OFD packet to send [18:10:55]OFD Sender: No OFD packet to send [18:11:00]OFD Sender: No OFD packet to send [18:11:05]OFD Sender: No OFD packet to send [18:11:10]OFD Sender: No OFD packet to send [18:11:15]OFD Sender: No OFD packet to send [18:11:20]OFD Sender: No OFD packet to send [18:11:25]OFD Sender: No OFD packet to send [18:11:30]OFD Sender: No OFD packet to send [18:11:35]OFD Sender: No OFD packet to send [18:11:40]OFD Sender: No OFD packet to send [18:11:45]OFD Sender: No OFD packet to send [18:11:50]OFD Sender: No OFD packet to send [18:11:55]OFD Sender: No OFD packet to send [18:12:00]OFD Sender: No OFD packet to send [18:12:05]OFD Sender: No OFD packet to send [18:12:10]OFD Sender: No OFD packet to send [18:12:15]OFD Sender: No OFD packet to send [18:12:20]OFD Sender: No OFD packet to send [18:12:25]OFD Sender: No OFD packet to send [18:12:30]OFD Sender: No OFD packet to send [18:12:35]OFD Sender: No OFD packet to send [18:12:40]OFD Sender: No OFD packet to send [18:12:45]OFD Sender: No OFD packet to send [18:12:50]OFD Sender: No OFD packet to send [18:12:55]OFD Sender: No OFD packet to send [18:13:00]OFD Sender: No OFD packet to send [18:13:05]OFD Sender: No OFD packet to send [18:13:10]OFD Sender: No OFD packet to send [18:13:15]OFD Sender: No OFD packet to send [18:13:20]OFD Sender: No OFD packet to send [18:13:25]OFD Sender: No OFD packet to send [18:13:30]OFD Sender: No OFD packet to send [18:13:35]OFD Sender: No OFD packet to send [18:13:40]OFD Sender: No OFD packet to send [18:13:45]OFD Sender: No OFD packet to send [18:13:50]OFD Sender: No OFD packet to send [18:13:55]OFD Sender: No OFD packet to send [18:14:00]OFD Sender: No OFD packet to send [18:14:05]OFD Sender: No OFD packet to send [18:14:10]OFD Sender: No OFD packet to send [18:14:15]OFD Sender: No OFD packet to send [18:14:20]OFD Sender: No OFD packet to send [18:14:25]OFD Sender: No OFD packet to send [18:14:30]OFD Sender: No OFD packet to send [18:14:35]OFD Sender: No OFD packet to send [18:14:40]OFD Sender: No OFD packet to send [18:14:45]OFD Sender: No OFD packet to send [18:14:50]OFD Sender: No OFD packet to send [18:14:55]OFD Sender: No OFD packet to send [18:15:00]OFD Sender: No OFD packet to send [18:15:05]OFD Sender: No OFD packet to send [18:15:10]OFD Sender: No OFD packet to send [18:15:15]OFD Sender: No OFD packet to send [18:15:20]OFD Sender: No OFD packet to send [18:15:25]OFD Sender: No OFD packet to send [18:15:30]OFD Sender: No OFD packet to send [18:15:35]OFD Sender: No OFD packet to send [18:15:40]OFD Sender: No OFD packet to send [18:15:45]OFD Sender: No OFD packet to send [18:15:50]OFD Sender: No OFD packet to send [18:15:55]OFD Sender: No OFD packet to send [18:16:00]OFD Sender: No OFD packet to send [18:16:05]OFD Sender: No OFD packet to send [18:16:10]OFD Sender: No OFD packet to send [18:16:15]OFD Sender: No OFD packet to send [18:16:20]OFD Sender: No OFD packet to send [18:16:25]OFD Sender: No OFD packet to send [18:16:30]OFD Sender: No OFD packet to send [18:16:35]OFD Sender: No OFD packet to send [18:16:40]OFD Sender: No OFD packet to send [18:16:45]OFD Sender: No OFD packet to send [18:16:50]OFD Sender: No OFD packet to send [18:16:55]OFD Sender: No OFD packet to send [18:17:00]OFD Sender: No OFD packet to send [18:17:05]OFD Sender: No OFD packet to send [18:17:10]OFD Sender: No OFD packet to send [18:17:15]OFD Sender: No OFD packet to send [18:17:20]OFD Sender: No OFD packet to send [18:17:25]OFD Sender: No OFD packet to send [18:17:30]OFD Sender: No OFD packet to send [18:17:35]OFD Sender: No OFD packet to send [18:17:40]OFD Sender: No OFD packet to send [18:17:45]OFD Sender: No OFD packet to send [18:17:50]OFD Sender: No OFD packet to send [18:17:55]OFD Sender: No OFD packet to send [18:18:00]OFD Sender: No OFD packet to send [18:18:05]OFD Sender: No OFD packet to send [18:18:10]OFD Sender: No OFD packet to send [18:18:15]OFD Sender: No OFD packet to send [18:18:16]accept exits with 5 [18:18:16]New connection [18:18:16]New thread 3066543460 created [18:18:16]Thread 3066686820 joined [18:18:16]Waiting for new connection... [18:18:16] Sock 5.Parse request [18:18:16]Sock 5.Check first char [18:18:16]Sock 5.First char is OK [18:18:16]request: POST /json_proto HTTP/1.0 [18:18:16]Method: POST [18:18:16]URL: /json_proto [18:18:16]Method is POST - this is cgi request [18:18:16]url: /json_proto [18:18:16]query_string will be loaded in cgi processing [18:18:16]execute_cgi json_proto POST (null) [18:18:16]execute_cgi path=json_proto method=POST [18:18:16]POST find Content-Length [18:18:16]Host: 172.17.36.132:8080 [18:18:16]Content-Length: 1144 [18:18:16]Content-Type: application/json [18:18:16] [18:18:16]POST finish read [18:18:16]Found Content-Length = 1144 [18:18:16]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706540\u000A03.06.2024 17:55\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 10.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 669.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30111811\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:18:16]execute_script... [18:18:16]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706540\u000A03.06.2024 17:55\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 42\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 10.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 669.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30111811\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:18:16]POST & json_proto [18:18:16]process_json_proto [18:18:16]json parsed OK: [18:18:16]protocol is kg_v1.0 [18:18:16]action value=print_text [18:18:16]process_action print_text [18:18:16]cmd_print_text [18:18:16]ExternCall_PrintAddStr [18:18:16]wPrintStart [18:18:16]Write to MH i2c: 01 00 00 D7 55 2C [18:18:16]Write i2c OK [18:18:16]MH_I2C_Read... [18:18:16]Read from MH i2c: 01 [18:18:16]MH_I2C_Read... [18:18:16]Read from MH i2c: 01 07 00 [18:18:16]MH_I2C_Read... [18:18:16]Read from MH i2c: 01 07 00 D7 55 00 00 00 00 00 FF 0F 41 [18:18:16]RasterBufferAndPrint [18:18:16]line *****ТОВАРНЫЙ ЧЕК***** [18:18:16]line АЗС 62 [18:18:16]line Партнер нефть [18:18:16]line 02508201610067 [18:18:16]line Кассир : Балаев А. [18:18:16]line Счет N : (1)706540 [18:18:16]line 03.06.2024 17:55 [18:18:16]line ПРОДАЖА [18:18:16]line ТРК (МРК, ГНК): 42 [18:18:16]line Вид ГСМ : 2710124130 [18:18:16]line Аи-92-К-4 [18:18:16]line 10.000 x 66.90 [18:18:16]line ИТОГ: 669.00 [18:18:16]line Тип оплаты: Талоны: ТК ГПНА Online [18:18:16]line 30111811 [18:18:16]line ______________________ [18:18:16]line (подпись) [18:18:16]written 0, free lines is 4095 [18:18:16]Write to MH i2c: 01 00 00 EB 55 40 [18:18:16]Write i2c OK [18:18:16]MH_I2C_Read... [18:18:16]Read from MH i2c: 01 [18:18:16]MH_I2C_Read... [18:18:16]Read from MH i2c: 01 07 00 [18:18:16]MH_I2C_Read... [18:18:16]Read from MH i2c: 01 07 00 EB 55 00 00 00 00 00 0F 0E 64 [18:18:16]RasterBufferAndPrint [18:18:16]line [18:18:16]line [18:18:16]line [18:18:16]line [18:18:16]line [18:18:16]written 0, free lines is 3601 [18:18:16]MH_Cut [18:18:16]Write to MH i2c: D1 01 00 F2 55 01 19 [18:18:16]Write i2c OK [18:18:16]MH_I2C_Read... [18:18:16]Read from MH i2c: D1 [18:18:16]MH_I2C_Read... [18:18:16]Read from MH i2c: D1 01 00 [18:18:16]MH_I2C_Read... [18:18:16]Read from MH i2c: D1 01 00 F2 55 00 18 [18:18:16]Write to MH i2c: 01 00 00 F3 55 48 [18:18:16]Write i2c OK [18:18:16]MH_I2C_Read... [18:18:17]*** Cut start [18:18:17]*** Partial cut [18:18:17]*** CUTSNS_PIN = 1 [18:18:17]*** CUTSNS_PIN = 0 [18:18:17]*** Brake cut motor [18:18:17]Read from MH i2c: 01 [18:18:17]MH_I2C_Read... [18:18:17]Read from MH i2c: 01 07 00 [18:18:17]MH_I2C_Read... [18:18:17]*** Stop cut motor [18:18:17]*** Cut end [18:18:17]Read from MH i2c: 01 07 00 F3 55 00 00 00 00 00 FF 0F 5D [18:18:17]process_action print_text done [18:18:17]requested_data is exist [18:18:17]produce_requested_data [18:18:17]requested_item fm.sn is exist - process it [18:18:17]wFMCommunicate request_size=4 [18:18:17]MH_SAM_APDU [18:18:17]CAPDU: 80 11 00 00 [18:18:17]Write to MH i2c: E2 08 00 F4 55 80 11 00 00 00 00 00 00 C3 [18:18:17]Write i2c OK [18:18:17]MH_I2C_Read... [18:18:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:18:17]Read from MH i2c: E2 [18:18:17]MH_I2C_Read... [18:18:17]Read from MH i2c: E2 17 00 [18:18:17]MH_I2C_Read... [18:18:17]Read from MH i2c: E2 17 00 F4 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 0E [18:18:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [18:18:17]wFMCommunicate OK [18:18:17]requested_item fd.num is exist - process it [18:18:17]SAM_PROTO_GetFieldsCounters [18:18:17]wFMCommunicate request_size=4 [18:18:17]MH_SAM_APDU [18:18:17]CAPDU: 80 13 00 00 [18:18:17]Write to MH i2c: E2 08 00 F5 55 80 13 00 00 00 00 00 00 C6 [18:18:17]Write i2c OK [18:18:17]MH_I2C_Read... [18:18:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:18:18]Read from MH i2c: E2 [18:18:18]MH_I2C_Read... [18:18:18]Read from MH i2c: E2 62 00 [18:18:18]MH_I2C_Read... [18:18:18]Read from MH i2c: E2 62 00 F5 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 57 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 B9 [18:18:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 57 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:18:18]wFMCommunicate OK [18:18:18]SAM_PROTO_GetFieldsCounters done [18:18:18]requested_item shift.num is exist - process it [18:18:18]requested_item shift.opened is exist - process it [18:18:18]req_shift_opened [18:18:18]FM_GetShiftState [18:18:18]SAM_PROTO_GetShiftState [18:18:18]wFMCommunicate request_size=4 [18:18:18]MH_SAM_APDU [18:18:18]CAPDU: 80 13 01 00 [18:18:18]Write to MH i2c: E2 08 00 F6 55 80 13 01 00 00 00 00 00 C8 [18:18:18]Write i2c OK [18:18:18]MH_I2C_Read... [18:18:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:18:18]Read from MH i2c: E2 [18:18:18]MH_I2C_Read... [18:18:18]Read from MH i2c: E2 0E 00 [18:18:18]MH_I2C_Read... [18:18:18]Read from MH i2c: E2 0E 00 F6 55 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 A3 [18:18:18]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [18:18:18]wFMCommunicate OK [18:18:18]SAM_PROTO_GetShiftState done [18:18:18]FM_GetShiftState done [18:18:18]req_shift_opened done [18:18:18]requested_item shift.open_date is exist - process it [18:18:18]req_shift_open_date [18:18:18]req_shift_open_date done [18:18:18]produce_requested_data done [18:18:18]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68439,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [18:18:18]process_action_free print_text [18:18:18]json_value_free [18:18:18]json_value_free done [18:18:18]process_json_proto returns [18:18:18]Send response to host [18:18:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68439,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [18:18:18]free response buf [18:18:18]execute_script done [18:18:18]execute_script returns [18:18:18]free content buf [18:18:18]Sock 5.Close socket [18:18:18]Sock 5.Thread stoped [18:18:20]OFD Sender: No OFD packet to send [18:18:25]OFD Sender: No OFD packet to send [18:18:30]OFD Sender: No OFD packet to send [18:18:35]OFD Sender: No OFD packet to send [18:18:40]OFD Sender: No OFD packet to send [18:18:45]OFD Sender: No OFD packet to send [18:18:50]OFD Sender: No OFD packet to send [18:18:55]OFD Sender: No OFD packet to send [18:19:00]OFD Sender: No OFD packet to send [18:19:05]OFD Sender: No OFD packet to send [18:19:10]OFD Sender: No OFD packet to send [18:19:15]OFD Sender: No OFD packet to send [18:19:20]OFD Sender: No OFD packet to send [18:19:25]OFD Sender: No OFD packet to send [18:19:30]OFD Sender: No OFD packet to send [18:19:35]OFD Sender: No OFD packet to send [18:19:40]OFD Sender: No OFD packet to send [18:19:45]OFD Sender: No OFD packet to send [18:19:50]OFD Sender: No OFD packet to send [18:19:55]OFD Sender: No OFD packet to send [18:20:00]OFD Sender: No OFD packet to send [18:20:05]OFD Sender: No OFD packet to send [18:20:10]OFD Sender: No OFD packet to send [18:20:15]OFD Sender: No OFD packet to send [18:20:20]OFD Sender: No OFD packet to send [18:20:25]OFD Sender: No OFD packet to send [18:20:30]OFD Sender: No OFD packet to send [18:20:35]OFD Sender: No OFD packet to send [18:20:40]OFD Sender: No OFD packet to send [18:20:45]OFD Sender: No OFD packet to send [18:20:50]OFD Sender: No OFD packet to send [18:20:55]OFD Sender: No OFD packet to send [18:21:00]OFD Sender: No OFD packet to send [18:21:05]OFD Sender: No OFD packet to send [18:21:10]OFD Sender: No OFD packet to send [18:21:15]OFD Sender: No OFD packet to send [18:21:20]OFD Sender: No OFD packet to send [18:21:25]OFD Sender: No OFD packet to send [18:21:30]OFD Sender: No OFD packet to send [18:21:35]OFD Sender: No OFD packet to send [18:21:40]OFD Sender: No OFD packet to send [18:21:45]OFD Sender: No OFD packet to send [18:21:50]OFD Sender: No OFD packet to send [18:21:55]OFD Sender: No OFD packet to send [18:22:00]OFD Sender: No OFD packet to send [18:22:05]OFD Sender: No OFD packet to send [18:22:10]OFD Sender: No OFD packet to send [18:22:15]OFD Sender: No OFD packet to send [18:22:20]OFD Sender: No OFD packet to send [18:22:25]OFD Sender: No OFD packet to send [18:22:30]OFD Sender: No OFD packet to send [18:22:35]OFD Sender: No OFD packet to send [18:22:40]OFD Sender: No OFD packet to send [18:22:45]OFD Sender: No OFD packet to send [18:22:50]OFD Sender: No OFD packet to send [18:22:55]OFD Sender: No OFD packet to send [18:23:00]OFD Sender: No OFD packet to send [18:23:05]OFD Sender: No OFD packet to send [18:23:10]OFD Sender: No OFD packet to send [18:23:15]OFD Sender: No OFD packet to send [18:23:20]OFD Sender: No OFD packet to send [18:23:25]OFD Sender: No OFD packet to send [18:23:30]OFD Sender: No OFD packet to send [18:23:35]OFD Sender: No OFD packet to send [18:23:40]OFD Sender: No OFD packet to send [18:23:45]OFD Sender: No OFD packet to send [18:23:50]OFD Sender: No OFD packet to send [18:23:55]OFD Sender: No OFD packet to send [18:24:00]OFD Sender: No OFD packet to send [18:24:05]OFD Sender: No OFD packet to send [18:24:10]OFD Sender: No OFD packet to send [18:24:15]OFD Sender: No OFD packet to send [18:24:20]OFD Sender: No OFD packet to send [18:24:25]OFD Sender: No OFD packet to send [18:24:30]OFD Sender: No OFD packet to send [18:24:35]OFD Sender: No OFD packet to send [18:24:40]OFD Sender: No OFD packet to send [18:24:45]OFD Sender: No OFD packet to send [18:24:50]OFD Sender: No OFD packet to send [18:24:55]OFD Sender: No OFD packet to send [18:25:00]OFD Sender: No OFD packet to send [18:25:05]OFD Sender: No OFD packet to send [18:25:10]OFD Sender: No OFD packet to send [18:25:15]OFD Sender: No OFD packet to send [18:25:20]OFD Sender: No OFD packet to send [18:25:25]OFD Sender: No OFD packet to send [18:25:30]OFD Sender: No OFD packet to send [18:25:35]OFD Sender: No OFD packet to send [18:25:40]OFD Sender: No OFD packet to send [18:25:45]OFD Sender: No OFD packet to send [18:25:50]OFD Sender: No OFD packet to send [18:25:55]OFD Sender: No OFD packet to send [18:26:00]OFD Sender: No OFD packet to send [18:26:06]OFD Sender: No OFD packet to send [18:26:11]OFD Sender: No OFD packet to send [18:26:16]OFD Sender: No OFD packet to send [18:26:21]OFD Sender: No OFD packet to send [18:26:26]OFD Sender: No OFD packet to send [18:26:31]OFD Sender: No OFD packet to send [18:26:36]OFD Sender: No OFD packet to send [18:26:41]OFD Sender: No OFD packet to send [18:26:46]OFD Sender: No OFD packet to send [18:26:51]OFD Sender: No OFD packet to send [18:26:56]OFD Sender: No OFD packet to send [18:27:01]OFD Sender: No OFD packet to send [18:27:06]OFD Sender: No OFD packet to send [18:27:11]OFD Sender: No OFD packet to send [18:27:16]OFD Sender: No OFD packet to send [18:27:21]OFD Sender: No OFD packet to send [18:27:26]OFD Sender: No OFD packet to send [18:27:31]OFD Sender: No OFD packet to send [18:27:36]OFD Sender: No OFD packet to send [18:27:41]OFD Sender: No OFD packet to send [18:27:46]OFD Sender: No OFD packet to send [18:27:51]OFD Sender: No OFD packet to send [18:27:56]OFD Sender: No OFD packet to send [18:27:56]accept exits with 6 [18:27:56]New connection [18:27:56]New thread 3066686820 created [18:27:56]Thread 3066543460 joined [18:27:56]Waiting for new connection... [18:27:56] Sock 6.Parse request [18:27:56]Sock 6.Check first char [18:27:56]Sock 6.First char is OK [18:27:56]request: POST /json_proto HTTP/1.0 [18:27:56]Method: POST [18:27:56]URL: /json_proto [18:27:56]Method is POST - this is cgi request [18:27:56]url: /json_proto [18:27:56]query_string will be loaded in cgi processing [18:27:56]execute_cgi json_proto POST (null) [18:27:56]execute_cgi path=json_proto method=POST [18:27:56]POST find Content-Length [18:27:56]Host: 172.17.36.132:8080 [18:27:56]Content-Length: 677 [18:27:56]Content-Type: application/json [18:27:56] [18:27:56]POST finish read [18:27:56]Found Content-Length = 677 [18:27:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706541", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:27:56]execute_script... [18:27:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706541", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:27:56]POST & json_proto [18:27:56]process_json_proto [18:27:56]json parsed OK: [18:27:56]protocol is kg_v1.0 [18:27:56]action value=close_receipt [18:27:56]process_action close_receipt [18:27:56]cmd_close_receipt [18:27:56]MH_GetDate [18:27:56]Write to MH i2c: F0 00 00 F7 55 3B [18:27:56]Write i2c OK [18:27:56]MH_I2C_Read... [18:27:56]Read from MH i2c: F0 [18:27:56]MH_I2C_Read... [18:27:56]Read from MH i2c: F0 09 00 [18:27:56]MH_I2C_Read... [18:27:56]Read from MH i2c: F0 09 00 F7 55 00 33 0B 5E 66 B2 22 B0 64 2E [18:27:56]GetLastDocTimeStamp 1717438118 [18:27:56]current date 1717439283 [18:27:56]FM_GetShiftState [18:27:56]SAM_PROTO_GetShiftState [18:27:56]wFMCommunicate request_size=4 [18:27:56]MH_SAM_APDU [18:27:56]CAPDU: 80 13 01 00 [18:27:56]Write to MH i2c: E2 08 00 F8 55 80 13 01 00 00 00 00 00 CA [18:27:56]Write i2c OK [18:27:56]MH_I2C_Read... [18:27:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:56]Read from MH i2c: E2 [18:27:56]MH_I2C_Read... [18:27:56]Read from MH i2c: E2 0E 00 [18:27:56]MH_I2C_Read... [18:27:56]Read from MH i2c: E2 0E 00 F8 55 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 A5 [18:27:56]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [18:27:56]wFMCommunicate OK [18:27:56]SAM_PROTO_GetShiftState done [18:27:56]FM_GetShiftState done [18:27:56]opened in 1717378033 [18:27:56]opened+sec_in_day 1717464433 [18:27:56]quantity*price = 20003 [18:27:56]sum+1 = 20004 [18:27:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 186 03.06.2024 18:28 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68440 ФПД: 236604760959109 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T182803&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68440&fm=236604760959109&tin=02508201610067®Number=0000000000098096&sum=20000 [18:27:57]StoreToDocumentArchive [18:27:57]shift 324 fd 68440 [18:27:57]save to /storage/0324/doc_00068440 [18:27:57]save last doc name /storage/0324/doc_00068440 to /storage/kkm_last_doc_name [18:27:57]save OK [18:27:57]Clear old archive folders... [18:27:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:27:57]tlvbuf is 001BEB90 [18:27:57]SAM_PROTO_ClearQueue [18:27:57]wFMCommunicate request_size=4 [18:27:57]MH_SAM_APDU [18:27:57]CAPDU: 80 09 00 00 [18:27:57]Write to MH i2c: E2 08 00 05 56 80 09 00 00 00 00 00 00 CD [18:27:57]Write i2c OK [18:27:57]MH_I2C_Read... [18:27:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:27:57]Read from MH i2c: E2 [18:27:57]MH_I2C_Read... [18:27:57]Read from MH i2c: E2 03 00 [18:27:57]MH_I2C_Read... [18:27:57]Read from MH i2c: E2 03 00 05 56 00 90 00 CF [18:27:57]RAPDU: 90 00 [18:27:57]wFMCommunicate OK [18:27:57]SAM_PROTO_ClearQueue done [18:27:57]KKMCreateOFDPacket [18:27:57]OFDProtocolAddRootSTLVToBuf [18:27:57]FM_MakeSignedData [18:27:57]FM_MakeSignedData [18:27:57]SAM_PROTO_SignData [18:27:57]wFMCommunicate request_size=4 [18:27:57]MH_SAM_APDU [18:27:57]CAPDU: 80 0D 01 02 [18:27:57]Write to MH i2c: E2 08 00 06 56 80 0D 01 02 00 00 00 00 D5 [18:27:57]Write i2c OK [18:27:57]MH_I2C_Read... [18:27:57]Read from MH i2c: E2 [18:27:57]MH_I2C_Read... [18:27:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:27:57]Read from MH i2c: E2 03 00 [18:27:57]MH_I2C_Read... [18:27:57]Read from MH i2c: E2 03 00 06 56 00 90 00 D0 [18:27:57]RAPDU: 90 00 [18:27:57]wFMCommunicate OK [18:27:57]wFMCommunicate request_size=255 [18:27:57]MH_SAM_APDU [18:27:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 33 0B 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 58 0B 01 00 35 04 06 00 D7 [18:27:57]Write to MH i2c: E2 02 01 07 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 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 33 0B 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 58 0B 01 00 35 04 06 00 D7 00 00 60 [18:27:57]Write i2c OK [18:27:57]MH_I2C_Read... [18:27:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:58]Read from MH i2c: E2 [18:27:58]MH_I2C_Read... [18:27:58]Read from MH i2c: E2 03 00 [18:27:58]MH_I2C_Read... [18:27:58]Read from MH i2c: E2 03 00 07 56 00 90 00 D1 [18:27:58]RAPDU: 90 00 [18:27:58]wFMCommunicate OK [18:27:58]wFMCommunicate request_size=10 [18:27:58]MH_SAM_APDU [18:27:58]CAPDU: 80 0D 02 02 05 30 D6 BA A8 85 [18:27:58]Write to MH i2c: E2 0D 00 08 56 80 0D 02 02 05 00 30 D6 BA A8 85 00 00 CF [18:27:58]Write i2c OK [18:27:58]MH_I2C_Read... [18:27:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:58]Read from MH i2c: E2 [18:27:58]MH_I2C_Read... [18:27:58]Read from MH i2c: E2 03 00 [18:27:58]MH_I2C_Read... [18:27:58]Read from MH i2c: E2 03 00 08 56 00 90 00 D2 [18:27:58]RAPDU: 90 00 [18:27:58]wFMCommunicate OK [18:27:58]wFMCommunicate request_size=4 [18:27:58]MH_SAM_APDU [18:27:58]CAPDU: 80 0D 03 02 [18:27:58]Write to MH i2c: E2 08 00 09 56 80 0D 03 02 00 00 00 00 DA [18:27:58]Write i2c OK [18:27:58]MH_I2C_Read... [18:27:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:27:58]Read from MH i2c: E2 [18:27:58]MH_I2C_Read... [18:27:58]Read from MH i2c: E2 0B 00 [18:27:58]MH_I2C_Read... [18:27:58]Read from MH i2c: E2 0B 00 09 56 00 E2 37 B9 6A DF 43 A5 8D 90 00 6B [18:27:58]RAPDU: E2 37 B9 6A DF 43 A5 8D 90 00 [18:27:58]wFMCommunicate OK [18:27:58]SAM_PROTO_SignData done [18:27:58]FM_MakeSignedData done [18:27:58]CreateOFDProtocolMessage [18:27:58]wFMCommunicate request_size=4 [18:27:58]MH_SAM_APDU [18:27:58]CAPDU: 80 11 00 00 [18:27:58]Write to MH i2c: E2 08 00 0A 56 80 11 00 00 00 00 00 00 DA [18:27:58]Write i2c OK [18:27:58]MH_I2C_Read... [18:27:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:58]Read from MH i2c: E2 [18:27:58]MH_I2C_Read... [18:27:58]Read from MH i2c: E2 17 00 [18:27:58]MH_I2C_Read... [18:27:58]Read from MH i2c: E2 17 00 0A 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 25 [18:27:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [18:27:58]wFMCommunicate OK [18:27:58]CreateOFDProtocolMessage done [18:27:58]OFDSenderStorePacket 68440 [18:27:58]StoreOFDPacket docnum=68440 [18:27:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 A3 51 07 01 A3 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 33 0B 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 58 0B 01 00 35 04 06 00 D7 30 D6 BA A8 85 E2 37 B9 6A DF 43 A5 8D [18:27:58]CheckFolder [18:27:58]dirname=/storage/ofd_packets [18:27:58]CheckFolder done [18:27:58]ProducePacketName [18:27:58]name=ofd_packets/00068440 [18:27:58]NVStorageSaveData ofd_packets/00068440 [18:27:58]File name is /storage/ofd_packets/00068440 [18:27:58]Write 301 bytes [18:27:58]NVStorageSaveData done [18:27:58]OFDSenderStorePacket done [18:27:58]KKMCreateOFDPacket done [18:27:58]NVStorageSaveData kkm_last_timestamp [18:27:58]File name is /storage/kkm_last_timestamp [18:27:58]Write 4 bytes [18:27:58]NVStorageSaveData done [18:27:58]ExternCall_PrintAddStr [18:27:58]wPrintStart [18:27:58]Write to MH i2c: 01 00 00 0B 56 61 [18:27:58]Write i2c OK [18:27:58]MH_I2C_Read... [18:27:58]Read from MH i2c: 01 [18:27:58]MH_I2C_Read... [18:27:58]Read from MH i2c: 01 07 00 [18:27:58]MH_I2C_Read... [18:27:58]Read from MH i2c: 01 07 00 0B 56 00 00 00 00 00 FF 0F 76 [18:27:58]RasterBufferAndPrint [18:27:58]line Счет N : (1)706541 [18:27:58]line ИНН: 02508201610067 [18:27:58]line Контрольно-Кассовый Чек [18:27:58]line ПРОДАЖА [18:27:58]line ТРК (МРК, ГНК) : 63 [18:27:58]line Товар: 2710124130 [18:27:58]line Аи-92-К-4 [18:27:58]line 2.990 * 66.90 [18:27:58]line = 200.03 [18:27:58]line НДС 12% НСП 1% [18:27:58]line > о реализуемом товаре [18:27:58]line ОКРУГЛЕНИЕ: -0.03 [18:27:58]line ИТОГО: 200.00 [18:27:58]line Внесено: 200.00 [18:27:58]line СДАЧА: 0.00 [18:27:58]line НСП 1% : 1.77 [18:27:58]line НДС 12% : 21.24 [18:27:58]line Наличными: 200.00 [18:27:58]line Безнал.: 0.00 [18:27:58]line Место: АЗС № 62 "Партнер Нефть" [18:27:58]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [18:27:58]line СНО: Общий режим [18:27:58]line Чек 186 03.06.2024 18:28 [18:27:58]line Смена: 324 ФФД: 1.0 [18:27:58]line ЗНМ: 0300000181 [18:27:58]line РНМ: 0000000000098096 [18:27:58]line Версия ККМ: 001 [18:27:58]line ФМ: 0000000000965400 [18:27:58]line ФД: 68440 [18:27:58]line ФПД: 236604760959109 [18:27:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T182803&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68440&fm=236604760959109&tin=02508201610067®Number=0000000000098096&sum=20000 [18:27:58]OFD Sender: Processing packet 68440 [packets to send 26, broken 25] [18:27:58]ProducePacketName [18:27:58]name=ofd_packets/00068440 [18:27:58]OFD Sender: To server: pG, [18:27:58]CommunicateWithHost lk.salyk.kg:30040 [18:27:58]ConnectInit lk.salyk.kg [18:27:58]written 0, free lines is 4095 [18:27:58]Connected sock=7 [18:27:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 A3 51 07 01 A3 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 33 0B 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 58 0B 01 00 35 04 06 00 D7 30 D6 BA A8 85 E2 37 B9 6A DF 43 A5 8D [18:27:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 07 C0 47 00 37 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 58 0B 01 00 F4 03 04 00 2E B2 5D 66 B6 04 01 00 00 8C BB 4D 2F 33 EE E3 EE [18:27:58]CommunicateWithHost err = 0 [18:27:58]CheckOFDResponse [18:27:58]1017 (14) - 77093643461234 [18:27:58]1041 (16) - 0000000000965400 [18:27:58]1040 (4) - 68440 [18:27:58]1012 (4) - 03.06.2024 12:08 [18:27:58]1206 (1) - 0 [18:27:58]OFD Sender: Remove packet 68440 [18:27:58]ProducePacketName [18:27:58]name=ofd_packets/00068440 [18:27:58]NVStorageDeleteData [18:27:59]Write to MH i2c: 01 00 00 36 56 8C [18:27:59]Write i2c OK [18:27:59]MH_I2C_Read... [18:27:59]Read from MH i2c: 01 [18:27:59]MH_I2C_Read... [18:27:59]Read from MH i2c: 01 07 00 [18:27:59]MH_I2C_Read... [18:27:59]Read from MH i2c: 01 07 00 36 56 00 00 00 00 00 02 0D A2 [18:27:59]RasterBufferAndPrint [18:27:59]line [18:27:59]line [18:27:59]line [18:27:59]line [18:27:59]line [18:27:59]written 0, free lines is 3337 [18:27:59]MH_Cut [18:27:59]Write to MH i2c: D1 01 00 3D 56 01 65 [18:27:59]Write i2c OK [18:27:59]MH_I2C_Read... [18:27:59]Read from MH i2c: D1 [18:27:59]MH_I2C_Read... [18:27:59]Read from MH i2c: D1 01 00 [18:27:59]MH_I2C_Read... [18:27:59]Read from MH i2c: D1 01 00 3D 56 00 64 [18:27:59]Write to MH i2c: 01 00 00 3E 56 94 [18:27:59]Write i2c OK [18:27:59]MH_I2C_Read... [18:27:59]OFD Sender: No OFD packet to send [18:27:59]*** Cut start [18:27:59]*** Partial cut [18:27:59]*** CUTSNS_PIN = 1 [18:27:59]*** CUTSNS_PIN = 0 [18:28:00]*** Brake cut motor [18:28:00]Read from MH i2c: 01 [18:28:00]MH_I2C_Read... [18:28:00]*** Stop cut motor [18:28:00]*** Cut end [18:28:00]Read from MH i2c: 01 07 00 [18:28:00]MH_I2C_Read... [18:28:00]Read from MH i2c: 01 07 00 3E 56 00 00 00 00 00 FF 0F A9 [18:28:00]process_action close_receipt done [18:28:00]requested_data is exist [18:28:00]produce_requested_data [18:28:00]requested_item fm.sn is exist - process it [18:28:00]wFMCommunicate request_size=4 [18:28:00]MH_SAM_APDU [18:28:00]CAPDU: 80 11 00 00 [18:28:00]Write to MH i2c: E2 08 00 3F 56 80 11 00 00 00 00 00 00 0F [18:28:00]Write i2c OK [18:28:00]MH_I2C_Read... [18:28:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:28:00]Read from MH i2c: E2 [18:28:00]MH_I2C_Read... [18:28:00]Read from MH i2c: E2 17 00 [18:28:00]MH_I2C_Read... [18:28:00]Read from MH i2c: E2 17 00 3F 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 5A [18:28:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [18:28:00]wFMCommunicate OK [18:28:00]requested_item fd.num is exist - process it [18:28:00]SAM_PROTO_GetFieldsCounters [18:28:00]wFMCommunicate request_size=4 [18:28:00]MH_SAM_APDU [18:28:00]CAPDU: 80 13 00 00 [18:28:00]Write to MH i2c: E2 08 00 40 56 80 13 00 00 00 00 00 00 12 [18:28:00]Write i2c OK [18:28:00]MH_I2C_Read... [18:28:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:28:00]Read from MH i2c: E2 [18:28:00]MH_I2C_Read... [18:28:00]Read from MH i2c: E2 62 00 [18:28:00]MH_I2C_Read... [18:28:00]Read from MH i2c: E2 62 00 40 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 58 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 09 [18:28:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 58 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:28:00]wFMCommunicate OK [18:28:00]SAM_PROTO_GetFieldsCounters done [18:28:00]requested_item shift.num is exist - process it [18:28:00]requested_item shift.opened is exist - process it [18:28:00]req_shift_opened [18:28:00]FM_GetShiftState [18:28:00]SAM_PROTO_GetShiftState [18:28:00]wFMCommunicate request_size=4 [18:28:00]MH_SAM_APDU [18:28:00]CAPDU: 80 13 01 00 [18:28:00]Write to MH i2c: E2 08 00 41 56 80 13 01 00 00 00 00 00 14 [18:28:00]Write i2c OK [18:28:00]MH_I2C_Read... [18:28:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:28:00]Read from MH i2c: E2 [18:28:00]MH_I2C_Read... [18:28:00]Read from MH i2c: E2 0E 00 [18:28:00]MH_I2C_Read... [18:28:00]Read from MH i2c: E2 0E 00 41 56 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 EF [18:28:00]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [18:28:00]wFMCommunicate OK [18:28:00]SAM_PROTO_GetShiftState done [18:28:00]FM_GetShiftState done [18:28:00]req_shift_opened done [18:28:00]requested_item shift.open_date is exist - process it [18:28:00]req_shift_open_date [18:28:00]req_shift_open_date done [18:28:00]produce_requested_data done [18:28:00]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68440,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [18:28:00]process_action_free close_receipt [18:28:00]json_value_free [18:28:00]json_value_free done [18:28:00]process_json_proto returns [18:28:00]Send response to host [18:28:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68440,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [18:28:00]free response buf [18:28:00]execute_script done [18:28:00]execute_script returns [18:28:00]free content buf [18:28:00]Sock 6.Close socket [18:28:00]Sock 6.Thread stoped [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]accept exits with 5 [18:32:24]New connection [18:32:24]New thread 3066543460 created [18:32:24]Thread 3066686820 joined [18:32:24]Waiting for new connection... [18:32:24] Sock 5.Parse request [18:32:24]Sock 5.Check first char [18:32:24]Sock 5.First char is OK [18:32:24]request: POST /json_proto HTTP/1.0 [18:32:24]Method: POST [18:32:24]URL: /json_proto [18:32:24]Method is POST - this is cgi request [18:32:24]url: /json_proto [18:32:24]query_string will be loaded in cgi processing [18:32:24]execute_cgi json_proto POST (null) [18:32:24]execute_cgi path=json_proto method=POST [18:32:24]POST find Content-Length [18:32:24]Host: 172.17.36.132:8080 [18:32:24]Content-Length: 677 [18:32:24]Content-Type: application/json [18:32:24] [18:32:24]POST finish read [18:32:24]Found Content-Length = 677 [18:32:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706543", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:32:24]execute_script... [18:32:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706543", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:32:24]POST & json_proto [18:32:24]process_json_proto [18:32:24]json parsed OK: [18:32:24]protocol is kg_v1.0 [18:32:24]action value=close_receipt [18:32:24]process_action close_receipt [18:32:24]cmd_close_receipt [18:32:24]MH_GetDate [18:32:24]Write to MH i2c: F0 00 00 42 56 87 [18:32:24]Write i2c OK [18:32:24]MH_I2C_Read... [18:32:24]Read from MH i2c: F0 [18:32:24]MH_I2C_Read... [18:32:24]Read from MH i2c: F0 09 00 [18:32:24]MH_I2C_Read... [18:32:24]Read from MH i2c: F0 09 00 42 56 00 3E 0C 5E 66 B2 22 B0 64 86 [18:32:24]GetLastDocTimeStamp 1717439283 [18:32:24]current date 1717439550 [18:32:24]FM_GetShiftState [18:32:24]SAM_PROTO_GetShiftState [18:32:24]wFMCommunicate request_size=4 [18:32:24]MH_SAM_APDU [18:32:24]CAPDU: 80 13 01 00 [18:32:24]Write to MH i2c: E2 08 00 43 56 80 13 01 00 00 00 00 00 16 [18:32:24]Write i2c OK [18:32:24]MH_I2C_Read... [18:32:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:32:24]Read from MH i2c: E2 [18:32:24]MH_I2C_Read... [18:32:24]Read from MH i2c: E2 0E 00 [18:32:24]MH_I2C_Read... [18:32:24]Read from MH i2c: E2 0E 00 43 56 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 F1 [18:32:24]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [18:32:24]wFMCommunicate OK [18:32:24]SAM_PROTO_GetShiftState done [18:32:24]FM_GetShiftState done [18:32:24]opened in 1717378033 [18:32:24]opened+sec_in_day 1717464433 [18:32:24]quantity*price = 50041 [18:32:24]sum+1 = 50042 [18:32:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 187 03.06.2024 18:32 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68441 ФПД: 50653560593484 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T183230&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68441&fm=50653560593484&tin=02508201610067®Number=0000000000098096&sum=50000 [18:32:25]StoreToDocumentArchive [18:32:25]shift 324 fd 68441 [18:32:25]save to /storage/0324/doc_00068441 [18:32:25]save last doc name /storage/0324/doc_00068441 to /storage/kkm_last_doc_name [18:32:25]save OK [18:32:25]Clear old archive folders... [18:32:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:32:25]tlvbuf is 0027E960 [18:32:25]SAM_PROTO_ClearQueue [18:32:25]wFMCommunicate request_size=4 [18:32:25]MH_SAM_APDU [18:32:25]CAPDU: 80 09 00 00 [18:32:25]Write to MH i2c: E2 08 00 50 56 80 09 00 00 00 00 00 00 18 [18:32:25]Write i2c OK [18:32:25]MH_I2C_Read... [18:32:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:32:25]Read from MH i2c: E2 [18:32:25]MH_I2C_Read... [18:32:25]Read from MH i2c: E2 03 00 [18:32:25]MH_I2C_Read... [18:32:25]Read from MH i2c: E2 03 00 50 56 00 90 00 1A [18:32:25]RAPDU: 90 00 [18:32:25]wFMCommunicate OK [18:32:25]SAM_PROTO_ClearQueue done [18:32:25]KKMCreateOFDPacket [18:32:25]OFDProtocolAddRootSTLVToBuf [18:32:25]FM_MakeSignedData [18:32:25]FM_MakeSignedData [18:32:25]SAM_PROTO_SignData [18:32:25]wFMCommunicate request_size=4 [18:32:25]MH_SAM_APDU [18:32:25]CAPDU: 80 0D 01 02 [18:32:25]Write to MH i2c: E2 08 00 51 56 80 0D 01 02 00 00 00 00 20 [18:32:25]Write i2c OK [18:32:25]MH_I2C_Read... [18:32:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:32:25]Read from MH i2c: E2 [18:32:25]MH_I2C_Read... [18:32:25]Read from MH i2c: E2 03 00 [18:32:25]MH_I2C_Read... [18:32:25]Read from MH i2c: E2 03 00 51 56 00 90 00 1B [18:32:25]RAPDU: 90 00 [18:32:25]wFMCommunicate OK [18:32:25]wFMCommunicate request_size=255 [18:32:25]MH_SAM_APDU [18:32: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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 3E 0C 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 59 0B 01 00 35 04 06 00 2E [18:32:25]Write to MH i2c: E2 02 01 52 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 3E 0C 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 59 0B 01 00 35 04 06 00 2E 00 00 4E [18:32:25]Write i2c OK [18:32:25]MH_I2C_Read... [18:32:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:32:25]Read from MH i2c: E2 [18:32:25]MH_I2C_Read... [18:32:25]Read from MH i2c: E2 03 00 [18:32:25]MH_I2C_Read... [18:32:25]Read from MH i2c: E2 03 00 52 56 00 90 00 1C [18:32:25]RAPDU: 90 00 [18:32:25]wFMCommunicate OK [18:32:25]wFMCommunicate request_size=10 [18:32:25]MH_SAM_APDU [18:32:25]CAPDU: 80 0D 02 02 05 11 B3 7C 5C 4C [18:32:25]Write to MH i2c: E2 0D 00 53 56 80 0D 02 02 05 00 11 B3 7C 5C 4C 00 00 15 [18:32:25]Write i2c OK [18:32:25]MH_I2C_Read... [18:32:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:32:25]Read from MH i2c: E2 [18:32:25]MH_I2C_Read... [18:32:25]Read from MH i2c: E2 03 00 [18:32:25]MH_I2C_Read... [18:32:25]Read from MH i2c: E2 03 00 53 56 00 90 00 1D [18:32:25]RAPDU: 90 00 [18:32:25]wFMCommunicate OK [18:32:25]wFMCommunicate request_size=4 [18:32:25]MH_SAM_APDU [18:32:25]CAPDU: 80 0D 03 02 [18:32:25]Write to MH i2c: E2 08 00 54 56 80 0D 03 02 00 00 00 00 25 [18:32:25]Write i2c OK [18:32:25]MH_I2C_Read... [18:32:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:32:25]Read from MH i2c: E2 [18:32:25]MH_I2C_Read... [18:32:25]Read from MH i2c: E2 0B 00 [18:32:25]MH_I2C_Read... [18:32:25]Read from MH i2c: E2 0B 00 54 56 00 70 7B 60 1D 05 65 FC 3C 90 00 30 [18:32:25]RAPDU: 70 7B 60 1D 05 65 FC 3C 90 00 [18:32:25]wFMCommunicate OK [18:32:25]SAM_PROTO_SignData done [18:32:25]FM_MakeSignedData done [18:32:25]CreateOFDProtocolMessage [18:32:25]wFMCommunicate request_size=4 [18:32:25]MH_SAM_APDU [18:32:25]CAPDU: 80 11 00 00 [18:32:25]Write to MH i2c: E2 08 00 55 56 80 11 00 00 00 00 00 00 25 [18:32:25]Write i2c OK [18:32:25]MH_I2C_Read... [18:32:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:32:25]Read from MH i2c: E2 [18:32:25]MH_I2C_Read... [18:32:25]Read from MH i2c: E2 17 00 [18:32:25]MH_I2C_Read... [18:32:25]Read from MH i2c: E2 17 00 55 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 70 [18:32:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [18:32:25]wFMCommunicate OK [18:32:25]CreateOFDProtocolMessage done [18:32:25]OFDSenderStorePacket 68441 [18:32:25]StoreOFDPacket docnum=68441 [18:32:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 A3 54 07 01 06 D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 3E 0C 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 59 0B 01 00 35 04 06 00 2E 11 B3 7C 5C 4C 70 7B 60 1D 05 65 FC 3C [18:32:25]CheckFolder [18:32:25]dirname=/storage/ofd_packets [18:32:25]CheckFolder done [18:32:25]ProducePacketName [18:32:25]name=ofd_packets/00068441 [18:32:25]NVStorageSaveData ofd_packets/00068441 [18:32:25]File name is /storage/ofd_packets/00068441 [18:32:25]Write 301 bytes [18:32:25]NVStorageSaveData done [18:32:25]OFDSenderStorePacket done [18:32:25]KKMCreateOFDPacket done [18:32:25]NVStorageSaveData kkm_last_timestamp [18:32:25]File name is /storage/kkm_last_timestamp [18:32:25]Write 4 bytes [18:32:25]NVStorageSaveData done [18:32:25]ExternCall_PrintAddStr [18:32:25]wPrintStart [18:32:25]Write to MH i2c: 01 00 00 56 56 AC [18:32:25]Write i2c OK [18:32:25]MH_I2C_Read... [18:32:25]Read from MH i2c: 01 [18:32:25]MH_I2C_Read... [18:32:25]Read from MH i2c: 01 07 00 [18:32:25]MH_I2C_Read... [18:32:25]Read from MH i2c: 01 07 00 56 56 00 00 00 00 00 FF 0F C1 [18:32:25]RasterBufferAndPrint [18:32:25]line Счет N : (1)706543 [18:32:25]line ИНН: 02508201610067 [18:32:25]line Контрольно-Кассовый Чек [18:32:25]line ПРОДАЖА [18:32:25]line ТРК (МРК, ГНК) : 32 [18:32:25]line Товар: 2710124130 [18:32:25]line Аи-92-К-4 [18:32:25]line 7.480 * 66.90 [18:32:25]line = 500.41 [18:32:25]line НДС 12% НСП 1% [18:32:25]line > о реализуемом товаре [18:32:25]line ОКРУГЛЕНИЕ: -0.41 [18:32:25]line ИТОГО: 500.00 [18:32:25]line Внесено: 500.00 [18:32:25]line СДАЧА: 0.00 [18:32:25]line НСП 1% : 4.43 [18:32:25]line НДС 12% : 53.14 [18:32:25]line Наличными: 500.00 [18:32:25]line Безнал.: 0.00 [18:32:25]line Место: АЗС № 62 "Партнер Нефть" [18:32:25]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [18:32:25]line СНО: Общий режим [18:32:25]line Чек 187 03.06.2024 18:32 [18:32:25]line Смена: 324 ФФД: 1.0 [18:32:25]line ЗНМ: 0300000181 [18:32:25]line РНМ: 0000000000098096 [18:32:25]line Версия ККМ: 001 [18:32:25]line ФМ: 0000000000965400 [18:32:25]line ФД: 68441 [18:32:25]line ФПД: 50653560593484 [18:32:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T183230&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68441&fm=50653560593484&tin=02508201610067®Number=0000000000098096&sum=50000 [18:32:26]OFD Sender: Processing packet 68441 [packets to send 26, broken 25] [18:32:26]ProducePacketName [18:32:26]name=ofd_packets/00068441 [18:32:26]OFD Sender: To server: pG, [18:32:26]CommunicateWithHost lk.salyk.kg:30040 [18:32:26]ConnectInit lk.salyk.kg [18:32:26]written 0, free lines is 4095 [18:32:26]Connected sock=7 [18:32:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 A3 54 07 01 06 D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 3E 0C 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 59 0B 01 00 35 04 06 00 2E 11 B3 7C 5C 4C 70 7B 60 1D 05 65 FC 3C [18:32:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 E6 44 47 00 AF F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 59 0B 01 00 F4 03 04 00 39 B3 5D 66 B6 04 01 00 00 86 87 CC 2A 8C 7D 9B 2E [18:32:26]CommunicateWithHost err = 0 [18:32:26]CheckOFDResponse [18:32:26]1017 (14) - 77093643461234 [18:32:26]1041 (16) - 0000000000965400 [18:32:26]1040 (4) - 68441 [18:32:26]1012 (4) - 03.06.2024 12:12 [18:32:26]1206 (1) - 0 [18:32:26]OFD Sender: Remove packet 68441 [18:32:26]ProducePacketName [18:32:26]name=ofd_packets/00068441 [18:32:26]NVStorageDeleteData [18:32:26]Write to MH i2c: 01 00 00 81 56 D7 [18:32:26]Write i2c OK [18:32:26]MH_I2C_Read... [18:32:26]Read from MH i2c: 01 [18:32:26]MH_I2C_Read... [18:32:26]Read from MH i2c: 01 07 00 [18:32:26]MH_I2C_Read... [18:32:26]Read from MH i2c: 01 07 00 81 56 00 00 00 00 00 E1 0C CB [18:32:26]RasterBufferAndPrint [18:32:26]line [18:32:26]line [18:32:26]line [18:32:26]line [18:32:26]line [18:32:26]written 0, free lines is 3303 [18:32:26]MH_Cut [18:32:26]Write to MH i2c: D1 01 00 88 56 01 B0 [18:32:26]Write i2c OK [18:32:26]MH_I2C_Read... [18:32:26]Read from MH i2c: D1 [18:32:26]MH_I2C_Read... [18:32:26]Read from MH i2c: D1 01 00 [18:32:26]MH_I2C_Read... [18:32:26]Read from MH i2c: D1 01 00 88 56 00 AF [18:32:26]Write to MH i2c: 01 00 00 89 56 DF [18:32:26]Write i2c OK [18:32:26]MH_I2C_Read... [18:32:26]OFD Sender: No OFD packet to send [18:32:27]*** Cut start [18:32:27]*** Partial cut [18:32:27]*** CUTSNS_PIN = 1 [18:32:27]*** CUTSNS_PIN = 0 [18:32:27]*** Brake cut motor [18:32:28]Read from MH i2c: 01 [18:32:28]MH_I2C_Read... [18:32:28]*** Stop cut motor [18:32:28]*** Cut end [18:32:28]Read from MH i2c: 01 07 00 [18:32:28]MH_I2C_Read... [18:32:28]Read from MH i2c: 01 07 00 89 56 00 00 00 00 00 FF 0F F4 [18:32:28]process_action close_receipt done [18:32:28]requested_data is exist [18:32:28]produce_requested_data [18:32:28]requested_item fm.sn is exist - process it [18:32:28]wFMCommunicate request_size=4 [18:32:28]MH_SAM_APDU [18:32:28]CAPDU: 80 11 00 00 [18:32:28]Write to MH i2c: E2 08 00 8A 56 80 11 00 00 00 00 00 00 5A [18:32:28]Write i2c OK [18:32:28]MH_I2C_Read... [18:32:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:32:28]Read from MH i2c: E2 [18:32:28]MH_I2C_Read... [18:32:28]Read from MH i2c: E2 17 00 [18:32:28]MH_I2C_Read... [18:32:28]Read from MH i2c: E2 17 00 8A 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 A5 [18:32:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [18:32:28]wFMCommunicate OK [18:32:28]requested_item fd.num is exist - process it [18:32:28]SAM_PROTO_GetFieldsCounters [18:32:28]wFMCommunicate request_size=4 [18:32:28]MH_SAM_APDU [18:32:28]CAPDU: 80 13 00 00 [18:32:28]Write to MH i2c: E2 08 00 8B 56 80 13 00 00 00 00 00 00 5D [18:32:28]Write i2c OK [18:32:28]MH_I2C_Read... [18:32:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:32:28]Read from MH i2c: E2 [18:32:28]MH_I2C_Read... [18:32:28]Read from MH i2c: E2 62 00 [18:32:28]MH_I2C_Read... [18:32:28]Read from MH i2c: E2 62 00 8B 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 59 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 58 [18:32:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 59 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:32:28]wFMCommunicate OK [18:32:28]SAM_PROTO_GetFieldsCounters done [18:32:28]requested_item shift.num is exist - process it [18:32:28]requested_item shift.opened is exist - process it [18:32:28]req_shift_opened [18:32:28]FM_GetShiftState [18:32:28]SAM_PROTO_GetShiftState [18:32:28]wFMCommunicate request_size=4 [18:32:28]MH_SAM_APDU [18:32:28]CAPDU: 80 13 01 00 [18:32:28]Write to MH i2c: E2 08 00 8C 56 80 13 01 00 00 00 00 00 5F [18:32:28]Write i2c OK [18:32:28]MH_I2C_Read... [18:32:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:32:28]Read from MH i2c: E2 [18:32:28]MH_I2C_Read... [18:32:28]Read from MH i2c: E2 0E 00 [18:32:28]MH_I2C_Read... [18:32:28]Read from MH i2c: E2 0E 00 8C 56 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 3A [18:32:28]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [18:32:28]wFMCommunicate OK [18:32:28]SAM_PROTO_GetShiftState done [18:32:28]FM_GetShiftState done [18:32:28]req_shift_opened done [18:32:28]requested_item shift.open_date is exist - process it [18:32:28]req_shift_open_date [18:32:28]req_shift_open_date done [18:32:28]produce_requested_data done [18:32:28]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68441,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [18:32:28]process_action_free close_receipt [18:32:28]json_value_free [18:32:28]json_value_free done [18:32:28]process_json_proto returns [18:32:28]Send response to host [18:32:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68441,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [18:32:28]free response buf [18:32:28]execute_script done [18:32:28]execute_script returns [18:32:28]free content buf [18:32:28]Sock 5.Close socket [18:32:28]Sock 5.Thread stoped [18:32:31]OFD Sender: No OFD packet to send [18:32:37]OFD Sender: No OFD packet to send [18:32:42]OFD Sender: No OFD packet to send [18:32:47]OFD Sender: No OFD packet to send [18:32:52]OFD Sender: No OFD packet to send [18:32:57]OFD Sender: No OFD packet to send [18:33:02]OFD Sender: No OFD packet to send [18:33:07]OFD Sender: No OFD packet to send [18:33:12]OFD Sender: No OFD packet to send [18:33:17]OFD Sender: No OFD packet to send [18:33:22]OFD Sender: No OFD packet to send [18:33:27]OFD Sender: No OFD packet to send [18:33:32]OFD Sender: No OFD packet to send [18:33:37]OFD Sender: No OFD packet to send [18:33:42]OFD Sender: No OFD packet to send [18:33:47]OFD Sender: No OFD packet to send [18:33:52]OFD Sender: No OFD packet to send [18:33:57]OFD Sender: No OFD packet to send [18:34:02]OFD Sender: No OFD packet to send [18:34:07]OFD Sender: No OFD packet to send [18:34:12]OFD Sender: No OFD packet to send [18:34:17]OFD Sender: No OFD packet to send [18:34:22]OFD Sender: No OFD packet to send [18:34:27]OFD Sender: No OFD packet to send [18:34:32]OFD Sender: No OFD packet to send [18:34:37]OFD Sender: No OFD packet to send [18:34:42]OFD Sender: No OFD packet to send [18:34:47]OFD Sender: No OFD packet to send [18:34:52]OFD Sender: No OFD packet to send [18:34:57]OFD Sender: No OFD packet to send [18:35:02]accept exits with 6 [18:35:02]New connection [18:35:02]New thread 3066686820 created [18:35:02]Thread 3066543460 joined [18:35:02]Waiting for new connection... [18:35:02] Sock 6.Parse request [18:35:02]Sock 6.Check first char [18:35:02]Sock 6.First char is OK [18:35:02]request: POST /json_proto HTTP/1.0 [18:35:02]Method: POST [18:35:02]URL: /json_proto [18:35:02]Method is POST - this is cgi request [18:35:02]url: /json_proto [18:35:02]query_string will be loaded in cgi processing [18:35:02]execute_cgi json_proto POST (null) [18:35:02]execute_cgi path=json_proto method=POST [18:35:02]POST find Content-Length [18:35:02]Host: 172.17.36.132:8080 [18:35:02]Content-Length: 677 [18:35:02]Content-Type: application/json [18:35:02] [18:35:02]POST finish read [18:35:02]Found Content-Length = 677 [18:35:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706544", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:35:02]execute_script... [18:35: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)706544", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:35:02]POST & json_proto [18:35:02]process_json_proto [18:35:02]json parsed OK: [18:35:02]protocol is kg_v1.0 [18:35:02]action value=close_receipt [18:35:02]process_action close_receipt [18:35:02]cmd_close_receipt [18:35:02]MH_GetDate [18:35:02]Write to MH i2c: F0 00 00 8D 56 D2 [18:35:02]Write i2c OK [18:35:02]MH_I2C_Read... [18:35:02]Read from MH i2c: F0 [18:35:02]MH_I2C_Read... [18:35:02]Read from MH i2c: F0 09 00 [18:35:02]MH_I2C_Read... [18:35:02]Read from MH i2c: F0 09 00 8D 56 00 DC 0C 5E 66 B2 22 B0 64 6F [18:35:02]GetLastDocTimeStamp 1717439550 [18:35:02]current date 1717439708 [18:35:02]FM_GetShiftState [18:35:02]SAM_PROTO_GetShiftState [18:35:02]wFMCommunicate request_size=4 [18:35:02]MH_SAM_APDU [18:35:02]CAPDU: 80 13 01 00 [18:35:02]Write to MH i2c: E2 08 00 8E 56 80 13 01 00 00 00 00 00 61 [18:35:02]Write i2c OK [18:35:02]MH_I2C_Read... [18:35:02]OFD Sender: No OFD packet to send [18:35:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:35:02]Read from MH i2c: E2 [18:35:02]MH_I2C_Read... [18:35:02]Read from MH i2c: E2 0E 00 [18:35:02]MH_I2C_Read... [18:35:02]Read from MH i2c: E2 0E 00 8E 56 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 3C [18:35:02]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [18:35:02]wFMCommunicate OK [18:35:02]SAM_PROTO_GetShiftState done [18:35:02]FM_GetShiftState done [18:35:02]opened in 1717378033 [18:35:02]opened+sec_in_day 1717464433 [18:35:02]quantity*price = 20003 [18:35:02]sum+1 = 20004 [18:35:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 188 03.06.2024 18:35 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68442 ФПД: 2221793638531 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T183508&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68442&fm=2221793638531&tin=02508201610067®Number=0000000000098096&sum=20000 [18:35:03]StoreToDocumentArchive [18:35:03]shift 324 fd 68442 [18:35:03]save to /storage/0324/doc_00068442 [18:35:03]save last doc name /storage/0324/doc_00068442 to /storage/kkm_last_doc_name [18:35:03]save OK [18:35:03]Clear old archive folders... [18:35:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:35:03]tlvbuf is 001CCD50 [18:35:03]SAM_PROTO_ClearQueue [18:35:03]wFMCommunicate request_size=4 [18:35:03]MH_SAM_APDU [18:35:03]CAPDU: 80 09 00 00 [18:35:03]Write to MH i2c: E2 08 00 9B 56 80 09 00 00 00 00 00 00 63 [18:35:03]Write i2c OK [18:35:03]MH_I2C_Read... [18:35:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:35:03]Read from MH i2c: E2 [18:35:03]MH_I2C_Read... [18:35:03]Read from MH i2c: E2 03 00 [18:35:03]MH_I2C_Read... [18:35:03]Read from MH i2c: E2 03 00 9B 56 00 90 00 65 [18:35:03]RAPDU: 90 00 [18:35:03]wFMCommunicate OK [18:35:03]SAM_PROTO_ClearQueue done [18:35:03]KKMCreateOFDPacket [18:35:03]OFDProtocolAddRootSTLVToBuf [18:35:03]FM_MakeSignedData [18:35:03]FM_MakeSignedData [18:35:03]SAM_PROTO_SignData [18:35:03]wFMCommunicate request_size=4 [18:35:03]MH_SAM_APDU [18:35:03]CAPDU: 80 0D 01 02 [18:35:03]Write to MH i2c: E2 08 00 9C 56 80 0D 01 02 00 00 00 00 6B [18:35:03]Write i2c OK [18:35:03]MH_I2C_Read... [18:35:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:35:03]Read from MH i2c: E2 [18:35:03]MH_I2C_Read... [18:35:03]Read from MH i2c: E2 03 00 [18:35:03]MH_I2C_Read... [18:35:03]Read from MH i2c: E2 03 00 9C 56 00 90 00 66 [18:35:03]RAPDU: 90 00 [18:35:03]wFMCommunicate OK [18:35:03]wFMCommunicate request_size=255 [18:35:03]MH_SAM_APDU [18:35:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 DC 0C 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 5A 0B 01 00 35 04 06 00 02 [18:35:03]Write to MH i2c: E2 02 01 9D 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 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 DC 0C 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 5A 0B 01 00 35 04 06 00 02 00 00 CF [18:35:03]Write i2c OK [18:35:03]MH_I2C_Read... [18:35:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:35:03]Read from MH i2c: E2 [18:35:03]MH_I2C_Read... [18:35:03]Read from MH i2c: E2 03 00 [18:35:03]MH_I2C_Read... [18:35:03]Read from MH i2c: E2 03 00 9D 56 00 90 00 67 [18:35:03]RAPDU: 90 00 [18:35:03]wFMCommunicate OK [18:35:03]wFMCommunicate request_size=10 [18:35:03]MH_SAM_APDU [18:35:03]CAPDU: 80 0D 02 02 05 05 4D 38 78 83 [18:35:03]Write to MH i2c: E2 0D 00 9E 56 80 0D 02 02 05 00 05 4D 38 78 83 00 00 FD [18:35:03]Write i2c OK [18:35:03]MH_I2C_Read... [18:35:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:35:03]Read from MH i2c: E2 [18:35:03]MH_I2C_Read... [18:35:03]Read from MH i2c: E2 03 00 [18:35:03]MH_I2C_Read... [18:35:03]Read from MH i2c: E2 03 00 9E 56 00 90 00 68 [18:35:03]RAPDU: 90 00 [18:35:03]wFMCommunicate OK [18:35:03]wFMCommunicate request_size=4 [18:35:03]MH_SAM_APDU [18:35:03]CAPDU: 80 0D 03 02 [18:35:03]Write to MH i2c: E2 08 00 9F 56 80 0D 03 02 00 00 00 00 70 [18:35:03]Write i2c OK [18:35:03]MH_I2C_Read... [18:35:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:35:03]Read from MH i2c: E2 [18:35:03]MH_I2C_Read... [18:35:03]Read from MH i2c: E2 0B 00 [18:35:03]MH_I2C_Read... [18:35:03]Read from MH i2c: E2 0B 00 9F 56 00 FE 41 E9 F8 61 CE 73 67 90 00 9A [18:35:03]RAPDU: FE 41 E9 F8 61 CE 73 67 90 00 [18:35:03]wFMCommunicate OK [18:35:03]SAM_PROTO_SignData done [18:35:03]FM_MakeSignedData done [18:35:03]CreateOFDProtocolMessage [18:35:03]wFMCommunicate request_size=4 [18:35:03]MH_SAM_APDU [18:35:03]CAPDU: 80 11 00 00 [18:35:03]Write to MH i2c: E2 08 00 A0 56 80 11 00 00 00 00 00 00 70 [18:35:03]Write i2c OK [18:35:03]MH_I2C_Read... [18:35:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:35:03]Read from MH i2c: E2 [18:35:03]MH_I2C_Read... [18:35:03]Read from MH i2c: E2 17 00 [18:35:03]MH_I2C_Read... [18:35:03]Read from MH i2c: E2 17 00 A0 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 BB [18:35:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [18:35:03]wFMCommunicate OK [18:35:03]CreateOFDProtocolMessage done [18:35:03]OFDSenderStorePacket 68442 [18:35:03]StoreOFDPacket docnum=68442 [18:35:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 B8 91 07 01 9F 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 DC 0C 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 5A 0B 01 00 35 04 06 00 02 05 4D 38 78 83 FE 41 E9 F8 61 CE 73 67 [18:35:03]CheckFolder [18:35:03]dirname=/storage/ofd_packets [18:35:03]CheckFolder done [18:35:03]ProducePacketName [18:35:03]name=ofd_packets/00068442 [18:35:03]NVStorageSaveData ofd_packets/00068442 [18:35:03]File name is /storage/ofd_packets/00068442 [18:35:03]Write 301 bytes [18:35:03]NVStorageSaveData done [18:35:03]OFDSenderStorePacket done [18:35:03]KKMCreateOFDPacket done [18:35:03]NVStorageSaveData kkm_last_timestamp [18:35:03]File name is /storage/kkm_last_timestamp [18:35:03]Write 4 bytes [18:35:03]NVStorageSaveData done [18:35:03]ExternCall_PrintAddStr [18:35:03]wPrintStart [18:35:03]Write to MH i2c: 01 00 00 A1 56 F7 [18:35:03]Write i2c OK [18:35:03]MH_I2C_Read... [18:35:03]Read from MH i2c: 01 [18:35:03]MH_I2C_Read... [18:35:03]Read from MH i2c: 01 07 00 [18:35:03]MH_I2C_Read... [18:35:03]Read from MH i2c: 01 07 00 A1 56 00 00 00 00 00 FF 0F 0C [18:35:03]RasterBufferAndPrint [18:35:03]line Счет N : (1)706544 [18:35:03]line ИНН: 02508201610067 [18:35:03]line Контрольно-Кассовый Чек [18:35:03]line ПРОДАЖА [18:35:03]line ТРК (МРК, ГНК) : 42 [18:35:03]line Товар: 2710124130 [18:35:03]line Аи-92-К-4 [18:35:03]line 2.990 * 66.90 [18:35:03]line = 200.03 [18:35:03]line НДС 12% НСП 1% [18:35:03]line > о реализуемом товаре [18:35:03]line ОКРУГЛЕНИЕ: -0.03 [18:35:03]line ИТОГО: 200.00 [18:35:03]line Внесено: 200.00 [18:35:03]line СДАЧА: 0.00 [18:35:03]line НСП 1% : 1.77 [18:35:03]line НДС 12% : 21.24 [18:35:03]line Наличными: 200.00 [18:35:03]line Безнал.: 0.00 [18:35:03]line Место: АЗС № 62 "Партнер Нефть" [18:35:03]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [18:35:03]line СНО: Общий режим [18:35:03]line Чек 188 03.06.2024 18:35 [18:35:03]line Смена: 324 ФФД: 1.0 [18:35:03]line ЗНМ: 0300000181 [18:35:03]line РНМ: 0000000000098096 [18:35:03]line Версия ККМ: 001 [18:35:03]line ФМ: 0000000000965400 [18:35:03]line ФД: 68442 [18:35:03]line ФПД: 2221793638531 [18:35:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T183508&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68442&fm=2221793638531&tin=02508201610067®Number=0000000000098096&sum=20000 [18:35:04]OFD Sender: Processing packet 68442 [packets to send 26, broken 25] [18:35:04]ProducePacketName [18:35:04]name=ofd_packets/00068442 [18:35:04]OFD Sender: To server: pG, [18:35:04]CommunicateWithHost lk.salyk.kg:30040 [18:35:04]ConnectInit lk.salyk.kg [18:35:04]written 0, free lines is 4095 [18:35:04]Connected sock=7 [18:35:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 B8 91 07 01 9F 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 DC 0C 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 5A 0B 01 00 35 04 06 00 02 05 4D 38 78 83 FE 41 E9 F8 61 CE 73 67 [18:35:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 FC C7 47 00 76 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 5A 0B 01 00 F4 03 04 00 D7 B3 5D 66 B6 04 01 00 00 C5 56 D7 49 23 E4 72 03 [18:35:04]CommunicateWithHost err = 0 [18:35:04]CheckOFDResponse [18:35:04]1017 (14) - 77093643461234 [18:35:04]1041 (16) - 0000000000965400 [18:35:04]1040 (4) - 68442 [18:35:04]1012 (4) - 03.06.2024 12:15 [18:35:04]1206 (1) - 0 [18:35:04]OFD Sender: Remove packet 68442 [18:35:04]ProducePacketName [18:35:04]name=ofd_packets/00068442 [18:35:04]NVStorageDeleteData [18:35:04]Write to MH i2c: 01 00 00 CC 56 22 [18:35:04]Write i2c OK [18:35:04]MH_I2C_Read... [18:35:04]Read from MH i2c: 01 [18:35:04]MH_I2C_Read... [18:35:04]Read from MH i2c: 01 07 00 [18:35:04]MH_I2C_Read... [18:35:04]Read from MH i2c: 01 07 00 CC 56 00 00 00 00 00 D7 0C 0C [18:35:04]RasterBufferAndPrint [18:35:04]line [18:35:04]line [18:35:04]line [18:35:04]line [18:35:04]line [18:35:04]written 0, free lines is 3294 [18:35:04]MH_Cut [18:35:04]Write to MH i2c: D1 01 00 D3 56 01 FB [18:35:04]Write i2c OK [18:35:04]MH_I2C_Read... [18:35:04]Read from MH i2c: D1 [18:35:04]MH_I2C_Read... [18:35:04]Read from MH i2c: D1 01 00 [18:35:04]MH_I2C_Read... [18:35:04]Read from MH i2c: D1 01 00 D3 56 00 FA [18:35:04]Write to MH i2c: 01 00 00 D4 56 2A [18:35:04]Write i2c OK [18:35:04]MH_I2C_Read... [18:35:04]OFD Sender: No OFD packet to send [18:35:05]*** Cut start [18:35:05]*** Partial cut [18:35:05]*** CUTSNS_PIN = 1 [18:35:05]*** CUTSNS_PIN = 0 [18:35:05]*** Brake cut motor [18:35:05]Read from MH i2c: 01 [18:35:05]MH_I2C_Read... [18:35:05]*** Stop cut motor [18:35:06]*** Cut end [18:35:06]Read from MH i2c: 01 07 00 [18:35:06]MH_I2C_Read... [18:35:06]Read from MH i2c: 01 07 00 D4 56 00 00 00 00 00 FF 0F 3F [18:35:06]process_action close_receipt done [18:35:06]requested_data is exist [18:35:06]produce_requested_data [18:35:06]requested_item fm.sn is exist - process it [18:35:06]wFMCommunicate request_size=4 [18:35:06]MH_SAM_APDU [18:35:06]CAPDU: 80 11 00 00 [18:35:06]Write to MH i2c: E2 08 00 D5 56 80 11 00 00 00 00 00 00 A5 [18:35:06]Write i2c OK [18:35:06]MH_I2C_Read... [18:35:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:35:06]Read from MH i2c: E2 [18:35:06]MH_I2C_Read... [18:35:06]Read from MH i2c: E2 17 00 [18:35:06]MH_I2C_Read... [18:35:06]Read from MH i2c: E2 17 00 D5 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 F0 [18:35:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [18:35:06]wFMCommunicate OK [18:35:06]requested_item fd.num is exist - process it [18:35:06]SAM_PROTO_GetFieldsCounters [18:35:06]wFMCommunicate request_size=4 [18:35:06]MH_SAM_APDU [18:35:06]CAPDU: 80 13 00 00 [18:35:06]Write to MH i2c: E2 08 00 D6 56 80 13 00 00 00 00 00 00 A8 [18:35:06]Write i2c OK [18:35:06]MH_I2C_Read... [18:35:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:35:06]Read from MH i2c: E2 [18:35:06]MH_I2C_Read... [18:35:06]Read from MH i2c: E2 62 00 [18:35:06]MH_I2C_Read... [18:35:06]Read from MH i2c: E2 62 00 D6 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 5A 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 A7 [18:35:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 5A 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:35:06]wFMCommunicate OK [18:35:06]SAM_PROTO_GetFieldsCounters done [18:35:06]requested_item shift.num is exist - process it [18:35:06]requested_item shift.opened is exist - process it [18:35:06]req_shift_opened [18:35:06]FM_GetShiftState [18:35:06]SAM_PROTO_GetShiftState [18:35:06]wFMCommunicate request_size=4 [18:35:06]MH_SAM_APDU [18:35:06]CAPDU: 80 13 01 00 [18:35:06]Write to MH i2c: E2 08 00 D7 56 80 13 01 00 00 00 00 00 AA [18:35:06]Write i2c OK [18:35:06]MH_I2C_Read... [18:35:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:35:06]Read from MH i2c: E2 [18:35:06]MH_I2C_Read... [18:35:06]Read from MH i2c: E2 0E 00 [18:35:06]MH_I2C_Read... [18:35:06]Read from MH i2c: E2 0E 00 D7 56 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 85 [18:35:06]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [18:35:06]wFMCommunicate OK [18:35:06]SAM_PROTO_GetShiftState done [18:35:06]FM_GetShiftState done [18:35:06]req_shift_opened done [18:35:06]requested_item shift.open_date is exist - process it [18:35:06]req_shift_open_date [18:35:06]req_shift_open_date done [18:35:06]produce_requested_data done [18:35:06]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68442,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [18:35:06]process_action_free close_receipt [18:35:06]json_value_free [18:35:06]json_value_free done [18:35:06]process_json_proto returns [18:35:06]Send response to host [18:35:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68442,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [18:35:06]free response buf [18:35:06]execute_script done [18:35:06]execute_script returns [18:35:06]free content buf [18:35:06]Sock 6.Close socket [18:35:06]Sock 6.Thread stoped [18:35:09]OFD Sender: No OFD packet to send [18:35:14]OFD Sender: No OFD packet to send [18:35:19]OFD Sender: No OFD packet to send [18:35:24]OFD Sender: No OFD packet to send [18:35:29]OFD Sender: No OFD packet to send [18:35:34]OFD Sender: No OFD packet to send [18:35:39]OFD Sender: No OFD packet to send [18:35:44]OFD Sender: No OFD packet to send [18:35:49]OFD Sender: No OFD packet to send [18:35:54]OFD Sender: No OFD packet to send [18:35:59]OFD Sender: No OFD packet to send [18:36:04]OFD Sender: No OFD packet to send [18:36:09]OFD Sender: No OFD packet to send [18:36:14]OFD Sender: No OFD packet to send [18:36:19]OFD Sender: No OFD packet to send [18:36:24]OFD Sender: No OFD packet to send [18:36:29]OFD Sender: No OFD packet to send [18:36:34]OFD Sender: No OFD packet to send [18:36:39]OFD Sender: No OFD packet to send [18:36:44]OFD Sender: No OFD packet to send [18:36:49]OFD Sender: No OFD packet to send [18:36:54]OFD Sender: No OFD packet to send [18:36:59]OFD Sender: No OFD packet to send [18:37:04]OFD Sender: No OFD packet to send [18:37:09]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:24]accept exits with 5 [18:45:24]New connection [18:45:24]New thread 3066543460 created [18:45:24]Thread 3066686820 joined [18:45:24]Waiting for new connection... [18:45:24] Sock 5.Parse request [18:45:24]Sock 5.Check first char [18:45:24]Sock 5.First char is OK [18:45:24]request: POST /json_proto HTTP/1.0 [18:45:24]Method: POST [18:45:24]URL: /json_proto [18:45:24]Method is POST - this is cgi request [18:45:24]url: /json_proto [18:45:24]query_string will be loaded in cgi processing [18:45:24]execute_cgi json_proto POST (null) [18:45:24]execute_cgi path=json_proto method=POST [18:45:24]POST find Content-Length [18:45:24]Host: 172.17.36.132:8080 [18:45:24]Content-Length: 682 [18:45:24]Content-Type: application/json [18:45:24] [18:45:24]POST finish read [18:45:24]Found Content-Length = 682 [18:45:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706545", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 2.750, "sum" : 200.48, "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" ] } } [18:45:24]execute_script... [18:45: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)706545", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 2.750, "sum" : 200.48, "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" ] } } [18:45:24]POST & json_proto [18:45:24]process_json_proto [18:45:24]json parsed OK: [18:45:24]protocol is kg_v1.0 [18:45:24]action value=close_receipt [18:45:24]process_action close_receipt [18:45:24]cmd_close_receipt [18:45:24]MH_GetDate [18:45:24]Write to MH i2c: F0 00 00 D8 56 1D [18:45:24]Write i2c OK [18:45:24]MH_I2C_Read... [18:45:24]Read from MH i2c: F0 [18:45:24]MH_I2C_Read... [18:45:24]Read from MH i2c: F0 09 00 [18:45:24]MH_I2C_Read... [18:45:24]Read from MH i2c: F0 09 00 D8 56 00 4A 0F 5E 66 B2 22 B0 64 2B [18:45:24]GetLastDocTimeStamp 1717439708 [18:45:24]current date 1717440330 [18:45:24]FM_GetShiftState [18:45:24]SAM_PROTO_GetShiftState [18:45:24]wFMCommunicate request_size=4 [18:45:24]MH_SAM_APDU [18:45:24]CAPDU: 80 13 01 00 [18:45:24]Write to MH i2c: E2 08 00 D9 56 80 13 01 00 00 00 00 00 AC [18:45:24]Write i2c OK [18:45:24]MH_I2C_Read... [18:45:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:24]Read from MH i2c: E2 [18:45:24]MH_I2C_Read... [18:45:24]Read from MH i2c: E2 0E 00 [18:45:24]MH_I2C_Read... [18:45:24]Read from MH i2c: E2 0E 00 D9 56 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 87 [18:45:24]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [18:45:24]wFMCommunicate OK [18:45:24]SAM_PROTO_GetShiftState done [18:45:24]FM_GetShiftState done [18:45:24]opened in 1717378033 [18:45:24]opened+sec_in_day 1717464433 [18:45:24]quantity*price = 20047 [18:45:24]sum+1 = 20049 [18:45:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.48 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.29 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 189 03.06.2024 18:45 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68443 ФПД: 159212212477959 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T184530&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68443&fm=159212212477959&tin=02508201610067®Number=0000000000098096&sum=20000 [18:45:25]StoreToDocumentArchive [18:45:25]shift 324 fd 68443 [18:45:25]save to /storage/0324/doc_00068443 [18:45:25]save last doc name /storage/0324/doc_00068443 to /storage/kkm_last_doc_name [18:45:25]save OK [18:45:25]Clear old archive folders... [18:45:25]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:45:25]tlvbuf is 003DFA30 [18:45:25]SAM_PROTO_ClearQueue [18:45:25]wFMCommunicate request_size=4 [18:45:25]MH_SAM_APDU [18:45:25]CAPDU: 80 09 00 00 [18:45:25]Write to MH i2c: E2 08 00 E6 56 80 09 00 00 00 00 00 00 AE [18:45:25]Write i2c OK [18:45:25]MH_I2C_Read... [18:45:25]Read from MH i2c: E2 [18:45:25]MH_I2C_Read... [18:45:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:45:25]Read from MH i2c: E2 03 00 [18:45:25]MH_I2C_Read... [18:45:25]Read from MH i2c: E2 03 00 E6 56 00 90 00 B0 [18:45:25]RAPDU: 90 00 [18:45:25]wFMCommunicate OK [18:45:25]SAM_PROTO_ClearQueue done [18:45:25]KKMCreateOFDPacket [18:45:25]OFDProtocolAddRootSTLVToBuf [18:45:25]FM_MakeSignedData [18:45:25]FM_MakeSignedData [18:45:25]SAM_PROTO_SignData [18:45:25]wFMCommunicate request_size=4 [18:45:25]MH_SAM_APDU [18:45:25]CAPDU: 80 0D 01 02 [18:45:25]Write to MH i2c: E2 08 00 E7 56 80 0D 01 02 00 00 00 00 B6 [18:45:25]Write i2c OK [18:45:25]MH_I2C_Read... [18:45:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:45:25]Read from MH i2c: E2 [18:45:25]MH_I2C_Read... [18:45:25]Read from MH i2c: E2 03 00 [18:45:25]MH_I2C_Read... [18:45:25]Read from MH i2c: E2 03 00 E7 56 00 90 00 B1 [18:45:25]RAPDU: 90 00 [18:45:25]wFMCommunicate OK [18:45:25]wFMCommunicate request_size=255 [18:45:25]MH_SAM_APDU [18:45: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 34 FF 03 08 00 03 BE 0A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 50 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 51 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 BD 00 00 00 F4 03 04 00 4A 0F 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 5B 0B 01 00 35 04 06 00 [18:45:25]Write to MH i2c: E2 02 01 E8 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 34 FF 03 08 00 03 BE 0A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 50 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 51 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 BD 00 00 00 F4 03 04 00 4A 0F 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 5B 0B 01 00 35 04 06 00 00 00 61 [18:45:25]Write i2c OK [18:45:25]MH_I2C_Read... [18:45:25]OFD Sender: No OFD packet to send [18:45:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:25]Read from MH i2c: E2 [18:45:25]MH_I2C_Read... [18:45:25]Read from MH i2c: E2 03 00 [18:45:25]MH_I2C_Read... [18:45:25]Read from MH i2c: E2 03 00 E8 56 00 90 00 B2 [18:45:25]RAPDU: 90 00 [18:45:25]wFMCommunicate OK [18:45:25]wFMCommunicate request_size=11 [18:45:25]MH_SAM_APDU [18:45:25]CAPDU: 80 0D 02 02 06 90 CD 7B 5E 60 07 [18:45:25]Write to MH i2c: E2 0E 00 E9 56 80 0D 02 02 06 00 90 CD 7B 5E 60 07 00 00 62 [18:45:25]Write i2c OK [18:45:25]MH_I2C_Read... [18:45:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:25]Read from MH i2c: E2 [18:45:25]MH_I2C_Read... [18:45:25]Read from MH i2c: E2 03 00 [18:45:25]MH_I2C_Read... [18:45:25]Read from MH i2c: E2 03 00 E9 56 00 90 00 B3 [18:45:25]RAPDU: 90 00 [18:45:25]wFMCommunicate OK [18:45:25]wFMCommunicate request_size=4 [18:45:25]MH_SAM_APDU [18:45:25]CAPDU: 80 0D 03 02 [18:45:25]Write to MH i2c: E2 08 00 EA 56 80 0D 03 02 00 00 00 00 BB [18:45:25]Write i2c OK [18:45:25]MH_I2C_Read... [18:45:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:45:25]Read from MH i2c: E2 [18:45:25]MH_I2C_Read... [18:45:25]Read from MH i2c: E2 0B 00 [18:45:25]MH_I2C_Read... [18:45:25]Read from MH i2c: E2 0B 00 EA 56 00 D6 A3 D4 F2 B3 9A 2E 39 90 00 AF [18:45:25]RAPDU: D6 A3 D4 F2 B3 9A 2E 39 90 00 [18:45:25]wFMCommunicate OK [18:45:25]SAM_PROTO_SignData done [18:45:25]FM_MakeSignedData done [18:45:25]CreateOFDProtocolMessage [18:45:25]wFMCommunicate request_size=4 [18:45:25]MH_SAM_APDU [18:45:25]CAPDU: 80 11 00 00 [18:45:25]Write to MH i2c: E2 08 00 EB 56 80 11 00 00 00 00 00 00 BB [18:45:25]Write i2c OK [18:45:25]MH_I2C_Read... [18:45:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:25]Read from MH i2c: E2 [18:45:25]MH_I2C_Read... [18:45:25]Read from MH i2c: E2 17 00 [18:45:25]MH_I2C_Read... [18:45:25]Read from MH i2c: E2 17 00 EB 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 06 [18:45:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [18:45:25]wFMCommunicate OK [18:45:25]CreateOFDProtocolMessage done [18:45:25]OFDSenderStorePacket 68443 [18:45:25]StoreOFDPacket docnum=68443 [18:45:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 72 FF 08 01 9F E2 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 34 FF 03 08 00 03 BE 0A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 50 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 51 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 BD 00 00 00 F4 03 04 00 4A 0F 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 5B 0B 01 00 35 04 06 00 90 CD 7B 5E 60 07 D6 A3 D4 F2 B3 9A 2E 39 [18:45:25]CheckFolder [18:45:25]dirname=/storage/ofd_packets [18:45:25]CheckFolder done [18:45:25]ProducePacketName [18:45:25]name=ofd_packets/00068443 [18:45:25]NVStorageSaveData ofd_packets/00068443 [18:45:25]File name is /storage/ofd_packets/00068443 [18:45:25]Write 302 bytes [18:45:25]NVStorageSaveData done [18:45:25]OFDSenderStorePacket done [18:45:25]KKMCreateOFDPacket done [18:45:25]NVStorageSaveData kkm_last_timestamp [18:45:25]File name is /storage/kkm_last_timestamp [18:45:25]Write 4 bytes [18:45:25]NVStorageSaveData done [18:45:25]ExternCall_PrintAddStr [18:45:25]wPrintStart [18:45:25]Write to MH i2c: 01 00 00 EC 56 42 [18:45:25]OFD Sender: Processing packet 68443 [packets to send 26, broken 25] [18:45:25]ProducePacketName [18:45:25]name=ofd_packets/00068443 [18:45:25]OFD Sender: To server: pG, [18:45:25]CommunicateWithHost lk.salyk.kg:30040 [18:45:25]ConnectInit lk.salyk.kg [18:45:25]Write i2c OK [18:45:25]MH_I2C_Read... [18:45:25]Read from MH i2c: 01 [18:45:25]MH_I2C_Read... [18:45:25]Read from MH i2c: 01 07 00 [18:45:25]MH_I2C_Read... [18:45:25]Read from MH i2c: 01 07 00 EC 56 00 00 00 00 00 FF 0F 57 [18:45:25]RasterBufferAndPrint [18:45:25]line Счет N : (1)706545 [18:45:25]line ИНН: 02508201610067 [18:45:25]line Контрольно-Кассовый Чек [18:45:25]line ПРОДАЖА [18:45:25]line ТРК (МРК, ГНК) : 11 [18:45:25]line Товар: 2710194210 [18:45:25]line ДТ(л)-К-4 [18:45:25]line 2.750 * 72.90 [18:45:25]line = 200.48 [18:45:25]line НДС 12% НСП 1% [18:45:25]line > о реализуемом товаре [18:45:25]line ОКРУГЛЕНИЕ: -0.48 [18:45:25]line ИТОГО: 200.00 [18:45:25]line Внесено: 200.00 [18:45:25]line СДАЧА: 0.00 [18:45:25]line НСП 1% : 1.77 [18:45:25]line НДС 12% : 21.29 [18:45:25]line Наличными: 200.00 [18:45:25]line Безнал.: 0.00 [18:45:25]line Место: АЗС № 62 "Партнер Нефть" [18:45:25]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [18:45:25]line СНО: Общий режим [18:45:25]line Чек 189 03.06.2024 18:45 [18:45:25]line Смена: 324 ФФД: 1.0 [18:45:25]line ЗНМ: 0300000181 [18:45:25]line РНМ: 0000000000098096 [18:45:25]line Версия ККМ: 001 [18:45:25]line ФМ: 0000000000965400 [18:45:25]line ФД: 68443 [18:45:25]line ФПД: 159212212477959 [18:45:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T184530&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68443&fm=159212212477959&tin=02508201610067®Number=0000000000098096&sum=20000 [18:45:26]Connected sock=7 [18:45:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 72 FF 08 01 9F E2 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 34 FF 03 08 00 03 BE 0A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 50 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 51 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 BD 00 00 00 F4 03 04 00 4A 0F 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 5B 0B written 0, free lines is 4095 [18:45:26]01 00 35 04 06 00 90 CD 7B 5E 60 07 D6 A3 D4 F2 B3 9A 2E 39 [18:45:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 D6 09 47 00 0A 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 5B 0B 01 00 F4 03 04 00 45 B6 5D 66 B6 04 01 00 00 3B 72 A5 26 D9 1E E8 99 [18:45:26]CommunicateWithHost err = 0 [18:45:26]CheckOFDResponse [18:45:26]1017 (14) - 77093643461234 [18:45:26]1041 (16) - 0000000000965400 [18:45:26]1040 (4) - 68443 [18:45:26]1012 (4) - 03.06.2024 12:25 [18:45:26]1206 (1) - 0 [18:45:26]OFD Sender: Remove packet 68443 [18:45:26]ProducePacketName [18:45:26]name=ofd_packets/00068443 [18:45:26]NVStorageDeleteData [18:45:26]Write to MH i2c: 01 00 00 17 57 6E [18:45:26]Write i2c OK [18:45:26]MH_I2C_Read... [18:45:26]Read from MH i2c: 01 [18:45:26]MH_I2C_Read... [18:45:26]Read from MH i2c: 01 07 00 [18:45:26]MH_I2C_Read... [18:45:26]Read from MH i2c: 01 07 00 17 57 00 00 00 00 00 D4 0C 55 [18:45:26]RasterBufferAndPrint [18:45:26]line [18:45:26]line [18:45:26]line [18:45:26]line [18:45:26]line [18:45:26]written 0, free lines is 3292 [18:45:26]MH_Cut [18:45:26]Write to MH i2c: D1 01 00 1E 57 01 47 [18:45:26]Write i2c OK [18:45:26]MH_I2C_Read... [18:45:26]Read from MH i2c: D1 [18:45:26]MH_I2C_Read... [18:45:26]Read from MH i2c: D1 01 00 [18:45:26]MH_I2C_Read... [18:45:26]Read from MH i2c: D1 01 00 1E 57 00 46 [18:45:26]Write to MH i2c: 01 00 00 1F 57 76 [18:45:26]Write i2c OK [18:45:26]MH_I2C_Read... [18:45:26]OFD Sender: No OFD packet to send [18:45:27]*** Cut start [18:45:27]*** Partial cut [18:45:27]*** CUTSNS_PIN = 1 [18:45:27]*** CUTSNS_PIN = 0 [18:45:27]*** Brake cut motor [18:45:27]Read from MH i2c: 01 [18:45:27]MH_I2C_Read... [18:45:27]*** Stop cut motor [18:45:28]*** Cut end [18:45:28]Read from MH i2c: 01 07 00 [18:45:28]MH_I2C_Read... [18:45:28]Read from MH i2c: 01 07 00 1F 57 00 00 00 00 00 FF 0F 8B [18:45:28]process_action close_receipt done [18:45:28]requested_data is exist [18:45:28]produce_requested_data [18:45:28]requested_item fm.sn is exist - process it [18:45:28]wFMCommunicate request_size=4 [18:45:28]MH_SAM_APDU [18:45:28]CAPDU: 80 11 00 00 [18:45:28]Write to MH i2c: E2 08 00 20 57 80 11 00 00 00 00 00 00 F1 [18:45:28]Write i2c OK [18:45:28]MH_I2C_Read... [18:45:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:28]Read from MH i2c: E2 [18:45:28]MH_I2C_Read... [18:45:28]Read from MH i2c: E2 17 00 [18:45:28]MH_I2C_Read... [18:45:28]Read from MH i2c: E2 17 00 20 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 3C [18:45:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [18:45:28]wFMCommunicate OK [18:45:28]requested_item fd.num is exist - process it [18:45:28]SAM_PROTO_GetFieldsCounters [18:45:28]wFMCommunicate request_size=4 [18:45:28]MH_SAM_APDU [18:45:28]CAPDU: 80 13 00 00 [18:45:28]Write to MH i2c: E2 08 00 21 57 80 13 00 00 00 00 00 00 F4 [18:45:28]Write i2c OK [18:45:28]MH_I2C_Read... [18:45:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:45:28]Read from MH i2c: E2 [18:45:28]MH_I2C_Read... [18:45:28]Read from MH i2c: E2 62 00 [18:45:28]MH_I2C_Read... [18:45:28]Read from MH i2c: E2 62 00 21 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 5B 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 F7 [18:45:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 5B 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:45:28]wFMCommunicate OK [18:45:28]SAM_PROTO_GetFieldsCounters done [18:45:28]requested_item shift.num is exist - process it [18:45:28]requested_item shift.opened is exist - process it [18:45:28]req_shift_opened [18:45:28]FM_GetShiftState [18:45:28]SAM_PROTO_GetShiftState [18:45:28]wFMCommunicate request_size=4 [18:45:28]MH_SAM_APDU [18:45:28]CAPDU: 80 13 01 00 [18:45:28]Write to MH i2c: E2 08 00 22 57 80 13 01 00 00 00 00 00 F6 [18:45:28]Write i2c OK [18:45:28]MH_I2C_Read... [18:45:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:28]Read from MH i2c: E2 [18:45:28]MH_I2C_Read... [18:45:28]Read from MH i2c: E2 0E 00 [18:45:28]MH_I2C_Read... [18:45:28]Read from MH i2c: E2 0E 00 22 57 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 D1 [18:45:28]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [18:45:28]wFMCommunicate OK [18:45:28]SAM_PROTO_GetShiftState done [18:45:28]FM_GetShiftState done [18:45:28]req_shift_opened done [18:45:28]requested_item shift.open_date is exist - process it [18:45:28]req_shift_open_date [18:45:28]req_shift_open_date done [18:45:28]produce_requested_data done [18:45:28]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68443,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [18:45:28]process_action_free close_receipt [18:45:28]json_value_free [18:45:28]json_value_free done [18:45:28]process_json_proto returns [18:45:28]Send response to host [18:45:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68443,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [18:45:28]free response buf [18:45:28]execute_script done [18:45:28]execute_script returns [18:45:28]free content buf [18:45:28]Sock 5.Close socket [18:45:28]Sock 5.Thread stoped [18:45:31]OFD Sender: No OFD packet to send [18:45:36]OFD Sender: No OFD packet to send [18:45:41]OFD Sender: No OFD packet to send [18:45:46]OFD Sender: No OFD packet to send [18:45:51]OFD Sender: No OFD packet to send [18:45:56]OFD Sender: No OFD packet to send [18:46:01]OFD Sender: No OFD packet to send [18:46:06]OFD Sender: No OFD packet to send [18:46:11]OFD Sender: No OFD packet to send [18:46:16]OFD Sender: No OFD packet to send [18:46:21]OFD Sender: No OFD packet to send [18:46:26]OFD Sender: No OFD packet to send [18:46:31]OFD Sender: No OFD packet to send [18:46:36]OFD Sender: No OFD packet to send [18:46:41]OFD Sender: No OFD packet to send [18:46:46]OFD Sender: No OFD packet to send [18:46:51]OFD Sender: No OFD packet to send [18:46:56]OFD Sender: No OFD packet to send [18:47:01]OFD Sender: No OFD packet to send [18:47:05]accept exits with 6 [18:47:05]New connection [18:47:05]New thread 3066686820 created [18:47:05]Thread 3066543460 joined [18:47:05]Waiting for new connection... [18:47:05] Sock 6.Parse request [18:47:05]Sock 6.Check first char [18:47:05]Sock 6.First char is OK [18:47:05]request: POST /json_proto HTTP/1.0 [18:47:05]Method: POST [18:47:05]URL: /json_proto [18:47:05]Method is POST - this is cgi request [18:47:05]url: /json_proto [18:47:05]query_string will be loaded in cgi processing [18:47:05]execute_cgi json_proto POST (null) [18:47:05]execute_cgi path=json_proto method=POST [18:47:05]POST find Content-Length [18:47:05]Host: 172.17.36.132:8080 [18:47:05]Content-Length: 642 [18:47:05]Content-Type: application/json [18:47:05] [18:47:05]POST finish read [18:47:05]Found Content-Length = 642 [18:47:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706548", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 20.000, "sum" : 1338.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1338.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:47:05]execute_script... [18:47:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706548", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 20.000, "sum" : 1338.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1338.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:47:05]POST & json_proto [18:47:05]process_json_proto [18:47:05]json parsed OK: [18:47:05]protocol is kg_v1.0 [18:47:05]action value=close_receipt [18:47:05]process_action close_receipt [18:47:05]cmd_close_receipt [18:47:05]MH_GetDate [18:47:05]Write to MH i2c: F0 00 00 23 57 69 [18:47:05]Write i2c OK [18:47:05]MH_I2C_Read... [18:47:05]Read from MH i2c: F0 [18:47:05]MH_I2C_Read... [18:47:05]Read from MH i2c: F0 09 00 [18:47:05]MH_I2C_Read... [18:47:05]Read from MH i2c: F0 09 00 23 57 00 B0 0F 5E 66 B2 22 B0 64 DD [18:47:05]GetLastDocTimeStamp 1717440330 [18:47:05]current date 1717440432 [18:47:05]FM_GetShiftState [18:47:05]SAM_PROTO_GetShiftState [18:47:05]wFMCommunicate request_size=4 [18:47:05]MH_SAM_APDU [18:47:05]CAPDU: 80 13 01 00 [18:47:05]Write to MH i2c: E2 08 00 24 57 80 13 01 00 00 00 00 00 F8 [18:47:05]Write i2c OK [18:47:05]MH_I2C_Read... [18:47:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:47:05]Read from MH i2c: E2 [18:47:05]MH_I2C_Read... [18:47:05]Read from MH i2c: E2 0E 00 [18:47:05]MH_I2C_Read... [18:47:05]Read from MH i2c: E2 0E 00 24 57 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 D3 [18:47:05]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [18:47:05]wFMCommunicate OK [18:47:05]SAM_PROTO_GetShiftState done [18:47:05]FM_GetShiftState done [18:47:05]opened in 1717378033 [18:47:05]opened+sec_in_day 1717464433 [18:47:05]quantity*price = 133800 [18:47:05]sum+1 = 133801 [18:47:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1338.00 НСП 1% : 11.84 НДС 12% : 142.09 Наличными: 1338.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 190 03.06.2024 18:47 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68444 ФПД: 53353804395894 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T184712&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68444&fm=53353804395894&tin=02508201610067®Number=0000000000098096&sum=133800 [18:47:06]StoreToDocumentArchive [18:47:06]shift 324 fd 68444 [18:47:06]save to /storage/0324/doc_00068444 [18:47:06]save last doc name /storage/0324/doc_00068444 to /storage/kkm_last_doc_name [18:47:06]save OK [18:47:06]Clear old archive folders... [18:47:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:47:06]tlvbuf is 004A4D20 [18:47:06]SAM_PROTO_ClearQueue [18:47:06]wFMCommunicate request_size=4 [18:47:06]MH_SAM_APDU [18:47:06]CAPDU: 80 09 00 00 [18:47:06]Write to MH i2c: E2 08 00 31 57 80 09 00 00 00 00 00 00 FA [18:47:06]Write i2c OK [18:47:06]MH_I2C_Read... [18:47:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:47:06]Read from MH i2c: E2 [18:47:06]MH_I2C_Read... [18:47:06]Read from MH i2c: E2 03 00 [18:47:06]MH_I2C_Read... [18:47:06]Read from MH i2c: E2 03 00 31 57 00 90 00 FC [18:47:06]RAPDU: 90 00 [18:47:06]wFMCommunicate OK [18:47:06]SAM_PROTO_ClearQueue done [18:47:06]KKMCreateOFDPacket [18:47:06]OFDProtocolAddRootSTLVToBuf [18:47:06]FM_MakeSignedData [18:47:06]FM_MakeSignedData [18:47:06]SAM_PROTO_SignData [18:47:06]wFMCommunicate request_size=4 [18:47:06]MH_SAM_APDU [18:47:06]CAPDU: 80 0D 01 02 [18:47:06]Write to MH i2c: E2 08 00 32 57 80 0D 01 02 00 00 00 00 02 [18:47:06]Write i2c OK [18:47:06]MH_I2C_Read... [18:47:06]OFD Sender: No OFD packet to send [18:47:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:47:06]Read from MH i2c: E2 [18:47:06]MH_I2C_Read... [18:47:06]Read from MH i2c: E2 03 00 [18:47:06]MH_I2C_Read... [18:47:06]Read from MH i2c: E2 03 00 32 57 00 90 00 FD [18:47:06]RAPDU: 90 00 [18:47:06]wFMCommunicate OK [18:47:06]wFMCommunicate request_size=255 [18:47:06]MH_SAM_APDU [18:47:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 0A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 0A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 37 00 00 00 00 07 04 06 00 A8 0A 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 B0 0F 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 5C 0B 01 00 35 04 06 00 30 [18:47:06]Write to MH i2c: E2 02 01 33 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 0A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 0A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 37 00 00 00 00 07 04 06 00 A8 0A 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 B0 0F 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 5C 0B 01 00 35 04 06 00 30 00 00 4A [18:47:06]Write i2c OK [18:47:06]MH_I2C_Read... [18:47:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:47:07]Read from MH i2c: E2 [18:47:07]MH_I2C_Read... [18:47:07]Read from MH i2c: E2 03 00 [18:47:07]MH_I2C_Read... [18:47:07]Read from MH i2c: E2 03 00 33 57 00 90 00 FE [18:47:07]RAPDU: 90 00 [18:47:07]wFMCommunicate OK [18:47:07]wFMCommunicate request_size=10 [18:47:07]MH_SAM_APDU [18:47:07]CAPDU: 80 0D 02 02 05 86 66 8E F5 76 [18:47:07]Write to MH i2c: E2 0D 00 34 57 80 0D 02 02 05 00 86 66 8E F5 76 00 00 F4 [18:47:07]Write i2c OK [18:47:07]MH_I2C_Read... [18:47:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:47:07]Read from MH i2c: E2 [18:47:07]MH_I2C_Read... [18:47:07]Read from MH i2c: E2 03 00 [18:47:07]MH_I2C_Read... [18:47:07]Read from MH i2c: E2 03 00 34 57 00 90 00 FF [18:47:07]RAPDU: 90 00 [18:47:07]wFMCommunicate OK [18:47:07]wFMCommunicate request_size=4 [18:47:07]MH_SAM_APDU [18:47:07]CAPDU: 80 0D 03 02 [18:47:07]Write to MH i2c: E2 08 00 35 57 80 0D 03 02 00 00 00 00 07 [18:47:07]Write i2c OK [18:47:07]MH_I2C_Read... [18:47:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:47:07]Read from MH i2c: E2 [18:47:07]MH_I2C_Read... [18:47:07]Read from MH i2c: E2 0B 00 [18:47:07]MH_I2C_Read... [18:47:07]Read from MH i2c: E2 0B 00 35 57 00 D0 C3 0C 7A 9C 0C 6E 68 90 00 9F [18:47:07]RAPDU: D0 C3 0C 7A 9C 0C 6E 68 90 00 [18:47:07]wFMCommunicate OK [18:47:07]SAM_PROTO_SignData done [18:47:07]FM_MakeSignedData done [18:47:07]CreateOFDProtocolMessage [18:47:07]wFMCommunicate request_size=4 [18:47:07]MH_SAM_APDU [18:47:07]CAPDU: 80 11 00 00 [18:47:07]Write to MH i2c: E2 08 00 36 57 80 11 00 00 00 00 00 00 07 [18:47:07]Write i2c OK [18:47:07]MH_I2C_Read... [18:47:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:47:07]Read from MH i2c: E2 [18:47:07]MH_I2C_Read... [18:47:07]Read from MH i2c: E2 17 00 [18:47:07]MH_I2C_Read... [18:47:07]Read from MH i2c: E2 17 00 36 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 52 [18:47:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [18:47:07]wFMCommunicate OK [18:47:07]CreateOFDProtocolMessage done [18:47:07]OFDSenderStorePacket 68444 [18:47:07]StoreOFDPacket docnum=68444 [18:47:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 CE 42 07 01 09 FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 0A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 0A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 37 00 00 00 00 07 04 06 00 A8 0A 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 B0 0F 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 5C 0B 01 00 35 04 06 00 30 86 66 8E F5 76 D0 C3 0C 7A 9C 0C 6E 68 [18:47:07]CheckFolder [18:47:07]dirname=/storage/ofd_packets [18:47:07]CheckFolder done [18:47:07]ProducePacketName [18:47:07]name=ofd_packets/00068444 [18:47:07]NVStorageSaveData ofd_packets/00068444 [18:47:07]File name is /storage/ofd_packets/00068444 [18:47:07]Write 301 bytes [18:47:07]NVStorageSaveData done [18:47:07]OFDSenderStorePacket done [18:47:07]KKMCreateOFDPacket done [18:47:07]NVStorageSaveData kkm_last_timestamp [18:47:07]File name is /storage/kkm_last_timestamp [18:47:07]Write 4 bytes [18:47:07]NVStorageSaveData done [18:47:07]ExternCall_PrintAddStr [18:47:07]wPrintStart [18:47:07]Write to MH i2c: 01 00 00 37 57 8E [18:47:07]Write i2c OK [18:47:07]MH_I2C_Read... [18:47:07]Read from MH i2c: 01 [18:47:07]MH_I2C_Read... [18:47:07]Read from MH i2c: 01 07 00 [18:47:07]MH_I2C_Read... [18:47:07]Read from MH i2c: 01 07 00 37 57 00 00 00 00 00 FF 0F A3 [18:47:07]RasterBufferAndPrint [18:47:07]line Счет N : (1)706548 [18:47:07]line ИНН: 02508201610067 [18:47:07]line Контрольно-Кассовый Чек [18:47:07]line ПРОДАЖА [18:47:07]line ТРК (МРК, ГНК) : 63 [18:47:07]line Товар: 2710124130 [18:47:07]line Аи-92-К-4 [18:47:07]line 20.000 * 66.90 [18:47:07]line = 1338.00 [18:47:07]line НДС 12% НСП 1% [18:47:07]line > о реализуемом товаре [18:47:07]line ИТОГО: 1338.00 [18:47:07]line НСП 1% : 11.84 [18:47:07]line НДС 12% : 142.09 [18:47:07]line Наличными: 1338.00 [18:47:07]line Безнал.: 0.00 [18:47:07]line Место: АЗС № 62 "Партнер Нефть" [18:47:07]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [18:47:07]line СНО: Общий режим [18:47:07]line Чек 190 03.06.2024 18:47 [18:47:07]line Смена: 324 ФФД: 1.0 [18:47:07]line ЗНМ: 0300000181 [18:47:07]line РНМ: 0000000000098096 [18:47:07]line Версия ККМ: 001 [18:47:07]line ФМ: 0000000000965400 [18:47:07]line ФД: 68444 [18:47:07]line ФПД: 53353804395894 [18:47:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T184712&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68444&fm=53353804395894&tin=02508201610067®Number=0000000000098096&sum=133800 [18:47:07]OFD Sender: Processing packet 68444 [packets to send 26, broken 25] [18:47:07]ProducePacketName [18:47:07]name=ofd_packets/00068444 [18:47:07]OFD Sender: To server: pG, [18:47:07]CommunicateWithHost lk.salyk.kg:30040 [18:47:07]ConnectInit lk.salyk.kg [18:47:07]written 0, free lines is 4095 [18:47:07]Connected sock=7 [18:47:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 CE 42 07 01 09 FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 0A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 0A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 37 00 00 00 00 07 04 06 00 A8 0A 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 B0 0F 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 5C 0B 01 00 35 04 06 00 30 86 66 8E F5 76 D0 C3 0C 7A 9C 0C 6E 68 [18:47:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 34 17 47 00 A4 3A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 5C 0B 01 00 F4 03 04 00 AB B6 5D 66 B6 04 01 00 00 31 28 F7 18 9C CB 1C 0E [18:47:07]CommunicateWithHost err = 0 [18:47:07]CheckOFDResponse [18:47:07]1017 (14) - 77093643461234 [18:47:07]1041 (16) - 0000000000965400 [18:47:07]1040 (4) - 68444 [18:47:07]1012 (4) - 03.06.2024 12:27 [18:47:07]1206 (1) - 0 [18:47:07]OFD Sender: Remove packet 68444 [18:47:07]ProducePacketName [18:47:07]name=ofd_packets/00068444 [18:47:07]NVStorageDeleteData [18:47:08]Write to MH i2c: 01 00 00 5F 57 B6 [18:47:08]Write i2c OK [18:47:08]MH_I2C_Read... [18:47:08]Read from MH i2c: 01 [18:47:08]MH_I2C_Read... [18:47:08]Read from MH i2c: 01 07 00 [18:47:08]MH_I2C_Read... [18:47:08]Read from MH i2c: 01 07 00 5F 57 00 00 00 00 00 02 0D CC [18:47:08]RasterBufferAndPrint [18:47:08]line [18:47:08]line [18:47:08]line [18:47:08]line [18:47:08]line [18:47:08]written 0, free lines is 3337 [18:47:08]MH_Cut [18:47:08]Write to MH i2c: D1 01 00 66 57 01 8F [18:47:08]Write i2c OK [18:47:08]MH_I2C_Read... [18:47:08]Read from MH i2c: D1 [18:47:08]MH_I2C_Read... [18:47:08]Read from MH i2c: D1 01 00 [18:47:08]MH_I2C_Read... [18:47:08]Read from MH i2c: D1 01 00 66 57 00 8E [18:47:08]Write to MH i2c: 01 00 00 67 57 BE [18:47:08]Write i2c OK [18:47:08]MH_I2C_Read... [18:47:08]OFD Sender: No OFD packet to send [18:47:08]*** Cut start [18:47:08]*** Partial cut [18:47:08]*** CUTSNS_PIN = 1 [18:47:08]*** CUTSNS_PIN = 0 [18:47:09]*** Brake cut motor [18:47:09]Read from MH i2c: 01 [18:47:09]MH_I2C_Read... [18:47:09]*** Stop cut motor [18:47:09]*** Cut end [18:47:09]Read from MH i2c: 01 07 00 [18:47:09]MH_I2C_Read... [18:47:09]Read from MH i2c: 01 07 00 67 57 00 00 00 00 00 FF 0F D3 [18:47:09]process_action close_receipt done [18:47:09]requested_data is exist [18:47:09]produce_requested_data [18:47:09]requested_item fm.sn is exist - process it [18:47:09]wFMCommunicate request_size=4 [18:47:09]MH_SAM_APDU [18:47:09]CAPDU: 80 11 00 00 [18:47:09]Write to MH i2c: E2 08 00 68 57 80 11 00 00 00 00 00 00 39 [18:47:09]Write i2c OK [18:47:09]MH_I2C_Read... [18:47:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:47:09]Read from MH i2c: E2 [18:47:09]MH_I2C_Read... [18:47:09]Read from MH i2c: E2 17 00 [18:47:09]MH_I2C_Read... [18:47:09]Read from MH i2c: E2 17 00 68 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 84 [18:47:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [18:47:09]wFMCommunicate OK [18:47:09]requested_item fd.num is exist - process it [18:47:09]SAM_PROTO_GetFieldsCounters [18:47:09]wFMCommunicate request_size=4 [18:47:09]MH_SAM_APDU [18:47:09]CAPDU: 80 13 00 00 [18:47:09]Write to MH i2c: E2 08 00 69 57 80 13 00 00 00 00 00 00 3C [18:47:09]Write i2c OK [18:47:09]MH_I2C_Read... [18:47:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:47:09]Read from MH i2c: E2 [18:47:09]MH_I2C_Read... [18:47:09]Read from MH i2c: E2 62 00 [18:47:09]MH_I2C_Read... [18:47:09]Read from MH i2c: E2 62 00 69 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 5C 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 43 [18:47:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 5C 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:47:09]wFMCommunicate OK [18:47:09]SAM_PROTO_GetFieldsCounters done [18:47:09]requested_item shift.num is exist - process it [18:47:09]requested_item shift.opened is exist - process it [18:47:09]req_shift_opened [18:47:09]FM_GetShiftState [18:47:09]SAM_PROTO_GetShiftState [18:47:09]wFMCommunicate request_size=4 [18:47:09]MH_SAM_APDU [18:47:09]CAPDU: 80 13 01 00 [18:47:09]Write to MH i2c: E2 08 00 6A 57 80 13 01 00 00 00 00 00 3E [18:47:09]Write i2c OK [18:47:09]MH_I2C_Read... [18:47:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:47:09]Read from MH i2c: E2 [18:47:09]MH_I2C_Read... [18:47:09]Read from MH i2c: E2 0E 00 [18:47:09]MH_I2C_Read... [18:47:09]Read from MH i2c: E2 0E 00 6A 57 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 19 [18:47:09]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [18:47:09]wFMCommunicate OK [18:47:09]SAM_PROTO_GetShiftState done [18:47:09]FM_GetShiftState done [18:47:09]req_shift_opened done [18:47:09]requested_item shift.open_date is exist - process it [18:47:09]req_shift_open_date [18:47:09]req_shift_open_date done [18:47:09]produce_requested_data done [18:47:09]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68444,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [18:47:09]process_action_free close_receipt [18:47:09]json_value_free [18:47:09]json_value_free done [18:47:09]process_json_proto returns [18:47:09]Send response to host [18:47:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68444,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [18:47:09]free response buf [18:47:09]execute_script done [18:47:09]execute_script returns [18:47:09]free content buf [18:47:09]Sock 6.Close socket [18:47:09]Sock 6.Thread stoped [18:47:13]OFD Sender: No OFD packet to send [18:47:18]OFD Sender: No OFD packet to send [18:47:23]OFD Sender: No OFD packet to send [18:47:27]accept exits with 5 [18:47:27]New connection [18:47:27]New thread 3066543460 created [18:47:27]Thread 3066686820 joined [18:47:27]Waiting for new connection... [18:47:27] Sock 5.Parse request [18:47:27]Sock 5.Check first char [18:47:27]Sock 5.First char is OK [18:47:27]request: POST /json_proto HTTP/1.0 [18:47:27]Method: POST [18:47:27]URL: /json_proto [18:47:27]Method is POST - this is cgi request [18:47:27]url: /json_proto [18:47:27]query_string will be loaded in cgi processing [18:47:27]execute_cgi json_proto POST (null) [18:47:27]execute_cgi path=json_proto method=POST [18:47:27]POST find Content-Length [18:47:27]Host: 172.17.36.132:8080 [18:47:27]Content-Length: 677 [18:47:27]Content-Type: application/json [18:47:27] [18:47:27]POST finish read [18:47:27]Found Content-Length = 677 [18:47:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706547", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:47:27]execute_script... [18:47:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706547", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:47:27]POST & json_proto [18:47:27]process_json_proto [18:47:27]json parsed OK: [18:47:27]protocol is kg_v1.0 [18:47:27]action value=close_receipt [18:47:27]process_action close_receipt [18:47:27]cmd_close_receipt [18:47:27]MH_GetDate [18:47:27]Write to MH i2c: F0 00 00 6B 57 B1 [18:47:27]Write i2c OK [18:47:27]MH_I2C_Read... [18:47:27]Read from MH i2c: F0 [18:47:27]MH_I2C_Read... [18:47:27]Read from MH i2c: F0 09 00 [18:47:27]MH_I2C_Read... [18:47:27]Read from MH i2c: F0 09 00 6B 57 00 C5 0F 5E 66 B2 22 B0 64 3A [18:47:27]GetLastDocTimeStamp 1717440432 [18:47:27]current date 1717440453 [18:47:27]FM_GetShiftState [18:47:27]SAM_PROTO_GetShiftState [18:47:27]wFMCommunicate request_size=4 [18:47:27]MH_SAM_APDU [18:47:27]CAPDU: 80 13 01 00 [18:47:27]Write to MH i2c: E2 08 00 6C 57 80 13 01 00 00 00 00 00 40 [18:47:27]Write i2c OK [18:47:27]MH_I2C_Read... [18:47:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:47:27]Read from MH i2c: E2 [18:47:27]MH_I2C_Read... [18:47:27]Read from MH i2c: E2 0E 00 [18:47:27]MH_I2C_Read... [18:47:27]Read from MH i2c: E2 0E 00 6C 57 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 1B [18:47:27]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [18:47:27]wFMCommunicate OK [18:47:27]SAM_PROTO_GetShiftState done [18:47:27]FM_GetShiftState done [18:47:27]opened in 1717378033 [18:47:27]opened+sec_in_day 1717464433 [18:47:27]quantity*price = 50041 [18:47:27]sum+1 = 50042 [18:47:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 191 03.06.2024 18:47 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68445 ФПД: 14055542808619 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T184733&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68445&fm=14055542808619&tin=02508201610067®Number=0000000000098096&sum=50000 [18:47:28]StoreToDocumentArchive [18:47:28]shift 324 fd 68445 [18:47:28]save to /storage/0324/doc_00068445 [18:47:28]save last doc name /storage/0324/doc_00068445 to /storage/kkm_last_doc_name [18:47:28]save OK [18:47:28]Clear old archive folders... [18:47:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:47:28]tlvbuf is 004A1340 [18:47:28]SAM_PROTO_ClearQueue [18:47:28]wFMCommunicate request_size=4 [18:47:28]MH_SAM_APDU [18:47:28]CAPDU: 80 09 00 00 [18:47:28]Write to MH i2c: E2 08 00 79 57 80 09 00 00 00 00 00 00 42 [18:47:28]Write i2c OK [18:47:28]MH_I2C_Read... [18:47:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:47:28]Read from MH i2c: E2 [18:47:28]MH_I2C_Read... [18:47:28]Read from MH i2c: E2 03 00 [18:47:28]MH_I2C_Read... [18:47:28]Read from MH i2c: E2 03 00 79 57 00 90 00 44 [18:47:28]RAPDU: 90 00 [18:47:28]wFMCommunicate OK [18:47:28]SAM_PROTO_ClearQueue done [18:47:28]KKMCreateOFDPacket [18:47:28]OFDProtocolAddRootSTLVToBuf [18:47:28]FM_MakeSignedData [18:47:28]FM_MakeSignedData [18:47:28]SAM_PROTO_SignData [18:47:28]wFMCommunicate request_size=4 [18:47:28]MH_SAM_APDU [18:47:28]CAPDU: 80 0D 01 02 [18:47:28]Write to MH i2c: E2 08 00 7A 57 80 0D 01 02 00 00 00 00 4A [18:47:28]Write i2c OK [18:47:28]MH_I2C_Read... [18:47:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:47:28]Read from MH i2c: E2 [18:47:28]MH_I2C_Read... [18:47:28]Read from MH i2c: E2 03 00 [18:47:28]MH_I2C_Read... [18:47:28]Read from MH i2c: E2 03 00 7A 57 00 90 00 45 [18:47:28]RAPDU: 90 00 [18:47:28]wFMCommunicate OK [18:47:28]wFMCommunicate request_size=255 [18:47:28]MH_SAM_APDU [18:47:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 C5 0F 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 5D 0B 01 00 35 04 06 00 0C [18:47:28]Write to MH i2c: E2 02 01 7B 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 C5 0F 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 5D 0B 01 00 35 04 06 00 0C 00 00 E8 [18:47:28]Write i2c OK [18:47:28]MH_I2C_Read... [18:47:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:47:28]Read from MH i2c: E2 [18:47:28]MH_I2C_Read... [18:47:28]Read from MH i2c: E2 03 00 [18:47:28]MH_I2C_Read... [18:47:28]Read from MH i2c: E2 03 00 7B 57 00 90 00 46 [18:47:28]RAPDU: 90 00 [18:47:28]wFMCommunicate OK [18:47:28]wFMCommunicate request_size=10 [18:47:28]MH_SAM_APDU [18:47:28]CAPDU: 80 0D 02 02 05 C8 8F A2 E0 2B [18:47:28]Write to MH i2c: E2 0D 00 7C 57 80 0D 02 02 05 00 C8 8F A2 E0 2B 00 00 5B [18:47:28]Write i2c OK [18:47:28]MH_I2C_Read... [18:47:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:47:28]Read from MH i2c: E2 [18:47:28]MH_I2C_Read... [18:47:28]Read from MH i2c: E2 03 00 [18:47:28]MH_I2C_Read... [18:47:28]Read from MH i2c: E2 03 00 7C 57 00 90 00 47 [18:47:28]RAPDU: 90 00 [18:47:28]wFMCommunicate OK [18:47:28]wFMCommunicate request_size=4 [18:47:28]MH_SAM_APDU [18:47:28]CAPDU: 80 0D 03 02 [18:47:28]Write to MH i2c: E2 08 00 7D 57 80 0D 03 02 00 00 00 00 4F [18:47:28]Write i2c OK [18:47:28]MH_I2C_Read... [18:47:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:47:28]Read from MH i2c: E2 [18:47:28]MH_I2C_Read... [18:47:28]Read from MH i2c: E2 0B 00 [18:47:28]MH_I2C_Read... [18:47:28]Read from MH i2c: E2 0B 00 7D 57 00 BD F2 2B 07 83 66 93 B2 90 00 5F [18:47:28]RAPDU: BD F2 2B 07 83 66 93 B2 90 00 [18:47:28]wFMCommunicate OK [18:47:28]SAM_PROTO_SignData done [18:47:28]FM_MakeSignedData done [18:47:28]CreateOFDProtocolMessage [18:47:28]wFMCommunicate request_size=4 [18:47:28]MH_SAM_APDU [18:47:28]CAPDU: 80 11 00 00 [18:47:28]Write to MH i2c: E2 08 00 7E 57 80 11 00 00 00 00 00 00 4F [18:47:28]Write i2c OK [18:47:28]MH_I2C_Read... [18:47:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:47:28]Read from MH i2c: E2 [18:47:28]MH_I2C_Read... [18:47:28]Read from MH i2c: E2 17 00 [18:47:28]MH_I2C_Read... [18:47:28]Read from MH i2c: E2 17 00 7E 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 9A [18:47:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [18:47:28]wFMCommunicate OK [18:47:28]CreateOFDProtocolMessage done [18:47:28]OFDSenderStorePacket 68445 [18:47:28]StoreOFDPacket docnum=68445 [18:47:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 9D 87 07 01 8D 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 C5 0F 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 5D 0B 01 00 35 04 06 00 0C C8 8F A2 E0 2B BD F2 2B 07 83 66 93 B2 [18:47:28]CheckFolder [18:47:28]dirname=/storage/ofd_packets [18:47:28]CheckFolder done [18:47:28]ProducePacketName [18:47:28]name=ofd_packets/00068445 [18:47:28]NVStorageSaveData ofd_packets/00068445 [18:47:28]File name is /storage/ofd_packets/00068445 [18:47:28]Write 301 bytes [18:47:28]NVStorageSaveData done [18:47:28]OFDSenderStorePacket done [18:47:28]KKMCreateOFDPacket done [18:47:28]NVStorageSaveData kkm_last_timestamp [18:47:28]File name is /storage/kkm_last_timestamp [18:47:28]Write 4 bytes [18:47:28]NVStorageSaveData done [18:47:28]ExternCall_PrintAddStr [18:47:28]wPrintStart [18:47:28]Write to MH i2c: 01 00 00 7F 57 D6 [18:47:28]Write i2c OK [18:47:28]MH_I2C_Read... [18:47:28]Read from MH i2c: 01 [18:47:28]MH_I2C_Read... [18:47:28]Read from MH i2c: 01 07 00 [18:47:28]MH_I2C_Read... [18:47:28]Read from MH i2c: 01 07 00 7F 57 00 00 00 00 00 FF 0F EB [18:47:28]RasterBufferAndPrint [18:47:28]line Счет N : (1)706547 [18:47:28]line ИНН: 02508201610067 [18:47:28]line Контрольно-Кассовый Чек [18:47:28]line ПРОДАЖА [18:47:28]line ТРК (МРК, ГНК) : 42 [18:47:28]line Товар: 2710124130 [18:47:28]line Аи-92-К-4 [18:47:28]line 7.480 * 66.90 [18:47:28]line = 500.41 [18:47:28]line НДС 12% НСП 1% [18:47:28]line > о реализуемом товаре [18:47:28]line ОКРУГЛЕНИЕ: -0.41 [18:47:28]line ИТОГО: 500.00 [18:47:28]line Внесено: 500.00 [18:47:28]line СДАЧА: 0.00 [18:47:28]line НСП 1% : 4.43 [18:47:28]line НДС 12% : 53.14 [18:47:28]line Наличными: 500.00 [18:47:28]line Безнал.: 0.00 [18:47:28]line Место: АЗС № 62 "Партнер Нефть" [18:47:28]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [18:47:28]line СНО: Общий режим [18:47:28]line Чек 191 03.06.2024 18:47 [18:47:28]line Смена: 324 ФФД: 1.0 [18:47:28]line ЗНМ: 0300000181 [18:47:28]line РНМ: 0000000000098096 [18:47:28]line Версия ККМ: 001 [18:47:28]line ФМ: 0000000000965400 [18:47:28]line ФД: 68445 [18:47:28]line ФПД: 14055542808619 [18:47:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T184733&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68445&fm=14055542808619&tin=02508201610067®Number=0000000000098096&sum=50000 [18:47:29]OFD Sender: Processing packet 68445 [packets to send 26, broken 25] [18:47:29]ProducePacketName [18:47:29]name=ofd_packets/00068445 [18:47:29]OFD Sender: To server: pG, [18:47:29]CommunicateWithHost lk.salyk.kg:30040 [18:47:29]ConnectInit lk.salyk.kg [18:47:29]written 0, free lines is 4095 [18:47:29]Connected sock=7 [18:47:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 9D 87 07 01 8D 0E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 C5 0F 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 5D 0B 01 00 35 04 06 00 0C C8 8F A2 E0 2B BD F2 2B 07 83 66 93 B2 [18:47:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 99 80 47 00 69 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 5D 0B 01 00 F4 03 04 00 C1 B6 5D 66 B6 04 01 00 00 0B B5 50 D8 A9 D8 ED 9A [18:47:29]CommunicateWithHost err = 0 [18:47:29]CheckOFDResponse [18:47:29]1017 (14) - 77093643461234 [18:47:29]1041 (16) - 0000000000965400 [18:47:29]1040 (4) - 68445 [18:47:29]1012 (4) - 03.06.2024 12:27 [18:47:29]1206 (1) - 0 [18:47:29]OFD Sender: Remove packet 68445 [18:47:29]ProducePacketName [18:47:29]name=ofd_packets/00068445 [18:47:29]NVStorageDeleteData [18:47:29]Write to MH i2c: 01 00 00 AA 57 01 [18:47:29]Write i2c OK [18:47:29]MH_I2C_Read... [18:47:29]Read from MH i2c: 01 [18:47:29]MH_I2C_Read... [18:47:29]Read from MH i2c: 01 07 00 [18:47:29]MH_I2C_Read... [18:47:29]Read from MH i2c: 01 07 00 AA 57 00 00 00 00 00 D2 0C E6 [18:47:29]RasterBufferAndPrint [18:47:29]line [18:47:29]line [18:47:29]line [18:47:29]line [18:47:29]line [18:47:29]written 0, free lines is 3290 [18:47:29]MH_Cut [18:47:29]Write to MH i2c: D1 01 00 B1 57 01 DA [18:47:29]Write i2c OK [18:47:29]MH_I2C_Read... [18:47:29]Read from MH i2c: D1 [18:47:29]MH_I2C_Read... [18:47:29]Read from MH i2c: D1 01 00 [18:47:29]MH_I2C_Read... [18:47:29]Read from MH i2c: D1 01 00 B1 57 00 D9 [18:47:29]Write to MH i2c: 01 00 00 B2 57 09 [18:47:29]Write i2c OK [18:47:29]MH_I2C_Read... [18:47:30]OFD Sender: No OFD packet to send [18:47:30]*** Cut start [18:47:30]*** Partial cut [18:47:30]*** CUTSNS_PIN = 1 [18:47:30]*** CUTSNS_PIN = 0 [18:47:30]*** Brake cut motor [18:47:31]Read from MH i2c: 01 [18:47:31]MH_I2C_Read... [18:47:31]*** Stop cut motor [18:47:31]*** Cut end [18:47:31]Read from MH i2c: 01 07 00 [18:47:31]MH_I2C_Read... [18:47:31]Read from MH i2c: 01 07 00 B2 57 00 00 00 00 00 FF 0F 1E [18:47:31]process_action close_receipt done [18:47:31]requested_data is exist [18:47:31]produce_requested_data [18:47:31]requested_item fm.sn is exist - process it [18:47:31]wFMCommunicate request_size=4 [18:47:31]MH_SAM_APDU [18:47:31]CAPDU: 80 11 00 00 [18:47:31]Write to MH i2c: E2 08 00 B3 57 80 11 00 00 00 00 00 00 84 [18:47:31]Write i2c OK [18:47:31]MH_I2C_Read... [18:47:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:47:31]Read from MH i2c: E2 [18:47:31]MH_I2C_Read... [18:47:31]Read from MH i2c: E2 17 00 [18:47:31]MH_I2C_Read... [18:47:31]Read from MH i2c: E2 17 00 B3 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 CF [18:47:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [18:47:31]wFMCommunicate OK [18:47:31]requested_item fd.num is exist - process it [18:47:31]SAM_PROTO_GetFieldsCounters [18:47:31]wFMCommunicate request_size=4 [18:47:31]MH_SAM_APDU [18:47:31]CAPDU: 80 13 00 00 [18:47:31]Write to MH i2c: E2 08 00 B4 57 80 13 00 00 00 00 00 00 87 [18:47:31]Write i2c OK [18:47:31]MH_I2C_Read... [18:47:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:47:31]Read from MH i2c: E2 [18:47:31]MH_I2C_Read... [18:47:31]Read from MH i2c: E2 62 00 [18:47:31]MH_I2C_Read... [18:47:31]Read from MH i2c: E2 62 00 B4 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 5D 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 92 [18:47:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 5D 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:47:31]wFMCommunicate OK [18:47:31]SAM_PROTO_GetFieldsCounters done [18:47:31]requested_item shift.num is exist - process it [18:47:31]requested_item shift.opened is exist - process it [18:47:31]req_shift_opened [18:47:31]FM_GetShiftState [18:47:31]SAM_PROTO_GetShiftState [18:47:31]wFMCommunicate request_size=4 [18:47:31]MH_SAM_APDU [18:47:31]CAPDU: 80 13 01 00 [18:47:31]Write to MH i2c: E2 08 00 B5 57 80 13 01 00 00 00 00 00 89 [18:47:31]Write i2c OK [18:47:31]MH_I2C_Read... [18:47:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:47:31]Read from MH i2c: E2 [18:47:31]MH_I2C_Read... [18:47:31]Read from MH i2c: E2 0E 00 [18:47:31]MH_I2C_Read... [18:47:31]Read from MH i2c: E2 0E 00 B5 57 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 64 [18:47:31]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [18:47:31]wFMCommunicate OK [18:47:31]SAM_PROTO_GetShiftState done [18:47:31]FM_GetShiftState done [18:47:31]req_shift_opened done [18:47:31]requested_item shift.open_date is exist - process it [18:47:31]req_shift_open_date [18:47:31]req_shift_open_date done [18:47:31]produce_requested_data done [18:47:31]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68445,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [18:47:31]process_action_free close_receipt [18:47:31]json_value_free [18:47:31]json_value_free done [18:47:31]process_json_proto returns [18:47:31]Send response to host [18:47:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68445,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [18:47:31]free response buf [18:47:31]execute_script done [18:47:31]execute_script returns [18:47:31]free content buf [18:47:31]Sock 5.Close socket [18:47:31]Sock 5.Thread stoped [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:51]accept exits with 6 [18:49:51]New connection [18:49:51]New thread 3066686820 created [18:49:51]Thread 3066543460 joined [18:49:51]Waiting for new connection... [18:49:51] Sock 6.Parse request [18:49:51]Sock 6.Check first char [18:49:51]Sock 6.First char is OK [18:49:51]request: POST /json_proto HTTP/1.0 [18:49:51]Method: POST [18:49:51]URL: /json_proto [18:49:51]Method is POST - this is cgi request [18:49:51]url: /json_proto [18:49:51]query_string will be loaded in cgi processing [18:49:51]execute_cgi json_proto POST (null) [18:49:51]execute_cgi path=json_proto method=POST [18:49:51]POST find Content-Length [18:49:51]Host: 172.17.36.132:8080 [18:49:51]Content-Length: 1151 [18:49:51]Content-Type: application/json [18:49:51] [18:49:51]POST finish read [18:49:51]Found Content-Length = 1151 [18:49:51]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706546\u000A03.06.2024 18:27\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-4\u000A 137.040 x 72.90\u000A\u0418\u0422\u041E\u0413: 9990.22\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30111035\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:49:51]execute_script... [18:49:51]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706546\u000A03.06.2024 18:27\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-4\u000A 137.040 x 72.90\u000A\u0418\u0422\u041E\u0413: 9990.22\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30111035\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:49:51]POST & json_proto [18:49:51]process_json_proto [18:49:51]json parsed OK: [18:49:51]protocol is kg_v1.0 [18:49:51]action value=print_text [18:49:51]process_action print_text [18:49:51]cmd_print_text [18:49:51]ExternCall_PrintAddStr [18:49:51]wPrintStart [18:49:51]Write to MH i2c: 01 00 00 B6 57 0D [18:49:51]Write i2c OK [18:49:51]MH_I2C_Read... [18:49:51]Read from MH i2c: 01 [18:49:51]MH_I2C_Read... [18:49:51]Read from MH i2c: 01 07 00 [18:49:51]MH_I2C_Read... [18:49:51]Read from MH i2c: 01 07 00 B6 57 00 00 00 00 00 FF 0F 22 [18:49:51]RasterBufferAndPrint [18:49:51]line *****ТОВАРНЫЙ ЧЕК***** [18:49:51]line АЗС 62 [18:49:51]line Партнер нефть [18:49:51]line 02508201610067 [18:49:51]line Кассир : Балаев А. [18:49:51]line Счет N : (1)706546 [18:49:51]line 03.06.2024 18:27 [18:49:51]line ПРОДАЖА [18:49:51]line ТРК (МРК, ГНК): 21 [18:49:51]line Вид ГСМ : 2710194210 [18:49:51]line ДТ(л)-К-4 [18:49:51]line 137.040 x 72.90 [18:49:51]line ИТОГ: 9990.22 [18:49:51]line Тип оплаты: Талоны: ТК ГПНА Online [18:49:51]line 30111035 [18:49:51]line ______________________ [18:49:51]line (подпись) [18:49:51]written 0, free lines is 4095 [18:49:51]Write to MH i2c: 01 00 00 CA 57 21 [18:49:51]Write i2c OK [18:49:51]MH_I2C_Read... [18:49:51]Read from MH i2c: 01 [18:49:51]MH_I2C_Read... [18:49:51]Read from MH i2c: 01 07 00 [18:49:51]MH_I2C_Read... [18:49:51]Read from MH i2c: 01 07 00 CA 57 00 00 00 00 00 0F 0E 45 [18:49:51]RasterBufferAndPrint [18:49:51]line [18:49:51]line [18:49:51]line [18:49:51]line [18:49:51]line [18:49:51]written 0, free lines is 3601 [18:49:51]MH_Cut [18:49:51]Write to MH i2c: D1 01 00 D1 57 01 FA [18:49:51]Write i2c OK [18:49:51]MH_I2C_Read... [18:49:51]Read from MH i2c: D1 [18:49:51]MH_I2C_Read... [18:49:51]Read from MH i2c: D1 01 00 [18:49:51]MH_I2C_Read... [18:49:51]Read from MH i2c: D1 01 00 D1 57 00 F9 [18:49:51]Write to MH i2c: 01 00 00 D2 57 29 [18:49:51]Write i2c OK [18:49:51]MH_I2C_Read... [18:49:52]*** Cut start [18:49:52]*** Partial cut [18:49:52]*** CUTSNS_PIN = 1 [18:49:52]*** CUTSNS_PIN = 0 [18:49:52]*** Brake cut motor [18:49:52]Read from MH i2c: 01 [18:49:52]MH_I2C_Read... [18:49:52]*** Stop cut motor [18:49:52]*** Cut end [18:49:52]Read from MH i2c: 01 07 00 [18:49:52]MH_I2C_Read... [18:49:52]Read from MH i2c: 01 07 00 D2 57 00 00 00 00 00 FF 0F 3E [18:49:52]process_action print_text done [18:49:52]requested_data is exist [18:49:52]produce_requested_data [18:49:52]requested_item fm.sn is exist - process it [18:49:52]wFMCommunicate request_size=4 [18:49:52]MH_SAM_APDU [18:49:52]CAPDU: 80 11 00 00 [18:49:52]Write to MH i2c: E2 08 00 D3 57 80 11 00 00 00 00 00 00 A4 [18:49:52]Write i2c OK [18:49:52]MH_I2C_Read... [18:49:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:49:52]Read from MH i2c: E2 [18:49:52]MH_I2C_Read... [18:49:52]Read from MH i2c: E2 17 00 [18:49:52]MH_I2C_Read... [18:49:52]Read from MH i2c: E2 17 00 D3 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 EF [18:49:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [18:49:52]wFMCommunicate OK [18:49:52]requested_item fd.num is exist - process it [18:49:52]SAM_PROTO_GetFieldsCounters [18:49:52]wFMCommunicate request_size=4 [18:49:52]MH_SAM_APDU [18:49:52]CAPDU: 80 13 00 00 [18:49:52]Write to MH i2c: E2 08 00 D4 57 80 13 00 00 00 00 00 00 A7 [18:49:52]Write i2c OK [18:49:52]MH_I2C_Read... [18:49:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:49:53]Read from MH i2c: E2 [18:49:53]MH_I2C_Read... [18:49:53]Read from MH i2c: E2 62 00 [18:49:53]MH_I2C_Read... [18:49:53]Read from MH i2c: E2 62 00 D4 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 5D 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 B2 [18:49:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 5D 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:49:53]wFMCommunicate OK [18:49:53]SAM_PROTO_GetFieldsCounters done [18:49:53]requested_item shift.num is exist - process it [18:49:53]requested_item shift.opened is exist - process it [18:49:53]req_shift_opened [18:49:53]FM_GetShiftState [18:49:53]SAM_PROTO_GetShiftState [18:49:53]wFMCommunicate request_size=4 [18:49:53]MH_SAM_APDU [18:49:53]CAPDU: 80 13 01 00 [18:49:53]Write to MH i2c: E2 08 00 D5 57 80 13 01 00 00 00 00 00 A9 [18:49:53]Write i2c OK [18:49:53]MH_I2C_Read... [18:49:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:49:53]Read from MH i2c: E2 [18:49:53]MH_I2C_Read... [18:49:53]Read from MH i2c: E2 0E 00 [18:49:53]MH_I2C_Read... [18:49:53]Read from MH i2c: E2 0E 00 D5 57 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 84 [18:49:53]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [18:49:53]wFMCommunicate OK [18:49:53]SAM_PROTO_GetShiftState done [18:49:53]FM_GetShiftState done [18:49:53]req_shift_opened done [18:49:53]requested_item shift.open_date is exist - process it [18:49:53]req_shift_open_date [18:49:53]req_shift_open_date done [18:49:53]produce_requested_data done [18:49:53]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68445,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [18:49:53]process_action_free print_text [18:49:53]json_value_free [18:49:53]json_value_free done [18:49:53]process_json_proto returns [18:49:53]Send response to host [18:49:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68445,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [18:49:53]free response buf [18:49:53]execute_script done [18:49:53]execute_script returns [18:49:53]free content buf [18:49:53]Sock 6.Close socket [18:49:53]Sock 6.Thread stoped [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:50:55]accept exits with 5 [18:50:55]New connection [18:50:55]New thread 3066543460 created [18:50:55]Thread 3066686820 joined [18:50:55]Waiting for new connection... [18:50:55] Sock 5.Parse request [18:50:55]Sock 5.Check first char [18:50:55]Sock 5.First char is OK [18:50:55]request: POST /json_proto HTTP/1.0 [18:50:55]Method: POST [18:50:55]URL: /json_proto [18:50:55]Method is POST - this is cgi request [18:50:55]url: /json_proto [18:50:55]query_string will be loaded in cgi processing [18:50:55]execute_cgi json_proto POST (null) [18:50:55]execute_cgi path=json_proto method=POST [18:50:55]POST find Content-Length [18:50:55]Host: 172.17.36.132:8080 [18:50:55]Content-Length: 1149 [18:50:55]Content-Type: application/json [18:50:55] [18:50:55]POST finish read [18:50:55]Found Content-Length = 1149 [18:50:55]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706549\u000A03.06.2024 18:28\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-4\u000A 12.960 x 72.90\u000A\u0418\u0422\u041E\u0413: 944.78\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30111035\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:50:55]execute_script... [18:50:55]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706549\u000A03.06.2024 18:28\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-4\u000A 12.960 x 72.90\u000A\u0418\u0422\u041E\u0413: 944.78\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30111035\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:50:55]POST & json_proto [18:50:55]process_json_proto [18:50:55]json parsed OK: [18:50:55]protocol is kg_v1.0 [18:50:55]action value=print_text [18:50:55]process_action print_text [18:50:55]cmd_print_text [18:50:55]ExternCall_PrintAddStr [18:50:55]wPrintStart [18:50:55]Write to MH i2c: 01 00 00 D6 57 2D [18:50:55]Write i2c OK [18:50:55]MH_I2C_Read... [18:50:55]Read from MH i2c: 01 [18:50:55]MH_I2C_Read... [18:50:55]Read from MH i2c: 01 07 00 [18:50:55]MH_I2C_Read... [18:50:55]Read from MH i2c: 01 07 00 D6 57 00 00 00 00 00 FF 0F 42 [18:50:55]RasterBufferAndPrint [18:50:55]line *****ТОВАРНЫЙ ЧЕК***** [18:50:55]line АЗС 62 [18:50:55]line Партнер нефть [18:50:55]line 02508201610067 [18:50:55]line Кассир : Балаев А. [18:50:55]line Счет N : (1)706549 [18:50:55]line 03.06.2024 18:28 [18:50:55]line ПРОДАЖА [18:50:55]line ТРК (МРК, ГНК): 21 [18:50:55]line Вид ГСМ : 2710194210 [18:50:55]line ДТ(л)-К-4 [18:50:55]line 12.960 x 72.90 [18:50:55]line ИТОГ: 944.78 [18:50:55]line Тип оплаты: Талоны: ТК ГПНА Online [18:50:55]line 30111035 [18:50:55]line ______________________ [18:50:55]line (подпись) [18:50:55]written 0, free lines is 4095 [18:50:55]Write to MH i2c: 01 00 00 EA 57 41 [18:50:55]Write i2c OK [18:50:55]MH_I2C_Read... [18:50:55]Read from MH i2c: 01 [18:50:55]MH_I2C_Read... [18:50:55]Read from MH i2c: 01 07 00 [18:50:55]MH_I2C_Read... [18:50:55]Read from MH i2c: 01 07 00 EA 57 00 00 00 00 00 0F 0E 65 [18:50:55]RasterBufferAndPrint [18:50:55]line [18:50:55]line [18:50:55]line [18:50:55]line [18:50:55]line [18:50:55]written 0, free lines is 3600 [18:50:55]MH_Cut [18:50:55]Write to MH i2c: D1 01 00 F1 57 01 1A [18:50:55]Write i2c OK [18:50:55]MH_I2C_Read... [18:50:55]Read from MH i2c: D1 [18:50:55]MH_I2C_Read... [18:50:55]Read from MH i2c: D1 01 00 [18:50:55]MH_I2C_Read... [18:50:55]Read from MH i2c: D1 01 00 F1 57 00 19 [18:50:55]Write to MH i2c: 01 00 00 F2 57 49 [18:50:55]Write i2c OK [18:50:55]MH_I2C_Read... [18:50:56]*** Cut start [18:50:56]*** Partial cut [18:50:56]*** CUTSNS_PIN = 1 [18:50:56]*** CUTSNS_PIN = 0 [18:50:56]*** Brake cut motor [18:50:56]Read from MH i2c: 01 [18:50:56]MH_I2C_Read... [18:50:56]Read from MH i2c: 01 07 00 [18:50:56]MH_I2C_Read... [18:50:56]*** Stop cut motor [18:50:56]*** Cut end [18:50:56]Read from MH i2c: 01 07 00 F2 57 00 00 00 00 00 FF 0F 5E [18:50:56]process_action print_text done [18:50:56]requested_data is exist [18:50:56]produce_requested_data [18:50:56]requested_item fm.sn is exist - process it [18:50:56]wFMCommunicate request_size=4 [18:50:56]MH_SAM_APDU [18:50:56]CAPDU: 80 11 00 00 [18:50:56]Write to MH i2c: E2 08 00 F3 57 80 11 00 00 00 00 00 00 C4 [18:50:56]Write i2c OK [18:50:56]MH_I2C_Read... [18:50:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:50:56]Read from MH i2c: E2 [18:50:56]MH_I2C_Read... [18:50:56]Read from MH i2c: E2 17 00 [18:50:56]MH_I2C_Read... [18:50:56]Read from MH i2c: E2 17 00 F3 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 0F [18:50:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [18:50:56]wFMCommunicate OK [18:50:56]requested_item fd.num is exist - process it [18:50:56]SAM_PROTO_GetFieldsCounters [18:50:56]wFMCommunicate request_size=4 [18:50:56]MH_SAM_APDU [18:50:56]CAPDU: 80 13 00 00 [18:50:56]Write to MH i2c: E2 08 00 F4 57 80 13 00 00 00 00 00 00 C7 [18:50:56]Write i2c OK [18:50:56]MH_I2C_Read... [18:50:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:50:56]Read from MH i2c: E2 [18:50:56]MH_I2C_Read... [18:50:56]Read from MH i2c: E2 62 00 [18:50:56]MH_I2C_Read... [18:50:56]Read from MH i2c: E2 62 00 F4 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 5D 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 D2 [18:50:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 5D 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:50:56]wFMCommunicate OK [18:50:56]SAM_PROTO_GetFieldsCounters done [18:50:56]requested_item shift.num is exist - process it [18:50:56]requested_item shift.opened is exist - process it [18:50:56]req_shift_opened [18:50:56]FM_GetShiftState [18:50:56]SAM_PROTO_GetShiftState [18:50:56]wFMCommunicate request_size=4 [18:50:56]MH_SAM_APDU [18:50:56]CAPDU: 80 13 01 00 [18:50:56]Write to MH i2c: E2 08 00 F5 57 80 13 01 00 00 00 00 00 C9 [18:50:56]Write i2c OK [18:50:56]MH_I2C_Read... [18:50:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:50:57]Read from MH i2c: E2 [18:50:57]MH_I2C_Read... [18:50:57]Read from MH i2c: E2 0E 00 [18:50:57]MH_I2C_Read... [18:50:57]Read from MH i2c: E2 0E 00 F5 57 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 A4 [18:50:57]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [18:50:57]wFMCommunicate OK [18:50:57]SAM_PROTO_GetShiftState done [18:50:57]FM_GetShiftState done [18:50:57]req_shift_opened done [18:50:57]requested_item shift.open_date is exist - process it [18:50:57]req_shift_open_date [18:50:57]req_shift_open_date done [18:50:57]produce_requested_data done [18:50:57]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68445,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [18:50:57]process_action_free print_text [18:50:57]json_value_free [18:50:57]json_value_free done [18:50:57]process_json_proto returns [18:50:57]Send response to host [18:50:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68445,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [18:50:57]free response buf [18:50:57]execute_script done [18:50:57]execute_script returns [18:50:57]free content buf [18:50:57]Sock 5.Close socket [18:50:57]Sock 5.Thread stoped [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:48]accept exits with 6 [18:51:48]New connection [18:51:48]New thread 3066686820 created [18:51:48]Thread 3066543460 joined [18:51:48]Waiting for new connection... [18:51:48] Sock 6.Parse request [18:51:48]Sock 6.Check first char [18:51:48]Sock 6.First char is OK [18:51:48]request: POST /json_proto HTTP/1.0 [18:51:48]Method: POST [18:51:48]URL: /json_proto [18:51:48]Method is POST - this is cgi request [18:51:48]url: /json_proto [18:51:48]query_string will be loaded in cgi processing [18:51:48]execute_cgi json_proto POST (null) [18:51:48]execute_cgi path=json_proto method=POST [18:51:48]POST find Content-Length [18:51:48]Host: 172.17.36.132:8080 [18:51:48]Content-Length: 845 [18:51:48]Content-Type: application/json [18:51:48] [18:51:48]POST finish read [18:51:48]Found Content-Length = 845 [18:51:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706550", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 5.490, "sum" : 400.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 400.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:51:48]execute_script... [18:51:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706550", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 5.490, "sum" : 400.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 400.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:51:48]POST & json_proto [18:51:48]process_json_proto [18:51:48]json parsed OK: [18:51:48]protocol is kg_v1.0 [18:51:48]action value=close_receipt [18:51:48]process_action close_receipt [18:51:48]cmd_close_receipt [18:51:48]MH_GetDate [18:51:48]Write to MH i2c: F0 00 00 F6 57 3C [18:51:48]Write i2c OK [18:51:48]MH_I2C_Read... [18:51:48]Read from MH i2c: F0 [18:51:48]MH_I2C_Read... [18:51:48]Read from MH i2c: F0 09 00 [18:51:48]MH_I2C_Read... [18:51:48]Read from MH i2c: F0 09 00 F6 57 00 CB 10 5E 66 B2 22 B0 64 CC [18:51:48]GetLastDocTimeStamp 1717440453 [18:51:48]current date 1717440715 [18:51:48]FM_GetShiftState [18:51:48]SAM_PROTO_GetShiftState [18:51:48]wFMCommunicate request_size=4 [18:51:48]MH_SAM_APDU [18:51:48]CAPDU: 80 13 01 00 [18:51:48]Write to MH i2c: E2 08 00 F7 57 80 13 01 00 00 00 00 00 CB [18:51:48]Write i2c OK [18:51:48]MH_I2C_Read... [18:51:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:51:48]Read from MH i2c: E2 [18:51:48]MH_I2C_Read... [18:51:48]Read from MH i2c: E2 0E 00 [18:51:48]MH_I2C_Read... [18:51:48]Read from MH i2c: E2 0E 00 F7 57 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 A6 [18:51:48]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [18:51:48]wFMCommunicate OK [18:51:48]SAM_PROTO_GetShiftState done [18:51:48]FM_GetShiftState done [18:51:48]opened in 1717378033 [18:51:48]opened+sec_in_day 1717464433 [18:51:48]quantity*price = 40022 [18:51:48]sum+1 = 40023 [18:51:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.22 НСП 1% : 3.54 НДС 12% : 42.50 Наличными: 0.00 Безнал.: 400.22 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 192 03.06.2024 18:51 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68446 ФПД: 112695700412019 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T185155&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68446&fm=112695700412019&tin=02508201610067®Number=0000000000098096&sum=40022 [18:51:49]StoreToDocumentArchive [18:51:49]shift 324 fd 68446 [18:51:49]save to /storage/0324/doc_00068446 [18:51:49]save last doc name /storage/0324/doc_00068446 to /storage/kkm_last_doc_name [18:51:49]save OK [18:51:49]Clear old archive folders... [18:51:49]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:51:49]tlvbuf is 004DA080 [18:51:49]SAM_PROTO_ClearQueue [18:51:49]wFMCommunicate request_size=4 [18:51:49]MH_SAM_APDU [18:51:49]CAPDU: 80 09 00 00 [18:51:49]Write to MH i2c: E2 08 00 04 58 80 09 00 00 00 00 00 00 CE [18:51:49]Write i2c OK [18:51:49]MH_I2C_Read... [18:51:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:51:49]Read from MH i2c: E2 [18:51:49]MH_I2C_Read... [18:51:49]Read from MH i2c: E2 03 00 [18:51:49]MH_I2C_Read... [18:51:49]Read from MH i2c: E2 03 00 04 58 00 90 00 D0 [18:51:49]RAPDU: 90 00 [18:51:49]wFMCommunicate OK [18:51:49]SAM_PROTO_ClearQueue done [18:51:49]KKMCreateOFDPacket [18:51:49]OFDProtocolAddRootSTLVToBuf [18:51:49]FM_MakeSignedData [18:51:49]FM_MakeSignedData [18:51:49]SAM_PROTO_SignData [18:51:49]wFMCommunicate request_size=4 [18:51:49]MH_SAM_APDU [18:51:49]CAPDU: 80 0D 01 02 [18:51:49]Write to MH i2c: E2 08 00 05 58 80 0D 01 02 00 00 00 00 D6 [18:51:49]Write i2c OK [18:51:49]MH_I2C_Read... [18:51:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:51:49]Read from MH i2c: E2 [18:51:49]MH_I2C_Read... [18:51:49]Read from MH i2c: E2 03 00 [18:51:49]MH_I2C_Read... [18:51:49]Read from MH i2c: E2 03 00 05 58 00 90 00 D1 [18:51:49]RAPDU: 90 00 [18:51:49]wFMCommunicate OK [18:51:49]wFMCommunicate request_size=255 [18:51:49]MH_SAM_APDU [18:51: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 34 FF 03 08 00 03 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 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 9A 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 CB 10 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 5E 0B 01 00 35 04 06 00 [18:51:49]Write to MH i2c: E2 02 01 06 58 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 34 FF 03 08 00 03 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 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 9A 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 CB 10 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 5E 0B 01 00 35 04 06 00 00 00 27 [18:51:49]Write i2c OK [18:51:49]MH_I2C_Read... [18:51:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:51:50]Read from MH i2c: E2 [18:51:50]MH_I2C_Read... [18:51:50]Read from MH i2c: E2 03 00 [18:51:50]MH_I2C_Read... [18:51:50]Read from MH i2c: E2 03 00 06 58 00 90 00 D2 [18:51:50]RAPDU: 90 00 [18:51:50]wFMCommunicate OK [18:51:50]wFMCommunicate request_size=11 [18:51:50]MH_SAM_APDU [18:51:50]CAPDU: 80 0D 02 02 06 66 7F 03 30 D6 73 [18:51:50]Write to MH i2c: E2 0E 00 07 58 80 0D 02 02 06 00 66 7F 03 30 D6 73 00 00 46 [18:51:50]Write i2c OK [18:51:50]MH_I2C_Read... [18:51:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:51:50]Read from MH i2c: E2 [18:51:50]MH_I2C_Read... [18:51:50]Read from MH i2c: E2 03 00 [18:51:50]MH_I2C_Read... [18:51:50]Read from MH i2c: E2 03 00 07 58 00 90 00 D3 [18:51:50]RAPDU: 90 00 [18:51:50]wFMCommunicate OK [18:51:50]wFMCommunicate request_size=4 [18:51:50]MH_SAM_APDU [18:51:50]CAPDU: 80 0D 03 02 [18:51:50]Write to MH i2c: E2 08 00 08 58 80 0D 03 02 00 00 00 00 DB [18:51:50]Write i2c OK [18:51:50]MH_I2C_Read... [18:51:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:51:50]Read from MH i2c: E2 [18:51:50]MH_I2C_Read... [18:51:50]Read from MH i2c: E2 0B 00 [18:51:50]MH_I2C_Read... [18:51:50]Read from MH i2c: E2 0B 00 08 58 00 D5 01 3D 6A D9 F0 5E 54 90 00 D4 [18:51:50]RAPDU: D5 01 3D 6A D9 F0 5E 54 90 00 [18:51:50]wFMCommunicate OK [18:51:50]SAM_PROTO_SignData done [18:51:50]FM_MakeSignedData done [18:51:50]CreateOFDProtocolMessage [18:51:50]wFMCommunicate request_size=4 [18:51:50]MH_SAM_APDU [18:51:50]CAPDU: 80 11 00 00 [18:51:50]Write to MH i2c: E2 08 00 09 58 80 11 00 00 00 00 00 00 DB [18:51:50]Write i2c OK [18:51:50]MH_I2C_Read... [18:51:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:51:50]Read from MH i2c: E2 [18:51:50]MH_I2C_Read... [18:51:50]Read from MH i2c: E2 17 00 [18:51:50]MH_I2C_Read... [18:51:50]Read from MH i2c: E2 17 00 09 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 26 [18:51:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [18:51:50]wFMCommunicate OK [18:51:50]CreateOFDProtocolMessage done [18:51:50]OFDSenderStorePacket 68446 [18:51:50]StoreOFDPacket docnum=68446 [18:51:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 5F 0C 08 01 B7 65 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 34 FF 03 08 00 03 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 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 9A 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 CB 10 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 5E 0B 01 00 35 04 06 00 66 7F 03 30 D6 73 D5 01 3D 6A D9 F0 5E 54 [18:51:50]CheckFolder [18:51:50]dirname=/storage/ofd_packets [18:51:50]CheckFolder done [18:51:50]ProducePacketName [18:51:50]name=ofd_packets/00068446 [18:51:50]NVStorageSaveData ofd_packets/00068446 [18:51:50]File name is /storage/ofd_packets/00068446 [18:51:50]Write 302 bytes [18:51:50]NVStorageSaveData done [18:51:50]OFDSenderStorePacket done [18:51:50]KKMCreateOFDPacket done [18:51:50]NVStorageSaveData kkm_last_timestamp [18:51:50]File name is /storage/kkm_last_timestamp [18:51:50]Write 4 bytes [18:51:50]NVStorageSaveData done [18:51:50]ExternCall_PrintAddStr [18:51:50]wPrintStart [18:51:50]Write to MH i2c: 01 00 00 0A 58 62 [18:51:50]Write i2c OK [18:51:50]MH_I2C_Read... [18:51:50]Read from MH i2c: 01 [18:51:50]MH_I2C_Read... [18:51:50]Read from MH i2c: 01 07 00 [18:51:50]MH_I2C_Read... [18:51:50]Read from MH i2c: 01 07 00 0A 58 00 00 00 00 00 FF 0F 77 [18:51:50]RasterBufferAndPrint [18:51:50]line Счет N : (1)706550 [18:51:50]line ИНН: 02508201610067 [18:51:50]line Контрольно-Кассовый Чек [18:51:50]line ПРОДАЖА [18:51:50]line ТРК (МРК, ГНК) : 11 [18:51:50]line Товар: 2710194210 [18:51:50]line ДТ(л)-К-4 [18:51:50]line 5.490 * 72.90 [18:51:50]line = 400.22 [18:51:50]line НДС 12% НСП 1% [18:51:50]line > о реализуемом товаре [18:51:50]line ИТОГО: 400.22 [18:51:50]line НСП 1% : 3.54 [18:51:50]line НДС 12% : 42.50 [18:51:50]line Наличными: 0.00 [18:51:50]line Безнал.: 400.22 [18:51:50]line Место: АЗС № 62 "Партнер Нефть" [18:51:50]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [18:51:50]line СНО: Общий режим [18:51:50]line Чек 192 03.06.2024 18:51 [18:51:50]line Смена: 324 ФФД: 1.0 [18:51:50]line ЗНМ: 0300000181 [18:51:50]line РНМ: 0000000000098096 [18:51:50]line Версия ККМ: 001 [18:51:50]line Платежная система: АКБ Кыргызстан [18:51:50]line ФМ: 0000000000965400 [18:51:50]line ФД: 68446 [18:51:50]line ФПД: 112695700412019 [18:51:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T185155&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68446&fm=112695700412019&tin=02508201610067®Number=0000000000098096&sum=40022 [18:51:50]OFD Sender: Processing packet 68446 [packets to send 26, broken 25] [18:51:50]ProducePacketName [18:51:50]name=ofd_packets/00068446 [18:51:50]OFD Sender: To server: pG, [18:51:50]CommunicateWithHost lk.salyk.kg:30040 [18:51:50]ConnectInit lk.salyk.kg [18:51:50]written 0, free lines is 4095 [18:51:50]Write to MH i2c: 01 00 00 34 58 8C [18:51:50]Write i2c OK [18:51:50]MH_I2C_Read... [18:51:50]Read from MH i2c: 01 [18:51:50]MH_I2C_Read... [18:51:50]Read from MH i2c: 01 07 00 [18:51:50]MH_I2C_Read... [18:51:50]Read from MH i2c: 01 07 00 34 58 00 00 00 00 00 DF 0C 7E [18:51:50]RasterBufferAndPrint [18:51:50]line [18:51:50]line [18:51:50]line [18:51:50]line [18:51:50]line [18:51:50]written 0, free lines is 3302 [18:51:51]MH_Cut [18:51:51]Write to MH i2c: D1 01 00 3B 58 01 65 [18:51:51]Write i2c OK [18:51:51]MH_I2C_Read... [18:51:51]Read from MH i2c: D1 [18:51:51]MH_I2C_Read... [18:51:51]Read from MH i2c: D1 01 00 [18:51:51]MH_I2C_Read... [18:51:51]Read from MH i2c: D1 01 00 3B 58 00 64 [18:51:51]Write to MH i2c: 01 00 00 3C 58 94 [18:51:51]Write i2c OK [18:51:51]MH_I2C_Read... [18:51:51]*** Cut start [18:51:51]*** Partial cut [18:51:51]*** CUTSNS_PIN = 1 [18:51:51]*** CUTSNS_PIN = 0 [18:51:52]*** Brake cut motor [18:51:52]Read from MH i2c: 01 [18:51:52]MH_I2C_Read... [18:51:52]*** Stop cut motor [18:51:52]*** Cut end [18:51:52]Read from MH i2c: 01 07 00 [18:51:52]MH_I2C_Read... [18:51:52]Read from MH i2c: 01 07 00 3C 58 00 00 00 00 00 FF 0F A9 [18:51:52]process_action close_receipt done [18:51:52]requested_data is exist [18:51:52]produce_requested_data [18:51:52]requested_item fm.sn is exist - process it [18:51:52]wFMCommunicate request_size=4 [18:51:52]MH_SAM_APDU [18:51:52]CAPDU: 80 11 00 00 [18:51:52]Write to MH i2c: E2 08 00 3D 58 80 11 00 00 00 00 00 00 0F [18:51:52]Write i2c OK [18:51:52]MH_I2C_Read... [18:51:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:51:52]Read from MH i2c: E2 [18:51:52]MH_I2C_Read... [18:51:52]Read from MH i2c: E2 17 00 [18:51:52]MH_I2C_Read... [18:51:52]Read from MH i2c: E2 17 00 3D 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 5A [18:51:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [18:51:52]wFMCommunicate OK [18:51:52]requested_item fd.num is exist - process it [18:51:52]SAM_PROTO_GetFieldsCounters [18:51:52]wFMCommunicate request_size=4 [18:51:52]MH_SAM_APDU [18:51:52]CAPDU: 80 13 00 00 [18:51:52]Write to MH i2c: E2 08 00 3E 58 80 13 00 00 00 00 00 00 12 [18:51:52]Write i2c OK [18:51:52]MH_I2C_Read... [18:51:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:51:52]Read from MH i2c: E2 [18:51:52]MH_I2C_Read... [18:51:52]Read from MH i2c: E2 62 00 [18:51:52]MH_I2C_Read... [18:51:52]Read from MH i2c: E2 62 00 3E 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 5E 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 21 [18:51:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 5E 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:51:52]wFMCommunicate OK [18:51:52]SAM_PROTO_GetFieldsCounters done [18:51:52]requested_item shift.num is exist - process it [18:51:52]requested_item shift.opened is exist - process it [18:51:52]req_shift_opened [18:51:52]FM_GetShiftState [18:51:52]SAM_PROTO_GetShiftState [18:51:52]wFMCommunicate request_size=4 [18:51:52]MH_SAM_APDU [18:51:52]CAPDU: 80 13 01 00 [18:51:52]Write to MH i2c: E2 08 00 3F 58 80 13 01 00 00 00 00 00 14 [18:51:52]Write i2c OK [18:51:52]MH_I2C_Read... [18:51:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:51:52]Read from MH i2c: E2 [18:51:52]MH_I2C_Read... [18:51:52]Read from MH i2c: E2 0E 00 [18:51:52]MH_I2C_Read... [18:51:52]Read from MH i2c: E2 0E 00 3F 58 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 EF [18:51:52]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [18:51:52]wFMCommunicate OK [18:51:52]SAM_PROTO_GetShiftState done [18:51:52]FM_GetShiftState done [18:51:52]req_shift_opened done [18:51:52]requested_item shift.open_date is exist - process it [18:51:52]req_shift_open_date [18:51:52]req_shift_open_date done [18:51:52]produce_requested_data done [18:51:52]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68446,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [18:51:52]process_action_free close_receipt [18:51:52]json_value_free [18:51:52]json_value_free done [18:51:52]process_json_proto returns [18:51:52]Send response to host [18:51:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68446,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [18:51:52]free response buf [18:51:52]execute_script done [18:51:52]execute_script returns [18:51:52]free content buf [18:51:52]Sock 6.Close socket [18:51:52]Sock 6.Thread stoped [18:51:59]accept exits with 5 [18:51:59]New connection [18:51:59]New thread 3066543460 created [18:51:59]Thread 3066686820 joined [18:51:59]Waiting for new connection... [18:51:59] Sock 5.Parse request [18:51:59]Sock 5.Check first char [18:51:59]Sock 5.First char is OK [18:51:59]request: POST /json_proto HTTP/1.0 [18:51:59]Method: POST [18:51:59]URL: /json_proto [18:51:59]Method is POST - this is cgi request [18:51:59]url: /json_proto [18:51:59]query_string will be loaded in cgi processing [18:51:59]execute_cgi json_proto POST (null) [18:51:59]execute_cgi path=json_proto method=POST [18:51:59]POST find Content-Length [18:51:59]Host: 172.17.36.132:8080 [18:51:59]Content-Length: 670 [18:51:59]Content-Type: application/json [18:51:59] [18:51:59]POST finish read [18:51:59]Found Content-Length = 670 [18:51:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706551", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 7.370, "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" ] } } [18:51:59]execute_script... [18:51: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)706551", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 7.370, "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" ] } } [18:51:59]POST & json_proto [18:51:59]process_json_proto [18:51:59]json parsed OK: [18:51:59]protocol is kg_v1.0 [18:51:59]action value=close_receipt [18:51:59]process_action close_receipt [18:51:59]cmd_close_receipt [18:51:59]MH_GetDate [18:51:59]Write to MH i2c: F0 00 00 40 58 87 [18:51:59]Write i2c OK [18:51:59]MH_I2C_Read... [18:51:59]Read from MH i2c: F0 [18:51:59]MH_I2C_Read... [18:51:59]Read from MH i2c: F0 09 00 [18:51:59]MH_I2C_Read... [18:51:59]Read from MH i2c: F0 09 00 40 58 00 D5 10 5E 66 B2 22 B0 64 21 [18:51:59]GetLastDocTimeStamp 1717440715 [18:51:59]current date 1717440725 [18:51:59]FM_GetShiftState [18:51:59]SAM_PROTO_GetShiftState [18:51:59]wFMCommunicate request_size=4 [18:51:59]MH_SAM_APDU [18:51:59]CAPDU: 80 13 01 00 [18:51:59]Write to MH i2c: E2 08 00 41 58 80 13 01 00 00 00 00 00 16 [18:51:59]Write i2c OK [18:51:59]MH_I2C_Read... [18:51:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:51:59]Read from MH i2c: E2 [18:51:59]MH_I2C_Read... [18:51:59]Read from MH i2c: E2 0E 00 [18:51:59]MH_I2C_Read... [18:51:59]Read from MH i2c: E2 0E 00 41 58 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 F1 [18:51:59]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [18:51:59]wFMCommunicate OK [18:51:59]SAM_PROTO_GetShiftState done [18:51:59]FM_GetShiftState done [18:51:59]opened in 1717378033 [18:51:59]opened+sec_in_day 1717464433 [18:51:59]quantity*price = 50042 [18:51:59]sum+1 = 50043 [18:51:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 193 03.06.2024 18:52 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68447 ФПД: 135274925889971 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T185205&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68447&fm=135274925889971&tin=02508201610067®Number=0000000000098096&sum=50000 [18:52:00]StoreToDocumentArchive [18:52:00]shift 324 fd 68447 [18:52:00]save to /storage/0324/doc_00068447 [18:52:00]save last doc name /storage/0324/doc_00068447 to /storage/kkm_last_doc_name [18:52:00]save OK [18:52:00]Clear old archive folders... [18:52:00]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:52:00]tlvbuf is 001FCF90 [18:52:00]SAM_PROTO_ClearQueue [18:52:00]wFMCommunicate request_size=4 [18:52:00]MH_SAM_APDU [18:52:00]CAPDU: 80 09 00 00 [18:52:00]Write to MH i2c: E2 08 00 4E 58 80 09 00 00 00 00 00 00 18 [18:52:00]Write i2c OK [18:52:00]MH_I2C_Read... [18:52:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:52:00]Read from MH i2c: E2 [18:52:00]MH_I2C_Read... [18:52:00]Read from MH i2c: E2 03 00 [18:52:00]MH_I2C_Read... [18:52:00]Read from MH i2c: E2 03 00 4E 58 00 90 00 1A [18:52:00]RAPDU: 90 00 [18:52:00]wFMCommunicate OK [18:52:00]SAM_PROTO_ClearQueue done [18:52:00]KKMCreateOFDPacket [18:52:00]OFDProtocolAddRootSTLVToBuf [18:52:00]FM_MakeSignedData [18:52:00]FM_MakeSignedData [18:52:00]SAM_PROTO_SignData [18:52:00]wFMCommunicate request_size=4 [18:52:00]MH_SAM_APDU [18:52:00]CAPDU: 80 0D 01 02 [18:52:00]Write to MH i2c: E2 08 00 4F 58 80 0D 01 02 00 00 00 00 20 [18:52:00]Write i2c OK [18:52:00]MH_I2C_Read... [18:52:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:52:00]Read from MH i2c: E2 [18:52:00]MH_I2C_Read... [18:52:00]Read from MH i2c: E2 03 00 [18:52:00]MH_I2C_Read... [18:52:00]Read from MH i2c: E2 03 00 4F 58 00 90 00 1B [18:52:00]RAPDU: 90 00 [18:52:00]wFMCommunicate OK [18:52:00]wFMCommunicate request_size=255 [18:52:00]MH_SAM_APDU [18:52: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 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 1C 00 00 00 00 00 37 04 06 00 86 1A 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 C1 00 00 00 F4 03 04 00 D5 10 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 5F 0B 01 00 35 04 06 00 [18:52:00]Write to MH i2c: E2 02 01 50 58 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 1C 00 00 00 00 00 37 04 06 00 86 1A 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 C1 00 00 00 F4 03 04 00 D5 10 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 5F 0B 01 00 35 04 06 00 00 00 E8 [18:52:00]Write i2c OK [18:52:00]MH_I2C_Read... [18:52:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:52:00]Read from MH i2c: E2 [18:52:00]MH_I2C_Read... [18:52:00]Read from MH i2c: E2 03 00 [18:52:00]MH_I2C_Read... [18:52:00]Read from MH i2c: E2 03 00 50 58 00 90 00 1C [18:52:00]RAPDU: 90 00 [18:52:00]wFMCommunicate OK [18:52:00]wFMCommunicate request_size=11 [18:52:00]MH_SAM_APDU [18:52:00]CAPDU: 80 0D 02 02 06 7B 08 25 E7 99 B3 [18:52:00]Write to MH i2c: E2 0E 00 51 58 80 0D 02 02 06 00 7B 08 25 E7 99 B3 00 00 0A [18:52:00]Write i2c OK [18:52:00]MH_I2C_Read... [18:52:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:52:00]Read from MH i2c: E2 [18:52:00]MH_I2C_Read... [18:52:00]Read from MH i2c: E2 03 00 [18:52:00]MH_I2C_Read... [18:52:00]Read from MH i2c: E2 03 00 51 58 00 90 00 1D [18:52:00]RAPDU: 90 00 [18:52:00]wFMCommunicate OK [18:52:00]wFMCommunicate request_size=4 [18:52:00]MH_SAM_APDU [18:52:00]CAPDU: 80 0D 03 02 [18:52:00]Write to MH i2c: E2 08 00 52 58 80 0D 03 02 00 00 00 00 25 [18:52:00]Write i2c OK [18:52:00]MH_I2C_Read... [18:52:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:52:00]Read from MH i2c: E2 [18:52:00]MH_I2C_Read... [18:52:00]Read from MH i2c: E2 0B 00 [18:52:00]MH_I2C_Read... [18:52:00]Read from MH i2c: E2 0B 00 52 58 00 03 C3 25 1F 0D C0 EB DB 90 00 C3 [18:52:00]RAPDU: 03 C3 25 1F 0D C0 EB DB 90 00 [18:52:00]wFMCommunicate OK [18:52:00]SAM_PROTO_SignData done [18:52:00]FM_MakeSignedData done [18:52:00]CreateOFDProtocolMessage [18:52:00]wFMCommunicate request_size=4 [18:52:00]MH_SAM_APDU [18:52:00]CAPDU: 80 11 00 00 [18:52:00]Write to MH i2c: E2 08 00 53 58 80 11 00 00 00 00 00 00 25 [18:52:00]Write i2c OK [18:52:00]MH_I2C_Read... [18:52:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:52:00]Read from MH i2c: E2 [18:52:00]MH_I2C_Read... [18:52:00]Read from MH i2c: E2 17 00 [18:52:00]MH_I2C_Read... [18:52:00]Read from MH i2c: E2 17 00 53 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 70 [18:52:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [18:52:00]wFMCommunicate OK [18:52:00]CreateOFDProtocolMessage done [18:52:00]OFDSenderStorePacket 68447 [18:52:00]StoreOFDPacket docnum=68447 [18:52:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 E8 0C 08 01 E3 48 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 1C 00 00 00 00 00 37 04 06 00 86 1A 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 C1 00 00 00 F4 03 04 00 D5 10 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 5F 0B 01 00 35 04 06 00 7B 08 25 E7 99 B3 03 C3 25 1F 0D C0 EB DB [18:52:00]CheckFolder [18:52:00]dirname=/storage/ofd_packets [18:52:00]CheckFolder done [18:52:00]ProducePacketName [18:52:00]name=ofd_packets/00068447 [18:52:00]NVStorageSaveData ofd_packets/00068447 [18:52:00]File name is /storage/ofd_packets/00068447 [18:52:00]Write 302 bytes [18:52:00]NVStorageSaveData done [18:52:00]OFDSenderStorePacket done [18:52:00]KKMCreateOFDPacket done [18:52:00]NVStorageSaveData kkm_last_timestamp [18:52:00]File name is /storage/kkm_last_timestamp [18:52:00]Write 4 bytes [18:52:00]NVStorageSaveData done [18:52:00]ExternCall_PrintAddStr [18:52:00]wPrintStart [18:52:00]Write to MH i2c: 01 00 00 54 58 AC [18:52:00]Write i2c OK [18:52:00]MH_I2C_Read... [18:52:00]Read from MH i2c: 01 [18:52:00]MH_I2C_Read... [18:52:00]Read from MH i2c: 01 07 00 [18:52:00]MH_I2C_Read... [18:52:00]Read from MH i2c: 01 07 00 54 58 00 00 00 00 00 FF 0F C1 [18:52:00]RasterBufferAndPrint [18:52:00]line Счет N : (1)706551 [18:52:00]line ИНН: 02508201610067 [18:52:00]line Контрольно-Кассовый Чек [18:52:00]line ПРОДАЖА [18:52:00]line ТРК (МРК, ГНК) : 62 [18:52:00]line Товар: 2710124130 [18:52:00]line Super-92-К-5 [18:52:00]line 7.370 * 67.90 [18:52:00]line = 500.42 [18:52:00]line НДС 12% НСП 1% [18:52:00]line > о реализуемом товаре [18:52:00]line ОКРУГЛЕНИЕ: -0.42 [18:52:00]line ИТОГО: 500.00 [18:52:00]line Внесено: 500.00 [18:52:00]line СДАЧА: 0.00 [18:52:00]line НСП 1% : 4.43 [18:52:00]line НДС 12% : 53.14 [18:52:00]line Наличными: 500.00 [18:52:00]line Безнал.: 0.00 [18:52:00]line Место: АЗС № 62 "Партнер Нефть" [18:52:00]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [18:52:00]line СНО: Общий режим [18:52:00]line Чек 193 03.06.2024 18:52 [18:52:00]line Смена: 324 ФФД: 1.0 [18:52:00]line ЗНМ: 0300000181 [18:52:00]line РНМ: 0000000000098096 [18:52:00]line Версия ККМ: 001 [18:52:00]line ФМ: 0000000000965400 [18:52:00]line ФД: 68447 [18:52:00]line ФПД: 135274925889971 [18:52:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T185205&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68447&fm=135274925889971&tin=02508201610067®Number=0000000000098096&sum=50000 [18:52:00]written 0, free lines is 4095 [18:52:01]Write to MH i2c: 01 00 00 7F 58 D7 [18:52:01]Write i2c OK [18:52:01]MH_I2C_Read... [18:52:01]Read from MH i2c: 01 [18:52:01]MH_I2C_Read... [18:52:01]Read from MH i2c: 01 07 00 [18:52:01]MH_I2C_Read... [18:52:01]Read from MH i2c: 01 07 00 7F 58 00 00 00 00 00 DC 0C C6 [18:52:01]RasterBufferAndPrint [18:52:01]line [18:52:01]line [18:52:01]line [18:52:01]line [18:52:01]line [18:52:01]written 0, free lines is 3298 [18:52:01]MH_Cut [18:52:01]Write to MH i2c: D1 01 00 86 58 01 B0 [18:52:01]Write i2c OK [18:52:01]MH_I2C_Read... [18:52:01]Read from MH i2c: D1 [18:52:01]MH_I2C_Read... [18:52:01]Read from MH i2c: D1 01 00 [18:52:01]MH_I2C_Read... [18:52:01]Read from MH i2c: D1 01 00 86 58 00 AF [18:52:01]Write to MH i2c: 01 00 00 87 58 DF [18:52:01]Write i2c OK [18:52:01]MH_I2C_Read... [18:52:01]*** Cut start [18:52:01]*** Partial cut [18:52:01]*** CUTSNS_PIN = 1 [18:52:02]*** CUTSNS_PIN = 0 [18:52:02]*** Brake cut motor [18:52:02]Read from MH i2c: 01 [18:52:02]MH_I2C_Read... [18:52:02]*** Stop cut motor [18:52:02]*** Cut end [18:52:02]Read from MH i2c: 01 07 00 [18:52:02]MH_I2C_Read... [18:52:02]Read from MH i2c: 01 07 00 87 58 00 00 00 00 00 FF 0F F4 [18:52:02]process_action close_receipt done [18:52:02]requested_data is exist [18:52:02]produce_requested_data [18:52:02]requested_item fm.sn is exist - process it [18:52:02]wFMCommunicate request_size=4 [18:52:02]MH_SAM_APDU [18:52:02]CAPDU: 80 11 00 00 [18:52:02]Write to MH i2c: E2 08 00 88 58 80 11 00 00 00 00 00 00 5A [18:52:02]Write i2c OK [18:52:02]MH_I2C_Read... [18:52:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:52:02]Read from MH i2c: E2 [18:52:02]MH_I2C_Read... [18:52:02]Read from MH i2c: E2 17 00 [18:52:02]MH_I2C_Read... [18:52:02]Read from MH i2c: E2 17 00 88 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 A5 [18:52:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [18:52:02]wFMCommunicate OK [18:52:02]requested_item fd.num is exist - process it [18:52:02]SAM_PROTO_GetFieldsCounters [18:52:02]wFMCommunicate request_size=4 [18:52:02]MH_SAM_APDU [18:52:02]CAPDU: 80 13 00 00 [18:52:02]Write to MH i2c: E2 08 00 89 58 80 13 00 00 00 00 00 00 5D [18:52:02]Write i2c OK [18:52:02]MH_I2C_Read... [18:52:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:52:02]Read from MH i2c: E2 [18:52:02]MH_I2C_Read... [18:52:02]Read from MH i2c: E2 62 00 [18:52:02]MH_I2C_Read... [18:52:02]Read from MH i2c: E2 62 00 89 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 5F 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 70 [18:52:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 5F 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:52:02]wFMCommunicate OK [18:52:02]SAM_PROTO_GetFieldsCounters done [18:52:02]requested_item shift.num is exist - process it [18:52:02]requested_item shift.opened is exist - process it [18:52:02]req_shift_opened [18:52:02]FM_GetShiftState [18:52:02]SAM_PROTO_GetShiftState [18:52:02]wFMCommunicate request_size=4 [18:52:02]MH_SAM_APDU [18:52:02]CAPDU: 80 13 01 00 [18:52:02]Write to MH i2c: E2 08 00 8A 58 80 13 01 00 00 00 00 00 5F [18:52:02]Write i2c OK [18:52:02]MH_I2C_Read... [18:52:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:52:02]Read from MH i2c: E2 [18:52:02]MH_I2C_Read... [18:52:02]Read from MH i2c: E2 0E 00 [18:52:02]MH_I2C_Read... [18:52:02]Read from MH i2c: E2 0E 00 8A 58 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 3A [18:52:02]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [18:52:02]wFMCommunicate OK [18:52:02]SAM_PROTO_GetShiftState done [18:52:02]FM_GetShiftState done [18:52:02]req_shift_opened done [18:52:02]requested_item shift.open_date is exist - process it [18:52:02]req_shift_open_date [18:52:02]req_shift_open_date done [18:52:02]produce_requested_data done [18:52:02]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68447,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [18:52:02]process_action_free close_receipt [18:52:02]json_value_free [18:52:02]json_value_free done [18:52:02]process_json_proto returns [18:52:02]Send response to host [18:52:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68447,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [18:52:02]free response buf [18:52:02]execute_script done [18:52:02]execute_script returns [18:52:02]free content buf [18:52:02]Sock 5.Close socket [18:52:02]Sock 5.Thread stoped [18:54:04]ConnectInit Can't connect to host [18:54:04]CommunicateWithHost connect error [18:54:04]CommunicateWithHost err = -1 [18:54:04]OFD Sender: Server communicate error [18:54:04]OFD Sender: Processing packet 68446 [packets to send 27, broken 25] [18:54:04]ProducePacketName [18:54:04]name=ofd_packets/00068446 [18:54:04]OFD Sender: To server: pG, [18:54:04]CommunicateWithHost lk.salyk.kg:30040 [18:54:04]ConnectInit lk.salyk.kg [18:54:04]Connected sock=5 [18:54:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 5F 0C 08 01 B7 65 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 34 FF 03 08 00 03 72 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 56 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 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 9A 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 CB 10 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 5E 0B 01 00 35 04 06 00 66 7F 03 30 D6 73 D5 01 3D 6A D9 F0 5E 54 [18:54:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 23 87 47 00 3A BD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 5E 0B 01 00 F4 03 04 00 4C B8 5D 66 B6 04 01 00 00 1F A9 81 FE 5C 46 53 2C [18:54:04]CommunicateWithHost err = 0 [18:54:04]CheckOFDResponse [18:54:04]1017 (14) - 77093643461234 [18:54:04]1041 (16) - 0000000000965400 [18:54:04]1040 (4) - 68446 [18:54:04]1012 (4) - 03.06.2024 12:34 [18:54:04]1206 (1) - 0 [18:54:04]OFD Sender: Remove packet 68446 [18:54:04]ProducePacketName [18:54:04]name=ofd_packets/00068446 [18:54:04]NVStorageDeleteData [18:54:05]OFD Sender: Processing packet 68447 [packets to send 26, broken 25] [18:54:05]ProducePacketName [18:54:05]name=ofd_packets/00068447 [18:54:05]OFD Sender: To server: pG, [18:54:05]CommunicateWithHost lk.salyk.kg:30040 [18:54:05]ConnectInit lk.salyk.kg [18:54:05]Connected sock=5 [18:54:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 E8 0C 08 01 E3 48 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 1C 00 00 00 00 00 37 04 06 00 86 1A 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 C1 00 00 00 F4 03 04 00 D5 10 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 5F 0B 01 00 35 04 06 00 7B 08 25 E7 99 B3 03 C3 25 1F 0D C0 EB DB [18:54:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 53 EC 47 00 4E F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 5F 0B 01 00 F4 03 04 00 4D B8 5D 66 B6 04 01 00 00 73 37 76 5C 1F 48 90 36 [18:54:05]CommunicateWithHost err = 0 [18:54:05]CheckOFDResponse [18:54:05]1017 (14) - 77093643461234 [18:54:05]1041 (16) - 0000000000965400 [18:54:05]1040 (4) - 68447 [18:54:05]1012 (4) - 03.06.2024 12:34 [18:54:05]1206 (1) - 0 [18:54:05]OFD Sender: Remove packet 68447 [18:54:05]ProducePacketName [18:54:05]name=ofd_packets/00068447 [18:54:05]NVStorageDeleteData [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:49]accept exits with 6 [19:05:49]New connection [19:05:49]New thread 3066686820 created [19:05:49]Thread 3066543460 joined [19:05:49]Waiting for new connection... [19:05:49] Sock 6.Parse request [19:05:49]Sock 6.Check first char [19:05:49]Sock 6.First char is OK [19:05:49]request: POST /json_proto HTTP/1.0 [19:05:49]Method: POST [19:05:49]URL: /json_proto [19:05:49]Method is POST - this is cgi request [19:05:49]url: /json_proto [19:05:49]query_string will be loaded in cgi processing [19:05:49]execute_cgi json_proto POST (null) [19:05:49]execute_cgi path=json_proto method=POST [19:05:49]POST find Content-Length [19:05:49]Host: 172.17.36.132:8080 [19:05:49]Content-Length: 843 [19:05:49]Content-Type: application/json [19:05:49] [19:05:49]POST finish read [19:05:49]Found Content-Length = 843 [19:05:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706552", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:05:49]execute_script... [19:05: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)706552", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:05:49]POST & json_proto [19:05:49]process_json_proto [19:05:49]json parsed OK: [19:05:49]protocol is kg_v1.0 [19:05:49]action value=close_receipt [19:05:49]process_action close_receipt [19:05:49]cmd_close_receipt [19:05:49]MH_GetDate [19:05:49]Write to MH i2c: F0 00 00 8B 58 D2 [19:05:49]Write i2c OK [19:05:49]MH_I2C_Read... [19:05:49]Read from MH i2c: F0 [19:05:49]MH_I2C_Read... [19:05:49]Read from MH i2c: F0 09 00 [19:05:49]MH_I2C_Read... [19:05:49]Read from MH i2c: F0 09 00 8B 58 00 14 14 5E 66 B2 22 B0 64 AF [19:05:49]GetLastDocTimeStamp 1717440725 [19:05:49]current date 1717441556 [19:05:49]FM_GetShiftState [19:05:49]SAM_PROTO_GetShiftState [19:05:49]wFMCommunicate request_size=4 [19:05:49]MH_SAM_APDU [19:05:49]CAPDU: 80 13 01 00 [19:05:49]Write to MH i2c: E2 08 00 8C 58 80 13 01 00 00 00 00 00 61 [19:05:49]Write i2c OK [19:05:49]MH_I2C_Read... [19:05:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:05:49]Read from MH i2c: E2 [19:05:49]MH_I2C_Read... [19:05:49]Read from MH i2c: E2 0E 00 [19:05:49]MH_I2C_Read... [19:05:49]Read from MH i2c: E2 0E 00 8C 58 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 3C [19:05:49]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [19:05:49]wFMCommunicate OK [19:05:49]SAM_PROTO_GetShiftState done [19:05:49]FM_GetShiftState done [19:05:49]opened in 1717378033 [19:05:49]opened+sec_in_day 1717464433 [19:05:49]quantity*price = 100015 [19:05:49]sum+1 = 100017 [19:05:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 194 03.06.2024 19:05 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68448 ФПД: 273372283291686 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T190556&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68448&fm=273372283291686&tin=02508201610067®Number=0000000000098096&sum=100016 [19:05:51]StoreToDocumentArchive [19:05:51]shift 324 fd 68448 [19:05:51]save to /storage/0324/doc_00068448 [19:05:51]save last doc name /storage/0324/doc_00068448 to /storage/kkm_last_doc_name [19:05:51]save OK [19:05:51]Clear old archive folders... [19:05:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:05:51]tlvbuf is 004A52E0 [19:05:51]SAM_PROTO_ClearQueue [19:05:51]wFMCommunicate request_size=4 [19:05:51]MH_SAM_APDU [19:05:51]CAPDU: 80 09 00 00 [19:05:51]Write to MH i2c: E2 08 00 99 58 80 09 00 00 00 00 00 00 63 [19:05:51]Write i2c OK [19:05:51]MH_I2C_Read... [19:05:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:05:51]Read from MH i2c: E2 [19:05:51]MH_I2C_Read... [19:05:51]Read from MH i2c: E2 03 00 [19:05:51]MH_I2C_Read... [19:05:51]Read from MH i2c: E2 03 00 99 58 00 90 00 65 [19:05:51]RAPDU: 90 00 [19:05:51]wFMCommunicate OK [19:05:51]SAM_PROTO_ClearQueue done [19:05:51]KKMCreateOFDPacket [19:05:51]OFDProtocolAddRootSTLVToBuf [19:05:51]FM_MakeSignedData [19:05:51]FM_MakeSignedData [19:05:51]SAM_PROTO_SignData [19:05:51]wFMCommunicate request_size=4 [19:05:51]MH_SAM_APDU [19:05:51]CAPDU: 80 0D 01 02 [19:05:51]Write to MH i2c: E2 08 00 9A 58 80 0D 01 02 00 00 00 00 6B [19:05:51]Write i2c OK [19:05:51]MH_I2C_Read... [19:05:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:05:51]Read from MH i2c: E2 [19:05:51]MH_I2C_Read... [19:05:51]Read from MH i2c: E2 03 00 [19:05:51]MH_I2C_Read... [19:05:51]Read from MH i2c: E2 03 00 9A 58 00 90 00 66 [19:05:51]RAPDU: 90 00 [19:05:51]wFMCommunicate OK [19:05:51]wFMCommunicate request_size=255 [19:05:51]MH_SAM_APDU [19:05:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 14 14 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 60 0B 01 00 35 04 06 00 F8 [19:05:51]Write to MH i2c: E2 02 01 9B 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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 14 14 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 60 0B 01 00 35 04 06 00 F8 00 00 69 [19:05:51]Write i2c OK [19:05:51]MH_I2C_Read... [19:05:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:05:51]Read from MH i2c: E2 [19:05:51]MH_I2C_Read... [19:05:51]Read from MH i2c: E2 03 00 [19:05:51]MH_I2C_Read... [19:05:51]Read from MH i2c: E2 03 00 9B 58 00 90 00 67 [19:05:51]RAPDU: 90 00 [19:05:51]wFMCommunicate OK [19:05:51]wFMCommunicate request_size=10 [19:05:51]MH_SAM_APDU [19:05:51]CAPDU: 80 0D 02 02 05 A1 71 D6 48 26 [19:05:51]Write to MH i2c: E2 0D 00 9C 58 80 0D 02 02 05 00 A1 71 D6 48 26 00 00 CE [19:05:51]Write i2c OK [19:05:51]MH_I2C_Read... [19:05:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:05:51]Read from MH i2c: E2 [19:05:51]MH_I2C_Read... [19:05:51]Read from MH i2c: E2 03 00 [19:05:51]MH_I2C_Read... [19:05:51]Read from MH i2c: E2 03 00 9C 58 00 90 00 68 [19:05:51]RAPDU: 90 00 [19:05:51]wFMCommunicate OK [19:05:51]wFMCommunicate request_size=4 [19:05:51]MH_SAM_APDU [19:05:51]CAPDU: 80 0D 03 02 [19:05:51]Write to MH i2c: E2 08 00 9D 58 80 0D 03 02 00 00 00 00 70 [19:05:51]Write i2c OK [19:05:51]MH_I2C_Read... [19:05:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:05:51]Read from MH i2c: E2 [19:05:51]MH_I2C_Read... [19:05:51]Read from MH i2c: E2 0B 00 [19:05:51]MH_I2C_Read... [19:05:51]Read from MH i2c: E2 0B 00 9D 58 00 AF 35 5E D2 B3 DE D7 AD 90 00 9A [19:05:51]RAPDU: AF 35 5E D2 B3 DE D7 AD 90 00 [19:05:51]wFMCommunicate OK [19:05:51]SAM_PROTO_SignData done [19:05:51]FM_MakeSignedData done [19:05:51]CreateOFDProtocolMessage [19:05:51]wFMCommunicate request_size=4 [19:05:51]MH_SAM_APDU [19:05:51]CAPDU: 80 11 00 00 [19:05:51]Write to MH i2c: E2 08 00 9E 58 80 11 00 00 00 00 00 00 70 [19:05:51]Write i2c OK [19:05:51]MH_I2C_Read... [19:05:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:05:51]Read from MH i2c: E2 [19:05:51]MH_I2C_Read... [19:05:51]Read from MH i2c: E2 17 00 [19:05:51]MH_I2C_Read... [19:05:51]Read from MH i2c: E2 17 00 9E 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 BB [19:05:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [19:05:51]wFMCommunicate OK [19:05:51]CreateOFDProtocolMessage done [19:05:51]OFDSenderStorePacket 68448 [19:05:51]StoreOFDPacket docnum=68448 [19:05:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 D2 BC 07 01 48 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 14 14 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 60 0B 01 00 35 04 06 00 F8 A1 71 D6 48 26 AF 35 5E D2 B3 DE D7 AD [19:05:51]CheckFolder [19:05:51]dirname=/storage/ofd_packets [19:05:51]CheckFolder done [19:05:51]ProducePacketName [19:05:51]name=ofd_packets/00068448 [19:05:51]NVStorageSaveData ofd_packets/00068448 [19:05:51]File name is /storage/ofd_packets/00068448 [19:05:51]Write 301 bytes [19:05:51]NVStorageSaveData done [19:05:51]OFDSenderStorePacket done [19:05:51]KKMCreateOFDPacket done [19:05:51]NVStorageSaveData kkm_last_timestamp [19:05:51]File name is /storage/kkm_last_timestamp [19:05:51]Write 4 bytes [19:05:51]NVStorageSaveData done [19:05:51]ExternCall_PrintAddStr [19:05:51]wPrintStart [19:05:51]Write to MH i2c: 01 00 00 9F 58 F7 [19:05:51]Write i2c OK [19:05:51]MH_I2C_Read... [19:05:51]Read from MH i2c: 01 [19:05:51]MH_I2C_Read... [19:05:51]Read from MH i2c: 01 07 00 [19:05:51]MH_I2C_Read... [19:05:51]Read from MH i2c: 01 07 00 9F 58 00 00 00 00 00 FF 0F 0C [19:05:51]RasterBufferAndPrint [19:05:51]line Счет N : (1)706552 [19:05:51]line ИНН: 02508201610067 [19:05:51]line Контрольно-Кассовый Чек [19:05:51]line ПРОДАЖА [19:05:51]line ТРК (МРК, ГНК) : 32 [19:05:51]line Товар: 2710124130 [19:05:51]line Аи-92-К-4 [19:05:51]line 14.950 * 66.90 [19:05:51]line = 1000.16 [19:05:51]line НДС 12% НСП 1% [19:05:51]line > о реализуемом товаре [19:05:51]line ИТОГО: 1000.16 [19:05:51]line НСП 1% : 8.85 [19:05:51]line НДС 12% : 106.21 [19:05:51]line Наличными: 0.00 [19:05:51]line Безнал.: 1000.16 [19:05:51]line Место: АЗС № 62 "Партнер Нефть" [19:05:51]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [19:05:51]line СНО: Общий режим [19:05:51]line Чек 194 03.06.2024 19:05 [19:05:51]line Смена: 324 ФФД: 1.0 [19:05:51]line ЗНМ: 0300000181 [19:05:51]line РНМ: 0000000000098096 [19:05:51]line Версия ККМ: 001 [19:05:51]line Платежная система: АКБ Кыргызстан [19:05:51]line ФМ: 0000000000965400 [19:05:51]line ФД: 68448 [19:05:51]line ФПД: 273372283291686 [19:05:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T190556&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68448&fm=273372283291686&tin=02508201610067®Number=0000000000098096&sum=100016 [19:05:51]OFD Sender: Processing packet 68448 [packets to send 26, broken 25] [19:05:51]ProducePacketName [19:05:51]name=ofd_packets/00068448 [19:05:51]OFD Sender: To server: pG, [19:05:51]CommunicateWithHost lk.salyk.kg:30040 [19:05:51]ConnectInit lk.salyk.kg [19:05:51]written 0, free lines is 4095 [19:05:51]Connected sock=7 [19:05:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 D2 BC 07 01 48 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 14 14 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 60 0B 01 00 35 04 06 00 F8 A1 71 D6 48 26 AF 35 5E D2 B3 DE D7 AD [19:05:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 C9 83 47 00 7E 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 60 0B 01 00 F4 03 04 00 0F BB 5D 66 B6 04 01 00 00 95 27 BE 00 B4 49 7D 3D [19:05:52]CommunicateWithHost err = 0 [19:05:52]CheckOFDResponse [19:05:52]1017 (14) - 77093643461234 [19:05:52]1041 (16) - 0000000000965400 [19:05:52]1040 (4) - 68448 [19:05:52]1012 (4) - 03.06.2024 12:46 [19:05:52]1206 (1) - 0 [19:05:52]OFD Sender: Remove packet 68448 [19:05:52]ProducePacketName [19:05:52]name=ofd_packets/00068448 [19:05:52]NVStorageDeleteData [19:05:52]Write to MH i2c: 01 00 00 C9 58 21 [19:05:52]Write i2c OK [19:05:52]MH_I2C_Read... [19:05:52]Read from MH i2c: 01 [19:05:52]MH_I2C_Read... [19:05:52]Read from MH i2c: 01 07 00 [19:05:52]MH_I2C_Read... [19:05:52]Read from MH i2c: 01 07 00 C9 58 00 00 00 00 00 E5 0C 19 [19:05:52]RasterBufferAndPrint [19:05:52]line [19:05:52]line [19:05:52]line [19:05:52]line [19:05:52]line [19:05:52]written 0, free lines is 3308 [19:05:52]MH_Cut [19:05:52]Write to MH i2c: D1 01 00 D0 58 01 FA [19:05:52]Write i2c OK [19:05:52]MH_I2C_Read... [19:05:52]Read from MH i2c: D1 [19:05:52]MH_I2C_Read... [19:05:52]Read from MH i2c: D1 01 00 [19:05:52]MH_I2C_Read... [19:05:52]Read from MH i2c: D1 01 00 D0 58 00 F9 [19:05:52]Write to MH i2c: 01 00 00 D1 58 29 [19:05:52]Write i2c OK [19:05:52]MH_I2C_Read... [19:05:52]OFD Sender: No OFD packet to send [19:05:53]*** Cut start [19:05:53]*** Partial cut [19:05:53]*** CUTSNS_PIN = 1 [19:05:53]*** CUTSNS_PIN = 0 [19:05:53]*** Brake cut motor [19:05:53]Read from MH i2c: 01 [19:05:53]MH_I2C_Read... [19:05:53]*** Stop cut motor [19:05:53]*** Cut end [19:05:53]Read from MH i2c: 01 07 00 [19:05:53]MH_I2C_Read... [19:05:53]Read from MH i2c: 01 07 00 D1 58 00 00 00 00 00 FF 0F 3E [19:05:53]process_action close_receipt done [19:05:53]requested_data is exist [19:05:53]produce_requested_data [19:05:53]requested_item fm.sn is exist - process it [19:05:53]wFMCommunicate request_size=4 [19:05:53]MH_SAM_APDU [19:05:53]CAPDU: 80 11 00 00 [19:05:53]Write to MH i2c: E2 08 00 D2 58 80 11 00 00 00 00 00 00 A4 [19:05:53]Write i2c OK [19:05:53]MH_I2C_Read... [19:05:53]Read from MH i2c: E2 [19:05:53]MH_I2C_Read... [19:05:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:05:53]Read from MH i2c: E2 17 00 [19:05:53]MH_I2C_Read... [19:05:53]Read from MH i2c: E2 17 00 D2 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 EF [19:05:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [19:05:53]wFMCommunicate OK [19:05:53]requested_item fd.num is exist - process it [19:05:53]SAM_PROTO_GetFieldsCounters [19:05:53]wFMCommunicate request_size=4 [19:05:53]MH_SAM_APDU [19:05:53]CAPDU: 80 13 00 00 [19:05:53]Write to MH i2c: E2 08 00 D3 58 80 13 00 00 00 00 00 00 A7 [19:05:53]Write i2c OK [19:05:53]MH_I2C_Read... [19:05:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:05:53]Read from MH i2c: E2 [19:05:53]MH_I2C_Read... [19:05:53]Read from MH i2c: E2 62 00 [19:05:53]MH_I2C_Read... [19:05:53]Read from MH i2c: E2 62 00 D3 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 60 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 BE [19:05:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 60 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:05:53]wFMCommunicate OK [19:05:53]SAM_PROTO_GetFieldsCounters done [19:05:53]requested_item shift.num is exist - process it [19:05:53]requested_item shift.opened is exist - process it [19:05:53]req_shift_opened [19:05:53]FM_GetShiftState [19:05:53]SAM_PROTO_GetShiftState [19:05:53]wFMCommunicate request_size=4 [19:05:53]MH_SAM_APDU [19:05:53]CAPDU: 80 13 01 00 [19:05:53]Write to MH i2c: E2 08 00 D4 58 80 13 01 00 00 00 00 00 A9 [19:05:53]Write i2c OK [19:05:53]MH_I2C_Read... [19:05:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:05:54]Read from MH i2c: E2 [19:05:54]MH_I2C_Read... [19:05:54]Read from MH i2c: E2 0E 00 [19:05:54]MH_I2C_Read... [19:05:54]Read from MH i2c: E2 0E 00 D4 58 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 84 [19:05:54]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [19:05:54]wFMCommunicate OK [19:05:54]SAM_PROTO_GetShiftState done [19:05:54]FM_GetShiftState done [19:05:54]req_shift_opened done [19:05:54]requested_item shift.open_date is exist - process it [19:05:54]req_shift_open_date [19:05:54]req_shift_open_date done [19:05:54]produce_requested_data done [19:05:54]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68448,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [19:05:54]process_action_free close_receipt [19:05:54]json_value_free [19:05:54]json_value_free done [19:05:54]process_json_proto returns [19:05:54]Send response to host [19:05:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68448,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [19:05:54]free response buf [19:05:54]execute_script done [19:05:54]execute_script returns [19:05:54]free content buf [19:05:54]Sock 6.Close socket [19:05:54]Sock 6.Thread stoped [19:05:54]accept exits with 5 [19:05:54]New connection [19:05:54]New thread 3066543460 created [19:05:54]Thread 3066686820 joined [19:05:54]Waiting for new connection... [19:05:54] Sock 5.Parse request [19:05:54]Sock 5.Check first char [19:05:54]Sock 5.First char is OK [19:05:54]request: POST /json_proto HTTP/1.0 [19:05:54]Method: POST [19:05:54]URL: /json_proto [19:05:54]Method is POST - this is cgi request [19:05:54]url: /json_proto [19:05:54]query_string will be loaded in cgi processing [19:05:54]execute_cgi json_proto POST (null) [19:05:54]execute_cgi path=json_proto method=POST [19:05:54]POST find Content-Length [19:05:54]Host: 172.17.36.132:8080 [19:05:54]Content-Length: 840 [19:05:54]Content-Type: application/json [19:05:54] [19:05:54]POST finish read [19:05:54]Found Content-Length = 840 [19:05:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706553", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:05:54]execute_script... [19:05:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706553", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:05:54]POST & json_proto [19:05:54]process_json_proto [19:05:54]json parsed OK: [19:05:54]protocol is kg_v1.0 [19:05:54]action value=close_receipt [19:05:54]process_action close_receipt [19:05:54]cmd_close_receipt [19:05:54]MH_GetDate [19:05:54]Write to MH i2c: F0 00 00 D5 58 1C [19:05:54]Write i2c OK [19:05:54]MH_I2C_Read... [19:05:54]Read from MH i2c: F0 [19:05:54]MH_I2C_Read... [19:05:54]Read from MH i2c: F0 09 00 [19:05:54]MH_I2C_Read... [19:05:54]Read from MH i2c: F0 09 00 D5 58 00 19 14 5E 66 B2 22 B0 64 FE [19:05:54]GetLastDocTimeStamp 1717441556 [19:05:54]current date 1717441561 [19:05:54]FM_GetShiftState [19:05:54]SAM_PROTO_GetShiftState [19:05:54]wFMCommunicate request_size=4 [19:05:54]MH_SAM_APDU [19:05:54]CAPDU: 80 13 01 00 [19:05:54]Write to MH i2c: E2 08 00 D6 58 80 13 01 00 00 00 00 00 AB [19:05:54]Write i2c OK [19:05:54]MH_I2C_Read... [19:05:54]Read from MH i2c: E2 [19:05:54]MH_I2C_Read... [19:05:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:05:54]Read from MH i2c: E2 0E 00 [19:05:54]MH_I2C_Read... [19:05:54]Read from MH i2c: E2 0E 00 D6 58 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 86 [19:05:54]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [19:05:54]wFMCommunicate OK [19:05:54]SAM_PROTO_GetShiftState done [19:05:54]FM_GetShiftState done [19:05:54]opened in 1717378033 [19:05:54]opened+sec_in_day 1717464433 [19:05:54]quantity*price = 20003 [19:05:54]sum+1 = 20004 [19:05:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.03 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 0.00 Безнал.: 200.03 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 195 03.06.2024 19:06 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68449 ФПД: 172680506958980 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T190601&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68449&fm=172680506958980&tin=02508201610067®Number=0000000000098096&sum=20003 [19:05:55]StoreToDocumentArchive [19:05:55]shift 324 fd 68449 [19:05:55]save to /storage/0324/doc_00068449 [19:05:55]save last doc name /storage/0324/doc_00068449 to /storage/kkm_last_doc_name [19:05:55]save OK [19:05:55]Clear old archive folders... [19:05:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:05:55]tlvbuf is 00340B60 [19:05:55]SAM_PROTO_ClearQueue [19:05:55]wFMCommunicate request_size=4 [19:05:55]MH_SAM_APDU [19:05:55]CAPDU: 80 09 00 00 [19:05:55]Write to MH i2c: E2 08 00 E3 58 80 09 00 00 00 00 00 00 AD [19:05:55]Write i2c OK [19:05:55]MH_I2C_Read... [19:05:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:05:55]Read from MH i2c: E2 [19:05:55]MH_I2C_Read... [19:05:55]Read from MH i2c: E2 03 00 [19:05:55]MH_I2C_Read... [19:05:55]Read from MH i2c: E2 03 00 E3 58 00 90 00 AF [19:05:55]RAPDU: 90 00 [19:05:55]wFMCommunicate OK [19:05:55]SAM_PROTO_ClearQueue done [19:05:55]KKMCreateOFDPacket [19:05:55]OFDProtocolAddRootSTLVToBuf [19:05:55]FM_MakeSignedData [19:05:55]FM_MakeSignedData [19:05:55]SAM_PROTO_SignData [19:05:55]wFMCommunicate request_size=4 [19:05:55]MH_SAM_APDU [19:05:55]CAPDU: 80 0D 01 02 [19:05:55]Write to MH i2c: E2 08 00 E4 58 80 0D 01 02 00 00 00 00 B5 [19:05:55]Write i2c OK [19:05:55]MH_I2C_Read... [19:05:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:05:55]Read from MH i2c: E2 [19:05:55]MH_I2C_Read... [19:05:55]Read from MH i2c: E2 03 00 [19:05:55]MH_I2C_Read... [19:05:55]Read from MH i2c: E2 03 00 E4 58 00 90 00 B0 [19:05:55]RAPDU: 90 00 [19:05:55]wFMCommunicate OK [19:05:55]wFMCommunicate request_size=255 [19:05:55]MH_SAM_APDU [19:05:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 19 14 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 61 0B 01 00 35 04 06 00 9D [19:05:55]Write to MH i2c: E2 02 01 E5 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 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 19 14 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 61 0B 01 00 35 04 06 00 9D 00 00 0D [19:05:55]Write i2c OK [19:05:55]MH_I2C_Read... [19:05:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:05:56]Read from MH i2c: E2 [19:05:56]MH_I2C_Read... [19:05:56]Read from MH i2c: E2 03 00 [19:05:56]MH_I2C_Read... [19:05:56]Read from MH i2c: E2 03 00 E5 58 00 90 00 B1 [19:05:56]RAPDU: 90 00 [19:05:56]wFMCommunicate OK [19:05:56]wFMCommunicate request_size=10 [19:05:56]MH_SAM_APDU [19:05:56]CAPDU: 80 0D 02 02 05 0D 50 46 E4 84 [19:05:56]Write to MH i2c: E2 0D 00 E6 58 80 0D 02 02 05 00 0D 50 46 E4 84 00 00 CD [19:05:56]Write i2c OK [19:05:56]MH_I2C_Read... [19:05:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:05:56]Read from MH i2c: E2 [19:05:56]MH_I2C_Read... [19:05:56]Read from MH i2c: E2 03 00 [19:05:56]MH_I2C_Read... [19:05:56]Read from MH i2c: E2 03 00 E6 58 00 90 00 B2 [19:05:56]RAPDU: 90 00 [19:05:56]wFMCommunicate OK [19:05:56]wFMCommunicate request_size=4 [19:05:56]MH_SAM_APDU [19:05:56]CAPDU: 80 0D 03 02 [19:05:56]Write to MH i2c: E2 08 00 E7 58 80 0D 03 02 00 00 00 00 BA [19:05:56]Write i2c OK [19:05:56]MH_I2C_Read... [19:05:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:05:56]Read from MH i2c: E2 [19:05:56]MH_I2C_Read... [19:05:56]Read from MH i2c: E2 0B 00 [19:05:56]MH_I2C_Read... [19:05:56]Read from MH i2c: E2 0B 00 E7 58 00 BB 8A 13 D7 94 B6 D7 E9 90 00 F4 [19:05:56]RAPDU: BB 8A 13 D7 94 B6 D7 E9 90 00 [19:05:56]wFMCommunicate OK [19:05:56]SAM_PROTO_SignData done [19:05:56]FM_MakeSignedData done [19:05:56]CreateOFDProtocolMessage [19:05:56]wFMCommunicate request_size=4 [19:05:56]MH_SAM_APDU [19:05:56]CAPDU: 80 11 00 00 [19:05:56]Write to MH i2c: E2 08 00 E8 58 80 11 00 00 00 00 00 00 BA [19:05:56]Write i2c OK [19:05:56]MH_I2C_Read... [19:05:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:05:56]Read from MH i2c: E2 [19:05:56]MH_I2C_Read... [19:05:56]Read from MH i2c: E2 17 00 [19:05:56]MH_I2C_Read... [19:05:56]Read from MH i2c: E2 17 00 E8 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 05 [19:05:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [19:05:56]wFMCommunicate OK [19:05:56]CreateOFDProtocolMessage done [19:05:56]OFDSenderStorePacket 68449 [19:05:56]StoreOFDPacket docnum=68449 [19:05:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 65 D6 07 01 E3 EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 19 14 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 61 0B 01 00 35 04 06 00 9D 0D 50 46 E4 84 BB 8A 13 D7 94 B6 D7 E9 [19:05:56]CheckFolder [19:05:56]dirname=/storage/ofd_packets [19:05:56]CheckFolder done [19:05:56]ProducePacketName [19:05:56]name=ofd_packets/00068449 [19:05:56]NVStorageSaveData ofd_packets/00068449 [19:05:56]File name is /storage/ofd_packets/00068449 [19:05:56]Write 301 bytes [19:05:56]NVStorageSaveData done [19:05:56]OFDSenderStorePacket done [19:05:56]KKMCreateOFDPacket done [19:05:56]NVStorageSaveData kkm_last_timestamp [19:05:56]File name is /storage/kkm_last_timestamp [19:05:56]Write 4 bytes [19:05:56]NVStorageSaveData done [19:05:56]ExternCall_PrintAddStr [19:05:56]wPrintStart [19:05:56]Write to MH i2c: 01 00 00 E9 58 41 [19:05:56]Write i2c OK [19:05:56]MH_I2C_Read... [19:05:56]Read from MH i2c: 01 [19:05:56]MH_I2C_Read... [19:05:56]Read from MH i2c: 01 07 00 [19:05:56]MH_I2C_Read... [19:05:56]Read from MH i2c: 01 07 00 E9 58 00 00 00 00 00 FF 0F 56 [19:05:56]RasterBufferAndPrint [19:05:56]line Счет N : (1)706553 [19:05:56]line ИНН: 02508201610067 [19:05:56]line Контрольно-Кассовый Чек [19:05:56]line ПРОДАЖА [19:05:56]line ТРК (МРК, ГНК) : 42 [19:05:56]line Товар: 2710124130 [19:05:56]line Аи-92-К-4 [19:05:56]line 2.990 * 66.90 [19:05:56]line = 200.03 [19:05:56]line НДС 12% НСП 1% [19:05:56]line > о реализуемом товаре [19:05:56]line ИТОГО: 200.03 [19:05:56]line НСП 1% : 1.77 [19:05:56]line НДС 12% : 21.24 [19:05:56]line Наличными: 0.00 [19:05:56]line Безнал.: 200.03 [19:05:56]line Место: АЗС № 62 "Партнер Нефть" [19:05:56]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [19:05:56]line СНО: Общий режим [19:05:56]line Чек 195 03.06.2024 19:06 [19:05:56]line Смена: 324 ФФД: 1.0 [19:05:56]line ЗНМ: 0300000181 [19:05:56]line РНМ: 0000000000098096 [19:05:56]line Версия ККМ: 001 [19:05:56]line Платежная система: АКБ Кыргызстан [19:05:56]line ФМ: 0000000000965400 [19:05:56]line ФД: 68449 [19:05:56]line ФПД: 172680506958980 [19:05:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T190601&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68449&fm=172680506958980&tin=02508201610067®Number=0000000000098096&sum=20003 [19:05:56]OFD Sender: Processing packet 68449 [packets to send 26, broken 25] [19:05:56]ProducePacketName [19:05:56]name=ofd_packets/00068449 [19:05:56]OFD Sender: To server: pG, [19:05:56]CommunicateWithHost lk.salyk.kg:30040 [19:05:56]ConnectInit lk.salyk.kg [19:05:56]written 0, free lines is 4095 [19:05:56]Connected sock=7 [19:05:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 65 D6 07 01 E3 EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 19 14 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 61 0B 01 00 35 04 06 00 9D 0D 50 46 E4 84 BB 8A 13 D7 94 B6 D7 E9 [19:05:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 B4 E3 47 00 3D B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 61 0B 01 00 F4 03 04 00 14 BB 5D 66 B6 04 01 00 00 EB FF 8E 41 EB FA FA 22 [19:05:57]CommunicateWithHost err = 0 [19:05:57]CheckOFDResponse [19:05:57]1017 (14) - 77093643461234 [19:05:57]1041 (16) - 0000000000965400 [19:05:57]1040 (4) - 68449 [19:05:57]1012 (4) - 03.06.2024 12:46 [19:05:57]1206 (1) - 0 [19:05:57]OFD Sender: Remove packet 68449 [19:05:57]ProducePacketName [19:05:57]name=ofd_packets/00068449 [19:05:57]NVStorageDeleteData [19:05:57]Write to MH i2c: 01 00 00 13 59 6C [19:05:57]Write i2c OK [19:05:57]MH_I2C_Read... [19:05:57]Read from MH i2c: 01 [19:05:57]MH_I2C_Read... [19:05:57]Read from MH i2c: 01 07 00 [19:05:57]MH_I2C_Read... [19:05:57]Read from MH i2c: 01 07 00 13 59 00 00 00 00 00 08 0D 88 [19:05:57]RasterBufferAndPrint [19:05:57]line [19:05:57]line [19:05:57]line [19:05:57]line [19:05:57]line [19:05:57]written 0, free lines is 3348 [19:05:57]MH_Cut [19:05:57]Write to MH i2c: D1 01 00 1A 59 01 45 [19:05:57]Write i2c OK [19:05:57]MH_I2C_Read... [19:05:57]Read from MH i2c: D1 [19:05:57]MH_I2C_Read... [19:05:57]Read from MH i2c: D1 01 00 [19:05:57]MH_I2C_Read... [19:05:57]Read from MH i2c: D1 01 00 1A 59 00 44 [19:05:57]Write to MH i2c: 01 00 00 1B 59 74 [19:05:57]Write i2c OK [19:05:57]MH_I2C_Read... [19:05:57]OFD Sender: No OFD packet to send [19:05:57]*** Cut start [19:05:57]*** Partial cut [19:05:57]*** CUTSNS_PIN = 1 [19:05:58]*** CUTSNS_PIN = 0 [19:05:58]*** Brake cut motor [19:05:58]Read from MH i2c: 01 [19:05:58]MH_I2C_Read... [19:05:58]*** Stop cut motor [19:05:58]*** Cut end [19:05:58]Read from MH i2c: 01 07 00 [19:05:58]MH_I2C_Read... [19:05:58]Read from MH i2c: 01 07 00 1B 59 00 00 00 00 00 FF 0F 89 [19:05:58]process_action close_receipt done [19:05:58]requested_data is exist [19:05:58]produce_requested_data [19:05:58]requested_item fm.sn is exist - process it [19:05:58]wFMCommunicate request_size=4 [19:05:58]MH_SAM_APDU [19:05:58]CAPDU: 80 11 00 00 [19:05:58]Write to MH i2c: E2 08 00 1C 59 80 11 00 00 00 00 00 00 EF [19:05:58]Write i2c OK [19:05:58]MH_I2C_Read... [19:05:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:05:58]Read from MH i2c: E2 [19:05:58]MH_I2C_Read... [19:05:58]Read from MH i2c: E2 17 00 [19:05:58]MH_I2C_Read... [19:05:58]Read from MH i2c: E2 17 00 1C 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 3A [19:05:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [19:05:58]wFMCommunicate OK [19:05:58]requested_item fd.num is exist - process it [19:05:58]SAM_PROTO_GetFieldsCounters [19:05:58]wFMCommunicate request_size=4 [19:05:58]MH_SAM_APDU [19:05:58]CAPDU: 80 13 00 00 [19:05:58]Write to MH i2c: E2 08 00 1D 59 80 13 00 00 00 00 00 00 F2 [19:05:58]Write i2c OK [19:05:58]MH_I2C_Read... [19:05:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:05:58]Read from MH i2c: E2 [19:05:58]MH_I2C_Read... [19:05:58]Read from MH i2c: E2 62 00 [19:05:58]MH_I2C_Read... [19:05:58]Read from MH i2c: E2 62 00 1D 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 61 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 0D [19:05:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 61 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:05:58]wFMCommunicate OK [19:05:58]SAM_PROTO_GetFieldsCounters done [19:05:58]requested_item shift.num is exist - process it [19:05:58]requested_item shift.opened is exist - process it [19:05:58]req_shift_opened [19:05:58]FM_GetShiftState [19:05:58]SAM_PROTO_GetShiftState [19:05:58]wFMCommunicate request_size=4 [19:05:58]MH_SAM_APDU [19:05:58]CAPDU: 80 13 01 00 [19:05:58]Write to MH i2c: E2 08 00 1E 59 80 13 01 00 00 00 00 00 F4 [19:05:58]Write i2c OK [19:05:58]MH_I2C_Read... [19:05:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:05:58]Read from MH i2c: E2 [19:05:58]MH_I2C_Read... [19:05:58]Read from MH i2c: E2 0E 00 [19:05:58]MH_I2C_Read... [19:05:58]Read from MH i2c: E2 0E 00 1E 59 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 CF [19:05:58]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [19:05:58]wFMCommunicate OK [19:05:58]SAM_PROTO_GetShiftState done [19:05:58]FM_GetShiftState done [19:05:58]req_shift_opened done [19:05:58]requested_item shift.open_date is exist - process it [19:05:58]req_shift_open_date [19:05:58]req_shift_open_date done [19:05:58]produce_requested_data done [19:05:58]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68449,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [19:05:58]process_action_free close_receipt [19:05:58]json_value_free [19:05:58]json_value_free done [19:05:58]process_json_proto returns [19:05:58]Send response to host [19:05:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68449,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [19:05:58]free response buf [19:05:58]execute_script done [19:05:58]execute_script returns [19:05:58]free content buf [19:05:58]Sock 5.Close socket [19:05:58]Sock 5.Thread stoped [19:06:02]OFD Sender: No OFD packet to send [19:06:07]OFD Sender: No OFD packet to send [19:06:12]OFD Sender: No OFD packet to send [19:06:17]OFD Sender: No OFD packet to send [19:06:22]OFD Sender: No OFD packet to send [19:06:27]OFD Sender: No OFD packet to send [19:06:32]OFD Sender: No OFD packet to send [19:06:37]OFD Sender: No OFD packet to send [19:06:39]accept exits with 6 [19:06:39]New connection [19:06:39]New thread 3066686820 created [19:06:39]Thread 3066543460 joined [19:06:39]Waiting for new connection... [19:06:39] Sock 6.Parse request [19:06:39]Sock 6.Check first char [19:06:39]Sock 6.First char is OK [19:06:39]request: POST /json_proto HTTP/1.0 [19:06:39]Method: POST [19:06:39]URL: /json_proto [19:06:39]Method is POST - this is cgi request [19:06:39]url: /json_proto [19:06:39]query_string will be loaded in cgi processing [19:06:39]execute_cgi json_proto POST (null) [19:06:39]execute_cgi path=json_proto method=POST [19:06:39]POST find Content-Length [19:06:39]Host: 172.17.36.132:8080 [19:06:39]Content-Length: 677 [19:06:39]Content-Type: application/json [19:06:39] [19:06:39]POST finish read [19:06:39]Found Content-Length = 677 [19:06:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706554", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:06:39]execute_script... [19:06:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706554", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:06:39]POST & json_proto [19:06:39]process_json_proto [19:06:39]json parsed OK: [19:06:39]protocol is kg_v1.0 [19:06:39]action value=close_receipt [19:06:39]process_action close_receipt [19:06:39]cmd_close_receipt [19:06:39]MH_GetDate [19:06:39]Write to MH i2c: F0 00 00 1F 59 67 [19:06:39]Write i2c OK [19:06:39]MH_I2C_Read... [19:06:39]Read from MH i2c: F0 [19:06:39]MH_I2C_Read... [19:06:39]Read from MH i2c: F0 09 00 [19:06:39]MH_I2C_Read... [19:06:39]Read from MH i2c: F0 09 00 1F 59 00 45 14 5E 66 B2 22 B0 64 75 [19:06:39]GetLastDocTimeStamp 1717441561 [19:06:39]current date 1717441605 [19:06:39]FM_GetShiftState [19:06:39]SAM_PROTO_GetShiftState [19:06:39]wFMCommunicate request_size=4 [19:06:39]MH_SAM_APDU [19:06:39]CAPDU: 80 13 01 00 [19:06:39]Write to MH i2c: E2 08 00 20 59 80 13 01 00 00 00 00 00 F6 [19:06:39]Write i2c OK [19:06:39]MH_I2C_Read... [19:06:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:06:39]Read from MH i2c: E2 [19:06:39]MH_I2C_Read... [19:06:39]Read from MH i2c: E2 0E 00 [19:06:39]MH_I2C_Read... [19:06:39]Read from MH i2c: E2 0E 00 20 59 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 D1 [19:06:39]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [19:06:39]wFMCommunicate OK [19:06:39]SAM_PROTO_GetShiftState done [19:06:39]FM_GetShiftState done [19:06:39]opened in 1717378033 [19:06:39]opened+sec_in_day 1717464433 [19:06:39]quantity*price = 20003 [19:06:39]sum+1 = 20004 [19:06:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 196 03.06.2024 19:06 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68450 ФПД: 270485122907109 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T190646&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68450&fm=270485122907109&tin=02508201610067®Number=0000000000098096&sum=20000 [19:06:40]StoreToDocumentArchive [19:06:40]shift 324 fd 68450 [19:06:40]save to /storage/0324/doc_00068450 [19:06:40]save last doc name /storage/0324/doc_00068450 to /storage/kkm_last_doc_name [19:06:40]save OK [19:06:40]Clear old archive folders... [19:06:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:06:40]tlvbuf is 0027E570 [19:06:40]SAM_PROTO_ClearQueue [19:06:40]wFMCommunicate request_size=4 [19:06:40]MH_SAM_APDU [19:06:40]CAPDU: 80 09 00 00 [19:06:40]Write to MH i2c: E2 08 00 2D 59 80 09 00 00 00 00 00 00 F8 [19:06:40]Write i2c OK [19:06:40]MH_I2C_Read... [19:06:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:06:40]Read from MH i2c: E2 [19:06:40]MH_I2C_Read... [19:06:40]Read from MH i2c: E2 03 00 [19:06:40]MH_I2C_Read... [19:06:40]Read from MH i2c: E2 03 00 2D 59 00 90 00 FA [19:06:40]RAPDU: 90 00 [19:06:40]wFMCommunicate OK [19:06:40]SAM_PROTO_ClearQueue done [19:06:40]KKMCreateOFDPacket [19:06:40]OFDProtocolAddRootSTLVToBuf [19:06:40]FM_MakeSignedData [19:06:40]FM_MakeSignedData [19:06:40]SAM_PROTO_SignData [19:06:40]wFMCommunicate request_size=4 [19:06:40]MH_SAM_APDU [19:06:40]CAPDU: 80 0D 01 02 [19:06:40]Write to MH i2c: E2 08 00 2E 59 80 0D 01 02 00 00 00 00 00 [19:06:40]Write i2c OK [19:06:40]MH_I2C_Read... [19:06:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:06:40]Read from MH i2c: E2 [19:06:40]MH_I2C_Read... [19:06:40]Read from MH i2c: E2 03 00 [19:06:40]MH_I2C_Read... [19:06:40]Read from MH i2c: E2 03 00 2E 59 00 90 00 FB [19:06:40]RAPDU: 90 00 [19:06:40]wFMCommunicate OK [19:06:40]wFMCommunicate request_size=255 [19:06:40]MH_SAM_APDU [19:06: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 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 46 14 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 62 0B 01 00 35 04 06 00 F6 [19:06:40]Write to MH i2c: E2 02 01 2F 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 46 14 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 62 0B 01 00 35 04 06 00 F6 00 00 DA [19:06:40]Write i2c OK [19:06:40]MH_I2C_Read... [19:06:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:06:40]Read from MH i2c: E2 [19:06:40]MH_I2C_Read... [19:06:40]Read from MH i2c: E2 03 00 [19:06:40]MH_I2C_Read... [19:06:40]Read from MH i2c: E2 03 00 2F 59 00 90 00 FC [19:06:40]RAPDU: 90 00 [19:06:40]wFMCommunicate OK [19:06:40]wFMCommunicate request_size=10 [19:06:40]MH_SAM_APDU [19:06:40]CAPDU: 80 0D 02 02 05 01 39 AA FB E5 [19:06:40]Write to MH i2c: E2 0D 00 30 59 80 0D 02 02 05 00 01 39 AA FB E5 00 00 D1 [19:06:40]Write i2c OK [19:06:40]MH_I2C_Read... [19:06:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:06:40]Read from MH i2c: E2 [19:06:40]MH_I2C_Read... [19:06:40]Read from MH i2c: E2 03 00 [19:06:40]MH_I2C_Read... [19:06:40]Read from MH i2c: E2 03 00 30 59 00 90 00 FD [19:06:40]RAPDU: 90 00 [19:06:40]wFMCommunicate OK [19:06:40]wFMCommunicate request_size=4 [19:06:40]MH_SAM_APDU [19:06:40]CAPDU: 80 0D 03 02 [19:06:40]Write to MH i2c: E2 08 00 31 59 80 0D 03 02 00 00 00 00 05 [19:06:40]Write i2c OK [19:06:40]MH_I2C_Read... [19:06:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:06:40]Read from MH i2c: E2 [19:06:40]MH_I2C_Read... [19:06:40]Read from MH i2c: E2 0B 00 [19:06:40]MH_I2C_Read... [19:06:40]Read from MH i2c: E2 0B 00 31 59 00 93 DF 84 EA 70 B3 E3 9B 90 00 87 [19:06:40]RAPDU: 93 DF 84 EA 70 B3 E3 9B 90 00 [19:06:40]wFMCommunicate OK [19:06:40]SAM_PROTO_SignData done [19:06:40]FM_MakeSignedData done [19:06:40]CreateOFDProtocolMessage [19:06:40]wFMCommunicate request_size=4 [19:06:40]MH_SAM_APDU [19:06:40]CAPDU: 80 11 00 00 [19:06:40]Write to MH i2c: E2 08 00 32 59 80 11 00 00 00 00 00 00 05 [19:06:40]Write i2c OK [19:06:40]MH_I2C_Read... [19:06:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:06:40]Read from MH i2c: E2 [19:06:40]MH_I2C_Read... [19:06:40]Read from MH i2c: E2 17 00 [19:06:40]MH_I2C_Read... [19:06:40]Read from MH i2c: E2 17 00 32 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 50 [19:06:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [19:06:40]wFMCommunicate OK [19:06:40]CreateOFDProtocolMessage done [19:06:40]OFDSenderStorePacket 68450 [19:06:40]StoreOFDPacket docnum=68450 [19:06:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 98 21 07 01 4F 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 46 14 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 62 0B 01 00 35 04 06 00 F6 01 39 AA FB E5 93 DF 84 EA 70 B3 E3 9B [19:06:40]CheckFolder [19:06:40]dirname=/storage/ofd_packets [19:06:40]CheckFolder done [19:06:40]ProducePacketName [19:06:40]name=ofd_packets/00068450 [19:06:40]NVStorageSaveData ofd_packets/00068450 [19:06:40]File name is /storage/ofd_packets/00068450 [19:06:40]Write 301 bytes [19:06:40]NVStorageSaveData done [19:06:40]OFDSenderStorePacket done [19:06:40]KKMCreateOFDPacket done [19:06:40]NVStorageSaveData kkm_last_timestamp [19:06:40]File name is /storage/kkm_last_timestamp [19:06:40]Write 4 bytes [19:06:40]NVStorageSaveData done [19:06:40]ExternCall_PrintAddStr [19:06:40]wPrintStart [19:06:40]Write to MH i2c: 01 00 00 33 59 8C [19:06:40]Write i2c OK [19:06:40]MH_I2C_Read... [19:06:40]Read from MH i2c: 01 [19:06:40]MH_I2C_Read... [19:06:40]Read from MH i2c: 01 07 00 [19:06:40]MH_I2C_Read... [19:06:40]Read from MH i2c: 01 07 00 33 59 00 00 00 00 00 FF 0F A1 [19:06:40]RasterBufferAndPrint [19:06:40]line Счет N : (1)706554 [19:06:40]line ИНН: 02508201610067 [19:06:40]line Контрольно-Кассовый Чек [19:06:40]line ПРОДАЖА [19:06:40]line ТРК (МРК, ГНК) : 23 [19:06:40]line Товар: 2710124130 [19:06:40]line Аи-92-К-4 [19:06:40]line 2.990 * 66.90 [19:06:40]line = 200.03 [19:06:40]line НДС 12% НСП 1% [19:06:40]line > о реализуемом товаре [19:06:40]line ОКРУГЛЕНИЕ: -0.03 [19:06:40]line ИТОГО: 200.00 [19:06:40]line Внесено: 200.00 [19:06:40]line СДАЧА: 0.00 [19:06:40]line НСП 1% : 1.77 [19:06:40]line НДС 12% : 21.24 [19:06:40]line Наличными: 200.00 [19:06:40]line Безнал.: 0.00 [19:06:40]line Место: АЗС № 62 "Партнер Нефть" [19:06:40]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [19:06:40]line СНО: Общий режим [19:06:40]line Чек 196 03.06.2024 19:06 [19:06:40]line Смена: 324 ФФД: 1.0 [19:06:40]line ЗНМ: 0300000181 [19:06:40]line РНМ: 0000000000098096 [19:06:40]line Версия ККМ: 001 [19:06:40]line ФМ: 0000000000965400 [19:06:40]line ФД: 68450 [19:06:40]line ФПД: 270485122907109 [19:06:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T190646&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68450&fm=270485122907109&tin=02508201610067®Number=0000000000098096&sum=20000 [19:06:41]OFD Sender: Processing packet 68450 [packets to send 26, broken 25] [19:06:41]ProducePacketName [19:06:41]name=ofd_packets/00068450 [19:06:41]OFD Sender: To server: pG, [19:06:41]CommunicateWithHost lk.salyk.kg:30040 [19:06:41]ConnectInit lk.salyk.kg [19:06:41]written 0, free lines is 4095 [19:06:41]Connected sock=7 [19:06:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 98 21 07 01 4F 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 46 14 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 62 0B 01 00 35 04 06 00 F6 01 39 AA FB E5 93 DF 84 EA 70 B3 E3 9B [19:06:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 E2 F1 47 00 70 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 62 0B 01 00 F4 03 04 00 41 BB 5D 66 B6 04 01 00 00 FF 08 FF 14 AA 19 B6 28 [19:06:41]CommunicateWithHost err = 0 [19:06:41]CheckOFDResponse [19:06:41]1017 (14) - 77093643461234 [19:06:41]1041 (16) - 0000000000965400 [19:06:41]1040 (4) - 68450 [19:06:41]1012 (4) - 03.06.2024 12:46 [19:06:41]1206 (1) - 0 [19:06:41]OFD Sender: Remove packet 68450 [19:06:41]ProducePacketName [19:06:41]name=ofd_packets/00068450 [19:06:41]NVStorageDeleteData [19:06:41]Write to MH i2c: 01 00 00 5E 59 B7 [19:06:41]Write i2c OK [19:06:41]MH_I2C_Read... [19:06:41]Read from MH i2c: 01 [19:06:41]MH_I2C_Read... [19:06:41]Read from MH i2c: 01 07 00 [19:06:41]MH_I2C_Read... [19:06:41]Read from MH i2c: 01 07 00 5E 59 00 00 00 00 00 EB 0C B5 [19:06:41]RasterBufferAndPrint [19:06:41]line [19:06:41]line [19:06:41]line [19:06:41]line [19:06:41]line [19:06:41]written 0, free lines is 3316 [19:06:41]MH_Cut [19:06:41]Write to MH i2c: D1 01 00 65 59 01 90 [19:06:41]Write i2c OK [19:06:41]MH_I2C_Read... [19:06:41]Read from MH i2c: D1 [19:06:41]MH_I2C_Read... [19:06:41]Read from MH i2c: D1 01 00 [19:06:41]MH_I2C_Read... [19:06:41]Read from MH i2c: D1 01 00 65 59 00 8F [19:06:41]Write to MH i2c: 01 00 00 66 59 BF [19:06:41]Write i2c OK [19:06:41]MH_I2C_Read... [19:06:42]OFD Sender: No OFD packet to send [19:06:42]*** Cut start [19:06:42]*** Partial cut [19:06:42]*** CUTSNS_PIN = 1 [19:06:42]*** CUTSNS_PIN = 0 [19:06:42]*** Brake cut motor [19:06:43]Read from MH i2c: 01 [19:06:43]MH_I2C_Read... [19:06:43]*** Stop cut motor [19:06:43]*** Cut end [19:06:43]Read from MH i2c: 01 07 00 [19:06:43]MH_I2C_Read... [19:06:43]Read from MH i2c: 01 07 00 66 59 00 00 00 00 00 FF 0F D4 [19:06:43]process_action close_receipt done [19:06:43]requested_data is exist [19:06:43]produce_requested_data [19:06:43]requested_item fm.sn is exist - process it [19:06:43]wFMCommunicate request_size=4 [19:06:43]MH_SAM_APDU [19:06:43]CAPDU: 80 11 00 00 [19:06:43]Write to MH i2c: E2 08 00 67 59 80 11 00 00 00 00 00 00 3A [19:06:43]Write i2c OK [19:06:43]MH_I2C_Read... [19:06:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:06:43]Read from MH i2c: E2 [19:06:43]MH_I2C_Read... [19:06:43]Read from MH i2c: E2 17 00 [19:06:43]MH_I2C_Read... [19:06:43]Read from MH i2c: E2 17 00 67 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 85 [19:06:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [19:06:43]wFMCommunicate OK [19:06:43]requested_item fd.num is exist - process it [19:06:43]SAM_PROTO_GetFieldsCounters [19:06:43]wFMCommunicate request_size=4 [19:06:43]MH_SAM_APDU [19:06:43]CAPDU: 80 13 00 00 [19:06:43]Write to MH i2c: E2 08 00 68 59 80 13 00 00 00 00 00 00 3D [19:06:43]Write i2c OK [19:06:43]MH_I2C_Read... [19:06:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:06:43]Read from MH i2c: E2 [19:06:43]MH_I2C_Read... [19:06:43]Read from MH i2c: E2 62 00 [19:06:43]MH_I2C_Read... [19:06:43]Read from MH i2c: E2 62 00 68 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 62 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 5C [19:06:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 62 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:06:43]wFMCommunicate OK [19:06:43]SAM_PROTO_GetFieldsCounters done [19:06:43]requested_item shift.num is exist - process it [19:06:43]requested_item shift.opened is exist - process it [19:06:43]req_shift_opened [19:06:43]FM_GetShiftState [19:06:43]SAM_PROTO_GetShiftState [19:06:43]wFMCommunicate request_size=4 [19:06:43]MH_SAM_APDU [19:06:43]CAPDU: 80 13 01 00 [19:06:43]Write to MH i2c: E2 08 00 69 59 80 13 01 00 00 00 00 00 3F [19:06:43]Write i2c OK [19:06:43]MH_I2C_Read... [19:06:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:06:43]Read from MH i2c: E2 [19:06:43]MH_I2C_Read... [19:06:43]Read from MH i2c: E2 0E 00 [19:06:43]MH_I2C_Read... [19:06:43]Read from MH i2c: E2 0E 00 69 59 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 1A [19:06:43]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [19:06:43]wFMCommunicate OK [19:06:43]SAM_PROTO_GetShiftState done [19:06:43]FM_GetShiftState done [19:06:43]req_shift_opened done [19:06:43]requested_item shift.open_date is exist - process it [19:06:43]req_shift_open_date [19:06:43]req_shift_open_date done [19:06:43]produce_requested_data done [19:06:43]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68450,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [19:06:43]process_action_free close_receipt [19:06:43]json_value_free [19:06:43]json_value_free done [19:06:43]process_json_proto returns [19:06:43]Send response to host [19:06:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68450,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [19:06:43]free response buf [19:06:43]execute_script done [19:06:43]execute_script returns [19:06:43]free content buf [19:06:43]Sock 6.Close socket [19:06:43]Sock 6.Thread stoped [19:06:47]OFD Sender: No OFD packet to send [19:06:52]OFD Sender: No OFD packet to send [19:06:57]OFD Sender: No OFD packet to send [19:07:02]OFD Sender: No OFD packet to send [19:07:07]OFD Sender: No OFD packet to send [19:07:12]OFD Sender: No OFD packet to send [19:07:17]OFD Sender: No OFD packet to send [19:07:22]OFD Sender: No OFD packet to send [19:07:27]OFD Sender: No OFD packet to send [19:07:32]OFD Sender: No OFD packet to send [19:07:37]OFD Sender: No OFD packet to send [19:07:42]OFD Sender: No OFD packet to send [19:07:47]OFD Sender: No OFD packet to send [19:07:52]OFD Sender: No OFD packet to send [19:07:57]OFD Sender: No OFD packet to send [19:08:02]OFD Sender: No OFD packet to send [19:08:07]OFD Sender: No OFD packet to send [19:08:12]OFD Sender: No OFD packet to send [19:08:17]OFD Sender: No OFD packet to send [19:08:22]OFD Sender: No OFD packet to send [19:08:23]accept exits with 5 [19:08:23]New connection [19:08:23]New thread 3066543460 created [19:08:23]Thread 3066686820 joined [19:08:23]Waiting for new connection... [19:08:23] Sock 5.Parse request [19:08:23]Sock 5.Check first char [19:08:23]Sock 5.First char is OK [19:08:23]request: POST /json_proto HTTP/1.0 [19:08:23]Method: POST [19:08:23]URL: /json_proto [19:08:23]Method is POST - this is cgi request [19:08:23]url: /json_proto [19:08:23]query_string will be loaded in cgi processing [19:08:23]execute_cgi json_proto POST (null) [19:08:23]execute_cgi path=json_proto method=POST [19:08:23]POST find Content-Length [19:08:23]Host: 172.17.36.132:8080 [19:08:23]Content-Length: 677 [19:08:23]Content-Type: application/json [19:08:23] [19:08:23]POST finish read [19:08:23]Found Content-Length = 677 [19:08:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706555", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:08:23]execute_script... [19:08:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706555", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:08:23]POST & json_proto [19:08:23]process_json_proto [19:08:23]json parsed OK: [19:08:23]protocol is kg_v1.0 [19:08:23]action value=close_receipt [19:08:23]process_action close_receipt [19:08:23]cmd_close_receipt [19:08:23]MH_GetDate [19:08:23]Write to MH i2c: F0 00 00 6A 59 B2 [19:08:23]Write i2c OK [19:08:23]MH_I2C_Read... [19:08:23]Read from MH i2c: F0 [19:08:23]MH_I2C_Read... [19:08:23]Read from MH i2c: F0 09 00 [19:08:23]MH_I2C_Read... [19:08:23]Read from MH i2c: F0 09 00 6A 59 00 AE 14 5E 66 B2 22 B0 64 29 [19:08:23]GetLastDocTimeStamp 1717441606 [19:08:23]current date 1717441710 [19:08:23]FM_GetShiftState [19:08:23]SAM_PROTO_GetShiftState [19:08:23]wFMCommunicate request_size=4 [19:08:23]MH_SAM_APDU [19:08:23]CAPDU: 80 13 01 00 [19:08:23]Write to MH i2c: E2 08 00 6B 59 80 13 01 00 00 00 00 00 41 [19:08:23]Write i2c OK [19:08:23]MH_I2C_Read... [19:08:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:08:23]Read from MH i2c: E2 [19:08:23]MH_I2C_Read... [19:08:23]Read from MH i2c: E2 0E 00 [19:08:23]MH_I2C_Read... [19:08:23]Read from MH i2c: E2 0E 00 6B 59 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 1C [19:08:23]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [19:08:23]wFMCommunicate OK [19:08:23]SAM_PROTO_GetShiftState done [19:08:23]FM_GetShiftState done [19:08:23]opened in 1717378033 [19:08:23]opened+sec_in_day 1717464433 [19:08:23]quantity*price = 30038 [19:08:23]sum+1 = 30039 [19:08:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 197 03.06.2024 19:08 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68451 ФПД: 27434795079182 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T190830&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68451&fm=27434795079182&tin=02508201610067®Number=0000000000098096&sum=30000 [19:08:24]StoreToDocumentArchive [19:08:24]shift 324 fd 68451 [19:08:24]save to /storage/0324/doc_00068451 [19:08:24]save last doc name /storage/0324/doc_00068451 to /storage/kkm_last_doc_name [19:08:24]save OK [19:08:24]Clear old archive folders... [19:08:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:08:24]tlvbuf is 003DF2F0 [19:08:24]SAM_PROTO_ClearQueue [19:08:24]wFMCommunicate request_size=4 [19:08:24]MH_SAM_APDU [19:08:24]CAPDU: 80 09 00 00 [19:08:24]Write to MH i2c: E2 08 00 78 59 80 09 00 00 00 00 00 00 43 [19:08:24]Write i2c OK [19:08:24]MH_I2C_Read... [19:08:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:08:24]Read from MH i2c: E2 [19:08:24]MH_I2C_Read... [19:08:24]Read from MH i2c: E2 03 00 [19:08:24]MH_I2C_Read... [19:08:24]Read from MH i2c: E2 03 00 78 59 00 90 00 45 [19:08:24]RAPDU: 90 00 [19:08:24]wFMCommunicate OK [19:08:24]SAM_PROTO_ClearQueue done [19:08:24]KKMCreateOFDPacket [19:08:24]OFDProtocolAddRootSTLVToBuf [19:08:24]FM_MakeSignedData [19:08:24]FM_MakeSignedData [19:08:24]SAM_PROTO_SignData [19:08:24]wFMCommunicate request_size=4 [19:08:24]MH_SAM_APDU [19:08:24]CAPDU: 80 0D 01 02 [19:08:24]Write to MH i2c: E2 08 00 79 59 80 0D 01 02 00 00 00 00 4B [19:08:24]Write i2c OK [19:08:24]MH_I2C_Read... [19:08:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:08:24]Read from MH i2c: E2 [19:08:24]MH_I2C_Read... [19:08:24]Read from MH i2c: E2 03 00 [19:08:24]MH_I2C_Read... [19:08:24]Read from MH i2c: E2 03 00 79 59 00 90 00 46 [19:08:24]RAPDU: 90 00 [19:08:24]wFMCommunicate OK [19:08:24]wFMCommunicate request_size=255 [19:08:24]MH_SAM_APDU [19:08:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 AE 14 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 63 0B 01 00 35 04 06 00 18 [19:08:24]Write to MH i2c: E2 02 01 7A 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 AE 14 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 63 0B 01 00 35 04 06 00 18 00 00 E3 [19:08:24]Write i2c OK [19:08:24]MH_I2C_Read... [19:08:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:08:25]Read from MH i2c: E2 [19:08:25]MH_I2C_Read... [19:08:25]Read from MH i2c: E2 03 00 [19:08:25]MH_I2C_Read... [19:08:25]Read from MH i2c: E2 03 00 7A 59 00 90 00 47 [19:08:25]RAPDU: 90 00 [19:08:25]wFMCommunicate OK [19:08:25]wFMCommunicate request_size=10 [19:08:25]MH_SAM_APDU [19:08:25]CAPDU: 80 0D 02 02 05 F3 A9 37 16 0E [19:08:25]Write to MH i2c: E2 0D 00 7B 59 80 0D 02 02 05 00 F3 A9 37 16 0E 00 00 4F [19:08:25]Write i2c OK [19:08:25]MH_I2C_Read... [19:08:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:08:25]Read from MH i2c: E2 [19:08:25]MH_I2C_Read... [19:08:25]Read from MH i2c: E2 03 00 [19:08:25]MH_I2C_Read... [19:08:25]Read from MH i2c: E2 03 00 7B 59 00 90 00 48 [19:08:25]RAPDU: 90 00 [19:08:25]wFMCommunicate OK [19:08:25]wFMCommunicate request_size=4 [19:08:25]MH_SAM_APDU [19:08:25]CAPDU: 80 0D 03 02 [19:08:25]Write to MH i2c: E2 08 00 7C 59 80 0D 03 02 00 00 00 00 50 [19:08:25]Write i2c OK [19:08:25]MH_I2C_Read... [19:08:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:08:25]Read from MH i2c: E2 [19:08:25]MH_I2C_Read... [19:08:25]Read from MH i2c: E2 0B 00 [19:08:25]MH_I2C_Read... [19:08:25]Read from MH i2c: E2 0B 00 7C 59 00 DD 17 F5 29 3C BF EB 99 90 00 E2 [19:08:25]RAPDU: DD 17 F5 29 3C BF EB 99 90 00 [19:08:25]wFMCommunicate OK [19:08:25]SAM_PROTO_SignData done [19:08:25]FM_MakeSignedData done [19:08:25]CreateOFDProtocolMessage [19:08:25]wFMCommunicate request_size=4 [19:08:25]MH_SAM_APDU [19:08:25]CAPDU: 80 11 00 00 [19:08:25]Write to MH i2c: E2 08 00 7D 59 80 11 00 00 00 00 00 00 50 [19:08:25]Write i2c OK [19:08:25]MH_I2C_Read... [19:08:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:08:25]Read from MH i2c: E2 [19:08:25]MH_I2C_Read... [19:08:25]Read from MH i2c: E2 17 00 [19:08:25]MH_I2C_Read... [19:08:25]Read from MH i2c: E2 17 00 7D 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 9B [19:08:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [19:08:25]wFMCommunicate OK [19:08:25]CreateOFDProtocolMessage done [19:08:25]OFDSenderStorePacket 68451 [19:08:25]StoreOFDPacket docnum=68451 [19:08:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 D7 1C 07 01 B6 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 AE 14 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 63 0B 01 00 35 04 06 00 18 F3 A9 37 16 0E DD 17 F5 29 3C BF EB 99 [19:08:25]CheckFolder [19:08:25]dirname=/storage/ofd_packets [19:08:25]CheckFolder done [19:08:25]ProducePacketName [19:08:25]name=ofd_packets/00068451 [19:08:25]NVStorageSaveData ofd_packets/00068451 [19:08:25]File name is /storage/ofd_packets/00068451 [19:08:25]Write 301 bytes [19:08:25]NVStorageSaveData done [19:08:25]OFDSenderStorePacket done [19:08:25]KKMCreateOFDPacket done [19:08:25]NVStorageSaveData kkm_last_timestamp [19:08:25]File name is /storage/kkm_last_timestamp [19:08:25]Write 4 bytes [19:08:25]NVStorageSaveData done [19:08:25]ExternCall_PrintAddStr [19:08:25]wPrintStart [19:08:25]Write to MH i2c: 01 00 00 7E 59 D7 [19:08:25]Write i2c OK [19:08:25]MH_I2C_Read... [19:08:25]Read from MH i2c: 01 [19:08:25]MH_I2C_Read... [19:08:25]Read from MH i2c: 01 07 00 [19:08:25]MH_I2C_Read... [19:08:25]Read from MH i2c: 01 07 00 7E 59 00 00 00 00 00 FF 0F EC [19:08:25]RasterBufferAndPrint [19:08:25]line Счет N : (1)706555 [19:08:25]line ИНН: 02508201610067 [19:08:25]line Контрольно-Кассовый Чек [19:08:25]line ПРОДАЖА [19:08:25]line ТРК (МРК, ГНК) : 42 [19:08:25]line Товар: 2710124130 [19:08:25]line Аи-92-К-4 [19:08:25]line 4.490 * 66.90 [19:08:25]line = 300.38 [19:08:25]line НДС 12% НСП 1% [19:08:25]line > о реализуемом товаре [19:08:25]line ОКРУГЛЕНИЕ: -0.38 [19:08:25]line ИТОГО: 300.00 [19:08:25]line Внесено: 300.00 [19:08:25]line СДАЧА: 0.00 [19:08:25]line НСП 1% : 2.66 [19:08:25]line НДС 12% : 31.90 [19:08:25]line Наличными: 300.00 [19:08:25]line Безнал.: 0.00 [19:08:25]line Место: АЗС № 62 "Партнер Нефть" [19:08:25]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [19:08:25]line СНО: Общий режим [19:08:25]line Чек 197 03.06.2024 19:08 [19:08:25]line Смена: 324 ФФД: 1.0 [19:08:25]line ЗНМ: 0300000181 [19:08:25]line РНМ: 0000000000098096 [19:08:25]line Версия ККМ: 001 [19:08:25]line ФМ: 0000000000965400 [19:08:25]line ФД: 68451 [19:08:25]line ФПД: 27434795079182 [19:08:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T190830&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68451&fm=27434795079182&tin=02508201610067®Number=0000000000098096&sum=30000 [19:08:25]OFD Sender: Processing packet 68451 [packets to send 26, broken 25] [19:08:25]ProducePacketName [19:08:25]name=ofd_packets/00068451 [19:08:25]OFD Sender: To server: pG, [19:08:25]CommunicateWithHost lk.salyk.kg:30040 [19:08:25]ConnectInit lk.salyk.kg [19:08:25]written 0, free lines is 4095 [19:08:25]Connected sock=7 [19:08:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 D7 1C 07 01 B6 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 AE 14 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 63 0B 01 00 35 04 06 00 18 F3 A9 37 16 0E DD 17 F5 29 3C BF EB 99 [19:08:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 4A 0C 47 00 59 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 63 0B 01 00 F4 03 04 00 A9 BB 5D 66 B6 04 01 00 00 EE 81 2D 13 F8 D2 06 A9 [19:08:25]CommunicateWithHost err = 0 [19:08:25]CheckOFDResponse [19:08:25]1017 (14) - 77093643461234 [19:08:25]1041 (16) - 0000000000965400 [19:08:25]1040 (4) - 68451 [19:08:25]1012 (4) - 03.06.2024 12:48 [19:08:25]1206 (1) - 0 [19:08:25]OFD Sender: Remove packet 68451 [19:08:25]ProducePacketName [19:08:25]name=ofd_packets/00068451 [19:08:25]NVStorageDeleteData [19:08:26]Write to MH i2c: 01 00 00 A9 59 02 [19:08:26]Write i2c OK [19:08:26]MH_I2C_Read... [19:08:26]Read from MH i2c: 01 [19:08:26]MH_I2C_Read... [19:08:26]Read from MH i2c: 01 07 00 [19:08:26]MH_I2C_Read... [19:08:26]Read from MH i2c: 01 07 00 A9 59 00 00 00 00 00 F1 0C 06 [19:08:26]RasterBufferAndPrint [19:08:26]line [19:08:26]line [19:08:26]line [19:08:26]line [19:08:26]line [19:08:26]written 0, free lines is 3319 [19:08:26]MH_Cut [19:08:26]Write to MH i2c: D1 01 00 B0 59 01 DB [19:08:26]Write i2c OK [19:08:26]MH_I2C_Read... [19:08:26]Read from MH i2c: D1 [19:08:26]MH_I2C_Read... [19:08:26]Read from MH i2c: D1 01 00 [19:08:26]MH_I2C_Read... [19:08:26]Read from MH i2c: D1 01 00 B0 59 00 DA [19:08:26]Write to MH i2c: 01 00 00 B1 59 0A [19:08:26]Write i2c OK [19:08:26]MH_I2C_Read... [19:08:26]OFD Sender: No OFD packet to send [19:08:26]*** Cut start [19:08:26]*** Partial cut [19:08:26]*** CUTSNS_PIN = 1 [19:08:26]*** CUTSNS_PIN = 0 [19:08:27]*** Brake cut motor [19:08:27]Read from MH i2c: 01 [19:08:27]MH_I2C_Read... [19:08:27]*** Stop cut motor [19:08:27]*** Cut end [19:08:27]Read from MH i2c: 01 07 00 [19:08:27]MH_I2C_Read... [19:08:27]Read from MH i2c: 01 07 00 B1 59 00 00 00 00 00 FF 0F 1F [19:08:27]process_action close_receipt done [19:08:27]requested_data is exist [19:08:27]produce_requested_data [19:08:27]requested_item fm.sn is exist - process it [19:08:27]wFMCommunicate request_size=4 [19:08:27]MH_SAM_APDU [19:08:27]CAPDU: 80 11 00 00 [19:08:27]Write to MH i2c: E2 08 00 B2 59 80 11 00 00 00 00 00 00 85 [19:08:27]Write i2c OK [19:08:27]MH_I2C_Read... [19:08:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:08:27]Read from MH i2c: E2 [19:08:27]MH_I2C_Read... [19:08:27]Read from MH i2c: E2 17 00 [19:08:27]MH_I2C_Read... [19:08:27]Read from MH i2c: E2 17 00 B2 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 D0 [19:08:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [19:08:27]wFMCommunicate OK [19:08:27]requested_item fd.num is exist - process it [19:08:27]SAM_PROTO_GetFieldsCounters [19:08:27]wFMCommunicate request_size=4 [19:08:27]MH_SAM_APDU [19:08:27]CAPDU: 80 13 00 00 [19:08:27]Write to MH i2c: E2 08 00 B3 59 80 13 00 00 00 00 00 00 88 [19:08:27]Write i2c OK [19:08:27]MH_I2C_Read... [19:08:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:08:27]Read from MH i2c: E2 [19:08:27]MH_I2C_Read... [19:08:27]Read from MH i2c: E2 62 00 [19:08:27]MH_I2C_Read... [19:08:27]Read from MH i2c: E2 62 00 B3 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 63 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 AB [19:08:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 63 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:08:27]wFMCommunicate OK [19:08:27]SAM_PROTO_GetFieldsCounters done [19:08:27]requested_item shift.num is exist - process it [19:08:27]requested_item shift.opened is exist - process it [19:08:27]req_shift_opened [19:08:27]FM_GetShiftState [19:08:27]SAM_PROTO_GetShiftState [19:08:27]wFMCommunicate request_size=4 [19:08:27]MH_SAM_APDU [19:08:27]CAPDU: 80 13 01 00 [19:08:27]Write to MH i2c: E2 08 00 B4 59 80 13 01 00 00 00 00 00 8A [19:08:27]Write i2c OK [19:08:27]MH_I2C_Read... [19:08:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:08:27]Read from MH i2c: E2 [19:08:27]MH_I2C_Read... [19:08:27]Read from MH i2c: E2 0E 00 [19:08:27]MH_I2C_Read... [19:08:27]Read from MH i2c: E2 0E 00 B4 59 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 65 [19:08:27]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [19:08:27]wFMCommunicate OK [19:08:27]SAM_PROTO_GetShiftState done [19:08:27]FM_GetShiftState done [19:08:27]req_shift_opened done [19:08:27]requested_item shift.open_date is exist - process it [19:08:27]req_shift_open_date [19:08:27]req_shift_open_date done [19:08:27]produce_requested_data done [19:08:27]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68451,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [19:08:27]process_action_free close_receipt [19:08:27]json_value_free [19:08:27]json_value_free done [19:08:27]process_json_proto returns [19:08:27]Send response to host [19:08:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68451,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [19:08:27]free response buf [19:08:27]execute_script done [19:08:27]execute_script returns [19:08:27]free content buf [19:08:27]Sock 5.Close socket [19:08:27]Sock 5.Thread stoped [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:41]OFD Sender: No OFD packet to send [19:11:46]OFD Sender: No OFD packet to send [19:11:51]OFD Sender: No OFD packet to send [19:11:56]OFD Sender: No OFD packet to send [19:12:01]OFD Sender: No OFD packet to send [19:12:06]OFD Sender: No OFD packet to send [19:12:11]OFD Sender: No OFD packet to send [19:12:16]OFD Sender: No OFD packet to send [19:12:21]OFD Sender: No OFD packet to send [19:12:26]OFD Sender: No OFD packet to send [19:12:31]OFD Sender: No OFD packet to send [19:12:36]OFD Sender: No OFD packet to send [19:12:41]OFD Sender: No OFD packet to send [19:12:46]OFD Sender: No OFD packet to send [19:12:51]OFD Sender: No OFD packet to send [19:12:56]OFD Sender: No OFD packet to send [19:13:01]OFD Sender: No OFD packet to send [19:13:06]OFD Sender: No OFD packet to send [19:13:11]OFD Sender: No OFD packet to send [19:13:16]OFD Sender: No OFD packet to send [19:13:21]OFD Sender: No OFD packet to send [19:13:26]OFD Sender: No OFD packet to send [19:13:31]OFD Sender: No OFD packet to send [19:13:36]OFD Sender: No OFD packet to send [19:13:41]OFD Sender: No OFD packet to send [19:13:46]OFD Sender: No OFD packet to send [19:13:51]OFD Sender: No OFD packet to send [19:13:56]OFD Sender: No OFD packet to send [19:14:01]OFD Sender: No OFD packet to send [19:14:06]OFD Sender: No OFD packet to send [19:14:11]OFD Sender: No OFD packet to send [19:14:16]OFD Sender: No OFD packet to send [19:14:21]OFD Sender: No OFD packet to send [19:14:26]OFD Sender: No OFD packet to send [19:14:31]OFD Sender: No OFD packet to send [19:14:36]OFD Sender: No OFD packet to send [19:14:41]OFD Sender: No OFD packet to send [19:14:46]OFD Sender: No OFD packet to send [19:14:51]OFD Sender: No OFD packet to send [19:14:56]OFD Sender: No OFD packet to send [19:15:01]OFD Sender: No OFD packet to send [19:15:06]OFD Sender: No OFD packet to send [19:15:11]OFD Sender: No OFD packet to send [19:15:16]OFD Sender: No OFD packet to send [19:15:21]OFD Sender: No OFD packet to send [19:15:22]accept exits with 6 [19:15:22]New connection [19:15:22]New thread 3066686820 created [19:15:22]Thread 3066543460 joined [19:15:22]Waiting for new connection... [19:15:22] Sock 6.Parse request [19:15:22]Sock 6.Check first char [19:15:22]Sock 6.First char is OK [19:15:22]request: POST /json_proto HTTP/1.0 [19:15:22]Method: POST [19:15:22]URL: /json_proto [19:15:22]Method is POST - this is cgi request [19:15:22]url: /json_proto [19:15:22]query_string will be loaded in cgi processing [19:15:22]execute_cgi json_proto POST (null) [19:15:22]execute_cgi path=json_proto method=POST [19:15:22]POST find Content-Length [19:15:22]Host: 172.17.36.132:8080 [19:15:22]Content-Length: 670 [19:15:22]Content-Type: application/json [19:15:22] [19:15:22]POST finish read [19:15:22]Found Content-Length = 670 [19:15:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706556", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 3.830, "sum" : 260.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 260.00, "total" : 260.00, "payments": [ { "type": 0, "sum" : 260.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:15:22]execute_script... [19:15:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706556", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 3.830, "sum" : 260.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 260.00, "total" : 260.00, "payments": [ { "type": 0, "sum" : 260.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:15:22]POST & json_proto [19:15:22]process_json_proto [19:15:22]json parsed OK: [19:15:22]protocol is kg_v1.0 [19:15:22]action value=close_receipt [19:15:22]process_action close_receipt [19:15:22]cmd_close_receipt [19:15:22]MH_GetDate [19:15:22]Write to MH i2c: F0 00 00 B5 59 FD [19:15:22]Write i2c OK [19:15:22]MH_I2C_Read... [19:15:22]Read from MH i2c: F0 [19:15:22]MH_I2C_Read... [19:15:22]Read from MH i2c: F0 09 00 [19:15:22]MH_I2C_Read... [19:15:22]Read from MH i2c: F0 09 00 B5 59 00 51 16 5E 66 B2 22 B0 64 19 [19:15:22]GetLastDocTimeStamp 1717441710 [19:15:22]current date 1717442129 [19:15:22]FM_GetShiftState [19:15:22]SAM_PROTO_GetShiftState [19:15:22]wFMCommunicate request_size=4 [19:15:22]MH_SAM_APDU [19:15:22]CAPDU: 80 13 01 00 [19:15:22]Write to MH i2c: E2 08 00 B6 59 80 13 01 00 00 00 00 00 8C [19:15:22]Write i2c OK [19:15:22]MH_I2C_Read... [19:15:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:15:22]Read from MH i2c: E2 [19:15:22]MH_I2C_Read... [19:15:22]Read from MH i2c: E2 0E 00 [19:15:22]MH_I2C_Read... [19:15:22]Read from MH i2c: E2 0E 00 B6 59 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 67 [19:15:22]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [19:15:22]wFMCommunicate OK [19:15:22]SAM_PROTO_GetShiftState done [19:15:22]FM_GetShiftState done [19:15:22]opened in 1717378033 [19:15:22]opened+sec_in_day 1717464433 [19:15:22]quantity*price = 26005 [19:15:22]sum+1 = 26007 [19:15:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 260.00 Внесено: 260.00 СДАЧА: 0.00 НСП 1% : 2.30 НДС 12% : 27.62 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 198 03.06.2024 19:15 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68452 ФПД: 98944069270432 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T191529&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68452&fm=98944069270432&tin=02508201610067®Number=0000000000098096&sum=26000 [19:15:23]StoreToDocumentArchive [19:15:23]shift 324 fd 68452 [19:15:23]save to /storage/0324/doc_00068452 [19:15:23]save last doc name /storage/0324/doc_00068452 to /storage/kkm_last_doc_name [19:15:23]save OK [19:15:23]Clear old archive folders... [19:15:23]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:15:23]tlvbuf is 00236DE0 [19:15:23]SAM_PROTO_ClearQueue [19:15:23]wFMCommunicate request_size=4 [19:15:23]MH_SAM_APDU [19:15:23]CAPDU: 80 09 00 00 [19:15:23]Write to MH i2c: E2 08 00 C3 59 80 09 00 00 00 00 00 00 8E [19:15:23]Write i2c OK [19:15:23]MH_I2C_Read... [19:15:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:15:23]Read from MH i2c: E2 [19:15:23]MH_I2C_Read... [19:15:23]Read from MH i2c: E2 03 00 [19:15:23]MH_I2C_Read... [19:15:23]Read from MH i2c: E2 03 00 C3 59 00 90 00 90 [19:15:23]RAPDU: 90 00 [19:15:23]wFMCommunicate OK [19:15:23]SAM_PROTO_ClearQueue done [19:15:23]KKMCreateOFDPacket [19:15:23]OFDProtocolAddRootSTLVToBuf [19:15:23]FM_MakeSignedData [19:15:23]FM_MakeSignedData [19:15:23]SAM_PROTO_SignData [19:15:23]wFMCommunicate request_size=4 [19:15:23]MH_SAM_APDU [19:15:23]CAPDU: 80 0D 01 02 [19:15:23]Write to MH i2c: E2 08 00 C4 59 80 0D 01 02 00 00 00 00 96 [19:15:23]Write i2c OK [19:15:23]MH_I2C_Read... [19:15:23]Read from MH i2c: E2 [19:15:23]MH_I2C_Read... [19:15:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:15:23]Read from MH i2c: E2 03 00 [19:15:23]MH_I2C_Read... [19:15:23]Read from MH i2c: E2 03 00 C4 59 00 90 00 91 [19:15:23]RAPDU: 90 00 [19:15:23]wFMCommunicate OK [19:15:23]wFMCommunicate request_size=255 [19:15:23]MH_SAM_APDU [19:15: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 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 0E 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 96 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CA 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 51 16 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 64 0B 01 00 35 04 06 00 [19:15:23]Write to MH i2c: E2 02 01 C5 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 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 0E 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 96 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CA 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 51 16 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 64 0B 01 00 35 04 06 00 00 00 B2 [19:15:23]Write i2c OK [19:15:23]MH_I2C_Read... [19:15:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:15:24]Read from MH i2c: E2 [19:15:24]MH_I2C_Read... [19:15:24]Read from MH i2c: E2 03 00 [19:15:24]MH_I2C_Read... [19:15:24]Read from MH i2c: E2 03 00 C5 59 00 90 00 92 [19:15:24]RAPDU: 90 00 [19:15:24]wFMCommunicate OK [19:15:24]wFMCommunicate request_size=11 [19:15:24]MH_SAM_APDU [19:15:24]CAPDU: 80 0D 02 02 06 59 FD 36 19 FB A0 [19:15:24]Write to MH i2c: E2 0E 00 C6 59 80 0D 02 02 06 00 59 FD 36 19 FB A0 00 00 E5 [19:15:24]Write i2c OK [19:15:24]MH_I2C_Read... [19:15:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:15:24]Read from MH i2c: E2 [19:15:24]MH_I2C_Read... [19:15:24]Read from MH i2c: E2 03 00 [19:15:24]MH_I2C_Read... [19:15:24]Read from MH i2c: E2 03 00 C6 59 00 90 00 93 [19:15:24]RAPDU: 90 00 [19:15:24]wFMCommunicate OK [19:15:24]wFMCommunicate request_size=4 [19:15:24]MH_SAM_APDU [19:15:24]CAPDU: 80 0D 03 02 [19:15:24]Write to MH i2c: E2 08 00 C7 59 80 0D 03 02 00 00 00 00 9B [19:15:24]Write i2c OK [19:15:24]MH_I2C_Read... [19:15:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:15:24]Read from MH i2c: E2 [19:15:24]MH_I2C_Read... [19:15:24]Read from MH i2c: E2 0B 00 [19:15:24]MH_I2C_Read... [19:15:24]Read from MH i2c: E2 0B 00 C7 59 00 40 61 AA 15 E1 3B B7 59 90 00 28 [19:15:24]RAPDU: 40 61 AA 15 E1 3B B7 59 90 00 [19:15:24]wFMCommunicate OK [19:15:24]SAM_PROTO_SignData done [19:15:24]FM_MakeSignedData done [19:15:24]CreateOFDProtocolMessage [19:15:24]wFMCommunicate request_size=4 [19:15:24]MH_SAM_APDU [19:15:24]CAPDU: 80 11 00 00 [19:15:24]Write to MH i2c: E2 08 00 C8 59 80 11 00 00 00 00 00 00 9B [19:15:24]Write i2c OK [19:15:24]MH_I2C_Read... [19:15:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:15:24]Read from MH i2c: E2 [19:15:24]MH_I2C_Read... [19:15:24]Read from MH i2c: E2 17 00 [19:15:24]MH_I2C_Read... [19:15:24]Read from MH i2c: E2 17 00 C8 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 E6 [19:15:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [19:15:24]wFMCommunicate OK [19:15:24]CreateOFDProtocolMessage done [19:15:24]OFDSenderStorePacket 68452 [19:15:24]StoreOFDPacket docnum=68452 [19:15:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 2A 86 08 01 B2 3A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 0E 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 96 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CA 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 51 16 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 64 0B 01 00 35 04 06 00 59 FD 36 19 FB A0 40 61 AA 15 E1 3B B7 59 [19:15:24]CheckFolder [19:15:24]dirname=/storage/ofd_packets [19:15:24]CheckFolder done [19:15:24]ProducePacketName [19:15:24]name=ofd_packets/00068452 [19:15:24]NVStorageSaveData ofd_packets/00068452 [19:15:24]File name is /storage/ofd_packets/00068452 [19:15:24]Write 302 bytes [19:15:24]NVStorageSaveData done [19:15:24]OFDSenderStorePacket done [19:15:24]KKMCreateOFDPacket done [19:15:24]NVStorageSaveData kkm_last_timestamp [19:15:24]File name is /storage/kkm_last_timestamp [19:15:24]Write 4 bytes [19:15:24]NVStorageSaveData done [19:15:24]ExternCall_PrintAddStr [19:15:24]wPrintStart [19:15:24]Write to MH i2c: 01 00 00 C9 59 22 [19:15:24]Write i2c OK [19:15:24]MH_I2C_Read... [19:15:24]Read from MH i2c: 01 [19:15:24]MH_I2C_Read... [19:15:24]Read from MH i2c: 01 07 00 [19:15:24]MH_I2C_Read... [19:15:24]Read from MH i2c: 01 07 00 C9 59 00 00 00 00 00 FF 0F 37 [19:15:24]RasterBufferAndPrint [19:15:24]line Счет N : (1)706556 [19:15:24]line ИНН: 02508201610067 [19:15:24]line Контрольно-Кассовый Чек [19:15:24]line ПРОДАЖА [19:15:24]line ТРК (МРК, ГНК) : 62 [19:15:24]line Товар: 2710124130 [19:15:24]line Super-92-К-5 [19:15:24]line 3.830 * 67.90 [19:15:24]line = 260.06 [19:15:24]line НДС 12% НСП 1% [19:15:24]line > о реализуемом товаре [19:15:24]line ОКРУГЛЕНИЕ: -0.06 [19:15:24]line ИТОГО: 260.00 [19:15:24]line Внесено: 260.00 [19:15:24]line СДАЧА: 0.00 [19:15:24]line НСП 1% : 2.30 [19:15:24]line НДС 12% : 27.62 [19:15:24]line Наличными: 260.00 [19:15:24]line Безнал.: 0.00 [19:15:24]line Место: АЗС № 62 "Партнер Нефть" [19:15:24]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [19:15:24]line СНО: Общий режим [19:15:24]line Чек 198 03.06.2024 19:15 [19:15:24]line Смена: 324 ФФД: 1.0 [19:15:24]line ЗНМ: 0300000181 [19:15:24]line РНМ: 0000000000098096 [19:15:24]line Версия ККМ: 001 [19:15:24]line ФМ: 0000000000965400 [19:15:24]line ФД: 68452 [19:15:24]line ФПД: 98944069270432 [19:15:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T191529&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68452&fm=98944069270432&tin=02508201610067®Number=0000000000098096&sum=26000 [19:15:24]OFD Sender: Processing packet 68452 [packets to send 26, broken 25] [19:15:24]ProducePacketName [19:15:24]name=ofd_packets/00068452 [19:15:24]OFD Sender: To server: pG, [19:15:24]CommunicateWithHost lk.salyk.kg:30040 [19:15:24]ConnectInit lk.salyk.kg [19:15:24]written 0, free lines is 4095 [19:15:24]Connected sock=7 [19:15:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 2A 86 08 01 B2 3A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F6 0E 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 96 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CA 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 51 16 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 64 0B 01 00 35 04 06 00 59 FD 36 19 FB A0 40 61 AA 15 E1 3B B7 59 [19:15:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 9F 57 47 00 0E 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 64 0B 01 00 F4 03 04 00 4C BD 5D 66 B6 04 01 00 00 C2 69 0C 38 8B A3 6C EA [19:15:24]CommunicateWithHost err = 0 [19:15:24]CheckOFDResponse [19:15:24]1017 (14) - 77093643461234 [19:15:24]1041 (16) - 0000000000965400 [19:15:24]1040 (4) - 68452 [19:15:24]1012 (4) - 03.06.2024 12:55 [19:15:24]1206 (1) - 0 [19:15:24]OFD Sender: Remove packet 68452 [19:15:24]ProducePacketName [19:15:24]name=ofd_packets/00068452 [19:15:24]NVStorageDeleteData [19:15:25]Write to MH i2c: 01 00 00 F4 59 4D [19:15:25]Write i2c OK [19:15:25]MH_I2C_Read... [19:15:25]Read from MH i2c: 01 [19:15:25]MH_I2C_Read... [19:15:25]Read from MH i2c: 01 07 00 [19:15:25]MH_I2C_Read... [19:15:25]Read from MH i2c: 01 07 00 F4 59 00 00 00 00 00 F2 0C 52 [19:15:25]RasterBufferAndPrint [19:15:25]line [19:15:25]line [19:15:25]line [19:15:25]line [19:15:25]line [19:15:25]written 0, free lines is 3320 [19:15:25]MH_Cut [19:15:25]Write to MH i2c: D1 01 00 FB 59 01 26 [19:15:25]Write i2c OK [19:15:25]MH_I2C_Read... [19:15:25]Read from MH i2c: D1 [19:15:25]MH_I2C_Read... [19:15:25]Read from MH i2c: D1 01 00 [19:15:25]MH_I2C_Read... [19:15:25]Read from MH i2c: D1 01 00 FB 59 00 25 [19:15:25]Write to MH i2c: 01 00 00 FC 59 55 [19:15:25]Write i2c OK [19:15:25]MH_I2C_Read... [19:15:25]OFD Sender: No OFD packet to send [19:15:25]*** Cut start [19:15:25]*** Partial cut [19:15:25]*** CUTSNS_PIN = 1 [19:15:26]*** CUTSNS_PIN = 0 [19:15:26]*** Brake cut motor [19:15:26]Read from MH i2c: 01 [19:15:26]MH_I2C_Read... [19:15:26]*** Stop cut motor [19:15:26]*** Cut end [19:15:26]Read from MH i2c: 01 07 00 [19:15:26]MH_I2C_Read... [19:15:26]Read from MH i2c: 01 07 00 FC 59 00 00 00 00 00 FF 0F 6A [19:15:26]process_action close_receipt done [19:15:26]requested_data is exist [19:15:26]produce_requested_data [19:15:26]requested_item fm.sn is exist - process it [19:15:26]wFMCommunicate request_size=4 [19:15:26]MH_SAM_APDU [19:15:26]CAPDU: 80 11 00 00 [19:15:26]Write to MH i2c: E2 08 00 FD 59 80 11 00 00 00 00 00 00 D0 [19:15:26]Write i2c OK [19:15:26]MH_I2C_Read... [19:15:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:15:26]Read from MH i2c: E2 [19:15:26]MH_I2C_Read... [19:15:26]Read from MH i2c: E2 17 00 [19:15:26]MH_I2C_Read... [19:15:26]Read from MH i2c: E2 17 00 FD 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 1B [19:15:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [19:15:26]wFMCommunicate OK [19:15:26]requested_item fd.num is exist - process it [19:15:26]SAM_PROTO_GetFieldsCounters [19:15:26]wFMCommunicate request_size=4 [19:15:26]MH_SAM_APDU [19:15:26]CAPDU: 80 13 00 00 [19:15:26]Write to MH i2c: E2 08 00 FE 59 80 13 00 00 00 00 00 00 D3 [19:15:26]Write i2c OK [19:15:26]MH_I2C_Read... [19:15:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:15:26]Read from MH i2c: E2 [19:15:26]MH_I2C_Read... [19:15:26]Read from MH i2c: E2 62 00 [19:15:26]MH_I2C_Read... [19:15:26]Read from MH i2c: E2 62 00 FE 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 64 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 FA [19:15:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 64 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:15:26]wFMCommunicate OK [19:15:26]SAM_PROTO_GetFieldsCounters done [19:15:26]requested_item shift.num is exist - process it [19:15:26]requested_item shift.opened is exist - process it [19:15:26]req_shift_opened [19:15:26]FM_GetShiftState [19:15:26]SAM_PROTO_GetShiftState [19:15:26]wFMCommunicate request_size=4 [19:15:26]MH_SAM_APDU [19:15:26]CAPDU: 80 13 01 00 [19:15:26]Write to MH i2c: E2 08 00 FF 59 80 13 01 00 00 00 00 00 D5 [19:15:26]Write i2c OK [19:15:26]MH_I2C_Read... [19:15:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:15:26]Read from MH i2c: E2 [19:15:26]MH_I2C_Read... [19:15:26]Read from MH i2c: E2 0E 00 [19:15:26]MH_I2C_Read... [19:15:26]Read from MH i2c: E2 0E 00 FF 59 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 B0 [19:15:26]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [19:15:26]wFMCommunicate OK [19:15:26]SAM_PROTO_GetShiftState done [19:15:26]FM_GetShiftState done [19:15:26]req_shift_opened done [19:15:26]requested_item shift.open_date is exist - process it [19:15:26]req_shift_open_date [19:15:26]req_shift_open_date done [19:15:26]produce_requested_data done [19:15:26]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68452,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [19:15:26]process_action_free close_receipt [19:15:26]json_value_free [19:15:26]json_value_free done [19:15:26]process_json_proto returns [19:15:26]Send response to host [19:15:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68452,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [19:15:26]free response buf [19:15:26]execute_script done [19:15:26]execute_script returns [19:15:26]free content buf [19:15:26]Sock 6.Close socket [19:15:26]Sock 6.Thread stoped [19:15:30]OFD Sender: No OFD packet to send [19:15:35]OFD Sender: No OFD packet to send [19:15:40]OFD Sender: No OFD packet to send [19:15:45]OFD Sender: No OFD packet to send [19:15:50]OFD Sender: No OFD packet to send [19:15:55]OFD Sender: No OFD packet to send [19:16:00]OFD Sender: No OFD packet to send [19:16:05]OFD Sender: No OFD packet to send [19:16:10]OFD Sender: No OFD packet to send [19:16:15]OFD Sender: No OFD packet to send [19:16:20]OFD Sender: No OFD packet to send [19:16:25]OFD Sender: No OFD packet to send [19:16:30]OFD Sender: No OFD packet to send [19:16:35]OFD Sender: No OFD packet to send [19:16:40]OFD Sender: No OFD packet to send [19:16:45]OFD Sender: No OFD packet to send [19:16:50]OFD Sender: No OFD packet to send [19:16:55]OFD Sender: No OFD packet to send [19:17:00]OFD Sender: No OFD packet to send [19:17:05]OFD Sender: No OFD packet to send [19:17:10]OFD Sender: No OFD packet to send [19:17:15]OFD Sender: No OFD packet to send [19:17:20]OFD Sender: No OFD packet to send [19:17:25]OFD Sender: No OFD packet to send [19:17:30]OFD Sender: No OFD packet to send [19:17:35]OFD Sender: No OFD packet to send [19:17:40]OFD Sender: No OFD packet to send [19:17:45]OFD Sender: No OFD packet to send [19:17:50]OFD Sender: No OFD packet to send [19:17:55]OFD Sender: No OFD packet to send [19:18:00]OFD Sender: No OFD packet to send [19:18:05]OFD Sender: No OFD packet to send [19:18:10]OFD Sender: No OFD packet to send [19:18:15]OFD Sender: No OFD packet to send [19:18:20]OFD Sender: No OFD packet to send [19:18:25]OFD Sender: No OFD packet to send [19:18:30]OFD Sender: No OFD packet to send [19:18:35]OFD Sender: No OFD packet to send [19:18:40]OFD Sender: No OFD packet to send [19:18:45]OFD Sender: No OFD packet to send [19:18:50]OFD Sender: No OFD packet to send [19:18:55]OFD Sender: No OFD packet to send [19:19:00]OFD Sender: No OFD packet to send [19:19:05]OFD Sender: No OFD packet to send [19:19:10]OFD Sender: No OFD packet to send [19:19:15]OFD Sender: No OFD packet to send [19:19:20]OFD Sender: No OFD packet to send [19:19:25]OFD Sender: No OFD packet to send [19:19:30]OFD Sender: No OFD packet to send [19:19:35]OFD Sender: No OFD packet to send [19:19:40]OFD Sender: No OFD packet to send [19:19:45]OFD Sender: No OFD packet to send [19:19:50]OFD Sender: No OFD packet to send [19:19:55]OFD Sender: No OFD packet to send [19:20:00]OFD Sender: No OFD packet to send [19:20:05]OFD Sender: No OFD packet to send [19:20:10]OFD Sender: No OFD packet to send [19:20:15]OFD Sender: No OFD packet to send [19:20:20]OFD Sender: No OFD packet to send [19:20:25]OFD Sender: No OFD packet to send [19:20:30]OFD Sender: No OFD packet to send [19:20:35]OFD Sender: No OFD packet to send [19:20:40]OFD Sender: No OFD packet to send [19:20:45]OFD Sender: No OFD packet to send [19:20:50]OFD Sender: No OFD packet to send [19:20:55]OFD Sender: No OFD packet to send [19:21:00]OFD Sender: No OFD packet to send [19:21:05]OFD Sender: No OFD packet to send [19:21:10]OFD Sender: No OFD packet to send [19:21:15]OFD Sender: No OFD packet to send [19:21:20]OFD Sender: No OFD packet to send [19:21:25]OFD Sender: No OFD packet to send [19:21:30]OFD Sender: No OFD packet to send [19:21:35]OFD Sender: No OFD packet to send [19:21:40]OFD Sender: No OFD packet to send [19:21:45]OFD Sender: No OFD packet to send [19:21:50]OFD Sender: No OFD packet to send [19:21:55]OFD Sender: No OFD packet to send [19:22:00]OFD Sender: No OFD packet to send [19:22:05]OFD Sender: No OFD packet to send [19:22:10]OFD Sender: No OFD packet to send [19:22:15]OFD Sender: No OFD packet to send [19:22:20]OFD Sender: No OFD packet to send [19:22:25]OFD Sender: No OFD packet to send [19:22:30]OFD Sender: No OFD packet to send [19:22:35]OFD Sender: No OFD packet to send [19:22:40]OFD Sender: No OFD packet to send [19:22:45]OFD Sender: No OFD packet to send [19:22:50]OFD Sender: No OFD packet to send [19:22:55]OFD Sender: No OFD packet to send [19:23:00]OFD Sender: No OFD packet to send [19:23:05]OFD Sender: No OFD packet to send [19:23:10]OFD Sender: No OFD packet to send [19:23:15]OFD Sender: No OFD packet to send [19:23:20]OFD Sender: No OFD packet to send [19:23:25]OFD Sender: No OFD packet to send [19:23:30]OFD Sender: No OFD packet to send [19:23:35]OFD Sender: No OFD packet to send [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:53]accept exits with 5 [19:24:53]New connection [19:24:53]New thread 3066543460 created [19:24:53]Thread 3066686820 joined [19:24:53]Waiting for new connection... [19:24:53] Sock 5.Parse request [19:24:53]Sock 5.Check first char [19:24:53]Sock 5.First char is OK [19:24:53]request: POST /json_proto HTTP/1.0 [19:24:53]Method: POST [19:24:53]URL: /json_proto [19:24:53]Method is POST - this is cgi request [19:24:53]url: /json_proto [19:24:53]query_string will be loaded in cgi processing [19:24:53]execute_cgi json_proto POST (null) [19:24:53]execute_cgi path=json_proto method=POST [19:24:53]POST find Content-Length [19:24:53]Host: 172.17.36.132:8080 [19:24:53]Content-Length: 841 [19:24:53]Content-Type: application/json [19:24:53] [19:24:53]POST finish read [19:24:53]Found Content-Length = 841 [19:24:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706557", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:24:53]execute_script... [19:24:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706557", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:24:53]POST & json_proto [19:24:53]process_json_proto [19:24:53]json parsed OK: [19:24:53]protocol is kg_v1.0 [19:24:53]action value=close_receipt [19:24:53]process_action close_receipt [19:24:53]cmd_close_receipt [19:24:53]MH_GetDate [19:24:53]Write to MH i2c: F0 00 00 00 5A 49 [19:24:53]Write i2c OK [19:24:53]MH_I2C_Read... [19:24:53]Read from MH i2c: F0 [19:24:53]MH_I2C_Read... [19:24:53]Read from MH i2c: F0 09 00 [19:24:53]MH_I2C_Read... [19:24:53]Read from MH i2c: F0 09 00 00 5A 00 8C 18 5E 66 B2 22 B0 64 A2 [19:24:53]GetLastDocTimeStamp 1717442129 [19:24:53]current date 1717442700 [19:24:53]FM_GetShiftState [19:24:53]SAM_PROTO_GetShiftState [19:24:53]wFMCommunicate request_size=4 [19:24:53]MH_SAM_APDU [19:24:53]CAPDU: 80 13 01 00 [19:24:53]Write to MH i2c: E2 08 00 01 5A 80 13 01 00 00 00 00 00 D8 [19:24:53]Write i2c OK [19:24:53]MH_I2C_Read... [19:24:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:24:53]Read from MH i2c: E2 [19:24:53]MH_I2C_Read... [19:24:53]Read from MH i2c: E2 0E 00 [19:24:53]MH_I2C_Read... [19:24:53]Read from MH i2c: E2 0E 00 01 5A 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 B3 [19:24:53]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [19:24:53]wFMCommunicate OK [19:24:53]SAM_PROTO_GetShiftState done [19:24:53]FM_GetShiftState done [19:24:53]opened in 1717378033 [19:24:53]opened+sec_in_day 1717464433 [19:24:53]quantity*price = 70044 [19:24:53]sum+1 = 70045 [19:24:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.44 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 0.00 Безнал.: 700.44 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 199 03.06.2024 19:25 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68453 ФПД: 19595669336960 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T192500&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68453&fm=19595669336960&tin=02508201610067®Number=0000000000098096&sum=70044 [19:24:54]StoreToDocumentArchive [19:24:54]shift 324 fd 68453 [19:24:54]save to /storage/0324/doc_00068453 [19:24:54]save last doc name /storage/0324/doc_00068453 to /storage/kkm_last_doc_name [19:24:54]save OK [19:24:54]Clear old archive folders... [19:24:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:24:54]tlvbuf is 0023A9C0 [19:24:54]SAM_PROTO_ClearQueue [19:24:54]wFMCommunicate request_size=4 [19:24:54]MH_SAM_APDU [19:24:54]CAPDU: 80 09 00 00 [19:24:54]Write to MH i2c: E2 08 00 0E 5A 80 09 00 00 00 00 00 00 DA [19:24:54]Write i2c OK [19:24:54]MH_I2C_Read... [19:24:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:24:54]Read from MH i2c: E2 [19:24:54]MH_I2C_Read... [19:24:54]Read from MH i2c: E2 03 00 [19:24:54]MH_I2C_Read... [19:24:54]Read from MH i2c: E2 03 00 0E 5A 00 90 00 DC [19:24:54]RAPDU: 90 00 [19:24:54]wFMCommunicate OK [19:24:54]SAM_PROTO_ClearQueue done [19:24:54]KKMCreateOFDPacket [19:24:54]OFDProtocolAddRootSTLVToBuf [19:24:54]FM_MakeSignedData [19:24:54]FM_MakeSignedData [19:24:54]SAM_PROTO_SignData [19:24:54]wFMCommunicate request_size=4 [19:24:54]MH_SAM_APDU [19:24:54]CAPDU: 80 0D 01 02 [19:24:54]Write to MH i2c: E2 08 00 0F 5A 80 0D 01 02 00 00 00 00 E2 [19:24:54]Write i2c OK [19:24:54]MH_I2C_Read... [19:24:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:24:54]Read from MH i2c: E2 [19:24:54]MH_I2C_Read... [19:24:54]Read from MH i2c: E2 03 00 [19:24:54]MH_I2C_Read... [19:24:54]Read from MH i2c: E2 03 00 0F 5A 00 90 00 DD [19:24:54]RAPDU: 90 00 [19:24:54]wFMCommunicate OK [19:24:54]wFMCommunicate request_size=255 [19:24:54]MH_SAM_APDU [19:24:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 8C 18 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 65 0B 01 00 35 04 06 00 11 [19:24:54]Write to MH i2c: E2 02 01 10 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 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 8C 18 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 65 0B 01 00 35 04 06 00 11 00 00 CD [19:24:54]Write i2c OK [19:24:54]MH_I2C_Read... [19:24:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:24:55]Read from MH i2c: E2 [19:24:55]MH_I2C_Read... [19:24:55]Read from MH i2c: E2 03 00 [19:24:55]MH_I2C_Read... [19:24:55]Read from MH i2c: E2 03 00 10 5A 00 90 00 DE [19:24:55]RAPDU: 90 00 [19:24:55]wFMCommunicate OK [19:24:55]wFMCommunicate request_size=10 [19:24:55]MH_SAM_APDU [19:24:55]CAPDU: 80 0D 02 02 05 D2 78 E8 F3 80 [19:24:55]Write to MH i2c: E2 0D 00 11 5A 80 0D 02 02 05 00 D2 78 E8 F3 80 00 00 94 [19:24:55]Write i2c OK [19:24:55]MH_I2C_Read... [19:24:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:24:55]Read from MH i2c: E2 [19:24:55]MH_I2C_Read... [19:24:55]Read from MH i2c: E2 03 00 [19:24:55]MH_I2C_Read... [19:24:55]Read from MH i2c: E2 03 00 11 5A 00 90 00 DF [19:24:55]RAPDU: 90 00 [19:24:55]wFMCommunicate OK [19:24:55]wFMCommunicate request_size=4 [19:24:55]MH_SAM_APDU [19:24:55]CAPDU: 80 0D 03 02 [19:24:55]Write to MH i2c: E2 08 00 12 5A 80 0D 03 02 00 00 00 00 E7 [19:24:55]Write i2c OK [19:24:55]MH_I2C_Read... [19:24:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:24:55]Read from MH i2c: E2 [19:24:55]MH_I2C_Read... [19:24:55]Read from MH i2c: E2 0B 00 [19:24:55]MH_I2C_Read... [19:24:55]Read from MH i2c: E2 0B 00 12 5A 00 37 90 B4 BC 9E 24 EC BE 90 00 8B [19:24:55]RAPDU: 37 90 B4 BC 9E 24 EC BE 90 00 [19:24:55]wFMCommunicate OK [19:24:55]SAM_PROTO_SignData done [19:24:55]FM_MakeSignedData done [19:24:55]CreateOFDProtocolMessage [19:24:55]wFMCommunicate request_size=4 [19:24:55]MH_SAM_APDU [19:24:55]CAPDU: 80 11 00 00 [19:24:55]Write to MH i2c: E2 08 00 13 5A 80 11 00 00 00 00 00 00 E7 [19:24:55]Write i2c OK [19:24:55]MH_I2C_Read... [19:24:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:55]Read from MH i2c: E2 [19:24:55]MH_I2C_Read... [19:24:55]Read from MH i2c: E2 17 00 [19:24:55]MH_I2C_Read... [19:24:55]Read from MH i2c: E2 17 00 13 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 32 [19:24:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [19:24:55]wFMCommunicate OK [19:24:55]CreateOFDProtocolMessage done [19:24:55]OFDSenderStorePacket 68453 [19:24:55]StoreOFDPacket docnum=68453 [19:24:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 B3 77 07 01 06 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 8C 18 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 65 0B 01 00 35 04 06 00 11 D2 78 E8 F3 80 37 90 B4 BC 9E 24 EC BE [19:24:55]CheckFolder [19:24:55]dirname=/storage/ofd_packets [19:24:55]CheckFolder done [19:24:55]ProducePacketName [19:24:55]name=ofd_packets/00068453 [19:24:55]NVStorageSaveData ofd_packets/00068453 [19:24:55]File name is /storage/ofd_packets/00068453 [19:24:55]Write 301 bytes [19:24:55]NVStorageSaveData done [19:24:55]OFDSenderStorePacket done [19:24:55]KKMCreateOFDPacket done [19:24:55]NVStorageSaveData kkm_last_timestamp [19:24:55]File name is /storage/kkm_last_timestamp [19:24:55]Write 4 bytes [19:24:55]NVStorageSaveData done [19:24:55]ExternCall_PrintAddStr [19:24:55]wPrintStart [19:24:55]Write to MH i2c: 01 00 00 14 5A 6E [19:24:55]Write i2c OK [19:24:55]MH_I2C_Read... [19:24:55]Read from MH i2c: 01 [19:24:55]MH_I2C_Read... [19:24:55]Read from MH i2c: 01 07 00 [19:24:55]MH_I2C_Read... [19:24:55]Read from MH i2c: 01 07 00 14 5A 00 00 00 00 00 FF 0F 83 [19:24:55]RasterBufferAndPrint [19:24:55]line Счет N : (1)706557 [19:24:55]line ИНН: 02508201610067 [19:24:55]line Контрольно-Кассовый Чек [19:24:55]line ПРОДАЖА [19:24:55]line ТРК (МРК, ГНК) : 53 [19:24:55]line Товар: 2710124130 [19:24:55]line Аи-92-К-4 [19:24:55]line 10.470 * 66.90 [19:24:55]line = 700.44 [19:24:55]line НДС 12% НСП 1% [19:24:55]line > о реализуемом товаре [19:24:55]line ИТОГО: 700.44 [19:24:55]line НСП 1% : 6.20 [19:24:55]line НДС 12% : 74.38 [19:24:55]line Наличными: 0.00 [19:24:55]line Безнал.: 700.44 [19:24:55]line Место: АЗС № 62 "Партнер Нефть" [19:24:55]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [19:24:55]line СНО: Общий режим [19:24:55]line Чек 199 03.06.2024 19:25 [19:24:55]line Смена: 324 ФФД: 1.0 [19:24:55]line ЗНМ: 0300000181 [19:24:55]line РНМ: 0000000000098096 [19:24:55]line Версия ККМ: 001 [19:24:55]line Платежная система: АКБ Кыргызстан [19:24:55]line ФМ: 0000000000965400 [19:24:55]line ФД: 68453 [19:24:55]line ФПД: 19595669336960 [19:24:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T192500&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68453&fm=19595669336960&tin=02508201610067®Number=0000000000098096&sum=70044 [19:24:55]OFD Sender: Processing packet 68453 [packets to send 26, broken 25] [19:24:55]ProducePacketName [19:24:55]name=ofd_packets/00068453 [19:24:55]OFD Sender: To server: pG, [19:24:55]CommunicateWithHost lk.salyk.kg:30040 [19:24:55]ConnectInit lk.salyk.kg [19:24:55]written 0, free lines is 4095 [19:24:55]Connected sock=7 [19:24:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 B3 77 07 01 06 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 8C 18 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 65 0B 01 00 35 04 06 00 11 D2 78 E8 F3 80 37 90 B4 BC 9E 24 EC BE [19:24:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 FE 82 47 00 3D B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 65 0B 01 00 F4 03 04 00 87 BF 5D 66 B6 04 01 00 00 B7 8E 45 15 E2 69 5A 18 [19:24:55]CommunicateWithHost err = 0 [19:24:55]CheckOFDResponse [19:24:55]1017 (14) - 77093643461234 [19:24:55]1041 (16) - 0000000000965400 [19:24:55]1040 (4) - 68453 [19:24:55]1012 (4) - 03.06.2024 13:05 [19:24:55]1206 (1) - 0 [19:24:55]OFD Sender: Remove packet 68453 [19:24:55]ProducePacketName [19:24:55]name=ofd_packets/00068453 [19:24:55]NVStorageDeleteData [19:24:56]Write to MH i2c: 01 00 00 3E 5A 98 [19:24:56]Write i2c OK [19:24:56]MH_I2C_Read... [19:24:56]Read from MH i2c: 01 [19:24:56]MH_I2C_Read... [19:24:56]Read from MH i2c: 01 07 00 [19:24:56]MH_I2C_Read... [19:24:56]Read from MH i2c: 01 07 00 3E 5A 00 00 00 00 00 00 0D AC [19:24:56]RasterBufferAndPrint [19:24:56]line [19:24:56]line [19:24:56]line [19:24:56]line [19:24:56]line [19:24:56]written 0, free lines is 3334 [19:24:56]MH_Cut [19:24:56]Write to MH i2c: D1 01 00 45 5A 01 71 [19:24:56]Write i2c OK [19:24:56]MH_I2C_Read... [19:24:56]Read from MH i2c: D1 [19:24:56]MH_I2C_Read... [19:24:56]Read from MH i2c: D1 01 00 [19:24:56]MH_I2C_Read... [19:24:56]Read from MH i2c: D1 01 00 45 5A 00 70 [19:24:56]Write to MH i2c: 01 00 00 46 5A A0 [19:24:56]Write i2c OK [19:24:56]MH_I2C_Read... [19:24:56]OFD Sender: No OFD packet to send [19:24:56]*** Cut start [19:24:56]*** Partial cut [19:24:56]*** CUTSNS_PIN = 1 [19:24:57]*** CUTSNS_PIN = 0 [19:24:57]*** Brake cut motor [19:24:57]Read from MH i2c: 01 [19:24:57]MH_I2C_Read... [19:24:57]*** Stop cut motor [19:24:57]*** Cut end [19:24:57]Read from MH i2c: 01 07 00 [19:24:57]MH_I2C_Read... [19:24:57]Read from MH i2c: 01 07 00 46 5A 00 00 00 00 00 FF 0F B5 [19:24:57]process_action close_receipt done [19:24:57]requested_data is exist [19:24:57]produce_requested_data [19:24:57]requested_item fm.sn is exist - process it [19:24:57]wFMCommunicate request_size=4 [19:24:57]MH_SAM_APDU [19:24:57]CAPDU: 80 11 00 00 [19:24:57]Write to MH i2c: E2 08 00 47 5A 80 11 00 00 00 00 00 00 1B [19:24:57]Write i2c OK [19:24:57]MH_I2C_Read... [19:24:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:24:57]Read from MH i2c: E2 [19:24:57]MH_I2C_Read... [19:24:57]Read from MH i2c: E2 17 00 [19:24:57]MH_I2C_Read... [19:24:57]Read from MH i2c: E2 17 00 47 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 66 [19:24:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [19:24:57]wFMCommunicate OK [19:24:57]requested_item fd.num is exist - process it [19:24:57]SAM_PROTO_GetFieldsCounters [19:24:57]wFMCommunicate request_size=4 [19:24:57]MH_SAM_APDU [19:24:57]CAPDU: 80 13 00 00 [19:24:57]Write to MH i2c: E2 08 00 48 5A 80 13 00 00 00 00 00 00 1E [19:24:57]Write i2c OK [19:24:57]MH_I2C_Read... [19:24:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:24:57]Read from MH i2c: E2 [19:24:57]MH_I2C_Read... [19:24:57]Read from MH i2c: E2 62 00 [19:24:57]MH_I2C_Read... [19:24:57]Read from MH i2c: E2 62 00 48 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 65 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 49 [19:24:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 65 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:24:57]wFMCommunicate OK [19:24:57]SAM_PROTO_GetFieldsCounters done [19:24:57]requested_item shift.num is exist - process it [19:24:57]requested_item shift.opened is exist - process it [19:24:57]req_shift_opened [19:24:57]FM_GetShiftState [19:24:57]SAM_PROTO_GetShiftState [19:24:57]wFMCommunicate request_size=4 [19:24:57]MH_SAM_APDU [19:24:57]CAPDU: 80 13 01 00 [19:24:57]Write to MH i2c: E2 08 00 49 5A 80 13 01 00 00 00 00 00 20 [19:24:57]Write i2c OK [19:24:57]MH_I2C_Read... [19:24:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:24:57]Read from MH i2c: E2 [19:24:57]MH_I2C_Read... [19:24:57]Read from MH i2c: E2 0E 00 [19:24:57]MH_I2C_Read... [19:24:57]Read from MH i2c: E2 0E 00 49 5A 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 FB [19:24:57]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [19:24:57]wFMCommunicate OK [19:24:57]SAM_PROTO_GetShiftState done [19:24:57]FM_GetShiftState done [19:24:57]req_shift_opened done [19:24:57]requested_item shift.open_date is exist - process it [19:24:57]req_shift_open_date [19:24:57]req_shift_open_date done [19:24:57]produce_requested_data done [19:24:57]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68453,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [19:24:57]process_action_free close_receipt [19:24:57]json_value_free [19:24:57]json_value_free done [19:24:57]process_json_proto returns [19:24:57]Send response to host [19:24:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68453,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [19:24:57]free response buf [19:24:57]execute_script done [19:24:57]execute_script returns [19:24:57]free content buf [19:24:57]Sock 5.Close socket [19:24:57]Sock 5.Thread stoped [19:24:58]accept exits with 6 [19:24:58]New connection [19:24:58]New thread 3066686820 created [19:24:58]Thread 3066543460 joined [19:24:58]Waiting for new connection... [19:24:58] Sock 6.Parse request [19:24:58]Sock 6.Check first char [19:24:58]Sock 6.First char is OK [19:24:58]request: POST /json_proto HTTP/1.0 [19:24:58]Method: POST [19:24:58]URL: /json_proto [19:24:58]Method is POST - this is cgi request [19:24:58]url: /json_proto [19:24:58]query_string will be loaded in cgi processing [19:24:58]execute_cgi json_proto POST (null) [19:24:58]execute_cgi path=json_proto method=POST [19:24:58]POST find Content-Length [19:24:58]Host: 172.17.36.132:8080 [19:24:58]Content-Length: 682 [19:24:58]Content-Type: application/json [19:24:58] [19:24:58]POST finish read [19:24:58]Found Content-Length = 682 [19:24:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706558", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 5.560, "sum" : 405.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 405.00, "total" : 405.00, "payments": [ { "type": 0, "sum" : 405.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:24:58]execute_script... [19:24: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)706558", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 5.560, "sum" : 405.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 405.00, "total" : 405.00, "payments": [ { "type": 0, "sum" : 405.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:24:58]POST & json_proto [19:24:58]process_json_proto [19:24:58]json parsed OK: [19:24:58]protocol is kg_v1.0 [19:24:58]action value=close_receipt [19:24:58]process_action close_receipt [19:24:58]cmd_close_receipt [19:24:58]MH_GetDate [19:24:58]Write to MH i2c: F0 00 00 4A 5A 93 [19:24:58]Write i2c OK [19:24:58]MH_I2C_Read... [19:24:58]Read from MH i2c: F0 [19:24:58]MH_I2C_Read... [19:24:58]Read from MH i2c: F0 09 00 [19:24:58]MH_I2C_Read... [19:24:58]Read from MH i2c: F0 09 00 4A 5A 00 91 18 5E 66 B2 22 B0 64 F1 [19:24:58]GetLastDocTimeStamp 1717442700 [19:24:58]current date 1717442705 [19:24:58]FM_GetShiftState [19:24:58]SAM_PROTO_GetShiftState [19:24:58]wFMCommunicate request_size=4 [19:24:58]MH_SAM_APDU [19:24:58]CAPDU: 80 13 01 00 [19:24:58]Write to MH i2c: E2 08 00 4B 5A 80 13 01 00 00 00 00 00 22 [19:24:58]Write i2c OK [19:24:58]MH_I2C_Read... [19:24:58]Read from MH i2c: E2 [19:24:58]MH_I2C_Read... [19:24:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:24:58]Read from MH i2c: E2 0E 00 [19:24:58]MH_I2C_Read... [19:24:58]Read from MH i2c: E2 0E 00 4B 5A 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 FD [19:24:58]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [19:24:58]wFMCommunicate OK [19:24:58]SAM_PROTO_GetShiftState done [19:24:58]FM_GetShiftState done [19:24:58]opened in 1717378033 [19:24:58]opened+sec_in_day 1717464433 [19:24:58]quantity*price = 40532 [19:24:58]sum+1 = 40533 [19:24:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 405.00 Внесено: 405.00 СДАЧА: 0.00 НСП 1% : 3.59 НДС 12% : 43.04 Наличными: 405.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 200 03.06.2024 19:25 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68454 ФПД: 226645444911316 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T192505&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68454&fm=226645444911316&tin=02508201610067®Number=0000000000098096&sum=40500 [19:25:00]StoreToDocumentArchive [19:25:00]shift 324 fd 68454 [19:25:00]save to /storage/0324/doc_00068454 [19:25:00]save last doc name /storage/0324/doc_00068454 to /storage/kkm_last_doc_name [19:25:00]save OK [19:25:00]Clear old archive folders... [19:25:00]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:25:00]tlvbuf is 005B6F10 [19:25:00]SAM_PROTO_ClearQueue [19:25:00]wFMCommunicate request_size=4 [19:25:00]MH_SAM_APDU [19:25:00]CAPDU: 80 09 00 00 [19:25:00]Write to MH i2c: E2 08 00 58 5A 80 09 00 00 00 00 00 00 24 [19:25:00]Write i2c OK [19:25:00]MH_I2C_Read... [19:25:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:25:00]Read from MH i2c: E2 [19:25:00]MH_I2C_Read... [19:25:00]Read from MH i2c: E2 03 00 [19:25:00]MH_I2C_Read... [19:25:00]Read from MH i2c: E2 03 00 58 5A 00 90 00 26 [19:25:00]RAPDU: 90 00 [19:25:00]wFMCommunicate OK [19:25:00]SAM_PROTO_ClearQueue done [19:25:00]KKMCreateOFDPacket [19:25:00]OFDProtocolAddRootSTLVToBuf [19:25:00]FM_MakeSignedData [19:25:00]FM_MakeSignedData [19:25:00]SAM_PROTO_SignData [19:25:00]wFMCommunicate request_size=4 [19:25:00]MH_SAM_APDU [19:25:00]CAPDU: 80 0D 01 02 [19:25:00]Write to MH i2c: E2 08 00 59 5A 80 0D 01 02 00 00 00 00 2C [19:25:00]Write i2c OK [19:25:00]MH_I2C_Read... [19:25:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:25:00]Read from MH i2c: E2 [19:25:00]MH_I2C_Read... [19:25:00]Read from MH i2c: E2 03 00 [19:25:00]MH_I2C_Read... [19:25:00]Read from MH i2c: E2 03 00 59 5A 00 90 00 27 [19:25:00]RAPDU: 90 00 [19:25:00]wFMCommunicate OK [19:25:00]wFMCommunicate request_size=255 [19:25:00]MH_SAM_APDU [19:25: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 34 FF 03 08 00 03 B8 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 54 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 91 18 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 66 0B 01 00 35 04 06 00 [19:25:00]Write to MH i2c: E2 02 01 5A 5A 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 34 FF 03 08 00 03 B8 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 54 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 91 18 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 66 0B 01 00 35 04 06 00 00 00 9C [19:25:00]Write i2c OK [19:25:00]MH_I2C_Read... [19:25:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:25:00]Read from MH i2c: E2 [19:25:00]MH_I2C_Read... [19:25:00]Read from MH i2c: E2 03 00 [19:25:00]MH_I2C_Read... [19:25:00]Read from MH i2c: E2 03 00 5A 5A 00 90 00 28 [19:25:00]RAPDU: 90 00 [19:25:00]wFMCommunicate OK [19:25:00]wFMCommunicate request_size=11 [19:25:00]MH_SAM_APDU [19:25:00]CAPDU: 80 0D 02 02 06 CE 22 01 3B E0 D4 [19:25:00]Write to MH i2c: E2 0E 00 5B 5A 80 0D 02 02 06 00 CE 22 01 3B E0 D4 00 00 1B [19:25:00]Write i2c OK [19:25:00]MH_I2C_Read... [19:25:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:25:00]Read from MH i2c: E2 [19:25:00]MH_I2C_Read... [19:25:00]Read from MH i2c: E2 03 00 [19:25:00]MH_I2C_Read... [19:25:00]Read from MH i2c: E2 03 00 5B 5A 00 90 00 29 [19:25:00]RAPDU: 90 00 [19:25:00]wFMCommunicate OK [19:25:00]wFMCommunicate request_size=4 [19:25:00]MH_SAM_APDU [19:25:00]CAPDU: 80 0D 03 02 [19:25:00]Write to MH i2c: E2 08 00 5C 5A 80 0D 03 02 00 00 00 00 31 [19:25:00]Write i2c OK [19:25:00]MH_I2C_Read... [19:25:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:25:00]Read from MH i2c: E2 [19:25:00]MH_I2C_Read... [19:25:00]Read from MH i2c: E2 0B 00 [19:25:00]MH_I2C_Read... [19:25:00]Read from MH i2c: E2 0B 00 5C 5A 00 9D 72 6B F9 66 43 9A A9 90 00 91 [19:25:00]RAPDU: 9D 72 6B F9 66 43 9A A9 90 00 [19:25:00]wFMCommunicate OK [19:25:00]SAM_PROTO_SignData done [19:25:00]FM_MakeSignedData done [19:25:00]CreateOFDProtocolMessage [19:25:00]wFMCommunicate request_size=4 [19:25:00]MH_SAM_APDU [19:25:00]CAPDU: 80 11 00 00 [19:25:00]Write to MH i2c: E2 08 00 5D 5A 80 11 00 00 00 00 00 00 31 [19:25:00]Write i2c OK [19:25:00]MH_I2C_Read... [19:25:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:25:00]Read from MH i2c: E2 [19:25:00]MH_I2C_Read... [19:25:00]Read from MH i2c: E2 17 00 [19:25:00]MH_I2C_Read... [19:25:00]Read from MH i2c: E2 17 00 5D 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 7C [19:25:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [19:25:00]wFMCommunicate OK [19:25:00]CreateOFDProtocolMessage done [19:25:00]OFDSenderStorePacket 68454 [19:25:00]StoreOFDPacket docnum=68454 [19:25:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 C5 14 08 01 3E BA 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 34 FF 03 08 00 03 B8 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 54 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 91 18 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 66 0B 01 00 35 04 06 00 CE 22 01 3B E0 D4 9D 72 6B F9 66 43 9A A9 [19:25:00]CheckFolder [19:25:00]dirname=/storage/ofd_packets [19:25:00]CheckFolder done [19:25:00]ProducePacketName [19:25:00]name=ofd_packets/00068454 [19:25:00]NVStorageSaveData ofd_packets/00068454 [19:25:00]File name is /storage/ofd_packets/00068454 [19:25:00]Write 302 bytes [19:25:00]NVStorageSaveData done [19:25:00]OFDSenderStorePacket done [19:25:00]KKMCreateOFDPacket done [19:25:00]NVStorageSaveData kkm_last_timestamp [19:25:00]File name is /storage/kkm_last_timestamp [19:25:00]Write 4 bytes [19:25:00]NVStorageSaveData done [19:25:00]ExternCall_PrintAddStr [19:25:00]wPrintStart [19:25:00]Write to MH i2c: 01 00 00 5E 5A B8 [19:25:00]Write i2c OK [19:25:00]MH_I2C_Read... [19:25:00]Read from MH i2c: 01 [19:25:00]MH_I2C_Read... [19:25:00]Read from MH i2c: 01 07 00 [19:25:00]MH_I2C_Read... [19:25:00]Read from MH i2c: 01 07 00 5E 5A 00 00 00 00 00 FF 0F CD [19:25:00]RasterBufferAndPrint [19:25:00]line Счет N : (1)706558 [19:25:00]line ИНН: 02508201610067 [19:25:00]line Контрольно-Кассовый Чек [19:25:00]line ПРОДАЖА [19:25:00]line ТРК (МРК, ГНК) : 21 [19:25:00]line Товар: 2710194210 [19:25:00]line ДТ(л)-К-4 [19:25:00]line 5.560 * 72.90 [19:25:00]line = 405.32 [19:25:00]line НДС 12% НСП 1% [19:25:00]line > о реализуемом товаре [19:25:00]line ОКРУГЛЕНИЕ: -0.32 [19:25:00]line ИТОГО: 405.00 [19:25:00]line Внесено: 405.00 [19:25:00]line СДАЧА: 0.00 [19:25:00]line НСП 1% : 3.59 [19:25:00]line НДС 12% : 43.04 [19:25:00]line Наличными: 405.00 [19:25:00]line Безнал.: 0.00 [19:25:00]line Место: АЗС № 62 "Партнер Нефть" [19:25:00]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [19:25:00]line СНО: Общий режим [19:25:00]line Чек 200 03.06.2024 19:25 [19:25:00]line Смена: 324 ФФД: 1.0 [19:25:00]line ЗНМ: 0300000181 [19:25:00]line РНМ: 0000000000098096 [19:25:00]line Версия ККМ: 001 [19:25:00]line ФМ: 0000000000965400 [19:25:00]line ФД: 68454 [19:25:00]line ФПД: 226645444911316 [19:25:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T192505&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68454&fm=226645444911316&tin=02508201610067®Number=0000000000098096&sum=40500 [19:25:00]OFD Sender: Processing packet 68454 [packets to send 26, broken 25] [19:25:00]ProducePacketName [19:25:00]name=ofd_packets/00068454 [19:25:00]OFD Sender: To server: pG, [19:25:00]CommunicateWithHost lk.salyk.kg:30040 [19:25:00]ConnectInit lk.salyk.kg [19:25:00]written 0, free lines is 4095 [19:25:00]Connected sock=7 [19:25:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 C5 14 08 01 3E BA 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 34 FF 03 08 00 03 B8 15 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 54 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 91 18 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 66 0B 01 00 35 04 06 00 CE 22 01 3B E0 D4 9D 72 6B F9 66 43 9A A9 [19:25:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 2A 90 47 00 BD 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 39 36 35 34 30 30 10 04 04 00 66 0B 01 00 F4 03 04 00 8C BF 5D 66 B6 04 01 00 00 E2 8E E9 E6 BC DA 21 C7 [19:25:01]CommunicateWithHost err = 0 [19:25:01]CheckOFDResponse [19:25:01]1017 (14) - 77093643461234 [19:25:01]1041 (16) - 0000000000965400 [19:25:01]1040 (4) - 68454 [19:25:01]1012 (4) - 03.06.2024 13:05 [19:25:01]1206 (1) - 0 [19:25:01]OFD Sender: Remove packet 68454 [19:25:01]ProducePacketName [19:25:01]name=ofd_packets/00068454 [19:25:01]NVStorageDeleteData [19:25:01]Write to MH i2c: 01 00 00 89 5A E3 [19:25:01]Write i2c OK [19:25:01]MH_I2C_Read... [19:25:01]Read from MH i2c: 01 [19:25:01]MH_I2C_Read... [19:25:01]Read from MH i2c: 01 07 00 [19:25:01]MH_I2C_Read... [19:25:01]Read from MH i2c: 01 07 00 89 5A 00 00 00 00 00 ED 0C E3 [19:25:01]RasterBufferAndPrint [19:25:01]line [19:25:01]line [19:25:01]line [19:25:01]line [19:25:01]line [19:25:01]written 0, free lines is 3324 [19:25:01]MH_Cut [19:25:01]Write to MH i2c: D1 01 00 90 5A 01 BC [19:25:01]Write i2c OK [19:25:01]MH_I2C_Read... [19:25:01]Read from MH i2c: D1 [19:25:01]MH_I2C_Read... [19:25:01]Read from MH i2c: D1 01 00 [19:25:01]MH_I2C_Read... [19:25:01]Read from MH i2c: D1 01 00 90 5A 00 BB [19:25:01]Write to MH i2c: 01 00 00 91 5A EB [19:25:01]Write i2c OK [19:25:01]MH_I2C_Read... [19:25:01]OFD Sender: No OFD packet to send [19:25:02]*** Cut start [19:25:02]*** Partial cut [19:25:02]*** CUTSNS_PIN = 1 [19:25:02]*** CUTSNS_PIN = 0 [19:25:02]*** Brake cut motor [19:25:02]Read from MH i2c: 01 [19:25:02]MH_I2C_Read... [19:25:02]*** Stop cut motor [19:25:02]*** Cut end [19:25:02]Read from MH i2c: 01 07 00 [19:25:02]MH_I2C_Read... [19:25:02]Read from MH i2c: 01 07 00 91 5A 00 00 00 00 00 FF 0F 00 [19:25:02]process_action close_receipt done [19:25:02]requested_data is exist [19:25:02]produce_requested_data [19:25:02]requested_item fm.sn is exist - process it [19:25:02]wFMCommunicate request_size=4 [19:25:02]MH_SAM_APDU [19:25:02]CAPDU: 80 11 00 00 [19:25:02]Write to MH i2c: E2 08 00 92 5A 80 11 00 00 00 00 00 00 66 [19:25:02]Write i2c OK [19:25:02]MH_I2C_Read... [19:25:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:25:02]Read from MH i2c: E2 [19:25:02]MH_I2C_Read... [19:25:02]Read from MH i2c: E2 17 00 [19:25:02]MH_I2C_Read... [19:25:02]Read from MH i2c: E2 17 00 92 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 B1 [19:25:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [19:25:02]wFMCommunicate OK [19:25:02]requested_item fd.num is exist - process it [19:25:02]SAM_PROTO_GetFieldsCounters [19:25:02]wFMCommunicate request_size=4 [19:25:02]MH_SAM_APDU [19:25:02]CAPDU: 80 13 00 00 [19:25:02]Write to MH i2c: E2 08 00 93 5A 80 13 00 00 00 00 00 00 69 [19:25:02]Write i2c OK [19:25:02]MH_I2C_Read... [19:25:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:25:02]Read from MH i2c: E2 [19:25:02]MH_I2C_Read... [19:25:02]Read from MH i2c: E2 62 00 [19:25:02]MH_I2C_Read... [19:25:02]Read from MH i2c: E2 62 00 93 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 66 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 98 [19:25:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 66 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:25:02]wFMCommunicate OK [19:25:02]SAM_PROTO_GetFieldsCounters done [19:25:02]requested_item shift.num is exist - process it [19:25:02]requested_item shift.opened is exist - process it [19:25:02]req_shift_opened [19:25:02]FM_GetShiftState [19:25:02]SAM_PROTO_GetShiftState [19:25:02]wFMCommunicate request_size=4 [19:25:02]MH_SAM_APDU [19:25:02]CAPDU: 80 13 01 00 [19:25:02]Write to MH i2c: E2 08 00 94 5A 80 13 01 00 00 00 00 00 6B [19:25:02]Write i2c OK [19:25:02]MH_I2C_Read... [19:25:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:25:02]Read from MH i2c: E2 [19:25:02]MH_I2C_Read... [19:25:02]Read from MH i2c: E2 0E 00 [19:25:02]MH_I2C_Read... [19:25:02]Read from MH i2c: E2 0E 00 94 5A 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 46 [19:25:02]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [19:25:02]wFMCommunicate OK [19:25:02]SAM_PROTO_GetShiftState done [19:25:02]FM_GetShiftState done [19:25:02]req_shift_opened done [19:25:02]requested_item shift.open_date is exist - process it [19:25:02]req_shift_open_date [19:25:02]req_shift_open_date done [19:25:02]produce_requested_data done [19:25:02]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68454,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [19:25:02]process_action_free close_receipt [19:25:02]json_value_free [19:25:02]json_value_free done [19:25:02]process_json_proto returns [19:25:02]Send response to host [19:25:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68454,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [19:25:02]free response buf [19:25:02]execute_script done [19:25:02]execute_script returns [19:25:02]free content buf [19:25:02]Sock 6.Close socket [19:25:02]Sock 6.Thread stoped [19:25:06]OFD Sender: No OFD packet to send [19:25:11]OFD Sender: No OFD packet to send [19:25:16]OFD Sender: No OFD packet to send [19:25:21]OFD Sender: No OFD packet to send [19:25:25]accept exits with 5 [19:25:25]New connection [19:25:25]New thread 3066543460 created [19:25:25]Thread 3066686820 joined [19:25:25]Waiting for new connection... [19:25:25] Sock 5.Parse request [19:25:25]Sock 5.Check first char [19:25:25]Sock 5.First char is OK [19:25:25]request: POST /json_proto HTTP/1.0 [19:25:25]Method: POST [19:25:25]URL: /json_proto [19:25:25]Method is POST - this is cgi request [19:25:25]url: /json_proto [19:25:25]query_string will be loaded in cgi processing [19:25:25]execute_cgi json_proto POST (null) [19:25:25]execute_cgi path=json_proto method=POST [19:25:25]POST find Content-Length [19:25:25]Host: 172.17.36.132:8080 [19:25:25]Content-Length: 677 [19:25:25]Content-Type: application/json [19:25:25] [19:25:25]POST finish read [19:25:25]Found Content-Length = 677 [19:25:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706560", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:25:25]execute_script... [19:25: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)706560", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:25:25]POST & json_proto [19:25:25]process_json_proto [19:25:25]json parsed OK: [19:25:25]protocol is kg_v1.0 [19:25:25]action value=close_receipt [19:25:25]process_action close_receipt [19:25:25]cmd_close_receipt [19:25:25]MH_GetDate [19:25:25]Write to MH i2c: F0 00 00 95 5A DE [19:25:25]Write i2c OK [19:25:25]MH_I2C_Read... [19:25:25]Read from MH i2c: F0 [19:25:25]MH_I2C_Read... [19:25:25]Read from MH i2c: F0 09 00 [19:25:25]MH_I2C_Read... [19:25:25]Read from MH i2c: F0 09 00 95 5A 00 AC 18 5E 66 B2 22 B0 64 57 [19:25:25]GetLastDocTimeStamp 1717442705 [19:25:25]current date 1717442732 [19:25:25]FM_GetShiftState [19:25:25]SAM_PROTO_GetShiftState [19:25:25]wFMCommunicate request_size=4 [19:25:25]MH_SAM_APDU [19:25:25]CAPDU: 80 13 01 00 [19:25:25]Write to MH i2c: E2 08 00 96 5A 80 13 01 00 00 00 00 00 6D [19:25:25]Write i2c OK [19:25:25]MH_I2C_Read... [19:25:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:25:25]Read from MH i2c: E2 [19:25:25]MH_I2C_Read... [19:25:25]Read from MH i2c: E2 0E 00 [19:25:25]MH_I2C_Read... [19:25:25]Read from MH i2c: E2 0E 00 96 5A 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 48 [19:25:25]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [19:25:25]wFMCommunicate OK [19:25:25]SAM_PROTO_GetShiftState done [19:25:25]FM_GetShiftState done [19:25:25]opened in 1717378033 [19:25:25]opened+sec_in_day 1717464433 [19:25:25]quantity*price = 30038 [19:25:25]sum+1 = 30039 [19:25:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 201 03.06.2024 19:25 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68455 ФПД: 278163144668159 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T192532&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68455&fm=278163144668159&tin=02508201610067®Number=0000000000098096&sum=30000 [19:25:26]StoreToDocumentArchive [19:25:26]shift 324 fd 68455 [19:25:26]save to /storage/0324/doc_00068455 [19:25:26]save last doc name /storage/0324/doc_00068455 to /storage/kkm_last_doc_name [19:25:26]save OK [19:25:26]Clear old archive folders... [19:25:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:25:26]tlvbuf is 0026B390 [19:25:26]SAM_PROTO_ClearQueue [19:25:26]wFMCommunicate request_size=4 [19:25:26]MH_SAM_APDU [19:25:26]CAPDU: 80 09 00 00 [19:25:26]Write to MH i2c: E2 08 00 A3 5A 80 09 00 00 00 00 00 00 6F [19:25:26]Write i2c OK [19:25:26]MH_I2C_Read... [19:25:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:25:27]Read from MH i2c: E2 [19:25:27]MH_I2C_Read... [19:25:27]Read from MH i2c: E2 03 00 [19:25:27]MH_I2C_Read... [19:25:27]Read from MH i2c: E2 03 00 A3 5A 00 90 00 71 [19:25:27]RAPDU: 90 00 [19:25:27]wFMCommunicate OK [19:25:27]SAM_PROTO_ClearQueue done [19:25:27]KKMCreateOFDPacket [19:25:27]OFDProtocolAddRootSTLVToBuf [19:25:27]FM_MakeSignedData [19:25:27]FM_MakeSignedData [19:25:27]SAM_PROTO_SignData [19:25:27]wFMCommunicate request_size=4 [19:25:27]MH_SAM_APDU [19:25:27]CAPDU: 80 0D 01 02 [19:25:27]Write to MH i2c: E2 08 00 A4 5A 80 0D 01 02 00 00 00 00 77 [19:25:27]Write i2c OK [19:25:27]MH_I2C_Read... [19:25:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:25:27]Read from MH i2c: E2 [19:25:27]MH_I2C_Read... [19:25:27]Read from MH i2c: E2 03 00 [19:25:27]MH_I2C_Read... [19:25:27]Read from MH i2c: E2 03 00 A4 5A 00 90 00 72 [19:25:27]RAPDU: 90 00 [19:25:27]wFMCommunicate OK [19:25:27]wFMCommunicate request_size=255 [19:25:27]MH_SAM_APDU [19:25:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 AC 18 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 67 0B 01 00 35 04 06 00 FC [19:25:27]Write to MH i2c: E2 02 01 A5 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 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 AC 18 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 67 0B 01 00 35 04 06 00 FC 00 00 FD [19:25:27]Write i2c OK [19:25:27]MH_I2C_Read... [19:25:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:25:27]Read from MH i2c: E2 [19:25:27]MH_I2C_Read... [19:25:27]Read from MH i2c: E2 03 00 [19:25:27]MH_I2C_Read... [19:25:27]Read from MH i2c: E2 03 00 A5 5A 00 90 00 73 [19:25:27]RAPDU: 90 00 [19:25:27]wFMCommunicate OK [19:25:27]wFMCommunicate request_size=10 [19:25:27]MH_SAM_APDU [19:25:27]CAPDU: 80 0D 02 02 05 FC E7 6D 73 FF [19:25:27]Write to MH i2c: E2 0D 00 A6 5A 80 0D 02 02 05 00 FC E7 6D 73 FF 00 00 46 [19:25:27]Write i2c OK [19:25:27]MH_I2C_Read... [19:25:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:25:27]Read from MH i2c: E2 [19:25:27]MH_I2C_Read... [19:25:27]Read from MH i2c: E2 03 00 [19:25:27]MH_I2C_Read... [19:25:27]Read from MH i2c: E2 03 00 A6 5A 00 90 00 74 [19:25:27]RAPDU: 90 00 [19:25:27]wFMCommunicate OK [19:25:27]wFMCommunicate request_size=4 [19:25:27]MH_SAM_APDU [19:25:27]CAPDU: 80 0D 03 02 [19:25:27]Write to MH i2c: E2 08 00 A7 5A 80 0D 03 02 00 00 00 00 7C [19:25:27]Write i2c OK [19:25:27]MH_I2C_Read... [19:25:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:25:27]Read from MH i2c: E2 [19:25:27]MH_I2C_Read... [19:25:27]Read from MH i2c: E2 0B 00 [19:25:27]MH_I2C_Read... [19:25:27]Read from MH i2c: E2 0B 00 A7 5A 00 A9 20 EE BF E7 F9 35 07 90 00 0F [19:25:27]RAPDU: A9 20 EE BF E7 F9 35 07 90 00 [19:25:27]wFMCommunicate OK [19:25:27]SAM_PROTO_SignData done [19:25:27]FM_MakeSignedData done [19:25:27]CreateOFDProtocolMessage [19:25:27]wFMCommunicate request_size=4 [19:25:27]MH_SAM_APDU [19:25:27]CAPDU: 80 11 00 00 [19:25:27]Write to MH i2c: E2 08 00 A8 5A 80 11 00 00 00 00 00 00 7C [19:25:27]Write i2c OK [19:25:27]MH_I2C_Read... [19:25:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:25:27]Read from MH i2c: E2 [19:25:27]MH_I2C_Read... [19:25:27]Read from MH i2c: E2 17 00 [19:25:27]MH_I2C_Read... [19:25:27]Read from MH i2c: E2 17 00 A8 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 C7 [19:25:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [19:25:27]wFMCommunicate OK [19:25:27]CreateOFDProtocolMessage done [19:25:27]OFDSenderStorePacket 68455 [19:25:27]StoreOFDPacket docnum=68455 [19:25:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 39 26 07 01 32 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 AC 18 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 67 0B 01 00 35 04 06 00 FC FC E7 6D 73 FF A9 20 EE BF E7 F9 35 07 [19:25:27]CheckFolder [19:25:27]dirname=/storage/ofd_packets [19:25:27]CheckFolder done [19:25:27]ProducePacketName [19:25:27]name=ofd_packets/00068455 [19:25:27]NVStorageSaveData ofd_packets/00068455 [19:25:27]File name is /storage/ofd_packets/00068455 [19:25:27]Write 301 bytes [19:25:27]NVStorageSaveData done [19:25:27]OFDSenderStorePacket done [19:25:27]KKMCreateOFDPacket done [19:25:27]NVStorageSaveData kkm_last_timestamp [19:25:27]File name is /storage/kkm_last_timestamp [19:25:27]Write 4 bytes [19:25:27]NVStorageSaveData done [19:25:27]ExternCall_PrintAddStr [19:25:27]wPrintStart [19:25:27]Write to MH i2c: 01 00 00 A9 5A 03 [19:25:27]Write i2c OK [19:25:27]MH_I2C_Read... [19:25:27]Read from MH i2c: 01 [19:25:27]MH_I2C_Read... [19:25:27]Read from MH i2c: 01 07 00 [19:25:27]MH_I2C_Read... [19:25:27]Read from MH i2c: 01 07 00 A9 5A 00 00 00 00 00 FF 0F 18 [19:25:27]RasterBufferAndPrint [19:25:27]line Счет N : (1)706560 [19:25:27]line ИНН: 02508201610067 [19:25:27]line Контрольно-Кассовый Чек [19:25:27]line ПРОДАЖА [19:25:27]line ТРК (МРК, ГНК) : 42 [19:25:27]line Товар: 2710124130 [19:25:27]line Аи-92-К-4 [19:25:27]line 4.490 * 66.90 [19:25:27]line = 300.38 [19:25:27]line НДС 12% НСП 1% [19:25:27]line > о реализуемом товаре [19:25:27]line ОКРУГЛЕНИЕ: -0.38 [19:25:27]line ИТОГО: 300.00 [19:25:27]line Внесено: 300.00 [19:25:27]line СДАЧА: 0.00 [19:25:27]line НСП 1% : 2.66 [19:25:27]line НДС 12% : 31.90 [19:25:27]line Наличными: 300.00 [19:25:27]line Безнал.: 0.00 [19:25:27]line Место: АЗС № 62 "Партнер Нефть" [19:25:27]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [19:25:27]line СНО: Общий режим [19:25:27]line Чек 201 03.06.2024 19:25 [19:25:27]line Смена: 324 ФФД: 1.0 [19:25:27]line ЗНМ: 0300000181 [19:25:27]line РНМ: 0000000000098096 [19:25:27]line Версия ККМ: 001 [19:25:27]line ФМ: 0000000000965400 [19:25:27]line ФД: 68455 [19:25:27]line ФПД: 278163144668159 [19:25:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T192532&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68455&fm=278163144668159&tin=02508201610067®Number=0000000000098096&sum=30000 [19:25:27]OFD Sender: Processing packet 68455 [packets to send 26, broken 25] [19:25:27]ProducePacketName [19:25:27]name=ofd_packets/00068455 [19:25:27]OFD Sender: To server: pG, [19:25:27]CommunicateWithHost lk.salyk.kg:30040 [19:25:27]ConnectInit lk.salyk.kg [19:25:27]written 0, free lines is 4095 [19:25:27]Connected sock=9 [19:25:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 39 26 07 01 32 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 AC 18 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 67 0B 01 00 35 04 06 00 FC FC E7 6D 73 FF A9 20 EE BF E7 F9 35 07 [19:25:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 23 22 47 00 08 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 67 0B 01 00 F4 03 04 00 A7 BF 5D 66 B6 04 01 00 00 DA 26 CA EC 37 45 1E F7 [19:25:28]CommunicateWithHost err = 0 [19:25:28]CheckOFDResponse [19:25:28]1017 (14) - 77093643461234 [19:25:28]1041 (16) - 0000000000965400 [19:25:28]1040 (4) - 68455 [19:25:28]1012 (4) - 03.06.2024 13:05 [19:25:28]1206 (1) - 0 [19:25:28]OFD Sender: Remove packet 68455 [19:25:28]ProducePacketName [19:25:28]name=ofd_packets/00068455 [19:25:28]NVStorageDeleteData [19:25:28]Write to MH i2c: 01 00 00 D4 5A 2E [19:25:28]Write i2c OK [19:25:28]MH_I2C_Read... [19:25:28]Read from MH i2c: 01 [19:25:28]MH_I2C_Read... [19:25:28]Read from MH i2c: 01 07 00 [19:25:28]MH_I2C_Read... [19:25:28]Read from MH i2c: 01 07 00 D4 5A 00 00 00 00 00 D8 0C 19 [19:25:28]RasterBufferAndPrint [19:25:28]line [19:25:28]line [19:25:28]line [19:25:28]line [19:25:28]line [19:25:28]written 0, free lines is 3295 [19:25:28]MH_Cut [19:25:28]Write to MH i2c: D1 01 00 DB 5A 01 07 [19:25:28]Write i2c OK [19:25:28]MH_I2C_Read... [19:25:28]Read from MH i2c: D1 [19:25:28]MH_I2C_Read... [19:25:28]Read from MH i2c: D1 01 00 [19:25:28]MH_I2C_Read... [19:25:28]Read from MH i2c: D1 01 00 DB 5A 00 06 [19:25:28]Write to MH i2c: 01 00 00 DC 5A 36 [19:25:28]Write i2c OK [19:25:28]MH_I2C_Read... [19:25:28]OFD Sender: No OFD packet to send [19:25:29]*** Cut start [19:25:29]*** Partial cut [19:25:29]*** CUTSNS_PIN = 1 [19:25:29]*** CUTSNS_PIN = 0 [19:25:29]*** Brake cut motor [19:25:29]Read from MH i2c: 01 [19:25:29]MH_I2C_Read... [19:25:29]*** Stop cut motor [19:25:29]*** Cut end [19:25:29]Read from MH i2c: 01 07 00 [19:25:29]MH_I2C_Read... [19:25:29]Read from MH i2c: 01 07 00 DC 5A 00 00 00 00 00 FF 0F 4B [19:25:29]process_action close_receipt done [19:25:29]requested_data is exist [19:25:29]produce_requested_data [19:25:29]requested_item fm.sn is exist - process it [19:25:29]wFMCommunicate request_size=4 [19:25:29]MH_SAM_APDU [19:25:29]CAPDU: 80 11 00 00 [19:25:29]Write to MH i2c: E2 08 00 DD 5A 80 11 00 00 00 00 00 00 B1 [19:25:29]Write i2c OK [19:25:29]MH_I2C_Read... [19:25:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:25:29]Read from MH i2c: E2 [19:25:29]MH_I2C_Read... [19:25:29]Read from MH i2c: E2 17 00 [19:25:29]MH_I2C_Read... [19:25:29]Read from MH i2c: E2 17 00 DD 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 FC [19:25:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [19:25:29]wFMCommunicate OK [19:25:29]requested_item fd.num is exist - process it [19:25:29]SAM_PROTO_GetFieldsCounters [19:25:29]wFMCommunicate request_size=4 [19:25:29]MH_SAM_APDU [19:25:29]CAPDU: 80 13 00 00 [19:25:29]Write to MH i2c: E2 08 00 DE 5A 80 13 00 00 00 00 00 00 B4 [19:25:29]Write i2c OK [19:25:29]MH_I2C_Read... [19:25:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:25:29]Read from MH i2c: E2 [19:25:29]MH_I2C_Read... [19:25:29]Read from MH i2c: E2 62 00 [19:25:29]MH_I2C_Read... [19:25:29]Read from MH i2c: E2 62 00 DE 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 67 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 E7 [19:25:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 67 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:25:29]wFMCommunicate OK [19:25:29]SAM_PROTO_GetFieldsCounters done [19:25:29]requested_item shift.num is exist - process it [19:25:29]requested_item shift.opened is exist - process it [19:25:29]req_shift_opened [19:25:29]FM_GetShiftState [19:25:29]SAM_PROTO_GetShiftState [19:25:29]wFMCommunicate request_size=4 [19:25:29]MH_SAM_APDU [19:25:29]CAPDU: 80 13 01 00 [19:25:29]Write to MH i2c: E2 08 00 DF 5A 80 13 01 00 00 00 00 00 B6 [19:25:29]Write i2c OK [19:25:29]MH_I2C_Read... [19:25:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:25:29]Read from MH i2c: E2 [19:25:29]MH_I2C_Read... [19:25:29]Read from MH i2c: E2 0E 00 [19:25:29]MH_I2C_Read... [19:25:29]Read from MH i2c: E2 0E 00 DF 5A 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 91 [19:25:29]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [19:25:29]wFMCommunicate OK [19:25:29]SAM_PROTO_GetShiftState done [19:25:29]FM_GetShiftState done [19:25:29]req_shift_opened done [19:25:29]requested_item shift.open_date is exist - process it [19:25:29]req_shift_open_date [19:25:29]req_shift_open_date done [19:25:29]produce_requested_data done [19:25:29]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68455,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [19:25:29]process_action_free close_receipt [19:25:29]json_value_free [19:25:29]json_value_free done [19:25:29]process_json_proto returns [19:25:29]Send response to host [19:25:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68455,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [19:25:29]free response buf [19:25:29]execute_script done [19:25:29]execute_script returns [19:25:29]free content buf [19:25:29]Sock 5.Close socket [19:25:29]Sock 5.Thread stoped [19:25:33]OFD Sender: No OFD packet to send [19:25:38]OFD Sender: No OFD packet to send [19:25:43]OFD Sender: No OFD packet to send [19:25:48]OFD Sender: No OFD packet to send [19:25:53]OFD Sender: No OFD packet to send [19:25:58]OFD Sender: No OFD packet to send [19:25:59]accept exits with 6 [19:25:59]New connection [19:25:59]New thread 3066686820 created [19:25:59]Thread 3066543460 joined [19:25:59]Waiting for new connection... [19:25:59] Sock 6.Parse request [19:25:59]Sock 6.Check first char [19:25:59]Sock 6.First char is OK [19:25:59]request: POST /json_proto HTTP/1.0 [19:25:59]Method: POST [19:25:59]URL: /json_proto [19:25:59]Method is POST - this is cgi request [19:25:59]url: /json_proto [19:25:59]query_string will be loaded in cgi processing [19:25:59]execute_cgi json_proto POST (null) [19:25:59]execute_cgi path=json_proto method=POST [19:25:59]POST find Content-Length [19:25:59]Host: 172.17.36.132:8080 [19:25:59]Content-Length: 836 [19:25:59]Content-Type: application/json [19:25:59] [19:25:59]POST finish read [19:25:59]Found Content-Length = 836 [19:25:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706562", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 17.680, "sum" : 1200.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1200.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:25:59]execute_script... [19:25: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)706562", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 17.680, "sum" : 1200.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1200.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:25:59]POST & json_proto [19:25:59]process_json_proto [19:25:59]json parsed OK: [19:25:59]protocol is kg_v1.0 [19:25:59]action value=close_receipt [19:25:59]process_action close_receipt [19:25:59]cmd_close_receipt [19:25:59]MH_GetDate [19:25:59]Write to MH i2c: F0 00 00 E0 5A 29 [19:25:59]Write i2c OK [19:25:59]MH_I2C_Read... [19:25:59]Read from MH i2c: F0 [19:25:59]MH_I2C_Read... [19:25:59]Read from MH i2c: F0 09 00 [19:25:59]MH_I2C_Read... [19:25:59]Read from MH i2c: F0 09 00 E0 5A 00 CE 18 5E 66 B2 22 B0 64 C4 [19:25:59]GetLastDocTimeStamp 1717442732 [19:25:59]current date 1717442766 [19:25:59]FM_GetShiftState [19:25:59]SAM_PROTO_GetShiftState [19:25:59]wFMCommunicate request_size=4 [19:25:59]MH_SAM_APDU [19:25:59]CAPDU: 80 13 01 00 [19:25:59]Write to MH i2c: E2 08 00 E1 5A 80 13 01 00 00 00 00 00 B8 [19:25:59]Write i2c OK [19:25:59]MH_I2C_Read... [19:25:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:25:59]Read from MH i2c: E2 [19:25:59]MH_I2C_Read... [19:25:59]Read from MH i2c: E2 0E 00 [19:25:59]MH_I2C_Read... [19:25:59]Read from MH i2c: E2 0E 00 E1 5A 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 93 [19:25:59]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [19:25:59]wFMCommunicate OK [19:25:59]SAM_PROTO_GetShiftState done [19:25:59]FM_GetShiftState done [19:25:59]opened in 1717378033 [19:25:59]opened+sec_in_day 1717464433 [19:25:59]quantity*price = 120047 [19:25:59]sum+1 = 120048 [19:25:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1200.47 НСП 1% : 10.62 НДС 12% : 127.48 Наличными: 0.00 Безнал.: 1200.47 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 202 03.06.2024 19:26 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68456 ФПД: 52067230839136 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T192606&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68456&fm=52067230839136&tin=02508201610067®Number=0000000000098096&sum=120047 [19:26:00]StoreToDocumentArchive [19:26:00]shift 324 fd 68456 [19:26:00]save to /storage/0324/doc_00068456 [19:26:00]save last doc name /storage/0324/doc_00068456 to /storage/kkm_last_doc_name [19:26:00]save OK [19:26:00]Clear old archive folders... [19:26:00]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:26:00]tlvbuf is 001CCBD0 [19:26:00]SAM_PROTO_ClearQueue [19:26:00]wFMCommunicate request_size=4 [19:26:00]MH_SAM_APDU [19:26:00]CAPDU: 80 09 00 00 [19:26:00]Write to MH i2c: E2 08 00 EE 5A 80 09 00 00 00 00 00 00 BA [19:26:00]Write i2c OK [19:26:00]MH_I2C_Read... [19:26:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:26:00]Read from MH i2c: E2 [19:26:00]MH_I2C_Read... [19:26:00]Read from MH i2c: E2 03 00 [19:26:00]MH_I2C_Read... [19:26:00]Read from MH i2c: E2 03 00 EE 5A 00 90 00 BC [19:26:00]RAPDU: 90 00 [19:26:00]wFMCommunicate OK [19:26:00]SAM_PROTO_ClearQueue done [19:26:00]KKMCreateOFDPacket [19:26:00]OFDProtocolAddRootSTLVToBuf [19:26:00]FM_MakeSignedData [19:26:00]FM_MakeSignedData [19:26:00]SAM_PROTO_SignData [19:26:00]wFMCommunicate request_size=4 [19:26:00]MH_SAM_APDU [19:26:00]CAPDU: 80 0D 01 02 [19:26:00]Write to MH i2c: E2 08 00 EF 5A 80 0D 01 02 00 00 00 00 C2 [19:26:00]Write i2c OK [19:26:00]MH_I2C_Read... [19:26:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:26:00]Read from MH i2c: E2 [19:26:00]MH_I2C_Read... [19:26:00]Read from MH i2c: E2 03 00 [19:26:00]MH_I2C_Read... [19:26:00]Read from MH i2c: E2 03 00 EF 5A 00 90 00 BD [19:26:00]RAPDU: 90 00 [19:26:00]wFMCommunicate OK [19:26:00]wFMCommunicate request_size=255 [19:26:00]MH_SAM_APDU [19:26: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 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 45 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 EF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EF D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EF D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 CE 18 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 68 0B 01 00 35 04 06 00 [19:26:00]Write to MH i2c: E2 02 01 F0 5A 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 45 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 EF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EF D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EF D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 CE 18 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 68 0B 01 00 35 04 06 00 00 00 8A [19:26:00]Write i2c OK [19:26:00]MH_I2C_Read... [19:26:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:26:00]Read from MH i2c: E2 [19:26:00]MH_I2C_Read... [19:26:00]Read from MH i2c: E2 03 00 [19:26:00]MH_I2C_Read... [19:26:00]Read from MH i2c: E2 03 00 F0 5A 00 90 00 BE [19:26:00]RAPDU: 90 00 [19:26:00]wFMCommunicate OK [19:26:00]wFMCommunicate request_size=11 [19:26:00]MH_SAM_APDU [19:26:00]CAPDU: 80 0D 02 02 06 2F 5A D8 CC 71 60 [19:26:00]Write to MH i2c: E2 0E 00 F1 5A 80 0D 02 02 06 00 2F 5A D8 CC 71 60 00 00 CF [19:26:00]Write i2c OK [19:26:00]MH_I2C_Read... [19:26:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:26:00]Read from MH i2c: E2 [19:26:00]MH_I2C_Read... [19:26:00]Read from MH i2c: E2 03 00 [19:26:00]MH_I2C_Read... [19:26:00]Read from MH i2c: E2 03 00 F1 5A 00 90 00 BF [19:26:00]RAPDU: 90 00 [19:26:00]wFMCommunicate OK [19:26:00]wFMCommunicate request_size=4 [19:26:00]MH_SAM_APDU [19:26:00]CAPDU: 80 0D 03 02 [19:26:00]Write to MH i2c: E2 08 00 F2 5A 80 0D 03 02 00 00 00 00 C7 [19:26:00]Write i2c OK [19:26:00]MH_I2C_Read... [19:26:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:26:01]Read from MH i2c: E2 [19:26:01]MH_I2C_Read... [19:26:01]Read from MH i2c: E2 0B 00 [19:26:01]MH_I2C_Read... [19:26:01]Read from MH i2c: E2 0B 00 F2 5A 00 55 AC FB 5D 19 08 4F 9C 90 00 2D [19:26:01]RAPDU: 55 AC FB 5D 19 08 4F 9C 90 00 [19:26:01]wFMCommunicate OK [19:26:01]SAM_PROTO_SignData done [19:26:01]FM_MakeSignedData done [19:26:01]CreateOFDProtocolMessage [19:26:01]wFMCommunicate request_size=4 [19:26:01]MH_SAM_APDU [19:26:01]CAPDU: 80 11 00 00 [19:26:01]Write to MH i2c: E2 08 00 F3 5A 80 11 00 00 00 00 00 00 C7 [19:26:01]Write i2c OK [19:26:01]MH_I2C_Read... [19:26:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:26:01]Read from MH i2c: E2 [19:26:01]MH_I2C_Read... [19:26:01]Read from MH i2c: E2 17 00 [19:26:01]MH_I2C_Read... [19:26:01]Read from MH i2c: E2 17 00 F3 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 12 [19:26:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [19:26:01]wFMCommunicate OK [19:26:01]CreateOFDProtocolMessage done [19:26:01]OFDSenderStorePacket 68456 [19:26:01]StoreOFDPacket docnum=68456 [19:26:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 D8 12 08 01 86 22 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 45 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 EF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EF D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EF D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 CE 18 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 68 0B 01 00 35 04 06 00 2F 5A D8 CC 71 60 55 AC FB 5D 19 08 4F 9C [19:26:01]CheckFolder [19:26:01]dirname=/storage/ofd_packets [19:26:01]CheckFolder done [19:26:01]ProducePacketName [19:26:01]name=ofd_packets/00068456 [19:26:01]NVStorageSaveData ofd_packets/00068456 [19:26:01]File name is /storage/ofd_packets/00068456 [19:26:01]Write 302 bytes [19:26:01]NVStorageSaveData done [19:26:01]OFDSenderStorePacket done [19:26:01]KKMCreateOFDPacket done [19:26:01]NVStorageSaveData kkm_last_timestamp [19:26:01]File name is /storage/kkm_last_timestamp [19:26:01]Write 4 bytes [19:26:01]NVStorageSaveData done [19:26:01]ExternCall_PrintAddStr [19:26:01]wPrintStart [19:26:01]Write to MH i2c: 01 00 00 F4 5A 4E [19:26:01]Write i2c OK [19:26:01]MH_I2C_Read... [19:26:01]Read from MH i2c: 01 [19:26:01]MH_I2C_Read... [19:26:01]Read from MH i2c: 01 07 00 [19:26:01]MH_I2C_Read... [19:26:01]Read from MH i2c: 01 07 00 F4 5A 00 00 00 00 00 FF 0F 63 [19:26:01]RasterBufferAndPrint [19:26:01]line Счет N : (1)706562 [19:26:01]line ИНН: 02508201610067 [19:26:01]line Контрольно-Кассовый Чек [19:26:01]line ПРОДАЖА [19:26:01]line ТРК (МРК, ГНК) : 62 [19:26:01]line Товар: 2710124130 [19:26:01]line Super-92-К-5 [19:26:01]line 17.680 * 67.90 [19:26:01]line = 1200.47 [19:26:01]line НДС 12% НСП 1% [19:26:01]line > о реализуемом товаре [19:26:01]line ИТОГО: 1200.47 [19:26:01]line НСП 1% : 10.62 [19:26:01]line НДС 12% : 127.48 [19:26:01]line Наличными: 0.00 [19:26:01]line Безнал.: 1200.47 [19:26:01]line Место: АЗС № 62 "Партнер Нефть" [19:26:01]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [19:26:01]line СНО: Общий режим [19:26:01]line Чек 202 03.06.2024 19:26 [19:26:01]line Смена: 324 ФФД: 1.0 [19:26:01]line ЗНМ: 0300000181 [19:26:01]line РНМ: 0000000000098096 [19:26:01]line Версия ККМ: 001 [19:26:01]line Платежная система: АКБ Кыргызстан [19:26:01]line ФМ: 0000000000965400 [19:26:01]line ФД: 68456 [19:26:01]line ФПД: 52067230839136 [19:26:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T192606&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68456&fm=52067230839136&tin=02508201610067®Number=0000000000098096&sum=120047 [19:26:01]OFD Sender: Processing packet 68456 [packets to send 26, broken 25] [19:26:01]ProducePacketName [19:26:01]name=ofd_packets/00068456 [19:26:01]OFD Sender: To server: pG, [19:26:01]CommunicateWithHost lk.salyk.kg:30040 [19:26:01]ConnectInit lk.salyk.kg [19:26:01]written 0, free lines is 4095 [19:26:01]Connected sock=7 [19:26:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 D8 12 08 01 86 22 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 45 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 EF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EF D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EF D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 CE 18 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 68 0B 01 00 35 04 06 00 2F 5A D8 CC 71 60 55 AC FB 5D 19 08 4F 9C [19:26:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 8F 35 47 00 86 B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 68 0B 01 00 F4 03 04 00 C9 BF 5D 66 B6 04 01 00 00 28 3F DC 7D 83 A1 57 C8 [19:26:01]CommunicateWithHost err = 0 [19:26:01]CheckOFDResponse [19:26:01]1017 (14) - 77093643461234 [19:26:01]1041 (16) - 0000000000965400 [19:26:01]1040 (4) - 68456 [19:26:01]1012 (4) - 03.06.2024 13:06 [19:26:01]1206 (1) - 0 [19:26:01]OFD Sender: Remove packet 68456 [19:26:01]ProducePacketName [19:26:01]name=ofd_packets/00068456 [19:26:01]NVStorageDeleteData [19:26:01]Write to MH i2c: 01 00 00 1E 5B 79 [19:26:01]Write i2c OK [19:26:01]MH_I2C_Read... [19:26:01]Read from MH i2c: 01 [19:26:01]MH_I2C_Read... [19:26:01]Read from MH i2c: 01 07 00 [19:26:01]MH_I2C_Read... [19:26:01]Read from MH i2c: 01 07 00 1E 5B 00 00 00 00 00 0B 0D 98 [19:26:01]RasterBufferAndPrint [19:26:01]line [19:26:01]line [19:26:01]line [19:26:01]line [19:26:01]line [19:26:01]written 0, free lines is 3346 [19:26:01]MH_Cut [19:26:01]Write to MH i2c: D1 01 00 25 5B 01 52 [19:26:01]Write i2c OK [19:26:01]MH_I2C_Read... [19:26:01]Read from MH i2c: D1 [19:26:01]MH_I2C_Read... [19:26:01]Read from MH i2c: D1 01 00 [19:26:01]MH_I2C_Read... [19:26:01]Read from MH i2c: D1 01 00 25 5B 00 51 [19:26:01]Write to MH i2c: 01 00 00 26 5B 81 [19:26:01]Write i2c OK [19:26:01]MH_I2C_Read... [19:26:02]OFD Sender: No OFD packet to send [19:26:02]*** Cut start [19:26:02]*** Partial cut [19:26:02]*** CUTSNS_PIN = 1 [19:26:02]*** CUTSNS_PIN = 0 [19:26:02]*** Brake cut motor [19:26:03]Read from MH i2c: 01 [19:26:03]MH_I2C_Read... [19:26:03]*** Stop cut motor [19:26:03]*** Cut end [19:26:03]Read from MH i2c: 01 07 00 [19:26:03]MH_I2C_Read... [19:26:03]Read from MH i2c: 01 07 00 26 5B 00 00 00 00 00 FF 0F 96 [19:26:03]process_action close_receipt done [19:26:03]requested_data is exist [19:26:03]produce_requested_data [19:26:03]requested_item fm.sn is exist - process it [19:26:03]wFMCommunicate request_size=4 [19:26:03]MH_SAM_APDU [19:26:03]CAPDU: 80 11 00 00 [19:26:03]Write to MH i2c: E2 08 00 27 5B 80 11 00 00 00 00 00 00 FC [19:26:03]Write i2c OK [19:26:03]MH_I2C_Read... [19:26:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:26:03]Read from MH i2c: E2 [19:26:03]MH_I2C_Read... [19:26:03]Read from MH i2c: E2 17 00 [19:26:03]MH_I2C_Read... [19:26:03]Read from MH i2c: E2 17 00 27 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 47 [19:26:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [19:26:03]wFMCommunicate OK [19:26:03]requested_item fd.num is exist - process it [19:26:03]SAM_PROTO_GetFieldsCounters [19:26:03]wFMCommunicate request_size=4 [19:26:03]MH_SAM_APDU [19:26:03]CAPDU: 80 13 00 00 [19:26:03]Write to MH i2c: E2 08 00 28 5B 80 13 00 00 00 00 00 00 FF [19:26:03]Write i2c OK [19:26:03]MH_I2C_Read... [19:26:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:26:03]Read from MH i2c: E2 [19:26:03]MH_I2C_Read... [19:26:03]Read from MH i2c: E2 62 00 [19:26:03]MH_I2C_Read... [19:26:03]Read from MH i2c: E2 62 00 28 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 68 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 36 [19:26:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 68 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:26:03]wFMCommunicate OK [19:26:03]SAM_PROTO_GetFieldsCounters done [19:26:03]requested_item shift.num is exist - process it [19:26:03]requested_item shift.opened is exist - process it [19:26:03]req_shift_opened [19:26:03]FM_GetShiftState [19:26:03]SAM_PROTO_GetShiftState [19:26:03]wFMCommunicate request_size=4 [19:26:03]MH_SAM_APDU [19:26:03]CAPDU: 80 13 01 00 [19:26:03]Write to MH i2c: E2 08 00 29 5B 80 13 01 00 00 00 00 00 01 [19:26:03]Write i2c OK [19:26:03]MH_I2C_Read... [19:26:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:03]Read from MH i2c: E2 [19:26:03]MH_I2C_Read... [19:26:03]Read from MH i2c: E2 0E 00 [19:26:03]MH_I2C_Read... [19:26:03]Read from MH i2c: E2 0E 00 29 5B 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 DC [19:26:03]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [19:26:03]wFMCommunicate OK [19:26:03]SAM_PROTO_GetShiftState done [19:26:03]FM_GetShiftState done [19:26:03]req_shift_opened done [19:26:03]requested_item shift.open_date is exist - process it [19:26:03]req_shift_open_date [19:26:03]req_shift_open_date done [19:26:03]produce_requested_data done [19:26:03]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68456,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [19:26:03]process_action_free close_receipt [19:26:03]json_value_free [19:26:03]json_value_free done [19:26:03]process_json_proto returns [19:26:03]Send response to host [19:26:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68456,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [19:26:03]free response buf [19:26:03]execute_script done [19:26:03]execute_script returns [19:26:03]free content buf [19:26:03]Sock 6.Close socket [19:26:03]Sock 6.Thread stoped [19:26:07]OFD Sender: No OFD packet to send [19:26:12]OFD Sender: No OFD packet to send [19:26:17]OFD Sender: No OFD packet to send [19:26:22]OFD Sender: No OFD packet to send [19:26:27]OFD Sender: No OFD packet to send [19:26:32]OFD Sender: No OFD packet to send [19:26:37]OFD Sender: No OFD packet to send [19:26:42]OFD Sender: No OFD packet to send [19:26:47]OFD Sender: No OFD packet to send [19:26:52]OFD Sender: No OFD packet to send [19:26:57]OFD Sender: No OFD packet to send [19:27:02]OFD Sender: No OFD packet to send [19:27:07]OFD Sender: No OFD packet to send [19:27:12]OFD Sender: No OFD packet to send [19:27:17]OFD Sender: No OFD packet to send [19:27:22]OFD Sender: No OFD packet to send [19:27:27]OFD Sender: No OFD packet to send [19:27:32]OFD Sender: No OFD packet to send [19:27:37]OFD Sender: No OFD packet to send [19:27:42]OFD Sender: No OFD packet to send [19:27:47]OFD Sender: No OFD packet to send [19:27:52]OFD Sender: No OFD packet to send [19:27:57]OFD Sender: No OFD packet to send [19:28:02]OFD Sender: No OFD packet to send [19:28:07]OFD Sender: No OFD packet to send [19:28:12]OFD Sender: No OFD packet to send [19:28:17]OFD Sender: No OFD packet to send [19:28:22]OFD Sender: No OFD packet to send [19:28:27]OFD Sender: No OFD packet to send [19:28:32]OFD Sender: No OFD packet to send [19:28:37]OFD Sender: No OFD packet to send [19:28:42]OFD Sender: No OFD packet to send [19:28:47]OFD Sender: No OFD packet to send [19:28:52]OFD Sender: No OFD packet to send [19:28:57]OFD Sender: No OFD packet to send [19:29:02]OFD Sender: No OFD packet to send [19:29:07]OFD Sender: No OFD packet to send [19:29:12]OFD Sender: No OFD packet to send [19:29:17]OFD Sender: No OFD packet to send [19:29:22]OFD Sender: No OFD packet to send [19:29:27]OFD Sender: No OFD packet to send [19:29:32]OFD Sender: No OFD packet to send [19:29:37]OFD Sender: No OFD packet to send [19:29:42]OFD Sender: No OFD packet to send [19:29:47]OFD Sender: No OFD packet to send [19:29:52]OFD Sender: No OFD packet to send [19:29:57]OFD Sender: No OFD packet to send [19:30:02]OFD Sender: No OFD packet to send [19:30:07]OFD Sender: No OFD packet to send [19:30:12]OFD Sender: No OFD packet to send [19:30:17]OFD Sender: No OFD packet to send [19:30:22]OFD Sender: No OFD packet to send [19:30:27]OFD Sender: No OFD packet to send [19:30:32]OFD Sender: No OFD packet to send [19:30:37]OFD Sender: No OFD packet to send [19:30:42]OFD Sender: No OFD packet to send [19:30:47]OFD Sender: No OFD packet to send [19:30:52]OFD Sender: No OFD packet to send [19:30:57]OFD Sender: No OFD packet to send [19:31:02]OFD Sender: No OFD packet to send [19:31:07]OFD Sender: No OFD packet to send [19:31:12]OFD Sender: No OFD packet to send [19:31:17]OFD Sender: No OFD packet to send [19:31:22]OFD Sender: No OFD packet to send [19:31:27]OFD Sender: No OFD packet to send [19:31:32]OFD Sender: No OFD packet to send [19:31:37]OFD Sender: No OFD packet to send [19:31:42]OFD Sender: No OFD packet to send [19:31:47]OFD Sender: No OFD packet to send [19:31:52]OFD Sender: No OFD packet to send [19:31:57]OFD Sender: No OFD packet to send [19:32:02]OFD Sender: No OFD packet to send [19:32:07]OFD Sender: No OFD packet to send [19:32:12]OFD Sender: No OFD packet to send [19:32:17]OFD Sender: No OFD packet to send [19:32:22]OFD Sender: No OFD packet to send [19:32:27]OFD Sender: No OFD packet to send [19:32:32]OFD Sender: No OFD packet to send [19:32:37]OFD Sender: No OFD packet to send [19:32:42]OFD Sender: No OFD packet to send [19:32:47]OFD Sender: No OFD packet to send [19:32:52]OFD Sender: No OFD packet to send [19:32:57]OFD Sender: No OFD packet to send [19:33:02]OFD Sender: No OFD packet to send [19:33:07]OFD Sender: No OFD packet to send [19:33:12]OFD Sender: No OFD packet to send [19:33:17]OFD Sender: No OFD packet to send [19:33:22]OFD Sender: No OFD packet to send [19:33:27]OFD Sender: No OFD packet to send [19:33:32]OFD Sender: No OFD packet to send [19:33:37]OFD Sender: No OFD packet to send [19:33:42]OFD Sender: No OFD packet to send [19:33:47]OFD Sender: No OFD packet to send [19:33:52]OFD Sender: No OFD packet to send [19:33:57]OFD Sender: No OFD packet to send [19:34:02]OFD Sender: No OFD packet to send [19:34:07]OFD Sender: No OFD packet to send [19:34:12]OFD Sender: No OFD packet to send [19:34:17]OFD Sender: No OFD packet to send [19:34:22]OFD Sender: No OFD packet to send [19:34:25]accept exits with 5 [19:34:25]New connection [19:34:25]New thread 3066543460 created [19:34:25]Thread 3066686820 joined [19:34:25]Waiting for new connection... [19:34:25] Sock 5.Parse request [19:34:25]Sock 5.Check first char [19:34:25]Sock 5.First char is OK [19:34:25]request: POST /json_proto HTTP/1.0 [19:34:25]Method: POST [19:34:25]URL: /json_proto [19:34:25]Method is POST - this is cgi request [19:34:25]url: /json_proto [19:34:25]query_string will be loaded in cgi processing [19:34:25]execute_cgi json_proto POST (null) [19:34:25]execute_cgi path=json_proto method=POST [19:34:25]POST find Content-Length [19:34:25]Host: 172.17.36.132:8080 [19:34:25]Content-Length: 675 [19:34:25]Content-Type: application/json [19:34:25] [19:34:25]POST finish read [19:34:25]Found Content-Length = 675 [19:34:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706563", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 14.730, "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" ] } } [19:34:25]execute_script... [19: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)706563", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 14.730, "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" ] } } [19:34:25]POST & json_proto [19:34:25]process_json_proto [19:34:25]json parsed OK: [19:34:25]protocol is kg_v1.0 [19:34:25]action value=close_receipt [19:34:25]process_action close_receipt [19:34:25]cmd_close_receipt [19:34:25]MH_GetDate [19:34:25]Write to MH i2c: F0 00 00 2A 5B 74 [19:34:25]Write i2c OK [19:34:25]MH_I2C_Read... [19:34:25]Read from MH i2c: F0 [19:34:25]MH_I2C_Read... [19:34:25]Read from MH i2c: F0 09 00 [19:34:25]MH_I2C_Read... [19:34:25]Read from MH i2c: F0 09 00 2A 5B 00 C8 1A 5E 66 B2 22 B0 64 0B [19:34:25]GetLastDocTimeStamp 1717442766 [19:34:25]current date 1717443272 [19:34:25]FM_GetShiftState [19:34:25]SAM_PROTO_GetShiftState [19:34:25]wFMCommunicate request_size=4 [19:34:25]MH_SAM_APDU [19:34:25]CAPDU: 80 13 01 00 [19:34:25]Write to MH i2c: E2 08 00 2B 5B 80 13 01 00 00 00 00 00 03 [19:34:25]Write i2c OK [19:34:25]MH_I2C_Read... [19:34:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:34:25]Read from MH i2c: E2 [19:34:25]MH_I2C_Read... [19:34:25]Read from MH i2c: E2 0E 00 [19:34:25]MH_I2C_Read... [19:34:25]Read from MH i2c: E2 0E 00 2B 5B 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 DE [19:34:25]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [19:34:25]wFMCommunicate OK [19:34:25]SAM_PROTO_GetShiftState done [19:34:25]FM_GetShiftState done [19:34:25]opened in 1717378033 [19:34:25]opened+sec_in_day 1717464433 [19:34:25]quantity*price = 100016 [19:34:25]sum+1 = 100018 [19:34: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 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 203 03.06.2024 19:34 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68457 ФПД: 220509422635439 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T193432&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68457&fm=220509422635439&tin=02508201610067®Number=0000000000098096&sum=100000 [19:34:26]StoreToDocumentArchive [19:34:26]shift 324 fd 68457 [19:34:26]save to /storage/0324/doc_00068457 [19:34:26]save last doc name /storage/0324/doc_00068457 to /storage/kkm_last_doc_name [19:34:26]save OK [19:34:26]Clear old archive folders... [19:34:26]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:34:26]tlvbuf is 001CCB90 [19:34:26]SAM_PROTO_ClearQueue [19:34:26]wFMCommunicate request_size=4 [19:34:26]MH_SAM_APDU [19:34:26]CAPDU: 80 09 00 00 [19:34:26]Write to MH i2c: E2 08 00 38 5B 80 09 00 00 00 00 00 00 05 [19:34:26]Write i2c OK [19:34:26]MH_I2C_Read... [19:34:26]Read from MH i2c: E2 [19:34:26]MH_I2C_Read... [19:34:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:34:26]Read from MH i2c: E2 03 00 [19:34:26]MH_I2C_Read... [19:34:26]Read from MH i2c: E2 03 00 38 5B 00 90 00 07 [19:34:26]RAPDU: 90 00 [19:34:26]wFMCommunicate OK [19:34:26]SAM_PROTO_ClearQueue done [19:34:26]KKMCreateOFDPacket [19:34:26]OFDProtocolAddRootSTLVToBuf [19:34:26]FM_MakeSignedData [19:34:26]FM_MakeSignedData [19:34:26]SAM_PROTO_SignData [19:34:26]wFMCommunicate request_size=4 [19:34:26]MH_SAM_APDU [19:34:26]CAPDU: 80 0D 01 02 [19:34:26]Write to MH i2c: E2 08 00 39 5B 80 0D 01 02 00 00 00 00 0D [19:34:26]Write i2c OK [19:34:26]MH_I2C_Read... [19:34:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:34:26]Read from MH i2c: E2 [19:34:26]MH_I2C_Read... [19:34:26]Read from MH i2c: E2 03 00 [19:34:26]MH_I2C_Read... [19:34:26]Read from MH i2c: E2 03 00 39 5B 00 90 00 08 [19:34:26]RAPDU: 90 00 [19:34:26]wFMCommunicate OK [19:34:26]wFMCommunicate request_size=255 [19:34:26]MH_SAM_APDU [19:34: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 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 39 00 00 00 00 00 37 04 06 00 86 1A 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 CB 00 00 00 F4 03 04 00 C8 1A 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 69 0B 01 00 35 04 06 00 [19:34:26]Write to MH i2c: E2 02 01 3A 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 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 39 00 00 00 00 00 37 04 06 00 86 1A 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 CB 00 00 00 F4 03 04 00 C8 1A 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 69 0B 01 00 35 04 06 00 00 00 72 [19:34:26]Write i2c OK [19:34:26]MH_I2C_Read... [19:34:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:34:27]Read from MH i2c: E2 [19:34:27]MH_I2C_Read... [19:34:27]Read from MH i2c: E2 03 00 [19:34:27]MH_I2C_Read... [19:34:27]Read from MH i2c: E2 03 00 3A 5B 00 90 00 09 [19:34:27]RAPDU: 90 00 [19:34:27]wFMCommunicate OK [19:34:27]wFMCommunicate request_size=11 [19:34:27]MH_SAM_APDU [19:34:27]CAPDU: 80 0D 02 02 06 C8 8D 59 CE 49 AF [19:34:27]Write to MH i2c: E2 0E 00 3B 5B 80 0D 02 02 06 00 C8 8D 59 CE 49 AF 00 00 90 [19:34:27]Write i2c OK [19:34:27]MH_I2C_Read... [19:34:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:34:27]Read from MH i2c: E2 [19:34:27]MH_I2C_Read... [19:34:27]Read from MH i2c: E2 03 00 [19:34:27]MH_I2C_Read... [19:34:27]Read from MH i2c: E2 03 00 3B 5B 00 90 00 0A [19:34:27]RAPDU: 90 00 [19:34:27]wFMCommunicate OK [19:34:27]wFMCommunicate request_size=4 [19:34:27]MH_SAM_APDU [19:34:27]CAPDU: 80 0D 03 02 [19:34:27]Write to MH i2c: E2 08 00 3C 5B 80 0D 03 02 00 00 00 00 12 [19:34:27]Write i2c OK [19:34:27]MH_I2C_Read... [19:34:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:34:27]Read from MH i2c: E2 [19:34:27]MH_I2C_Read... [19:34:27]Read from MH i2c: E2 0B 00 [19:34:27]MH_I2C_Read... [19:34:27]Read from MH i2c: E2 0B 00 3C 5B 00 55 C9 D4 C5 12 5E 95 4E 90 00 1D [19:34:27]RAPDU: 55 C9 D4 C5 12 5E 95 4E 90 00 [19:34:27]wFMCommunicate OK [19:34:27]SAM_PROTO_SignData done [19:34:27]FM_MakeSignedData done [19:34:27]CreateOFDProtocolMessage [19:34:27]wFMCommunicate request_size=4 [19:34:27]MH_SAM_APDU [19:34:27]CAPDU: 80 11 00 00 [19:34:27]Write to MH i2c: E2 08 00 3D 5B 80 11 00 00 00 00 00 00 12 [19:34:27]Write i2c OK [19:34:27]MH_I2C_Read... [19:34:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:34:27]Read from MH i2c: E2 [19:34:27]MH_I2C_Read... [19:34:27]Read from MH i2c: E2 17 00 [19:34:27]MH_I2C_Read... [19:34:27]Read from MH i2c: E2 17 00 3D 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 5D [19:34:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [19:34:27]wFMCommunicate OK [19:34:27]CreateOFDProtocolMessage done [19:34:27]OFDSenderStorePacket 68457 [19:34:27]StoreOFDPacket docnum=68457 [19:34:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 67 40 08 01 1C 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 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 39 00 00 00 00 00 37 04 06 00 86 1A 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 CB 00 00 00 F4 03 04 00 C8 1A 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 69 0B 01 00 35 04 06 00 C8 8D 59 CE 49 AF 55 C9 D4 C5 12 5E 95 4E [19:34:27]CheckFolder [19:34:27]dirname=/storage/ofd_packets [19:34:27]CheckFolder done [19:34:27]ProducePacketName [19:34:27]name=ofd_packets/00068457 [19:34:27]NVStorageSaveData ofd_packets/00068457 [19:34:27]File name is /storage/ofd_packets/00068457 [19:34:27]Write 302 bytes [19:34:27]NVStorageSaveData done [19:34:27]OFDSenderStorePacket done [19:34:27]KKMCreateOFDPacket done [19:34:27]NVStorageSaveData kkm_last_timestamp [19:34:27]File name is /storage/kkm_last_timestamp [19:34:27]Write 4 bytes [19:34:27]NVStorageSaveData done [19:34:27]ExternCall_PrintAddStr [19:34:27]wPrintStart [19:34:27]Write to MH i2c: 01 00 00 3E 5B 99 [19:34:27]Write i2c OK [19:34:27]MH_I2C_Read... [19:34:27]Read from MH i2c: 01 [19:34:27]MH_I2C_Read... [19:34:27]Read from MH i2c: 01 07 00 [19:34:27]MH_I2C_Read... [19:34:27]Read from MH i2c: 01 07 00 3E 5B 00 00 00 00 00 FF 0F AE [19:34:27]RasterBufferAndPrint [19:34:27]line Счет N : (1)706563 [19:34:27]line ИНН: 02508201610067 [19:34:27]line Контрольно-Кассовый Чек [19:34:27]line ПРОДАЖА [19:34:27]line ТРК (МРК, ГНК) : 31 [19:34:27]line Товар: 2710124130 [19:34:27]line Super-92-К-5 [19:34:27]line 14.730 * 67.90 [19:34:27]line = 1000.17 [19:34:27]line НДС 12% НСП 1% [19:34:27]line > о реализуемом товаре [19:34:27]line ОКРУГЛЕНИЕ: -0.17 [19:34:27]line ИТОГО: 1000.00 [19:34:27]line Внесено: 1000.00 [19:34:27]line СДАЧА: 0.00 [19:34:27]line НСП 1% : 8.85 [19:34:27]line НДС 12% : 106.21 [19:34:27]line Наличными: 1000.00 [19:34:27]line Безнал.: 0.00 [19:34:27]line Место: АЗС № 62 "Партнер Нефть" [19:34:27]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [19:34:27]line СНО: Общий режим [19:34:27]line Чек 203 03.06.2024 19:34 [19:34:27]line Смена: 324 ФФД: 1.0 [19:34:27]line ЗНМ: 0300000181 [19:34:27]line РНМ: 0000000000098096 [19:34:27]line Версия ККМ: 001 [19:34:27]line ФМ: 0000000000965400 [19:34:27]line ФД: 68457 [19:34:27]line ФПД: 220509422635439 [19:34:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T193432&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68457&fm=220509422635439&tin=02508201610067®Number=0000000000098096&sum=100000 [19:34:27]OFD Sender: Processing packet 68457 [packets to send 26, broken 25] [19:34:27]ProducePacketName [19:34:27]name=ofd_packets/00068457 [19:34:27]OFD Sender: To server: pG, [19:34:27]CommunicateWithHost lk.salyk.kg:30040 [19:34:27]ConnectInit lk.salyk.kg [19:34:27]written 0, free lines is 4095 [19:34:27]Connected sock=7 [19:34:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 67 40 08 01 1C 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 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 39 00 00 00 00 00 37 04 06 00 86 1A 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 CB 00 00 00 F4 03 04 00 C8 1A 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 69 0B 01 00 35 04 06 00 C8 8D 59 CE 49 AF 55 C9 D4 C5 12 5E 95 4E [19:34:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 F8 56 47 00 CB 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 69 0B 01 00 F4 03 04 00 C3 C1 5D 66 B6 04 01 00 00 B3 3A 11 26 E1 AF 7B 9B [19:34:27]CommunicateWithHost err = 0 [19:34:27]CheckOFDResponse [19:34:27]1017 (14) - 77093643461234 [19:34:27]1041 (16) - 0000000000965400 [19:34:27]1040 (4) - 68457 [19:34:27]1012 (4) - 03.06.2024 13:14 [19:34:27]1206 (1) - 0 [19:34:27]OFD Sender: Remove packet 68457 [19:34:27]ProducePacketName [19:34:27]name=ofd_packets/00068457 [19:34:27]NVStorageDeleteData [19:34:27]Write to MH i2c: 01 00 00 69 5B C4 [19:34:27]Write i2c OK [19:34:27]MH_I2C_Read... [19:34:27]Read from MH i2c: 01 [19:34:27]MH_I2C_Read... [19:34:27]Read from MH i2c: 01 07 00 [19:34:27]MH_I2C_Read... [19:34:27]Read from MH i2c: 01 07 00 69 5B 00 00 00 00 00 EE 0C C5 [19:34:27]RasterBufferAndPrint [19:34:27]line [19:34:27]line [19:34:27]line [19:34:27]line [19:34:27]line [19:34:27]written 0, free lines is 3319 [19:34:27]MH_Cut [19:34:27]Write to MH i2c: D1 01 00 70 5B 01 9D [19:34:27]Write i2c OK [19:34:27]MH_I2C_Read... [19:34:27]Read from MH i2c: D1 [19:34:27]MH_I2C_Read... [19:34:27]Read from MH i2c: D1 01 00 [19:34:27]MH_I2C_Read... [19:34:27]Read from MH i2c: D1 01 00 70 5B 00 9C [19:34:27]Write to MH i2c: 01 00 00 71 5B CC [19:34:27]Write i2c OK [19:34:27]MH_I2C_Read... [19:34:28]OFD Sender: No OFD packet to send [19:34:28]*** Cut start [19:34:28]*** Partial cut [19:34:28]*** CUTSNS_PIN = 1 [19:34:28]*** CUTSNS_PIN = 0 [19:34:29]*** Brake cut motor [19:34:29]Read from MH i2c: 01 [19:34:29]MH_I2C_Read... [19:34:29]*** Stop cut motor [19:34:29]*** Cut end [19:34:29]Read from MH i2c: 01 07 00 [19:34:29]MH_I2C_Read... [19:34:29]Read from MH i2c: 01 07 00 71 5B 00 00 00 00 00 FF 0F E1 [19:34:29]process_action close_receipt done [19:34:29]requested_data is exist [19:34:29]produce_requested_data [19:34:29]requested_item fm.sn is exist - process it [19:34:29]wFMCommunicate request_size=4 [19:34:29]MH_SAM_APDU [19:34:29]CAPDU: 80 11 00 00 [19:34:29]Write to MH i2c: E2 08 00 72 5B 80 11 00 00 00 00 00 00 47 [19:34:29]Write i2c OK [19:34:29]MH_I2C_Read... [19:34:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:34:29]Read from MH i2c: E2 [19:34:29]MH_I2C_Read... [19:34:29]Read from MH i2c: E2 17 00 [19:34:29]MH_I2C_Read... [19:34:29]Read from MH i2c: E2 17 00 72 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 92 [19:34:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [19:34:29]wFMCommunicate OK [19:34:29]requested_item fd.num is exist - process it [19:34:29]SAM_PROTO_GetFieldsCounters [19:34:29]wFMCommunicate request_size=4 [19:34:29]MH_SAM_APDU [19:34:29]CAPDU: 80 13 00 00 [19:34:29]Write to MH i2c: E2 08 00 73 5B 80 13 00 00 00 00 00 00 4A [19:34:29]Write i2c OK [19:34:29]MH_I2C_Read... [19:34:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:34:29]Read from MH i2c: E2 [19:34:29]MH_I2C_Read... [19:34:29]Read from MH i2c: E2 62 00 [19:34:29]MH_I2C_Read... [19:34:29]Read from MH i2c: E2 62 00 73 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 69 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [19:34:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 69 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:34:29]wFMCommunicate OK [19:34:29]SAM_PROTO_GetFieldsCounters done [19:34:29]requested_item shift.num is exist - process it [19:34:29]requested_item shift.opened is exist - process it [19:34:29]req_shift_opened [19:34:29]FM_GetShiftState [19:34:29]SAM_PROTO_GetShiftState [19:34:29]wFMCommunicate request_size=4 [19:34:29]MH_SAM_APDU [19:34:29]CAPDU: 80 13 01 00 [19:34:29]Write to MH i2c: E2 08 00 74 5B 80 13 01 00 00 00 00 00 4C [19:34:29]Write i2c OK [19:34:29]MH_I2C_Read... [19:34:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:34:29]Read from MH i2c: E2 [19:34:29]MH_I2C_Read... [19:34:29]Read from MH i2c: E2 0E 00 [19:34:29]MH_I2C_Read... [19:34:29]Read from MH i2c: E2 0E 00 74 5B 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 27 [19:34:29]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [19:34:29]wFMCommunicate OK [19:34:29]SAM_PROTO_GetShiftState done [19:34:29]FM_GetShiftState done [19:34:29]req_shift_opened done [19:34:29]requested_item shift.open_date is exist - process it [19:34:29]req_shift_open_date [19:34:29]req_shift_open_date done [19:34:29]produce_requested_data done [19:34:29]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68457,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [19:34:29]process_action_free close_receipt [19:34:29]json_value_free [19:34:29]json_value_free done [19:34:29]process_json_proto returns [19:34:29]Send response to host [19:34:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68457,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [19:34:29]free response buf [19:34:29]execute_script done [19:34:29]execute_script returns [19:34:29]free content buf [19:34:29]Sock 5.Close socket [19:34:29]Sock 5.Thread stoped [19:34:33]OFD Sender: No OFD packet to send [19:34:37]accept exits with 6 [19:34:37]New connection [19:34:37]New thread 3066686820 created [19:34:37]Thread 3066543460 joined [19:34:37]Waiting for new connection... [19:34:37] Sock 6.Parse request [19:34:37]Sock 6.Check first char [19:34:37]Sock 6.First char is OK [19:34:37]request: POST /json_proto HTTP/1.0 [19:34:37]Method: POST [19:34:37]URL: /json_proto [19:34:37]Method is POST - this is cgi request [19:34:37]url: /json_proto [19:34:37]query_string will be loaded in cgi processing [19:34:37]execute_cgi json_proto POST (null) [19:34:37]execute_cgi path=json_proto method=POST [19:34:37]POST find Content-Length [19:34:37]Host: 172.17.36.132:8080 [19:34:37]Content-Length: 675 [19:34:37]Content-Type: application/json [19:34:37] [19:34:37]POST finish read [19:34:37]Found Content-Length = 675 [19:34:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706564", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 14.730, "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" ] } } [19:34:37]execute_script... [19:34:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706564", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 14.730, "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" ] } } [19:34:37]POST & json_proto [19:34:37]process_json_proto [19:34:37]json parsed OK: [19:34:37]protocol is kg_v1.0 [19:34:37]action value=close_receipt [19:34:37]process_action close_receipt [19:34:37]cmd_close_receipt [19:34:37]MH_GetDate [19:34:37]Write to MH i2c: F0 00 00 75 5B BF [19:34:37]Write i2c OK [19:34:37]MH_I2C_Read... [19:34:37]Read from MH i2c: F0 [19:34:37]MH_I2C_Read... [19:34:37]Read from MH i2c: F0 09 00 [19:34:37]MH_I2C_Read... [19:34:37]Read from MH i2c: F0 09 00 75 5B 00 D4 1A 5E 66 B2 22 B0 64 62 [19:34:37]GetLastDocTimeStamp 1717443272 [19:34:37]current date 1717443284 [19:34:37]FM_GetShiftState [19:34:37]SAM_PROTO_GetShiftState [19:34:37]wFMCommunicate request_size=4 [19:34:37]MH_SAM_APDU [19:34:37]CAPDU: 80 13 01 00 [19:34:37]Write to MH i2c: E2 08 00 76 5B 80 13 01 00 00 00 00 00 4E [19:34:37]Write i2c OK [19:34:37]MH_I2C_Read... [19:34:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:34:37]Read from MH i2c: E2 [19:34:37]MH_I2C_Read... [19:34:37]Read from MH i2c: E2 0E 00 [19:34:37]MH_I2C_Read... [19:34:37]Read from MH i2c: E2 0E 00 76 5B 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 29 [19:34:37]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [19:34:37]wFMCommunicate OK [19:34:37]SAM_PROTO_GetShiftState done [19:34:37]FM_GetShiftState done [19:34:37]opened in 1717378033 [19:34:37]opened+sec_in_day 1717464433 [19:34:37]quantity*price = 100016 [19:34:37]sum+1 = 100018 [19:34:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 204 03.06.2024 19:34 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68458 ФПД: 135625038682151 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T193444&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68458&fm=135625038682151&tin=02508201610067®Number=0000000000098096&sum=100000 [19:34:39]StoreToDocumentArchive [19:34:39]shift 324 fd 68458 [19:34:39]save to /storage/0324/doc_00068458 [19:34:39]save last doc name /storage/0324/doc_00068458 to /storage/kkm_last_doc_name [19:34:39]save OK [19:34:39]Clear old archive folders... [19:34:39]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:34:39]tlvbuf is 005B2AF0 [19:34:39]SAM_PROTO_ClearQueue [19:34:39]wFMCommunicate request_size=4 [19:34:39]MH_SAM_APDU [19:34:39]CAPDU: 80 09 00 00 [19:34:39]Write to MH i2c: E2 08 00 83 5B 80 09 00 00 00 00 00 00 50 [19:34:39]Write i2c OK [19:34:39]MH_I2C_Read... [19:34:39]Read from MH i2c: E2 [19:34:39]MH_I2C_Read... [19:34:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:34:39]Read from MH i2c: E2 03 00 [19:34:39]MH_I2C_Read... [19:34:39]Read from MH i2c: E2 03 00 83 5B 00 90 00 52 [19:34:39]RAPDU: 90 00 [19:34:39]wFMCommunicate OK [19:34:39]SAM_PROTO_ClearQueue done [19:34:39]KKMCreateOFDPacket [19:34:39]OFDProtocolAddRootSTLVToBuf [19:34:39]FM_MakeSignedData [19:34:39]FM_MakeSignedData [19:34:39]SAM_PROTO_SignData [19:34:39]wFMCommunicate request_size=4 [19:34:39]MH_SAM_APDU [19:34:39]CAPDU: 80 0D 01 02 [19:34:39]Write to MH i2c: E2 08 00 84 5B 80 0D 01 02 00 00 00 00 58 [19:34:39]Write i2c OK [19:34:39]MH_I2C_Read... [19:34:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:34:39]Read from MH i2c: E2 [19:34:39]MH_I2C_Read... [19:34:39]Read from MH i2c: E2 03 00 [19:34:39]MH_I2C_Read... [19:34:39]Read from MH i2c: E2 03 00 84 5B 00 90 00 53 [19:34:39]RAPDU: 90 00 [19:34:39]wFMCommunicate OK [19:34:39]wFMCommunicate request_size=255 [19:34:39]MH_SAM_APDU [19:34:39]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 39 00 00 00 00 00 37 04 06 00 86 1A 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 CC 00 00 00 F4 03 04 00 D4 1A 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 6A 0B 01 00 35 04 06 00 [19:34:39]Write to MH i2c: E2 02 01 85 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 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 39 00 00 00 00 00 37 04 06 00 86 1A 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 CC 00 00 00 F4 03 04 00 D4 1A 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 6A 0B 01 00 35 04 06 00 00 00 CB [19:34:39]Write i2c OK [19:34:39]MH_I2C_Read... [19:34:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:34:39]Read from MH i2c: E2 [19:34:39]MH_I2C_Read... [19:34:39]Read from MH i2c: E2 03 00 [19:34:39]MH_I2C_Read... [19:34:39]Read from MH i2c: E2 03 00 85 5B 00 90 00 54 [19:34:39]RAPDU: 90 00 [19:34:39]wFMCommunicate OK [19:34:39]wFMCommunicate request_size=11 [19:34:39]MH_SAM_APDU [19:34:39]CAPDU: 80 0D 02 02 06 7B 59 AA 40 D8 27 [19:34:39]Write to MH i2c: E2 0E 00 86 5B 80 0D 02 02 06 00 7B 59 AA 40 D8 27 00 00 24 [19:34:39]Write i2c OK [19:34:39]MH_I2C_Read... [19:34:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:34:39]Read from MH i2c: E2 [19:34:39]MH_I2C_Read... [19:34:39]Read from MH i2c: E2 03 00 [19:34:39]MH_I2C_Read... [19:34:39]Read from MH i2c: E2 03 00 86 5B 00 90 00 55 [19:34:39]RAPDU: 90 00 [19:34:39]wFMCommunicate OK [19:34:39]wFMCommunicate request_size=4 [19:34:39]MH_SAM_APDU [19:34:39]CAPDU: 80 0D 03 02 [19:34:39]Write to MH i2c: E2 08 00 87 5B 80 0D 03 02 00 00 00 00 5D [19:34:39]Write i2c OK [19:34:39]MH_I2C_Read... [19:34:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:34:39]Read from MH i2c: E2 [19:34:39]MH_I2C_Read... [19:34:39]Read from MH i2c: E2 0B 00 [19:34:39]MH_I2C_Read... [19:34:39]Read from MH i2c: E2 0B 00 87 5B 00 F6 5A 9C BE 82 60 B0 E6 90 00 80 [19:34:39]RAPDU: F6 5A 9C BE 82 60 B0 E6 90 00 [19:34:39]wFMCommunicate OK [19:34:39]SAM_PROTO_SignData done [19:34:39]FM_MakeSignedData done [19:34:39]CreateOFDProtocolMessage [19:34:39]wFMCommunicate request_size=4 [19:34:39]MH_SAM_APDU [19:34:39]CAPDU: 80 11 00 00 [19:34:39]Write to MH i2c: E2 08 00 88 5B 80 11 00 00 00 00 00 00 5D [19:34:39]Write i2c OK [19:34:39]MH_I2C_Read... [19:34:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:34:39]Read from MH i2c: E2 [19:34:39]MH_I2C_Read... [19:34:39]Read from MH i2c: E2 17 00 [19:34:39]MH_I2C_Read... [19:34:39]Read from MH i2c: E2 17 00 88 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 A8 [19:34:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [19:34:39]wFMCommunicate OK [19:34:39]CreateOFDProtocolMessage done [19:34:39]OFDSenderStorePacket 68458 [19:34:39]StoreOFDPacket docnum=68458 [19:34:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 8E B2 08 01 D1 C2 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 39 00 00 00 00 00 37 04 06 00 86 1A 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 CC 00 00 00 F4 03 04 00 D4 1A 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 6A 0B 01 00 35 04 06 00 7B 59 AA 40 D8 27 F6 5A 9C BE 82 60 B0 E6 [19:34:39]CheckFolder [19:34:39]dirname=/storage/ofd_packets [19:34:39]CheckFolder done [19:34:39]ProducePacketName [19:34:39]name=ofd_packets/00068458 [19:34:39]NVStorageSaveData ofd_packets/00068458 [19:34:39]File name is /storage/ofd_packets/00068458 [19:34:39]Write 302 bytes [19:34:39]NVStorageSaveData done [19:34:39]OFDSenderStorePacket done [19:34:39]KKMCreateOFDPacket done [19:34:39]NVStorageSaveData kkm_last_timestamp [19:34:39]File name is /storage/kkm_last_timestamp [19:34:39]OFD Sender: Processing packet 68458 [packets to send 26, broken 25] [19:34:39]ProducePacketName [19:34:39]name=ofd_packets/00068458 [19:34:39]OFD Sender: To server: pG, [19:34:39]CommunicateWithHost lk.salyk.kg:30040 [19:34:39]ConnectInit lk.salyk.kg [19:34:39]Write 4 bytes [19:34:39]NVStorageSaveData done [19:34:39]ExternCall_PrintAddStr [19:34:39]wPrintStart [19:34:39]Write to MH i2c: 01 00 00 89 5B E4 [19:34:39]Write i2c OK [19:34:39]MH_I2C_Read... [19:34:39]Read from MH i2c: 01 [19:34:39]MH_I2C_Read... [19:34:39]Read from MH i2c: 01 07 00 [19:34:39]MH_I2C_Read... [19:34:39]Read from MH i2c: 01 07 00 89 5B 00 00 00 00 00 FF 0F F9 [19:34:39]RasterBufferAndPrint [19:34:39]line Счет N : (1)706564 [19:34:39]line ИНН: 02508201610067 [19:34:39]line Контрольно-Кассовый Чек [19:34:39]line ПРОДАЖА [19:34:39]line ТРК (МРК, ГНК) : 12 [19:34:39]line Товар: 2710124130 [19:34:39]line Super-92-К-5 [19:34:39]line 14.730 * 67.90 [19:34:39]line = 1000.17 [19:34:39]line НДС 12% НСП 1% [19:34:39]line > о реализуемом товаре [19:34:39]line ОКРУГЛЕНИЕ: -0.17 [19:34:39]line ИТОГО: 1000.00 [19:34:39]line Внесено: 1000.00 [19:34:39]line СДАЧА: 0.00 [19:34:39]line НСП 1% : 8.85 [19:34:39]line НДС 12% : 106.21 [19:34:39]line Наличными: 1000.00 [19:34:39]line Безнал.: 0.00 [19:34:39]line Место: АЗС № 62 "Партнер Нефть" [19:34:39]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [19:34:39]line СНО: Общий режим [19:34:39]line Чек 204 03.06.2024 19:34 [19:34:39]line Смена: 324 ФФД: 1.0 [19:34:39]line ЗНМ: 0300000181 [19:34:39]line РНМ: 0000000000098096 [19:34:39]line Версия ККМ: 001 [19:34:39]line ФМ: 0000000000965400 [19:34:39]line ФД: 68458 [19:34:39]line ФПД: 135625038682151 [19:34:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T193444&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68458&fm=135625038682151&tin=02508201610067®Number=0000000000098096&sum=100000 [19:34:39]Connected sock=9 [19:34:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 8E B2 08 01 D1 C2 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 39 00 00 00 00 00 37 04 06 00 86 1A 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 CC 00 00 00 F4 03 04 00 D4 1A 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 6A 0B 01 00 35 04 06 00 7B 59 AA 40 D8 27 F6 5A 9C BE 82 60 B0 E6 [19:34:39]written 0, free lines is 4095 [19:34:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 9D CC 47 00 08 F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 6A 0B 01 00 F4 03 04 00 CF C1 5D 66 B6 04 01 00 00 C0 B0 2B B4 77 7A A1 DF [19:34:40]CommunicateWithHost err = 0 [19:34:40]CheckOFDResponse [19:34:40]1017 (14) - 77093643461234 [19:34:40]1041 (16) - 0000000000965400 [19:34:40]1040 (4) - 68458 [19:34:40]1012 (4) - 03.06.2024 13:14 [19:34:40]1206 (1) - 0 [19:34:40]OFD Sender: Remove packet 68458 [19:34:40]ProducePacketName [19:34:40]name=ofd_packets/00068458 [19:34:40]NVStorageDeleteData [19:34:40]Write to MH i2c: 01 00 00 B4 5B 0F [19:34:40]Write i2c OK [19:34:40]MH_I2C_Read... [19:34:40]Read from MH i2c: 01 [19:34:40]MH_I2C_Read... [19:34:40]Read from MH i2c: 01 07 00 [19:34:40]MH_I2C_Read... [19:34:40]Read from MH i2c: 01 07 00 B4 5B 00 00 00 00 00 DD 0C FF [19:34:40]RasterBufferAndPrint [19:34:40]line [19:34:40]line [19:34:40]line [19:34:40]line [19:34:40]line [19:34:40]written 0, free lines is 3302 [19:34:40]MH_Cut [19:34:40]Write to MH i2c: D1 01 00 BB 5B 01 E8 [19:34:40]Write i2c OK [19:34:40]MH_I2C_Read... [19:34:40]Read from MH i2c: D1 [19:34:40]MH_I2C_Read... [19:34:40]Read from MH i2c: D1 01 00 [19:34:40]MH_I2C_Read... [19:34:40]Read from MH i2c: D1 01 00 BB 5B 00 E7 [19:34:40]Write to MH i2c: 01 00 00 BC 5B 17 [19:34:40]Write i2c OK [19:34:40]MH_I2C_Read... [19:34:40]OFD Sender: No OFD packet to send [19:34:41]*** Cut start [19:34:41]*** Partial cut [19:34:41]*** CUTSNS_PIN = 1 [19:34:41]*** CUTSNS_PIN = 0 [19:34:41]*** Brake cut motor [19:34:41]Read from MH i2c: 01 [19:34:41]MH_I2C_Read... [19:34:41]*** Stop cut motor [19:34:41]*** Cut end [19:34:41]Read from MH i2c: 01 07 00 [19:34:41]MH_I2C_Read... [19:34:41]Read from MH i2c: 01 07 00 BC 5B 00 00 00 00 00 FF 0F 2C [19:34:41]process_action close_receipt done [19:34:41]requested_data is exist [19:34:41]produce_requested_data [19:34:41]requested_item fm.sn is exist - process it [19:34:41]wFMCommunicate request_size=4 [19:34:41]MH_SAM_APDU [19:34:41]CAPDU: 80 11 00 00 [19:34:41]Write to MH i2c: E2 08 00 BD 5B 80 11 00 00 00 00 00 00 92 [19:34:41]Write i2c OK [19:34:41]MH_I2C_Read... [19:34:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:34:41]Read from MH i2c: E2 [19:34:41]MH_I2C_Read... [19:34:41]Read from MH i2c: E2 17 00 [19:34:41]MH_I2C_Read... [19:34:41]Read from MH i2c: E2 17 00 BD 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 DD [19:34:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [19:34:41]wFMCommunicate OK [19:34:41]requested_item fd.num is exist - process it [19:34:41]SAM_PROTO_GetFieldsCounters [19:34:41]wFMCommunicate request_size=4 [19:34:41]MH_SAM_APDU [19:34:41]CAPDU: 80 13 00 00 [19:34:41]Write to MH i2c: E2 08 00 BE 5B 80 13 00 00 00 00 00 00 95 [19:34:41]Write i2c OK [19:34:41]MH_I2C_Read... [19:34:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:34:41]Read from MH i2c: E2 [19:34:41]MH_I2C_Read... [19:34:41]Read from MH i2c: E2 62 00 [19:34:41]MH_I2C_Read... [19:34:41]Read from MH i2c: E2 62 00 BE 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 6A 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 D4 [19:34:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 6A 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:34:41]wFMCommunicate OK [19:34:41]SAM_PROTO_GetFieldsCounters done [19:34:41]requested_item shift.num is exist - process it [19:34:41]requested_item shift.opened is exist - process it [19:34:42]req_shift_opened [19:34:42]FM_GetShiftState [19:34:42]SAM_PROTO_GetShiftState [19:34:42]wFMCommunicate request_size=4 [19:34:42]MH_SAM_APDU [19:34:42]CAPDU: 80 13 01 00 [19:34:42]Write to MH i2c: E2 08 00 BF 5B 80 13 01 00 00 00 00 00 97 [19:34:42]Write i2c OK [19:34:42]MH_I2C_Read... [19:34:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:34:42]Read from MH i2c: E2 [19:34:42]MH_I2C_Read... [19:34:42]Read from MH i2c: E2 0E 00 [19:34:42]MH_I2C_Read... [19:34:42]Read from MH i2c: E2 0E 00 BF 5B 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 72 [19:34:42]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [19:34:42]wFMCommunicate OK [19:34:42]SAM_PROTO_GetShiftState done [19:34:42]FM_GetShiftState done [19:34:42]req_shift_opened done [19:34:42]requested_item shift.open_date is exist - process it [19:34:42]req_shift_open_date [19:34:42]req_shift_open_date done [19:34:42]produce_requested_data done [19:34:42]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68458,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [19:34:42]process_action_free close_receipt [19:34:42]json_value_free [19:34:42]json_value_free done [19:34:42]process_json_proto returns [19:34:42]Send response to host [19:34:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68458,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [19:34:42]free response buf [19:34:42]execute_script done [19:34:42]execute_script returns [19:34:42]free content buf [19:34:42]Sock 6.Close socket [19:34:42]Sock 6.Thread stoped [19:34:45]OFD Sender: No OFD packet to send [19:34:50]OFD Sender: No OFD packet to send [19:34:55]OFD Sender: No OFD packet to send [19:35:00]OFD Sender: No OFD packet to send [19:35:05]OFD Sender: No OFD packet to send [19:35:10]OFD Sender: No OFD packet to send [19:35:15]OFD Sender: No OFD packet to send [19:35:20]OFD Sender: No OFD packet to send [19:35:25]OFD Sender: No OFD packet to send [19:35:30]OFD Sender: No OFD packet to send [19:35:35]OFD Sender: No OFD packet to send [19:35:40]OFD Sender: No OFD packet to send [19:35:45]OFD Sender: No OFD packet to send [19:35:50]OFD Sender: No OFD packet to send [19:35:55]OFD Sender: No OFD packet to send [19:36:00]OFD Sender: No OFD packet to send [19:36:05]OFD Sender: No OFD packet to send [19:36:10]OFD Sender: No OFD packet to send [19:36:15]OFD Sender: No OFD packet to send [19:36:20]OFD Sender: No OFD packet to send [19:36:25]OFD Sender: No OFD packet to send [19:36:30]OFD Sender: No OFD packet to send [19:36:35]OFD Sender: No OFD packet to send [19:36:40]OFD Sender: No OFD packet to send [19:36:45]OFD Sender: No OFD packet to send [19:36:50]OFD Sender: No OFD packet to send [19:36:55]OFD Sender: No OFD packet to send [19:37:00]OFD Sender: No OFD packet to send [19:37:05]OFD Sender: No OFD packet to send [19:37:10]OFD Sender: No OFD packet to send [19:37:15]OFD Sender: No OFD packet to send [19:37:20]OFD Sender: No OFD packet to send [19:37:25]OFD Sender: No OFD packet to send [19:37:30]OFD Sender: No OFD packet to send [19:37:35]OFD Sender: No OFD packet to send [19:37:40]OFD Sender: No OFD packet to send [19:37:45]OFD Sender: No OFD packet to send [19:37:50]OFD Sender: No OFD packet to send [19:37:55]OFD Sender: No OFD packet to send [19:38:00]OFD Sender: No OFD packet to send [19:38:05]OFD Sender: No OFD packet to send [19:38:10]OFD Sender: No OFD packet to send [19:38:15]OFD Sender: No OFD packet to send [19:38:20]OFD Sender: No OFD packet to send [19:38:25]OFD Sender: No OFD packet to send [19:38:30]OFD Sender: No OFD packet to send [19:38:35]OFD Sender: No OFD packet to send [19:38:40]OFD Sender: No OFD packet to send [19:38:45]OFD Sender: No OFD packet to send [19:38:50]OFD Sender: No OFD packet to send [19:38:55]OFD Sender: No OFD packet to send [19:39:00]OFD Sender: No OFD packet to send [19:39:05]OFD Sender: No OFD packet to send [19:39:10]OFD Sender: No OFD packet to send [19:39:15]OFD Sender: No OFD packet to send [19:39:20]OFD Sender: No OFD packet to send [19:39:25]OFD Sender: No OFD packet to send [19:39:30]OFD Sender: No OFD packet to send [19:39:35]OFD Sender: No OFD packet to send [19:39:40]OFD Sender: No OFD packet to send [19:39:42]accept exits with 5 [19:39:42]New connection [19:39:42]New thread 3066543460 created [19:39:42]Thread 3066686820 joined [19:39:42]Waiting for new connection... [19:39:42] Sock 5.Parse request [19:39:42]Sock 5.Check first char [19:39:42]Sock 5.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.36.132:8080 [19:39:42]Content-Length: 1148 [19:39:42]Content-Type: application/json [19:39:42] [19:39:42]POST finish read [19:39:42]Found Content-Length = 1148 [19:39:42]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706565\u000A03.06.2024 19:16\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-4\u000A 8.890 x 72.90\u000A\u0418\u0422\u041E\u0413: 648.08\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30111803\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "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" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706565\u000A03.06.2024 19:16\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-4\u000A 8.890 x 72.90\u000A\u0418\u0422\u041E\u0413: 648.08\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30111803\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "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=print_text [19:39:42]process_action print_text [19:39:42]cmd_print_text [19:39:42]ExternCall_PrintAddStr [19:39:42]wPrintStart [19:39:42]Write to MH i2c: 01 00 00 C0 5B 1B [19:39:42]Write i2c OK [19:39:42]MH_I2C_Read... [19:39:42]Read from MH i2c: 01 [19:39:42]MH_I2C_Read... [19:39:42]Read from MH i2c: 01 07 00 [19:39:42]MH_I2C_Read... [19:39:42]Read from MH i2c: 01 07 00 C0 5B 00 00 00 00 00 FF 0F 30 [19:39:42]RasterBufferAndPrint [19:39:42]line *****ТОВАРНЫЙ ЧЕК***** [19:39:42]line АЗС 62 [19:39:42]line Партнер нефть [19:39:42]line 02508201610067 [19:39:42]line Кассир : Балаев А. [19:39:42]line Счет N : (1)706565 [19:39:42]line 03.06.2024 19:16 [19:39:42]line ПРОДАЖА [19:39:42]line ТРК (МРК, ГНК): 21 [19:39:42]line Вид ГСМ : 2710194210 [19:39:42]line ДТ(л)-К-4 [19:39:42]line 8.890 x 72.90 [19:39:42]line ИТОГ: 648.08 [19:39:42]line Тип оплаты: Талоны: ТК ГПНА Online [19:39:42]line 30111803 [19:39:42]line ______________________ [19:39:42]line (подпись) [19:39:42]written 0, free lines is 4095 [19:39:42]Write to MH i2c: 01 00 00 D4 5B 2F [19:39:42]Write i2c OK [19:39:42]MH_I2C_Read... [19:39:42]Read from MH i2c: 01 [19:39:42]MH_I2C_Read... [19:39:42]Read from MH i2c: 01 07 00 [19:39:42]MH_I2C_Read... [19:39:42]Read from MH i2c: 01 07 00 D4 5B 00 00 00 00 00 0F 0E 53 [19:39:42]RasterBufferAndPrint [19:39:42]line [19:39:42]line [19:39:42]line [19:39:42]line [19:39:42]line [19:39:42]written 0, free lines is 3601 [19:39:42]MH_Cut [19:39:42]Write to MH i2c: D1 01 00 DB 5B 01 08 [19:39:42]Write i2c OK [19:39:42]MH_I2C_Read... [19:39:42]Read from MH i2c: D1 [19:39:42]MH_I2C_Read... [19:39:42]Read from MH i2c: D1 01 00 [19:39:42]MH_I2C_Read... [19:39:42]Read from MH i2c: D1 01 00 DB 5B 00 07 [19:39:42]Write to MH i2c: 01 00 00 DC 5B 37 [19:39:42]Write i2c OK [19:39:42]MH_I2C_Read... [19:39:43]*** Cut start [19:39:43]*** Partial cut [19:39:43]*** CUTSNS_PIN = 1 [19:39:43]*** CUTSNS_PIN = 0 [19:39:43]*** Brake cut motor [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]*** Stop cut motor [19:39:44]*** Cut end [19:39:44]Read from MH i2c: 01 07 00 DC 5B 00 00 00 00 00 FF 0F 4C [19:39:44]process_action print_text done [19:39:44]requested_data is exist [19:39:44]produce_requested_data [19:39:44]requested_item fm.sn is exist - process it [19:39:44]wFMCommunicate request_size=4 [19:39:44]MH_SAM_APDU [19:39:44]CAPDU: 80 11 00 00 [19:39:44]Write to MH i2c: E2 08 00 DD 5B 80 11 00 00 00 00 00 00 B2 [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 DD 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 FD [19:39:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [19:39:44]wFMCommunicate OK [19:39:44]requested_item fd.num is exist - process it [19:39:44]SAM_PROTO_GetFieldsCounters [19:39:44]wFMCommunicate request_size=4 [19:39:44]MH_SAM_APDU [19:39:44]CAPDU: 80 13 00 00 [19:39:44]Write to MH i2c: E2 08 00 DE 5B 80 13 00 00 00 00 00 00 B5 [19:39:44]Write i2c OK [19:39:44]MH_I2C_Read... [19:39:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:39:44]Read from MH i2c: E2 [19:39:44]MH_I2C_Read... [19:39:44]Read from MH i2c: E2 62 00 [19:39:44]MH_I2C_Read... [19:39:44]Read from MH i2c: E2 62 00 DE 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 6A 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [19:39:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 6A 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:39:44]wFMCommunicate OK [19:39:44]SAM_PROTO_GetFieldsCounters done [19:39:44]requested_item shift.num is exist - process it [19:39:44]requested_item shift.opened is exist - process it [19:39:44]req_shift_opened [19:39:44]FM_GetShiftState [19:39:44]SAM_PROTO_GetShiftState [19:39:44]wFMCommunicate request_size=4 [19:39:44]MH_SAM_APDU [19:39:44]CAPDU: 80 13 01 00 [19:39:44]Write to MH i2c: E2 08 00 DF 5B 80 13 01 00 00 00 00 00 B7 [19:39:44]Write i2c OK [19:39:44]MH_I2C_Read... [19:39:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:39:44]Read from MH i2c: E2 [19:39:44]MH_I2C_Read... [19:39:44]Read from MH i2c: E2 0E 00 [19:39:44]MH_I2C_Read... [19:39:44]Read from MH i2c: E2 0E 00 DF 5B 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 92 [19:39:44]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [19:39:44]wFMCommunicate OK [19:39:44]SAM_PROTO_GetShiftState done [19:39:44]FM_GetShiftState done [19:39:44]req_shift_opened done [19:39:44]requested_item shift.open_date is exist - process it [19:39:44]req_shift_open_date [19:39:44]req_shift_open_date done [19:39:44]produce_requested_data done [19:39:44]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68458,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [19:39:44]process_action_free print_text [19:39:44]json_value_free [19:39:44]json_value_free done [19:39:44]process_json_proto returns [19:39:44]Send response to host [19:39:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68458,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [19:39:44]free response buf [19:39:44]execute_script done [19:39:44]execute_script returns [19:39:44]free content buf [19:39:44]Sock 5.Close socket [19:39:44]Sock 5.Thread stoped [19:39:45]OFD Sender: No OFD packet to send [19:39:50]OFD Sender: No OFD packet to send [19:39:55]OFD Sender: No OFD packet to send [19:40:00]OFD Sender: No OFD packet to send [19:40:05]OFD Sender: No OFD packet to send [19:40:10]OFD Sender: No OFD packet to send [19:40:15]OFD Sender: No OFD packet to send [19:40:19]accept exits with 6 [19:40:19]New connection [19:40:19]New thread 3066686820 created [19:40:19]Thread 3066543460 joined [19:40:19]Waiting for new connection... [19:40:19] Sock 6.Parse request [19:40:19]Sock 6.Check first char [19:40:19]Sock 6.First char is OK [19:40:19]request: POST /json_proto HTTP/1.0 [19:40:19]Method: POST [19:40:19]URL: /json_proto [19:40:19]Method is POST - this is cgi request [19:40:19]url: /json_proto [19:40:19]query_string will be loaded in cgi processing [19:40:19]execute_cgi json_proto POST (null) [19:40:19]execute_cgi path=json_proto method=POST [19:40:19]POST find Content-Length [19:40:19]Host: 172.17.36.132:8080 [19:40:19]Content-Length: 661 [19:40:19]Content-Type: application/json [19:40:19] [19:40:19]POST finish read [19:40:19]Found Content-Length = 661 [19:40:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706566", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.000, "sum" : 669.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "payments": [ { "type": 0, "sum" : 669.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:40:19]execute_script... [19:40: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)706566", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.000, "sum" : 669.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "payments": [ { "type": 0, "sum" : 669.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:40:19]POST & json_proto [19:40:19]process_json_proto [19:40:19]json parsed OK: [19:40:19]protocol is kg_v1.0 [19:40:19]action value=close_receipt [19:40:19]process_action close_receipt [19:40:19]cmd_close_receipt [19:40:19]MH_GetDate [19:40:19]Write to MH i2c: F0 00 00 E0 5B 2A [19:40:19]Write i2c OK [19:40:19]MH_I2C_Read... [19:40:19]Read from MH i2c: F0 [19:40:19]MH_I2C_Read... [19:40:19]Read from MH i2c: F0 09 00 [19:40:19]MH_I2C_Read... [19:40:19]Read from MH i2c: F0 09 00 E0 5B 00 2A 1C 5E 66 B2 22 B0 64 25 [19:40:19]GetLastDocTimeStamp 1717443284 [19:40:19]current date 1717443626 [19:40:19]FM_GetShiftState [19:40:19]SAM_PROTO_GetShiftState [19:40:19]wFMCommunicate request_size=4 [19:40:19]MH_SAM_APDU [19:40:19]CAPDU: 80 13 01 00 [19:40:19]Write to MH i2c: E2 08 00 E1 5B 80 13 01 00 00 00 00 00 B9 [19:40:19]Write i2c OK [19:40:19]MH_I2C_Read... [19:40:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:40:19]Read from MH i2c: E2 [19:40:19]MH_I2C_Read... [19:40:19]Read from MH i2c: E2 0E 00 [19:40:19]MH_I2C_Read... [19:40:19]Read from MH i2c: E2 0E 00 E1 5B 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 94 [19:40:19]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [19:40:19]wFMCommunicate OK [19:40:19]SAM_PROTO_GetShiftState done [19:40:19]FM_GetShiftState done [19:40:19]opened in 1717378033 [19:40:19]opened+sec_in_day 1717464433 [19:40:19]quantity*price = 66900 [19:40:19]sum+1 = 66901 [19:40:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 669.00 Внесено: 1000.00 СДАЧА: 331.00 НСП 1% : 5.92 НДС 12% : 71.04 Наличными: 669.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 205 03.06.2024 19:40 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68459 ФПД: 211580666731013 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T194026&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68459&fm=211580666731013&tin=02508201610067®Number=0000000000098096&sum=66900 [19:40:20]StoreToDocumentArchive [19:40:20]shift 324 fd 68459 [19:40:20]save to /storage/0324/doc_00068459 [19:40:20]save last doc name /storage/0324/doc_00068459 to /storage/kkm_last_doc_name [19:40:20]save OK [19:40:20]Clear old archive folders... [19:40:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:40:20]tlvbuf is B6E99880 [19:40:20]SAM_PROTO_ClearQueue [19:40:20]wFMCommunicate request_size=4 [19:40:20]MH_SAM_APDU [19:40:20]CAPDU: 80 09 00 00 [19:40:20]Write to MH i2c: E2 08 00 EE 5B 80 09 00 00 00 00 00 00 BB [19:40:20]Write i2c OK [19:40:20]MH_I2C_Read... [19:40:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:40:20]Read from MH i2c: E2 [19:40:20]MH_I2C_Read... [19:40:20]Read from MH i2c: E2 03 00 [19:40:20]MH_I2C_Read... [19:40:20]Read from MH i2c: E2 03 00 EE 5B 00 90 00 BD [19:40:20]RAPDU: 90 00 [19:40:20]wFMCommunicate OK [19:40:20]SAM_PROTO_ClearQueue done [19:40:20]KKMCreateOFDPacket [19:40:20]OFDProtocolAddRootSTLVToBuf [19:40:20]FM_MakeSignedData [19:40:20]FM_MakeSignedData [19:40:20]SAM_PROTO_SignData [19:40:20]wFMCommunicate request_size=4 [19:40:20]MH_SAM_APDU [19:40:20]CAPDU: 80 0D 01 02 [19:40:20]Write to MH i2c: E2 08 00 EF 5B 80 0D 01 02 00 00 00 00 C3 [19:40:20]Write i2c OK [19:40:20]MH_I2C_Read... [19:40:20]OFD Sender: No OFD packet to send [19:40:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:40:20]Read from MH i2c: E2 [19:40:20]MH_I2C_Read... [19:40:20]Read from MH i2c: E2 03 00 [19:40:20]MH_I2C_Read... [19:40:20]Read from MH i2c: E2 03 00 EF 5B 00 90 00 BE [19:40:20]RAPDU: 90 00 [19:40:20]wFMCommunicate OK [19:40:20]wFMCommunicate request_size=255 [19:40:20]MH_SAM_APDU [19:40: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 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 54 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 2A 1C 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 6B 0B 01 00 35 04 06 00 C0 [19:40:20]Write to MH i2c: E2 02 01 F0 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 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 54 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 2A 1C 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 6B 0B 01 00 35 04 06 00 C0 00 00 CC [19:40:20]Write i2c OK [19:40:20]MH_I2C_Read... [19:40:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:40:21]Read from MH i2c: E2 [19:40:21]MH_I2C_Read... [19:40:21]Read from MH i2c: E2 03 00 [19:40:21]MH_I2C_Read... [19:40:21]Read from MH i2c: E2 03 00 F0 5B 00 90 00 BF [19:40:21]RAPDU: 90 00 [19:40:21]wFMCommunicate OK [19:40:21]wFMCommunicate request_size=10 [19:40:21]MH_SAM_APDU [19:40:21]CAPDU: 80 0D 02 02 05 6E 76 7B 5A 05 [19:40:21]Write to MH i2c: E2 0D 00 F1 5B 80 0D 02 02 05 00 6E 76 7B 5A 05 00 00 8E [19:40:21]Write i2c OK [19:40:21]MH_I2C_Read... [19:40:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:40:21]Read from MH i2c: E2 [19:40:21]MH_I2C_Read... [19:40:21]Read from MH i2c: E2 03 00 [19:40:21]MH_I2C_Read... [19:40:21]Read from MH i2c: E2 03 00 F1 5B 00 90 00 C0 [19:40:21]RAPDU: 90 00 [19:40:21]wFMCommunicate OK [19:40:21]wFMCommunicate request_size=4 [19:40:21]MH_SAM_APDU [19:40:21]CAPDU: 80 0D 03 02 [19:40:21]Write to MH i2c: E2 08 00 F2 5B 80 0D 03 02 00 00 00 00 C8 [19:40:21]Write i2c OK [19:40:21]MH_I2C_Read... [19:40:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:40:21]Read from MH i2c: E2 [19:40:21]MH_I2C_Read... [19:40:21]Read from MH i2c: E2 0B 00 [19:40:21]MH_I2C_Read... [19:40:21]Read from MH i2c: E2 0B 00 F2 5B 00 71 11 BD 05 88 CB 1F 11 90 00 90 [19:40:21]RAPDU: 71 11 BD 05 88 CB 1F 11 90 00 [19:40:21]wFMCommunicate OK [19:40:21]SAM_PROTO_SignData done [19:40:21]FM_MakeSignedData done [19:40:21]CreateOFDProtocolMessage [19:40:21]wFMCommunicate request_size=4 [19:40:21]MH_SAM_APDU [19:40:21]CAPDU: 80 11 00 00 [19:40:21]Write to MH i2c: E2 08 00 F3 5B 80 11 00 00 00 00 00 00 C8 [19:40:21]Write i2c OK [19:40:21]MH_I2C_Read... [19:40:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:40:21]Read from MH i2c: E2 [19:40:21]MH_I2C_Read... [19:40:21]Read from MH i2c: E2 17 00 [19:40:21]MH_I2C_Read... [19:40:21]Read from MH i2c: E2 17 00 F3 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 13 [19:40:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [19:40:21]wFMCommunicate OK [19:40:21]CreateOFDProtocolMessage done [19:40:21]OFDSenderStorePacket 68459 [19:40:21]StoreOFDPacket docnum=68459 [19:40:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 43 1D 07 01 B5 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 54 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 2A 1C 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 6B 0B 01 00 35 04 06 00 C0 6E 76 7B 5A 05 71 11 BD 05 88 CB 1F 11 [19:40:21]CheckFolder [19:40:21]dirname=/storage/ofd_packets [19:40:21]CheckFolder done [19:40:21]ProducePacketName [19:40:21]name=ofd_packets/00068459 [19:40:21]NVStorageSaveData ofd_packets/00068459 [19:40:21]File name is /storage/ofd_packets/00068459 [19:40:21]Write 301 bytes [19:40:21]NVStorageSaveData done [19:40:21]OFDSenderStorePacket done [19:40:21]KKMCreateOFDPacket done [19:40:21]NVStorageSaveData kkm_last_timestamp [19:40:21]File name is /storage/kkm_last_timestamp [19:40:21]Write 4 bytes [19:40:21]NVStorageSaveData done [19:40:21]ExternCall_PrintAddStr [19:40:21]wPrintStart [19:40:21]Write to MH i2c: 01 00 00 F4 5B 4F [19:40:21]Write i2c OK [19:40:21]MH_I2C_Read... [19:40:21]Read from MH i2c: 01 [19:40:21]MH_I2C_Read... [19:40:21]Read from MH i2c: 01 07 00 [19:40:21]MH_I2C_Read... [19:40:21]Read from MH i2c: 01 07 00 F4 5B 00 00 00 00 00 FF 0F 64 [19:40:21]RasterBufferAndPrint [19:40:21]line Счет N : (1)706566 [19:40:21]line ИНН: 02508201610067 [19:40:21]line Контрольно-Кассовый Чек [19:40:21]line ПРОДАЖА [19:40:21]line ТРК (МРК, ГНК) : 32 [19:40:21]line Товар: 2710124130 [19:40:21]line Аи-92-К-4 [19:40:21]line 10.000 * 66.90 [19:40:21]line = 669.00 [19:40:21]line НДС 12% НСП 1% [19:40:21]line > о реализуемом товаре [19:40:21]line ИТОГО: 669.00 [19:40:21]line Внесено: 1000.00 [19:40:21]line СДАЧА: 331.00 [19:40:21]line НСП 1% : 5.92 [19:40:21]line НДС 12% : 71.04 [19:40:21]line Наличными: 669.00 [19:40:21]line Безнал.: 0.00 [19:40:21]line Место: АЗС № 62 "Партнер Нефть" [19:40:21]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [19:40:21]line СНО: Общий режим [19:40:21]line Чек 205 03.06.2024 19:40 [19:40:21]line Смена: 324 ФФД: 1.0 [19:40:21]line ЗНМ: 0300000181 [19:40:21]line РНМ: 0000000000098096 [19:40:21]line Версия ККМ: 001 [19:40:21]line ФМ: 0000000000965400 [19:40:21]line ФД: 68459 [19:40:21]line ФПД: 211580666731013 [19:40:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T194026&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68459&fm=211580666731013&tin=02508201610067®Number=0000000000098096&sum=66900 [19:40:21]OFD Sender: Processing packet 68459 [packets to send 26, broken 25] [19:40:21]ProducePacketName [19:40:21]name=ofd_packets/00068459 [19:40:21]OFD Sender: To server: pG, [19:40:21]CommunicateWithHost lk.salyk.kg:30040 [19:40:21]ConnectInit lk.salyk.kg [19:40:21]written 0, free lines is 4095 [19:40:21]Connected sock=5 [19:40:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 43 1D 07 01 B5 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 54 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 2A 1C 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 6B 0B 01 00 35 04 06 00 C0 6E 76 7B 5A 05 71 11 BD 05 88 CB 1F 11 [19:40:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 73 EB 47 00 7F 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 6B 0B 01 00 F4 03 04 00 25 C3 5D 66 B6 04 01 00 00 D4 53 24 7A D2 EF AE 2F [19:40:22]CommunicateWithHost err = 0 [19:40:22]CheckOFDResponse [19:40:22]1017 (14) - 77093643461234 [19:40:22]1041 (16) - 0000000000965400 [19:40:22]1040 (4) - 68459 [19:40:22]1012 (4) - 03.06.2024 13:20 [19:40:22]1206 (1) - 0 [19:40:22]OFD Sender: Remove packet 68459 [19:40:22]ProducePacketName [19:40:22]name=ofd_packets/00068459 [19:40:22]NVStorageDeleteData [19:40:22]Write to MH i2c: 01 00 00 1E 5C 7A [19:40:22]Write i2c OK [19:40:22]MH_I2C_Read... [19:40:22]Read from MH i2c: 01 [19:40:22]MH_I2C_Read... [19:40:22]Read from MH i2c: 01 07 00 [19:40:22]MH_I2C_Read... [19:40:22]Read from MH i2c: 01 07 00 1E 5C 00 00 00 00 00 FD 0C 8A [19:40:22]RasterBufferAndPrint [19:40:22]line [19:40:22]line [19:40:22]line [19:40:22]line [19:40:22]line [19:40:22]written 0, free lines is 3334 [19:40:22]MH_Cut [19:40:22]Write to MH i2c: D1 01 00 25 5C 01 53 [19:40:22]Write i2c OK [19:40:22]MH_I2C_Read... [19:40:22]Read from MH i2c: D1 [19:40:22]MH_I2C_Read... [19:40:22]Read from MH i2c: D1 01 00 [19:40:22]MH_I2C_Read... [19:40:22]Read from MH i2c: D1 01 00 25 5C 00 52 [19:40:22]Write to MH i2c: 01 00 00 26 5C 82 [19:40:22]Write i2c OK [19:40:22]MH_I2C_Read... [19:40:22]OFD Sender: No OFD packet to send [19:40:22]*** Cut start [19:40:22]*** Partial cut [19:40:22]*** CUTSNS_PIN = 1 [19:40:23]*** CUTSNS_PIN = 0 [19:40:23]*** Brake cut motor [19:40:23]Read from MH i2c: 01 [19:40:23]MH_I2C_Read... [19:40:23]*** Stop cut motor [19:40:23]*** Cut end [19:40:23]Read from MH i2c: 01 07 00 [19:40:23]MH_I2C_Read... [19:40:23]Read from MH i2c: 01 07 00 26 5C 00 00 00 00 00 FF 0F 97 [19:40:23]process_action close_receipt done [19:40:23]requested_data is exist [19:40:23]produce_requested_data [19:40:23]requested_item fm.sn is exist - process it [19:40:23]wFMCommunicate request_size=4 [19:40:23]MH_SAM_APDU [19:40:23]CAPDU: 80 11 00 00 [19:40:23]Write to MH i2c: E2 08 00 27 5C 80 11 00 00 00 00 00 00 FD [19:40:23]Write i2c OK [19:40:23]MH_I2C_Read... [19:40:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:40:23]Read from MH i2c: E2 [19:40:23]MH_I2C_Read... [19:40:23]Read from MH i2c: E2 17 00 [19:40:23]MH_I2C_Read... [19:40:23]Read from MH i2c: E2 17 00 27 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 48 [19:40:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [19:40:23]wFMCommunicate OK [19:40:23]requested_item fd.num is exist - process it [19:40:23]SAM_PROTO_GetFieldsCounters [19:40:23]wFMCommunicate request_size=4 [19:40:23]MH_SAM_APDU [19:40:23]CAPDU: 80 13 00 00 [19:40:23]Write to MH i2c: E2 08 00 28 5C 80 13 00 00 00 00 00 00 00 [19:40:23]Write i2c OK [19:40:23]MH_I2C_Read... [19:40:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:40:23]Read from MH i2c: E2 [19:40:23]MH_I2C_Read... [19:40:23]Read from MH i2c: E2 62 00 [19:40:23]MH_I2C_Read... [19:40:23]Read from MH i2c: E2 62 00 28 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 6B 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 43 [19:40:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 6B 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:40:23]wFMCommunicate OK [19:40:23]SAM_PROTO_GetFieldsCounters done [19:40:23]requested_item shift.num is exist - process it [19:40:23]requested_item shift.opened is exist - process it [19:40:23]req_shift_opened [19:40:23]FM_GetShiftState [19:40:23]SAM_PROTO_GetShiftState [19:40:23]wFMCommunicate request_size=4 [19:40:23]MH_SAM_APDU [19:40:23]CAPDU: 80 13 01 00 [19:40:23]Write to MH i2c: E2 08 00 29 5C 80 13 01 00 00 00 00 00 02 [19:40:23]Write i2c OK [19:40:23]MH_I2C_Read... [19:40:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:40:23]Read from MH i2c: E2 [19:40:23]MH_I2C_Read... [19:40:23]Read from MH i2c: E2 0E 00 [19:40:23]MH_I2C_Read... [19:40:23]Read from MH i2c: E2 0E 00 29 5C 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 DD [19:40:23]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [19:40:23]wFMCommunicate OK [19:40:23]SAM_PROTO_GetShiftState done [19:40:23]FM_GetShiftState done [19:40:23]req_shift_opened done [19:40:23]requested_item shift.open_date is exist - process it [19:40:23]req_shift_open_date [19:40:23]req_shift_open_date done [19:40:23]produce_requested_data done [19:40:23]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68459,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [19:40:23]process_action_free close_receipt [19:40:23]json_value_free [19:40:23]json_value_free done [19:40:23]process_json_proto returns [19:40:23]Send response to host [19:40:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68459,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [19:40:23]free response buf [19:40:23]execute_script done [19:40:23]execute_script returns [19:40:23]free content buf [19:40:23]Sock 6.Close socket [19:40:23]Sock 6.Thread stoped [19:40:27]OFD Sender: No OFD packet to send [19:40:32]OFD Sender: No OFD packet to send [19:40:37]OFD Sender: No OFD packet to send [19:40:42]OFD Sender: No OFD packet to send [19:40:47]OFD Sender: No OFD packet to send [19:40:52]OFD Sender: No OFD packet to send [19:40:57]OFD Sender: No OFD packet to send [19:41:02]OFD Sender: No OFD packet to send [19:41:07]OFD Sender: No OFD packet to send [19:41:12]OFD Sender: No OFD packet to send [19:41:17]OFD Sender: No OFD packet to send [19:41:22]OFD Sender: No OFD packet to send [19:41:27]OFD Sender: No OFD packet to send [19:41:32]OFD Sender: No OFD packet to send [19:41:37]OFD Sender: No OFD packet to send [19:41:42]OFD Sender: No OFD packet to send [19:41:47]OFD Sender: No OFD packet to send [19:41:52]OFD Sender: No OFD packet to send [19:41:57]OFD Sender: No OFD packet to send [19:42:02]OFD Sender: No OFD packet to send [19:42:07]OFD Sender: No OFD packet to send [19:42:12]OFD Sender: No OFD packet to send [19:42:17]OFD Sender: No OFD packet to send [19:42:22]OFD Sender: No OFD packet to send [19:42:27]OFD Sender: No OFD packet to send [19:42:32]OFD Sender: No OFD packet to send [19:42:37]OFD Sender: No OFD packet to send [19:42:42]OFD Sender: No OFD packet to send [19:42:47]OFD Sender: No OFD packet to send [19:42:52]OFD Sender: No OFD packet to send [19:42:57]OFD Sender: No OFD packet to send [19:43:02]OFD Sender: No OFD packet to send [19:43:07]OFD Sender: No OFD packet to send [19:43:12]OFD Sender: No OFD packet to send [19:43:17]OFD Sender: No OFD packet to send [19:43:22]OFD Sender: No OFD packet to send [19:43:27]OFD Sender: No OFD packet to send [19:43:32]OFD Sender: No OFD packet to send [19:43:37]OFD Sender: No OFD packet to send [19:43:42]OFD Sender: No OFD packet to send [19:43:47]OFD Sender: No OFD packet to send [19:43:52]OFD Sender: No OFD packet to send [19:43:57]OFD Sender: No OFD packet to send [19:44:02]OFD Sender: No OFD packet to send [19:44:07]OFD Sender: No OFD packet to send [19:44:12]OFD Sender: No OFD packet to send [19:44:17]OFD Sender: No OFD packet to send [19:44:22]OFD Sender: No OFD packet to send [19:44:27]OFD Sender: No OFD packet to send [19:44:32]OFD Sender: No OFD packet to send [19:44:37]OFD Sender: No OFD packet to send [19:44:42]OFD Sender: No OFD packet to send [19:44:47]OFD Sender: No OFD packet to send [19:44:52]OFD Sender: No OFD packet to send [19:44:57]OFD Sender: No OFD packet to send [19:45:02]OFD Sender: No OFD packet to send [19:45:06]accept exits with 7 [19:45:06]New connection [19:45:06]New thread 3066543460 created [19:45:06]Thread 3066686820 joined [19:45:06]Waiting for new connection... [19:45:06] Sock 7.Parse request [19:45:06]Sock 7.Check first char [19:45:06]Sock 7.First char is OK [19:45:06]request: POST /json_proto HTTP/1.0 [19:45:06]Method: POST [19:45:06]URL: /json_proto [19:45:06]Method is POST - this is cgi request [19:45:06]url: /json_proto [19:45:06]query_string will be loaded in cgi processing [19:45:06]execute_cgi json_proto POST (null) [19:45:06]execute_cgi path=json_proto method=POST [19:45:06]POST find Content-Length [19:45:06]Host: 172.17.36.132:8080 [19:45:06]Content-Length: 843 [19:45:06]Content-Type: application/json [19:45:06] [19:45:06]POST finish read [19:45:06]Found Content-Length = 843 [19:45:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706567", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 62.090, "sum" : 4588.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 4588.45 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:45:06]execute_script... [19:45:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706567", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 62.090, "sum" : 4588.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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 4588.45 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:45:06]POST & json_proto [19:45:06]process_json_proto [19:45:06]json parsed OK: [19:45:06]protocol is kg_v1.0 [19:45:06]action value=close_receipt [19:45:06]process_action close_receipt [19:45:06]cmd_close_receipt [19:45:06]MH_GetDate [19:45:06]Write to MH i2c: F0 00 00 2A 5C 75 [19:45:06]Write i2c OK [19:45:06]MH_I2C_Read... [19:45:06]Read from MH i2c: F0 [19:45:06]MH_I2C_Read... [19:45:06]Read from MH i2c: F0 09 00 [19:45:06]MH_I2C_Read... [19:45:06]Read from MH i2c: F0 09 00 2A 5C 00 48 1D 5E 66 B2 22 B0 64 8F [19:45:06]GetLastDocTimeStamp 1717443626 [19:45:06]current date 1717443912 [19:45:06]FM_GetShiftState [19:45:06]SAM_PROTO_GetShiftState [19:45:06]wFMCommunicate request_size=4 [19:45:06]MH_SAM_APDU [19:45:06]CAPDU: 80 13 01 00 [19:45:06]Write to MH i2c: E2 08 00 2B 5C 80 13 01 00 00 00 00 00 04 [19:45:06]Write i2c OK [19:45:06]MH_I2C_Read... [19:45:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:45:06]Read from MH i2c: E2 [19:45:06]MH_I2C_Read... [19:45:06]Read from MH i2c: E2 0E 00 [19:45:06]MH_I2C_Read... [19:45:06]Read from MH i2c: E2 0E 00 2B 5C 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 DF [19:45:06]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [19:45:06]wFMCommunicate OK [19:45:06]SAM_PROTO_GetShiftState done [19:45:06]FM_GetShiftState done [19:45:06]opened in 1717378033 [19:45:06]opened+sec_in_day 1717464433 [19:45:06]quantity*price = 458845 [19:45:06]sum+1 = 458846 [19:45:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4588.45 НСП 1% : 40.61 НДС 12% : 487.27 Наличными: 0.00 Безнал.: 4588.45 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 206 03.06.2024 19:45 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68460 ФПД: 126548787582920 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T194513&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68460&fm=126548787582920&tin=02508201610067®Number=0000000000098096&sum=458845 [19:45:07]StoreToDocumentArchive [19:45:07]shift 324 fd 68460 [19:45:07]save to /storage/0324/doc_00068460 [19:45:07]save last doc name /storage/0324/doc_00068460 to /storage/kkm_last_doc_name [19:45:07]save OK [19:45:07]Clear old archive folders... [19:45:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:45:07]tlvbuf is 00332300 [19:45:07]SAM_PROTO_ClearQueue [19:45:07]wFMCommunicate request_size=4 [19:45:07]MH_SAM_APDU [19:45:07]CAPDU: 80 09 00 00 [19:45:07]Write to MH i2c: E2 08 00 38 5C 80 09 00 00 00 00 00 00 06 [19:45:07]Write i2c OK [19:45:07]MH_I2C_Read... [19:45:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:45:07]Read from MH i2c: E2 [19:45:07]MH_I2C_Read... [19:45:07]Read from MH i2c: E2 03 00 [19:45:07]MH_I2C_Read... [19:45:07]Read from MH i2c: E2 03 00 38 5C 00 90 00 08 [19:45:07]RAPDU: 90 00 [19:45:07]wFMCommunicate OK [19:45:07]SAM_PROTO_ClearQueue done [19:45:07]KKMCreateOFDPacket [19:45:07]OFDProtocolAddRootSTLVToBuf [19:45:07]FM_MakeSignedData [19:45:07]FM_MakeSignedData [19:45:07]SAM_PROTO_SignData [19:45:07]wFMCommunicate request_size=4 [19:45:07]MH_SAM_APDU [19:45:07]CAPDU: 80 0D 01 02 [19:45:07]Write to MH i2c: E2 08 00 39 5C 80 0D 01 02 00 00 00 00 0E [19:45:07]Write i2c OK [19:45:07]MH_I2C_Read... [19:45:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:45:07]Read from MH i2c: E2 [19:45:07]MH_I2C_Read... [19:45:07]Read from MH i2c: E2 03 00 [19:45:07]MH_I2C_Read... [19:45:07]Read from MH i2c: E2 03 00 39 5C 00 90 00 09 [19:45:07]RAPDU: 90 00 [19:45:07]wFMCommunicate OK [19:45:07]wFMCommunicate request_size=255 [19:45:07]MH_SAM_APDU [19:45:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8A F2 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 5D 00 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5D 00 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 BE 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5D 00 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 49 1D 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 6C 0B 01 00 35 04 06 00 73 [19:45:07]Write to MH i2c: E2 02 01 3A 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8A F2 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 5D 00 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5D 00 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 BE 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5D 00 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 49 1D 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 6C 0B 01 00 35 04 06 00 73 00 00 E6 [19:45:07]Write i2c OK [19:45:07]MH_I2C_Read... [19:45:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:45:07]Read from MH i2c: E2 [19:45:07]MH_I2C_Read... [19:45:07]Read from MH i2c: E2 03 00 [19:45:07]MH_I2C_Read... [19:45:07]Read from MH i2c: E2 03 00 3A 5C 00 90 00 0A [19:45:07]RAPDU: 90 00 [19:45:07]wFMCommunicate OK [19:45:07]wFMCommunicate request_size=10 [19:45:07]MH_SAM_APDU [19:45:07]CAPDU: 80 0D 02 02 05 18 6F 87 D7 C8 [19:45:07]Write to MH i2c: E2 0D 00 3B 5C 80 0D 02 02 05 00 18 6F 87 D7 C8 00 00 C8 [19:45:07]Write i2c OK [19:45:07]MH_I2C_Read... [19:45:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:45:07]Read from MH i2c: E2 [19:45:07]MH_I2C_Read... [19:45:07]Read from MH i2c: E2 03 00 [19:45:07]MH_I2C_Read... [19:45:07]Read from MH i2c: E2 03 00 3B 5C 00 90 00 0B [19:45:07]RAPDU: 90 00 [19:45:07]wFMCommunicate OK [19:45:07]wFMCommunicate request_size=4 [19:45:07]MH_SAM_APDU [19:45:07]CAPDU: 80 0D 03 02 [19:45:07]Write to MH i2c: E2 08 00 3C 5C 80 0D 03 02 00 00 00 00 13 [19:45:07]Write i2c OK [19:45:07]MH_I2C_Read... [19:45:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:45:07]Read from MH i2c: E2 [19:45:07]MH_I2C_Read... [19:45:07]Read from MH i2c: E2 0B 00 [19:45:07]MH_I2C_Read... [19:45:07]Read from MH i2c: E2 0B 00 3C 5C 00 00 40 AE A5 4B 34 F4 3D 90 00 57 [19:45:07]RAPDU: 00 40 AE A5 4B 34 F4 3D 90 00 [19:45:07]wFMCommunicate OK [19:45:07]SAM_PROTO_SignData done [19:45:07]FM_MakeSignedData done [19:45:07]CreateOFDProtocolMessage [19:45:07]wFMCommunicate request_size=4 [19:45:07]MH_SAM_APDU [19:45:07]CAPDU: 80 11 00 00 [19:45:07]Write to MH i2c: E2 08 00 3D 5C 80 11 00 00 00 00 00 00 13 [19:45:07]Write i2c OK [19:45:07]MH_I2C_Read... [19:45:07]OFD Sender: No OFD packet to send [19:45:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:45:07]Read from MH i2c: E2 [19:45:07]MH_I2C_Read... [19:45:07]Read from MH i2c: E2 17 00 [19:45:07]MH_I2C_Read... [19:45:07]Read from MH i2c: E2 17 00 3D 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 5E [19:45:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [19:45:07]wFMCommunicate OK [19:45:07]CreateOFDProtocolMessage done [19:45:07]OFDSenderStorePacket 68460 [19:45:07]StoreOFDPacket docnum=68460 [19:45:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 F6 A7 07 01 B3 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8A F2 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 5D 00 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5D 00 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 BE 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5D 00 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 49 1D 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 6C 0B 01 00 35 04 06 00 73 18 6F 87 D7 C8 00 40 AE A5 4B 34 F4 3D [19:45:07]CheckFolder [19:45:07]dirname=/storage/ofd_packets [19:45:07]CheckFolder done [19:45:07]ProducePacketName [19:45:07]name=ofd_packets/00068460 [19:45:07]NVStorageSaveData ofd_packets/00068460 [19:45:07]File name is /storage/ofd_packets/00068460 [19:45:07]Write 301 bytes [19:45:07]NVStorageSaveData done [19:45:07]OFDSenderStorePacket done [19:45:07]KKMCreateOFDPacket done [19:45:07]NVStorageSaveData kkm_last_timestamp [19:45:07]File name is /storage/kkm_last_timestamp [19:45:07]Write 4 bytes [19:45:07]NVStorageSaveData done [19:45:07]ExternCall_PrintAddStr [19:45:07]wPrintStart [19:45:07]Write to MH i2c: 01 00 00 3E 5C 9A [19:45:07]Write i2c OK [19:45:07]MH_I2C_Read... [19:45:07]Read from MH i2c: 01 [19:45:07]MH_I2C_Read... [19:45:07]Read from MH i2c: 01 07 00 [19:45:07]MH_I2C_Read... [19:45:07]Read from MH i2c: 01 07 00 3E 5C 00 00 00 00 00 FF 0F AF [19:45:07]RasterBufferAndPrint [19:45:07]line Счет N : (1)706567 [19:45:07]line ИНН: 02508201610067 [19:45:07]line Контрольно-Кассовый Чек [19:45:07]line ПРОДАЖА [19:45:07]line ТРК (МРК, ГНК) : 14 [19:45:07]line Товар: 2710124500 [19:45:07]line Аи-95-К-5 [19:45:07]line 62.090 * 73.90 [19:45:07]line = 4588.45 [19:45:07]line НДС 12% НСП 1% [19:45:07]line > о реализуемом товаре [19:45:07]line ИТОГО: 4588.45 [19:45:07]line НСП 1% : 40.61 [19:45:07]line НДС 12% : 487.27 [19:45:07]line Наличными: 0.00 [19:45:07]line Безнал.: 4588.45 [19:45:07]line Место: АЗС № 62 "Партнер Нефть" [19:45:07]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [19:45:07]line СНО: Общий режим [19:45:07]line Чек 206 03.06.2024 19:45 [19:45:07]line Смена: 324 ФФД: 1.0 [19:45:07]line ЗНМ: 0300000181 [19:45:07]line РНМ: 0000000000098096 [19:45:07]line Версия ККМ: 001 [19:45:07]line Платежная система: АКБ Кыргызстан [19:45:07]line ФМ: 0000000000965400 [19:45:07]line ФД: 68460 [19:45:07]line ФПД: 126548787582920 [19:45:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T194513&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68460&fm=126548787582920&tin=02508201610067®Number=0000000000098096&sum=458845 [19:45:08]OFD Sender: Processing packet 68460 [packets to send 26, broken 25] [19:45:08]ProducePacketName [19:45:08]name=ofd_packets/00068460 [19:45:08]OFD Sender: To server: pG, [19:45:08]CommunicateWithHost lk.salyk.kg:30040 [19:45:08]ConnectInit lk.salyk.kg [19:45:08]written 0, free lines is 4095 [19:45:08]Connected sock=6 [19:45:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 F6 A7 07 01 B3 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8A F2 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 5D 00 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5D 00 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 57 BE 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5D 00 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 49 1D 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 6C 0B 01 00 35 04 06 00 73 18 6F 87 D7 C8 00 40 AE A5 4B 34 F4 3D [19:45:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 AC F8 47 00 35 3E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 6C 0B 01 00 F4 03 04 00 44 C4 5D 66 B6 04 01 00 00 4B 3C B9 31 89 4E 97 66 [19:45:08]CommunicateWithHost err = 0 [19:45:08]CheckOFDResponse [19:45:08]1017 (14) - 77093643461234 [19:45:08]1041 (16) - 0000000000965400 [19:45:08]1040 (4) - 68460 [19:45:08]1012 (4) - 03.06.2024 13:25 [19:45:08]1206 (1) - 0 [19:45:08]OFD Sender: Remove packet 68460 [19:45:08]ProducePacketName [19:45:08]name=ofd_packets/00068460 [19:45:08]NVStorageDeleteData [19:45:08]Write to MH i2c: 01 00 00 68 5C C4 [19:45:08]Write i2c OK [19:45:08]MH_I2C_Read... [19:45:08]Read from MH i2c: 01 [19:45:08]MH_I2C_Read... [19:45:08]Read from MH i2c: 01 07 00 [19:45:08]MH_I2C_Read... [19:45:08]Read from MH i2c: 01 07 00 68 5C 00 00 00 00 00 03 0D DB [19:45:08]RasterBufferAndPrint [19:45:08]line [19:45:08]line [19:45:08]line [19:45:08]line [19:45:08]line [19:45:08]written 0, free lines is 3337 [19:45:08]MH_Cut [19:45:08]Write to MH i2c: D1 01 00 6F 5C 01 9D [19:45:08]Write i2c OK [19:45:08]MH_I2C_Read... [19:45:08]Read from MH i2c: D1 [19:45:08]MH_I2C_Read... [19:45:08]Read from MH i2c: D1 01 00 [19:45:08]MH_I2C_Read... [19:45:08]Read from MH i2c: D1 01 00 6F 5C 00 9C [19:45:08]Write to MH i2c: 01 00 00 70 5C CC [19:45:08]Write i2c OK [19:45:08]MH_I2C_Read... [19:45:08]OFD Sender: No OFD packet to send [19:45:09]*** Cut start [19:45:09]*** Partial cut [19:45:09]*** CUTSNS_PIN = 1 [19:45:09]*** CUTSNS_PIN = 0 [19:45:09]*** Brake cut motor [19:45:10]Read from MH i2c: 01 [19:45:10]MH_I2C_Read... [19:45:10]*** Stop cut motor [19:45:10]*** Cut end [19:45:10]Read from MH i2c: 01 07 00 [19:45:10]MH_I2C_Read... [19:45:10]Read from MH i2c: 01 07 00 70 5C 00 00 00 00 00 FF 0F E1 [19:45:10]process_action close_receipt done [19:45:10]requested_data is exist [19:45:10]produce_requested_data [19:45:10]requested_item fm.sn is exist - process it [19:45:10]wFMCommunicate request_size=4 [19:45:10]MH_SAM_APDU [19:45:10]CAPDU: 80 11 00 00 [19:45:10]Write to MH i2c: E2 08 00 71 5C 80 11 00 00 00 00 00 00 47 [19:45:10]Write i2c OK [19:45:10]MH_I2C_Read... [19:45:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:45:10]Read from MH i2c: E2 [19:45:10]MH_I2C_Read... [19:45:10]Read from MH i2c: E2 17 00 [19:45:10]MH_I2C_Read... [19:45:10]Read from MH i2c: E2 17 00 71 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 92 [19:45:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [19:45:10]wFMCommunicate OK [19:45:10]requested_item fd.num is exist - process it [19:45:10]SAM_PROTO_GetFieldsCounters [19:45:10]wFMCommunicate request_size=4 [19:45:10]MH_SAM_APDU [19:45:10]CAPDU: 80 13 00 00 [19:45:10]Write to MH i2c: E2 08 00 72 5C 80 13 00 00 00 00 00 00 4A [19:45:10]Write i2c OK [19:45:10]MH_I2C_Read... [19:45:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:45:10]Read from MH i2c: E2 [19:45:10]MH_I2C_Read... [19:45:10]Read from MH i2c: E2 62 00 [19:45:10]MH_I2C_Read... [19:45:10]Read from MH i2c: E2 62 00 72 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 6C 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 91 [19:45:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 6C 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:45:10]wFMCommunicate OK [19:45:10]SAM_PROTO_GetFieldsCounters done [19:45:10]requested_item shift.num is exist - process it [19:45:10]requested_item shift.opened is exist - process it [19:45:10]req_shift_opened [19:45:10]FM_GetShiftState [19:45:10]SAM_PROTO_GetShiftState [19:45:10]wFMCommunicate request_size=4 [19:45:10]MH_SAM_APDU [19:45:10]CAPDU: 80 13 01 00 [19:45:10]Write to MH i2c: E2 08 00 73 5C 80 13 01 00 00 00 00 00 4C [19:45:10]Write i2c OK [19:45:10]MH_I2C_Read... [19:45:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:45:10]Read from MH i2c: E2 [19:45:10]MH_I2C_Read... [19:45:10]Read from MH i2c: E2 0E 00 [19:45:10]MH_I2C_Read... [19:45:10]Read from MH i2c: E2 0E 00 73 5C 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 27 [19:45:10]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [19:45:10]wFMCommunicate OK [19:45:10]SAM_PROTO_GetShiftState done [19:45:10]FM_GetShiftState done [19:45:10]req_shift_opened done [19:45:10]requested_item shift.open_date is exist - process it [19:45:10]req_shift_open_date [19:45:10]req_shift_open_date done [19:45:10]produce_requested_data done [19:45:10]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68460,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [19:45:10]process_action_free close_receipt [19:45:10]json_value_free [19:45:10]json_value_free done [19:45:10]process_json_proto returns [19:45:10]Send response to host [19:45:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68460,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [19:45:10]free response buf [19:45:10]execute_script done [19:45:10]execute_script returns [19:45:10]free content buf [19:45:10]Sock 7.Close socket [19:45:10]Sock 7.Thread stoped [19:45:13]OFD Sender: No OFD packet to send [19:45:17]accept exits with 5 [19:45:17]New connection [19:45:17]New thread 3066686820 created [19:45:17]Thread 3066543460 joined [19:45:17]Waiting for new connection... [19:45:17] Sock 5.Parse request [19:45:17]Sock 5.Check first char [19:45:17]Sock 5.First char is OK [19:45:17]request: POST /json_proto HTTP/1.0 [19:45:17]Method: POST [19:45:17]URL: /json_proto [19:45:17]Method is POST - this is cgi request [19:45:17]url: /json_proto [19:45:17]query_string will be loaded in cgi processing [19:45:17]execute_cgi json_proto POST (null) [19:45:17]execute_cgi path=json_proto method=POST [19:45:17]POST find Content-Length [19:45:17]Host: 172.17.36.132:8080 [19:45:17]Content-Length: 1144 [19:45:17]Content-Type: application/json [19:45:17] [19:45:17]POST finish read [19:45:17]Found Content-Length = 1144 [19:45:17]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706568\u000A03.06.2024 19:22\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 10.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 669.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30111787\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:45:17]execute_script... [19:45:17]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706568\u000A03.06.2024 19:22\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 32\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 10.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 669.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30111787\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:45:17]POST & json_proto [19:45:17]process_json_proto [19:45:17]json parsed OK: [19:45:17]protocol is kg_v1.0 [19:45:17]action value=print_text [19:45:17]process_action print_text [19:45:17]cmd_print_text [19:45:17]ExternCall_PrintAddStr [19:45:17]wPrintStart [19:45:17]Write to MH i2c: 01 00 00 74 5C D0 [19:45:17]Write i2c OK [19:45:17]MH_I2C_Read... [19:45:17]Read from MH i2c: 01 [19:45:17]MH_I2C_Read... [19:45:17]Read from MH i2c: 01 07 00 [19:45:17]MH_I2C_Read... [19:45:17]Read from MH i2c: 01 07 00 74 5C 00 00 00 00 00 FF 0F E5 [19:45:17]RasterBufferAndPrint [19:45:17]line *****ТОВАРНЫЙ ЧЕК***** [19:45:17]line АЗС 62 [19:45:17]line Партнер нефть [19:45:17]line 02508201610067 [19:45:17]line Кассир : Балаев А. [19:45:17]line Счет N : (1)706568 [19:45:17]line 03.06.2024 19:22 [19:45:17]line ПРОДАЖА [19:45:17]line ТРК (МРК, ГНК): 32 [19:45:17]line Вид ГСМ : 2710124130 [19:45:17]line Аи-92-К-4 [19:45:17]line 10.000 x 66.90 [19:45:17]line ИТОГ: 669.00 [19:45:17]line Тип оплаты: Талоны: ТК ГПНА Online [19:45:17]line 30111787 [19:45:17]line ______________________ [19:45:17]line (подпись) [19:45:17]written 0, free lines is 4095 [19:45:18]Write to MH i2c: 01 00 00 88 5C E4 [19:45:18]Write i2c OK [19:45:18]MH_I2C_Read... [19:45:18]Read from MH i2c: 01 [19:45:18]MH_I2C_Read... [19:45:18]Read from MH i2c: 01 07 00 [19:45:18]MH_I2C_Read... [19:45:18]Read from MH i2c: 01 07 00 88 5C 00 00 00 00 00 11 0E 0A [19:45:18]RasterBufferAndPrint [19:45:18]line [19:45:18]line [19:45:18]line [19:45:18]line [19:45:18]line [19:45:18]written 0, free lines is 3603 [19:45:18]MH_Cut [19:45:18]Write to MH i2c: D1 01 00 8F 5C 01 BD [19:45:18]Write i2c OK [19:45:18]MH_I2C_Read... [19:45:18]Read from MH i2c: D1 [19:45:18]MH_I2C_Read... [19:45:18]Read from MH i2c: D1 01 00 [19:45:18]MH_I2C_Read... [19:45:18]Read from MH i2c: D1 01 00 8F 5C 00 BC [19:45:18]Write to MH i2c: 01 00 00 90 5C EC [19:45:18]Write i2c OK [19:45:18]MH_I2C_Read... [19:45:18]*** Cut start [19:45:18]*** Partial cut [19:45:18]*** CUTSNS_PIN = 1 [19:45:18]*** CUTSNS_PIN = 0 [19:45:18]*** Brake cut motor [19:45:18]OFD Sender: No OFD packet to send [19:45:19]Read from MH i2c: 01 [19:45:19]MH_I2C_Read... [19:45:19]*** Stop cut motor [19:45:19]*** Cut end [19:45:19]Read from MH i2c: 01 07 00 [19:45:19]MH_I2C_Read... [19:45:19]Read from MH i2c: 01 07 00 90 5C 00 00 00 00 00 FF 0F 01 [19:45:19]process_action print_text done [19:45:19]requested_data is exist [19:45:19]produce_requested_data [19:45:19]requested_item fm.sn is exist - process it [19:45:19]wFMCommunicate request_size=4 [19:45:19]MH_SAM_APDU [19:45:19]CAPDU: 80 11 00 00 [19:45:19]Write to MH i2c: E2 08 00 91 5C 80 11 00 00 00 00 00 00 67 [19:45:19]Write i2c OK [19:45:19]MH_I2C_Read... [19:45:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:45:19]Read from MH i2c: E2 [19:45:19]MH_I2C_Read... [19:45:19]Read from MH i2c: E2 17 00 [19:45:19]MH_I2C_Read... [19:45:19]Read from MH i2c: E2 17 00 91 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 B2 [19:45:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [19:45:19]wFMCommunicate OK [19:45:19]requested_item fd.num is exist - process it [19:45:19]SAM_PROTO_GetFieldsCounters [19:45:19]wFMCommunicate request_size=4 [19:45:19]MH_SAM_APDU [19:45:19]CAPDU: 80 13 00 00 [19:45:19]Write to MH i2c: E2 08 00 92 5C 80 13 00 00 00 00 00 00 6A [19:45:19]Write i2c OK [19:45:19]MH_I2C_Read... [19:45:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:45:19]Read from MH i2c: E2 [19:45:19]MH_I2C_Read... [19:45:19]Read from MH i2c: E2 62 00 [19:45:19]MH_I2C_Read... [19:45:19]Read from MH i2c: E2 62 00 92 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 6C 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [19:45:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 6C 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:45:19]wFMCommunicate OK [19:45:19]SAM_PROTO_GetFieldsCounters done [19:45:19]requested_item shift.num is exist - process it [19:45:19]requested_item shift.opened is exist - process it [19:45:19]req_shift_opened [19:45:19]FM_GetShiftState [19:45:19]SAM_PROTO_GetShiftState [19:45:19]wFMCommunicate request_size=4 [19:45:19]MH_SAM_APDU [19:45:19]CAPDU: 80 13 01 00 [19:45:19]Write to MH i2c: E2 08 00 93 5C 80 13 01 00 00 00 00 00 6C [19:45:19]Write i2c OK [19:45:19]MH_I2C_Read... [19:45:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:45:19]Read from MH i2c: E2 [19:45:19]MH_I2C_Read... [19:45:19]Read from MH i2c: E2 0E 00 [19:45:19]MH_I2C_Read... [19:45:19]Read from MH i2c: E2 0E 00 93 5C 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 47 [19:45:19]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [19:45:19]wFMCommunicate OK [19:45:19]SAM_PROTO_GetShiftState done [19:45:19]FM_GetShiftState done [19:45:19]req_shift_opened done [19:45:19]requested_item shift.open_date is exist - process it [19:45:19]req_shift_open_date [19:45:19]req_shift_open_date done [19:45:19]produce_requested_data done [19:45:19]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68460,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [19:45:19]process_action_free print_text [19:45:19]json_value_free [19:45:19]json_value_free done [19:45:19]process_json_proto returns [19:45:19]Send response to host [19:45:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68460,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [19:45:19]free response buf [19:45:19]execute_script done [19:45:19]execute_script returns [19:45:19]free content buf [19:45:19]Sock 5.Close socket [19:45:19]Sock 5.Thread stoped [19:45:23]OFD Sender: No OFD packet to send [19:45:28]OFD Sender: No OFD packet to send [19:45:33]OFD Sender: No OFD packet to send [19:45:38]OFD Sender: No OFD packet to send [19:45:43]OFD Sender: No OFD packet to send [19:45:48]OFD Sender: No OFD packet to send [19:45:53]OFD Sender: No OFD packet to send [19:45:58]OFD Sender: No OFD packet to send [19:46:03]OFD Sender: No OFD packet to send [19:46:08]OFD Sender: No OFD packet to send [19:46:13]OFD Sender: No OFD packet to send [19:46:18]OFD Sender: No OFD packet to send [19:46:24]OFD Sender: No OFD packet to send [19:46:29]OFD Sender: No OFD packet to send [19:46:34]OFD Sender: No OFD packet to send [19:46:39]OFD Sender: No OFD packet to send [19:46:44]OFD Sender: No OFD packet to send [19:46:49]OFD Sender: No OFD packet to send [19:46:54]OFD Sender: No OFD packet to send [19:46:59]OFD Sender: No OFD packet to send [19:47:04]OFD Sender: No OFD packet to send [19:47:09]OFD Sender: No OFD packet to send [19:47:14]OFD Sender: No OFD packet to send [19:47:19]OFD Sender: No OFD packet to send [19:47:24]OFD Sender: No OFD packet to send [19:47:29]OFD Sender: No OFD packet to send [19:47:34]OFD Sender: No OFD packet to send [19:47:39]OFD Sender: No OFD packet to send [19:47:44]OFD Sender: No OFD packet to send [19:47:49]OFD Sender: No OFD packet to send [19:47:54]OFD Sender: No OFD packet to send [19:47:59]OFD Sender: No OFD packet to send [19:48:04]OFD Sender: No OFD packet to send [19:48:09]OFD Sender: No OFD packet to send [19:48:14]OFD Sender: No OFD packet to send [19:48:19]OFD Sender: No OFD packet to send [19:48:24]OFD Sender: No OFD packet to send [19:48:29]OFD Sender: No OFD packet to send [19:48:34]OFD Sender: No OFD packet to send [19:48:39]OFD Sender: No OFD packet to send [19:48:44]OFD Sender: No OFD packet to send [19:48:49]OFD Sender: No OFD packet to send [19:48:54]OFD Sender: No OFD packet to send [19:48:59]OFD Sender: No OFD packet to send [19:49:04]OFD Sender: No OFD packet to send [19:49:09]OFD Sender: No OFD packet to send [19:49:14]OFD Sender: No OFD packet to send [19:49:19]OFD Sender: No OFD packet to send [19:49:24]OFD Sender: No OFD packet to send [19:49:29]OFD Sender: No OFD packet to send [19:49:34]OFD Sender: No OFD packet to send [19:49:39]OFD Sender: No OFD packet to send [19:49:44]OFD Sender: No OFD packet to send [19:49:49]OFD Sender: No OFD packet to send [19:49:54]OFD Sender: No OFD packet to send [19:49:59]OFD Sender: No OFD packet to send [19:50:04]OFD Sender: No OFD packet to send [19:50:09]OFD Sender: No OFD packet to send [19:50:11]accept exits with 6 [19:50:11]New connection [19:50:11]New thread 3066543460 created [19:50:11]Thread 3066686820 joined [19:50:11]Waiting for new connection... [19:50:11] Sock 6.Parse request [19:50:11]Sock 6.Check first char [19:50:11]Sock 6.First char is OK [19:50:11]request: POST /json_proto HTTP/1.0 [19:50:11]Method: POST [19:50:11]URL: /json_proto [19:50:11]Method is POST - this is cgi request [19:50:11]url: /json_proto [19:50:11]query_string will be loaded in cgi processing [19:50:11]execute_cgi json_proto POST (null) [19:50:11]execute_cgi path=json_proto method=POST [19:50:11]POST find Content-Length [19:50:11]Host: 172.17.36.132:8080 [19:50:11]Content-Length: 670 [19:50:11]Content-Type: application/json [19:50:11] [19:50:11]POST finish read [19:50:11]Found Content-Length = 670 [19:50:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706569", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 8.840, "sum" : 600.24, "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:50:11]execute_script... [19:50:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706569", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 8.840, "sum" : 600.24, "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:50:11]POST & json_proto [19:50:11]process_json_proto [19:50:11]json parsed OK: [19:50:11]protocol is kg_v1.0 [19:50:11]action value=close_receipt [19:50:11]process_action close_receipt [19:50:11]cmd_close_receipt [19:50:11]MH_GetDate [19:50:11]Write to MH i2c: F0 00 00 94 5C DF [19:50:11]Write i2c OK [19:50:11]MH_I2C_Read... [19:50:11]Read from MH i2c: F0 [19:50:11]MH_I2C_Read... [19:50:11]Read from MH i2c: F0 09 00 [19:50:11]MH_I2C_Read... [19:50:11]Read from MH i2c: F0 09 00 94 5C 00 7A 1E 5E 66 B2 22 B0 64 2C [19:50:11]GetLastDocTimeStamp 1717443913 [19:50:11]current date 1717444218 [19:50:11]FM_GetShiftState [19:50:11]SAM_PROTO_GetShiftState [19:50:11]wFMCommunicate request_size=4 [19:50:11]MH_SAM_APDU [19:50:11]CAPDU: 80 13 01 00 [19:50:11]Write to MH i2c: E2 08 00 95 5C 80 13 01 00 00 00 00 00 6E [19:50:11]Write i2c OK [19:50:11]MH_I2C_Read... [19:50:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:50:11]Read from MH i2c: E2 [19:50:11]MH_I2C_Read... [19:50:11]Read from MH i2c: E2 0E 00 [19:50:11]MH_I2C_Read... [19:50:11]Read from MH i2c: E2 0E 00 95 5C 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 49 [19:50:11]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [19:50:11]wFMCommunicate OK [19:50:11]SAM_PROTO_GetShiftState done [19:50:11]FM_GetShiftState done [19:50:11]opened in 1717378033 [19:50:11]opened+sec_in_day 1717464433 [19:50:11]quantity*price = 60023 [19:50:11]sum+1 = 60025 [19:50:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 207 03.06.2024 19:50 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68461 ФПД: 187171767902211 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T195018&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68461&fm=187171767902211&tin=02508201610067®Number=0000000000098096&sum=60000 [19:50:12]StoreToDocumentArchive [19:50:12]shift 324 fd 68461 [19:50:12]save to /storage/0324/doc_00068461 [19:50:12]save last doc name /storage/0324/doc_00068461 to /storage/kkm_last_doc_name [19:50:12]save OK [19:50:12]Clear old archive folders... [19:50:12]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:50:12]tlvbuf is 001CCBB0 [19:50:12]SAM_PROTO_ClearQueue [19:50:12]wFMCommunicate request_size=4 [19:50:12]MH_SAM_APDU [19:50:12]CAPDU: 80 09 00 00 [19:50:12]Write to MH i2c: E2 08 00 A2 5C 80 09 00 00 00 00 00 00 70 [19:50:12]Write i2c OK [19:50:12]MH_I2C_Read... [19:50:12]Read from MH i2c: E2 [19:50:12]MH_I2C_Read... [19:50:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:50:12]Read from MH i2c: E2 03 00 [19:50:12]MH_I2C_Read... [19:50:12]Read from MH i2c: E2 03 00 A2 5C 00 90 00 72 [19:50:12]RAPDU: 90 00 [19:50:12]wFMCommunicate OK [19:50:12]SAM_PROTO_ClearQueue done [19:50:12]KKMCreateOFDPacket [19:50:12]OFDProtocolAddRootSTLVToBuf [19:50:12]FM_MakeSignedData [19:50:12]FM_MakeSignedData [19:50:12]SAM_PROTO_SignData [19:50:12]wFMCommunicate request_size=4 [19:50:12]MH_SAM_APDU [19:50:12]CAPDU: 80 0D 01 02 [19:50:12]Write to MH i2c: E2 08 00 A3 5C 80 0D 01 02 00 00 00 00 78 [19:50:12]Write i2c OK [19:50:12]MH_I2C_Read... [19:50:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:50:12]Read from MH i2c: E2 [19:50:12]MH_I2C_Read... [19:50:12]Read from MH i2c: E2 03 00 [19:50:12]MH_I2C_Read... [19:50:12]Read from MH i2c: E2 03 00 A3 5C 00 90 00 73 [19:50:12]RAPDU: 90 00 [19:50:12]wFMCommunicate OK [19:50:12]wFMCommunicate request_size=255 [19:50:12]MH_SAM_APDU [19:50:12]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 22 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 78 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 7A 1E 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 6D 0B 01 00 35 04 06 00 [19:50:12]Write to MH i2c: E2 02 01 A4 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 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 22 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 78 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 7A 1E 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 6D 0B 01 00 35 04 06 00 00 00 E7 [19:50:12]Write i2c OK [19:50:12]MH_I2C_Read... [19:50:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:50:12]Read from MH i2c: E2 [19:50:12]MH_I2C_Read... [19:50:12]Read from MH i2c: E2 03 00 [19:50:12]MH_I2C_Read... [19:50:12]Read from MH i2c: E2 03 00 A4 5C 00 90 00 74 [19:50:12]RAPDU: 90 00 [19:50:12]wFMCommunicate OK [19:50:12]wFMCommunicate request_size=11 [19:50:12]MH_SAM_APDU [19:50:12]CAPDU: 80 0D 02 02 06 AA 3B 52 BC E0 03 [19:50:12]Write to MH i2c: E2 0E 00 A5 5C 80 0D 02 02 06 00 AA 3B 52 BC E0 03 00 00 5D [19:50:12]Write i2c OK [19:50:12]MH_I2C_Read... [19:50:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:50:12]Read from MH i2c: E2 [19:50:12]MH_I2C_Read... [19:50:12]Read from MH i2c: E2 03 00 [19:50:12]MH_I2C_Read... [19:50:12]Read from MH i2c: E2 03 00 A5 5C 00 90 00 75 [19:50:12]RAPDU: 90 00 [19:50:12]wFMCommunicate OK [19:50:12]wFMCommunicate request_size=4 [19:50:12]MH_SAM_APDU [19:50:12]CAPDU: 80 0D 03 02 [19:50:12]Write to MH i2c: E2 08 00 A6 5C 80 0D 03 02 00 00 00 00 7D [19:50:12]Write i2c OK [19:50:12]MH_I2C_Read... [19:50:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:50:13]Read from MH i2c: E2 [19:50:13]MH_I2C_Read... [19:50:13]Read from MH i2c: E2 0B 00 [19:50:13]MH_I2C_Read... [19:50:13]Read from MH i2c: E2 0B 00 A6 5C 00 3E 48 5B D5 15 64 F0 E2 90 00 7F [19:50:13]RAPDU: 3E 48 5B D5 15 64 F0 E2 90 00 [19:50:13]wFMCommunicate OK [19:50:13]SAM_PROTO_SignData done [19:50:13]FM_MakeSignedData done [19:50:13]CreateOFDProtocolMessage [19:50:13]wFMCommunicate request_size=4 [19:50:13]MH_SAM_APDU [19:50:13]CAPDU: 80 11 00 00 [19:50:13]Write to MH i2c: E2 08 00 A7 5C 80 11 00 00 00 00 00 00 7D [19:50:13]Write i2c OK [19:50:13]MH_I2C_Read... [19:50:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:50:13]Read from MH i2c: E2 [19:50:13]MH_I2C_Read... [19:50:13]Read from MH i2c: E2 17 00 [19:50:13]MH_I2C_Read... [19:50:13]Read from MH i2c: E2 17 00 A7 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 C8 [19:50:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [19:50:13]wFMCommunicate OK [19:50:13]CreateOFDProtocolMessage done [19:50:13]OFDSenderStorePacket 68461 [19:50:13]StoreOFDPacket docnum=68461 [19:50:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 3E B0 08 01 58 C9 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 22 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 78 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 7A 1E 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 6D 0B 01 00 35 04 06 00 AA 3B 52 BC E0 03 3E 48 5B D5 15 64 F0 E2 [19:50:13]CheckFolder [19:50:13]dirname=/storage/ofd_packets [19:50:13]CheckFolder done [19:50:13]ProducePacketName [19:50:13]name=ofd_packets/00068461 [19:50:13]NVStorageSaveData ofd_packets/00068461 [19:50:13]File name is /storage/ofd_packets/00068461 [19:50:13]Write 302 bytes [19:50:13]NVStorageSaveData done [19:50:13]OFDSenderStorePacket done [19:50:13]KKMCreateOFDPacket done [19:50:13]NVStorageSaveData kkm_last_timestamp [19:50:13]File name is /storage/kkm_last_timestamp [19:50:13]Write 4 bytes [19:50:13]NVStorageSaveData done [19:50:13]ExternCall_PrintAddStr [19:50:13]wPrintStart [19:50:13]Write to MH i2c: 01 00 00 A8 5C 04 [19:50:13]Write i2c OK [19:50:13]MH_I2C_Read... [19:50:13]Read from MH i2c: 01 [19:50:13]MH_I2C_Read... [19:50:13]Read from MH i2c: 01 07 00 [19:50:13]MH_I2C_Read... [19:50:13]Read from MH i2c: 01 07 00 A8 5C 00 00 00 00 00 FF 0F 19 [19:50:13]RasterBufferAndPrint [19:50:13]line Счет N : (1)706569 [19:50:13]line ИНН: 02508201610067 [19:50:13]line Контрольно-Кассовый Чек [19:50:13]line ПРОДАЖА [19:50:13]line ТРК (МРК, ГНК) : 62 [19:50:13]line Товар: 2710124130 [19:50:13]line Super-92-К-5 [19:50:13]line 8.840 * 67.90 [19:50:13]line = 600.24 [19:50:13]line НДС 12% НСП 1% [19:50:13]line > о реализуемом товаре [19:50:13]line ОКРУГЛЕНИЕ: -0.24 [19:50:13]line ИТОГО: 600.00 [19:50:13]line Внесено: 600.00 [19:50:13]line СДАЧА: 0.00 [19:50:13]line НСП 1% : 5.31 [19:50:13]line НДС 12% : 63.74 [19:50:13]line Наличными: 600.00 [19:50:13]line Безнал.: 0.00 [19:50:13]line Место: АЗС № 62 "Партнер Нефть" [19:50:13]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [19:50:13]line СНО: Общий режим [19:50:13]line Чек 207 03.06.2024 19:50 [19:50:13]line Смена: 324 ФФД: 1.0 [19:50:13]line ЗНМ: 0300000181 [19:50:13]line РНМ: 0000000000098096 [19:50:13]line Версия ККМ: 001 [19:50:13]line ФМ: 0000000000965400 [19:50:13]line ФД: 68461 [19:50:13]line ФПД: 187171767902211 [19:50:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T195018&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68461&fm=187171767902211&tin=02508201610067®Number=0000000000098096&sum=60000 [19:50:13]OFD Sender: Processing packet 68461 [packets to send 26, broken 25] [19:50:13]ProducePacketName [19:50:13]name=ofd_packets/00068461 [19:50:13]OFD Sender: To server: pG, [19:50:13]CommunicateWithHost lk.salyk.kg:30040 [19:50:13]ConnectInit lk.salyk.kg [19:50:13]written 0, free lines is 4095 [19:50:13]Connected sock=7 [19:50:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 3E B0 08 01 58 C9 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 22 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 78 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 7A 1E 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 6D 0B 01 00 35 04 06 00 AA 3B 52 BC E0 03 3E 48 5B D5 15 64 F0 E2 [19:50:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 E7 3D 47 00 14 D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 6D 0B 01 00 F4 03 04 00 75 C5 5D 66 B6 04 01 00 00 0B EF 18 6C D0 0E CC 6E [19:50:13]CommunicateWithHost err = 0 [19:50:13]CheckOFDResponse [19:50:13]1017 (14) - 77093643461234 [19:50:13]1041 (16) - 0000000000965400 [19:50:13]1040 (4) - 68461 [19:50:13]1012 (4) - 03.06.2024 13:30 [19:50:13]1206 (1) - 0 [19:50:13]OFD Sender: Remove packet 68461 [19:50:13]ProducePacketName [19:50:13]name=ofd_packets/00068461 [19:50:13]NVStorageDeleteData [19:50:13]Write to MH i2c: 01 00 00 D3 5C 2F [19:50:13]Write i2c OK [19:50:13]MH_I2C_Read... [19:50:13]Read from MH i2c: 01 [19:50:13]MH_I2C_Read... [19:50:13]Read from MH i2c: 01 07 00 [19:50:13]MH_I2C_Read... [19:50:13]Read from MH i2c: 01 07 00 D3 5C 00 00 00 00 00 E7 0C 29 [19:50:13]RasterBufferAndPrint [19:50:13]line [19:50:13]line [19:50:13]line [19:50:13]line [19:50:13]line [19:50:13]written 0, free lines is 3310 [19:50:13]MH_Cut [19:50:13]Write to MH i2c: D1 01 00 DA 5C 01 08 [19:50:13]Write i2c OK [19:50:13]MH_I2C_Read... [19:50:13]Read from MH i2c: D1 [19:50:13]MH_I2C_Read... [19:50:13]Read from MH i2c: D1 01 00 [19:50:13]MH_I2C_Read... [19:50:13]Read from MH i2c: D1 01 00 DA 5C 00 07 [19:50:13]Write to MH i2c: 01 00 00 DB 5C 37 [19:50:13]Write i2c OK [19:50:13]MH_I2C_Read... [19:50:14]OFD Sender: No OFD packet to send [19:50:14]*** FLAG_PRN_PAP2 set [19:50:14]*** Cut start [19:50:14]*** Partial cut [19:50:14]*** CUTSNS_PIN = 1 [19:50:14]*** CUTSNS_PIN = 0 [19:50:14]*** Brake cut motor [19:50:15]Read from MH i2c: 01 [19:50:15]MH_I2C_Read... [19:50:15]*** Stop cut motor [19:50:15]*** Cut end [19:50:15]Read from MH i2c: 01 07 00 [19:50:15]MH_I2C_Read... [19:50:15]Read from MH i2c: 01 07 00 DB 5C 00 02 00 00 00 FF 0F 4E [19:50:15]process_action close_receipt done [19:50:15]requested_data is exist [19:50:15]produce_requested_data [19:50:15]requested_item fm.sn is exist - process it [19:50:15]wFMCommunicate request_size=4 [19:50:15]MH_SAM_APDU [19:50:15]CAPDU: 80 11 00 00 [19:50:15]Write to MH i2c: E2 08 00 DC 5C 80 11 00 00 00 00 00 00 B2 [19:50:15]Write i2c OK [19:50:15]MH_I2C_Read... [19:50:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:50:15]Read from MH i2c: E2 [19:50:15]MH_I2C_Read... [19:50:15]Read from MH i2c: E2 17 00 [19:50:15]MH_I2C_Read... [19:50:15]Read from MH i2c: E2 17 00 DC 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 FD [19:50:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [19:50:15]wFMCommunicate OK [19:50:15]requested_item fd.num is exist - process it [19:50:15]SAM_PROTO_GetFieldsCounters [19:50:15]wFMCommunicate request_size=4 [19:50:15]MH_SAM_APDU [19:50:15]CAPDU: 80 13 00 00 [19:50:15]Write to MH i2c: E2 08 00 DD 5C 80 13 00 00 00 00 00 00 B5 [19:50:15]Write i2c OK [19:50:15]MH_I2C_Read... [19:50:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:50:15]Read from MH i2c: E2 [19:50:15]MH_I2C_Read... [19:50:15]Read from MH i2c: E2 62 00 [19:50:15]MH_I2C_Read... [19:50:15]Read from MH i2c: E2 62 00 DD 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 6D 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [19:50:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 6D 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:50:15]wFMCommunicate OK [19:50:15]SAM_PROTO_GetFieldsCounters done [19:50:15]requested_item shift.num is exist - process it [19:50:15]requested_item shift.opened is exist - process it [19:50:15]req_shift_opened [19:50:15]FM_GetShiftState [19:50:15]SAM_PROTO_GetShiftState [19:50:15]wFMCommunicate request_size=4 [19:50:15]MH_SAM_APDU [19:50:15]CAPDU: 80 13 01 00 [19:50:15]Write to MH i2c: E2 08 00 DE 5C 80 13 01 00 00 00 00 00 B7 [19:50:15]Write i2c OK [19:50:15]MH_I2C_Read... [19:50:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:50:15]Read from MH i2c: E2 [19:50:15]MH_I2C_Read... [19:50:15]Read from MH i2c: E2 0E 00 [19:50:15]MH_I2C_Read... [19:50:15]Read from MH i2c: E2 0E 00 DE 5C 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 92 [19:50:15]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [19:50:15]wFMCommunicate OK [19:50:15]SAM_PROTO_GetShiftState done [19:50:15]FM_GetShiftState done [19:50:15]req_shift_opened done [19:50:15]requested_item shift.open_date is exist - process it [19:50:15]req_shift_open_date [19:50:15]req_shift_open_date done [19:50:15]produce_requested_data done [19:50:15]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68461,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [19:50:15]process_action_free close_receipt [19:50:15]json_value_free [19:50:15]json_value_free done [19:50:15]process_json_proto returns [19:50:15]Send response to host [19:50:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68461,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [19:50:15]free response buf [19:50:15]execute_script done [19:50:15]execute_script returns [19:50:15]free content buf [19:50:15]Sock 6.Close socket [19:50:15]Sock 6.Thread stoped [19:50:19]OFD Sender: No OFD packet to send [19:50:24]OFD Sender: No OFD packet to send [19:50:29]OFD Sender: No OFD packet to send [19:50:34]OFD Sender: No OFD packet to send [19:50:39]OFD Sender: No OFD packet to send [19:50:44]OFD Sender: No OFD packet to send [19:50:49]OFD Sender: No OFD packet to send [19:50:54]OFD Sender: No OFD packet to send [19:50:59]OFD Sender: No OFD packet to send [19:51:04]OFD Sender: No OFD packet to send [19:51:09]OFD Sender: No OFD packet to send [19:51:14]OFD Sender: No OFD packet to send [19:51:19]OFD Sender: No OFD packet to send [19:51:24]OFD Sender: No OFD packet to send [19:51:29]OFD Sender: No OFD packet to send [19:51:34]OFD Sender: No OFD packet to send [19:51:39]OFD Sender: No OFD packet to send [19:51:44]OFD Sender: No OFD packet to send [19:51:49]OFD Sender: No OFD packet to send [19:51:54]OFD Sender: No OFD packet to send [19:51:59]OFD Sender: No OFD packet to send [19:52:04]OFD Sender: No OFD packet to send [19:52:09]OFD Sender: No OFD packet to send [19:52:11]accept exits with 5 [19:52:11]New connection [19:52:11]New thread 3066686820 created [19:52:11]Thread 3066543460 joined [19:52:11]Waiting for new connection... [19:52:11] Sock 5.Parse request [19:52:11]Sock 5.Check first char [19:52:11]Sock 5.First char is OK [19:52:11]request: POST /json_proto HTTP/1.0 [19:52:11]Method: POST [19:52:11]URL: /json_proto [19:52:11]Method is POST - this is cgi request [19:52:11]url: /json_proto [19:52:11]query_string will be loaded in cgi processing [19:52:11]execute_cgi json_proto POST (null) [19:52:11]execute_cgi path=json_proto method=POST [19:52:11]POST find Content-Length [19:52:11]Host: 172.17.36.132:8080 [19:52:11]Content-Length: 677 [19:52:11]Content-Type: application/json [19:52:11] [19:52:11]POST finish read [19:52:11]Found Content-Length = 677 [19:52:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706570", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:52:11]execute_script... [19:52:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706570", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:52:11]POST & json_proto [19:52:11]process_json_proto [19:52:11]json parsed OK: [19:52:11]protocol is kg_v1.0 [19:52:11]action value=close_receipt [19:52:11]process_action close_receipt [19:52:11]cmd_close_receipt [19:52:11]MH_GetDate [19:52:11]Write to MH i2c: F0 00 00 DF 5C 2A [19:52:11]Write i2c OK [19:52:11]MH_I2C_Read... [19:52:11]Read from MH i2c: F0 [19:52:11]MH_I2C_Read... [19:52:11]Read from MH i2c: F0 09 00 [19:52:11]MH_I2C_Read... [19:52:11]Read from MH i2c: F0 09 00 DF 5C 00 F2 1E 5E 66 B2 22 B0 64 EF [19:52:11]GetLastDocTimeStamp 1717444218 [19:52:11]current date 1717444338 [19:52:11]FM_GetShiftState [19:52:11]SAM_PROTO_GetShiftState [19:52:11]wFMCommunicate request_size=4 [19:52:11]MH_SAM_APDU [19:52:11]CAPDU: 80 13 01 00 [19:52:11]Write to MH i2c: E2 08 00 E0 5C 80 13 01 00 00 00 00 00 B9 [19:52:11]Write i2c OK [19:52:11]MH_I2C_Read... [19:52:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:52:11]Read from MH i2c: E2 [19:52:11]MH_I2C_Read... [19:52:11]Read from MH i2c: E2 0E 00 [19:52:11]MH_I2C_Read... [19:52:11]Read from MH i2c: E2 0E 00 E0 5C 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 94 [19:52:11]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [19:52:11]wFMCommunicate OK [19:52:11]SAM_PROTO_GetShiftState done [19:52:11]FM_GetShiftState done [19:52:11]opened in 1717378033 [19:52:11]opened+sec_in_day 1717464433 [19:52:11]quantity*price = 40006 [19:52:11]sum+1 = 40007 [19:52:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 208 03.06.2024 19:52 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68462 ФПД: 261140800054770 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T195218&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68462&fm=261140800054770&tin=02508201610067®Number=0000000000098096&sum=40000 [19:52:12]StoreToDocumentArchive [19:52:12]shift 324 fd 68462 [19:52:12]save to /storage/0324/doc_00068462 [19:52:12]save last doc name /storage/0324/doc_00068462 to /storage/kkm_last_doc_name [19:52:12]save OK [19:52:12]Clear old archive folders... [19:52:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:52:12]tlvbuf is 001DC600 [19:52:12]SAM_PROTO_ClearQueue [19:52:12]wFMCommunicate request_size=4 [19:52:12]MH_SAM_APDU [19:52:12]CAPDU: 80 09 00 00 [19:52:12]Write to MH i2c: E2 08 00 ED 5C 80 09 00 00 00 00 00 00 BB [19:52:12]Write i2c OK [19:52:12]MH_I2C_Read... [19:52:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:52:12]Read from MH i2c: E2 [19:52:12]MH_I2C_Read... [19:52:12]Read from MH i2c: E2 03 00 [19:52:12]MH_I2C_Read... [19:52:12]Read from MH i2c: E2 03 00 ED 5C 00 90 00 BD [19:52:12]RAPDU: 90 00 [19:52:12]wFMCommunicate OK [19:52:12]SAM_PROTO_ClearQueue done [19:52:12]KKMCreateOFDPacket [19:52:12]OFDProtocolAddRootSTLVToBuf [19:52:12]FM_MakeSignedData [19:52:12]FM_MakeSignedData [19:52:12]SAM_PROTO_SignData [19:52:12]wFMCommunicate request_size=4 [19:52:12]MH_SAM_APDU [19:52:12]CAPDU: 80 0D 01 02 [19:52:12]Write to MH i2c: E2 08 00 EE 5C 80 0D 01 02 00 00 00 00 C3 [19:52:12]Write i2c OK [19:52:12]MH_I2C_Read... [19:52:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:52:12]Read from MH i2c: E2 [19:52:12]MH_I2C_Read... [19:52:12]Read from MH i2c: E2 03 00 [19:52:12]MH_I2C_Read... [19:52:12]Read from MH i2c: E2 03 00 EE 5C 00 90 00 BE [19:52:12]RAPDU: 90 00 [19:52:12]wFMCommunicate OK [19:52:12]wFMCommunicate request_size=255 [19:52:12]MH_SAM_APDU [19:52:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 F2 1E 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 6E 0B 01 00 35 04 06 00 ED [19:52:12]Write to MH i2c: E2 02 01 EF 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 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 F2 1E 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 6E 0B 01 00 35 04 06 00 ED 00 00 6F [19:52:12]Write i2c OK [19:52:12]MH_I2C_Read... [19:52:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:52:12]Read from MH i2c: E2 [19:52:12]MH_I2C_Read... [19:52:12]Read from MH i2c: E2 03 00 [19:52:12]MH_I2C_Read... [19:52:12]Read from MH i2c: E2 03 00 EF 5C 00 90 00 BF [19:52:12]RAPDU: 90 00 [19:52:12]wFMCommunicate OK [19:52:12]wFMCommunicate request_size=10 [19:52:12]MH_SAM_APDU [19:52:12]CAPDU: 80 0D 02 02 05 81 94 9F A5 F2 [19:52:12]Write to MH i2c: E2 0D 00 F0 5C 80 0D 02 02 05 00 81 94 9F A5 F2 00 00 1B [19:52:12]Write i2c OK [19:52:12]MH_I2C_Read... [19:52:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:52:12]Read from MH i2c: E2 [19:52:12]MH_I2C_Read... [19:52:12]Read from MH i2c: E2 03 00 [19:52:12]MH_I2C_Read... [19:52:12]Read from MH i2c: E2 03 00 F0 5C 00 90 00 C0 [19:52:12]RAPDU: 90 00 [19:52:12]wFMCommunicate OK [19:52:12]wFMCommunicate request_size=4 [19:52:12]MH_SAM_APDU [19:52:12]CAPDU: 80 0D 03 02 [19:52:12]Write to MH i2c: E2 08 00 F1 5C 80 0D 03 02 00 00 00 00 C8 [19:52:12]Write i2c OK [19:52:12]MH_I2C_Read... [19:52:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:52:12]Read from MH i2c: E2 [19:52:12]MH_I2C_Read... [19:52:12]Read from MH i2c: E2 0B 00 [19:52:12]MH_I2C_Read... [19:52:12]Read from MH i2c: E2 0B 00 F1 5C 00 BF 30 A3 07 80 AC C9 FE 90 00 55 [19:52:12]RAPDU: BF 30 A3 07 80 AC C9 FE 90 00 [19:52:12]wFMCommunicate OK [19:52:12]SAM_PROTO_SignData done [19:52:12]FM_MakeSignedData done [19:52:12]CreateOFDProtocolMessage [19:52:12]wFMCommunicate request_size=4 [19:52:12]MH_SAM_APDU [19:52:12]CAPDU: 80 11 00 00 [19:52:12]Write to MH i2c: E2 08 00 F2 5C 80 11 00 00 00 00 00 00 C8 [19:52:12]Write i2c OK [19:52:12]MH_I2C_Read... [19:52:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:52:12]Read from MH i2c: E2 [19:52:12]MH_I2C_Read... [19:52:12]Read from MH i2c: E2 17 00 [19:52:12]MH_I2C_Read... [19:52:12]Read from MH i2c: E2 17 00 F2 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 13 [19:52:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [19:52:12]wFMCommunicate OK [19:52:12]CreateOFDProtocolMessage done [19:52:12]OFDSenderStorePacket 68462 [19:52:12]StoreOFDPacket docnum=68462 [19:52:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 44 45 07 01 BB 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 F2 1E 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 6E 0B 01 00 35 04 06 00 ED 81 94 9F A5 F2 BF 30 A3 07 80 AC C9 FE [19:52:12]CheckFolder [19:52:12]dirname=/storage/ofd_packets [19:52:12]CheckFolder done [19:52:12]ProducePacketName [19:52:12]name=ofd_packets/00068462 [19:52:12]NVStorageSaveData ofd_packets/00068462 [19:52:12]File name is /storage/ofd_packets/00068462 [19:52:12]Write 301 bytes [19:52:12]NVStorageSaveData done [19:52:12]OFDSenderStorePacket done [19:52:12]KKMCreateOFDPacket done [19:52:12]NVStorageSaveData kkm_last_timestamp [19:52:12]File name is /storage/kkm_last_timestamp [19:52:12]Write 4 bytes [19:52:12]NVStorageSaveData done [19:52:12]ExternCall_PrintAddStr [19:52:12]wPrintStart [19:52:12]Write to MH i2c: 01 00 00 F3 5C 4F [19:52:12]Write i2c OK [19:52:12]MH_I2C_Read... [19:52:12]Read from MH i2c: 01 [19:52:12]MH_I2C_Read... [19:52:12]Read from MH i2c: 01 07 00 [19:52:12]MH_I2C_Read... [19:52:12]Read from MH i2c: 01 07 00 F3 5C 00 02 00 00 00 FF 0F 66 [19:52:12]RasterBufferAndPrint [19:52:12]line Счет N : (1)706570 [19:52:12]line ИНН: 02508201610067 [19:52:12]line Контрольно-Кассовый Чек [19:52:12]line ПРОДАЖА [19:52:12]line ТРК (МРК, ГНК) : 53 [19:52:12]line Товар: 2710124130 [19:52:12]line Аи-92-К-4 [19:52:12]line 5.980 * 66.90 [19:52:12]line = 400.06 [19:52:12]line НДС 12% НСП 1% [19:52:12]line > о реализуемом товаре [19:52:12]line ОКРУГЛЕНИЕ: -0.06 [19:52:12]line ИТОГО: 400.00 [19:52:12]line Внесено: 400.00 [19:52:12]line СДАЧА: 0.00 [19:52:12]line НСП 1% : 3.54 [19:52:12]line НДС 12% : 42.48 [19:52:12]line Наличными: 400.00 [19:52:12]line Безнал.: 0.00 [19:52:12]line Место: АЗС № 62 "Партнер Нефть" [19:52:12]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [19:52:12]line СНО: Общий режим [19:52:12]line Чек 208 03.06.2024 19:52 [19:52:12]line Смена: 324 ФФД: 1.0 [19:52:12]line ЗНМ: 0300000181 [19:52:12]line РНМ: 0000000000098096 [19:52:12]line Версия ККМ: 001 [19:52:12]line ФМ: 0000000000965400 [19:52:12]line ФД: 68462 [19:52:12]line ФПД: 261140800054770 [19:52:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T195218&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68462&fm=261140800054770&tin=02508201610067®Number=0000000000098096&sum=40000 [19:52:13]OFD Sender: Processing packet 68462 [packets to send 26, broken 25] [19:52:13]ProducePacketName [19:52:13]name=ofd_packets/00068462 [19:52:13]OFD Sender: To server: pG, [19:52:13]CommunicateWithHost lk.salyk.kg:30040 [19:52:13]ConnectInit lk.salyk.kg [19:52:13]written 0, free lines is 4095 [19:52:13]Error from MH - 05 [19:52:13]process_action_free close_receipt [19:52:13]json_value_free [19:52:13]json_value_free done [19:52:13]process_json_proto returns [19:52:13]Send response to host [19:52:13]{"protocol":"kg_v1.0","response":{"error":1033,"error_desc":"No paper"}} [19:52:13]free response buf [19:52:13]execute_script done [19:52:13]execute_script returns [19:52:13]free content buf [19:52:13]Sock 5.Close socket [19:52:13]Sock 5.Thread stoped [19:52:13]Connected sock=7 [19:52:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 44 45 07 01 BB 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 F2 1E 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 6E 0B 01 00 35 04 06 00 ED 81 94 9F A5 F2 BF 30 A3 07 80 AC C9 FE [19:52:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 2A 8B 47 00 7F 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 6E 0B 01 00 F4 03 04 00 ED C5 5D 66 B6 04 01 00 00 15 50 26 6F B0 05 EA 66 [19:52:13]CommunicateWithHost err = 0 [19:52:13]CheckOFDResponse [19:52:13]1017 (14) - 77093643461234 [19:52:13]1041 (16) - 0000000000965400 [19:52:13]1040 (4) - 68462 [19:52:13]1012 (4) - 03.06.2024 13:32 [19:52:13]1206 (1) - 0 [19:52:13]OFD Sender: Remove packet 68462 [19:52:13]ProducePacketName [19:52:13]name=ofd_packets/00068462 [19:52:13]NVStorageDeleteData [19:52:13]OFD Sender: No OFD packet to send [19:52:18]OFD Sender: No OFD packet to send [19:52:23]OFD Sender: No OFD packet to send [19:52:28]OFD Sender: No OFD packet to send [19:52:33]OFD Sender: No OFD packet to send [19:52:38]OFD Sender: No OFD packet to send [19:52:43]OFD Sender: No OFD packet to send [19:52:48]OFD Sender: No OFD packet to send [19:52:53]OFD Sender: No OFD packet to send [19:52:58]OFD Sender: No OFD packet to send [19:53:03]OFD Sender: No OFD packet to send [19:53:04]*** FLAG_PRN_PAP1 set [19:53:08]OFD Sender: No OFD packet to send [19:53:13]OFD Sender: No OFD packet to send [19:53:16]*** FLAG_PRN_PAP1 reset [19:53:16]*** FLAG_PRN_PAP2 reset [19:53:18]*** FLAG_PRN_KEY set [19:53:18]OFD Sender: No OFD packet to send [19:53:19]*** FLAG_PRN_KEY reset [19:53:19]*** FLAG_PRN_KEY set [19:53:19]*** FLAG_PRN_KEY reset [19:53:20]*** FLAG_PRN_KEY set [19:53:20]*** FLAG_PRN_KEY reset [19:53:20]*** FLAG_PRN_PAP1 set [19:53:20]*** FLAG_PRN_PAP2 set [19:53:23]OFD Sender: No OFD packet to send [19:53:28]OFD Sender: No OFD packet to send [19:53:33]OFD Sender: No OFD packet to send [19:53:38]OFD Sender: No OFD packet to send [19:53:44]OFD Sender: No OFD packet to send [19:53:49]OFD Sender: No OFD packet to send [00:00:10]/dev/ttyS4 opened [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 00 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 A5 [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:11]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:11]*** Waiting for read because exit forced [00:00:11]*** 10 ms more... [00:00:11]*** MH1903S init start (LINUX_LIGHT) [00:00:11]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:11]*** Serial: 3139303353513838 5400000000572500 (1903SQ88T) [00:00:11]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:11]*** step 0: 5000 (2650, 2350 REF) [00:00:11]*** step 1: 4835 (2500, 2335 REF) [00:00:11]*** step 2: 4676 (2440, 2236 REF) [00:00:11]*** step 3: 4523 (2280, 2243 REF) [00:00:11]*** step 4: 4376 (2160, 2216 REF) [00:00:11]*** step 5: 4235 (2050, 2185 REF) [00:00:11]*** step 6: 4098 (1950, 2148 REF) [00:00:11]*** step 7: 3967 (1870, 2097 REF) [00:00:11]*** step 8: 3840 (1828, 2012 REF) [00:00:11]*** step 9: 3719 (1728, 1991 REF) [00:00:11]*** step 10: 3601 (1675, 1926 REF) [00:00:11]*** step 11: 3488 (1635, 1853 REF) [00:00:11]*** step 12: 3379 (1595, 1784 REF) [00:00:11]*** step 13: 3275 (1565, 1710 REF) [00:00:11]*** step 14: 3174 (1543, 1631 REF) [00:00:11]*** step 15: 3077 (1523, 1554 REF) [00:00:11]*** step 16: 2983 (1503, 1480 REF) [00:00:11]*** step 17: 2893 (1486, 1407 REF) [00:00:11]*** step 18: 2806 (1466, 1340 REF) [00:00:11]*** step 19: 2723 (1426, 1297 REF) [00:00:11]*** step 20: 2642 (1406, 1236 REF) [00:00:11]*** step 21: 2565 (1384, 1181 REF) [00:00:11]*** step 22: 2490 (1364, 1126 REF) [00:00:11]*** step 23: 2418 (1344, 1074 REF) [00:00:11]*** step 24: 2349 (1322, 1027 REF) [00:00:11]*** step 25: 2283 (1302, 981 REF) [00:00:11]*** step 26: 2218 (1282, 936 REF) [00:00:11]*** step 27: 2157 (1262, 895 REF) [00:00:11]*** step 28: 2097 (1242, 855 REF) [00:00:11]*** step 29: 2040 (1222, 818 REF) [00:00:11]*** step 30: 1985 (1202, 783 REF) [00:00:11]*** step 31: 1932 (1191, 741 REF) [00:00:11]*** step 32: 1880 (1181, 699 REF) [00:00:11]*** step 33: 1831 (1171, 660 REF) [00:00:11]*** step 34: 1784 (1161, 623 REF) [00:00:11]*** step 35: 1738 (1151, 587 REF) [00:00:11]*** step 36: 1694 (1141, 553 REF) [00:00:11]*** step 37: 1652 (1131, 521 REF) [00:00:11]*** step 38: 1611 (1121, 490 REF) [00:00:11]*** step 39: 1572 (1111, 461 REF) [00:00:11]*** step 40: 1534 (1103, 431 REF) [00:00:11]*** step 41: 1497 (1093, 404 REF) [00:00:11]*** step 42: 1462 (1083, 379 REF) [00:00:11]*** step 43: 1428 (1073, 355 REF) [00:00:11]*** step 44: 1396 (1063, 333 REF) [00:00:11]*** step 45: 1365 (1053, 312 REF) [00:00:11]*** step 46: 1334 (1043, 291 REF) [00:00:11]*** step 47: 1305 (1033, 272 REF) [00:00:11]*** step 48: 1277 (1023, 254 REF) [00:00:11]*** step 49: 1250 (1013, 237 REF) [00:00:11]*** step 50: 1224 (990, 234 REF) [00:00:11]*** step 51: 1199 (980, 219 REF) [00:00:11]*** step 52: 1175 (970, 205 REF) [00:00:11]*** step 53: 1152 (960, 192 REF) [00:00:11]*** step 54: 1130 (950, 180 REF) [00:00:11]*** step 55: 1108 (940, 168 REF) [00:00:11]*** step 56: 1088 (930, 158 REF) [00:00:11]*** step 57: 1068 (920, 148 REF) [00:00:11]*** step 58: 1049 (910, 139 REF) [00:00:11]*** step 59: 1030 (900, 130 REF) [00:00:11]*** step 60: 1012 (890, 122 REF) [00:00:11]*** step 61: 995 (880, 115 REF) [00:00:11]*** step 62: 979 (870, 109 REF) [00:00:11]*** step 63: 963 (860, 103 REF) [00:00:11]*** step 64: 948 (850, 98 REF) [00:00:11]*** step 65: 933 (840, 93 REF) [00:00:11]*** step 66: 919 (830, 89 REF) [00:00:11]*** step 67: 905 (820, 85 REF) [00:00:11]*** step 68: 892 (810, 82 REF) [00:00:11]*** step 69: 879 (800, 79 REF) [00:00:11]*** step 70: 867 (790, 77 REF) [00:00:11]*** step 71: 855 (780, 75 REF) [00:00:11]*** step 72: 844 (770, 74 REF) [00:00:11]*** step 73: 833 (760, 73 REF) [00:00:11]*** step 74: 822 (750, 72 REF) [00:00:11]*** step 75: 812 (740, 72 REF) [00:00:11]*** step 76: 803 (730, 73 REF) [00:00:11]*** step 77: 793 (720, 73 REF) [00:00:11]*** step 78: 784 (710, 74 REF) [00:00:11]*** step 79: 776 (700, 76 REF) [00:00:11]*** step 80: 767 (690, 77 REF) [00:00:11]*** step 81: 759 (680, 79 REF) [00:00:11]*** step 82: 751 (670, 81 REF) [00:00:11]*** step 83: 744 (660, 84 REF) [00:00:11]*** step 84: 737 (650, 87 REF) [00:00:11]*** step 85: 730 (640, 90 REF) [00:00:11]*** step 86: 723 (630, 93 REF) [00:00:11]*** step 87: 717 (620, 97 REF) [00:00:11]*** step 88: 710 (610, 100 REF) [00:00:11]*** step 89: 705 (600, 105 REF) [00:00:11]*** step 90: 699 [00:00:11]*** step 91: 693 [00:00:11]*** step 92: 688 [00:00:11]*** step 93: 683 [00:00:11]*** step 94: 678 [00:00:11]*** step 95: 673 [00:00:11]*** step 96: 669 [00:00:11]*** step 97: 664 [00:00:11]*** step 98: 660 [00:00:11]*** step 99: 656 [00:00:11]*** step 100: 652 [00:00:11]*** step 101: 648 [00:00:11]*** step 102: 644 [00:00:11]*** step 103: 641 [00:00:11]*** step 104: 638 [00:00:11]*** step 105: 634 [00:00:11]*** step 106: 631 [00:00:11]*** step 107: 628 [00:00:11]*** step 108: 625 [00:00:11]*** step 109: 622 [00:00:11]*** step 110: 620 [00:00:11]*** step 111: 617 [00:00:11]*** step 112: 615 [00:00:11]*** step 113: 612 [00:00:11]*** step 114: 610 [00:00:11]*** step 115: 608 [00:00:11]*** step 116: 605 [00:00:11]*** step 117: 603 [00:00:11]*** step 118: 601 [00:00:11]*** step 119: 599 [00:00:11]*** printer: Printer HW initialized [00:00:11]*** initSamCard finished [00:00:11]*** RTC: 28179636+1689264818=1717444454 [00:00:11]*** BPK Status Register BPK_RDY = 0x0 [00:00:11]*** SEN State Register SEN_STATE = 0x200ff [00:00:11]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:11]*** Analog Control Register 0 SEN_ANA0 = 0x33530623 [00:00:11]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 00 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 A6 [00:00:12]Are we in boot? [00:00:12]We are not in boot now [00:00:12]Write to MH i2c: 01 00 00 04 00 04 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 07 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:12]Model is 3 [00:00:12]MH firmware is 30620 [00:00:12]MH boot firmware is 3 [00:00:12]MH_SetPrinterDots 448 [00:00:12]HeadWidthInBytes 56 [00:00:12]maxmasksize 7 [00:00:12]Write to MH i2c: D6 06 00 05 00 46 00 40 00 FF FF 64 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 01 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:12]Write to MH i2c: D5 00 00 06 00 DA [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 01 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]ExternCall_SetCallbacks [00:00:12]NVStorageInit [00:00:12]MH_GetDate [00:00:12]Write to MH i2c: F0 00 00 07 00 F6 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 09 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 09 00 07 00 00 67 1F 5E 66 B2 22 B0 64 31 [19:54:15]Current date/time: 03.06.2024 19:54 [19:54:15]FM_Init [19:54:15]wFMConnect [19:54:15]MH_SAM_On [19:54:15]Write to MH i2c: E0 00 00 08 00 E7 [19:54:15]Write i2c OK [19:54:15]MH_I2C_Read... [19:54:15]*** iso7816_init finished! [19:54:15]*** atr: [19:54:15]*** 0F 3B D5 18 FF 81 91 FE [19:54:15]*** 1F C3 80 73 C8 21 10 0A [19:54:15]*** 00 00 00 00 00 00 00 00 [19:54:15]*** 00 00 00 00 00 00 00 00 [19:54:15]*** 00 00 00 00 00 00 00 00 [19:54:15]*** 00 00 00 00 00 00 00 00 [19:54:15]*** 00 00 00 00 00 00 00 00 [19:54:15]*** 00 00 00 00 00 00 00 00 [19:54:15]Read from MH i2c: E0 [19:54:15]MH_I2C_Read... [19:54:15]Read from MH i2c: E0 10 00 [19:54:15]MH_I2C_Read... [19:54:15]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [19:54:15]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [19:54:15]wFMCommunicate request_size=10 [19:54:15]MH_SAM_APDU [19:54:15]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [19:54:15]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [19:54:15]Write i2c OK [19:54:15]MH_I2C_Read... [19:54:15]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [19:54:15]Read from MH i2c: E2 [19:54:15]MH_I2C_Read... [19:54:15]Read from MH i2c: E2 03 00 [19:54:15]MH_I2C_Read... [19:54:15]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [19:54:15]RAPDU: 90 00 [19:54:15]wFMCommunicate OK [19:54:15]wFMCommunicate request_size=4 [19:54:15]MH_SAM_APDU [19:54:15]CAPDU: 80 11 00 00 [19:54:15]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [19:54:15]Write i2c OK [19:54:15]MH_I2C_Read... [19:54:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:54:15]Read from MH i2c: E2 [19:54:15]MH_I2C_Read... [19:54:15]Read from MH i2c: E2 17 00 [19:54:15]MH_I2C_Read... [19:54:15]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 CF [19:54:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [19:54:15]wFMCommunicate OK [19:54:15]Detected FM SN is 0000000000965400 [19:54:15]Stored FM SN is 0000000000965400 [19:54:15]wFMCommunicate request_size=9 [19:54:15]MH_SAM_APDU [19:54:15]CAPDU: 80 16 00 00 04 4A 22 00 00 [19:54:15]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 4A 22 00 00 00 00 FE [19:54:15]Write i2c OK [19:54:15]MH_I2C_Read... [19:54:15]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [19:54:15]Read from MH i2c: E2 [19:54:15]MH_I2C_Read... [19:54:15]Read from MH i2c: E2 03 00 [19:54:15]MH_I2C_Read... [19:54:15]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [19:54:15]RAPDU: 90 00 [19:54:15]wFMCommunicate OK [19:54:15]FM PIN OK [19:54:15]wFMCommunicate request_size=8 [19:54:15]MH_SAM_APDU [19:54:15]CAPDU: 80 14 04 00 03 02 00 01 [19:54:15]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [19:54:15]Write i2c OK [19:54:15]MH_I2C_Read... [19:54:15]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [19:54:15]Read from MH i2c: E2 [19:54:15]MH_I2C_Read... [19:54:15]Read from MH i2c: E2 03 00 [19:54:15]MH_I2C_Read... [19:54:15]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [19:54:15]RAPDU: 90 00 [19:54:15]wFMCommunicate OK [19:54:15]wFMCommunicate request_size=13 [19:54:15]MH_SAM_APDU [19:54:15]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [19:54:15]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [19:54:15]Write i2c OK [19:54:15]MH_I2C_Read... [19:54:15]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [19:54:15]Read from MH i2c: E2 [19:54:15]MH_I2C_Read... [19:54:15]Read from MH i2c: E2 03 00 [19:54:15]MH_I2C_Read... [19:54:15]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [19:54:15]RAPDU: 90 00 [19:54:15]wFMCommunicate OK [19:54:15]wFMCommunicate request_size=4 [19:54:15]MH_SAM_APDU [19:54:15]CAPDU: 80 11 00 00 [19:54:15]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [19:54:15]Write i2c OK [19:54:15]MH_I2C_Read... [19:54:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:54:15]Read from MH i2c: E2 [19:54:15]MH_I2C_Read... [19:54:15]Read from MH i2c: E2 17 00 [19:54:15]MH_I2C_Read... [19:54:15]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 D3 [19:54:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [19:54:15]wFMCommunicate OK [19:54:15]DocumentArchiveInit [19:54:15]Start Httpd... [19:54:15]Httpd thread 3067514212 created [19:54:15]Write to MH i2c: 01 00 00 0F 00 0F [19:54:15]Write i2c OK [19:54:15]MH_I2C_Read... [19:54:15]Read from MH i2c: 01 [19:54:15]MH_I2C_Read... [19:54:15]Read from MH i2c: 01 07 00 [19:54:15]MH_I2C_Read... [19:54:15]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [19:54:15]MH Int Process started [19:54:15]Allocated Socket 8 [19:54:15]Bind OK [19:54:15]Listen OK [19:54:15]httpd running on port 8080 [19:54:15]Waiting for new connection... [19:54:15]OFD Sender: No OFD packet to send [19:54:16]accept exits with 9 [19:54:16]New connection [19:54:16]New thread 3067227492 created [19:54:16]Waiting for new connection... [19:54:16] Sock 9.Parse request [19:54:16]Sock 9.Check first char [19:54:16]Sock 9.First char is OK [19:54:16]request: POST /json_proto HTTP/1.0 [19:54:16]Method: POST [19:54:16]URL: /json_proto [19:54:16]Method is POST - this is cgi request [19:54:16]url: /json_proto [19:54:16]query_string will be loaded in cgi processing [19:54:16]execute_cgi json_proto POST (null) [19:54:16]execute_cgi path=json_proto method=POST [19:54:16]POST find Content-Length [19:54:16]Host: 172.17.36.132:8080 [19:54:16]Content-Length: 215 [19:54:16]Content-Type: application/json [19:54:16] [19:54:16]POST finish read [19:54:16]Found Content-Length = 215 [19:54:16]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" ] } } [19:54:16]execute_script... [19:54:16]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" ] } } [19:54:16]POST & json_proto [19:54:16]process_json_proto [19:54:16]json parsed OK: [19:54:16]protocol is kg_v1.0 [19:54:16]action value=get_value [19:54:16]process_action get_value [19:54:16]cmd_get_value [19:54:16]process_action get_value done [19:54:16]requested_data is exist [19:54:16]produce_requested_data [19:54:16]requested_item kkm.sn is exist - process it [19:54:16]requested_item kkm.ver is exist - process it [19:54:16]requested_item fm.sn is exist - process it [19:54:16]wFMCommunicate request_size=4 [19:54:16]MH_SAM_APDU [19:54:16]CAPDU: 80 11 00 00 [19:54:16]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [19:54:16]Write i2c OK [19:54:16]MH_I2C_Read... [19:54:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:54:16]Read from MH i2c: E2 [19:54:16]MH_I2C_Read... [19:54:16]Read from MH i2c: E2 17 00 [19:54:16]MH_I2C_Read... [19:54:16]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 D5 [19:54:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [19:54:16]wFMCommunicate OK [19:54:16]requested_item fd.num is exist - process it [19:54:16]SAM_PROTO_GetFieldsCounters [19:54:16]wFMCommunicate request_size=4 [19:54:16]MH_SAM_APDU [19:54:16]CAPDU: 80 13 00 00 [19:54:16]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [19:54:16]Write i2c OK [19:54:16]MH_I2C_Read... [19:54:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:54:16]Read from MH i2c: E2 [19:54:16]MH_I2C_Read... [19:54:16]Read from MH i2c: E2 62 00 [19:54:16]MH_I2C_Read... [19:54:16]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 6E 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 DC [19:54:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 6E 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:54:16]wFMCommunicate OK [19:54:16]SAM_PROTO_GetFieldsCounters done [19:54:16]requested_item shift.num is exist - process it [19:54:16]requested_item shift.opened is exist - process it [19:54:16]req_shift_opened [19:54:16]FM_GetShiftState [19:54:16]SAM_PROTO_GetShiftState [19:54:16]wFMCommunicate request_size=4 [19:54:16]MH_SAM_APDU [19:54:16]CAPDU: 80 13 01 00 [19:54:16]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [19:54:16]Write i2c OK [19:54:16]MH_I2C_Read... [19:54:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:54:16]Read from MH i2c: E2 [19:54:16]MH_I2C_Read... [19:54:16]Read from MH i2c: E2 0E 00 [19:54:16]MH_I2C_Read... [19:54:16]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 6A [19:54:16]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [19:54:16]wFMCommunicate OK [19:54:16]SAM_PROTO_GetShiftState done [19:54:16]FM_GetShiftState done [19:54:16]req_shift_opened done [19:54:16]requested_item shift.open_date is exist - process it [19:54:16]req_shift_open_date [19:54:16]req_shift_open_date done [19:54:16]produce_requested_data done [19:54:16]produce_requested_data return {"kkm.sn":"0300000181","kkm.ver":"001","fm.sn":"0000000000965400","fd.num":68462,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [19:54:16]process_action_free get_value [19:54:16]json_value_free [19:54:16]json_value_free done [19:54:16]process_json_proto returns [19:54:16]Send response to host [19:54:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000181","kkm.ver":"001","fm.sn":"0000000000965400","fd.num":68462,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [19:54:16]free response buf [19:54:16]execute_script done [19:54:16]execute_script returns [19:54:16]free content buf [19:54:16]Sock 9.Close socket [19:54:16]Sock 9.Thread stoped [19:54:16]accept exits with 6 [19:54:16]New connection [19:54:16]New thread 3067084132 created [19:54:16]Thread 3067227492 joined [19:54:16]Waiting for new connection... [19:54:16] Sock 6.Parse request [19:54:16]Sock 6.Check first char [19:54:16]Sock 6.First char is OK [19:54:16]request: POST /json_proto HTTP/1.0 [19:54:16]Method: POST [19:54:16]URL: /json_proto [19:54:16]Method is POST - this is cgi request [19:54:16]url: /json_proto [19:54:16]query_string will be loaded in cgi processing [19:54:16]execute_cgi json_proto POST (null) [19:54:16]execute_cgi path=json_proto method=POST [19:54:16]POST find Content-Length [19:54:16]Host: 172.17.36.132:8080 [19:54:16]Content-Length: 331 [19:54:16]Content-Type: application/json [19:54:16] [19:54:16]POST finish read [19:54:16]Found Content-Length = 331 [19:54:16]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" ] } } [19:54:16]execute_script... [19:54:16]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" ] } } [19:54:16]POST & json_proto [19:54:16]process_json_proto [19:54:16]json parsed OK: [19:54:16]protocol is kg_v1.0 [19:54:16]action value=get_value [19:54:16]process_action get_value [19:54:16]cmd_get_value [19:54:16]process_action get_value done [19:54:16]requested_data is exist [19:54:16]produce_requested_data [19:54:16]requested_item fm.sale.total is exist - process it [19:54:16]SAM_PROTO_GetFMData [19:54:16]wFMCommunicate request_size=4 [19:54:16]MH_SAM_APDU [19:54:16]CAPDU: 80 13 03 00 [19:54:16]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [19:54:16]Write i2c OK [19:54:16]MH_I2C_Read... [19:54:17]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [19:54:17]Read from MH i2c: E2 [19:54:17]MH_I2C_Read... [19:54:17]Read from MH i2c: E2 FD 00 [19:54:17]MH_I2C_Read... [19:54:17]Read from MH i2c: E2 FD 00 13 00 00 C5 04 85 04 C1 04 6E 04 04 00 E6 08 01 00 69 04 A3 00 6F 04 04 00 D0 03 01 00 B1 04 05 00 25 A5 C9 39 01 70 04 05 00 68 31 2B 0D 01 72 04 04 00 BD 73 9E 2C 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 DF 30 55 21 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 21 00 C7 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 16 05 00 00 B1 04 04 00 F0 7E E6 0E 70 04 04 00 F0 7E E6 0E 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 8F 22 95 01 EF 03 09 90 00 A7 [19:54:17]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 E6 08 01 00 69 04 A3 00 6F 04 04 00 D0 03 01 00 B1 04 05 00 25 A5 C9 39 01 70 04 05 00 68 31 2B 0D 01 72 04 04 00 BD 73 9E 2C 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 DF 30 55 21 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 21 00 C7 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 16 05 00 00 B1 04 04 00 F0 7E E6 0E 70 04 04 00 F0 7E E6 0E 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 8F 22 95 01 EF 03 09 90 00 [19:54:17]wFMCommunicate OK [19:54:17]wFMCommunicate request_size=4 [19:54:17]MH_SAM_APDU [19:54:17]CAPDU: 80 17 00 00 [19:54:17]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [19:54:17]Write i2c OK [19:54:17]MH_I2C_Read... [19:54:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:54:17]Read from MH i2c: E2 [19:54:17]MH_I2C_Read... [19:54:17]Read from MH i2c: E2 FD 00 [19:54:17]MH_I2C_Read... [19:54:17]Read from MH i2c: E2 FD 00 14 00 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F C2 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 9C [19:54:17]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 6F C2 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [19:54:17]wFMCommunicate OK [19:54:17]wFMCommunicate request_size=4 [19:54:17]MH_SAM_APDU [19:54:17]CAPDU: 80 17 00 00 [19:54:17]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [19:54:17]Write i2c OK [19:54:17]MH_I2C_Read... [19:54:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:54:17]Read from MH i2c: E2 [19:54:17]MH_I2C_Read... [19:54:17]Read from MH i2c: E2 FD 00 [19:54:17]MH_I2C_Read... [19:54:17]Read from MH i2c: E2 FD 00 15 00 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 A7 [19:54:17]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [19:54:17]wFMCommunicate OK [19:54:17]wFMCommunicate request_size=4 [19:54:17]MH_SAM_APDU [19:54:17]CAPDU: 80 17 00 00 [19:54:17]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [19:54:17]Write i2c OK [19:54:17]MH_I2C_Read... [19:54:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:54:18]Read from MH i2c: E2 [19:54:18]MH_I2C_Read... [19:54:18]Read from MH i2c: E2 FD 00 [19:54:18]MH_I2C_Read... [19:54:18]Read from MH i2c: E2 FD 00 16 00 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 22 [19:54:18]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [19:54:18]wFMCommunicate OK [19:54:18]wFMCommunicate request_size=4 [19:54:18]MH_SAM_APDU [19:54:18]CAPDU: 80 17 00 00 [19:54:18]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [19:54:18]Write i2c OK [19:54:18]MH_I2C_Read... [19:54:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [19:54:18]Read from MH i2c: E2 [19:54:18]MH_I2C_Read... [19:54:18]Read from MH i2c: E2 E2 00 [19:54:18]MH_I2C_Read... [19:54:18]Read from MH i2c: E2 E2 00 17 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 75 [19:54:18]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [19:54:18]wFMCommunicate OK [19:54:18]SAM_PROTO_GetFMData done [19:54:18]requested_item fm.sale_refund.total is exist - process it [19:54:18]requested_item fm.buy.total is exist - process it [19:54:18]requested_item shift.sale.total is exist - process it [19:54:18]SAM_PROTO_GetShiftData [19:54:18]wFMCommunicate request_size=4 [19:54:18]MH_SAM_APDU [19:54:18]CAPDU: 80 13 02 00 [19:54:18]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [19:54:18]Write i2c OK [19:54:18]MH_I2C_Read... [19:54:18]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [19:54:18]Read from MH i2c: E2 [19:54:18]MH_I2C_Read... [19:54:18]Read from MH i2c: E2 FD 00 [19:54:18]MH_I2C_Read... [19:54:18]Read from MH i2c: E2 FD 00 18 00 00 BC 04 AA 04 B8 04 6E 04 04 00 D0 00 00 00 69 04 9E 00 6F 04 04 00 C5 00 00 00 B1 04 04 00 73 78 77 01 70 04 04 00 24 92 34 01 72 04 03 00 4F E6 42 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 1F E1 27 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 BF 52 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0B 00 00 00 B1 04 03 00 00 17 2A 70 04 03 00 00 17 2A 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 51 78 04 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 99 [19:54:18]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 D0 00 00 00 69 04 9E 00 6F 04 04 00 C5 00 00 00 B1 04 04 00 73 78 77 01 70 04 04 00 24 92 34 01 72 04 03 00 4F E6 42 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 1F E1 27 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 BF 52 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0B 00 00 00 B1 04 03 00 00 17 2A 70 04 03 00 00 17 2A 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 51 78 04 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [19:54:18]wFMCommunicate OK [19:54:18]wFMCommunicate request_size=4 [19:54:18]MH_SAM_APDU [19:54:18]CAPDU: 80 17 00 00 [19:54:18]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [19:54:18]Write i2c OK [19:54:18]MH_I2C_Read... [19:54:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:54:19]Read from MH i2c: E2 [19:54:19]MH_I2C_Read... [19:54:19]Read from MH i2c: E2 FD 00 [19:54:19]MH_I2C_Read... [19:54:19]Read from MH i2c: E2 FD 00 19 00 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 5D 5F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 90 00 FF [19:54:19]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 5D 5F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 90 00 [19:54:19]wFMCommunicate OK [19:54:19]wFMCommunicate request_size=4 [19:54:19]MH_SAM_APDU [19:54:19]CAPDU: 80 17 00 00 [19:54:19]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [19:54:19]Write i2c OK [19:54:19]MH_I2C_Read... [19:54:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:54:19]Read from MH i2c: E2 [19:54:19]MH_I2C_Read... [19:54:19]Read from MH i2c: E2 FD 00 [19:54:19]MH_I2C_Read... [19:54:19]Read from MH i2c: E2 FD 00 1A 00 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 90 00 C3 [19:54:19]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 90 00 [19:54:19]wFMCommunicate OK [19:54:19]wFMCommunicate request_size=4 [19:54:19]MH_SAM_APDU [19:54:19]CAPDU: 80 17 00 00 [19:54:19]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [19:54:19]Write i2c OK [19:54:19]MH_I2C_Read... [19:54:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:54:19]Read from MH i2c: E2 [19:54:19]MH_I2C_Read... [19:54:19]Read from MH i2c: E2 FD 00 [19:54:19]MH_I2C_Read... [19:54:19]Read from MH i2c: E2 FD 00 1B 00 00 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 1C [19:54:19]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [19:54:19]wFMCommunicate OK [19:54:19]wFMCommunicate request_size=4 [19:54:19]MH_SAM_APDU [19:54:19]CAPDU: 80 17 00 00 [19:54:19]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [19:54:19]Write i2c OK [19:54:19]MH_I2C_Read... [19:54:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [19:54:20]Read from MH i2c: E2 [19:54:20]MH_I2C_Read... [19:54:20]Read from MH i2c: E2 D9 00 [19:54:20]MH_I2C_Read... [19:54:20]Read from MH i2c: E2 D9 00 1C 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7B [19:54:20]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [19:54:20]wFMCommunicate OK [19:54:20]SAM_PROTO_GetShiftData done [19:54:20]requested_item shift.sale.total_cash is exist - process it [19:54:20]requested_item shift.sale_refund.total is exist - process it [19:54:20]requested_item shift.sale_refund.total_cash is exist - process it [19:54:20]requested_item shift.buy.total is exist - process it [19:54:20]requested_item shift.buy.total_cash is exist - process it [19:54:20]produce_requested_data done [19:54:20]produce_requested_data return {"fm.sale.total":52644836.21,"fm.sale_refund.total":2499868.00,"fm.buy.total":0.00,"shift.sale.total":246068.35,"shift.sale.total_cash":202225.00,"shift.sale_refund.total":27584.00,"shift.sale_refund.total_cash":27584.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [19:54:20]process_action_free get_value [19:54:20]json_value_free [19:54:20]json_value_free done [19:54:20]process_json_proto returns [19:54:20]Send response to host [19:54:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":52644836.21,"fm.sale_refund.total":2499868.00,"fm.buy.total":0.00,"shift.sale.total":246068.35,"shift.sale.total_cash":202225.00,"shift.sale_refund.total":27584.00,"shift.sale_refund.total_cash":27584.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [19:54:20]free response buf [19:54:20]execute_script done [19:54:20]execute_script returns [19:54:20]free content buf [19:54:20]Sock 6.Close socket [19:54:20]Sock 6.Thread stoped [19:54:20]accept exits with 9 [19:54:20]New connection [19:54:20]New thread 3067227492 created [19:54:20]Thread 3067084132 joined [19:54:20]Waiting for new connection... [19:54:20] Sock 9.Parse request [19:54:20]Sock 9.Check first char [19:54:20]Sock 9.First char is OK [19:54:20]request: POST /json_proto HTTP/1.0 [19:54:20]Method: POST [19:54:20]URL: /json_proto [19:54:20]Method is POST - this is cgi request [19:54:20]url: /json_proto [19:54:20]query_string will be loaded in cgi processing [19:54:20]execute_cgi json_proto POST (null) [19:54:20]execute_cgi path=json_proto method=POST [19:54:20]POST find Content-Length [19:54:20]Host: 172.17.36.132:8080 [19:54:20]Content-Length: 144 [19:54:20]Content-Type: application/json [19:54:20] [19:54:20]POST finish read [19:54:20]Found Content-Length = 144 [19:54:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [19:54:20]execute_script... [19:54:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [19:54:20]POST & json_proto [19:54:20]process_json_proto [19:54:20]json parsed OK: [19:54:20]protocol is kg_v1.0 [19:54:20]action value=print_doc [19:54:20]process_action print_doc [19:54:20]ExternCall_PrintAddStr [19:54:20]wPrintStart [19:54:20]Write to MH i2c: 01 00 00 1D 00 1D [19:54:20]Write i2c OK [19:54:20]MH_I2C_Read... [19:54:20]Read from MH i2c: 01 [19:54:20]MH_I2C_Read... [19:54:20]Read from MH i2c: 01 07 00 [19:54:20]MH_I2C_Read... [19:54:20]Read from MH i2c: 01 07 00 1D 00 00 00 00 00 00 FF 0F 32 [19:54:20]RasterBufferAndPrint [19:54:20]line Счет N : (1)706570 [19:54:20]line ИНН: 02508201610067 [19:54:20]line Контрольно-Кассовый Чек [19:54:20]line ПРОДАЖА [19:54:20]line ТРК (МРК, ГНК) : 53 [19:54:20]line Товар: 2710124130 [19:54:20]line Аи-92-К-4 [19:54:20]line 5.980 * 66.90 [19:54:20]line = 400.06 [19:54:20]line НДС 12% НСП 1% [19:54:20]line > о реализуемом товаре [19:54:20]line ОКРУГЛЕНИЕ: -0.06 [19:54:20]line ИТОГО: 400.00 [19:54:20]line Внесено: 400.00 [19:54:20]line СДАЧА: 0.00 [19:54:20]line НСП 1% : 3.54 [19:54:20]line НДС 12% : 42.48 [19:54:20]line Наличными: 400.00 [19:54:20]line Безнал.: 0.00 [19:54:20]line Место: АЗС № 62 "Партнер Нефть" [19:54:20]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [19:54:20]line СНО: Общий режим [19:54:20]line Чек 208 03.06.2024 19:52 [19:54:20]line Смена: 324 ФФД: 1.0 [19:54:20]line ЗНМ: 0300000181 [19:54:20]line РНМ: 0000000000098096 [19:54:20]line Версия ККМ: 001 [19:54:20]line ФМ: 0000000000965400 [19:54:20]line ФД: 68462 [19:54:20]line ФПД: 261140800054770 [19:54:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T195218&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68462&fm=261140800054770&tin=02508201610067®Number=0000000000098096&sum=40000 [19:54:20]written 0, free lines is 4095 [19:54:20]OFD Sender: No OFD packet to send [19:54:20]Write to MH i2c: 01 00 00 48 00 48 [19:54:20]Write i2c OK [19:54:20]MH_I2C_Read... [19:54:20]Read from MH i2c: 01 [19:54:20]MH_I2C_Read... [19:54:20]Read from MH i2c: 01 07 00 [19:54:20]MH_I2C_Read... [19:54:20]Read from MH i2c: 01 07 00 48 00 00 00 00 00 00 D7 0C 32 [19:54:20]RasterBufferAndPrint [19:54:20]line [19:54:20]line [19:54:20]line [19:54:20]line [19:54:20]line [19:54:20]written 0, free lines is 3303 [19:54:20]MH_Cut [19:54:20]Write to MH i2c: D1 01 00 4F 00 01 21 [19:54:20]Write i2c OK [19:54:20]MH_I2C_Read... [19:54:20]Read from MH i2c: D1 [19:54:20]MH_I2C_Read... [19:54:20]Read from MH i2c: D1 01 00 [19:54:20]MH_I2C_Read... [19:54:20]Read from MH i2c: D1 01 00 4F 00 00 20 [19:54:20]Write to MH i2c: 01 00 00 50 00 50 [19:54:20]Write i2c OK [19:54:20]MH_I2C_Read... [19:54:21]*** Cut start [19:54:21]*** Partial cut [19:54:21]*** CUTSNS_PIN = 1 [19:54:21]*** CUTSNS_PIN = 0 [19:54:21]*** Brake cut motor [19:54:22]Read from MH i2c: 01 [19:54:22]MH_I2C_Read... [19:54:22]*** Stop cut motor [19:54:22]*** Cut end [19:54:22]Read from MH i2c: 01 07 00 [19:54:22]MH_I2C_Read... [19:54:22]Read from MH i2c: 01 07 00 50 00 00 00 00 00 00 FF 0F 65 [19:54:22]process_action print_doc done [19:54:22]requested_data is exist [19:54:22]produce_requested_data [19:54:22]produce_requested_data return (null) [19:54:22]process_action_free print_doc [19:54:22]json_value_free [19:54:22]json_value_free done [19:54:22]process_json_proto returns [19:54:22]Send response to host [19:54:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [19:54:22]free response buf [19:54:22]execute_script done [19:54:22]execute_script returns [19:54:22]free content buf [19:54:22]Sock 9.Close socket [19:54:22]Sock 9.Thread stoped [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:29]accept exits with 6 [19:56:29]New connection [19:56:29]New thread 3067084132 created [19:56:29]Thread 3067227492 joined [19:56:29]Waiting for new connection... [19:56:29] Sock 6.Parse request [19:56:29]Sock 6.Check first char [19:56:29]Sock 6.First char is OK [19:56:29]request: POST /json_proto HTTP/1.0 [19:56:29]Method: POST [19:56:29]URL: /json_proto [19:56:29]Method is POST - this is cgi request [19:56:29]url: /json_proto [19:56:29]query_string will be loaded in cgi processing [19:56:29]execute_cgi json_proto POST (null) [19:56:29]execute_cgi path=json_proto method=POST [19:56:29]POST find Content-Length [19:56:29]Host: 172.17.36.132:8080 [19:56:29]Content-Length: 1145 [19:56:29]Content-Type: application/json [19:56:29] [19:56:29]POST finish read [19:56:29]Found Content-Length = 1145 [19:56:29]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706572\u000A03.06.2024 19:33\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 63\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 40.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 2676.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30076287\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:56:29]execute_script... [19:56:29]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706572\u000A03.06.2024 19:33\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 63\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 40.000 x 66.90\u000A\u0418\u0422\u041E\u0413: 2676.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30076287\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:56:29]POST & json_proto [19:56:29]process_json_proto [19:56:29]json parsed OK: [19:56:29]protocol is kg_v1.0 [19:56:29]action value=print_text [19:56:29]process_action print_text [19:56:29]cmd_print_text [19:56:29]ExternCall_PrintAddStr [19:56:29]wPrintStart [19:56:29]Write to MH i2c: 01 00 00 51 00 51 [19:56:29]Write i2c OK [19:56:29]MH_I2C_Read... [19:56:29]Read from MH i2c: 01 [19:56:29]MH_I2C_Read... [19:56:29]Read from MH i2c: 01 07 00 [19:56:29]MH_I2C_Read... [19:56:29]Read from MH i2c: 01 07 00 51 00 00 00 00 00 00 FF 0F 66 [19:56:29]RasterBufferAndPrint [19:56:29]line *****ТОВАРНЫЙ ЧЕК***** [19:56:29]line АЗС 62 [19:56:29]line Партнер нефть [19:56:29]line 02508201610067 [19:56:29]line Кассир : Балаев А. [19:56:29]line Счет N : (1)706572 [19:56:29]line 03.06.2024 19:33 [19:56:29]line ПРОДАЖА [19:56:29]line ТРК (МРК, ГНК): 63 [19:56:29]line Вид ГСМ : 2710124130 [19:56:29]line Аи-92-К-4 [19:56:29]line 40.000 x 66.90 [19:56:29]line ИТОГ: 2676.00 [19:56:29]line Тип оплаты: Талоны: ТК ГПНА Online [19:56:29]line 30076287 [19:56:29]line ______________________ [19:56:29]line (подпись) [19:56:29]written 0, free lines is 4095 [19:56:29]Write to MH i2c: 01 00 00 65 00 65 [19:56:29]Write i2c OK [19:56:29]MH_I2C_Read... [19:56:29]Read from MH i2c: 01 [19:56:29]MH_I2C_Read... [19:56:29]Read from MH i2c: 01 07 00 [19:56:29]MH_I2C_Read... [19:56:29]Read from MH i2c: 01 07 00 65 00 00 00 00 00 00 11 0E 8B [19:56:29]RasterBufferAndPrint [19:56:29]line [19:56:29]line [19:56:29]line [19:56:29]line [19:56:29]line [19:56:29]written 0, free lines is 3602 [19:56:29]MH_Cut [19:56:29]Write to MH i2c: D1 01 00 6C 00 01 3E [19:56:29]Write i2c OK [19:56:29]MH_I2C_Read... [19:56:29]Read from MH i2c: D1 [19:56:29]MH_I2C_Read... [19:56:29]Read from MH i2c: D1 01 00 [19:56:29]MH_I2C_Read... [19:56:29]Read from MH i2c: D1 01 00 6C 00 00 3D [19:56:29]Write to MH i2c: 01 00 00 6D 00 6D [19:56:29]Write i2c OK [19:56:29]MH_I2C_Read... [19:56:29]*** Cut start [19:56:29]*** Partial cut [19:56:29]*** CUTSNS_PIN = 1 [19:56:29]*** CUTSNS_PIN = 0 [19:56:30]*** Brake cut motor [19:56:30]Read from MH i2c: 01 [19:56:30]MH_I2C_Read... [19:56:30]*** Stop cut motor [19:56:30]*** Cut end [19:56:30]Read from MH i2c: 01 07 00 [19:56:30]MH_I2C_Read... [19:56:30]Read from MH i2c: 01 07 00 6D 00 00 00 00 00 00 FF 0F 82 [19:56:30]process_action print_text done [19:56:30]requested_data is exist [19:56:30]produce_requested_data [19:56:30]requested_item fm.sn is exist - process it [19:56:30]wFMCommunicate request_size=4 [19:56:30]MH_SAM_APDU [19:56:30]CAPDU: 80 11 00 00 [19:56:30]Write to MH i2c: E2 08 00 6E 00 80 11 00 00 00 00 00 00 E8 [19:56:30]Write i2c OK [19:56:30]MH_I2C_Read... [19:56:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:56:30]Read from MH i2c: E2 [19:56:30]MH_I2C_Read... [19:56:30]Read from MH i2c: E2 17 00 [19:56:30]MH_I2C_Read... [19:56:30]Read from MH i2c: E2 17 00 6E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 33 [19:56:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [19:56:30]wFMCommunicate OK [19:56:30]requested_item fd.num is exist - process it [19:56:30]SAM_PROTO_GetFieldsCounters [19:56:30]wFMCommunicate request_size=4 [19:56:30]MH_SAM_APDU [19:56:30]CAPDU: 80 13 00 00 [19:56:30]Write to MH i2c: E2 08 00 6F 00 80 13 00 00 00 00 00 00 EB [19:56:30]Write i2c OK [19:56:30]MH_I2C_Read... [19:56:30]OFD Sender: No OFD packet to send [19:56:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:56:30]Read from MH i2c: E2 [19:56:30]MH_I2C_Read... [19:56:30]Read from MH i2c: E2 62 00 [19:56:30]MH_I2C_Read... [19:56:30]Read from MH i2c: E2 62 00 6F 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 6E 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 3A [19:56:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 6E 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:56:30]wFMCommunicate OK [19:56:30]SAM_PROTO_GetFieldsCounters done [19:56:30]requested_item shift.num is exist - process it [19:56:30]requested_item shift.opened is exist - process it [19:56:30]req_shift_opened [19:56:30]FM_GetShiftState [19:56:30]SAM_PROTO_GetShiftState [19:56:30]wFMCommunicate request_size=4 [19:56:30]MH_SAM_APDU [19:56:30]CAPDU: 80 13 01 00 [19:56:30]Write to MH i2c: E2 08 00 70 00 80 13 01 00 00 00 00 00 ED [19:56:30]Write i2c OK [19:56:30]MH_I2C_Read... [19:56:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:56:30]Read from MH i2c: E2 [19:56:30]MH_I2C_Read... [19:56:30]Read from MH i2c: E2 0E 00 [19:56:30]MH_I2C_Read... [19:56:30]Read from MH i2c: E2 0E 00 70 00 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 C8 [19:56:30]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [19:56:30]wFMCommunicate OK [19:56:30]SAM_PROTO_GetShiftState done [19:56:30]FM_GetShiftState done [19:56:30]req_shift_opened done [19:56:30]requested_item shift.open_date is exist - process it [19:56:30]req_shift_open_date [19:56:30]req_shift_open_date done [19:56:30]produce_requested_data done [19:56:30]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68462,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [19:56:30]process_action_free print_text [19:56:30]json_value_free [19:56:30]json_value_free done [19:56:30]process_json_proto returns [19:56:30]Send response to host [19:56:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68462,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [19:56:30]free response buf [19:56:30]execute_script done [19:56:30]execute_script returns [19:56:30]free content buf [19:56:30]Sock 6.Close socket [19:56:30]Sock 6.Thread stoped [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:32]accept exits with 9 [19:57:32]New connection [19:57:32]New thread 3067227492 created [19:57:32]Thread 3067084132 joined [19:57:32]Waiting for new connection... [19:57:32] Sock 9.Parse request [19:57:32]Sock 9.Check first char [19:57:32]Sock 9.First char is OK [19:57:32]request: POST /json_proto HTTP/1.0 [19:57:32]Method: POST [19:57:32]URL: /json_proto [19:57:32]Method is POST - this is cgi request [19:57:32]url: /json_proto [19:57:32]query_string will be loaded in cgi processing [19:57:32]execute_cgi json_proto POST (null) [19:57:32]execute_cgi path=json_proto method=POST [19:57:32]POST find Content-Length [19:57:32]Host: 172.17.36.132:8080 [19:57:32]Content-Length: 841 [19:57:32]Content-Type: application/json [19:57:32] [19:57:32]POST finish read [19:57:32]Found Content-Length = 841 [19:57:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706573", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 11.340, "sum" : 758.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 758.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:57:32]execute_script... [19:57:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706573", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 11.340, "sum" : 758.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 758.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:57:32]POST & json_proto [19:57:32]process_json_proto [19:57:32]json parsed OK: [19:57:32]protocol is kg_v1.0 [19:57:32]action value=close_receipt [19:57:32]process_action close_receipt [19:57:32]cmd_close_receipt [19:57:32]MH_GetDate [19:57:32]Write to MH i2c: F0 00 00 71 00 60 [19:57:32]Write i2c OK [19:57:32]MH_I2C_Read... [19:57:32]Read from MH i2c: F0 [19:57:32]MH_I2C_Read... [19:57:32]Read from MH i2c: F0 09 00 [19:57:32]MH_I2C_Read... [19:57:32]Read from MH i2c: F0 09 00 71 00 00 2D 20 5E 66 B2 22 B0 64 62 [19:57:32]GetLastDocTimeStamp 1717444338 [19:57:32]current date 1717444653 [19:57:32]FM_GetShiftState [19:57:32]SAM_PROTO_GetShiftState [19:57:32]wFMCommunicate request_size=4 [19:57:32]MH_SAM_APDU [19:57:32]CAPDU: 80 13 01 00 [19:57:32]Write to MH i2c: E2 08 00 72 00 80 13 01 00 00 00 00 00 EF [19:57:32]Write i2c OK [19:57:32]MH_I2C_Read... [19:57:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:57:32]Read from MH i2c: E2 [19:57:32]MH_I2C_Read... [19:57:32]Read from MH i2c: E2 0E 00 [19:57:32]MH_I2C_Read... [19:57:32]Read from MH i2c: E2 0E 00 72 00 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 CA [19:57:32]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [19:57:32]wFMCommunicate OK [19:57:32]SAM_PROTO_GetShiftState done [19:57:32]FM_GetShiftState done [19:57:32]opened in 1717378033 [19:57:32]opened+sec_in_day 1717464433 [19:57:32]quantity*price = 75864 [19:57:32]sum+1 = 75866 [19:57:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 758.65 НСП 1% : 6.71 НДС 12% : 80.56 Наличными: 0.00 Безнал.: 758.65 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 209 03.06.2024 19:57 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68463 ФПД: 181827490569436 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T195733&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68463&fm=181827490569436&tin=02508201610067®Number=0000000000098096&sum=75865 [19:57:34]StoreToDocumentArchive [19:57:34]shift 324 fd 68463 [19:57:34]save to /storage/0324/doc_00068463 [19:57:34]save last doc name /storage/0324/doc_00068463 to /storage/kkm_last_doc_name [19:57:34]save OK [19:57:34]Clear old archive folders... [19:57:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:57:34]tlvbuf is 009CB550 [19:57:34]SAM_PROTO_ClearQueue [19:57:34]wFMCommunicate request_size=4 [19:57:34]MH_SAM_APDU [19:57:34]CAPDU: 80 09 00 00 [19:57:34]Write to MH i2c: E2 08 00 7F 00 80 09 00 00 00 00 00 00 F1 [19:57:34]Write i2c OK [19:57:34]MH_I2C_Read... [19:57:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:57:34]Read from MH i2c: E2 [19:57:34]MH_I2C_Read... [19:57:34]Read from MH i2c: E2 03 00 [19:57:34]MH_I2C_Read... [19:57:34]Read from MH i2c: E2 03 00 7F 00 00 90 00 F3 [19:57:34]RAPDU: 90 00 [19:57:34]wFMCommunicate OK [19:57:34]SAM_PROTO_ClearQueue done [19:57:34]KKMCreateOFDPacket [19:57:34]OFDProtocolAddRootSTLVToBuf [19:57:34]FM_MakeSignedData [19:57:34]FM_MakeSignedData [19:57:34]SAM_PROTO_SignData [19:57:34]wFMCommunicate request_size=4 [19:57:34]MH_SAM_APDU [19:57:34]CAPDU: 80 0D 01 02 [19:57:34]Write to MH i2c: E2 08 00 80 00 80 0D 01 02 00 00 00 00 F9 [19:57:34]Write i2c OK [19:57:34]MH_I2C_Read... [19:57:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:57:34]Read from MH i2c: E2 [19:57:34]MH_I2C_Read... [19:57:34]Read from MH i2c: E2 03 00 [19:57:34]MH_I2C_Read... [19:57:34]Read from MH i2c: E2 03 00 80 00 00 90 00 F4 [19:57:34]RAPDU: 90 00 [19:57:34]wFMCommunicate OK [19:57:34]wFMCommunicate request_size=255 [19:57:34]MH_SAM_APDU [19:57: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 34 FF 03 08 00 03 4C 2C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 59 28 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 28 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 28 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 2D 20 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 6F 0B 01 00 35 04 06 00 A5 [19:57:34]Write to MH i2c: E2 02 01 81 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4C 2C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 59 28 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 28 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 28 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 2D 20 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 6F 0B 01 00 35 04 06 00 A5 00 00 BA [19:57:34]Write i2c OK [19:57:34]MH_I2C_Read... [19:57:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:57:34]Read from MH i2c: E2 [19:57:34]MH_I2C_Read... [19:57:34]Read from MH i2c: E2 03 00 [19:57:34]MH_I2C_Read... [19:57:34]Read from MH i2c: E2 03 00 81 00 00 90 00 F5 [19:57:34]RAPDU: 90 00 [19:57:34]wFMCommunicate OK [19:57:34]wFMCommunicate request_size=10 [19:57:34]MH_SAM_APDU [19:57:34]CAPDU: 80 0D 02 02 05 5F 02 FC 5C DC [19:57:34]Write to MH i2c: E2 0D 00 82 00 80 0D 02 02 05 00 5F 02 FC 5C DC 00 00 9B [19:57:34]Write i2c OK [19:57:34]MH_I2C_Read... [19:57:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:57:34]Read from MH i2c: E2 [19:57:34]MH_I2C_Read... [19:57:34]Read from MH i2c: E2 03 00 [19:57:34]MH_I2C_Read... [19:57:34]Read from MH i2c: E2 03 00 82 00 00 90 00 F6 [19:57:34]RAPDU: 90 00 [19:57:34]wFMCommunicate OK [19:57:34]wFMCommunicate request_size=4 [19:57:34]MH_SAM_APDU [19:57:34]CAPDU: 80 0D 03 02 [19:57:34]Write to MH i2c: E2 08 00 83 00 80 0D 03 02 00 00 00 00 FE [19:57:34]Write i2c OK [19:57:34]MH_I2C_Read... [19:57:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:57:34]Read from MH i2c: E2 [19:57:34]MH_I2C_Read... [19:57:34]Read from MH i2c: E2 0B 00 [19:57:34]MH_I2C_Read... [19:57:34]Read from MH i2c: E2 0B 00 83 00 00 83 F9 E5 80 74 2F 6B 2E 90 00 1C [19:57:34]RAPDU: 83 F9 E5 80 74 2F 6B 2E 90 00 [19:57:34]wFMCommunicate OK [19:57:34]SAM_PROTO_SignData done [19:57:34]FM_MakeSignedData done [19:57:34]CreateOFDProtocolMessage [19:57:34]wFMCommunicate request_size=4 [19:57:34]MH_SAM_APDU [19:57:34]CAPDU: 80 11 00 00 [19:57:34]Write to MH i2c: E2 08 00 84 00 80 11 00 00 00 00 00 00 FE [19:57:34]Write i2c OK [19:57:34]MH_I2C_Read... [19:57:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:57:34]Read from MH i2c: E2 [19:57:34]MH_I2C_Read... [19:57:34]Read from MH i2c: E2 17 00 [19:57:34]MH_I2C_Read... [19:57:34]Read from MH i2c: E2 17 00 84 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 49 [19:57:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [19:57:34]wFMCommunicate OK [19:57:34]CreateOFDProtocolMessage done [19:57:34]OFDSenderStorePacket 68463 [19:57:34]StoreOFDPacket docnum=68463 [19:57:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 AD A5 07 01 7E 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4C 2C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 59 28 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 28 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 28 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 2D 20 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 6F 0B 01 00 35 04 06 00 A5 5F 02 FC 5C DC 83 F9 E5 80 74 2F 6B 2E [19:57:34]CheckFolder [19:57:34]dirname=/storage/ofd_packets [19:57:34]CheckFolder done [19:57:34]ProducePacketName [19:57:34]name=ofd_packets/00068463 [19:57:34]NVStorageSaveData ofd_packets/00068463 [19:57:34]File name is /storage/ofd_packets/00068463 [19:57:34]Write 301 bytes [19:57:34]NVStorageSaveData done [19:57:34]OFDSenderStorePacket done [19:57:34]KKMCreateOFDPacket done [19:57:34]NVStorageSaveData kkm_last_timestamp [19:57:34]File name is /storage/kkm_last_timestamp [19:57:34]Write 4 bytes [19:57:34]NVStorageSaveData done [19:57:34]ExternCall_PrintAddStr [19:57:34]wPrintStart [19:57:34]Write to MH i2c: 01 00 00 85 00 85 [19:57:34]Write i2c OK [19:57:34]MH_I2C_Read... [19:57:34]Read from MH i2c: 01 [19:57:34]MH_I2C_Read... [19:57:34]Read from MH i2c: 01 07 00 [19:57:34]MH_I2C_Read... [19:57:34]Read from MH i2c: 01 07 00 85 00 00 00 00 00 00 FF 0F 9A [19:57:34]RasterBufferAndPrint [19:57:34]line Счет N : (1)706573 [19:57:34]line ИНН: 02508201610067 [19:57:34]line Контрольно-Кассовый Чек [19:57:34]line ПРОДАЖА [19:57:34]line ТРК (МРК, ГНК) : 32 [19:57:34]line Товар: 2710124130 [19:57:34]line Аи-92-К-4 [19:57:34]line 11.340 * 66.90 [19:57:34]line = 758.65 [19:57:34]line НДС 12% НСП 1% [19:57:34]line > о реализуемом товаре [19:57:34]line ИТОГО: 758.65 [19:57:34]line НСП 1% : 6.71 [19:57:34]line НДС 12% : 80.56 [19:57:34]line Наличными: 0.00 [19:57:34]line Безнал.: 758.65 [19:57:34]line Место: АЗС № 62 "Партнер Нефть" [19:57:34]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [19:57:34]line СНО: Общий режим [19:57:34]line Чек 209 03.06.2024 19:57 [19:57:34]line Смена: 324 ФФД: 1.0 [19:57:34]line ЗНМ: 0300000181 [19:57:34]line РНМ: 0000000000098096 [19:57:34]line Версия ККМ: 001 [19:57:34]line Платежная система: АКБ Кыргызстан [19:57:34]line ФМ: 0000000000965400 [19:57:34]line ФД: 68463 [19:57:34]line ФПД: 181827490569436 [19:57:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T195733&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68463&fm=181827490569436&tin=02508201610067®Number=0000000000098096&sum=75865 [19:57:34]OFD Sender: Processing packet 68463 [packets to send 26, broken 25] [19:57:34]ProducePacketName [19:57:34]name=ofd_packets/00068463 [19:57:34]OFD Sender: To server: pG, [19:57:34]CommunicateWithHost lk.salyk.kg:30040 [19:57:34]ConnectInit lk.salyk.kg [19:57:34]written 0, free lines is 4095 [19:57:35]Connected sock=10 [19:57:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 AD A5 07 01 7E 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 4C 2C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 59 28 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 28 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 28 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 2D 20 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 6F 0B 01 00 35 04 06 00 A5 5F 02 FC 5C DC 83 F9 E5 80 74 2F 6B 2E [19:57:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 68 8B 47 00 C9 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 6F 0B 01 00 F4 03 04 00 28 C7 5D 66 B6 04 01 00 00 3A 9B 35 0D A9 28 63 AB [19:57:35]CommunicateWithHost err = 0 [19:57:35]CheckOFDResponse [19:57:35]1017 (14) - 77093643461234 [19:57:35]1041 (16) - 0000000000965400 [19:57:35]1040 (4) - 68463 [19:57:35]1012 (4) - 03.06.2024 13:37 [19:57:35]1206 (1) - 0 [19:57:35]OFD Sender: Remove packet 68463 [19:57:35]ProducePacketName [19:57:35]name=ofd_packets/00068463 [19:57:35]NVStorageDeleteData [19:57:35]Write to MH i2c: 01 00 00 AF 00 AF [19:57:35]Write i2c OK [19:57:35]MH_I2C_Read... [19:57:35]Read from MH i2c: 01 [19:57:35]MH_I2C_Read... [19:57:35]Read from MH i2c: 01 07 00 [19:57:35]MH_I2C_Read... [19:57:35]Read from MH i2c: 01 07 00 AF 00 00 00 00 00 00 EB 0C AD [19:57:35]RasterBufferAndPrint [19:57:35]line [19:57:35]line [19:57:35]line [19:57:35]line [19:57:35]line [19:57:35]written 0, free lines is 3314 [19:57:35]MH_Cut [19:57:35]Write to MH i2c: D1 01 00 B6 00 01 88 [19:57:35]Write i2c OK [19:57:35]MH_I2C_Read... [19:57:35]Read from MH i2c: D1 [19:57:35]MH_I2C_Read... [19:57:35]Read from MH i2c: D1 01 00 [19:57:35]MH_I2C_Read... [19:57:35]Read from MH i2c: D1 01 00 B6 00 00 87 [19:57:35]Write to MH i2c: 01 00 00 B7 00 B7 [19:57:35]Write i2c OK [19:57:35]MH_I2C_Read... [19:57:35]OFD Sender: No OFD packet to send [19:57:36]*** Cut start [19:57:36]*** Partial cut [19:57:36]*** CUTSNS_PIN = 1 [19:57:36]*** CUTSNS_PIN = 0 [19:57:36]*** Brake cut motor [19:57:36]Read from MH i2c: 01 [19:57:36]MH_I2C_Read... [19:57:36]*** Stop cut motor [19:57:36]*** Cut end [19:57:36]Read from MH i2c: 01 07 00 [19:57:36]MH_I2C_Read... [19:57:36]Read from MH i2c: 01 07 00 B7 00 00 00 00 00 00 FF 0F CC [19:57:36]process_action close_receipt done [19:57:36]requested_data is exist [19:57:36]produce_requested_data [19:57:36]requested_item fm.sn is exist - process it [19:57:36]wFMCommunicate request_size=4 [19:57:36]MH_SAM_APDU [19:57:36]CAPDU: 80 11 00 00 [19:57:36]Write to MH i2c: E2 08 00 B8 00 80 11 00 00 00 00 00 00 32 [19:57:36]Write i2c OK [19:57:36]MH_I2C_Read... [19:57:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:57:36]Read from MH i2c: E2 [19:57:36]MH_I2C_Read... [19:57:36]Read from MH i2c: E2 17 00 [19:57:36]MH_I2C_Read... [19:57:36]Read from MH i2c: E2 17 00 B8 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 7D [19:57:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [19:57:36]wFMCommunicate OK [19:57:36]requested_item fd.num is exist - process it [19:57:36]SAM_PROTO_GetFieldsCounters [19:57:36]wFMCommunicate request_size=4 [19:57:36]MH_SAM_APDU [19:57:36]CAPDU: 80 13 00 00 [19:57:36]Write to MH i2c: E2 08 00 B9 00 80 13 00 00 00 00 00 00 35 [19:57:36]Write i2c OK [19:57:36]MH_I2C_Read... [19:57:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:57:37]Read from MH i2c: E2 [19:57:37]MH_I2C_Read... [19:57:37]Read from MH i2c: E2 62 00 [19:57:37]MH_I2C_Read... [19:57:37]Read from MH i2c: E2 62 00 B9 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 6F 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 88 [19:57:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 6F 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:57:37]wFMCommunicate OK [19:57:37]SAM_PROTO_GetFieldsCounters done [19:57:37]requested_item shift.num is exist - process it [19:57:37]requested_item shift.opened is exist - process it [19:57:37]req_shift_opened [19:57:37]FM_GetShiftState [19:57:37]SAM_PROTO_GetShiftState [19:57:37]wFMCommunicate request_size=4 [19:57:37]MH_SAM_APDU [19:57:37]CAPDU: 80 13 01 00 [19:57:37]Write to MH i2c: E2 08 00 BA 00 80 13 01 00 00 00 00 00 37 [19:57:37]Write i2c OK [19:57:37]MH_I2C_Read... [19:57:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:57:37]Read from MH i2c: E2 [19:57:37]MH_I2C_Read... [19:57:37]Read from MH i2c: E2 0E 00 [19:57:37]MH_I2C_Read... [19:57:37]Read from MH i2c: E2 0E 00 BA 00 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 12 [19:57:37]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [19:57:37]wFMCommunicate OK [19:57:37]SAM_PROTO_GetShiftState done [19:57:37]FM_GetShiftState done [19:57:37]req_shift_opened done [19:57:37]requested_item shift.open_date is exist - process it [19:57:37]req_shift_open_date [19:57:37]req_shift_open_date done [19:57:37]produce_requested_data done [19:57:37]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68463,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [19:57:37]process_action_free close_receipt [19:57:37]json_value_free [19:57:37]json_value_free done [19:57:37]process_json_proto returns [19:57:37]Send response to host [19:57:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68463,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [19:57:37]free response buf [19:57:37]execute_script done [19:57:37]execute_script returns [19:57:37]free content buf [19:57:37]Sock 9.Close socket [19:57:37]Sock 9.Thread stoped [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:18]accept exits with 7 [19:58:18]New connection [19:58:18]New thread 3067084132 created [19:58:18]Thread 3067227492 joined [19:58:18]Waiting for new connection... [19:58:18] Sock 7.Parse request [19:58:18]Sock 7.Check first char [19:58:18]Sock 7.First char is OK [19:58:18]request: POST /json_proto HTTP/1.0 [19:58:18]Method: POST [19:58:18]URL: /json_proto [19:58:18]Method is POST - this is cgi request [19:58:18]url: /json_proto [19:58:18]query_string will be loaded in cgi processing [19:58:18]execute_cgi json_proto POST (null) [19:58:18]execute_cgi path=json_proto method=POST [19:58:18]POST find Content-Length [19:58:18]Host: 172.17.36.132:8080 [19:58:18]Content-Length: 677 [19:58:18]Content-Type: application/json [19:58:18] [19:58:18]POST finish read [19:58:18]Found Content-Length = 677 [19:58:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706574", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 3.620, "sum" : 242.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 242.00, "total" : 242.00, "payments": [ { "type": 0, "sum" : 242.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:58:18]execute_script... [19:58: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)706574", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 3.620, "sum" : 242.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 242.00, "total" : 242.00, "payments": [ { "type": 0, "sum" : 242.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:58:18]POST & json_proto [19:58:18]process_json_proto [19:58:18]json parsed OK: [19:58:18]protocol is kg_v1.0 [19:58:18]action value=close_receipt [19:58:18]process_action close_receipt [19:58:18]cmd_close_receipt [19:58:18]MH_GetDate [19:58:18]Write to MH i2c: F0 00 00 BB 00 AA [19:58:18]Write i2c OK [19:58:18]MH_I2C_Read... [19:58:18]Read from MH i2c: F0 [19:58:18]MH_I2C_Read... [19:58:18]Read from MH i2c: F0 09 00 [19:58:18]MH_I2C_Read... [19:58:18]Read from MH i2c: F0 09 00 BB 00 00 5A 20 5E 66 B2 22 B0 64 D9 [19:58:18]GetLastDocTimeStamp 1717444653 [19:58:18]current date 1717444698 [19:58:18]FM_GetShiftState [19:58:18]SAM_PROTO_GetShiftState [19:58:18]wFMCommunicate request_size=4 [19:58:18]MH_SAM_APDU [19:58:18]CAPDU: 80 13 01 00 [19:58:18]Write to MH i2c: E2 08 00 BC 00 80 13 01 00 00 00 00 00 39 [19:58:18]Write i2c OK [19:58:18]MH_I2C_Read... [19:58:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:58:18]Read from MH i2c: E2 [19:58:18]MH_I2C_Read... [19:58:18]Read from MH i2c: E2 0E 00 [19:58:18]MH_I2C_Read... [19:58:18]Read from MH i2c: E2 0E 00 BC 00 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 14 [19:58:18]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [19:58:18]wFMCommunicate OK [19:58:18]SAM_PROTO_GetShiftState done [19:58:18]FM_GetShiftState done [19:58:18]opened in 1717378033 [19:58:18]opened+sec_in_day 1717464433 [19:58:18]quantity*price = 24217 [19:58:18]sum+1 = 24219 [19:58:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 242.00 Внесено: 242.00 СДАЧА: 0.00 НСП 1% : 2.14 НДС 12% : 25.72 Наличными: 242.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 210 03.06.2024 19:58 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68464 ФПД: 133472069106400 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T195818&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68464&fm=133472069106400&tin=02508201610067®Number=0000000000098096&sum=24200 [19:58:19]StoreToDocumentArchive [19:58:19]shift 324 fd 68464 [19:58:19]save to /storage/0324/doc_00068464 [19:58:19]save last doc name /storage/0324/doc_00068464 to /storage/kkm_last_doc_name [19:58:19]save OK [19:58:19]Clear old archive folders... [19:58:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:58:19]tlvbuf is 00A1D300 [19:58:19]SAM_PROTO_ClearQueue [19:58:19]wFMCommunicate request_size=4 [19:58:19]MH_SAM_APDU [19:58:19]CAPDU: 80 09 00 00 [19:58:19]Write to MH i2c: E2 08 00 C9 00 80 09 00 00 00 00 00 00 3B [19:58:19]Write i2c OK [19:58:19]MH_I2C_Read... [19:58:19]Read from MH i2c: E2 [19:58:19]MH_I2C_Read... [19:58:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:58:19]Read from MH i2c: E2 03 00 [19:58:19]MH_I2C_Read... [19:58:19]Read from MH i2c: E2 03 00 C9 00 00 90 00 3D [19:58:19]RAPDU: 90 00 [19:58:19]wFMCommunicate OK [19:58:19]SAM_PROTO_ClearQueue done [19:58:19]KKMCreateOFDPacket [19:58:19]OFDProtocolAddRootSTLVToBuf [19:58:19]FM_MakeSignedData [19:58:19]FM_MakeSignedData [19:58:19]SAM_PROTO_SignData [19:58:19]wFMCommunicate request_size=4 [19:58:19]MH_SAM_APDU [19:58:19]CAPDU: 80 0D 01 02 [19:58:19]Write to MH i2c: E2 08 00 CA 00 80 0D 01 02 00 00 00 00 43 [19:58:19]Write i2c OK [19:58:19]MH_I2C_Read... [19:58:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:58:19]Read from MH i2c: E2 [19:58:19]MH_I2C_Read... [19:58:19]Read from MH i2c: E2 03 00 [19:58:19]MH_I2C_Read... [19:58:19]Read from MH i2c: E2 03 00 CA 00 00 90 00 3E [19:58:19]RAPDU: 90 00 [19:58:19]wFMCommunicate OK [19:58:19]wFMCommunicate request_size=255 [19:58:19]MH_SAM_APDU [19:58:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 24 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9A 5E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 5E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 0A 00 00 00 00 07 04 06 00 88 5E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 5A 20 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 70 0B 01 00 35 04 06 00 79 [19:58:19]Write to MH i2c: E2 02 01 CB 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 24 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9A 5E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 5E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 0A 00 00 00 00 07 04 06 00 88 5E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 5A 20 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 70 0B 01 00 35 04 06 00 79 00 00 B3 [19:58:19]Write i2c OK [19:58:19]MH_I2C_Read... [19:58:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:58:19]Read from MH i2c: E2 [19:58:19]MH_I2C_Read... [19:58:19]Read from MH i2c: E2 03 00 [19:58:19]MH_I2C_Read... [19:58:19]Read from MH i2c: E2 03 00 CB 00 00 90 00 3F [19:58:19]RAPDU: 90 00 [19:58:19]wFMCommunicate OK [19:58:19]wFMCommunicate request_size=10 [19:58:19]MH_SAM_APDU [19:58:19]CAPDU: 80 0D 02 02 05 64 63 44 3A E0 [19:58:19]Write to MH i2c: E2 0D 00 CC 00 80 0D 02 02 05 00 64 63 44 3A E0 00 00 75 [19:58:19]Write i2c OK [19:58:19]MH_I2C_Read... [19:58:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:58:19]Read from MH i2c: E2 [19:58:19]MH_I2C_Read... [19:58:19]Read from MH i2c: E2 03 00 [19:58:19]MH_I2C_Read... [19:58:19]Read from MH i2c: E2 03 00 CC 00 00 90 00 40 [19:58:19]RAPDU: 90 00 [19:58:19]wFMCommunicate OK [19:58:19]wFMCommunicate request_size=4 [19:58:19]MH_SAM_APDU [19:58:19]CAPDU: 80 0D 03 02 [19:58:19]Write to MH i2c: E2 08 00 CD 00 80 0D 03 02 00 00 00 00 48 [19:58:19]Write i2c OK [19:58:19]MH_I2C_Read... [19:58:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:58:19]Read from MH i2c: E2 [19:58:19]MH_I2C_Read... [19:58:19]Read from MH i2c: E2 0B 00 [19:58:19]MH_I2C_Read... [19:58:19]Read from MH i2c: E2 0B 00 CD 00 00 CF 97 2F 47 7F 70 7C DA 90 00 6A [19:58:19]RAPDU: CF 97 2F 47 7F 70 7C DA 90 00 [19:58:19]wFMCommunicate OK [19:58:19]SAM_PROTO_SignData done [19:58:19]FM_MakeSignedData done [19:58:19]CreateOFDProtocolMessage [19:58:19]wFMCommunicate request_size=4 [19:58:19]MH_SAM_APDU [19:58:19]CAPDU: 80 11 00 00 [19:58:19]Write to MH i2c: E2 08 00 CE 00 80 11 00 00 00 00 00 00 48 [19:58:19]Write i2c OK [19:58:19]MH_I2C_Read... [19:58:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:58:19]Read from MH i2c: E2 [19:58:19]MH_I2C_Read... [19:58:19]Read from MH i2c: E2 17 00 [19:58:19]MH_I2C_Read... [19:58:19]Read from MH i2c: E2 17 00 CE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 93 [19:58:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [19:58:19]wFMCommunicate OK [19:58:19]CreateOFDProtocolMessage done [19:58:19]OFDSenderStorePacket 68464 [19:58:19]StoreOFDPacket docnum=68464 [19:58:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 D4 89 07 01 E0 AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 24 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9A 5E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 5E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 0A 00 00 00 00 07 04 06 00 88 5E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 5A 20 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 70 0B 01 00 35 04 06 00 79 64 63 44 3A E0 CF 97 2F 47 7F 70 7C DA [19:58:19]CheckFolder [19:58:19]dirname=/storage/ofd_packets [19:58:19]CheckFolder done [19:58:19]ProducePacketName [19:58:19]name=ofd_packets/00068464 [19:58:19]NVStorageSaveData ofd_packets/00068464 [19:58:19]File name is /storage/ofd_packets/00068464 [19:58:19]Write 301 bytes [19:58:19]NVStorageSaveData done [19:58:19]OFDSenderStorePacket done [19:58:19]KKMCreateOFDPacket done [19:58:19]NVStorageSaveData kkm_last_timestamp [19:58:19]File name is /storage/kkm_last_timestamp [19:58:19]Write 4 bytes [19:58:19]OFD Sender: Processing packet 68464 [packets to send 26, broken 25] [19:58:19]ProducePacketName [19:58:19]name=ofd_packets/00068464 [19:58:19]OFD Sender: To server: pG, [19:58:19]CommunicateWithHost lk.salyk.kg:30040 [19:58:19]ConnectInit lk.salyk.kg [19:58:19]NVStorageSaveData done [19:58:19]ExternCall_PrintAddStr [19:58:19]wPrintStart [19:58:19]Write to MH i2c: 01 00 00 CF 00 CF [19:58:19]Write i2c OK [19:58:19]MH_I2C_Read... [19:58:19]Read from MH i2c: 01 [19:58:19]MH_I2C_Read... [19:58:19]Read from MH i2c: 01 07 00 [19:58:19]MH_I2C_Read... [19:58:19]Read from MH i2c: 01 07 00 CF 00 00 00 00 00 00 FF 0F E4 [19:58:19]RasterBufferAndPrint [19:58:19]line Счет N : (1)706574 [19:58:19]line ИНН: 02508201610067 [19:58:19]line Контрольно-Кассовый Чек [19:58:19]line ПРОДАЖА [19:58:19]line ТРК (МРК, ГНК) : 32 [19:58:19]line Товар: 2710124130 [19:58:19]line Аи-92-К-4 [19:58:19]line 3.620 * 66.90 [19:58:19]line = 242.18 [19:58:19]line НДС 12% НСП 1% [19:58:19]line > о реализуемом товаре [19:58:19]line ОКРУГЛЕНИЕ: -0.18 [19:58:19]line ИТОГО: 242.00 [19:58:19]line Внесено: 242.00 [19:58:19]line СДАЧА: 0.00 [19:58:19]line НСП 1% : 2.14 [19:58:19]line НДС 12% : 25.72 [19:58:19]line Наличными: 242.00 [19:58:19]line Безнал.: 0.00 [19:58:19]line Место: АЗС № 62 "Партнер Нефть" [19:58:19]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [19:58:19]line СНО: Общий режим [19:58:19]line Чек 210 03.06.2024 19:58 [19:58:19]line Смена: 324 ФФД: 1.0 [19:58:19]line ЗНМ: 0300000181 [19:58:19]line РНМ: 0000000000098096 [19:58:19]line Версия ККМ: 001 [19:58:19]line ФМ: 0000000000965400 [19:58:19]line ФД: 68464 [19:58:19]line ФПД: 133472069106400 [19:58:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T195818&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68464&fm=133472069106400&tin=02508201610067®Number=0000000000098096&sum=24200 [19:58:20]Connected sock=10 [19:58:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 D4 89 07 01 E0 AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 24 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9A 5E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 5E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 0A 00 00 00 00 07 04 06 00 88 5E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 5A 20 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 70 0B 01 00 35 04 06 00 79 64 63 44 3A E0 CF 97 2F 47 7F 70 7C DA [19:58:20]written 0, free lines is 4095 [19:58:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 C8 3F 47 00 4A E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 70 0B 01 00 F4 03 04 00 55 C7 5D 66 B6 04 01 00 00 09 33 A4 6C CE A8 BB 7A [19:58:20]CommunicateWithHost err = 0 [19:58:20]CheckOFDResponse [19:58:20]1017 (14) - 77093643461234 [19:58:20]1041 (16) - 0000000000965400 [19:58:20]1040 (4) - 68464 [19:58:20]1012 (4) - 03.06.2024 13:38 [19:58:20]1206 (1) - 0 [19:58:20]OFD Sender: Remove packet 68464 [19:58:20]ProducePacketName [19:58:20]name=ofd_packets/00068464 [19:58:20]NVStorageDeleteData [19:58:20]Write to MH i2c: 01 00 00 FA 00 FA [19:58:20]Write i2c OK [19:58:20]MH_I2C_Read... [19:58:20]Read from MH i2c: 01 [19:58:20]MH_I2C_Read... [19:58:20]Read from MH i2c: 01 07 00 [19:58:20]MH_I2C_Read... [19:58:20]Read from MH i2c: 01 07 00 FA 00 00 00 00 00 00 CF 0C DC [19:58:20]RasterBufferAndPrint [19:58:20]line [19:58:20]line [19:58:20]line [19:58:20]line [19:58:20]line [19:58:20]written 0, free lines is 3283 [19:58:20]MH_Cut [19:58:20]Write to MH i2c: D1 01 00 01 01 01 D4 [19:58:20]Write i2c OK [19:58:20]MH_I2C_Read... [19:58:20]Read from MH i2c: D1 [19:58:20]MH_I2C_Read... [19:58:20]Read from MH i2c: D1 01 00 [19:58:20]MH_I2C_Read... [19:58:20]Read from MH i2c: D1 01 00 01 01 00 D3 [19:58:20]Write to MH i2c: 01 00 00 02 01 03 [19:58:20]Write i2c OK [19:58:20]MH_I2C_Read... [19:58:21]OFD Sender: No OFD packet to send [19:58:21]*** Cut start [19:58:21]*** Partial cut [19:58:21]*** CUTSNS_PIN = 1 [19:58:21]*** CUTSNS_PIN = 0 [19:58:21]*** Brake cut motor [19:58:22]Read from MH i2c: 01 [19:58:22]MH_I2C_Read... [19:58:22]*** Stop cut motor [19:58:22]*** Cut end [19:58:22]Read from MH i2c: 01 07 00 [19:58:22]MH_I2C_Read... [19:58:22]Read from MH i2c: 01 07 00 02 01 00 00 00 00 00 FF 0F 18 [19:58:22]process_action close_receipt done [19:58:22]requested_data is exist [19:58:22]produce_requested_data [19:58:22]requested_item fm.sn is exist - process it [19:58:22]wFMCommunicate request_size=4 [19:58:22]MH_SAM_APDU [19:58:22]CAPDU: 80 11 00 00 [19:58:22]Write to MH i2c: E2 08 00 03 01 80 11 00 00 00 00 00 00 7E [19:58:22]Write i2c OK [19:58:22]MH_I2C_Read... [19:58:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:58:22]Read from MH i2c: E2 [19:58:22]MH_I2C_Read... [19:58:22]Read from MH i2c: E2 17 00 [19:58:22]MH_I2C_Read... [19:58:22]Read from MH i2c: E2 17 00 03 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 C9 [19:58:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [19:58:22]wFMCommunicate OK [19:58:22]requested_item fd.num is exist - process it [19:58:22]SAM_PROTO_GetFieldsCounters [19:58:22]wFMCommunicate request_size=4 [19:58:22]MH_SAM_APDU [19:58:22]CAPDU: 80 13 00 00 [19:58:22]Write to MH i2c: E2 08 00 04 01 80 13 00 00 00 00 00 00 81 [19:58:22]Write i2c OK [19:58:22]MH_I2C_Read... [19:58:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:58:22]Read from MH i2c: E2 [19:58:22]MH_I2C_Read... [19:58:22]Read from MH i2c: E2 62 00 [19:58:22]MH_I2C_Read... [19:58:22]Read from MH i2c: E2 62 00 04 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 70 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 D8 [19:58:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 70 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:58:22]wFMCommunicate OK [19:58:22]SAM_PROTO_GetFieldsCounters done [19:58:22]requested_item shift.num is exist - process it [19:58:22]requested_item shift.opened is exist - process it [19:58:22]req_shift_opened [19:58:22]FM_GetShiftState [19:58:22]SAM_PROTO_GetShiftState [19:58:22]wFMCommunicate request_size=4 [19:58:22]MH_SAM_APDU [19:58:22]CAPDU: 80 13 01 00 [19:58:22]Write to MH i2c: E2 08 00 05 01 80 13 01 00 00 00 00 00 83 [19:58:22]Write i2c OK [19:58:22]MH_I2C_Read... [19:58:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:58:22]Read from MH i2c: E2 [19:58:22]MH_I2C_Read... [19:58:22]Read from MH i2c: E2 0E 00 [19:58:22]MH_I2C_Read... [19:58:22]Read from MH i2c: E2 0E 00 05 01 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 5E [19:58:22]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [19:58:22]wFMCommunicate OK [19:58:22]SAM_PROTO_GetShiftState done [19:58:22]FM_GetShiftState done [19:58:22]req_shift_opened done [19:58:22]requested_item shift.open_date is exist - process it [19:58:22]req_shift_open_date [19:58:22]req_shift_open_date done [19:58:22]produce_requested_data done [19:58:22]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68464,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [19:58:22]process_action_free close_receipt [19:58:22]json_value_free [19:58:22]json_value_free done [19:58:22]process_json_proto returns [19:58:22]Send response to host [19:58:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68464,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [19:58:22]free response buf [19:58:22]execute_script done [19:58:22]execute_script returns [19:58:22]free content buf [19:58:22]Sock 7.Close socket [19:58:22]Sock 7.Thread stoped [19:58:26]OFD Sender: No OFD packet to send [19:58:31]OFD Sender: No OFD packet to send [19:58:36]OFD Sender: No OFD packet to send [19:58:36]accept exits with 9 [19:58:36]New connection [19:58:36]New thread 3067227492 created [19:58:36]Thread 3067084132 joined [19:58:36]Waiting for new connection... [19:58:36] Sock 9.Parse request [19:58:36]Sock 9.Check first char [19:58:36]Sock 9.First char is OK [19:58:36]request: POST /json_proto HTTP/1.0 [19:58:36]Method: POST [19:58:36]URL: /json_proto [19:58:36]Method is POST - this is cgi request [19:58:36]url: /json_proto [19:58:36]query_string will be loaded in cgi processing [19:58:36]execute_cgi json_proto POST (null) [19:58:36]execute_cgi path=json_proto method=POST [19:58:36]POST find Content-Length [19:58:36]Host: 172.17.36.132:8080 [19:58:36]Content-Length: 677 [19:58:36]Content-Type: application/json [19:58:36] [19:58:36]POST finish read [19:58:36]Found Content-Length = 677 [19:58:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706575", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 6.090, "sum" : 450.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:58:36]execute_script... [19:58:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706575", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.90, "quantity" : 6.090, "sum" : 450.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:58:36]POST & json_proto [19:58:36]process_json_proto [19:58:36]json parsed OK: [19:58:36]protocol is kg_v1.0 [19:58:36]action value=close_receipt [19:58:36]process_action close_receipt [19:58:36]cmd_close_receipt [19:58:36]MH_GetDate [19:58:36]Write to MH i2c: F0 00 00 06 01 F6 [19:58:36]Write i2c OK [19:58:36]MH_I2C_Read... [19:58:36]Read from MH i2c: F0 [19:58:36]MH_I2C_Read... [19:58:36]Read from MH i2c: F0 09 00 [19:58:36]MH_I2C_Read... [19:58:36]Read from MH i2c: F0 09 00 06 01 00 6C 20 5E 66 B2 22 B0 64 37 [19:58:36]GetLastDocTimeStamp 1717444698 [19:58:36]current date 1717444716 [19:58:36]FM_GetShiftState [19:58:36]SAM_PROTO_GetShiftState [19:58:36]wFMCommunicate request_size=4 [19:58:36]MH_SAM_APDU [19:58:36]CAPDU: 80 13 01 00 [19:58:36]Write to MH i2c: E2 08 00 07 01 80 13 01 00 00 00 00 00 85 [19:58:36]Write i2c OK [19:58:36]MH_I2C_Read... [19:58:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:58:36]Read from MH i2c: E2 [19:58:36]MH_I2C_Read... [19:58:36]Read from MH i2c: E2 0E 00 [19:58:36]MH_I2C_Read... [19:58:36]Read from MH i2c: E2 0E 00 07 01 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 60 [19:58:36]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [19:58:36]wFMCommunicate OK [19:58:36]SAM_PROTO_GetShiftState done [19:58:36]FM_GetShiftState done [19:58:36]opened in 1717378033 [19:58:36]opened+sec_in_day 1717464433 [19:58:36]quantity*price = 45005 [19:58:36]sum+1 = 45006 [19:58:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 450.00 Внесено: 450.00 СДАЧА: 0.00 НСП 1% : 3.98 НДС 12% : 47.79 Наличными: 450.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 211 03.06.2024 19:58 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68465 ФПД: 43169193409965 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T195836&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68465&fm=43169193409965&tin=02508201610067®Number=0000000000098096&sum=45000 [19:58:37]StoreToDocumentArchive [19:58:37]shift 324 fd 68465 [19:58:37]save to /storage/0324/doc_00068465 [19:58:37]save last doc name /storage/0324/doc_00068465 to /storage/kkm_last_doc_name [19:58:37]save OK [19:58:37]Clear old archive folders... [19:58:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:58:37]tlvbuf is 00A22B40 [19:58:37]SAM_PROTO_ClearQueue [19:58:37]wFMCommunicate request_size=4 [19:58:37]MH_SAM_APDU [19:58:37]CAPDU: 80 09 00 00 [19:58:37]Write to MH i2c: E2 08 00 14 01 80 09 00 00 00 00 00 00 87 [19:58:37]Write i2c OK [19:58:37]MH_I2C_Read... [19:58:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:58:37]Read from MH i2c: E2 [19:58:37]MH_I2C_Read... [19:58:37]Read from MH i2c: E2 03 00 [19:58:37]MH_I2C_Read... [19:58:37]Read from MH i2c: E2 03 00 14 01 00 90 00 89 [19:58:37]RAPDU: 90 00 [19:58:37]wFMCommunicate OK [19:58:37]SAM_PROTO_ClearQueue done [19:58:37]KKMCreateOFDPacket [19:58:37]OFDProtocolAddRootSTLVToBuf [19:58:37]FM_MakeSignedData [19:58:37]FM_MakeSignedData [19:58:37]SAM_PROTO_SignData [19:58:37]wFMCommunicate request_size=4 [19:58:37]MH_SAM_APDU [19:58:37]CAPDU: 80 0D 01 02 [19:58:37]Write to MH i2c: E2 08 00 15 01 80 0D 01 02 00 00 00 00 8F [19:58:37]Write i2c OK [19:58:37]MH_I2C_Read... [19:58:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:58:37]Read from MH i2c: E2 [19:58:37]MH_I2C_Read... [19:58:37]Read from MH i2c: E2 03 00 [19:58:37]MH_I2C_Read... [19:58:37]Read from MH i2c: E2 03 00 15 01 00 90 00 8A [19:58:37]RAPDU: 90 00 [19:58:37]wFMCommunicate OK [19:58:37]wFMCommunicate request_size=255 [19:58:37]MH_SAM_APDU [19:58:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 CA 17 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 CD AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 6C 20 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 71 0B 01 00 35 04 06 00 27 [19:58:37]Write to MH i2c: E2 02 01 16 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 CA 17 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 CD AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 6C 20 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 71 0B 01 00 35 04 06 00 27 00 00 39 [19:58:37]Write i2c OK [19:58:37]MH_I2C_Read... [19:58:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:58:37]Read from MH i2c: E2 [19:58:37]MH_I2C_Read... [19:58:37]Read from MH i2c: E2 03 00 [19:58:37]MH_I2C_Read... [19:58:37]Read from MH i2c: E2 03 00 16 01 00 90 00 8B [19:58:37]RAPDU: 90 00 [19:58:37]wFMCommunicate OK [19:58:37]wFMCommunicate request_size=10 [19:58:37]MH_SAM_APDU [19:58:37]CAPDU: 80 0D 02 02 05 43 1C 70 3D AD [19:58:37]Write to MH i2c: E2 0D 00 17 01 80 0D 02 02 05 00 43 1C 70 3D AD 00 00 55 [19:58:37]Write i2c OK [19:58:37]MH_I2C_Read... [19:58:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:58:37]Read from MH i2c: E2 [19:58:37]MH_I2C_Read... [19:58:37]Read from MH i2c: E2 03 00 [19:58:37]MH_I2C_Read... [19:58:37]Read from MH i2c: E2 03 00 17 01 00 90 00 8C [19:58:37]RAPDU: 90 00 [19:58:37]wFMCommunicate OK [19:58:37]wFMCommunicate request_size=4 [19:58:37]MH_SAM_APDU [19:58:37]CAPDU: 80 0D 03 02 [19:58:37]Write to MH i2c: E2 08 00 18 01 80 0D 03 02 00 00 00 00 94 [19:58:37]Write i2c OK [19:58:37]MH_I2C_Read... [19:58:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:58:37]Read from MH i2c: E2 [19:58:37]MH_I2C_Read... [19:58:37]Read from MH i2c: E2 0B 00 [19:58:37]MH_I2C_Read... [19:58:37]Read from MH i2c: E2 0B 00 18 01 00 B9 D7 4F CC 04 F9 CF 25 90 00 31 [19:58:37]RAPDU: B9 D7 4F CC 04 F9 CF 25 90 00 [19:58:37]wFMCommunicate OK [19:58:37]SAM_PROTO_SignData done [19:58:37]FM_MakeSignedData done [19:58:37]CreateOFDProtocolMessage [19:58:37]wFMCommunicate request_size=4 [19:58:37]MH_SAM_APDU [19:58:37]CAPDU: 80 11 00 00 [19:58:37]Write to MH i2c: E2 08 00 19 01 80 11 00 00 00 00 00 00 94 [19:58:37]Write i2c OK [19:58:37]MH_I2C_Read... [19:58:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:58:37]Read from MH i2c: E2 [19:58:37]MH_I2C_Read... [19:58:37]Read from MH i2c: E2 17 00 [19:58:37]MH_I2C_Read... [19:58:37]Read from MH i2c: E2 17 00 19 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 DF [19:58:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [19:58:37]wFMCommunicate OK [19:58:37]CreateOFDProtocolMessage done [19:58:37]OFDSenderStorePacket 68465 [19:58:37]StoreOFDPacket docnum=68465 [19:58:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 1B DC 07 01 A8 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 CA 17 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 CD AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 6C 20 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 71 0B 01 00 35 04 06 00 27 43 1C 70 3D AD B9 D7 4F CC 04 F9 CF 25 [19:58:37]CheckFolder [19:58:37]dirname=/storage/ofd_packets [19:58:37]CheckFolder done [19:58:37]ProducePacketName [19:58:37]name=ofd_packets/00068465 [19:58:37]NVStorageSaveData ofd_packets/00068465 [19:58:37]File name is /storage/ofd_packets/00068465 [19:58:37]Write 301 bytes [19:58:37]NVStorageSaveData done [19:58:37]OFDSenderStorePacket done [19:58:37]KKMCreateOFDPacket done [19:58:37]NVStorageSaveData kkm_last_timestamp [19:58:37]File name is /storage/kkm_last_timestamp [19:58:37]Write 4 bytes [19:58:37]NVStorageSaveData done [19:58:37]ExternCall_PrintAddStr [19:58:37]wPrintStart [19:58:37]Write to MH i2c: 01 00 00 1A 01 1B [19:58:37]Write i2c OK [19:58:37]MH_I2C_Read... [19:58:37]Read from MH i2c: 01 [19:58:37]MH_I2C_Read... [19:58:37]Read from MH i2c: 01 07 00 [19:58:37]MH_I2C_Read... [19:58:37]Read from MH i2c: 01 07 00 1A 01 00 00 00 00 00 FF 0F 30 [19:58:37]RasterBufferAndPrint [19:58:37]line Счет N : (1)706575 [19:58:37]line ИНН: 02508201610067 [19:58:37]line Контрольно-Кассовый Чек [19:58:37]line ПРОДАЖА [19:58:37]line ТРК (МРК, ГНК) : 43 [19:58:37]line Товар: 2710124500 [19:58:37]line Аи-95-К-5 [19:58:37]line 6.090 * 73.90 [19:58:37]line = 450.05 [19:58:37]line НДС 12% НСП 1% [19:58:37]line > о реализуемом товаре [19:58:37]line ОКРУГЛЕНИЕ: -0.05 [19:58:37]line ИТОГО: 450.00 [19:58:37]line Внесено: 450.00 [19:58:37]line СДАЧА: 0.00 [19:58:37]line НСП 1% : 3.98 [19:58:37]line НДС 12% : 47.79 [19:58:37]line Наличными: 450.00 [19:58:37]line Безнал.: 0.00 [19:58:37]line Место: АЗС № 62 "Партнер Нефть" [19:58:37]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [19:58:37]line СНО: Общий режим [19:58:37]line Чек 211 03.06.2024 19:58 [19:58:37]line Смена: 324 ФФД: 1.0 [19:58:37]line ЗНМ: 0300000181 [19:58:37]line РНМ: 0000000000098096 [19:58:37]line Версия ККМ: 001 [19:58:37]line ФМ: 0000000000965400 [19:58:37]line ФД: 68465 [19:58:37]line ФПД: 43169193409965 [19:58:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T195836&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68465&fm=43169193409965&tin=02508201610067®Number=0000000000098096&sum=45000 [19:58:38]OFD Sender: Processing packet 68465 [packets to send 26, broken 25] [19:58:38]ProducePacketName [19:58:38]name=ofd_packets/00068465 [19:58:38]OFD Sender: To server: pG, [19:58:38]CommunicateWithHost lk.salyk.kg:30040 [19:58:38]ConnectInit lk.salyk.kg [19:58:38]written 0, free lines is 4095 [19:58:38]Connected sock=10 [19:58:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 1B DC 07 01 A8 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 CA 17 00 00 00 00 00 37 04 06 00 DE 1C 00 00 00 00 13 04 06 00 CD AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 6C 20 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 71 0B 01 00 35 04 06 00 27 43 1C 70 3D AD B9 D7 4F CC 04 F9 CF 25 [19:58:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 9A 3E 47 00 58 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 71 0B 01 00 F4 03 04 00 67 C7 5D 66 B6 04 01 00 00 63 66 D0 0B AE 34 75 2E [19:58:38]CommunicateWithHost err = 0 [19:58:38]CheckOFDResponse [19:58:38]1017 (14) - 77093643461234 [19:58:38]1041 (16) - 0000000000965400 [19:58:38]1040 (4) - 68465 [19:58:38]1012 (4) - 03.06.2024 13:38 [19:58:38]1206 (1) - 0 [19:58:38]OFD Sender: Remove packet 68465 [19:58:38]ProducePacketName [19:58:38]name=ofd_packets/00068465 [19:58:38]NVStorageDeleteData [19:58:38]Write to MH i2c: 01 00 00 45 01 46 [19:58:38]Write i2c OK [19:58:38]MH_I2C_Read... [19:58:38]Read from MH i2c: 01 [19:58:38]MH_I2C_Read... [19:58:38]Read from MH i2c: 01 07 00 [19:58:38]MH_I2C_Read... [19:58:38]Read from MH i2c: 01 07 00 45 01 00 00 00 00 00 CC 0C 25 [19:58:38]RasterBufferAndPrint [19:58:38]line [19:58:38]line [19:58:38]line [19:58:38]line [19:58:38]line [19:58:38]written 0, free lines is 3282 [19:58:38]MH_Cut [19:58:38]Write to MH i2c: D1 01 00 4C 01 01 1F [19:58:38]Write i2c OK [19:58:38]MH_I2C_Read... [19:58:38]Read from MH i2c: D1 [19:58:38]MH_I2C_Read... [19:58:38]Read from MH i2c: D1 01 00 [19:58:38]MH_I2C_Read... [19:58:38]Read from MH i2c: D1 01 00 4C 01 00 1E [19:58:38]Write to MH i2c: 01 00 00 4D 01 4E [19:58:38]Write i2c OK [19:58:38]MH_I2C_Read... [19:58:38]OFD Sender: No OFD packet to send [19:58:39]*** Cut start [19:58:39]*** Partial cut [19:58:39]*** CUTSNS_PIN = 1 [19:58:39]*** CUTSNS_PIN = 0 [19:58:39]*** Brake cut motor [19:58:40]Read from MH i2c: 01 [19:58:40]MH_I2C_Read... [19:58:40]*** Stop cut motor [19:58:40]*** Cut end [19:58:40]Read from MH i2c: 01 07 00 [19:58:40]MH_I2C_Read... [19:58:40]Read from MH i2c: 01 07 00 4D 01 00 00 00 00 00 FF 0F 63 [19:58:40]process_action close_receipt done [19:58:40]requested_data is exist [19:58:40]produce_requested_data [19:58:40]requested_item fm.sn is exist - process it [19:58:40]wFMCommunicate request_size=4 [19:58:40]MH_SAM_APDU [19:58:40]CAPDU: 80 11 00 00 [19:58:40]Write to MH i2c: E2 08 00 4E 01 80 11 00 00 00 00 00 00 C9 [19:58:40]Write i2c OK [19:58:40]MH_I2C_Read... [19:58:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:58:40]Read from MH i2c: E2 [19:58:40]MH_I2C_Read... [19:58:40]Read from MH i2c: E2 17 00 [19:58:40]MH_I2C_Read... [19:58:40]Read from MH i2c: E2 17 00 4E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 14 [19:58:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [19:58:40]wFMCommunicate OK [19:58:40]requested_item fd.num is exist - process it [19:58:40]SAM_PROTO_GetFieldsCounters [19:58:40]wFMCommunicate request_size=4 [19:58:40]MH_SAM_APDU [19:58:40]CAPDU: 80 13 00 00 [19:58:40]Write to MH i2c: E2 08 00 4F 01 80 13 00 00 00 00 00 00 CC [19:58:40]Write i2c OK [19:58:40]MH_I2C_Read... [19:58:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:58:40]Read from MH i2c: E2 [19:58:40]MH_I2C_Read... [19:58:40]Read from MH i2c: E2 62 00 [19:58:40]MH_I2C_Read... [19:58:40]Read from MH i2c: E2 62 00 4F 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 71 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 27 [19:58:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 71 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:58:40]wFMCommunicate OK [19:58:40]SAM_PROTO_GetFieldsCounters done [19:58:40]requested_item shift.num is exist - process it [19:58:40]requested_item shift.opened is exist - process it [19:58:40]req_shift_opened [19:58:40]FM_GetShiftState [19:58:40]SAM_PROTO_GetShiftState [19:58:40]wFMCommunicate request_size=4 [19:58:40]MH_SAM_APDU [19:58:40]CAPDU: 80 13 01 00 [19:58:40]Write to MH i2c: E2 08 00 50 01 80 13 01 00 00 00 00 00 CE [19:58:40]Write i2c OK [19:58:40]MH_I2C_Read... [19:58:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:58:40]Read from MH i2c: E2 [19:58:40]MH_I2C_Read... [19:58:40]Read from MH i2c: E2 0E 00 [19:58:40]MH_I2C_Read... [19:58:40]Read from MH i2c: E2 0E 00 50 01 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 A9 [19:58:40]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [19:58:40]wFMCommunicate OK [19:58:40]SAM_PROTO_GetShiftState done [19:58:40]FM_GetShiftState done [19:58:40]req_shift_opened done [19:58:40]requested_item shift.open_date is exist - process it [19:58:40]req_shift_open_date [19:58:40]req_shift_open_date done [19:58:40]produce_requested_data done [19:58:40]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68465,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [19:58:40]process_action_free close_receipt [19:58:40]json_value_free [19:58:40]json_value_free done [19:58:40]process_json_proto returns [19:58:40]Send response to host [19:58:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68465,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [19:58:40]free response buf [19:58:40]execute_script done [19:58:40]execute_script returns [19:58:40]free content buf [19:58:40]Sock 9.Close socket [19:58:40]Sock 9.Thread stoped [19:58:43]OFD Sender: No OFD packet to send [19:58:48]OFD Sender: No OFD packet to send [19:58:53]OFD Sender: No OFD packet to send [19:58:58]OFD Sender: No OFD packet to send [19:59:03]OFD Sender: No OFD packet to send [19:59:08]OFD Sender: No OFD packet to send [19:59:13]OFD Sender: No OFD packet to send [19:59:18]OFD Sender: No OFD packet to send [19:59:23]OFD Sender: No OFD packet to send [19:59:28]OFD Sender: No OFD packet to send [19:59:33]OFD Sender: No OFD packet to send [19:59:38]OFD Sender: No OFD packet to send [19:59:43]OFD Sender: No OFD packet to send [19:59:48]OFD Sender: No OFD packet to send [19:59:53]OFD Sender: No OFD packet to send [19:59:58]OFD Sender: No OFD packet to send [20:00:02]accept exits with 7 [20:00:02]New connection [20:00:02]New thread 3067084132 created [20:00:02]Thread 3067227492 joined [20:00:02]Waiting for new connection... [20:00:02] Sock 7.Parse request [20:00:02]Sock 7.Check first char [20:00:02]Sock 7.First char is OK [20:00:02]request: POST /json_proto HTTP/1.0 [20:00:02]Method: POST [20:00:02]URL: /json_proto [20:00:02]Method is POST - this is cgi request [20:00:02]url: /json_proto [20:00:02]query_string will be loaded in cgi processing [20:00:02]execute_cgi json_proto POST (null) [20:00:02]execute_cgi path=json_proto method=POST [20:00:02]POST find Content-Length [20:00:02]Host: 172.17.36.132:8080 [20:00:02]Content-Length: 677 [20:00:02]Content-Type: application/json [20:00:02] [20:00:02]POST finish read [20:00:02]Found Content-Length = 677 [20:00:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706576", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:00:02]execute_script... [20:00: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)706576", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:00:02]POST & json_proto [20:00:02]process_json_proto [20:00:02]json parsed OK: [20:00:02]protocol is kg_v1.0 [20:00:02]action value=close_receipt [20:00:02]process_action close_receipt [20:00:02]cmd_close_receipt [20:00:02]MH_GetDate [20:00:02]Write to MH i2c: F0 00 00 51 01 41 [20:00:02]Write i2c OK [20:00:02]MH_I2C_Read... [20:00:02]Read from MH i2c: F0 [20:00:02]MH_I2C_Read... [20:00:02]Read from MH i2c: F0 09 00 [20:00:02]MH_I2C_Read... [20:00:02]Read from MH i2c: F0 09 00 51 01 00 C2 20 5E 66 B2 22 B0 64 D8 [20:00:02]GetLastDocTimeStamp 1717444716 [20:00:02]current date 1717444802 [20:00:02]FM_GetShiftState [20:00:02]SAM_PROTO_GetShiftState [20:00:02]wFMCommunicate request_size=4 [20:00:02]MH_SAM_APDU [20:00:02]CAPDU: 80 13 01 00 [20:00:02]Write to MH i2c: E2 08 00 52 01 80 13 01 00 00 00 00 00 D0 [20:00:02]Write i2c OK [20:00:02]MH_I2C_Read... [20:00:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:00:02]Read from MH i2c: E2 [20:00:02]MH_I2C_Read... [20:00:02]Read from MH i2c: E2 0E 00 [20:00:02]MH_I2C_Read... [20:00:02]Read from MH i2c: E2 0E 00 52 01 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 AB [20:00:02]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [20:00:02]wFMCommunicate OK [20:00:02]SAM_PROTO_GetShiftState done [20:00:02]FM_GetShiftState done [20:00:02]opened in 1717378033 [20:00:02]opened+sec_in_day 1717464433 [20:00:02]quantity*price = 50041 [20:00:02]sum+1 = 50042 [20:00:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 212 03.06.2024 20:00 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68466 ФПД: 122175024758689 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T200002&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68466&fm=122175024758689&tin=02508201610067®Number=0000000000098096&sum=50000 [20:00:03]StoreToDocumentArchive [20:00:03]shift 324 fd 68466 [20:00:03]save to /storage/0324/doc_00068466 [20:00:03]save last doc name /storage/0324/doc_00068466 to /storage/kkm_last_doc_name [20:00:03]save OK [20:00:03]Clear old archive folders... [20:00:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:00:03]tlvbuf is 009CA7A0 [20:00:03]SAM_PROTO_ClearQueue [20:00:03]wFMCommunicate request_size=4 [20:00:03]MH_SAM_APDU [20:00:03]CAPDU: 80 09 00 00 [20:00:03]Write to MH i2c: E2 08 00 5F 01 80 09 00 00 00 00 00 00 D2 [20:00:03]Write i2c OK [20:00:03]MH_I2C_Read... [20:00:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:00:03]Read from MH i2c: E2 [20:00:03]MH_I2C_Read... [20:00:03]Read from MH i2c: E2 03 00 [20:00:03]MH_I2C_Read... [20:00:03]Read from MH i2c: E2 03 00 5F 01 00 90 00 D4 [20:00:03]RAPDU: 90 00 [20:00:03]wFMCommunicate OK [20:00:03]SAM_PROTO_ClearQueue done [20:00:03]KKMCreateOFDPacket [20:00:03]OFDProtocolAddRootSTLVToBuf [20:00:03]FM_MakeSignedData [20:00:03]FM_MakeSignedData [20:00:03]SAM_PROTO_SignData [20:00:03]wFMCommunicate request_size=4 [20:00:03]MH_SAM_APDU [20:00:03]CAPDU: 80 0D 01 02 [20:00:03]Write to MH i2c: E2 08 00 60 01 80 0D 01 02 00 00 00 00 DA [20:00:03]Write i2c OK [20:00:03]MH_I2C_Read... [20:00:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:00:03]Read from MH i2c: E2 [20:00:03]MH_I2C_Read... [20:00:03]Read from MH i2c: E2 03 00 [20:00:03]MH_I2C_Read... [20:00:03]Read from MH i2c: E2 03 00 60 01 00 90 00 D5 [20:00:03]RAPDU: 90 00 [20:00:03]wFMCommunicate OK [20:00:03]wFMCommunicate request_size=255 [20:00:03]MH_SAM_APDU [20:00:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 C2 20 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 72 0B 01 00 35 04 06 00 6F [20:00:03]Write to MH i2c: E2 02 01 61 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 C2 20 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 72 0B 01 00 35 04 06 00 6F 00 00 13 [20:00:03]Write i2c OK [20:00:03]MH_I2C_Read... [20:00:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:00:03]Read from MH i2c: E2 [20:00:03]MH_I2C_Read... [20:00:03]Read from MH i2c: E2 03 00 [20:00:03]MH_I2C_Read... [20:00:03]Read from MH i2c: E2 03 00 61 01 00 90 00 D6 [20:00:03]RAPDU: 90 00 [20:00:03]wFMCommunicate OK [20:00:03]wFMCommunicate request_size=10 [20:00:03]MH_SAM_APDU [20:00:03]CAPDU: 80 0D 02 02 05 1E 16 F3 7F A1 [20:00:03]Write to MH i2c: E2 0D 00 62 01 80 0D 02 02 05 00 1E 16 F3 7F A1 00 00 2E [20:00:03]Write i2c OK [20:00:03]MH_I2C_Read... [20:00:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:00:03]Read from MH i2c: E2 [20:00:03]MH_I2C_Read... [20:00:03]Read from MH i2c: E2 03 00 [20:00:03]MH_I2C_Read... [20:00:03]Read from MH i2c: E2 03 00 62 01 00 90 00 D7 [20:00:03]RAPDU: 90 00 [20:00:03]wFMCommunicate OK [20:00:03]wFMCommunicate request_size=4 [20:00:03]MH_SAM_APDU [20:00:03]CAPDU: 80 0D 03 02 [20:00:03]Write to MH i2c: E2 08 00 63 01 80 0D 03 02 00 00 00 00 DF [20:00:03]Write i2c OK [20:00:03]MH_I2C_Read... [20:00:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:00:03]Read from MH i2c: E2 [20:00:03]MH_I2C_Read... [20:00:03]Read from MH i2c: E2 0B 00 [20:00:03]MH_I2C_Read... [20:00:03]Read from MH i2c: E2 0B 00 63 01 00 4A 81 B8 33 67 01 0E 05 90 00 11 [20:00:03]RAPDU: 4A 81 B8 33 67 01 0E 05 90 00 [20:00:03]wFMCommunicate OK [20:00:03]SAM_PROTO_SignData done [20:00:03]FM_MakeSignedData done [20:00:03]CreateOFDProtocolMessage [20:00:03]wFMCommunicate request_size=4 [20:00:03]MH_SAM_APDU [20:00:03]CAPDU: 80 11 00 00 [20:00:03]Write to MH i2c: E2 08 00 64 01 80 11 00 00 00 00 00 00 DF [20:00:03]Write i2c OK [20:00:03]MH_I2C_Read... [20:00:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:00:03]Read from MH i2c: E2 [20:00:03]MH_I2C_Read... [20:00:03]Read from MH i2c: E2 17 00 [20:00:03]MH_I2C_Read... [20:00:03]Read from MH i2c: E2 17 00 64 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 2A [20:00:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [20:00:03]wFMCommunicate OK [20:00:03]CreateOFDProtocolMessage done [20:00:03]OFDSenderStorePacket 68466 [20:00:03]StoreOFDPacket docnum=68466 [20:00:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 FB 82 07 01 F9 D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 C2 20 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 72 0B 01 00 35 04 06 00 6F 1E 16 F3 7F A1 4A 81 B8 33 67 01 0E 05 [20:00:03]CheckFolder [20:00:03]dirname=/storage/ofd_packets [20:00:03]CheckFolder done [20:00:03]ProducePacketName [20:00:03]name=ofd_packets/00068466 [20:00:03]NVStorageSaveData ofd_packets/00068466 [20:00:03]File name is /storage/ofd_packets/00068466 [20:00:03]Write 301 bytes [20:00:03]NVStorageSaveData done [20:00:03]OFDSenderStorePacket done [20:00:03]KKMCreateOFDPacket done [20:00:03]NVStorageSaveData kkm_last_timestamp [20:00:03]File name is /storage/kkm_last_timestamp [20:00:03]Write 4 bytes [20:00:03]NVStorageSaveData done [20:00:03]OFD Sender: Processing packet 68466 [packets to send 26, broken 25] [20:00:03]ProducePacketName [20:00:03]name=ofd_packets/00068466 [20:00:03]OFD Sender: To server: pG, [20:00:03]CommunicateWithHost lk.salyk.kg:30040 [20:00:03]ConnectInit lk.salyk.kg [20:00:03]ExternCall_PrintAddStr [20:00:03]wPrintStart [20:00:03]Write to MH i2c: 01 00 00 65 01 66 [20:00:03]Write i2c OK [20:00:03]MH_I2C_Read... [20:00:03]Read from MH i2c: 01 [20:00:03]MH_I2C_Read... [20:00:03]Read from MH i2c: 01 07 00 [20:00:03]MH_I2C_Read... [20:00:03]Read from MH i2c: 01 07 00 65 01 00 00 00 00 00 FF 0F 7B [20:00:03]RasterBufferAndPrint [20:00:03]line Счет N : (1)706576 [20:00:03]line ИНН: 02508201610067 [20:00:03]line Контрольно-Кассовый Чек [20:00:03]line ПРОДАЖА [20:00:03]line ТРК (МРК, ГНК) : 63 [20:00:03]line Товар: 2710124130 [20:00:03]line Аи-92-К-4 [20:00:03]line 7.480 * 66.90 [20:00:03]line = 500.41 [20:00:03]line НДС 12% НСП 1% [20:00:03]line > о реализуемом товаре [20:00:03]line ОКРУГЛЕНИЕ: -0.41 [20:00:03]line ИТОГО: 500.00 [20:00:03]line Внесено: 500.00 [20:00:03]line СДАЧА: 0.00 [20:00:03]line НСП 1% : 4.43 [20:00:03]line НДС 12% : 53.14 [20:00:03]line Наличными: 500.00 [20:00:03]line Безнал.: 0.00 [20:00:03]line Место: АЗС № 62 "Партнер Нефть" [20:00:03]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [20:00:03]line СНО: Общий режим [20:00:03]line Чек 212 03.06.2024 20:00 [20:00:03]line Смена: 324 ФФД: 1.0 [20:00:03]line ЗНМ: 0300000181 [20:00:03]line РНМ: 0000000000098096 [20:00:03]line Версия ККМ: 001 [20:00:03]line ФМ: 0000000000965400 [20:00:03]line ФД: 68466 [20:00:03]line ФПД: 122175024758689 [20:00:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T200002&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68466&fm=122175024758689&tin=02508201610067®Number=0000000000098096&sum=50000 [20:00:04]Connected sock=11 [20:00:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 FB 82 07 01 F9 D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 C2 20 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 72 0B 01 00 35 04 06 00 6F 1E 16 F3 7F A1 4A 81 B8 33 67 01 0E 05 [20:00:04]written 0, free lines is 4095 [20:00:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 52 AA 47 00 76 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 72 0B 01 00 F4 03 04 00 BD C7 5D 66 B6 04 01 00 00 6E 15 1A 05 2C E3 AB 24 [20:00:04]CommunicateWithHost err = 0 [20:00:04]CheckOFDResponse [20:00:04]1017 (14) - 77093643461234 [20:00:04]1041 (16) - 0000000000965400 [20:00:04]1040 (4) - 68466 [20:00:04]1012 (4) - 03.06.2024 13:40 [20:00:04]1206 (1) - 0 [20:00:04]OFD Sender: Remove packet 68466 [20:00:04]ProducePacketName [20:00:04]name=ofd_packets/00068466 [20:00:04]NVStorageDeleteData [20:00:04]Write to MH i2c: 01 00 00 90 01 91 [20:00:04]Write i2c OK [20:00:04]MH_I2C_Read... [20:00:04]Read from MH i2c: 01 [20:00:04]MH_I2C_Read... [20:00:04]Read from MH i2c: 01 07 00 [20:00:04]MH_I2C_Read... [20:00:04]Read from MH i2c: 01 07 00 90 01 00 00 00 00 00 CD 0C 71 [20:00:04]RasterBufferAndPrint [20:00:04]line [20:00:04]line [20:00:04]line [20:00:04]line [20:00:04]line [20:00:04]written 0, free lines is 3283 [20:00:04]MH_Cut [20:00:04]Write to MH i2c: D1 01 00 97 01 01 6A [20:00:04]Write i2c OK [20:00:04]MH_I2C_Read... [20:00:04]Read from MH i2c: D1 [20:00:04]MH_I2C_Read... [20:00:04]Read from MH i2c: D1 01 00 [20:00:04]MH_I2C_Read... [20:00:04]Read from MH i2c: D1 01 00 97 01 00 69 [20:00:04]Write to MH i2c: 01 00 00 98 01 99 [20:00:04]Write i2c OK [20:00:04]MH_I2C_Read... [20:00:04]OFD Sender: No OFD packet to send [20:00:05]*** Cut start [20:00:05]*** Partial cut [20:00:05]*** CUTSNS_PIN = 1 [20:00:05]*** CUTSNS_PIN = 0 [20:00:05]*** Brake cut motor [20:00:05]Read from MH i2c: 01 [20:00:05]MH_I2C_Read... [20:00:05]*** Stop cut motor [20:00:05]*** Cut end [20:00:05]Read from MH i2c: 01 07 00 [20:00:05]MH_I2C_Read... [20:00:05]Read from MH i2c: 01 07 00 98 01 00 00 00 00 00 FF 0F AE [20:00:05]process_action close_receipt done [20:00:05]requested_data is exist [20:00:05]produce_requested_data [20:00:05]requested_item fm.sn is exist - process it [20:00:05]wFMCommunicate request_size=4 [20:00:05]MH_SAM_APDU [20:00:05]CAPDU: 80 11 00 00 [20:00:05]Write to MH i2c: E2 08 00 99 01 80 11 00 00 00 00 00 00 14 [20:00:05]Write i2c OK [20:00:05]MH_I2C_Read... [20:00:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:00:05]Read from MH i2c: E2 [20:00:05]MH_I2C_Read... [20:00:05]Read from MH i2c: E2 17 00 [20:00:05]MH_I2C_Read... [20:00:05]Read from MH i2c: E2 17 00 99 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 5F [20:00:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [20:00:05]wFMCommunicate OK [20:00:05]requested_item fd.num is exist - process it [20:00:05]SAM_PROTO_GetFieldsCounters [20:00:05]wFMCommunicate request_size=4 [20:00:05]MH_SAM_APDU [20:00:05]CAPDU: 80 13 00 00 [20:00:05]Write to MH i2c: E2 08 00 9A 01 80 13 00 00 00 00 00 00 17 [20:00:05]Write i2c OK [20:00:05]MH_I2C_Read... [20:00:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:00:06]Read from MH i2c: E2 [20:00:06]MH_I2C_Read... [20:00:06]Read from MH i2c: E2 62 00 [20:00:06]MH_I2C_Read... [20:00:06]Read from MH i2c: E2 62 00 9A 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 72 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 76 [20:00:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 72 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:00:06]wFMCommunicate OK [20:00:06]SAM_PROTO_GetFieldsCounters done [20:00:06]requested_item shift.num is exist - process it [20:00:06]requested_item shift.opened is exist - process it [20:00:06]req_shift_opened [20:00:06]FM_GetShiftState [20:00:06]SAM_PROTO_GetShiftState [20:00:06]wFMCommunicate request_size=4 [20:00:06]MH_SAM_APDU [20:00:06]CAPDU: 80 13 01 00 [20:00:06]Write to MH i2c: E2 08 00 9B 01 80 13 01 00 00 00 00 00 19 [20:00:06]Write i2c OK [20:00:06]MH_I2C_Read... [20:00:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:00:06]Read from MH i2c: E2 [20:00:06]MH_I2C_Read... [20:00:06]Read from MH i2c: E2 0E 00 [20:00:06]MH_I2C_Read... [20:00:06]Read from MH i2c: E2 0E 00 9B 01 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 F4 [20:00:06]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [20:00:06]wFMCommunicate OK [20:00:06]SAM_PROTO_GetShiftState done [20:00:06]FM_GetShiftState done [20:00:06]req_shift_opened done [20:00:06]requested_item shift.open_date is exist - process it [20:00:06]req_shift_open_date [20:00:06]req_shift_open_date done [20:00:06]produce_requested_data done [20:00:06]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68466,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [20:00:06]process_action_free close_receipt [20:00:06]json_value_free [20:00:06]json_value_free done [20:00:06]process_json_proto returns [20:00:06]Send response to host [20:00:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68466,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [20:00:06]free response buf [20:00:06]execute_script done [20:00:06]execute_script returns [20:00:06]free content buf [20:00:06]Sock 7.Close socket [20:00:06]Sock 7.Thread stoped [20:00:09]OFD Sender: No OFD packet to send [20:00:14]OFD Sender: No OFD packet to send [20:00:19]OFD Sender: No OFD packet to send [20:00:24]OFD Sender: No OFD packet to send [20:00:29]OFD Sender: No OFD packet to send [20:00:34]OFD Sender: No OFD packet to send [20:00:39]OFD Sender: No OFD packet to send [20:00:44]OFD Sender: No OFD packet to send [20:00:49]OFD Sender: No OFD packet to send [20:00:54]OFD Sender: No OFD packet to send [20:00:59]OFD Sender: No OFD packet to send [20:01:04]OFD Sender: No OFD packet to send [20:01:09]OFD Sender: No OFD packet to send [20:01:14]OFD Sender: No OFD packet to send [20:01:19]OFD Sender: No OFD packet to send [20:01:24]OFD Sender: No OFD packet to send [20:01:29]OFD Sender: No OFD packet to send [20:01:34]OFD Sender: No OFD packet to send [20:01:39]OFD Sender: No OFD packet to send [20:01:44]OFD Sender: No OFD packet to send [20:01:49]accept exits with 9 [20:01:49]New connection [20:01:49]New thread 3067227492 created [20:01:49]Thread 3067084132 joined [20:01:49]Waiting for new connection... [20:01:49] Sock 9.Parse request [20:01:49]Sock 9.Check first char [20:01:49]Sock 9.First char is OK [20:01:49]request: POST /json_proto HTTP/1.0 [20:01:49]Method: POST [20:01:49]URL: /json_proto [20:01:49]Method is POST - this is cgi request [20:01:49]url: /json_proto [20:01:49]query_string will be loaded in cgi processing [20:01:49]execute_cgi json_proto POST (null) [20:01:49]execute_cgi path=json_proto method=POST [20:01:49]POST find Content-Length [20:01:49]Host: 172.17.36.132:8080 [20:01:49]Content-Length: 677 [20:01:49]Content-Type: application/json [20:01:49] [20:01:49]POST finish read [20:01:49]Found Content-Length = 677 [20:01:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706577", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:01:49]execute_script... [20:01: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)706577", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:01:49]POST & json_proto [20:01:49]process_json_proto [20:01:49]json parsed OK: [20:01:49]protocol is kg_v1.0 [20:01:49]action value=close_receipt [20:01:49]process_action close_receipt [20:01:49]cmd_close_receipt [20:01:49]MH_GetDate [20:01:49]Write to MH i2c: F0 00 00 9C 01 8C [20:01:49]Write i2c OK [20:01:49]MH_I2C_Read... [20:01:49]Read from MH i2c: F0 [20:01:49]MH_I2C_Read... [20:01:49]Read from MH i2c: F0 09 00 [20:01:49]MH_I2C_Read... [20:01:49]Read from MH i2c: F0 09 00 9C 01 00 2D 21 5E 66 B2 22 B0 64 8F [20:01:49]GetLastDocTimeStamp 1717444802 [20:01:49]current date 1717444909 [20:01:49]FM_GetShiftState [20:01:49]SAM_PROTO_GetShiftState [20:01:49]wFMCommunicate request_size=4 [20:01:49]MH_SAM_APDU [20:01:49]CAPDU: 80 13 01 00 [20:01:49]Write to MH i2c: E2 08 00 9D 01 80 13 01 00 00 00 00 00 1B [20:01:49]Write i2c OK [20:01:49]MH_I2C_Read... [20:01:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:01:49]Read from MH i2c: E2 [20:01:49]MH_I2C_Read... [20:01:49]Read from MH i2c: E2 0E 00 [20:01:49]MH_I2C_Read... [20:01:49]Read from MH i2c: E2 0E 00 9D 01 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 F6 [20:01:49]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [20:01:49]wFMCommunicate OK [20:01:49]SAM_PROTO_GetShiftState done [20:01:49]FM_GetShiftState done [20:01:49]opened in 1717378033 [20:01:49]opened+sec_in_day 1717464433 [20:01:49]quantity*price = 30038 [20:01:49]sum+1 = 30039 [20:01:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 213 03.06.2024 20:01 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68467 ФПД: 55908358709357 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T200149&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68467&fm=55908358709357&tin=02508201610067®Number=0000000000098096&sum=30000 [20:01:50]StoreToDocumentArchive [20:01:50]shift 324 fd 68467 [20:01:50]save to /storage/0324/doc_00068467 [20:01:50]save last doc name /storage/0324/doc_00068467 to /storage/kkm_last_doc_name [20:01:50]save OK [20:01:50]Clear old archive folders... [20:01:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:01:50]tlvbuf is B6F9B960 [20:01:50]SAM_PROTO_ClearQueue [20:01:50]wFMCommunicate request_size=4 [20:01:50]MH_SAM_APDU [20:01:50]CAPDU: 80 09 00 00 [20:01:50]Write to MH i2c: E2 08 00 AA 01 80 09 00 00 00 00 00 00 1D [20:01:50]Write i2c OK [20:01:50]MH_I2C_Read... [20:01:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:01:50]Read from MH i2c: E2 [20:01:50]MH_I2C_Read... [20:01:50]Read from MH i2c: E2 03 00 [20:01:50]MH_I2C_Read... [20:01:50]Read from MH i2c: E2 03 00 AA 01 00 90 00 1F [20:01:50]RAPDU: 90 00 [20:01:50]wFMCommunicate OK [20:01:50]SAM_PROTO_ClearQueue done [20:01:50]KKMCreateOFDPacket [20:01:50]OFDProtocolAddRootSTLVToBuf [20:01:50]FM_MakeSignedData [20:01:50]FM_MakeSignedData [20:01:50]SAM_PROTO_SignData [20:01:50]wFMCommunicate request_size=4 [20:01:50]MH_SAM_APDU [20:01:50]CAPDU: 80 0D 01 02 [20:01:50]Write to MH i2c: E2 08 00 AB 01 80 0D 01 02 00 00 00 00 25 [20:01:50]Write i2c OK [20:01:50]MH_I2C_Read... [20:01:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:01:50]Read from MH i2c: E2 [20:01:50]MH_I2C_Read... [20:01:50]Read from MH i2c: E2 03 00 [20:01:50]MH_I2C_Read... [20:01:50]Read from MH i2c: E2 03 00 AB 01 00 90 00 20 [20:01:50]RAPDU: 90 00 [20:01:50]wFMCommunicate OK [20:01:50]wFMCommunicate request_size=255 [20:01:50]MH_SAM_APDU [20:01:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 2D 21 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 73 0B 01 00 35 04 06 00 32 [20:01:50]Write to MH i2c: E2 02 01 AC 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 2D 21 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 73 0B 01 00 35 04 06 00 32 00 00 83 [20:01:50]Write i2c OK [20:01:50]MH_I2C_Read... [20:01:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:01:50]Read from MH i2c: E2 [20:01:50]MH_I2C_Read... [20:01:50]Read from MH i2c: E2 03 00 [20:01:50]MH_I2C_Read... [20:01:50]Read from MH i2c: E2 03 00 AC 01 00 90 00 21 [20:01:50]RAPDU: 90 00 [20:01:50]wFMCommunicate OK [20:01:50]wFMCommunicate request_size=10 [20:01:50]MH_SAM_APDU [20:01:50]CAPDU: 80 0D 02 02 05 D9 2D DC 60 6D [20:01:50]Write to MH i2c: E2 0D 00 AD 01 80 0D 02 02 05 00 D9 2D DC 60 6D 00 00 E1 [20:01:50]Write i2c OK [20:01:50]MH_I2C_Read... [20:01:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:01:50]Read from MH i2c: E2 [20:01:50]MH_I2C_Read... [20:01:50]Read from MH i2c: E2 03 00 [20:01:50]MH_I2C_Read... [20:01:50]Read from MH i2c: E2 03 00 AD 01 00 90 00 22 [20:01:50]RAPDU: 90 00 [20:01:50]wFMCommunicate OK [20:01:50]wFMCommunicate request_size=4 [20:01:50]MH_SAM_APDU [20:01:50]CAPDU: 80 0D 03 02 [20:01:50]Write to MH i2c: E2 08 00 AE 01 80 0D 03 02 00 00 00 00 2A [20:01:50]Write i2c OK [20:01:50]MH_I2C_Read... [20:01:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:01:50]Read from MH i2c: E2 [20:01:50]MH_I2C_Read... [20:01:50]Read from MH i2c: E2 0B 00 [20:01:50]MH_I2C_Read... [20:01:50]Read from MH i2c: E2 0B 00 AE 01 00 92 26 B5 86 CF 4F F6 67 90 00 99 [20:01:50]RAPDU: 92 26 B5 86 CF 4F F6 67 90 00 [20:01:50]wFMCommunicate OK [20:01:50]SAM_PROTO_SignData done [20:01:50]FM_MakeSignedData done [20:01:50]CreateOFDProtocolMessage [20:01:50]wFMCommunicate request_size=4 [20:01:50]MH_SAM_APDU [20:01:50]CAPDU: 80 11 00 00 [20:01:50]Write to MH i2c: E2 08 00 AF 01 80 11 00 00 00 00 00 00 2A [20:01:50]Write i2c OK [20:01:50]MH_I2C_Read... [20:01:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:01:51]Read from MH i2c: E2 [20:01:51]MH_I2C_Read... [20:01:51]Read from MH i2c: E2 17 00 [20:01:51]MH_I2C_Read... [20:01:51]Read from MH i2c: E2 17 00 AF 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 75 [20:01:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [20:01:51]wFMCommunicate OK [20:01:51]CreateOFDProtocolMessage done [20:01:51]OFDSenderStorePacket 68467 [20:01:51]StoreOFDPacket docnum=68467 [20:01:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 32 53 07 01 BD 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 2D 21 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 73 0B 01 00 35 04 06 00 32 D9 2D DC 60 6D 92 26 B5 86 CF 4F F6 67 [20:01:51]CheckFolder [20:01:51]dirname=/storage/ofd_packets [20:01:51]CheckFolder done [20:01:51]ProducePacketName [20:01:51]name=ofd_packets/00068467 [20:01:51]NVStorageSaveData ofd_packets/00068467 [20:01:51]File name is /storage/ofd_packets/00068467 [20:01:51]Write 301 bytes [20:01:51]NVStorageSaveData done [20:01:51]OFDSenderStorePacket done [20:01:51]KKMCreateOFDPacket done [20:01:51]NVStorageSaveData kkm_last_timestamp [20:01:51]File name is /storage/kkm_last_timestamp [20:01:51]Write 4 bytes [20:01:51]NVStorageSaveData done [20:01:51]ExternCall_PrintAddStr [20:01:51]wPrintStart [20:01:51]Write to MH i2c: 01 00 00 B0 01 B1 [20:01:51]Write i2c OK [20:01:51]MH_I2C_Read... [20:01:51]Read from MH i2c: 01 [20:01:51]MH_I2C_Read... [20:01:51]Read from MH i2c: 01 07 00 [20:01:51]MH_I2C_Read... [20:01:51]Read from MH i2c: 01 07 00 B0 01 00 00 00 00 00 FF 0F C6 [20:01:51]RasterBufferAndPrint [20:01:51]line Счет N : (1)706577 [20:01:51]line ИНН: 02508201610067 [20:01:51]line Контрольно-Кассовый Чек [20:01:51]line ПРОДАЖА [20:01:51]line ТРК (МРК, ГНК) : 32 [20:01:51]line Товар: 2710124130 [20:01:51]line Аи-92-К-4 [20:01:51]line 4.490 * 66.90 [20:01:51]line = 300.38 [20:01:51]line НДС 12% НСП 1% [20:01:51]line > о реализуемом товаре [20:01:51]line ОКРУГЛЕНИЕ: -0.38 [20:01:51]line ИТОГО: 300.00 [20:01:51]line Внесено: 300.00 [20:01:51]line СДАЧА: 0.00 [20:01:51]line НСП 1% : 2.66 [20:01:51]line НДС 12% : 31.90 [20:01:51]line Наличными: 300.00 [20:01:51]line Безнал.: 0.00 [20:01:51]line Место: АЗС № 62 "Партнер Нефть" [20:01:51]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [20:01:51]line СНО: Общий режим [20:01:51]line Чек 213 03.06.2024 20:01 [20:01:51]line Смена: 324 ФФД: 1.0 [20:01:51]line ЗНМ: 0300000181 [20:01:51]line РНМ: 0000000000098096 [20:01:51]line Версия ККМ: 001 [20:01:51]line ФМ: 0000000000965400 [20:01:51]line ФД: 68467 [20:01:51]line ФПД: 55908358709357 [20:01:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T200149&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68467&fm=55908358709357&tin=02508201610067®Number=0000000000098096&sum=30000 [20:01:51]OFD Sender: Processing packet 68467 [packets to send 26, broken 25] [20:01:51]ProducePacketName [20:01:51]name=ofd_packets/00068467 [20:01:51]OFD Sender: To server: pG, [20:01:51]CommunicateWithHost lk.salyk.kg:30040 [20:01:51]ConnectInit lk.salyk.kg [20:01:51]written 0, free lines is 4095 [20:01:51]Connected sock=10 [20:01:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 32 53 07 01 BD 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 2D 21 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 73 0B 01 00 35 04 06 00 32 D9 2D DC 60 6D 92 26 B5 86 CF 4F F6 67 [20:01:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 8D AD 47 00 32 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 39 36 35 34 30 30 10 04 04 00 73 0B 01 00 F4 03 04 00 28 C8 5D 66 B6 04 01 00 00 E2 F5 3E ED EE 8C D9 78 [20:01:51]CommunicateWithHost err = 0 [20:01:51]CheckOFDResponse [20:01:51]1017 (14) - 77093643461234 [20:01:51]1041 (16) - 0000000000965400 [20:01:51]1040 (4) - 68467 [20:01:51]1012 (4) - 03.06.2024 13:42 [20:01:51]1206 (1) - 0 [20:01:51]OFD Sender: Remove packet 68467 [20:01:51]ProducePacketName [20:01:51]name=ofd_packets/00068467 [20:01:51]NVStorageDeleteData [20:01:51]Write to MH i2c: 01 00 00 DB 01 DC [20:01:51]Write i2c OK [20:01:51]MH_I2C_Read... [20:01:51]Read from MH i2c: 01 [20:01:51]MH_I2C_Read... [20:01:51]Read from MH i2c: 01 07 00 [20:01:51]MH_I2C_Read... [20:01:51]Read from MH i2c: 01 07 00 DB 01 00 00 00 00 00 D8 0C C7 [20:01:51]RasterBufferAndPrint [20:01:51]line [20:01:51]line [20:01:51]line [20:01:51]line [20:01:51]line [20:01:51]written 0, free lines is 3295 [20:01:51]MH_Cut [20:01:51]Write to MH i2c: D1 01 00 E2 01 01 B5 [20:01:51]Write i2c OK [20:01:51]MH_I2C_Read... [20:01:51]Read from MH i2c: D1 [20:01:51]MH_I2C_Read... [20:01:51]Read from MH i2c: D1 01 00 [20:01:51]MH_I2C_Read... [20:01:51]Read from MH i2c: D1 01 00 E2 01 00 B4 [20:01:51]Write to MH i2c: 01 00 00 E3 01 E4 [20:01:51]Write i2c OK [20:01:51]MH_I2C_Read... [20:01:52]OFD Sender: No OFD packet to send [20:01:52]*** Cut start [20:01:52]*** Partial cut [20:01:52]*** CUTSNS_PIN = 1 [20:01:52]*** CUTSNS_PIN = 0 [20:01:52]*** Brake cut motor [20:01:53]Read from MH i2c: 01 [20:01:53]MH_I2C_Read... [20:01:53]*** Stop cut motor [20:01:53]*** Cut end [20:01:53]Read from MH i2c: 01 07 00 [20:01:53]MH_I2C_Read... [20:01:53]Read from MH i2c: 01 07 00 E3 01 00 00 00 00 00 FF 0F F9 [20:01:53]process_action close_receipt done [20:01:53]requested_data is exist [20:01:53]produce_requested_data [20:01:53]requested_item fm.sn is exist - process it [20:01:53]wFMCommunicate request_size=4 [20:01:53]MH_SAM_APDU [20:01:53]CAPDU: 80 11 00 00 [20:01:53]Write to MH i2c: E2 08 00 E4 01 80 11 00 00 00 00 00 00 5F [20:01:53]Write i2c OK [20:01:53]MH_I2C_Read... [20:01:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:01:53]Read from MH i2c: E2 [20:01:53]MH_I2C_Read... [20:01:53]Read from MH i2c: E2 17 00 [20:01:53]MH_I2C_Read... [20:01:53]Read from MH i2c: E2 17 00 E4 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 AA [20:01:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [20:01:53]wFMCommunicate OK [20:01:53]requested_item fd.num is exist - process it [20:01:53]SAM_PROTO_GetFieldsCounters [20:01:53]wFMCommunicate request_size=4 [20:01:53]MH_SAM_APDU [20:01:53]CAPDU: 80 13 00 00 [20:01:53]Write to MH i2c: E2 08 00 E5 01 80 13 00 00 00 00 00 00 62 [20:01:53]Write i2c OK [20:01:53]MH_I2C_Read... [20:01:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:01:53]Read from MH i2c: E2 [20:01:53]MH_I2C_Read... [20:01:53]Read from MH i2c: E2 62 00 [20:01:53]MH_I2C_Read... [20:01:53]Read from MH i2c: E2 62 00 E5 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 73 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 C5 [20:01:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 73 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:01:53]wFMCommunicate OK [20:01:53]SAM_PROTO_GetFieldsCounters done [20:01:53]requested_item shift.num is exist - process it [20:01:53]requested_item shift.opened is exist - process it [20:01:53]req_shift_opened [20:01:53]FM_GetShiftState [20:01:53]SAM_PROTO_GetShiftState [20:01:53]wFMCommunicate request_size=4 [20:01:53]MH_SAM_APDU [20:01:53]CAPDU: 80 13 01 00 [20:01:53]Write to MH i2c: E2 08 00 E6 01 80 13 01 00 00 00 00 00 64 [20:01:53]Write i2c OK [20:01:53]MH_I2C_Read... [20:01:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:01:53]Read from MH i2c: E2 [20:01:53]MH_I2C_Read... [20:01:53]Read from MH i2c: E2 0E 00 [20:01:53]MH_I2C_Read... [20:01:53]Read from MH i2c: E2 0E 00 E6 01 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 3F [20:01:53]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [20:01:53]wFMCommunicate OK [20:01:53]SAM_PROTO_GetShiftState done [20:01:53]FM_GetShiftState done [20:01:53]req_shift_opened done [20:01:53]requested_item shift.open_date is exist - process it [20:01:53]req_shift_open_date [20:01:53]req_shift_open_date done [20:01:53]produce_requested_data done [20:01:53]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68467,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [20:01:53]process_action_free close_receipt [20:01:53]json_value_free [20:01:53]json_value_free done [20:01:53]process_json_proto returns [20:01:53]Send response to host [20:01:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68467,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [20:01:53]free response buf [20:01:53]execute_script done [20:01:53]execute_script returns [20:01:53]free content buf [20:01:53]Sock 9.Close socket [20:01:53]Sock 9.Thread stoped [20:01:56]accept exits with 7 [20:01:56]New connection [20:01:56]New thread 3067084132 created [20:01:56]Thread 3067227492 joined [20:01:56]Waiting for new connection... [20:01:56] Sock 7.Parse request [20:01:56]Sock 7.Check first char [20:01:56]Sock 7.First char is OK [20:01:56]request: POST /json_proto HTTP/1.0 [20:01:56]Method: POST [20:01:56]URL: /json_proto [20:01:56]Method is POST - this is cgi request [20:01:56]url: /json_proto [20:01:56]query_string will be loaded in cgi processing [20:01:56]execute_cgi json_proto POST (null) [20:01:56]execute_cgi path=json_proto method=POST [20:01:56]POST find Content-Length [20:01:56]Host: 172.17.36.132:8080 [20:01:56]Content-Length: 677 [20:01:56]Content-Type: application/json [20:01:56] [20:01:56]POST finish read [20:01:56]Found Content-Length = 677 [20:01:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706578", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:01:56]execute_script... [20:01:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706578", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:01:56]POST & json_proto [20:01:56]process_json_proto [20:01:56]json parsed OK: [20:01:56]protocol is kg_v1.0 [20:01:56]action value=close_receipt [20:01:56]process_action close_receipt [20:01:56]cmd_close_receipt [20:01:56]MH_GetDate [20:01:56]Write to MH i2c: F0 00 00 E7 01 D7 [20:01:56]Write i2c OK [20:01:56]MH_I2C_Read... [20:01:56]Read from MH i2c: F0 [20:01:56]MH_I2C_Read... [20:01:56]Read from MH i2c: F0 09 00 [20:01:56]MH_I2C_Read... [20:01:56]Read from MH i2c: F0 09 00 E7 01 00 35 21 5E 66 B2 22 B0 64 E2 [20:01:56]GetLastDocTimeStamp 1717444909 [20:01:56]current date 1717444917 [20:01:56]FM_GetShiftState [20:01:56]SAM_PROTO_GetShiftState [20:01:56]wFMCommunicate request_size=4 [20:01:56]MH_SAM_APDU [20:01:56]CAPDU: 80 13 01 00 [20:01:56]Write to MH i2c: E2 08 00 E8 01 80 13 01 00 00 00 00 00 66 [20:01:56]Write i2c OK [20:01:56]MH_I2C_Read... [20:01:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:01:56]Read from MH i2c: E2 [20:01:56]MH_I2C_Read... [20:01:56]Read from MH i2c: E2 0E 00 [20:01:56]MH_I2C_Read... [20:01:56]Read from MH i2c: E2 0E 00 E8 01 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 41 [20:01:56]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [20:01:56]wFMCommunicate OK [20:01:56]SAM_PROTO_GetShiftState done [20:01:56]FM_GetShiftState done [20:01:56]opened in 1717378033 [20:01:56]opened+sec_in_day 1717464433 [20:01:56]quantity*price = 30038 [20:01:56]sum+1 = 30039 [20:01:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 214 03.06.2024 20:01 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68468 ФПД: 142250647309420 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T200157&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68468&fm=142250647309420&tin=02508201610067®Number=0000000000098096&sum=30000 [20:01:57]StoreToDocumentArchive [20:01:57]shift 324 fd 68468 [20:01:57]save to /storage/0324/doc_00068468 [20:01:57]save last doc name /storage/0324/doc_00068468 to /storage/kkm_last_doc_name [20:01:57]save OK [20:01:57]Clear old archive folders... [20:01:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:01:57]tlvbuf is 00A25AA0 [20:01:57]SAM_PROTO_ClearQueue [20:01:57]wFMCommunicate request_size=4 [20:01:57]MH_SAM_APDU [20:01:57]CAPDU: 80 09 00 00 [20:01:57]Write to MH i2c: E2 08 00 F5 01 80 09 00 00 00 00 00 00 68 [20:01:57]Write i2c OK [20:01:57]MH_I2C_Read... [20:01:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:01:57]Read from MH i2c: E2 [20:01:57]MH_I2C_Read... [20:01:57]Read from MH i2c: E2 03 00 [20:01:57]MH_I2C_Read... [20:01:57]Read from MH i2c: E2 03 00 F5 01 00 90 00 6A [20:01:57]RAPDU: 90 00 [20:01:57]wFMCommunicate OK [20:01:57]SAM_PROTO_ClearQueue done [20:01:57]KKMCreateOFDPacket [20:01:57]OFDProtocolAddRootSTLVToBuf [20:01:57]FM_MakeSignedData [20:01:57]FM_MakeSignedData [20:01:57]SAM_PROTO_SignData [20:01:57]wFMCommunicate request_size=4 [20:01:57]MH_SAM_APDU [20:01:57]CAPDU: 80 0D 01 02 [20:01:57]Write to MH i2c: E2 08 00 F6 01 80 0D 01 02 00 00 00 00 70 [20:01:57]Write i2c OK [20:01:57]MH_I2C_Read... [20:01:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:01:57]Read from MH i2c: E2 [20:01:57]MH_I2C_Read... [20:01:57]Read from MH i2c: E2 03 00 [20:01:57]MH_I2C_Read... [20:01:57]Read from MH i2c: E2 03 00 F6 01 00 90 00 6B [20:01:57]RAPDU: 90 00 [20:01:57]wFMCommunicate OK [20:01:57]wFMCommunicate request_size=255 [20:01:57]MH_SAM_APDU [20:01:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 35 21 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 74 0B 01 00 35 04 06 00 81 [20:01:57]Write to MH i2c: E2 02 01 F7 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 35 21 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 74 0B 01 00 35 04 06 00 81 00 00 27 [20:01:57]Write i2c OK [20:01:57]MH_I2C_Read... [20:01:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:01:58]Read from MH i2c: E2 [20:01:58]MH_I2C_Read... [20:01:58]Read from MH i2c: E2 03 00 [20:01:58]MH_I2C_Read... [20:01:58]Read from MH i2c: E2 03 00 F7 01 00 90 00 6C [20:01:58]RAPDU: 90 00 [20:01:58]wFMCommunicate OK [20:01:58]wFMCommunicate request_size=10 [20:01:58]MH_SAM_APDU [20:01:58]CAPDU: 80 0D 02 02 05 60 4F 4D 4C 6C [20:01:58]Write to MH i2c: E2 0D 00 F8 01 80 0D 02 02 05 00 60 4F 4D 4C 6C 00 00 31 [20:01:58]Write i2c OK [20:01:58]MH_I2C_Read... [20:01:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:01:58]Read from MH i2c: E2 [20:01:58]MH_I2C_Read... [20:01:58]Read from MH i2c: E2 03 00 [20:01:58]MH_I2C_Read... [20:01:58]Read from MH i2c: E2 03 00 F8 01 00 90 00 6D [20:01:58]RAPDU: 90 00 [20:01:58]wFMCommunicate OK [20:01:58]wFMCommunicate request_size=4 [20:01:58]MH_SAM_APDU [20:01:58]CAPDU: 80 0D 03 02 [20:01:58]Write to MH i2c: E2 08 00 F9 01 80 0D 03 02 00 00 00 00 75 [20:01:58]Write i2c OK [20:01:58]MH_I2C_Read... [20:01:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:01:58]Read from MH i2c: E2 [20:01:58]MH_I2C_Read... [20:01:58]Read from MH i2c: E2 0B 00 [20:01:58]MH_I2C_Read... [20:01:58]Read from MH i2c: E2 0B 00 F9 01 00 73 5D A3 D2 0D 9A 67 94 90 00 5D [20:01:58]RAPDU: 73 5D A3 D2 0D 9A 67 94 90 00 [20:01:58]wFMCommunicate OK [20:01:58]SAM_PROTO_SignData done [20:01:58]FM_MakeSignedData done [20:01:58]CreateOFDProtocolMessage [20:01:58]wFMCommunicate request_size=4 [20:01:58]MH_SAM_APDU [20:01:58]CAPDU: 80 11 00 00 [20:01:58]Write to MH i2c: E2 08 00 FA 01 80 11 00 00 00 00 00 00 75 [20:01:58]Write i2c OK [20:01:58]MH_I2C_Read... [20:01:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:01:58]Read from MH i2c: E2 [20:01:58]MH_I2C_Read... [20:01:58]Read from MH i2c: E2 17 00 [20:01:58]MH_I2C_Read... [20:01:58]Read from MH i2c: E2 17 00 FA 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 C0 [20:01:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [20:01:58]wFMCommunicate OK [20:01:58]CreateOFDProtocolMessage done [20:01:58]OFDSenderStorePacket 68468 [20:01:58]StoreOFDPacket docnum=68468 [20:01:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 1D 15 07 01 94 EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 35 21 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 74 0B 01 00 35 04 06 00 81 60 4F 4D 4C 6C 73 5D A3 D2 0D 9A 67 94 [20:01:58]CheckFolder [20:01:58]dirname=/storage/ofd_packets [20:01:58]CheckFolder done [20:01:58]ProducePacketName [20:01:58]name=ofd_packets/00068468 [20:01:58]NVStorageSaveData ofd_packets/00068468 [20:01:58]File name is /storage/ofd_packets/00068468 [20:01:58]Write 301 bytes [20:01:58]NVStorageSaveData done [20:01:58]OFDSenderStorePacket done [20:01:58]KKMCreateOFDPacket done [20:01:58]NVStorageSaveData kkm_last_timestamp [20:01:58]File name is /storage/kkm_last_timestamp [20:01:58]Write 4 bytes [20:01:58]NVStorageSaveData done [20:01:58]ExternCall_PrintAddStr [20:01:58]wPrintStart [20:01:58]Write to MH i2c: 01 00 00 FB 01 FC [20:01:58]Write i2c OK [20:01:58]MH_I2C_Read... [20:01:58]Read from MH i2c: 01 [20:01:58]MH_I2C_Read... [20:01:58]Read from MH i2c: 01 07 00 [20:01:58]MH_I2C_Read... [20:01:58]Read from MH i2c: 01 07 00 FB 01 00 00 00 00 00 FF 0F 11 [20:01:58]RasterBufferAndPrint [20:01:58]line Счет N : (1)706578 [20:01:58]line ИНН: 02508201610067 [20:01:58]line Контрольно-Кассовый Чек [20:01:58]line ПРОДАЖА [20:01:58]line ТРК (МРК, ГНК) : 42 [20:01:58]line Товар: 2710124130 [20:01:58]line Аи-92-К-4 [20:01:58]line 4.490 * 66.90 [20:01:58]line = 300.38 [20:01:58]line НДС 12% НСП 1% [20:01:58]line > о реализуемом товаре [20:01:58]line ОКРУГЛЕНИЕ: -0.38 [20:01:58]line ИТОГО: 300.00 [20:01:58]line Внесено: 300.00 [20:01:58]line СДАЧА: 0.00 [20:01:58]line НСП 1% : 2.66 [20:01:58]line НДС 12% : 31.90 [20:01:58]line Наличными: 300.00 [20:01:58]line Безнал.: 0.00 [20:01:58]line Место: АЗС № 62 "Партнер Нефть" [20:01:58]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [20:01:58]line СНО: Общий режим [20:01:58]line Чек 214 03.06.2024 20:01 [20:01:58]line Смена: 324 ФФД: 1.0 [20:01:58]line ЗНМ: 0300000181 [20:01:58]line РНМ: 0000000000098096 [20:01:58]line Версия ККМ: 001 [20:01:58]line ФМ: 0000000000965400 [20:01:58]line ФД: 68468 [20:01:58]line ФПД: 142250647309420 [20:01:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T200157&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68468&fm=142250647309420&tin=02508201610067®Number=0000000000098096&sum=30000 [20:01:58]written 0, free lines is 4095 [20:01:58]OFD Sender: Processing packet 68468 [packets to send 26, broken 25] [20:01:58]ProducePacketName [20:01:58]name=ofd_packets/00068468 [20:01:58]OFD Sender: To server: pG, [20:01:58]CommunicateWithHost lk.salyk.kg:30040 [20:01:58]ConnectInit lk.salyk.kg [20:01:58]Connected sock=10 [20:01:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 1D 15 07 01 94 EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 35 21 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 74 0B 01 00 35 04 06 00 81 60 4F 4D 4C 6C 73 5D A3 D2 0D 9A 67 94 [20:01:58]Write to MH i2c: 01 00 00 26 02 28 [20:01:58]Write i2c OK [20:01:58]MH_I2C_Read... [20:01:58]Read from MH i2c: 01 [20:01:58]MH_I2C_Read... [20:01:58]Read from MH i2c: 01 07 00 [20:01:58]MH_I2C_Read... [20:01:58]Read from MH i2c: 01 07 00 26 02 00 00 00 00 00 E6 0C 21 [20:01:58]RasterBufferAndPrint [20:01:58]line [20:01:58]line [20:01:58]line [20:01:58]line [20:01:58]line [20:01:58]written 0, free lines is 3311 [20:01:58]MH_Cut [20:01:58]Write to MH i2c: D1 01 00 2D 02 01 01 [20:01:58]Write i2c OK [20:01:58]MH_I2C_Read... [20:01:58]Read from MH i2c: D1 [20:01:58]MH_I2C_Read... [20:01:58]Read from MH i2c: D1 01 00 [20:01:58]MH_I2C_Read... [20:01:58]Read from MH i2c: D1 01 00 2D 02 00 00 [20:01:58]Write to MH i2c: 01 00 00 2E 02 30 [20:01:58]Write i2c OK [20:01:58]MH_I2C_Read... [20:01:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 76 F6 47 00 FF E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 74 0B 01 00 F4 03 04 00 30 C8 5D 66 B6 04 01 00 00 CE B3 E8 CD 78 B8 4F 52 [20:01:58]CommunicateWithHost err = 0 [20:01:58]CheckOFDResponse [20:01:58]1017 (14) - 77093643461234 [20:01:58]1041 (16) - 0000000000965400 [20:01:58]1040 (4) - 68468 [20:01:58]1012 (4) - 03.06.2024 13:42 [20:01:58]1206 (1) - 0 [20:01:58]OFD Sender: Remove packet 68468 [20:01:58]ProducePacketName [20:01:58]name=ofd_packets/00068468 [20:01:58]NVStorageDeleteData [20:01:59]OFD Sender: No OFD packet to send [20:01:59]*** Cut start [20:01:59]*** Partial cut [20:01:59]*** CUTSNS_PIN = 1 [20:01:59]*** CUTSNS_PIN = 0 [20:01:59]*** Brake cut motor [20:02:00]Read from MH i2c: 01 [20:02:00]MH_I2C_Read... [20:02:00]*** Stop cut motor [20:02:00]*** Cut end [20:02:00]Read from MH i2c: 01 07 00 [20:02:00]MH_I2C_Read... [20:02:00]Read from MH i2c: 01 07 00 2E 02 00 00 00 00 00 FF 0F 45 [20:02:00]process_action close_receipt done [20:02:00]requested_data is exist [20:02:00]produce_requested_data [20:02:00]requested_item fm.sn is exist - process it [20:02:00]wFMCommunicate request_size=4 [20:02:00]MH_SAM_APDU [20:02:00]CAPDU: 80 11 00 00 [20:02:00]Write to MH i2c: E2 08 00 2F 02 80 11 00 00 00 00 00 00 AB [20:02:00]Write i2c OK [20:02:00]MH_I2C_Read... [20:02:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:02:00]Read from MH i2c: E2 [20:02:00]MH_I2C_Read... [20:02:00]Read from MH i2c: E2 17 00 [20:02:00]MH_I2C_Read... [20:02:00]Read from MH i2c: E2 17 00 2F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 F6 [20:02:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [20:02:00]wFMCommunicate OK [20:02:00]requested_item fd.num is exist - process it [20:02:00]SAM_PROTO_GetFieldsCounters [20:02:00]wFMCommunicate request_size=4 [20:02:00]MH_SAM_APDU [20:02:00]CAPDU: 80 13 00 00 [20:02:00]Write to MH i2c: E2 08 00 30 02 80 13 00 00 00 00 00 00 AE [20:02:00]Write i2c OK [20:02:00]MH_I2C_Read... [20:02:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:02:00]Read from MH i2c: E2 [20:02:00]MH_I2C_Read... [20:02:00]Read from MH i2c: E2 62 00 [20:02:00]MH_I2C_Read... [20:02:00]Read from MH i2c: E2 62 00 30 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 74 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 15 [20:02:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 74 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:02:00]wFMCommunicate OK [20:02:00]SAM_PROTO_GetFieldsCounters done [20:02:00]requested_item shift.num is exist - process it [20:02:00]requested_item shift.opened is exist - process it [20:02:00]req_shift_opened [20:02:00]FM_GetShiftState [20:02:00]SAM_PROTO_GetShiftState [20:02:00]wFMCommunicate request_size=4 [20:02:00]MH_SAM_APDU [20:02:00]CAPDU: 80 13 01 00 [20:02:00]Write to MH i2c: E2 08 00 31 02 80 13 01 00 00 00 00 00 B0 [20:02:00]Write i2c OK [20:02:00]MH_I2C_Read... [20:02:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:02:00]Read from MH i2c: E2 [20:02:00]MH_I2C_Read... [20:02:00]Read from MH i2c: E2 0E 00 [20:02:00]MH_I2C_Read... [20:02:00]Read from MH i2c: E2 0E 00 31 02 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 8B [20:02:00]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [20:02:00]wFMCommunicate OK [20:02:00]SAM_PROTO_GetShiftState done [20:02:00]FM_GetShiftState done [20:02:00]req_shift_opened done [20:02:00]requested_item shift.open_date is exist - process it [20:02:00]req_shift_open_date [20:02:00]req_shift_open_date done [20:02:00]produce_requested_data done [20:02:00]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68468,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [20:02:00]process_action_free close_receipt [20:02:00]json_value_free [20:02:00]json_value_free done [20:02:00]process_json_proto returns [20:02:00]Send response to host [20:02:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68468,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [20:02:00]free response buf [20:02:00]execute_script done [20:02:00]execute_script returns [20:02:00]free content buf [20:02:00]Sock 7.Close socket [20:02:00]Sock 7.Thread stoped [20:02:04]OFD Sender: No OFD packet to send [20:02:09]OFD Sender: No OFD packet to send [20:02:14]OFD Sender: No OFD packet to send [20:02:19]OFD Sender: No OFD packet to send [20:02:24]OFD Sender: No OFD packet to send [20:02:29]OFD Sender: No OFD packet to send [20:02:34]OFD Sender: No OFD packet to send [20:02:39]OFD Sender: No OFD packet to send [20:02:44]OFD Sender: No OFD packet to send [20:02:49]OFD Sender: No OFD packet to send [20:02:54]OFD Sender: No OFD packet to send [20:02:59]OFD Sender: No OFD packet to send [20:03:04]OFD Sender: No OFD packet to send [20:03:09]OFD Sender: No OFD packet to send [20:03:14]OFD Sender: No OFD packet to send [20:03:19]OFD Sender: No OFD packet to send [20:03:24]OFD Sender: No OFD packet to send [20:03:29]OFD Sender: No OFD packet to send [20:03:34]OFD Sender: No OFD packet to send [20:03:39]OFD Sender: No OFD packet to send [20:03:44]OFD Sender: No OFD packet to send [20:03:49]OFD Sender: No OFD packet to send [20:03:54]OFD Sender: No OFD packet to send [20:03:59]OFD Sender: No OFD packet to send [20:04:04]OFD Sender: No OFD packet to send [20:04:09]OFD Sender: No OFD packet to send [20:04:14]OFD Sender: No OFD packet to send [20:04:19]OFD Sender: No OFD packet to send [20:04:24]OFD Sender: No OFD packet to send [20:04:29]OFD Sender: No OFD packet to send [20:04:34]OFD Sender: No OFD packet to send [20:04:39]OFD Sender: No OFD packet to send [20:04:44]OFD Sender: No OFD packet to send [20:04:49]OFD Sender: No OFD packet to send [20:04:54]OFD Sender: No OFD packet to send [20:04:59]OFD Sender: No OFD packet to send [20:05:04]OFD Sender: No OFD packet to send [20:05:09]OFD Sender: No OFD packet to send [20:05:14]OFD Sender: No OFD packet to send [20:05:19]OFD Sender: No OFD packet to send [20:05:24]OFD Sender: No OFD packet to send [20:05:29]OFD Sender: No OFD packet to send [20:05:34]OFD Sender: No OFD packet to send [20:05:39]OFD Sender: No OFD packet to send [20:05:41]accept exits with 9 [20:05:41]New connection [20:05:41]New thread 3067227492 created [20:05:41]Thread 3067084132 joined [20:05:41]Waiting for new connection... [20:05:41] Sock 9.Parse request [20:05:41]Sock 9.Check first char [20:05:41]Sock 9.First char is OK [20:05:41]request: POST /json_proto HTTP/1.0 [20:05:41]Method: POST [20:05:41]URL: /json_proto [20:05:41]Method is POST - this is cgi request [20:05:41]url: /json_proto [20:05:41]query_string will be loaded in cgi processing [20:05:41]execute_cgi json_proto POST (null) [20:05:41]execute_cgi path=json_proto method=POST [20:05:41]POST find Content-Length [20:05:41]Host: 172.17.36.132:8080 [20:05:41]Content-Length: 678 [20:05:41]Content-Type: application/json [20:05:41] [20:05:41]POST finish read [20:05:41]Found Content-Length = 678 [20:05:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706579", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:05:41]execute_script... [20:05: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)706579", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:05:41]POST & json_proto [20:05:41]process_json_proto [20:05:41]json parsed OK: [20:05:41]protocol is kg_v1.0 [20:05:41]action value=close_receipt [20:05:41]process_action close_receipt [20:05:41]cmd_close_receipt [20:05:41]MH_GetDate [20:05:41]Write to MH i2c: F0 00 00 32 02 23 [20:05:41]Write i2c OK [20:05:41]MH_I2C_Read... [20:05:41]Read from MH i2c: F0 [20:05:41]MH_I2C_Read... [20:05:41]Read from MH i2c: F0 09 00 [20:05:41]MH_I2C_Read... [20:05:41]Read from MH i2c: F0 09 00 32 02 00 16 22 5E 66 B2 22 B0 64 10 [20:05:41]GetLastDocTimeStamp 1717444917 [20:05:41]current date 1717445142 [20:05:41]FM_GetShiftState [20:05:41]SAM_PROTO_GetShiftState [20:05:41]wFMCommunicate request_size=4 [20:05:41]MH_SAM_APDU [20:05:41]CAPDU: 80 13 01 00 [20:05:41]Write to MH i2c: E2 08 00 33 02 80 13 01 00 00 00 00 00 B2 [20:05:41]Write i2c OK [20:05:41]MH_I2C_Read... [20:05:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:05:42]Read from MH i2c: E2 [20:05:42]MH_I2C_Read... [20:05:42]Read from MH i2c: E2 0E 00 [20:05:42]MH_I2C_Read... [20:05:42]Read from MH i2c: E2 0E 00 33 02 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 8D [20:05:42]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [20:05:42]wFMCommunicate OK [20:05:42]SAM_PROTO_GetShiftState done [20:05:42]FM_GetShiftState done [20:05:42]opened in 1717378033 [20:05:42]opened+sec_in_day 1717464433 [20:05:42]quantity*price = 70044 [20:05:42]sum+1 = 70045 [20:05:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 215 03.06.2024 20:05 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68469 ФПД: 278576343649393 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T200542&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68469&fm=278576343649393&tin=02508201610067®Number=0000000000098096&sum=70000 [20:05:43]StoreToDocumentArchive [20:05:43]shift 324 fd 68469 [20:05:43]save to /storage/0324/doc_00068469 [20:05:43]save last doc name /storage/0324/doc_00068469 to /storage/kkm_last_doc_name [20:05:43]save OK [20:05:43]Clear old archive folders... [20:05:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:05:43]tlvbuf is 00A32790 [20:05:43]SAM_PROTO_ClearQueue [20:05:43]wFMCommunicate request_size=4 [20:05:43]MH_SAM_APDU [20:05:43]CAPDU: 80 09 00 00 [20:05:43]Write to MH i2c: E2 08 00 40 02 80 09 00 00 00 00 00 00 B4 [20:05:43]Write i2c OK [20:05:43]MH_I2C_Read... [20:05:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:05:43]Read from MH i2c: E2 [20:05:43]MH_I2C_Read... [20:05:43]Read from MH i2c: E2 03 00 [20:05:43]MH_I2C_Read... [20:05:43]Read from MH i2c: E2 03 00 40 02 00 90 00 B6 [20:05:43]RAPDU: 90 00 [20:05:43]wFMCommunicate OK [20:05:43]SAM_PROTO_ClearQueue done [20:05:43]KKMCreateOFDPacket [20:05:43]OFDProtocolAddRootSTLVToBuf [20:05:43]FM_MakeSignedData [20:05:43]FM_MakeSignedData [20:05:43]SAM_PROTO_SignData [20:05:43]wFMCommunicate request_size=4 [20:05:43]MH_SAM_APDU [20:05:43]CAPDU: 80 0D 01 02 [20:05:43]Write to MH i2c: E2 08 00 41 02 80 0D 01 02 00 00 00 00 BC [20:05:43]Write i2c OK [20:05:43]MH_I2C_Read... [20:05:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:05:43]Read from MH i2c: E2 [20:05:43]MH_I2C_Read... [20:05:43]Read from MH i2c: E2 03 00 [20:05:43]MH_I2C_Read... [20:05:43]Read from MH i2c: E2 03 00 41 02 00 90 00 B7 [20:05:43]RAPDU: 90 00 [20:05:43]wFMCommunicate OK [20:05:43]wFMCommunicate request_size=255 [20:05:43]MH_SAM_APDU [20:05: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 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 16 22 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 75 0B 01 00 35 04 06 00 FD [20:05:43]Write to MH i2c: E2 02 01 42 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 16 22 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 75 0B 01 00 35 04 06 00 FD 00 00 EF [20:05:43]Write i2c OK [20:05:43]MH_I2C_Read... [20:05:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:05:43]Read from MH i2c: E2 [20:05:43]MH_I2C_Read... [20:05:43]Read from MH i2c: E2 03 00 [20:05:43]MH_I2C_Read... [20:05:43]Read from MH i2c: E2 03 00 42 02 00 90 00 B8 [20:05:43]RAPDU: 90 00 [20:05:43]wFMCommunicate OK [20:05:43]wFMCommunicate request_size=10 [20:05:43]MH_SAM_APDU [20:05:43]CAPDU: 80 0D 02 02 05 5D 1C 01 8C 71 [20:05:43]Write to MH i2c: E2 0D 00 43 02 80 0D 02 02 05 00 5D 1C 01 8C 71 00 00 40 [20:05:43]Write i2c OK [20:05:43]MH_I2C_Read... [20:05:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:05:43]Read from MH i2c: E2 [20:05:43]MH_I2C_Read... [20:05:43]Read from MH i2c: E2 03 00 [20:05:43]MH_I2C_Read... [20:05:43]Read from MH i2c: E2 03 00 43 02 00 90 00 B9 [20:05:43]RAPDU: 90 00 [20:05:43]wFMCommunicate OK [20:05:43]wFMCommunicate request_size=4 [20:05:43]MH_SAM_APDU [20:05:43]CAPDU: 80 0D 03 02 [20:05:43]Write to MH i2c: E2 08 00 44 02 80 0D 03 02 00 00 00 00 C1 [20:05:43]Write i2c OK [20:05:43]MH_I2C_Read... [20:05:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:05:43]Read from MH i2c: E2 [20:05:43]MH_I2C_Read... [20:05:43]Read from MH i2c: E2 0B 00 [20:05:43]MH_I2C_Read... [20:05:43]Read from MH i2c: E2 0B 00 44 02 00 E6 D5 CD 0F 10 65 87 64 90 00 B9 [20:05:43]RAPDU: E6 D5 CD 0F 10 65 87 64 90 00 [20:05:43]wFMCommunicate OK [20:05:43]SAM_PROTO_SignData done [20:05:43]FM_MakeSignedData done [20:05:43]CreateOFDProtocolMessage [20:05:43]wFMCommunicate request_size=4 [20:05:43]MH_SAM_APDU [20:05:43]CAPDU: 80 11 00 00 [20:05:43]Write to MH i2c: E2 08 00 45 02 80 11 00 00 00 00 00 00 C1 [20:05:43]Write i2c OK [20:05:43]MH_I2C_Read... [20:05:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:05:43]Read from MH i2c: E2 [20:05:43]MH_I2C_Read... [20:05:43]Read from MH i2c: E2 17 00 [20:05:43]MH_I2C_Read... [20:05:43]Read from MH i2c: E2 17 00 45 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 0C [20:05:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [20:05:43]wFMCommunicate OK [20:05:43]CreateOFDProtocolMessage done [20:05:43]OFDSenderStorePacket 68469 [20:05:43]StoreOFDPacket docnum=68469 [20:05:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 E9 7D 07 01 87 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 16 22 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 75 0B 01 00 35 04 06 00 FD 5D 1C 01 8C 71 E6 D5 CD 0F 10 65 87 64 [20:05:43]CheckFolder [20:05:43]dirname=/storage/ofd_packets [20:05:43]CheckFolder done [20:05:43]ProducePacketName [20:05:43]name=ofd_packets/00068469 [20:05:43]NVStorageSaveData ofd_packets/00068469 [20:05:43]File name is /storage/ofd_packets/00068469 [20:05:43]Write 301 bytes [20:05:43]NVStorageSaveData done [20:05:43]OFDSenderStorePacket done [20:05:43]KKMCreateOFDPacket done [20:05:43]NVStorageSaveData kkm_last_timestamp [20:05:43]File name is /storage/kkm_last_timestamp [20:05:43]Write 4 bytes [20:05:43]NVStorageSaveData done [20:05:43]ExternCall_PrintAddStr [20:05:43]wPrintStart [20:05:43]Write to MH i2c: 01 00 00 46 02 48 [20:05:43]Write i2c OK [20:05:43]MH_I2C_Read... [20:05:43]Read from MH i2c: 01 [20:05:43]MH_I2C_Read... [20:05:43]Read from MH i2c: 01 07 00 [20:05:43]MH_I2C_Read... [20:05:43]Read from MH i2c: 01 07 00 46 02 00 00 00 00 00 FF 0F 5D [20:05:43]RasterBufferAndPrint [20:05:43]line Счет N : (1)706579 [20:05:43]line ИНН: 02508201610067 [20:05:43]line Контрольно-Кассовый Чек [20:05:43]line ПРОДАЖА [20:05:43]line ТРК (МРК, ГНК) : 42 [20:05:43]line Товар: 2710124130 [20:05:43]line Аи-92-К-4 [20:05:43]line 10.470 * 66.90 [20:05:43]line = 700.44 [20:05:43]line НДС 12% НСП 1% [20:05:43]line > о реализуемом товаре [20:05:43]line ОКРУГЛЕНИЕ: -0.44 [20:05:43]line ИТОГО: 700.00 [20:05:43]line Внесено: 700.00 [20:05:43]line СДАЧА: 0.00 [20:05:43]line НСП 1% : 6.20 [20:05:43]line НДС 12% : 74.38 [20:05:43]line Наличными: 700.00 [20:05:43]line Безнал.: 0.00 [20:05:43]line Место: АЗС № 62 "Партнер Нефть" [20:05:43]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [20:05:43]line СНО: Общий режим [20:05:43]line Чек 215 03.06.2024 20:05 [20:05:43]line Смена: 324 ФФД: 1.0 [20:05:43]line ЗНМ: 0300000181 [20:05:43]line РНМ: 0000000000098096 [20:05:43]line Версия ККМ: 001 [20:05:43]line ФМ: 0000000000965400 [20:05:43]line ФД: 68469 [20:05:43]line ФПД: 278576343649393 [20:05:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T200542&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68469&fm=278576343649393&tin=02508201610067®Number=0000000000098096&sum=70000 [20:05:43]OFD Sender: Processing packet 68469 [packets to send 26, broken 25] [20:05:43]ProducePacketName [20:05:44]name=ofd_packets/00068469 [20:05:44]OFD Sender: To server: pG, [20:05:44]CommunicateWithHost lk.salyk.kg:30040 [20:05:44]ConnectInit lk.salyk.kg [20:05:44]written 0, free lines is 4095 [20:05:44]Connected sock=10 [20:05:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 E9 7D 07 01 87 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 16 22 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 75 0B 01 00 35 04 06 00 FD 5D 1C 01 8C 71 E6 D5 CD 0F 10 65 87 64 [20:05:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 74 83 47 00 D8 1F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 75 0B 01 00 F4 03 04 00 11 C9 5D 66 B6 04 01 00 00 C4 D1 F9 08 C3 E3 A9 29 [20:05:44]CommunicateWithHost err = 0 [20:05:44]CheckOFDResponse [20:05:44]1017 (14) - 77093643461234 [20:05:44]1041 (16) - 0000000000965400 [20:05:44]1040 (4) - 68469 [20:05:44]1012 (4) - 03.06.2024 13:45 [20:05:44]1206 (1) - 0 [20:05:44]OFD Sender: Remove packet 68469 [20:05:44]ProducePacketName [20:05:44]name=ofd_packets/00068469 [20:05:44]NVStorageDeleteData [20:05:44]Write to MH i2c: 01 00 00 71 02 73 [20:05:44]Write i2c OK [20:05:44]MH_I2C_Read... [20:05:44]Read from MH i2c: 01 [20:05:44]MH_I2C_Read... [20:05:44]Read from MH i2c: 01 07 00 [20:05:44]MH_I2C_Read... [20:05:44]Read from MH i2c: 01 07 00 71 02 00 00 00 00 00 E0 0C 66 [20:05:44]RasterBufferAndPrint [20:05:44]line [20:05:44]line [20:05:44]line [20:05:44]line [20:05:44]line [20:05:44]written 0, free lines is 3301 [20:05:44]MH_Cut [20:05:44]Write to MH i2c: D1 01 00 78 02 01 4C [20:05:44]Write i2c OK [20:05:44]MH_I2C_Read... [20:05:44]Read from MH i2c: D1 [20:05:44]MH_I2C_Read... [20:05:44]Read from MH i2c: D1 01 00 [20:05:44]MH_I2C_Read... [20:05:44]Read from MH i2c: D1 01 00 78 02 00 4B [20:05:44]Write to MH i2c: 01 00 00 79 02 7B [20:05:44]Write i2c OK [20:05:44]MH_I2C_Read... [20:05:44]OFD Sender: No OFD packet to send [20:05:45]*** Cut start [20:05:45]*** Partial cut [20:05:45]*** CUTSNS_PIN = 1 [20:05:45]*** CUTSNS_PIN = 0 [20:05:45]*** Brake cut motor [20:05:45]Read from MH i2c: 01 [20:05:45]MH_I2C_Read... [20:05:45]*** Stop cut motor [20:05:45]*** Cut end [20:05:45]Read from MH i2c: 01 07 00 [20:05:45]MH_I2C_Read... [20:05:45]Read from MH i2c: 01 07 00 79 02 00 00 00 00 00 FF 0F 90 [20:05:45]process_action close_receipt done [20:05:45]requested_data is exist [20:05:45]produce_requested_data [20:05:45]requested_item fm.sn is exist - process it [20:05:45]wFMCommunicate request_size=4 [20:05:45]MH_SAM_APDU [20:05:45]CAPDU: 80 11 00 00 [20:05:45]Write to MH i2c: E2 08 00 7A 02 80 11 00 00 00 00 00 00 F6 [20:05:45]Write i2c OK [20:05:45]MH_I2C_Read... [20:05:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:05:45]Read from MH i2c: E2 [20:05:45]MH_I2C_Read... [20:05:45]Read from MH i2c: E2 17 00 [20:05:45]MH_I2C_Read... [20:05:45]Read from MH i2c: E2 17 00 7A 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 41 [20:05:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [20:05:45]wFMCommunicate OK [20:05:45]requested_item fd.num is exist - process it [20:05:45]SAM_PROTO_GetFieldsCounters [20:05:45]wFMCommunicate request_size=4 [20:05:45]MH_SAM_APDU [20:05:45]CAPDU: 80 13 00 00 [20:05:45]Write to MH i2c: E2 08 00 7B 02 80 13 00 00 00 00 00 00 F9 [20:05:45]Write i2c OK [20:05:45]MH_I2C_Read... [20:05:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:05:46]Read from MH i2c: E2 [20:05:46]MH_I2C_Read... [20:05:46]Read from MH i2c: E2 62 00 [20:05:46]MH_I2C_Read... [20:05:46]Read from MH i2c: E2 62 00 7B 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 75 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 64 [20:05:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 75 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:05:46]wFMCommunicate OK [20:05:46]SAM_PROTO_GetFieldsCounters done [20:05:46]requested_item shift.num is exist - process it [20:05:46]requested_item shift.opened is exist - process it [20:05:46]req_shift_opened [20:05:46]FM_GetShiftState [20:05:46]SAM_PROTO_GetShiftState [20:05:46]wFMCommunicate request_size=4 [20:05:46]MH_SAM_APDU [20:05:46]CAPDU: 80 13 01 00 [20:05:46]Write to MH i2c: E2 08 00 7C 02 80 13 01 00 00 00 00 00 FB [20:05:46]Write i2c OK [20:05:46]MH_I2C_Read... [20:05:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:05:46]Read from MH i2c: E2 [20:05:46]MH_I2C_Read... [20:05:46]Read from MH i2c: E2 0E 00 [20:05:46]MH_I2C_Read... [20:05:46]Read from MH i2c: E2 0E 00 7C 02 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 D6 [20:05:46]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [20:05:46]wFMCommunicate OK [20:05:46]SAM_PROTO_GetShiftState done [20:05:46]FM_GetShiftState done [20:05:46]req_shift_opened done [20:05:46]requested_item shift.open_date is exist - process it [20:05:46]req_shift_open_date [20:05:46]req_shift_open_date done [20:05:46]produce_requested_data done [20:05:46]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68469,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [20:05:46]process_action_free close_receipt [20:05:46]json_value_free [20:05:46]json_value_free done [20:05:46]process_json_proto returns [20:05:46]Send response to host [20:05:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68469,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [20:05:46]free response buf [20:05:46]execute_script done [20:05:46]execute_script returns [20:05:46]free content buf [20:05:46]Sock 9.Close socket [20:05:46]Sock 9.Thread stoped [20:05:49]OFD Sender: No OFD packet to send [20:05:54]OFD Sender: No OFD packet to send [20:05:59]OFD Sender: No OFD packet to send [20:06:04]accept exits with 7 [20:06:04]New connection [20:06:04]New thread 3067084132 created [20:06:04]Thread 3067227492 joined [20:06:04]Waiting for new connection... [20:06:04] Sock 7.Parse request [20:06:04]Sock 7.Check first char [20:06:04]Sock 7.First char is OK [20:06:04]request: POST /json_proto HTTP/1.0 [20:06:04]Method: POST [20:06:04]URL: /json_proto [20:06:04]Method is POST - this is cgi request [20:06:04]url: /json_proto [20:06:04]query_string will be loaded in cgi processing [20:06:04]execute_cgi json_proto POST (null) [20:06:04]execute_cgi path=json_proto method=POST [20:06:04]POST find Content-Length [20:06:04]Host: 172.17.36.132:8080 [20:06:04]Content-Length: 677 [20:06:04]Content-Type: application/json [20:06:04] [20:06:04]POST finish read [20:06:04]Found Content-Length = 677 [20:06:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706580", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:06:04]execute_script... [20:06: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)706580", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:06:04]POST & json_proto [20:06:04]process_json_proto [20:06:04]json parsed OK: [20:06:04]protocol is kg_v1.0 [20:06:04]action value=close_receipt [20:06:04]process_action close_receipt [20:06:04]cmd_close_receipt [20:06:04]MH_GetDate [20:06:04]Write to MH i2c: F0 00 00 7D 02 6E [20:06:04]Write i2c OK [20:06:04]MH_I2C_Read... [20:06:04]Read from MH i2c: F0 [20:06:04]MH_I2C_Read... [20:06:04]Read from MH i2c: F0 09 00 [20:06:04]MH_I2C_Read... [20:06:04]Read from MH i2c: F0 09 00 7D 02 00 2C 22 5E 66 B2 22 B0 64 71 [20:06:04]GetLastDocTimeStamp 1717445142 [20:06:04]current date 1717445164 [20:06:04]FM_GetShiftState [20:06:04]SAM_PROTO_GetShiftState [20:06:04]wFMCommunicate request_size=4 [20:06:04]MH_SAM_APDU [20:06:04]CAPDU: 80 13 01 00 [20:06:04]Write to MH i2c: E2 08 00 7E 02 80 13 01 00 00 00 00 00 FD [20:06:04]Write i2c OK [20:06:04]MH_I2C_Read... [20:06:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:06:04]Read from MH i2c: E2 [20:06:04]MH_I2C_Read... [20:06:04]Read from MH i2c: E2 0E 00 [20:06:04]MH_I2C_Read... [20:06:04]Read from MH i2c: E2 0E 00 7E 02 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 D8 [20:06:04]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [20:06:04]wFMCommunicate OK [20:06:04]SAM_PROTO_GetShiftState done [20:06:04]FM_GetShiftState done [20:06:04]opened in 1717378033 [20:06:04]opened+sec_in_day 1717464433 [20:06:04]quantity*price = 20003 [20:06:04]sum+1 = 20004 [20:06:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 216 03.06.2024 20:06 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68470 ФПД: 159711736746372 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T200604&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68470&fm=159711736746372&tin=02508201610067®Number=0000000000098096&sum=20000 [20:06:05]StoreToDocumentArchive [20:06:05]shift 324 fd 68470 [20:06:05]save to /storage/0324/doc_00068470 [20:06:05]save last doc name /storage/0324/doc_00068470 to /storage/kkm_last_doc_name [20:06:05]save OK [20:06:05]Clear old archive folders... [20:06:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:06:05]tlvbuf is 00A37200 [20:06:05]SAM_PROTO_ClearQueue [20:06:05]wFMCommunicate request_size=4 [20:06:05]MH_SAM_APDU [20:06:05]CAPDU: 80 09 00 00 [20:06:05]Write to MH i2c: E2 08 00 8B 02 80 09 00 00 00 00 00 00 FF [20:06:05]Write i2c OK [20:06:05]MH_I2C_Read... [20:06:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:06:05]Read from MH i2c: E2 [20:06:05]MH_I2C_Read... [20:06:05]Read from MH i2c: E2 03 00 [20:06:05]MH_I2C_Read... [20:06:05]Read from MH i2c: E2 03 00 8B 02 00 90 00 01 [20:06:05]RAPDU: 90 00 [20:06:05]wFMCommunicate OK [20:06:05]SAM_PROTO_ClearQueue done [20:06:05]KKMCreateOFDPacket [20:06:05]OFDProtocolAddRootSTLVToBuf [20:06:05]FM_MakeSignedData [20:06:05]FM_MakeSignedData [20:06:05]SAM_PROTO_SignData [20:06:05]wFMCommunicate request_size=4 [20:06:05]MH_SAM_APDU [20:06:05]CAPDU: 80 0D 01 02 [20:06:05]Write to MH i2c: E2 08 00 8C 02 80 0D 01 02 00 00 00 00 07 [20:06:05]Write i2c OK [20:06:05]MH_I2C_Read... [20:06:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:06:05]Read from MH i2c: E2 [20:06:05]MH_I2C_Read... [20:06:05]Read from MH i2c: E2 03 00 [20:06:05]MH_I2C_Read... [20:06:05]Read from MH i2c: E2 03 00 8C 02 00 90 00 02 [20:06:05]RAPDU: 90 00 [20:06:05]wFMCommunicate OK [20:06:05]wFMCommunicate request_size=255 [20:06:05]MH_SAM_APDU [20:06: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 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 2C 22 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 76 0B 01 00 35 04 06 00 91 [20:06:05]Write to MH i2c: E2 02 01 8D 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 2C 22 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 76 0B 01 00 35 04 06 00 91 00 00 98 [20:06:05]Write i2c OK [20:06:05]MH_I2C_Read... [20:06:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:06:05]Read from MH i2c: E2 [20:06:05]MH_I2C_Read... [20:06:05]Read from MH i2c: E2 03 00 [20:06:05]MH_I2C_Read... [20:06:05]Read from MH i2c: E2 03 00 8D 02 00 90 00 03 [20:06:05]RAPDU: 90 00 [20:06:05]wFMCommunicate OK [20:06:05]wFMCommunicate request_size=10 [20:06:05]MH_SAM_APDU [20:06:05]CAPDU: 80 0D 02 02 05 41 C9 55 D1 84 [20:06:05]Write to MH i2c: E2 0D 00 8E 02 80 0D 02 02 05 00 41 C9 55 D1 84 00 00 C8 [20:06:05]Write i2c OK [20:06:05]MH_I2C_Read... [20:06:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:06:05]Read from MH i2c: E2 [20:06:05]MH_I2C_Read... [20:06:05]Read from MH i2c: E2 03 00 [20:06:05]MH_I2C_Read... [20:06:05]Read from MH i2c: E2 03 00 8E 02 00 90 00 04 [20:06:05]RAPDU: 90 00 [20:06:05]wFMCommunicate OK [20:06:05]wFMCommunicate request_size=4 [20:06:05]MH_SAM_APDU [20:06:05]CAPDU: 80 0D 03 02 [20:06:05]Write to MH i2c: E2 08 00 8F 02 80 0D 03 02 00 00 00 00 0C [20:06:05]Write i2c OK [20:06:05]MH_I2C_Read... [20:06:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:06:05]Read from MH i2c: E2 [20:06:05]MH_I2C_Read... [20:06:05]Read from MH i2c: E2 0B 00 [20:06:05]MH_I2C_Read... [20:06:05]Read from MH i2c: E2 0B 00 8F 02 00 0F B7 82 29 35 74 A3 E0 90 00 AA [20:06:05]RAPDU: 0F B7 82 29 35 74 A3 E0 90 00 [20:06:05]wFMCommunicate OK [20:06:05]SAM_PROTO_SignData done [20:06:05]FM_MakeSignedData done [20:06:05]CreateOFDProtocolMessage [20:06:05]wFMCommunicate request_size=4 [20:06:05]MH_SAM_APDU [20:06:05]CAPDU: 80 11 00 00 [20:06:05]Write to MH i2c: E2 08 00 90 02 80 11 00 00 00 00 00 00 0C [20:06:05]Write i2c OK [20:06:05]MH_I2C_Read... [20:06:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:06:05]Read from MH i2c: E2 [20:06:05]MH_I2C_Read... [20:06:05]Read from MH i2c: E2 17 00 [20:06:05]MH_I2C_Read... [20:06:05]Read from MH i2c: E2 17 00 90 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 57 [20:06:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [20:06:05]wFMCommunicate OK [20:06:05]CreateOFDProtocolMessage done [20:06:05]OFDSenderStorePacket 68470 [20:06:05]StoreOFDPacket docnum=68470 [20:06:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 75 7D 07 01 C4 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 2C 22 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 76 0B 01 00 35 04 06 00 91 41 C9 55 D1 84 0F B7 82 29 35 74 A3 E0 [20:06:05]CheckFolder [20:06:05]dirname=/storage/ofd_packets [20:06:05]CheckFolder done [20:06:05]ProducePacketName [20:06:05]name=ofd_packets/00068470 [20:06:05]NVStorageSaveData ofd_packets/00068470 [20:06:05]File name is /storage/ofd_packets/00068470 [20:06:05]Write 301 bytes [20:06:05]NVStorageSaveData done [20:06:05]OFDSenderStorePacket done [20:06:05]KKMCreateOFDPacket done [20:06:05]NVStorageSaveData kkm_last_timestamp [20:06:05]File name is /storage/kkm_last_timestamp [20:06:05]Write 4 bytes [20:06:05]NVStorageSaveData done [20:06:05]ExternCall_PrintAddStr [20:06:05]wPrintStart [20:06:05]Write to MH i2c: 01 00 00 91 02 93 [20:06:05]OFD Sender: Processing packet 68470 [packets to send 26, broken 25] [20:06:05]ProducePacketName [20:06:05]name=ofd_packets/00068470 [20:06:05]OFD Sender: To server: pG, [20:06:05]CommunicateWithHost lk.salyk.kg:30040 [20:06:05]ConnectInit lk.salyk.kg [20:06:05]Write i2c OK [20:06:05]MH_I2C_Read... [20:06:05]Read from MH i2c: 01 [20:06:05]MH_I2C_Read... [20:06:05]Read from MH i2c: 01 07 00 [20:06:05]MH_I2C_Read... [20:06:05]Read from MH i2c: 01 07 00 91 02 00 00 00 00 00 FF 0F A8 [20:06:05]RasterBufferAndPrint [20:06:05]line Счет N : (1)706580 [20:06:05]line ИНН: 02508201610067 [20:06:05]line Контрольно-Кассовый Чек [20:06:05]line ПРОДАЖА [20:06:05]line ТРК (МРК, ГНК) : 32 [20:06:05]line Товар: 2710124130 [20:06:05]line Аи-92-К-4 [20:06:05]line 2.990 * 66.90 [20:06:05]line = 200.03 [20:06:05]line НДС 12% НСП 1% [20:06:05]line > о реализуемом товаре [20:06:05]line ОКРУГЛЕНИЕ: -0.03 [20:06:05]line ИТОГО: 200.00 [20:06:05]line Внесено: 200.00 [20:06:05]line СДАЧА: 0.00 [20:06:05]line НСП 1% : 1.77 [20:06:05]line НДС 12% : 21.24 [20:06:05]line Наличными: 200.00 [20:06:05]line Безнал.: 0.00 [20:06:05]line Место: АЗС № 62 "Партнер Нефть" [20:06:05]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [20:06:05]line СНО: Общий режим [20:06:05]line Чек 216 03.06.2024 20:06 [20:06:05]line Смена: 324 ФФД: 1.0 [20:06:05]line ЗНМ: 0300000181 [20:06:05]line РНМ: 0000000000098096 [20:06:05]line Версия ККМ: 001 [20:06:05]line ФМ: 0000000000965400 [20:06:05]line ФД: 68470 [20:06:05]line ФПД: 159711736746372 [20:06:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T200604&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68470&fm=159711736746372&tin=02508201610067®Number=0000000000098096&sum=20000 [20:06:06]Connected sock=10 [20:06:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 75 7D 07 01 C4 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 2C 22 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 76 0B 01 00 35 04 06 00 91 41 C9 55 D1 84 0F B7 82 29 35 74 A3 E0 [20:06:06]written 0, free lines is 4095 [20:06:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 9C 64 47 00 11 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 76 0B 01 00 F4 03 04 00 27 C9 5D 66 B6 04 01 00 00 8F 59 0A 89 13 CF 75 2B [20:06:06]CommunicateWithHost err = 0 [20:06:06]CheckOFDResponse [20:06:06]1017 (14) - 77093643461234 [20:06:06]1041 (16) - 0000000000965400 [20:06:06]1040 (4) - 68470 [20:06:06]1012 (4) - 03.06.2024 13:46 [20:06:06]1206 (1) - 0 [20:06:06]OFD Sender: Remove packet 68470 [20:06:06]ProducePacketName [20:06:06]name=ofd_packets/00068470 [20:06:06]NVStorageDeleteData [20:06:06]Write to MH i2c: 01 00 00 BC 02 BE [20:06:06]Write i2c OK [20:06:06]MH_I2C_Read... [20:06:06]Read from MH i2c: 01 [20:06:06]MH_I2C_Read... [20:06:06]Read from MH i2c: 01 07 00 [20:06:06]MH_I2C_Read... [20:06:06]Read from MH i2c: 01 07 00 BC 02 00 00 00 00 00 D7 0C A8 [20:06:06]RasterBufferAndPrint [20:06:06]line [20:06:06]line [20:06:06]line [20:06:06]line [20:06:06]line [20:06:06]written 0, free lines is 3294 [20:06:06]MH_Cut [20:06:06]Write to MH i2c: D1 01 00 C3 02 01 97 [20:06:06]Write i2c OK [20:06:06]MH_I2C_Read... [20:06:06]Read from MH i2c: D1 [20:06:06]MH_I2C_Read... [20:06:06]Read from MH i2c: D1 01 00 [20:06:06]MH_I2C_Read... [20:06:06]Read from MH i2c: D1 01 00 C3 02 00 96 [20:06:06]Write to MH i2c: 01 00 00 C4 02 C6 [20:06:06]Write i2c OK [20:06:06]MH_I2C_Read... [20:06:06]OFD Sender: No OFD packet to send [20:06:07]*** Cut start [20:06:07]*** Partial cut [20:06:07]*** CUTSNS_PIN = 1 [20:06:07]*** CUTSNS_PIN = 0 [20:06:07]*** Brake cut motor [20:06:08]Read from MH i2c: 01 [20:06:08]MH_I2C_Read... [20:06:08]*** Stop cut motor [20:06:08]*** Cut end [20:06:08]Read from MH i2c: 01 07 00 [20:06:08]MH_I2C_Read... [20:06:08]Read from MH i2c: 01 07 00 C4 02 00 00 00 00 00 FF 0F DB [20:06:08]process_action close_receipt done [20:06:08]requested_data is exist [20:06:08]produce_requested_data [20:06:08]requested_item fm.sn is exist - process it [20:06:08]wFMCommunicate request_size=4 [20:06:08]MH_SAM_APDU [20:06:08]CAPDU: 80 11 00 00 [20:06:08]Write to MH i2c: E2 08 00 C5 02 80 11 00 00 00 00 00 00 41 [20:06:08]Write i2c OK [20:06:08]MH_I2C_Read... [20:06:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:06:08]Read from MH i2c: E2 [20:06:08]MH_I2C_Read... [20:06:08]Read from MH i2c: E2 17 00 [20:06:08]MH_I2C_Read... [20:06:08]Read from MH i2c: E2 17 00 C5 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 8C [20:06:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [20:06:08]wFMCommunicate OK [20:06:08]requested_item fd.num is exist - process it [20:06:08]SAM_PROTO_GetFieldsCounters [20:06:08]wFMCommunicate request_size=4 [20:06:08]MH_SAM_APDU [20:06:08]CAPDU: 80 13 00 00 [20:06:08]Write to MH i2c: E2 08 00 C6 02 80 13 00 00 00 00 00 00 44 [20:06:08]Write i2c OK [20:06:08]MH_I2C_Read... [20:06:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:06:08]Read from MH i2c: E2 [20:06:08]MH_I2C_Read... [20:06:08]Read from MH i2c: E2 62 00 [20:06:08]MH_I2C_Read... [20:06:08]Read from MH i2c: E2 62 00 C6 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 76 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 B3 [20:06:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 76 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:06:08]wFMCommunicate OK [20:06:08]SAM_PROTO_GetFieldsCounters done [20:06:08]requested_item shift.num is exist - process it [20:06:08]requested_item shift.opened is exist - process it [20:06:08]req_shift_opened [20:06:08]FM_GetShiftState [20:06:08]SAM_PROTO_GetShiftState [20:06:08]wFMCommunicate request_size=4 [20:06:08]MH_SAM_APDU [20:06:08]CAPDU: 80 13 01 00 [20:06:08]Write to MH i2c: E2 08 00 C7 02 80 13 01 00 00 00 00 00 46 [20:06:08]Write i2c OK [20:06:08]MH_I2C_Read... [20:06:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:06:08]Read from MH i2c: E2 [20:06:08]MH_I2C_Read... [20:06:08]Read from MH i2c: E2 0E 00 [20:06:08]MH_I2C_Read... [20:06:08]Read from MH i2c: E2 0E 00 C7 02 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 21 [20:06:08]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [20:06:08]wFMCommunicate OK [20:06:08]SAM_PROTO_GetShiftState done [20:06:08]FM_GetShiftState done [20:06:08]req_shift_opened done [20:06:08]requested_item shift.open_date is exist - process it [20:06:08]req_shift_open_date [20:06:08]req_shift_open_date done [20:06:08]produce_requested_data done [20:06:08]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68470,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [20:06:08]process_action_free close_receipt [20:06:08]json_value_free [20:06:08]json_value_free done [20:06:08]process_json_proto returns [20:06:08]Send response to host [20:06:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68470,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [20:06:08]free response buf [20:06:08]execute_script done [20:06:08]execute_script returns [20:06:08]free content buf [20:06:08]Sock 7.Close socket [20:06:08]Sock 7.Thread stoped [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:47]OFD Sender: No OFD packet to send [20:06:52]OFD Sender: No OFD packet to send [20:06:57]OFD Sender: No OFD packet to send [20:07:02]OFD Sender: No OFD packet to send [20:07:07]OFD Sender: No OFD packet to send [20:07:12]OFD Sender: No OFD packet to send [20:07:17]OFD Sender: No OFD packet to send [20:07:22]OFD Sender: No OFD packet to send [20:07:27]OFD Sender: No OFD packet to send [20:07:32]OFD Sender: No OFD packet to send [20:07:37]OFD Sender: No OFD packet to send [20:07:42]OFD Sender: No OFD packet to send [20:07:47]OFD Sender: No OFD packet to send [20:07:52]OFD Sender: No OFD packet to send [20:07:57]OFD Sender: No OFD packet to send [20:08:02]OFD Sender: No OFD packet to send [20:08:07]OFD Sender: No OFD packet to send [20:08:12]OFD Sender: No OFD packet to send [20:08:17]OFD Sender: No OFD packet to send [20:08:22]OFD Sender: No OFD packet to send [20:08:27]OFD Sender: No OFD packet to send [20:08:32]OFD Sender: No OFD packet to send [20:08:37]OFD Sender: No OFD packet to send [20:08:42]OFD Sender: No OFD packet to send [20:08:47]OFD Sender: No OFD packet to send [20:08:52]OFD Sender: No OFD packet to send [20:08:57]OFD Sender: No OFD packet to send [20:09:02]OFD Sender: No OFD packet to send [20:09:07]OFD Sender: No OFD packet to send [20:09:12]OFD Sender: No OFD packet to send [20:09:17]OFD Sender: No OFD packet to send [20:09:22]OFD Sender: No OFD packet to send [20:09:27]OFD Sender: No OFD packet to send [20:09:32]OFD Sender: No OFD packet to send [20:09:37]OFD Sender: No OFD packet to send [20:09:42]OFD Sender: No OFD packet to send [20:09:47]OFD Sender: No OFD packet to send [20:09:52]OFD Sender: No OFD packet to send [20:09:57]OFD Sender: No OFD packet to send [20:10:02]OFD Sender: No OFD packet to send [20:10:07]OFD Sender: No OFD packet to send [20:10:12]OFD Sender: No OFD packet to send [20:10:17]OFD Sender: No OFD packet to send [20:10:22]OFD Sender: No OFD packet to send [20:10:27]OFD Sender: No OFD packet to send [20:10:32]OFD Sender: No OFD packet to send [20:10:37]OFD Sender: No OFD packet to send [20:10:42]OFD Sender: No OFD packet to send [20:10:47]OFD Sender: No OFD packet to send [20:10:52]OFD Sender: No OFD packet to send [20:10:57]OFD Sender: No OFD packet to send [20:11:02]OFD Sender: No OFD packet to send [20:11:07]OFD Sender: No OFD packet to send [20:11:12]OFD Sender: No OFD packet to send [20:11:17]OFD Sender: No OFD packet to send [20:11:22]OFD Sender: No OFD packet to send [20:11:27]OFD Sender: No OFD packet to send [20:11:32]OFD Sender: No OFD packet to send [20:11:37]OFD Sender: No OFD packet to send [20:11:42]OFD Sender: No OFD packet to send [20:11:47]OFD Sender: No OFD packet to send [20:11:52]OFD Sender: No OFD packet to send [20:11:57]OFD Sender: No OFD packet to send [20:12:02]OFD Sender: No OFD packet to send [20:12:07]OFD Sender: No OFD packet to send [20:12:12]OFD Sender: No OFD packet to send [20:12:17]OFD Sender: No OFD packet to send [20:12:22]OFD Sender: No OFD packet to send [20:12:27]OFD Sender: No OFD packet to send [20:12:32]OFD Sender: No OFD packet to send [20:12:37]OFD Sender: No OFD packet to send [20:12:42]OFD Sender: No OFD packet to send [20:12:47]OFD Sender: No OFD packet to send [20:12:52]OFD Sender: No OFD packet to send [20:12:57]OFD Sender: No OFD packet to send [20:13:02]OFD Sender: No OFD packet to send [20:13:07]OFD Sender: No OFD packet to send [20:13:12]OFD Sender: No OFD packet to send [20:13:17]OFD Sender: No OFD packet to send [20:13:22]OFD Sender: No OFD packet to send [20:13:27]OFD Sender: No OFD packet to send [20:13:32]OFD Sender: No OFD packet to send [20:13:37]OFD Sender: No OFD packet to send [20:13:42]OFD Sender: No OFD packet to send [20:13:47]OFD Sender: No OFD packet to send [20:13:52]OFD Sender: No OFD packet to send [20:13:57]OFD Sender: No OFD packet to send [20:14:02]OFD Sender: No OFD packet to send [20:14:07]OFD Sender: No OFD packet to send [20:14:12]OFD Sender: No OFD packet to send [20:14:17]OFD Sender: No OFD packet to send [20:14:22]OFD Sender: No OFD packet to send [20:14:27]OFD Sender: No OFD packet to send [20:14:32]OFD Sender: No OFD packet to send [20:14:37]OFD Sender: No OFD packet to send [20:14:42]OFD Sender: No OFD packet to send [20:14:47]OFD Sender: No OFD packet to send [20:14:52]OFD Sender: No OFD packet to send [20:14:56]accept exits with 9 [20:14:56]New connection [20:14:56]New thread 3067227492 created [20:14:56]Thread 3067084132 joined [20:14:56]Waiting for new connection... [20:14:56] Sock 9.Parse request [20:14:56]Sock 9.Check first char [20:14:56]Sock 9.First char is OK [20:14:56]request: POST /json_proto HTTP/1.0 [20:14:56]Method: POST [20:14:56]URL: /json_proto [20:14:56]Method is POST - this is cgi request [20:14:56]url: /json_proto [20:14:56]query_string will be loaded in cgi processing [20:14:56]execute_cgi json_proto POST (null) [20:14:56]execute_cgi path=json_proto method=POST [20:14:56]POST find Content-Length [20:14:56]Host: 172.17.36.132:8080 [20:14:56]Content-Length: 670 [20:14:56]Content-Type: application/json [20:14:56] [20:14:56]POST finish read [20:14:56]Found Content-Length = 670 [20:14:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706581", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 1.540, "sum" : 104.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 104.00, "total" : 104.00, "payments": [ { "type": 0, "sum" : 104.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:14:56]execute_script... [20:14:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706581", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 1.540, "sum" : 104.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 104.00, "total" : 104.00, "payments": [ { "type": 0, "sum" : 104.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:14:56]POST & json_proto [20:14:56]process_json_proto [20:14:56]json parsed OK: [20:14:56]protocol is kg_v1.0 [20:14:56]action value=close_receipt [20:14:56]process_action close_receipt [20:14:56]cmd_close_receipt [20:14:56]MH_GetDate [20:14:56]Write to MH i2c: F0 00 00 C8 02 B9 [20:14:56]Write i2c OK [20:14:56]MH_I2C_Read... [20:14:56]Read from MH i2c: F0 [20:14:56]MH_I2C_Read... [20:14:56]Read from MH i2c: F0 09 00 [20:14:56]MH_I2C_Read... [20:14:56]Read from MH i2c: F0 09 00 C8 02 00 40 24 5E 66 B2 22 B0 64 D2 [20:14:56]GetLastDocTimeStamp 1717445164 [20:14:56]current date 1717445696 [20:14:56]FM_GetShiftState [20:14:56]SAM_PROTO_GetShiftState [20:14:56]wFMCommunicate request_size=4 [20:14:56]MH_SAM_APDU [20:14:56]CAPDU: 80 13 01 00 [20:14:56]Write to MH i2c: E2 08 00 C9 02 80 13 01 00 00 00 00 00 48 [20:14:56]Write i2c OK [20:14:56]MH_I2C_Read... [20:14:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:14:56]Read from MH i2c: E2 [20:14:56]MH_I2C_Read... [20:14:56]Read from MH i2c: E2 0E 00 [20:14:56]MH_I2C_Read... [20:14:56]Read from MH i2c: E2 0E 00 C9 02 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 23 [20:14:56]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [20:14:56]wFMCommunicate OK [20:14:56]SAM_PROTO_GetShiftState done [20:14:56]FM_GetShiftState done [20:14:56]opened in 1717378033 [20:14:56]opened+sec_in_day 1717464433 [20:14:56]quantity*price = 10456 [20:14:56]sum+1 = 10458 [20:14:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 104.00 Внесено: 104.00 СДАЧА: 0.00 НСП 1% : 0.92 НДС 12% : 11.10 Наличными: 104.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 217 03.06.2024 20:14 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68471 ФПД: 95355380427176 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T201456&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68471&fm=95355380427176&tin=02508201610067®Number=0000000000098096&sum=10400 [20:14:57]StoreToDocumentArchive [20:14:57]shift 324 fd 68471 [20:14:57]save to /storage/0324/doc_00068471 [20:14:57]save last doc name /storage/0324/doc_00068471 to /storage/kkm_last_doc_name [20:14:57]save OK [20:14:57]Clear old archive folders... [20:14:57]ProcessDocumentItem done err = 0, tmpTLVsize=252 [20:14:57]tlvbuf is 00A3F4E0 [20:14:57]SAM_PROTO_ClearQueue [20:14:57]wFMCommunicate request_size=4 [20:14:57]MH_SAM_APDU [20:14:57]CAPDU: 80 09 00 00 [20:14:57]Write to MH i2c: E2 08 00 D6 02 80 09 00 00 00 00 00 00 4A [20:14:57]Write i2c OK [20:14:57]MH_I2C_Read... [20:14:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:14:57]Read from MH i2c: E2 [20:14:57]MH_I2C_Read... [20:14:57]Read from MH i2c: E2 03 00 [20:14:57]MH_I2C_Read... [20:14:57]Read from MH i2c: E2 03 00 D6 02 00 90 00 4C [20:14:57]RAPDU: 90 00 [20:14:57]wFMCommunicate OK [20:14:57]SAM_PROTO_ClearQueue done [20:14:57]KKMCreateOFDPacket [20:14:57]OFDProtocolAddRootSTLVToBuf [20:14:57]FM_MakeSignedData [20:14:57]FM_MakeSignedData [20:14:57]SAM_PROTO_SignData [20:14:57]wFMCommunicate request_size=4 [20:14:57]MH_SAM_APDU [20:14:57]CAPDU: 80 0D 01 02 [20:14:57]Write to MH i2c: E2 08 00 D7 02 80 0D 01 02 00 00 00 00 52 [20:14:57]Write i2c OK [20:14:57]MH_I2C_Read... [20:14:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:14:57]Read from MH i2c: E2 [20:14:57]MH_I2C_Read... [20:14:57]Read from MH i2c: E2 03 00 [20:14:57]MH_I2C_Read... [20:14:57]Read from MH i2c: E2 03 00 D7 02 00 90 00 4D [20:14:57]RAPDU: 90 00 [20:14:57]wFMCommunicate OK [20:14:57]wFMCommunicate request_size=255 [20:14:57]MH_SAM_APDU [20:14: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 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 04 06 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 D9 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 04 00 00 00 00 07 04 06 00 A0 28 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 40 24 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 77 0B 01 00 35 04 06 00 [20:14:57]Write to MH i2c: E2 02 01 D8 02 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 04 06 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 D9 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 04 00 00 00 00 07 04 06 00 A0 28 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 40 24 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 77 0B 01 00 35 04 06 00 00 00 3F [20:14:57]Write i2c OK [20:14:57]MH_I2C_Read... [20:14:57]Read from MH i2c: E2 [20:14:57]MH_I2C_Read... [20:14:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:14:57]Read from MH i2c: E2 03 00 [20:14:57]MH_I2C_Read... [20:14:57]Read from MH i2c: E2 03 00 D8 02 00 90 00 4E [20:14:57]RAPDU: 90 00 [20:14:57]wFMCommunicate OK [20:14:57]wFMCommunicate request_size=11 [20:14:57]MH_SAM_APDU [20:14:57]CAPDU: 80 0D 02 02 06 56 B9 A7 93 E9 A8 [20:14:57]Write to MH i2c: E2 0E 00 D9 02 80 0D 02 02 06 00 56 B9 A7 93 E9 A8 00 00 3B [20:14:57]Write i2c OK [20:14:57]MH_I2C_Read... [20:14:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:14:57]Read from MH i2c: E2 [20:14:57]MH_I2C_Read... [20:14:57]Read from MH i2c: E2 03 00 [20:14:57]MH_I2C_Read... [20:14:57]Read from MH i2c: E2 03 00 D9 02 00 90 00 4F [20:14:57]RAPDU: 90 00 [20:14:57]wFMCommunicate OK [20:14:57]wFMCommunicate request_size=4 [20:14:57]MH_SAM_APDU [20:14:57]CAPDU: 80 0D 03 02 [20:14:57]Write to MH i2c: E2 08 00 DA 02 80 0D 03 02 00 00 00 00 57 [20:14:57]Write i2c OK [20:14:57]MH_I2C_Read... [20:14:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:14:57]Read from MH i2c: E2 [20:14:57]MH_I2C_Read... [20:14:57]Read from MH i2c: E2 0B 00 [20:14:57]MH_I2C_Read... [20:14:57]Read from MH i2c: E2 0B 00 DA 02 00 E6 37 01 2E 16 8B 8B 43 90 00 13 [20:14:57]RAPDU: E6 37 01 2E 16 8B 8B 43 90 00 [20:14:57]wFMCommunicate OK [20:14:57]SAM_PROTO_SignData done [20:14:57]FM_MakeSignedData done [20:14:57]CreateOFDProtocolMessage [20:14:57]wFMCommunicate request_size=4 [20:14:57]MH_SAM_APDU [20:14:57]CAPDU: 80 11 00 00 [20:14:57]Write to MH i2c: E2 08 00 DB 02 80 11 00 00 00 00 00 00 57 [20:14:57]Write i2c OK [20:14:57]MH_I2C_Read... [20:14:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:14:58]Read from MH i2c: E2 [20:14:58]MH_I2C_Read... [20:14:58]Read from MH i2c: E2 17 00 [20:14:58]MH_I2C_Read... [20:14:58]Read from MH i2c: E2 17 00 DB 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 A2 [20:14:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [20:14:58]wFMCommunicate OK [20:14:58]CreateOFDProtocolMessage done [20:14:58]OFDSenderStorePacket 68471 [20:14:58]StoreOFDPacket docnum=68471 [20:14:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 A0 A3 08 01 64 0B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 04 06 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 D9 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 04 00 00 00 00 07 04 06 00 A0 28 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 40 24 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 77 0B 01 00 35 04 06 00 56 B9 A7 93 E9 A8 E6 37 01 2E 16 8B 8B 43 [20:14:58]CheckFolder [20:14:58]dirname=/storage/ofd_packets [20:14:58]CheckFolder done [20:14:58]ProducePacketName [20:14:58]name=ofd_packets/00068471 [20:14:58]NVStorageSaveData ofd_packets/00068471 [20:14:58]File name is /storage/ofd_packets/00068471 [20:14:58]Write 302 bytes [20:14:58]NVStorageSaveData done [20:14:58]OFDSenderStorePacket done [20:14:58]KKMCreateOFDPacket done [20:14:58]NVStorageSaveData kkm_last_timestamp [20:14:58]File name is /storage/kkm_last_timestamp [20:14:58]Write 4 bytes [20:14:58]NVStorageSaveData done [20:14:58]ExternCall_PrintAddStr [20:14:58]wPrintStart [20:14:58]Write to MH i2c: 01 00 00 DC 02 DE [20:14:58]Write i2c OK [20:14:58]MH_I2C_Read... [20:14:58]Read from MH i2c: 01 [20:14:58]MH_I2C_Read... [20:14:58]Read from MH i2c: 01 07 00 [20:14:58]MH_I2C_Read... [20:14:58]Read from MH i2c: 01 07 00 DC 02 00 00 00 00 00 FF 0F F3 [20:14:58]RasterBufferAndPrint [20:14:58]line Счет N : (1)706581 [20:14:58]line ИНН: 02508201610067 [20:14:58]line Контрольно-Кассовый Чек [20:14:58]line ПРОДАЖА [20:14:58]line ТРК (МРК, ГНК) : 12 [20:14:58]line Товар: 2710124130 [20:14:58]line Super-92-К-5 [20:14:58]line 1.540 * 67.90 [20:14:58]line = 104.57 [20:14:58]line НДС 12% НСП 1% [20:14:58]line > о реализуемом товаре [20:14:58]line ОКРУГЛЕНИЕ: -0.57 [20:14:58]line ИТОГО: 104.00 [20:14:58]line Внесено: 104.00 [20:14:58]line СДАЧА: 0.00 [20:14:58]line НСП 1% : 0.92 [20:14:58]line НДС 12% : 11.10 [20:14:58]line Наличными: 104.00 [20:14:58]line Безнал.: 0.00 [20:14:58]line Место: АЗС № 62 "Партнер Нефть" [20:14:58]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [20:14:58]line СНО: Общий режим [20:14:58]line Чек 217 03.06.2024 20:14 [20:14:58]line Смена: 324 ФФД: 1.0 [20:14:58]line ЗНМ: 0300000181 [20:14:58]line РНМ: 0000000000098096 [20:14:58]line Версия ККМ: 001 [20:14:58]line ФМ: 0000000000965400 [20:14:58]line ФД: 68471 [20:14:58]line ФПД: 95355380427176 [20:14:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T201456&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68471&fm=95355380427176&tin=02508201610067®Number=0000000000098096&sum=10400 [20:14:58]OFD Sender: Processing packet 68471 [packets to send 26, broken 25] [20:14:58]ProducePacketName [20:14:58]name=ofd_packets/00068471 [20:14:58]OFD Sender: To server: pG, [20:14:58]CommunicateWithHost lk.salyk.kg:30040 [20:14:58]ConnectInit lk.salyk.kg [20:14:58]written 0, free lines is 4095 [20:14:58]Write to MH i2c: 01 00 00 07 03 0A [20:14:58]Write i2c OK [20:14:58]MH_I2C_Read... [20:14:58]Read from MH i2c: 01 [20:14:58]MH_I2C_Read... [20:14:58]Read from MH i2c: 01 07 00 [20:14:58]MH_I2C_Read... [20:14:58]Read from MH i2c: 01 07 00 07 03 00 00 00 00 00 C6 0C E3 [20:14:58]RasterBufferAndPrint [20:14:58]line [20:14:58]line [20:14:58]line [20:14:58]line [20:14:58]line [20:14:58]written 0, free lines is 3276 [20:14:58]MH_Cut [20:14:58]Write to MH i2c: D1 01 00 0E 03 01 E3 [20:14:58]Write i2c OK [20:14:58]MH_I2C_Read... [20:14:58]Read from MH i2c: D1 [20:14:58]MH_I2C_Read... [20:14:58]Read from MH i2c: D1 01 00 [20:14:58]MH_I2C_Read... [20:14:58]Read from MH i2c: D1 01 00 0E 03 00 E2 [20:14:58]Write to MH i2c: 01 00 00 0F 03 12 [20:14:58]Write i2c OK [20:14:58]MH_I2C_Read... [20:14:59]*** Cut start [20:14:59]*** Partial cut [20:14:59]*** CUTSNS_PIN = 1 [20:14:59]*** CUTSNS_PIN = 0 [20:14:59]*** Brake cut motor [20:15:00]Read from MH i2c: 01 [20:15:00]MH_I2C_Read... [20:15:00]*** Stop cut motor [20:15:00]*** Cut end [20:15:00]Read from MH i2c: 01 07 00 [20:15:00]MH_I2C_Read... [20:15:00]Read from MH i2c: 01 07 00 0F 03 00 00 00 00 00 FF 0F 27 [20:15:00]process_action close_receipt done [20:15:00]requested_data is exist [20:15:00]produce_requested_data [20:15:00]requested_item fm.sn is exist - process it [20:15:00]wFMCommunicate request_size=4 [20:15:00]MH_SAM_APDU [20:15:00]CAPDU: 80 11 00 00 [20:15:00]Write to MH i2c: E2 08 00 10 03 80 11 00 00 00 00 00 00 8D [20:15:00]Write i2c OK [20:15:00]MH_I2C_Read... [20:15:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:15:00]Read from MH i2c: E2 [20:15:00]MH_I2C_Read... [20:15:00]Read from MH i2c: E2 17 00 [20:15:00]MH_I2C_Read... [20:15:00]Read from MH i2c: E2 17 00 10 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 D8 [20:15:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [20:15:00]wFMCommunicate OK [20:15:00]requested_item fd.num is exist - process it [20:15:00]SAM_PROTO_GetFieldsCounters [20:15:00]wFMCommunicate request_size=4 [20:15:00]MH_SAM_APDU [20:15:00]CAPDU: 80 13 00 00 [20:15:00]Write to MH i2c: E2 08 00 11 03 80 13 00 00 00 00 00 00 90 [20:15:00]Write i2c OK [20:15:00]MH_I2C_Read... [20:15:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:15:00]Read from MH i2c: E2 [20:15:00]MH_I2C_Read... [20:15:00]Read from MH i2c: E2 62 00 [20:15:00]MH_I2C_Read... [20:15:00]Read from MH i2c: E2 62 00 11 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 77 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 03 [20:15:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 77 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:15:00]wFMCommunicate OK [20:15:00]SAM_PROTO_GetFieldsCounters done [20:15:00]requested_item shift.num is exist - process it [20:15:00]requested_item shift.opened is exist - process it [20:15:00]req_shift_opened [20:15:00]FM_GetShiftState [20:15:00]SAM_PROTO_GetShiftState [20:15:00]wFMCommunicate request_size=4 [20:15:00]MH_SAM_APDU [20:15:00]CAPDU: 80 13 01 00 [20:15:00]Write to MH i2c: E2 08 00 12 03 80 13 01 00 00 00 00 00 92 [20:15:00]Write i2c OK [20:15:00]MH_I2C_Read... [20:15:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:15:00]Read from MH i2c: E2 [20:15:00]MH_I2C_Read... [20:15:00]Read from MH i2c: E2 0E 00 [20:15:00]MH_I2C_Read... [20:15:00]Read from MH i2c: E2 0E 00 12 03 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 6D [20:15:00]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [20:15:00]wFMCommunicate OK [20:15:00]SAM_PROTO_GetShiftState done [20:15:00]FM_GetShiftState done [20:15:00]req_shift_opened done [20:15:00]requested_item shift.open_date is exist - process it [20:15:00]req_shift_open_date [20:15:00]req_shift_open_date done [20:15:00]produce_requested_data done [20:15:00]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68471,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [20:15:00]process_action_free close_receipt [20:15:00]json_value_free [20:15:00]json_value_free done [20:15:00]process_json_proto returns [20:15:00]Send response to host [20:15:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68471,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [20:15:00]free response buf [20:15:00]execute_script done [20:15:00]execute_script returns [20:15:00]free content buf [20:15:00]Sock 9.Close socket [20:15:00]Sock 9.Thread stoped [20:17:11]ConnectInit Can't connect to host [20:17:11]CommunicateWithHost connect error [20:17:11]CommunicateWithHost err = -1 [20:17:11]OFD Sender: Server communicate error [20:17:16]OFD Sender: Processing packet 68471 [packets to send 26, broken 25] [20:17:16]ProducePacketName [20:17:16]name=ofd_packets/00068471 [20:17:16]OFD Sender: To server: pG, [20:17:16]CommunicateWithHost lk.salyk.kg:30040 [20:17:16]ConnectInit lk.salyk.kg [20:17:16]Connected sock=9 [20:17:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 A0 A3 08 01 64 0B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 04 06 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 D9 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 04 00 00 00 00 07 04 06 00 A0 28 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 40 24 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 77 0B 01 00 35 04 06 00 56 B9 A7 93 E9 A8 E6 37 01 2E 16 8B 8B 43 [20:17:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 DA 27 47 00 0A 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 77 0B 01 00 F4 03 04 00 C6 CB 5D 66 B6 04 01 00 00 53 92 CD A3 67 4B 2F 0A [20:17:17]CommunicateWithHost err = 0 [20:17:17]CheckOFDResponse [20:17:17]1017 (14) - 77093643461234 [20:17:17]1041 (16) - 0000000000965400 [20:17:17]1040 (4) - 68471 [20:17:17]1012 (4) - 03.06.2024 13:57 [20:17:17]1206 (1) - 0 [20:17:17]OFD Sender: Remove packet 68471 [20:17:17]ProducePacketName [20:17:17]name=ofd_packets/00068471 [20:17:17]NVStorageDeleteData [20:17:17]OFD Sender: No OFD packet to send [20:17:22]OFD Sender: No OFD packet to send [20:17:27]OFD Sender: No OFD packet to send [20:17:32]OFD Sender: No OFD packet to send [20:17:37]OFD Sender: No OFD packet to send [20:17:42]OFD Sender: No OFD packet to send [20:17:47]OFD Sender: No OFD packet to send [20:17:52]OFD Sender: No OFD packet to send [20:17:57]OFD Sender: No OFD packet to send [20:18:02]OFD Sender: No OFD packet to send [20:18:07]OFD Sender: No OFD packet to send [20:18:12]OFD Sender: No OFD packet to send [20:18:17]OFD Sender: No OFD packet to send [20:18:22]OFD Sender: No OFD packet to send [20:18:27]OFD Sender: No OFD packet to send [20:18:32]OFD Sender: No OFD packet to send [20:18:37]OFD Sender: No OFD packet to send [20:18:42]OFD Sender: No OFD packet to send [20:18:47]OFD Sender: No OFD packet to send [20:18:52]OFD Sender: No OFD packet to send [20:18:57]OFD Sender: No OFD packet to send [20:19:02]OFD Sender: No OFD packet to send [20:19:07]OFD Sender: No OFD packet to send [20:19:12]OFD Sender: No OFD packet to send [20:19:17]OFD Sender: No OFD packet to send [20:19:22]OFD Sender: No OFD packet to send [20:19:27]OFD Sender: No OFD packet to send [20:19:32]OFD Sender: No OFD packet to send [20:19:37]OFD Sender: No OFD packet to send [20:19:42]OFD Sender: No OFD packet to send [20:19:47]OFD Sender: No OFD packet to send [20:19:52]OFD Sender: No OFD packet to send [20:19:57]OFD Sender: No OFD packet to send [20:20:02]OFD Sender: No OFD packet to send [20:20:07]OFD Sender: No OFD packet to send [20:20:12]OFD Sender: No OFD packet to send [20:20:17]OFD Sender: No OFD packet to send [20:20:22]OFD Sender: No OFD packet to send [20:20:27]OFD Sender: No OFD packet to send [20:20:32]OFD Sender: No OFD packet to send [20:20:37]OFD Sender: No OFD packet to send [20:20:42]OFD Sender: No OFD packet to send [20:20:47]OFD Sender: No OFD packet to send [20:20:52]OFD Sender: No OFD packet to send [20:20:57]OFD Sender: No OFD packet to send [20:21:02]OFD Sender: No OFD packet to send [20:21:07]OFD Sender: No OFD packet to send [20:21:12]OFD Sender: No OFD packet to send [20:21:17]OFD Sender: No OFD packet to send [20:21:22]OFD Sender: No OFD packet to send [20:21:27]OFD Sender: No OFD packet to send [20:21:32]OFD Sender: No OFD packet to send [20:21:37]OFD Sender: No OFD packet to send [20:21:42]OFD Sender: No OFD packet to send [20:21:47]OFD Sender: No OFD packet to send [20:21:52]OFD Sender: No OFD packet to send [20:21:57]OFD Sender: No OFD packet to send [20:22:02]OFD Sender: No OFD packet to send [20:22:07]OFD Sender: No OFD packet to send [20:22:12]OFD Sender: No OFD packet to send [20:22:17]OFD Sender: No OFD packet to send [20:22:22]OFD Sender: No OFD packet to send [20:22:27]OFD Sender: No OFD packet to send [20:22:32]OFD Sender: No OFD packet to send [20:22:37]OFD Sender: No OFD packet to send [20:22:42]OFD Sender: No OFD packet to send [20:22:47]OFD Sender: No OFD packet to send [20:22:52]OFD Sender: No OFD packet to send [20:22:57]OFD Sender: No OFD packet to send [20:23:02]OFD Sender: No OFD packet to send [20:23:07]OFD Sender: No OFD packet to send [20:23:12]OFD Sender: No OFD packet to send [20:23:17]OFD Sender: No OFD packet to send [20:23:22]OFD Sender: No OFD packet to send [20:23:27]OFD Sender: No OFD packet to send [20:23:32]OFD Sender: No OFD packet to send [20:23:37]OFD Sender: No OFD packet to send [20:23:42]OFD Sender: No OFD packet to send [20:23:48]OFD Sender: No OFD packet to send [20:23:53]OFD Sender: No OFD packet to send [20:23:58]OFD Sender: No OFD packet to send [20:24:03]OFD Sender: No OFD packet to send [20:24:08]OFD Sender: No OFD packet to send [20:24:13]OFD Sender: No OFD packet to send [20:24:18]OFD Sender: No OFD packet to send [20:24:23]OFD Sender: No OFD packet to send [20:24:28]OFD Sender: No OFD packet to send [20:24:33]OFD Sender: No OFD packet to send [20:24:38]OFD Sender: No OFD packet to send [20:24:43]OFD Sender: No OFD packet to send [20:24:48]OFD Sender: No OFD packet to send [20:24:53]OFD Sender: No OFD packet to send [20:24:58]OFD Sender: No OFD packet to send [20:25:03]OFD Sender: No OFD packet to send [20:25:08]OFD Sender: No OFD packet to send [20:25:13]OFD Sender: No OFD packet to send [20:25:18]OFD Sender: No OFD packet to send [20:25:23]OFD Sender: No OFD packet to send [20:25:28]OFD Sender: No OFD packet to send [20:25:33]OFD Sender: No OFD packet to send [20:25:38]OFD Sender: No OFD packet to send [20:25:43]OFD Sender: No OFD packet to send [20:25:48]OFD Sender: No OFD packet to send [20:25:53]OFD Sender: No OFD packet to send [20:25:58]OFD Sender: No OFD packet to send [20:26:03]OFD Sender: No OFD packet to send [20:26:08]OFD Sender: No OFD packet to send [20:26:13]OFD Sender: No OFD packet to send [20:26:18]OFD Sender: No OFD packet to send [20:26:23]OFD Sender: No OFD packet to send [20:26:28]OFD Sender: No OFD packet to send [20:26:33]OFD Sender: No OFD packet to send [20:26:38]OFD Sender: No OFD packet to send [20:26:43]OFD Sender: No OFD packet to send [20:26:48]OFD Sender: No OFD packet to send [20:26:53]OFD Sender: No OFD packet to send [20:26:58]OFD Sender: No OFD packet to send [20:27:03]OFD Sender: No OFD packet to send [20:27:08]OFD Sender: No OFD packet to send [20:27:13]OFD Sender: No OFD packet to send [20:27:18]OFD Sender: No OFD packet to send [20:27:23]OFD Sender: No OFD packet to send [20:27:28]OFD Sender: No OFD packet to send [20:27:33]OFD Sender: No OFD packet to send [20:27:38]OFD Sender: No OFD packet to send [20:27:43]OFD Sender: No OFD packet to send [20:27:48]OFD Sender: No OFD packet to send [20:27:53]OFD Sender: No OFD packet to send [20:27:58]OFD Sender: No OFD packet to send [20:28:03]OFD Sender: No OFD packet to send [20:28:08]OFD Sender: No OFD packet to send [20:28:13]OFD Sender: No OFD packet to send [20:28:18]OFD Sender: No OFD packet to send [20:28:23]OFD Sender: No OFD packet to send [20:28:28]OFD Sender: No OFD packet to send [20:28:33]OFD Sender: No OFD packet to send [20:28:38]OFD Sender: No OFD packet to send [20:28:43]OFD Sender: No OFD packet to send [20:28:48]OFD Sender: No OFD packet to send [20:28:53]OFD Sender: No OFD packet to send [20:28:58]OFD Sender: No OFD packet to send [20:29:03]OFD Sender: No OFD packet to send [20:29:08]OFD Sender: No OFD packet to send [20:29:13]OFD Sender: No OFD packet to send [20:29:18]OFD Sender: No OFD packet to send [20:29:23]OFD Sender: No OFD packet to send [20:29:28]OFD Sender: No OFD packet to send [20:29:33]OFD Sender: No OFD packet to send [20:29:38]OFD Sender: No OFD packet to send [20:29:43]OFD Sender: No OFD packet to send [20:29:48]OFD Sender: No OFD packet to send [20:29:53]OFD Sender: No OFD packet to send [20:29:58]OFD Sender: No OFD packet to send [20:30:03]OFD Sender: No OFD packet to send [20:30:08]OFD Sender: No OFD packet to send [20:30:13]OFD Sender: No OFD packet to send [20:30:18]OFD Sender: No OFD packet to send [20:30:23]OFD Sender: No OFD packet to send [20:30:28]OFD Sender: No OFD packet to send [20:30:33]OFD Sender: No OFD packet to send [20:30:38]OFD Sender: No OFD packet to send [20:30:43]OFD Sender: No OFD packet to send [20:30:48]OFD Sender: No OFD packet to send [20:30:53]OFD Sender: No OFD packet to send [20:30:58]OFD Sender: No OFD packet to send [20:31:03]OFD Sender: No OFD packet to send [20:31:08]OFD Sender: No OFD packet to send [20:31:13]OFD Sender: No OFD packet to send [20:31:18]OFD Sender: No OFD packet to send [20:31:23]OFD Sender: No OFD packet to send [20:31:28]OFD Sender: No OFD packet to send [20:31:33]OFD Sender: No OFD packet to send [20:31:38]OFD Sender: No OFD packet to send [20:31:43]OFD Sender: No OFD packet to send [20:31:48]OFD Sender: No OFD packet to send [20:31:53]OFD Sender: No OFD packet to send [20:31:58]OFD Sender: No OFD packet to send [20:32:03]OFD Sender: No OFD packet to send [20:32:08]OFD Sender: No OFD packet to send [20:32:13]OFD Sender: No OFD packet to send [20:32:18]OFD Sender: No OFD packet to send [20:32:23]OFD Sender: No OFD packet to send [20:32:28]OFD Sender: No OFD packet to send [20:32:33]OFD Sender: No OFD packet to send [20:32:38]OFD Sender: No OFD packet to send [20:32:43]OFD Sender: No OFD packet to send [20:32:48]OFD Sender: No OFD packet to send [20:32:53]OFD Sender: No OFD packet to send [20:32:58]OFD Sender: No OFD packet to send [20:33:03]OFD Sender: No OFD packet to send [20:33:08]OFD Sender: No OFD packet to send [20:33:13]OFD Sender: No OFD packet to send [20:33:18]OFD Sender: No OFD packet to send [20:33:23]OFD Sender: No OFD packet to send [20:33:28]OFD Sender: No OFD packet to send [20:33:33]OFD Sender: No OFD packet to send [20:33:38]OFD Sender: No OFD packet to send [20:33:43]OFD Sender: No OFD packet to send [20:33:48]OFD Sender: No OFD packet to send [20:33:53]OFD Sender: No OFD packet to send [20:33:58]OFD Sender: No OFD packet to send [20:34:03]OFD Sender: No OFD packet to send [20:34:08]OFD Sender: No OFD packet to send [20:34:13]OFD Sender: No OFD packet to send [20:34:18]OFD Sender: No OFD packet to send [20:34:23]OFD Sender: No OFD packet to send [20:34:28]OFD Sender: No OFD packet to send [20:34:33]OFD Sender: No OFD packet to send [20:34:38]OFD Sender: No OFD packet to send [20:34:43]OFD Sender: No OFD packet to send [20:34:48]OFD Sender: No OFD packet to send [20:34:53]OFD Sender: No OFD packet to send [20:34:58]OFD Sender: No OFD packet to send [20:35:03]OFD Sender: No OFD packet to send [20:35:08]OFD Sender: No OFD packet to send [20:35:13]OFD Sender: No OFD packet to send [20:35:18]OFD Sender: No OFD packet to send [20:35:23]OFD Sender: No OFD packet to send [20:35:28]OFD Sender: No OFD packet to send [20:35:33]OFD Sender: No OFD packet to send [20:35:38]OFD Sender: No OFD packet to send [20:35:43]OFD Sender: No OFD packet to send [20:35:48]OFD Sender: No OFD packet to send [20:35:53]OFD Sender: No OFD packet to send [20:35:58]OFD Sender: No OFD packet to send [20:36:03]OFD Sender: No OFD packet to send [20:36:08]OFD Sender: No OFD packet to send [20:36:13]OFD Sender: No OFD packet to send [20:36:18]OFD Sender: No OFD packet to send [20:36:23]OFD Sender: No OFD packet to send [20:36:28]OFD Sender: No OFD packet to send [20:36:33]OFD Sender: No OFD packet to send [20:36:38]OFD Sender: No OFD packet to send [20:36:43]OFD Sender: No OFD packet to send [20:36:48]OFD Sender: No OFD packet to send [20:36:53]OFD Sender: No OFD packet to send [20:36:58]OFD Sender: No OFD packet to send [20:37:03]OFD Sender: No OFD packet to send [20:37:08]OFD Sender: No OFD packet to send [20:37:13]OFD Sender: No OFD packet to send [20:37:18]OFD Sender: No OFD packet to send [20:37:23]OFD Sender: No OFD packet to send [20:37:28]OFD Sender: No OFD packet to send [20:37:33]OFD Sender: No OFD packet to send [20:37:38]OFD Sender: No OFD packet to send [20:37:43]OFD Sender: No OFD packet to send [20:37:48]OFD Sender: No OFD packet to send [20:37:53]OFD Sender: No OFD packet to send [20:37:58]OFD Sender: No OFD packet to send [20:38:03]OFD Sender: No OFD packet to send [20:38:08]OFD Sender: No OFD packet to send [20:38:13]OFD Sender: No OFD packet to send [20:38:18]OFD Sender: No OFD packet to send [20:38:23]accept exits with 7 [20:38:23]New connection [20:38:23]New thread 3067084132 created [20:38:23]Thread 3067227492 joined [20:38:23]Waiting for new connection... [20:38:23] Sock 7.Parse request [20:38:23]Sock 7.Check first char [20:38:23]Sock 7.First char is OK [20:38:23]request: POST /json_proto HTTP/1.0 [20:38:23]Method: POST [20:38:23]URL: /json_proto [20:38:23]Method is POST - this is cgi request [20:38:23]url: /json_proto [20:38:23]query_string will be loaded in cgi processing [20:38:23]execute_cgi json_proto POST (null) [20:38:23]execute_cgi path=json_proto method=POST [20:38:23]POST find Content-Length [20:38:23]Host: 172.17.36.132:8080 [20:38:23]Content-Length: 682 [20:38:23]Content-Type: application/json [20:38:23] [20:38:23]POST finish read [20:38:23]Found Content-Length = 682 [20:38:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706582", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 7.550, "sum" : 550.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:38:23]execute_script... [20:38: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)706582", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 7.550, "sum" : 550.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 550.00, "payments": [ { "type": 0, "sum" : 550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:38:23]POST & json_proto [20:38:23]process_json_proto [20:38:23]json parsed OK: [20:38:23]protocol is kg_v1.0 [20:38:23]action value=close_receipt [20:38:23]process_action close_receipt [20:38:23]cmd_close_receipt [20:38:23]MH_GetDate [20:38:23]Write to MH i2c: F0 00 00 13 03 05 [20:38:23]Write i2c OK [20:38:23]MH_I2C_Read... [20:38:23]Read from MH i2c: F0 [20:38:23]MH_I2C_Read... [20:38:23]Read from MH i2c: F0 09 00 [20:38:23]MH_I2C_Read... [20:38:23]Read from MH i2c: F0 09 00 13 03 00 C0 29 5E 66 B2 22 B0 64 A3 [20:38:23]GetLastDocTimeStamp 1717445696 [20:38:23]current date 1717447104 [20:38:23]FM_GetShiftState [20:38:23]SAM_PROTO_GetShiftState [20:38:23]wFMCommunicate request_size=4 [20:38:23]MH_SAM_APDU [20:38:23]CAPDU: 80 13 01 00 [20:38:23]Write to MH i2c: E2 08 00 14 03 80 13 01 00 00 00 00 00 94 [20:38:23]Write i2c OK [20:38:23]MH_I2C_Read... [20:38:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:38:23]Read from MH i2c: E2 [20:38:23]MH_I2C_Read... [20:38:23]Read from MH i2c: E2 0E 00 [20:38:23]MH_I2C_Read... [20:38:23]Read from MH i2c: E2 0E 00 14 03 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 6F [20:38:23]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [20:38:23]wFMCommunicate OK [20:38:23]SAM_PROTO_GetShiftState done [20:38:23]FM_GetShiftState done [20:38:23]opened in 1717378033 [20:38:23]opened+sec_in_day 1717464433 [20:38:23]quantity*price = 55039 [20:38:23]sum+1 = 55041 [20:38:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 550.00 Внесено: 550.00 СДАЧА: 0.00 НСП 1% : 4.87 НДС 12% : 58.45 Наличными: 550.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 218 03.06.2024 20:38 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68472 ФПД: 105717269334981 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T203824&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68472&fm=105717269334981&tin=02508201610067®Number=0000000000098096&sum=55000 [20:38:24]StoreToDocumentArchive [20:38:24]shift 324 fd 68472 [20:38:24]save to /storage/0324/doc_00068472 [20:38:24]save last doc name /storage/0324/doc_00068472 to /storage/kkm_last_doc_name [20:38:24]save OK [20:38:24]Clear old archive folders... [20:38:24]ProcessDocumentItem done err = 0, tmpTLVsize=252 [20:38:24]tlvbuf is 00A40860 [20:38:24]SAM_PROTO_ClearQueue [20:38:24]wFMCommunicate request_size=4 [20:38:24]MH_SAM_APDU [20:38:24]CAPDU: 80 09 00 00 [20:38:24]Write to MH i2c: E2 08 00 21 03 80 09 00 00 00 00 00 00 96 [20:38:24]Write i2c OK [20:38:24]MH_I2C_Read... [20:38:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:38:24]Read from MH i2c: E2 [20:38:24]MH_I2C_Read... [20:38:24]Read from MH i2c: E2 03 00 [20:38:24]MH_I2C_Read... [20:38:24]Read from MH i2c: E2 03 00 21 03 00 90 00 98 [20:38:24]RAPDU: 90 00 [20:38:24]wFMCommunicate OK [20:38:24]SAM_PROTO_ClearQueue done [20:38:24]KKMCreateOFDPacket [20:38:24]OFDProtocolAddRootSTLVToBuf [20:38:24]FM_MakeSignedData [20:38:24]FM_MakeSignedData [20:38:24]SAM_PROTO_SignData [20:38:24]wFMCommunicate request_size=4 [20:38:24]MH_SAM_APDU [20:38:24]CAPDU: 80 0D 01 02 [20:38:24]Write to MH i2c: E2 08 00 22 03 80 0D 01 02 00 00 00 00 9E [20:38:24]Write i2c OK [20:38:24]MH_I2C_Read... [20:38:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:38:24]Read from MH i2c: E2 [20:38:24]MH_I2C_Read... [20:38:24]Read from MH i2c: E2 03 00 [20:38:24]MH_I2C_Read... [20:38:24]Read from MH i2c: E2 03 00 22 03 00 90 00 99 [20:38:24]RAPDU: 90 00 [20:38:24]wFMCommunicate OK [20:38:24]wFMCommunicate request_size=255 [20:38:24]MH_SAM_APDU [20:38:24]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 34 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 00 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 C0 29 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 78 0B 01 00 35 04 06 00 [20:38:24]Write to MH i2c: E2 02 01 23 03 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 34 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 00 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 C0 29 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 78 0B 01 00 35 04 06 00 00 00 68 [20:38:24]Write i2c OK [20:38:24]MH_I2C_Read... [20:38:25]Read from MH i2c: E2 [20:38:25]MH_I2C_Read... [20:38:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:38:25]Read from MH i2c: E2 03 00 [20:38:25]MH_I2C_Read... [20:38:25]Read from MH i2c: E2 03 00 23 03 00 90 00 9A [20:38:25]RAPDU: 90 00 [20:38:25]wFMCommunicate OK [20:38:25]wFMCommunicate request_size=11 [20:38:25]MH_SAM_APDU [20:38:25]CAPDU: 80 0D 02 02 06 60 26 38 49 0B C5 [20:38:25]Write to MH i2c: E2 0E 00 24 03 80 0D 02 02 06 00 60 26 38 49 0B C5 00 00 84 [20:38:25]Write i2c OK [20:38:25]MH_I2C_Read... [20:38:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:38:25]Read from MH i2c: E2 [20:38:25]MH_I2C_Read... [20:38:25]Read from MH i2c: E2 03 00 [20:38:25]MH_I2C_Read... [20:38:25]Read from MH i2c: E2 03 00 24 03 00 90 00 9B [20:38:25]RAPDU: 90 00 [20:38:25]wFMCommunicate OK [20:38:25]wFMCommunicate request_size=4 [20:38:25]MH_SAM_APDU [20:38:25]CAPDU: 80 0D 03 02 [20:38:25]Write to MH i2c: E2 08 00 25 03 80 0D 03 02 00 00 00 00 A3 [20:38:25]Write i2c OK [20:38:25]MH_I2C_Read... [20:38:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:38:25]Read from MH i2c: E2 [20:38:25]MH_I2C_Read... [20:38:25]Read from MH i2c: E2 0B 00 [20:38:25]MH_I2C_Read... [20:38:25]Read from MH i2c: E2 0B 00 25 03 00 3C 9F 2F D3 50 F1 F7 6A 90 00 23 [20:38:25]RAPDU: 3C 9F 2F D3 50 F1 F7 6A 90 00 [20:38:25]wFMCommunicate OK [20:38:25]SAM_PROTO_SignData done [20:38:25]FM_MakeSignedData done [20:38:25]CreateOFDProtocolMessage [20:38:25]wFMCommunicate request_size=4 [20:38:25]MH_SAM_APDU [20:38:25]CAPDU: 80 11 00 00 [20:38:25]Write to MH i2c: E2 08 00 26 03 80 11 00 00 00 00 00 00 A3 [20:38:25]Write i2c OK [20:38:25]MH_I2C_Read... [20:38:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:38:25]Read from MH i2c: E2 [20:38:25]MH_I2C_Read... [20:38:25]Read from MH i2c: E2 17 00 [20:38:25]MH_I2C_Read... [20:38:25]Read from MH i2c: E2 17 00 26 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 EE [20:38:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [20:38:25]wFMCommunicate OK [20:38:25]CreateOFDProtocolMessage done [20:38:25]OFDSenderStorePacket 68472 [20:38:25]StoreOFDPacket docnum=68472 [20:38:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 75 4F 08 01 C1 24 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 34 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 00 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 C0 29 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 78 0B 01 00 35 04 06 00 60 26 38 49 0B C5 3C 9F 2F D3 50 F1 F7 6A [20:38:25]CheckFolder [20:38:25]dirname=/storage/ofd_packets [20:38:25]CheckFolder done [20:38:25]ProducePacketName [20:38:25]name=ofd_packets/00068472 [20:38:25]NVStorageSaveData ofd_packets/00068472 [20:38:25]File name is /storage/ofd_packets/00068472 [20:38:25]Write 302 bytes [20:38:25]NVStorageSaveData done [20:38:25]OFDSenderStorePacket done [20:38:25]KKMCreateOFDPacket done [20:38:25]NVStorageSaveData kkm_last_timestamp [20:38:25]File name is /storage/kkm_last_timestamp [20:38:25]Write 4 bytes [20:38:25]NVStorageSaveData done [20:38:25]ExternCall_PrintAddStr [20:38:25]wPrintStart [20:38:25]Write to MH i2c: 01 00 00 27 03 2A [20:38:25]Write i2c OK [20:38:25]MH_I2C_Read... [20:38:25]Read from MH i2c: 01 [20:38:25]MH_I2C_Read... [20:38:25]Read from MH i2c: 01 07 00 [20:38:25]MH_I2C_Read... [20:38:25]Read from MH i2c: 01 07 00 27 03 00 00 00 00 00 FF 0F 3F [20:38:25]RasterBufferAndPrint [20:38:25]line Счет N : (1)706582 [20:38:25]line ИНН: 02508201610067 [20:38:25]line Контрольно-Кассовый Чек [20:38:25]line ПРОДАЖА [20:38:25]line ТРК (МРК, ГНК) : 21 [20:38:25]line Товар: 2710194210 [20:38:25]line ДТ(л)-К-4 [20:38:25]line 7.550 * 72.90 [20:38:25]line = 550.40 [20:38:25]line НДС 12% НСП 1% [20:38:25]line > о реализуемом товаре [20:38:25]line ОКРУГЛЕНИЕ: -0.40 [20:38:25]line ИТОГО: 550.00 [20:38:25]line Внесено: 550.00 [20:38:25]line СДАЧА: 0.00 [20:38:25]line НСП 1% : 4.87 [20:38:25]line НДС 12% : 58.45 [20:38:25]line Наличными: 550.00 [20:38:25]line Безнал.: 0.00 [20:38:25]line Место: АЗС № 62 "Партнер Нефть" [20:38:25]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [20:38:25]line СНО: Общий режим [20:38:25]line Чек 218 03.06.2024 20:38 [20:38:25]line Смена: 324 ФФД: 1.0 [20:38:25]line ЗНМ: 0300000181 [20:38:25]line РНМ: 0000000000098096 [20:38:25]line Версия ККМ: 001 [20:38:25]line ФМ: 0000000000965400 [20:38:25]line ФД: 68472 [20:38:25]line ФПД: 105717269334981 [20:38:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T203824&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68472&fm=105717269334981&tin=02508201610067®Number=0000000000098096&sum=55000 [20:38:25]OFD Sender: Processing packet 68472 [packets to send 26, broken 25] [20:38:25]ProducePacketName [20:38:25]name=ofd_packets/00068472 [20:38:25]OFD Sender: To server: pG, [20:38:25]CommunicateWithHost lk.salyk.kg:30040 [20:38:25]ConnectInit lk.salyk.kg [20:38:25]written 0, free lines is 4095 [20:38:26]Write to MH i2c: 01 00 00 52 03 55 [20:38:26]Write i2c OK [20:38:26]MH_I2C_Read... [20:38:26]Read from MH i2c: 01 [20:38:26]MH_I2C_Read... [20:38:26]Read from MH i2c: 01 07 00 [20:38:26]MH_I2C_Read... [20:38:26]Read from MH i2c: 01 07 00 52 03 00 00 00 00 00 CB 0C 33 [20:38:26]RasterBufferAndPrint [20:38:26]line [20:38:26]line [20:38:26]line [20:38:26]line [20:38:26]line [20:38:26]written 0, free lines is 3279 [20:38:26]MH_Cut [20:38:26]Write to MH i2c: D1 01 00 59 03 01 2E [20:38:26]Write i2c OK [20:38:26]MH_I2C_Read... [20:38:26]Read from MH i2c: D1 [20:38:26]MH_I2C_Read... [20:38:26]Read from MH i2c: D1 01 00 [20:38:26]MH_I2C_Read... [20:38:26]Read from MH i2c: D1 01 00 59 03 00 2D [20:38:26]Write to MH i2c: 01 00 00 5A 03 5D [20:38:26]Write i2c OK [20:38:26]MH_I2C_Read... [20:38:26]*** Cut start [20:38:26]*** Partial cut [20:38:26]*** CUTSNS_PIN = 1 [20:38:26]*** CUTSNS_PIN = 0 [20:38:27]*** Brake cut motor [20:38:27]Read from MH i2c: 01 [20:38:27]MH_I2C_Read... [20:38:27]*** Stop cut motor [20:38:27]*** Cut end [20:38:27]Read from MH i2c: 01 07 00 [20:38:27]MH_I2C_Read... [20:38:27]Read from MH i2c: 01 07 00 5A 03 00 00 00 00 00 FF 0F 72 [20:38:27]process_action close_receipt done [20:38:27]requested_data is exist [20:38:27]produce_requested_data [20:38:27]requested_item fm.sn is exist - process it [20:38:27]wFMCommunicate request_size=4 [20:38:27]MH_SAM_APDU [20:38:27]CAPDU: 80 11 00 00 [20:38:27]Write to MH i2c: E2 08 00 5B 03 80 11 00 00 00 00 00 00 D8 [20:38:27]Write i2c OK [20:38:27]MH_I2C_Read... [20:38:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:38:27]Read from MH i2c: E2 [20:38:27]MH_I2C_Read... [20:38:27]Read from MH i2c: E2 17 00 [20:38:27]MH_I2C_Read... [20:38:27]Read from MH i2c: E2 17 00 5B 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 23 [20:38:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [20:38:27]wFMCommunicate OK [20:38:27]requested_item fd.num is exist - process it [20:38:27]SAM_PROTO_GetFieldsCounters [20:38:27]wFMCommunicate request_size=4 [20:38:27]MH_SAM_APDU [20:38:27]CAPDU: 80 13 00 00 [20:38:27]Write to MH i2c: E2 08 00 5C 03 80 13 00 00 00 00 00 00 DB [20:38:27]Write i2c OK [20:38:27]MH_I2C_Read... [20:38:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:38:27]Read from MH i2c: E2 [20:38:27]MH_I2C_Read... [20:38:27]Read from MH i2c: E2 62 00 [20:38:27]MH_I2C_Read... [20:38:27]Read from MH i2c: E2 62 00 5C 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 78 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 52 [20:38:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 78 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:38:27]wFMCommunicate OK [20:38:27]SAM_PROTO_GetFieldsCounters done [20:38:27]requested_item shift.num is exist - process it [20:38:27]requested_item shift.opened is exist - process it [20:38:27]req_shift_opened [20:38:27]FM_GetShiftState [20:38:27]SAM_PROTO_GetShiftState [20:38:27]wFMCommunicate request_size=4 [20:38:27]MH_SAM_APDU [20:38:27]CAPDU: 80 13 01 00 [20:38:27]Write to MH i2c: E2 08 00 5D 03 80 13 01 00 00 00 00 00 DD [20:38:27]Write i2c OK [20:38:27]MH_I2C_Read... [20:38:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:38:27]Read from MH i2c: E2 [20:38:27]MH_I2C_Read... [20:38:27]Read from MH i2c: E2 0E 00 [20:38:27]MH_I2C_Read... [20:38:27]Read from MH i2c: E2 0E 00 5D 03 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 B8 [20:38:27]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [20:38:27]wFMCommunicate OK [20:38:27]SAM_PROTO_GetShiftState done [20:38:27]FM_GetShiftState done [20:38:27]req_shift_opened done [20:38:27]requested_item shift.open_date is exist - process it [20:38:27]req_shift_open_date [20:38:27]req_shift_open_date done [20:38:27]produce_requested_data done [20:38:27]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68472,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [20:38:27]process_action_free close_receipt [20:38:27]json_value_free [20:38:27]json_value_free done [20:38:27]process_json_proto returns [20:38:27]Send response to host [20:38:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68472,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [20:38:27]free response buf [20:38:27]execute_script done [20:38:27]execute_script returns [20:38:27]free content buf [20:38:27]Sock 7.Close socket [20:38:27]Sock 7.Thread stoped [20:40:39]ConnectInit Can't connect to host [20:40:39]CommunicateWithHost connect error [20:40:39]CommunicateWithHost err = -1 [20:40:39]OFD Sender: Server communicate error [20:40:44]OFD Sender: Processing packet 68472 [packets to send 26, broken 25] [20:40:44]ProducePacketName [20:40:44]name=ofd_packets/00068472 [20:40:44]OFD Sender: To server: pG, [20:40:44]CommunicateWithHost lk.salyk.kg:30040 [20:40:44]ConnectInit lk.salyk.kg [20:40:44]Connected sock=7 [20:40:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 75 4F 08 01 C1 24 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 34 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 00 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 D6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 16 00 00 00 00 07 04 06 00 D8 D6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 C0 29 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 78 0B 01 00 35 04 06 00 60 26 38 49 0B C5 3C 9F 2F D3 50 F1 F7 6A [20:40:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 50 79 47 00 F2 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 78 0B 01 00 F4 03 04 00 46 D1 5D 66 B6 04 01 00 00 50 57 DC FB 3D CC 01 59 [20:40:45]CommunicateWithHost err = 0 [20:40:45]CheckOFDResponse [20:40:45]1017 (14) - 77093643461234 [20:40:45]1041 (16) - 0000000000965400 [20:40:45]1040 (4) - 68472 [20:40:45]1012 (4) - 03.06.2024 14:20 [20:40:45]1206 (1) - 0 [20:40:45]OFD Sender: Remove packet 68472 [20:40:45]ProducePacketName [20:40:45]name=ofd_packets/00068472 [20:40:45]NVStorageDeleteData [20:40:45]OFD Sender: No OFD packet to send [20:40:50]OFD Sender: No OFD packet to send [20:40:55]OFD Sender: No OFD packet to send [20:41:00]OFD Sender: No OFD packet to send [20:41:05]OFD Sender: No OFD packet to send [20:41:10]OFD Sender: No OFD packet to send [20:41:15]OFD Sender: No OFD packet to send [20:41:20]OFD Sender: No OFD packet to send [20:41:25]OFD Sender: No OFD packet to send [20:41:30]OFD Sender: No OFD packet to send [20:41:35]OFD Sender: No OFD packet to send [20:41:40]OFD Sender: No OFD packet to send [20:41:45]OFD Sender: No OFD packet to send [20:41:50]OFD Sender: No OFD packet to send [20:41:55]OFD Sender: No OFD packet to send [20:42:00]OFD Sender: No OFD packet to send [20:42:05]OFD Sender: No OFD packet to send [20:42:10]OFD Sender: No OFD packet to send [20:42:15]OFD Sender: No OFD packet to send [20:42:20]OFD Sender: No OFD packet to send [20:42:25]OFD Sender: No OFD packet to send [20:42:30]OFD Sender: No OFD packet to send [20:42:35]OFD Sender: No OFD packet to send [20:42:40]OFD Sender: No OFD packet to send [20:42:45]OFD Sender: No OFD packet to send [20:42:50]OFD Sender: No OFD packet to send [20:42:55]OFD Sender: No OFD packet to send [20:43:00]OFD Sender: No OFD packet to send [20:43:05]OFD Sender: No OFD packet to send [20:43:10]OFD Sender: No OFD packet to send [20:43:15]OFD Sender: No OFD packet to send [20:43:20]OFD Sender: No OFD packet to send [20:43:25]OFD Sender: No OFD packet to send [20:43:30]OFD Sender: No OFD packet to send [20:43:35]OFD Sender: No OFD packet to send [20:43:40]OFD Sender: No OFD packet to send [20:43:45]OFD Sender: No OFD packet to send [20:43:50]OFD Sender: No OFD packet to send [20:43:55]OFD Sender: No OFD packet to send [20:44:00]OFD Sender: No OFD packet to send [20:44:05]OFD Sender: No OFD packet to send [20:44:10]OFD Sender: No OFD packet to send [20:44:15]OFD Sender: No OFD packet to send [20:44:20]OFD Sender: No OFD packet to send [20:44:25]OFD Sender: No OFD packet to send [20:44:30]OFD Sender: No OFD packet to send [20:44:35]OFD Sender: No OFD packet to send [20:44:40]OFD Sender: No OFD packet to send [20:44:45]OFD Sender: No OFD packet to send [20:44:50]OFD Sender: No OFD packet to send [20:44:55]OFD Sender: No OFD packet to send [20:45:00]OFD Sender: No OFD packet to send [20:45:05]OFD Sender: No OFD packet to send [20:45:10]OFD Sender: No OFD packet to send [20:45:15]OFD Sender: No OFD packet to send [20:45:20]OFD Sender: No OFD packet to send [20:45:25]OFD Sender: No OFD packet to send [20:45:30]OFD Sender: No OFD packet to send [20:45:35]OFD Sender: No OFD packet to send [20:45:40]OFD Sender: No OFD packet to send [20:45:45]OFD Sender: No OFD packet to send [20:45:50]OFD Sender: No OFD packet to send [20:45:55]OFD Sender: No OFD packet to send [20:46:00]OFD Sender: No OFD packet to send [20:46:05]OFD Sender: No OFD packet to send [20:46:10]OFD Sender: No OFD packet to send [20:46:15]OFD Sender: No OFD packet to send [20:46:20]OFD Sender: No OFD packet to send [20:46:25]OFD Sender: No OFD packet to send [20:46:30]OFD Sender: No OFD packet to send [20:46:35]OFD Sender: No OFD packet to send [20:46:40]OFD Sender: No OFD packet to send [20:46:45]OFD Sender: No OFD packet to send [20:46:50]OFD Sender: No OFD packet to send [20:46:55]OFD Sender: No OFD packet to send [20:47:00]OFD Sender: No OFD packet to send [20:47:05]OFD Sender: No OFD packet to send [20:47:11]OFD Sender: No OFD packet to send [20:47:16]OFD Sender: No OFD packet to send [20:47:21]OFD Sender: No OFD packet to send [20:47:26]OFD Sender: No OFD packet to send [20:47:31]OFD Sender: No OFD packet to send [20:47:36]OFD Sender: No OFD packet to send [20:47:41]OFD Sender: No OFD packet to send [20:47:46]OFD Sender: No OFD packet to send [20:47:51]OFD Sender: No OFD packet to send [20:47:56]OFD Sender: No OFD packet to send [20:48:01]OFD Sender: No OFD packet to send [20:48:06]OFD Sender: No OFD packet to send [20:48:11]OFD Sender: No OFD packet to send [20:48:16]OFD Sender: No OFD packet to send [20:48:21]OFD Sender: No OFD packet to send [20:48:26]OFD Sender: No OFD packet to send [20:48:31]OFD Sender: No OFD packet to send [20:48:36]OFD Sender: No OFD packet to send [20:48:41]OFD Sender: No OFD packet to send [20:48:46]OFD Sender: No OFD packet to send [20:48:51]OFD Sender: No OFD packet to send [20:48:56]OFD Sender: No OFD packet to send [20:49:01]OFD Sender: No OFD packet to send [20:49:06]OFD Sender: No OFD packet to send [20:49:11]OFD Sender: No OFD packet to send [20:49:16]OFD Sender: No OFD packet to send [20:49:21]OFD Sender: No OFD packet to send [20:49:26]OFD Sender: No OFD packet to send [20:49:31]OFD Sender: No OFD packet to send [20:49:36]OFD Sender: No OFD packet to send [20:49:41]OFD Sender: No OFD packet to send [20:49:46]OFD Sender: No OFD packet to send [20:49:51]OFD Sender: No OFD packet to send [20:49:56]OFD Sender: No OFD packet to send [20:50:01]OFD Sender: No OFD packet to send [20:50:06]OFD Sender: No OFD packet to send [20:50:11]OFD Sender: No OFD packet to send [20:50:16]OFD Sender: No OFD packet to send [20:50:21]OFD Sender: No OFD packet to send [20:50:26]OFD Sender: No OFD packet to send [20:50:31]OFD Sender: No OFD packet to send [20:50:36]OFD Sender: No OFD packet to send [20:50:41]OFD Sender: No OFD packet to send [20:50:46]OFD Sender: No OFD packet to send [20:50:51]OFD Sender: No OFD packet to send [20:50:56]OFD Sender: No OFD packet to send [20:51:01]OFD Sender: No OFD packet to send [20:51:06]OFD Sender: No OFD packet to send [20:51:11]OFD Sender: No OFD packet to send [20:51:16]OFD Sender: No OFD packet to send [20:51:21]OFD Sender: No OFD packet to send [20:51:26]OFD Sender: No OFD packet to send [20:51:31]OFD Sender: No OFD packet to send [20:51:36]OFD Sender: No OFD packet to send [20:51:41]OFD Sender: No OFD packet to send [20:51:46]OFD Sender: No OFD packet to send [20:51:51]OFD Sender: No OFD packet to send [20:51:56]OFD Sender: No OFD packet to send [20:52:01]OFD Sender: No OFD packet to send [20:52:06]OFD Sender: No OFD packet to send [20:52:11]OFD Sender: No OFD packet to send [20:52:16]OFD Sender: No OFD packet to send [20:52:21]OFD Sender: No OFD packet to send [20:52:26]OFD Sender: No OFD packet to send [20:52:31]OFD Sender: No OFD packet to send [20:52:36]OFD Sender: No OFD packet to send [20:52:41]OFD Sender: No OFD packet to send [20:52:46]OFD Sender: No OFD packet to send [20:52:51]OFD Sender: No OFD packet to send [20:52:56]OFD Sender: No OFD packet to send [20:53:01]OFD Sender: No OFD packet to send [20:53:06]OFD Sender: No OFD packet to send [20:53:11]OFD Sender: No OFD packet to send [20:53:16]OFD Sender: No OFD packet to send [20:53:21]OFD Sender: No OFD packet to send [20:53:26]OFD Sender: No OFD packet to send [20:53:31]OFD Sender: No OFD packet to send [20:53:36]OFD Sender: No OFD packet to send [20:53:41]OFD Sender: No OFD packet to send [20:53:46]OFD Sender: No OFD packet to send [20:53:51]OFD Sender: No OFD packet to send [20:53:56]OFD Sender: No OFD packet to send [20:54:01]OFD Sender: No OFD packet to send [20:54:06]OFD Sender: No OFD packet to send [20:54:11]OFD Sender: No OFD packet to send [20:54:16]OFD Sender: No OFD packet to send [20:54:21]OFD Sender: No OFD packet to send [20:54:26]OFD Sender: No OFD packet to send [20:54:31]OFD Sender: No OFD packet to send [20:54:36]OFD Sender: No OFD packet to send [20:54:41]OFD Sender: No OFD packet to send [20:54:46]OFD Sender: No OFD packet to send [20:54:51]OFD Sender: No OFD packet to send [20:54:56]OFD Sender: No OFD packet to send [20:55:01]OFD Sender: No OFD packet to send [20:55:06]OFD Sender: No OFD packet to send [20:55:11]OFD Sender: No OFD packet to send [20:55:16]OFD Sender: No OFD packet to send [20:55:21]OFD Sender: No OFD packet to send [20:55:26]OFD Sender: No OFD packet to send [20:55:31]OFD Sender: No OFD packet to send [20:55:36]OFD Sender: No OFD packet to send [20:55:41]OFD Sender: No OFD packet to send [20:55:46]OFD Sender: No OFD packet to send [20:55:51]OFD Sender: No OFD packet to send [20:55:56]OFD Sender: No OFD packet to send [20:56:01]OFD Sender: No OFD packet to send [20:56:06]OFD Sender: No OFD packet to send [20:56:11]OFD Sender: No OFD packet to send [20:56:16]OFD Sender: No OFD packet to send [20:56:21]OFD Sender: No OFD packet to send [20:56:26]OFD Sender: No OFD packet to send [20:56:31]OFD Sender: No OFD packet to send [20:56:36]OFD Sender: No OFD packet to send [20:56:41]OFD Sender: No OFD packet to send [20:56:46]OFD Sender: No OFD packet to send [20:56:51]OFD Sender: No OFD packet to send [20:56:56]OFD Sender: No OFD packet to send [20:57:01]OFD Sender: No OFD packet to send [20:57:06]OFD Sender: No OFD packet to send [20:57:11]OFD Sender: No OFD packet to send [20:57:16]OFD Sender: No OFD packet to send [20:57:21]OFD Sender: No OFD packet to send [20:57:26]OFD Sender: No OFD packet to send [20:57:31]OFD Sender: No OFD packet to send [20:57:36]OFD Sender: No OFD packet to send [20:57:41]OFD Sender: No OFD packet to send [20:57:46]OFD Sender: No OFD packet to send [20:57:51]OFD Sender: No OFD packet to send [20:57:56]OFD Sender: No OFD packet to send [20:58:01]OFD Sender: No OFD packet to send [20:58:06]OFD Sender: No OFD packet to send [20:58:11]accept exits with 9 [20:58:11]New connection [20:58:11]New thread 3067227492 created [20:58:11]Thread 3067084132 joined [20:58:11]Waiting for new connection... [20:58:11] Sock 9.Parse request [20:58:11]Sock 9.Check first char [20:58:11]Sock 9.First char is OK [20:58:11]request: POST /json_proto HTTP/1.0 [20:58:11]Method: POST [20:58:11]URL: /json_proto [20:58:11]Method is POST - this is cgi request [20:58:11]url: /json_proto [20:58:11]query_string will be loaded in cgi processing [20:58:11]execute_cgi json_proto POST (null) [20:58:11]execute_cgi path=json_proto method=POST [20:58:11]POST find Content-Length [20:58:11]Host: 172.17.36.132:8080 [20:58:11]Content-Length: 677 [20:58:11]Content-Type: application/json [20:58:11] [20:58:11]POST finish read [20:58:11]Found Content-Length = 677 [20:58:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706583", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:58:11]execute_script... [20:58:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706583", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:58:11]POST & json_proto [20:58:11]process_json_proto [20:58:11]json parsed OK: [20:58:11]protocol is kg_v1.0 [20:58:11]action value=close_receipt [20:58:11]process_action close_receipt [20:58:11]cmd_close_receipt [20:58:11]MH_GetDate [20:58:11]Write to MH i2c: F0 00 00 5E 03 50 [20:58:11]Write i2c OK [20:58:11]MH_I2C_Read... [20:58:11]Read from MH i2c: F0 [20:58:11]MH_I2C_Read... [20:58:11]Read from MH i2c: F0 09 00 [20:58:11]MH_I2C_Read... [20:58:11]Read from MH i2c: F0 09 00 5E 03 00 64 2E 5E 66 B2 22 B0 64 97 [20:58:11]GetLastDocTimeStamp 1717447104 [20:58:11]current date 1717448292 [20:58:11]FM_GetShiftState [20:58:11]SAM_PROTO_GetShiftState [20:58:11]wFMCommunicate request_size=4 [20:58:11]MH_SAM_APDU [20:58:11]CAPDU: 80 13 01 00 [20:58:11]Write to MH i2c: E2 08 00 5F 03 80 13 01 00 00 00 00 00 DF [20:58:11]Write i2c OK [20:58:11]MH_I2C_Read... [20:58:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:58:11]Read from MH i2c: E2 [20:58:11]MH_I2C_Read... [20:58:11]Read from MH i2c: E2 0E 00 [20:58:11]MH_I2C_Read... [20:58:11]Read from MH i2c: E2 0E 00 5F 03 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 BA [20:58:11]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [20:58:11]wFMCommunicate OK [20:58:11]SAM_PROTO_GetShiftState done [20:58:11]FM_GetShiftState done [20:58:11]opened in 1717378033 [20:58:11]opened+sec_in_day 1717464433 [20:58:11]quantity*price = 30038 [20:58:11]sum+1 = 30039 [20:58:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 219 03.06.2024 20:58 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68473 ФПД: 270666581887731 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T205812&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68473&fm=270666581887731&tin=02508201610067®Number=0000000000098096&sum=30000 [20:58:12]StoreToDocumentArchive [20:58:12]shift 324 fd 68473 [20:58:12]save to /storage/0324/doc_00068473 [20:58:12]save last doc name /storage/0324/doc_00068473 to /storage/kkm_last_doc_name [20:58:12]save OK [20:58:12]Clear old archive folders... [20:58:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:58:12]tlvbuf is 00A448D0 [20:58:12]SAM_PROTO_ClearQueue [20:58:12]wFMCommunicate request_size=4 [20:58:12]MH_SAM_APDU [20:58:12]CAPDU: 80 09 00 00 [20:58:12]Write to MH i2c: E2 08 00 6C 03 80 09 00 00 00 00 00 00 E1 [20:58:12]Write i2c OK [20:58:12]MH_I2C_Read... [20:58:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:58:12]Read from MH i2c: E2 [20:58:12]MH_I2C_Read... [20:58:12]Read from MH i2c: E2 03 00 [20:58:12]MH_I2C_Read... [20:58:12]Read from MH i2c: E2 03 00 6C 03 00 90 00 E3 [20:58:12]RAPDU: 90 00 [20:58:12]wFMCommunicate OK [20:58:12]SAM_PROTO_ClearQueue done [20:58:12]KKMCreateOFDPacket [20:58:12]OFDProtocolAddRootSTLVToBuf [20:58:12]FM_MakeSignedData [20:58:12]FM_MakeSignedData [20:58:12]SAM_PROTO_SignData [20:58:12]wFMCommunicate request_size=4 [20:58:12]MH_SAM_APDU [20:58:12]CAPDU: 80 0D 01 02 [20:58:12]Write to MH i2c: E2 08 00 6D 03 80 0D 01 02 00 00 00 00 E9 [20:58:12]Write i2c OK [20:58:12]MH_I2C_Read... [20:58:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:58:12]Read from MH i2c: E2 [20:58:12]MH_I2C_Read... [20:58:12]Read from MH i2c: E2 03 00 [20:58:12]MH_I2C_Read... [20:58:12]Read from MH i2c: E2 03 00 6D 03 00 90 00 E4 [20:58:12]RAPDU: 90 00 [20:58:12]wFMCommunicate OK [20:58:12]wFMCommunicate request_size=255 [20:58:12]MH_SAM_APDU [20:58:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 64 2E 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 79 0B 01 00 35 04 06 00 F6 [20:58:12]Write to MH i2c: E2 02 01 6E 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 64 2E 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 79 0B 01 00 35 04 06 00 F6 00 00 5B [20:58:12]Write i2c OK [20:58:12]MH_I2C_Read... [20:58:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:58:13]Read from MH i2c: E2 [20:58:13]MH_I2C_Read... [20:58:13]Read from MH i2c: E2 03 00 [20:58:13]MH_I2C_Read... [20:58:13]Read from MH i2c: E2 03 00 6E 03 00 90 00 E5 [20:58:13]RAPDU: 90 00 [20:58:13]wFMCommunicate OK [20:58:13]wFMCommunicate request_size=10 [20:58:13]MH_SAM_APDU [20:58:13]CAPDU: 80 0D 02 02 05 2B 79 77 4A F3 [20:58:13]Write to MH i2c: E2 0D 00 6F 03 80 0D 02 02 05 00 2B 79 77 4A F3 00 00 4E [20:58:13]Write i2c OK [20:58:13]MH_I2C_Read... [20:58:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:58:13]Read from MH i2c: E2 [20:58:13]MH_I2C_Read... [20:58:13]Read from MH i2c: E2 03 00 [20:58:13]MH_I2C_Read... [20:58:13]Read from MH i2c: E2 03 00 6F 03 00 90 00 E6 [20:58:13]RAPDU: 90 00 [20:58:13]wFMCommunicate OK [20:58:13]wFMCommunicate request_size=4 [20:58:13]MH_SAM_APDU [20:58:13]CAPDU: 80 0D 03 02 [20:58:13]Write to MH i2c: E2 08 00 70 03 80 0D 03 02 00 00 00 00 EE [20:58:13]Write i2c OK [20:58:13]MH_I2C_Read... [20:58:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:58:13]Read from MH i2c: E2 [20:58:13]MH_I2C_Read... [20:58:13]Read from MH i2c: E2 0B 00 [20:58:13]MH_I2C_Read... [20:58:13]Read from MH i2c: E2 0B 00 70 03 00 07 BD F1 46 57 21 19 F9 90 00 74 [20:58:13]RAPDU: 07 BD F1 46 57 21 19 F9 90 00 [20:58:13]wFMCommunicate OK [20:58:13]SAM_PROTO_SignData done [20:58:13]FM_MakeSignedData done [20:58:13]CreateOFDProtocolMessage [20:58:13]wFMCommunicate request_size=4 [20:58:13]MH_SAM_APDU [20:58:13]CAPDU: 80 11 00 00 [20:58:13]Write to MH i2c: E2 08 00 71 03 80 11 00 00 00 00 00 00 EE [20:58:13]Write i2c OK [20:58:13]MH_I2C_Read... [20:58:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:58:13]Read from MH i2c: E2 [20:58:13]MH_I2C_Read... [20:58:13]Read from MH i2c: E2 17 00 [20:58:13]MH_I2C_Read... [20:58:13]Read from MH i2c: E2 17 00 71 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 39 [20:58:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [20:58:13]wFMCommunicate OK [20:58:13]CreateOFDProtocolMessage done [20:58:13]OFDSenderStorePacket 68473 [20:58:13]StoreOFDPacket docnum=68473 [20:58:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 EF 82 07 01 72 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 64 2E 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 79 0B 01 00 35 04 06 00 F6 2B 79 77 4A F3 07 BD F1 46 57 21 19 F9 [20:58:13]CheckFolder [20:58:13]dirname=/storage/ofd_packets [20:58:13]CheckFolder done [20:58:13]ProducePacketName [20:58:13]name=ofd_packets/00068473 [20:58:13]NVStorageSaveData ofd_packets/00068473 [20:58:13]File name is /storage/ofd_packets/00068473 [20:58:13]Write 301 bytes [20:58:13]NVStorageSaveData done [20:58:13]OFDSenderStorePacket done [20:58:13]KKMCreateOFDPacket done [20:58:13]NVStorageSaveData kkm_last_timestamp [20:58:13]File name is /storage/kkm_last_timestamp [20:58:13]Write 4 bytes [20:58:13]NVStorageSaveData done [20:58:13]ExternCall_PrintAddStr [20:58:13]wPrintStart [20:58:13]Write to MH i2c: 01 00 00 72 03 75 [20:58:13]Write i2c OK [20:58:13]MH_I2C_Read... [20:58:13]Read from MH i2c: 01 [20:58:13]MH_I2C_Read... [20:58:13]Read from MH i2c: 01 07 00 [20:58:13]MH_I2C_Read... [20:58:13]Read from MH i2c: 01 07 00 72 03 00 00 00 00 00 FF 0F 8A [20:58:13]RasterBufferAndPrint [20:58:13]line Счет N : (1)706583 [20:58:13]line ИНН: 02508201610067 [20:58:13]line Контрольно-Кассовый Чек [20:58:13]line ПРОДАЖА [20:58:13]line ТРК (МРК, ГНК) : 63 [20:58:13]line Товар: 2710124130 [20:58:13]line Аи-92-К-4 [20:58:13]line 4.490 * 66.90 [20:58:13]line = 300.38 [20:58:13]line НДС 12% НСП 1% [20:58:13]line > о реализуемом товаре [20:58:13]line ОКРУГЛЕНИЕ: -0.38 [20:58:13]line ИТОГО: 300.00 [20:58:13]line Внесено: 300.00 [20:58:13]line СДАЧА: 0.00 [20:58:13]line НСП 1% : 2.66 [20:58:13]line НДС 12% : 31.90 [20:58:13]line Наличными: 300.00 [20:58:13]line Безнал.: 0.00 [20:58:13]line Место: АЗС № 62 "Партнер Нефть" [20:58:13]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [20:58:13]line СНО: Общий режим [20:58:13]line Чек 219 03.06.2024 20:58 [20:58:13]line Смена: 324 ФФД: 1.0 [20:58:13]line ЗНМ: 0300000181 [20:58:13]line РНМ: 0000000000098096 [20:58:13]line Версия ККМ: 001 [20:58:13]line ФМ: 0000000000965400 [20:58:13]line ФД: 68473 [20:58:13]line ФПД: 270666581887731 [20:58:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T205812&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68473&fm=270666581887731&tin=02508201610067®Number=0000000000098096&sum=30000 [20:58:13]OFD Sender: Processing packet 68473 [packets to send 26, broken 25] [20:58:13]ProducePacketName [20:58:13]name=ofd_packets/00068473 [20:58:13]OFD Sender: To server: pG, [20:58:13]CommunicateWithHost lk.salyk.kg:30040 [20:58:13]ConnectInit lk.salyk.kg [20:58:13]written 0, free lines is 4095 [20:58:13]Connected sock=10 [20:58:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 EF 82 07 01 72 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 64 2E 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 79 0B 01 00 35 04 06 00 F6 2B 79 77 4A F3 07 BD F1 46 57 21 19 F9 [20:58:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 45 66 47 00 64 07 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 79 0B 01 00 F4 03 04 00 5E D5 5D 66 B6 04 01 00 00 19 A6 38 F9 3A 4A A0 78 [20:58:13]CommunicateWithHost err = 0 [20:58:13]CheckOFDResponse [20:58:13]1017 (14) - 77093643461234 [20:58:13]1041 (16) - 0000000000965400 [20:58:13]1040 (4) - 68473 [20:58:13]1012 (4) - 03.06.2024 14:38 [20:58:13]1206 (1) - 0 [20:58:13]OFD Sender: Remove packet 68473 [20:58:13]ProducePacketName [20:58:13]name=ofd_packets/00068473 [20:58:13]NVStorageDeleteData [20:58:13]Write to MH i2c: 01 00 00 9D 03 A0 [20:58:13]Write i2c OK [20:58:13]MH_I2C_Read... [20:58:13]Read from MH i2c: 01 [20:58:13]MH_I2C_Read... [20:58:13]Read from MH i2c: 01 07 00 [20:58:13]MH_I2C_Read... [20:58:13]Read from MH i2c: 01 07 00 9D 03 00 00 00 00 00 E1 0C 94 [20:58:13]RasterBufferAndPrint [20:58:13]line [20:58:13]line [20:58:13]line [20:58:13]line [20:58:13]line [20:58:13]written 0, free lines is 3303 [20:58:13]MH_Cut [20:58:13]Write to MH i2c: D1 01 00 A4 03 01 79 [20:58:13]Write i2c OK [20:58:13]MH_I2C_Read... [20:58:13]Read from MH i2c: D1 [20:58:13]MH_I2C_Read... [20:58:13]Read from MH i2c: D1 01 00 [20:58:13]MH_I2C_Read... [20:58:13]Read from MH i2c: D1 01 00 A4 03 00 78 [20:58:13]Write to MH i2c: 01 00 00 A5 03 A8 [20:58:13]Write i2c OK [20:58:13]MH_I2C_Read... [20:58:14]OFD Sender: No OFD packet to send [20:58:14]*** Cut start [20:58:14]*** Partial cut [20:58:14]*** CUTSNS_PIN = 1 [20:58:14]*** CUTSNS_PIN = 0 [20:58:15]*** Brake cut motor [20:58:15]Read from MH i2c: 01 [20:58:15]MH_I2C_Read... [20:58:15]*** Stop cut motor [20:58:15]*** Cut end [20:58:15]Read from MH i2c: 01 07 00 [20:58:15]MH_I2C_Read... [20:58:15]Read from MH i2c: 01 07 00 A5 03 00 00 00 00 00 FF 0F BD [20:58:15]process_action close_receipt done [20:58:15]requested_data is exist [20:58:15]produce_requested_data [20:58:15]requested_item fm.sn is exist - process it [20:58:15]wFMCommunicate request_size=4 [20:58:15]MH_SAM_APDU [20:58:15]CAPDU: 80 11 00 00 [20:58:15]Write to MH i2c: E2 08 00 A6 03 80 11 00 00 00 00 00 00 23 [20:58:15]Write i2c OK [20:58:15]MH_I2C_Read... [20:58:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:58:15]Read from MH i2c: E2 [20:58:15]MH_I2C_Read... [20:58:15]Read from MH i2c: E2 17 00 [20:58:15]MH_I2C_Read... [20:58:15]Read from MH i2c: E2 17 00 A6 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 6E [20:58:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [20:58:15]wFMCommunicate OK [20:58:15]requested_item fd.num is exist - process it [20:58:15]SAM_PROTO_GetFieldsCounters [20:58:15]wFMCommunicate request_size=4 [20:58:15]MH_SAM_APDU [20:58:15]CAPDU: 80 13 00 00 [20:58:15]Write to MH i2c: E2 08 00 A7 03 80 13 00 00 00 00 00 00 26 [20:58:15]Write i2c OK [20:58:15]MH_I2C_Read... [20:58:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:58:15]Read from MH i2c: E2 [20:58:15]MH_I2C_Read... [20:58:15]Read from MH i2c: E2 62 00 [20:58:15]MH_I2C_Read... [20:58:15]Read from MH i2c: E2 62 00 A7 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 79 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 A1 [20:58:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 79 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:58:15]wFMCommunicate OK [20:58:15]SAM_PROTO_GetFieldsCounters done [20:58:15]requested_item shift.num is exist - process it [20:58:15]requested_item shift.opened is exist - process it [20:58:15]req_shift_opened [20:58:15]FM_GetShiftState [20:58:15]SAM_PROTO_GetShiftState [20:58:15]wFMCommunicate request_size=4 [20:58:15]MH_SAM_APDU [20:58:15]CAPDU: 80 13 01 00 [20:58:15]Write to MH i2c: E2 08 00 A8 03 80 13 01 00 00 00 00 00 28 [20:58:15]Write i2c OK [20:58:15]MH_I2C_Read... [20:58:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:58:15]Read from MH i2c: E2 [20:58:15]MH_I2C_Read... [20:58:15]Read from MH i2c: E2 0E 00 [20:58:15]MH_I2C_Read... [20:58:15]Read from MH i2c: E2 0E 00 A8 03 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 03 [20:58:15]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [20:58:15]wFMCommunicate OK [20:58:15]SAM_PROTO_GetShiftState done [20:58:15]FM_GetShiftState done [20:58:15]req_shift_opened done [20:58:15]requested_item shift.open_date is exist - process it [20:58:15]req_shift_open_date [20:58:15]req_shift_open_date done [20:58:15]produce_requested_data done [20:58:15]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68473,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [20:58:15]process_action_free close_receipt [20:58:15]json_value_free [20:58:15]json_value_free done [20:58:15]process_json_proto returns [20:58:15]Send response to host [20:58:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68473,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [20:58:15]free response buf [20:58:15]execute_script done [20:58:15]execute_script returns [20:58:15]free content buf [20:58:15]Sock 9.Close socket [20:58:15]Sock 9.Thread stoped [20:58:19]OFD Sender: No OFD packet to send [20:58:24]OFD Sender: No OFD packet to send [20:58:29]OFD Sender: No OFD packet to send [20:58:34]OFD Sender: No OFD packet to send [20:58:39]OFD Sender: No OFD packet to send [20:58:44]OFD Sender: No OFD packet to send [20:58:49]OFD Sender: No OFD packet to send [20:58:54]OFD Sender: No OFD packet to send [20:58:59]OFD Sender: No OFD packet to send [20:59:04]OFD Sender: No OFD packet to send [20:59:09]OFD Sender: No OFD packet to send [20:59:14]OFD Sender: No OFD packet to send [20:59:19]OFD Sender: No OFD packet to send [20:59:24]OFD Sender: No OFD packet to send [20:59:29]OFD Sender: No OFD packet to send [20:59:34]OFD Sender: No OFD packet to send [20:59:39]OFD Sender: No OFD packet to send [20:59:44]OFD Sender: No OFD packet to send [20:59:49]OFD Sender: No OFD packet to send [20:59:54]OFD Sender: No OFD packet to send [20:59:59]OFD Sender: No OFD packet to send [21:00:04]OFD Sender: No OFD packet to send [21:00:09]OFD Sender: No OFD packet to send [21:00:14]OFD Sender: No OFD packet to send [21:00:19]OFD Sender: No OFD packet to send [21:00:24]OFD Sender: No OFD packet to send [21:00:29]OFD Sender: No OFD packet to send [21:00:34]OFD Sender: No OFD packet to send [21:00:39]OFD Sender: No OFD packet to send [21:00:44]OFD Sender: No OFD packet to send [21:00:49]OFD Sender: No OFD packet to send [21:00:54]OFD Sender: No OFD packet to send [21:00:59]OFD Sender: No OFD packet to send [21:01:04]OFD Sender: No OFD packet to send [21:01:09]OFD Sender: No OFD packet to send [21:01:14]OFD Sender: No OFD packet to send [21:01:19]OFD Sender: No OFD packet to send [21:01:24]OFD Sender: No OFD packet to send [21:01:29]OFD Sender: No OFD packet to send [21:01:34]OFD Sender: No OFD packet to send [21:01:39]OFD Sender: No OFD packet to send [21:01:44]OFD Sender: No OFD packet to send [21:01:49]OFD Sender: No OFD packet to send [21:01:54]OFD Sender: No OFD packet to send [21:01:59]OFD Sender: No OFD packet to send [21:02:04]OFD Sender: No OFD packet to send [21:02:09]OFD Sender: No OFD packet to send [21:02:14]OFD Sender: No OFD packet to send [21:02:19]OFD Sender: No OFD packet to send [21:02:24]OFD Sender: No OFD packet to send [21:02:29]OFD Sender: No OFD packet to send [21:02:34]OFD Sender: No OFD packet to send [21:02:39]OFD Sender: No OFD packet to send [21:02:44]OFD Sender: No OFD packet to send [21:02:49]OFD Sender: No OFD packet to send [21:02:54]OFD Sender: No OFD packet to send [21:02:59]OFD Sender: No OFD packet to send [21:03:04]OFD Sender: No OFD packet to send [21:03:09]OFD Sender: No OFD packet to send [21:03:14]OFD Sender: No OFD packet to send [21:03:19]OFD Sender: No OFD packet to send [21:03:24]OFD Sender: No OFD packet to send [21:03:29]OFD Sender: No OFD packet to send [21:03:34]OFD Sender: No OFD packet to send [21:03:39]OFD Sender: No OFD packet to send [21:03:44]OFD Sender: No OFD packet to send [21:03:49]OFD Sender: No OFD packet to send [21:03:54]OFD Sender: No OFD packet to send [21:03:59]OFD Sender: No OFD packet to send [21:04:04]OFD Sender: No OFD packet to send [21:04:09]OFD Sender: No OFD packet to send [21:04:14]OFD Sender: No OFD packet to send [21:04:19]OFD Sender: No OFD packet to send [21:04:24]OFD Sender: No OFD packet to send [21:04:29]OFD Sender: No OFD packet to send [21:04:34]OFD Sender: No OFD packet to send [21:04:39]OFD Sender: No OFD packet to send [21:04:44]OFD Sender: No OFD packet to send [21:04:49]OFD Sender: No OFD packet to send [21:04:54]OFD Sender: No OFD packet to send [21:04:59]OFD Sender: No OFD packet to send [21:05:04]OFD Sender: No OFD packet to send [21:05:09]OFD Sender: No OFD packet to send [21:05:14]OFD Sender: No OFD packet to send [21:05:19]OFD Sender: No OFD packet to send [21:05:24]OFD Sender: No OFD packet to send [21:05:29]OFD Sender: No OFD packet to send [21:05:34]OFD Sender: No OFD packet to send [21:05:39]OFD Sender: No OFD packet to send [21:05:44]OFD Sender: No OFD packet to send [21:05:49]OFD Sender: No OFD packet to send [21:05:54]OFD Sender: No OFD packet to send [21:05:59]OFD Sender: No OFD packet to send [21:06:04]OFD Sender: No OFD packet to send [21:06:09]OFD Sender: No OFD packet to send [21:06:14]OFD Sender: No OFD packet to send [21:06:19]OFD Sender: No OFD packet to send [21:06:24]OFD Sender: No OFD packet to send [21:06:29]OFD Sender: No OFD packet to send [21:06:34]OFD Sender: No OFD packet to send [21:06:39]OFD Sender: No OFD packet to send [21:06:44]OFD Sender: No OFD packet to send [21:06:49]OFD Sender: No OFD packet to send [21:06:54]OFD Sender: No OFD packet to send [21:06:59]OFD Sender: No OFD packet to send [21:07:04]OFD Sender: No OFD packet to send [21:07:09]OFD Sender: No OFD packet to send [21:07:14]OFD Sender: No OFD packet to send [21:07:19]OFD Sender: No OFD packet to send [21:07:24]OFD Sender: No OFD packet to send [21:07:29]OFD Sender: No OFD packet to send [21:07:34]OFD Sender: No OFD packet to send [21:07:39]OFD Sender: No OFD packet to send [21:07:44]OFD Sender: No OFD packet to send [21:07:49]OFD Sender: No OFD packet to send [21:07:54]OFD Sender: No OFD packet to send [21:07:59]OFD Sender: No OFD packet to send [21:08:04]OFD Sender: No OFD packet to send [21:08:05]accept exits with 7 [21:08:05]New connection [21:08:05]New thread 3067084132 created [21:08:05]Thread 3067227492 joined [21:08:05]Waiting for new connection... [21:08:05] Sock 7.Parse request [21:08:05]Sock 7.Check first char [21:08:05]Sock 7.First char is OK [21:08:05]request: POST /json_proto HTTP/1.0 [21:08:05]Method: POST [21:08:05]URL: /json_proto [21:08:05]Method is POST - this is cgi request [21:08:05]url: /json_proto [21:08:05]query_string will be loaded in cgi processing [21:08:05]execute_cgi json_proto POST (null) [21:08:05]execute_cgi path=json_proto method=POST [21:08:05]POST find Content-Length [21:08:05]Host: 172.17.36.132:8080 [21:08:05]Content-Length: 677 [21:08:05]Content-Type: application/json [21:08:05] [21:08:05]POST finish read [21:08:05]Found Content-Length = 677 [21:08:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706584", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:08:05]execute_script... [21:08:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706584", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:08:05]POST & json_proto [21:08:05]process_json_proto [21:08:05]json parsed OK: [21:08:05]protocol is kg_v1.0 [21:08:05]action value=close_receipt [21:08:05]process_action close_receipt [21:08:05]cmd_close_receipt [21:08:05]MH_GetDate [21:08:05]Write to MH i2c: F0 00 00 A9 03 9B [21:08:05]Write i2c OK [21:08:05]MH_I2C_Read... [21:08:05]Read from MH i2c: F0 [21:08:05]MH_I2C_Read... [21:08:05]Read from MH i2c: F0 09 00 [21:08:05]MH_I2C_Read... [21:08:05]Read from MH i2c: F0 09 00 A9 03 00 B5 30 5E 66 B2 22 B0 64 35 [21:08:05]GetLastDocTimeStamp 1717448292 [21:08:05]current date 1717448885 [21:08:05]FM_GetShiftState [21:08:05]SAM_PROTO_GetShiftState [21:08:05]wFMCommunicate request_size=4 [21:08:05]MH_SAM_APDU [21:08:05]CAPDU: 80 13 01 00 [21:08:05]Write to MH i2c: E2 08 00 AA 03 80 13 01 00 00 00 00 00 2A [21:08:05]Write i2c OK [21:08:05]MH_I2C_Read... [21:08:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:08:05]Read from MH i2c: E2 [21:08:05]MH_I2C_Read... [21:08:05]Read from MH i2c: E2 0E 00 [21:08:05]MH_I2C_Read... [21:08:05]Read from MH i2c: E2 0E 00 AA 03 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 05 [21:08:05]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [21:08:05]wFMCommunicate OK [21:08:05]SAM_PROTO_GetShiftState done [21:08:05]FM_GetShiftState done [21:08:05]opened in 1717378033 [21:08:05]opened+sec_in_day 1717464433 [21:08:05]quantity*price = 50041 [21:08:05]sum+1 = 50042 [21:08:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 220 03.06.2024 21:08 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68474 ФПД: 183613070429846 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T210805&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68474&fm=183613070429846&tin=02508201610067®Number=0000000000098096&sum=50000 [21:08:06]StoreToDocumentArchive [21:08:06]shift 324 fd 68474 [21:08:06]save to /storage/0324/doc_00068474 [21:08:06]save last doc name /storage/0324/doc_00068474 to /storage/kkm_last_doc_name [21:08:06]save OK [21:08:06]Clear old archive folders... [21:08:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:08:06]tlvbuf is 00A39C80 [21:08:06]SAM_PROTO_ClearQueue [21:08:06]wFMCommunicate request_size=4 [21:08:06]MH_SAM_APDU [21:08:06]CAPDU: 80 09 00 00 [21:08:06]Write to MH i2c: E2 08 00 B7 03 80 09 00 00 00 00 00 00 2C [21:08:06]Write i2c OK [21:08:06]MH_I2C_Read... [21:08:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:08:06]Read from MH i2c: E2 [21:08:06]MH_I2C_Read... [21:08:06]Read from MH i2c: E2 03 00 [21:08:06]MH_I2C_Read... [21:08:06]Read from MH i2c: E2 03 00 B7 03 00 90 00 2E [21:08:06]RAPDU: 90 00 [21:08:06]wFMCommunicate OK [21:08:06]SAM_PROTO_ClearQueue done [21:08:06]KKMCreateOFDPacket [21:08:06]OFDProtocolAddRootSTLVToBuf [21:08:06]FM_MakeSignedData [21:08:06]FM_MakeSignedData [21:08:06]SAM_PROTO_SignData [21:08:06]wFMCommunicate request_size=4 [21:08:06]MH_SAM_APDU [21:08:06]CAPDU: 80 0D 01 02 [21:08:06]Write to MH i2c: E2 08 00 B8 03 80 0D 01 02 00 00 00 00 34 [21:08:06]Write i2c OK [21:08:06]MH_I2C_Read... [21:08:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:08:06]Read from MH i2c: E2 [21:08:06]MH_I2C_Read... [21:08:06]Read from MH i2c: E2 03 00 [21:08:06]MH_I2C_Read... [21:08:06]Read from MH i2c: E2 03 00 B8 03 00 90 00 2F [21:08:06]RAPDU: 90 00 [21:08:06]wFMCommunicate OK [21:08:06]wFMCommunicate request_size=255 [21:08:06]MH_SAM_APDU [21:08:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 B5 30 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 7A 0B 01 00 35 04 06 00 A6 [21:08:06]Write to MH i2c: E2 02 01 B9 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 B5 30 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 7A 0B 01 00 35 04 06 00 A6 00 00 B7 [21:08:06]Write i2c OK [21:08:06]MH_I2C_Read... [21:08:06]Read from MH i2c: E2 [21:08:06]MH_I2C_Read... [21:08:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:08:06]Read from MH i2c: E2 03 00 [21:08:06]MH_I2C_Read... [21:08:06]Read from MH i2c: E2 03 00 B9 03 00 90 00 30 [21:08:06]RAPDU: 90 00 [21:08:06]wFMCommunicate OK [21:08:06]wFMCommunicate request_size=10 [21:08:06]MH_SAM_APDU [21:08:06]CAPDU: 80 0D 02 02 05 FE BF D6 CE 96 [21:08:06]Write to MH i2c: E2 0D 00 BA 03 80 0D 02 02 05 00 FE BF D6 CE 96 00 00 38 [21:08:06]Write i2c OK [21:08:06]MH_I2C_Read... [21:08:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:08:06]Read from MH i2c: E2 [21:08:06]MH_I2C_Read... [21:08:06]Read from MH i2c: E2 03 00 [21:08:06]MH_I2C_Read... [21:08:06]Read from MH i2c: E2 03 00 BA 03 00 90 00 31 [21:08:06]RAPDU: 90 00 [21:08:06]wFMCommunicate OK [21:08:06]wFMCommunicate request_size=4 [21:08:06]MH_SAM_APDU [21:08:06]CAPDU: 80 0D 03 02 [21:08:06]Write to MH i2c: E2 08 00 BB 03 80 0D 03 02 00 00 00 00 39 [21:08:06]Write i2c OK [21:08:06]MH_I2C_Read... [21:08:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:08:06]Read from MH i2c: E2 [21:08:06]MH_I2C_Read... [21:08:06]Read from MH i2c: E2 0B 00 [21:08:06]MH_I2C_Read... [21:08:06]Read from MH i2c: E2 0B 00 BB 03 00 D8 D0 24 96 85 67 FD C7 90 00 4C [21:08:06]RAPDU: D8 D0 24 96 85 67 FD C7 90 00 [21:08:06]wFMCommunicate OK [21:08:06]SAM_PROTO_SignData done [21:08:06]FM_MakeSignedData done [21:08:06]CreateOFDProtocolMessage [21:08:06]wFMCommunicate request_size=4 [21:08:06]MH_SAM_APDU [21:08:06]CAPDU: 80 11 00 00 [21:08:06]Write to MH i2c: E2 08 00 BC 03 80 11 00 00 00 00 00 00 39 [21:08:06]Write i2c OK [21:08:06]MH_I2C_Read... [21:08:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:08:06]Read from MH i2c: E2 [21:08:06]MH_I2C_Read... [21:08:06]Read from MH i2c: E2 17 00 [21:08:06]MH_I2C_Read... [21:08:06]Read from MH i2c: E2 17 00 BC 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 84 [21:08:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [21:08:06]wFMCommunicate OK [21:08:06]CreateOFDProtocolMessage done [21:08:06]OFDSenderStorePacket 68474 [21:08:06]StoreOFDPacket docnum=68474 [21:08:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 58 CF 07 01 49 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 B5 30 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 7A 0B 01 00 35 04 06 00 A6 FE BF D6 CE 96 D8 D0 24 96 85 67 FD C7 [21:08:06]CheckFolder [21:08:06]dirname=/storage/ofd_packets [21:08:06]CheckFolder done [21:08:06]ProducePacketName [21:08:06]name=ofd_packets/00068474 [21:08:06]NVStorageSaveData ofd_packets/00068474 [21:08:06]File name is /storage/ofd_packets/00068474 [21:08:06]Write 301 bytes [21:08:06]NVStorageSaveData done [21:08:06]OFDSenderStorePacket done [21:08:06]KKMCreateOFDPacket done [21:08:06]NVStorageSaveData kkm_last_timestamp [21:08:06]File name is /storage/kkm_last_timestamp [21:08:06]Write 4 bytes [21:08:06]NVStorageSaveData done [21:08:06]ExternCall_PrintAddStr [21:08:06]wPrintStart [21:08:06]Write to MH i2c: 01 00 00 BD 03 C0 [21:08:06]Write i2c OK [21:08:06]MH_I2C_Read... [21:08:06]Read from MH i2c: 01 [21:08:06]MH_I2C_Read... [21:08:06]Read from MH i2c: 01 07 00 [21:08:06]MH_I2C_Read... [21:08:06]Read from MH i2c: 01 07 00 BD 03 00 00 00 00 00 FF 0F D5 [21:08:06]RasterBufferAndPrint [21:08:06]line Счет N : (1)706584 [21:08:06]line ИНН: 02508201610067 [21:08:06]line Контрольно-Кассовый Чек [21:08:06]line ПРОДАЖА [21:08:06]line ТРК (МРК, ГНК) : 32 [21:08:06]line Товар: 2710124130 [21:08:06]line Аи-92-К-4 [21:08:06]line 7.480 * 66.90 [21:08:06]line = 500.41 [21:08:06]line НДС 12% НСП 1% [21:08:06]line > о реализуемом товаре [21:08:06]line ОКРУГЛЕНИЕ: -0.41 [21:08:06]line ИТОГО: 500.00 [21:08:06]line Внесено: 500.00 [21:08:06]line СДАЧА: 0.00 [21:08:06]line НСП 1% : 4.43 [21:08:06]line НДС 12% : 53.14 [21:08:06]line Наличными: 500.00 [21:08:06]line Безнал.: 0.00 [21:08:06]line Место: АЗС № 62 "Партнер Нефть" [21:08:06]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [21:08:06]line СНО: Общий режим [21:08:06]line Чек 220 03.06.2024 21:08 [21:08:06]line Смена: 324 ФФД: 1.0 [21:08:06]line ЗНМ: 0300000181 [21:08:06]line РНМ: 0000000000098096 [21:08:06]line Версия ККМ: 001 [21:08:06]line ФМ: 0000000000965400 [21:08:06]line ФД: 68474 [21:08:06]line ФПД: 183613070429846 [21:08:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T210805&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68474&fm=183613070429846&tin=02508201610067®Number=0000000000098096&sum=50000 [21:08:07]OFD Sender: Processing packet 68474 [packets to send 26, broken 25] [21:08:07]ProducePacketName [21:08:07]name=ofd_packets/00068474 [21:08:07]OFD Sender: To server: pG, [21:08:07]CommunicateWithHost lk.salyk.kg:30040 [21:08:07]ConnectInit lk.salyk.kg [21:08:07]written 0, free lines is 4095 [21:08:07]Connected sock=10 [21:08:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 58 CF 07 01 49 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 B5 30 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 7A 0B 01 00 35 04 06 00 A6 FE BF D6 CE 96 D8 D0 24 96 85 67 FD C7 [21:08:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 8F 72 47 00 8E 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 7A 0B 01 00 F4 03 04 00 B0 D7 5D 66 B6 04 01 00 00 59 F0 57 00 5F 0C 24 E9 [21:08:07]CommunicateWithHost err = 0 [21:08:07]CheckOFDResponse [21:08:07]1017 (14) - 77093643461234 [21:08:07]1041 (16) - 0000000000965400 [21:08:07]1040 (4) - 68474 [21:08:07]1012 (4) - 03.06.2024 14:48 [21:08:07]1206 (1) - 0 [21:08:07]OFD Sender: Remove packet 68474 [21:08:07]ProducePacketName [21:08:07]name=ofd_packets/00068474 [21:08:07]NVStorageDeleteData [21:08:07]Write to MH i2c: 01 00 00 E8 03 EB [21:08:07]Write i2c OK [21:08:07]MH_I2C_Read... [21:08:07]Read from MH i2c: 01 [21:08:07]MH_I2C_Read... [21:08:07]Read from MH i2c: 01 07 00 [21:08:07]MH_I2C_Read... [21:08:07]Read from MH i2c: 01 07 00 E8 03 00 00 00 00 00 CF 0C CD [21:08:07]RasterBufferAndPrint [21:08:07]line [21:08:07]line [21:08:07]line [21:08:07]line [21:08:07]line [21:08:07]written 0, free lines is 3286 [21:08:07]MH_Cut [21:08:07]Write to MH i2c: D1 01 00 EF 03 01 C4 [21:08:07]Write i2c OK [21:08:07]MH_I2C_Read... [21:08:07]Read from MH i2c: D1 [21:08:07]MH_I2C_Read... [21:08:07]Read from MH i2c: D1 01 00 [21:08:07]MH_I2C_Read... [21:08:07]Read from MH i2c: D1 01 00 EF 03 00 C3 [21:08:07]Write to MH i2c: 01 00 00 F0 03 F3 [21:08:07]Write i2c OK [21:08:07]MH_I2C_Read... [21:08:08]OFD Sender: No OFD packet to send [21:08:08]*** Cut start [21:08:08]*** Partial cut [21:08:08]*** CUTSNS_PIN = 1 [21:08:08]*** CUTSNS_PIN = 0 [21:08:08]*** Brake cut motor [21:08:09]Read from MH i2c: 01 [21:08:09]MH_I2C_Read... [21:08:09]*** Stop cut motor [21:08:09]*** Cut end [21:08:09]Read from MH i2c: 01 07 00 [21:08:09]MH_I2C_Read... [21:08:09]Read from MH i2c: 01 07 00 F0 03 00 00 00 00 00 FF 0F 08 [21:08:09]process_action close_receipt done [21:08:09]requested_data is exist [21:08:09]produce_requested_data [21:08:09]requested_item fm.sn is exist - process it [21:08:09]wFMCommunicate request_size=4 [21:08:09]MH_SAM_APDU [21:08:09]CAPDU: 80 11 00 00 [21:08:09]Write to MH i2c: E2 08 00 F1 03 80 11 00 00 00 00 00 00 6E [21:08:09]Write i2c OK [21:08:09]MH_I2C_Read... [21:08:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:08:09]Read from MH i2c: E2 [21:08:09]MH_I2C_Read... [21:08:09]Read from MH i2c: E2 17 00 [21:08:09]MH_I2C_Read... [21:08:09]Read from MH i2c: E2 17 00 F1 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 B9 [21:08:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [21:08:09]wFMCommunicate OK [21:08:09]requested_item fd.num is exist - process it [21:08:09]SAM_PROTO_GetFieldsCounters [21:08:09]wFMCommunicate request_size=4 [21:08:09]MH_SAM_APDU [21:08:09]CAPDU: 80 13 00 00 [21:08:09]Write to MH i2c: E2 08 00 F2 03 80 13 00 00 00 00 00 00 71 [21:08:09]Write i2c OK [21:08:09]MH_I2C_Read... [21:08:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:08:09]Read from MH i2c: E2 [21:08:09]MH_I2C_Read... [21:08:09]Read from MH i2c: E2 62 00 [21:08:09]MH_I2C_Read... [21:08:09]Read from MH i2c: E2 62 00 F2 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 7A 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 F0 [21:08:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 7A 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:08:09]wFMCommunicate OK [21:08:09]SAM_PROTO_GetFieldsCounters done [21:08:09]requested_item shift.num is exist - process it [21:08:09]requested_item shift.opened is exist - process it [21:08:09]req_shift_opened [21:08:09]FM_GetShiftState [21:08:09]SAM_PROTO_GetShiftState [21:08:09]wFMCommunicate request_size=4 [21:08:09]MH_SAM_APDU [21:08:09]CAPDU: 80 13 01 00 [21:08:09]Write to MH i2c: E2 08 00 F3 03 80 13 01 00 00 00 00 00 73 [21:08:09]Write i2c OK [21:08:09]MH_I2C_Read... [21:08:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:08:09]Read from MH i2c: E2 [21:08:09]MH_I2C_Read... [21:08:09]Read from MH i2c: E2 0E 00 [21:08:09]MH_I2C_Read... [21:08:09]Read from MH i2c: E2 0E 00 F3 03 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 4E [21:08:09]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [21:08:09]wFMCommunicate OK [21:08:09]SAM_PROTO_GetShiftState done [21:08:09]FM_GetShiftState done [21:08:09]req_shift_opened done [21:08:09]requested_item shift.open_date is exist - process it [21:08:09]req_shift_open_date [21:08:09]req_shift_open_date done [21:08:09]produce_requested_data done [21:08:09]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68474,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [21:08:09]process_action_free close_receipt [21:08:09]json_value_free [21:08:09]json_value_free done [21:08:09]process_json_proto returns [21:08:09]Send response to host [21:08:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68474,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [21:08:09]free response buf [21:08:09]execute_script done [21:08:09]execute_script returns [21:08:09]free content buf [21:08:09]Sock 7.Close socket [21:08:09]Sock 7.Thread stoped [21:08:13]OFD Sender: No OFD packet to send [21:08:18]OFD Sender: No OFD packet to send [21:08:23]OFD Sender: No OFD packet to send [21:08:28]OFD Sender: No OFD packet to send [21:08:33]OFD Sender: No OFD packet to send [21:08:38]OFD Sender: No OFD packet to send [21:08:43]OFD Sender: No OFD packet to send [21:08:48]OFD Sender: No OFD packet to send [21:08:53]OFD Sender: No OFD packet to send [21:08:58]OFD Sender: No OFD packet to send [21:09:03]OFD Sender: No OFD packet to send [21:09:03]accept exits with 9 [21:09:03]New connection [21:09:03]New thread 3067227492 created [21:09:03]Thread 3067084132 joined [21:09:03]Waiting for new connection... [21:09:03] Sock 9.Parse request [21:09:03]Sock 9.Check first char [21:09:03]Sock 9.First char is OK [21:09:03]request: POST /json_proto HTTP/1.0 [21:09:03]Method: POST [21:09:03]URL: /json_proto [21:09:03]Method is POST - this is cgi request [21:09:03]url: /json_proto [21:09:03]query_string will be loaded in cgi processing [21:09:03]execute_cgi json_proto POST (null) [21:09:03]execute_cgi path=json_proto method=POST [21:09:03]POST find Content-Length [21:09:03]Host: 172.17.36.132:8080 [21:09:03]Content-Length: 670 [21:09:03]Content-Type: application/json [21:09:03] [21:09:03]POST finish read [21:09:03]Found Content-Length = 670 [21:09:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706585", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 8.840, "sum" : 600.24, "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" ] } } [21:09:03]execute_script... [21:09:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706585", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 8.840, "sum" : 600.24, "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" ] } } [21:09:03]POST & json_proto [21:09:03]process_json_proto [21:09:03]json parsed OK: [21:09:03]protocol is kg_v1.0 [21:09:03]action value=close_receipt [21:09:03]process_action close_receipt [21:09:03]cmd_close_receipt [21:09:03]MH_GetDate [21:09:03]Write to MH i2c: F0 00 00 F4 03 E6 [21:09:03]Write i2c OK [21:09:03]MH_I2C_Read... [21:09:03]Read from MH i2c: F0 [21:09:03]MH_I2C_Read... [21:09:03]Read from MH i2c: F0 09 00 [21:09:03]MH_I2C_Read... [21:09:03]Read from MH i2c: F0 09 00 F4 03 00 F0 30 5E 66 B2 22 B0 64 BB [21:09:03]GetLastDocTimeStamp 1717448885 [21:09:03]current date 1717448944 [21:09:03]FM_GetShiftState [21:09:03]SAM_PROTO_GetShiftState [21:09:03]wFMCommunicate request_size=4 [21:09:03]MH_SAM_APDU [21:09:03]CAPDU: 80 13 01 00 [21:09:03]Write to MH i2c: E2 08 00 F5 03 80 13 01 00 00 00 00 00 75 [21:09:03]Write i2c OK [21:09:03]MH_I2C_Read... [21:09:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:09:03]Read from MH i2c: E2 [21:09:03]MH_I2C_Read... [21:09:03]Read from MH i2c: E2 0E 00 [21:09:03]MH_I2C_Read... [21:09:03]Read from MH i2c: E2 0E 00 F5 03 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 50 [21:09:03]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [21:09:03]wFMCommunicate OK [21:09:03]SAM_PROTO_GetShiftState done [21:09:03]FM_GetShiftState done [21:09:03]opened in 1717378033 [21:09:03]opened+sec_in_day 1717464433 [21:09:03]quantity*price = 60023 [21:09:03]sum+1 = 60025 [21:09:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 221 03.06.2024 21:09 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68475 ФПД: 259393525229608 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T210904&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68475&fm=259393525229608&tin=02508201610067®Number=0000000000098096&sum=60000 [21:09:05]StoreToDocumentArchive [21:09:05]shift 324 fd 68475 [21:09:05]save to /storage/0324/doc_00068475 [21:09:05]save last doc name /storage/0324/doc_00068475 to /storage/kkm_last_doc_name [21:09:05]save OK [21:09:05]Clear old archive folders... [21:09:05]ProcessDocumentItem done err = 0, tmpTLVsize=252 [21:09:05]tlvbuf is 00A303F0 [21:09:05]SAM_PROTO_ClearQueue [21:09:05]wFMCommunicate request_size=4 [21:09:05]MH_SAM_APDU [21:09:05]CAPDU: 80 09 00 00 [21:09:05]Write to MH i2c: E2 08 00 02 04 80 09 00 00 00 00 00 00 78 [21:09:05]Write i2c OK [21:09:05]MH_I2C_Read... [21:09:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:09:05]Read from MH i2c: E2 [21:09:05]MH_I2C_Read... [21:09:05]Read from MH i2c: E2 03 00 [21:09:05]MH_I2C_Read... [21:09:05]Read from MH i2c: E2 03 00 02 04 00 90 00 7A [21:09:05]RAPDU: 90 00 [21:09:05]wFMCommunicate OK [21:09:05]SAM_PROTO_ClearQueue done [21:09:05]KKMCreateOFDPacket [21:09:05]OFDProtocolAddRootSTLVToBuf [21:09:05]FM_MakeSignedData [21:09:05]FM_MakeSignedData [21:09:05]SAM_PROTO_SignData [21:09:05]wFMCommunicate request_size=4 [21:09:05]MH_SAM_APDU [21:09:05]CAPDU: 80 0D 01 02 [21:09:05]Write to MH i2c: E2 08 00 03 04 80 0D 01 02 00 00 00 00 80 [21:09:05]Write i2c OK [21:09:05]MH_I2C_Read... [21:09:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:09:05]Read from MH i2c: E2 [21:09:05]MH_I2C_Read... [21:09:05]Read from MH i2c: E2 03 00 [21:09:05]MH_I2C_Read... [21:09:05]Read from MH i2c: E2 03 00 03 04 00 90 00 7B [21:09:05]RAPDU: 90 00 [21:09:05]wFMCommunicate OK [21:09:05]wFMCommunicate request_size=255 [21:09:05]MH_SAM_APDU [21:09:05]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 22 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 78 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 F0 30 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 7B 0B 01 00 35 04 06 00 [21:09:05]Write to MH i2c: E2 02 01 04 04 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 22 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 78 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 F0 30 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 7B 0B 01 00 35 04 06 00 00 00 93 [21:09:05]Write i2c OK [21:09:05]MH_I2C_Read... [21:09:05]Read from MH i2c: E2 [21:09:05]MH_I2C_Read... [21:09:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:09:05]Read from MH i2c: E2 03 00 [21:09:05]MH_I2C_Read... [21:09:05]Read from MH i2c: E2 03 00 04 04 00 90 00 7C [21:09:05]RAPDU: 90 00 [21:09:05]wFMCommunicate OK [21:09:05]wFMCommunicate request_size=11 [21:09:05]MH_SAM_APDU [21:09:05]CAPDU: 80 0D 02 02 06 EB EA C2 ED A8 28 [21:09:05]Write to MH i2c: E2 0E 00 05 04 80 0D 02 02 06 00 EB EA C2 ED A8 28 00 00 E3 [21:09:05]Write i2c OK [21:09:05]MH_I2C_Read... [21:09:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:09:05]Read from MH i2c: E2 [21:09:05]MH_I2C_Read... [21:09:05]Read from MH i2c: E2 03 00 [21:09:05]MH_I2C_Read... [21:09:05]Read from MH i2c: E2 03 00 05 04 00 90 00 7D [21:09:05]RAPDU: 90 00 [21:09:05]wFMCommunicate OK [21:09:05]wFMCommunicate request_size=4 [21:09:05]MH_SAM_APDU [21:09:05]CAPDU: 80 0D 03 02 [21:09:05]Write to MH i2c: E2 08 00 06 04 80 0D 03 02 00 00 00 00 85 [21:09:05]Write i2c OK [21:09:05]MH_I2C_Read... [21:09:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:09:05]Read from MH i2c: E2 [21:09:05]MH_I2C_Read... [21:09:05]Read from MH i2c: E2 0B 00 [21:09:05]MH_I2C_Read... [21:09:05]Read from MH i2c: E2 0B 00 06 04 00 54 9B 75 F9 EA C0 1E 0C 90 00 B7 [21:09:05]RAPDU: 54 9B 75 F9 EA C0 1E 0C 90 00 [21:09:05]wFMCommunicate OK [21:09:05]SAM_PROTO_SignData done [21:09:05]FM_MakeSignedData done [21:09:05]CreateOFDProtocolMessage [21:09:05]wFMCommunicate request_size=4 [21:09:05]MH_SAM_APDU [21:09:05]CAPDU: 80 11 00 00 [21:09:05]Write to MH i2c: E2 08 00 07 04 80 11 00 00 00 00 00 00 85 [21:09:05]Write i2c OK [21:09:05]MH_I2C_Read... [21:09:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:09:05]Read from MH i2c: E2 [21:09:05]MH_I2C_Read... [21:09:05]Read from MH i2c: E2 17 00 [21:09:05]MH_I2C_Read... [21:09:05]Read from MH i2c: E2 17 00 07 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 D0 [21:09:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [21:09:05]wFMCommunicate OK [21:09:05]CreateOFDProtocolMessage done [21:09:05]OFDSenderStorePacket 68475 [21:09:05]StoreOFDPacket docnum=68475 [21:09:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 7E 06 08 01 62 7D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 22 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 78 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 F0 30 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 7B 0B 01 00 35 04 06 00 EB EA C2 ED A8 28 54 9B 75 F9 EA C0 1E 0C [21:09:05]CheckFolder [21:09:05]dirname=/storage/ofd_packets [21:09:05]CheckFolder done [21:09:05]ProducePacketName [21:09:05]name=ofd_packets/00068475 [21:09:05]NVStorageSaveData ofd_packets/00068475 [21:09:05]File name is /storage/ofd_packets/00068475 [21:09:05]Write 302 bytes [21:09:05]NVStorageSaveData done [21:09:05]OFDSenderStorePacket done [21:09:05]KKMCreateOFDPacket done [21:09:05]NVStorageSaveData kkm_last_timestamp [21:09:05]File name is /storage/kkm_last_timestamp [21:09:05]Write 4 bytes [21:09:05]NVStorageSaveData done [21:09:05]ExternCall_PrintAddStr [21:09:05]wPrintStart [21:09:05]Write to MH i2c: 01 00 00 08 04 0C [21:09:05]Write i2c OK [21:09:05]MH_I2C_Read... [21:09:05]Read from MH i2c: 01 [21:09:05]MH_I2C_Read... [21:09:05]Read from MH i2c: 01 07 00 [21:09:05]MH_I2C_Read... [21:09:05]Read from MH i2c: 01 07 00 08 04 00 00 00 00 00 FF 0F 21 [21:09:05]RasterBufferAndPrint [21:09:05]line Счет N : (1)706585 [21:09:05]line ИНН: 02508201610067 [21:09:05]line Контрольно-Кассовый Чек [21:09:05]line ПРОДАЖА [21:09:05]line ТРК (МРК, ГНК) : 52 [21:09:05]line Товар: 2710124130 [21:09:05]line Super-92-К-5 [21:09:05]line 8.840 * 67.90 [21:09:05]line = 600.24 [21:09:05]line НДС 12% НСП 1% [21:09:05]line > о реализуемом товаре [21:09:05]line ОКРУГЛЕНИЕ: -0.24 [21:09:05]line ИТОГО: 600.00 [21:09:05]line Внесено: 600.00 [21:09:05]line СДАЧА: 0.00 [21:09:05]line НСП 1% : 5.31 [21:09:05]line НДС 12% : 63.74 [21:09:05]line Наличными: 600.00 [21:09:05]line Безнал.: 0.00 [21:09:05]line Место: АЗС № 62 "Партнер Нефть" [21:09:05]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [21:09:05]line СНО: Общий режим [21:09:05]line Чек 221 03.06.2024 21:09 [21:09:05]line Смена: 324 ФФД: 1.0 [21:09:05]line ЗНМ: 0300000181 [21:09:05]line РНМ: 0000000000098096 [21:09:05]line Версия ККМ: 001 [21:09:05]line ФМ: 0000000000965400 [21:09:05]line ФД: 68475 [21:09:05]line ФПД: 259393525229608 [21:09:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T210904&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68475&fm=259393525229608&tin=02508201610067®Number=0000000000098096&sum=60000 [21:09:05]OFD Sender: Processing packet 68475 [packets to send 26, broken 25] [21:09:05]ProducePacketName [21:09:05]name=ofd_packets/00068475 [21:09:05]OFD Sender: To server: pG, [21:09:05]CommunicateWithHost lk.salyk.kg:30040 [21:09:05]ConnectInit lk.salyk.kg [21:09:05]written 0, free lines is 4095 [21:09:05]Connected sock=10 [21:09:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 7E 06 08 01 62 7D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 22 00 00 00 00 00 37 04 06 00 86 1A 00 00 00 00 13 04 06 00 78 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 F0 30 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 7B 0B 01 00 35 04 06 00 EB EA C2 ED A8 28 54 9B 75 F9 EA C0 1E 0C [21:09:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 C1 BE 47 00 02 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 7B 0B 01 00 F4 03 04 00 EB D7 5D 66 B6 04 01 00 00 0C 1A 75 05 57 8A CA EE [21:09:06]CommunicateWithHost err = 0 [21:09:06]CheckOFDResponse [21:09:06]1017 (14) - 77093643461234 [21:09:06]1041 (16) - 0000000000965400 [21:09:06]1040 (4) - 68475 [21:09:06]1012 (4) - 03.06.2024 14:49 [21:09:06]1206 (1) - 0 [21:09:06]OFD Sender: Remove packet 68475 [21:09:06]ProducePacketName [21:09:06]name=ofd_packets/00068475 [21:09:06]NVStorageDeleteData [21:09:06]Write to MH i2c: 01 00 00 33 04 37 [21:09:06]Write i2c OK [21:09:06]MH_I2C_Read... [21:09:06]Read from MH i2c: 01 [21:09:06]MH_I2C_Read... [21:09:06]Read from MH i2c: 01 07 00 [21:09:06]MH_I2C_Read... [21:09:06]Read from MH i2c: 01 07 00 33 04 00 00 00 00 00 E6 0C 30 [21:09:06]RasterBufferAndPrint [21:09:06]line [21:09:06]line [21:09:06]line [21:09:06]line [21:09:06]line [21:09:06]written 0, free lines is 3308 [21:09:06]MH_Cut [21:09:06]Write to MH i2c: D1 01 00 3A 04 01 10 [21:09:06]Write i2c OK [21:09:06]MH_I2C_Read... [21:09:06]Read from MH i2c: D1 [21:09:06]MH_I2C_Read... [21:09:06]Read from MH i2c: D1 01 00 [21:09:06]MH_I2C_Read... [21:09:06]Read from MH i2c: D1 01 00 3A 04 00 0F [21:09:06]Write to MH i2c: 01 00 00 3B 04 3F [21:09:06]Write i2c OK [21:09:06]MH_I2C_Read... [21:09:06]OFD Sender: No OFD packet to send [21:09:07]*** Cut start [21:09:07]*** Partial cut [21:09:07]*** CUTSNS_PIN = 1 [21:09:07]*** CUTSNS_PIN = 0 [21:09:07]*** Brake cut motor [21:09:07]Read from MH i2c: 01 [21:09:07]MH_I2C_Read... [21:09:07]*** Stop cut motor [21:09:07]*** Cut end [21:09:07]Read from MH i2c: 01 07 00 [21:09:07]MH_I2C_Read... [21:09:07]Read from MH i2c: 01 07 00 3B 04 00 00 00 00 00 FF 0F 54 [21:09:07]process_action close_receipt done [21:09:07]requested_data is exist [21:09:07]produce_requested_data [21:09:07]requested_item fm.sn is exist - process it [21:09:07]wFMCommunicate request_size=4 [21:09:07]MH_SAM_APDU [21:09:07]CAPDU: 80 11 00 00 [21:09:07]Write to MH i2c: E2 08 00 3C 04 80 11 00 00 00 00 00 00 BA [21:09:07]Write i2c OK [21:09:07]MH_I2C_Read... [21:09:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:09:07]Read from MH i2c: E2 [21:09:07]MH_I2C_Read... [21:09:07]Read from MH i2c: E2 17 00 [21:09:07]MH_I2C_Read... [21:09:07]Read from MH i2c: E2 17 00 3C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 05 [21:09:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [21:09:07]wFMCommunicate OK [21:09:07]requested_item fd.num is exist - process it [21:09:07]SAM_PROTO_GetFieldsCounters [21:09:07]wFMCommunicate request_size=4 [21:09:07]MH_SAM_APDU [21:09:07]CAPDU: 80 13 00 00 [21:09:07]Write to MH i2c: E2 08 00 3D 04 80 13 00 00 00 00 00 00 BD [21:09:07]Write i2c OK [21:09:07]MH_I2C_Read... [21:09:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:09:07]Read from MH i2c: E2 [21:09:07]MH_I2C_Read... [21:09:07]Read from MH i2c: E2 62 00 [21:09:07]MH_I2C_Read... [21:09:07]Read from MH i2c: E2 62 00 3D 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 7B 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 40 [21:09:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 7B 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:09:07]wFMCommunicate OK [21:09:07]SAM_PROTO_GetFieldsCounters done [21:09:07]requested_item shift.num is exist - process it [21:09:07]requested_item shift.opened is exist - process it [21:09:07]req_shift_opened [21:09:07]FM_GetShiftState [21:09:07]SAM_PROTO_GetShiftState [21:09:07]wFMCommunicate request_size=4 [21:09:07]MH_SAM_APDU [21:09:07]CAPDU: 80 13 01 00 [21:09:07]Write to MH i2c: E2 08 00 3E 04 80 13 01 00 00 00 00 00 BF [21:09:07]Write i2c OK [21:09:07]MH_I2C_Read... [21:09:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:09:08]Read from MH i2c: E2 [21:09:08]MH_I2C_Read... [21:09:08]Read from MH i2c: E2 0E 00 [21:09:08]MH_I2C_Read... [21:09:08]Read from MH i2c: E2 0E 00 3E 04 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 9A [21:09:08]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [21:09:08]wFMCommunicate OK [21:09:08]SAM_PROTO_GetShiftState done [21:09:08]FM_GetShiftState done [21:09:08]req_shift_opened done [21:09:08]requested_item shift.open_date is exist - process it [21:09:08]req_shift_open_date [21:09:08]req_shift_open_date done [21:09:08]produce_requested_data done [21:09:08]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68475,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [21:09:08]process_action_free close_receipt [21:09:08]json_value_free [21:09:08]json_value_free done [21:09:08]process_json_proto returns [21:09:08]Send response to host [21:09:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68475,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [21:09:08]free response buf [21:09:08]execute_script done [21:09:08]execute_script returns [21:09:08]free content buf [21:09:08]Sock 9.Close socket [21:09:08]Sock 9.Thread stoped [21:09:11]OFD Sender: No OFD packet to send [21:09:16]OFD Sender: No OFD packet to send [21:09:21]OFD Sender: No OFD packet to send [21:09:26]OFD Sender: No OFD packet to send [21:09:31]OFD Sender: No OFD packet to send [21:09:36]OFD Sender: No OFD packet to send [21:09:41]OFD Sender: No OFD packet to send [21:09:46]OFD Sender: No OFD packet to send [21:09:51]OFD Sender: No OFD packet to send [21:09:56]OFD Sender: No OFD packet to send [21:10:01]OFD Sender: No OFD packet to send [21:10:06]OFD Sender: No OFD packet to send [21:10:11]OFD Sender: No OFD packet to send [21:10:16]OFD Sender: No OFD packet to send [21:10:21]OFD Sender: No OFD packet to send [21:10:26]OFD Sender: No OFD packet to send [21:10:31]OFD Sender: No OFD packet to send [21:10:36]OFD Sender: No OFD packet to send [21:10:41]OFD Sender: No OFD packet to send [21:10:46]OFD Sender: No OFD packet to send [21:10:51]OFD Sender: No OFD packet to send [21:10:56]OFD Sender: No OFD packet to send [21:11:01]OFD Sender: No OFD packet to send [21:11:06]OFD Sender: No OFD packet to send [21:11:11]OFD Sender: No OFD packet to send [21:11:16]OFD Sender: No OFD packet to send [21:11:21]OFD Sender: No OFD packet to send [21:11:26]OFD Sender: No OFD packet to send [21:11:31]OFD Sender: No OFD packet to send [21:11:36]OFD Sender: No OFD packet to send [21:11:41]OFD Sender: No OFD packet to send [21:11:46]OFD Sender: No OFD packet to send [21:11:51]OFD Sender: No OFD packet to send [21:11:56]OFD Sender: No OFD packet to send [21:12:01]OFD Sender: No OFD packet to send [21:12:06]OFD Sender: No OFD packet to send [21:12:11]OFD Sender: No OFD packet to send [21:12:16]OFD Sender: No OFD packet to send [21:12:21]OFD Sender: No OFD packet to send [21:12:26]OFD Sender: No OFD packet to send [21:12:31]OFD Sender: No OFD packet to send [21:12:36]OFD Sender: No OFD packet to send [21:12:41]OFD Sender: No OFD packet to send [21:12:46]OFD Sender: No OFD packet to send [21:12:51]OFD Sender: No OFD packet to send [21:12:56]OFD Sender: No OFD packet to send [21:13:01]OFD Sender: No OFD packet to send [21:13:06]OFD Sender: No OFD packet to send [21:13:11]OFD Sender: No OFD packet to send [21:13:16]OFD Sender: No OFD packet to send [21:13:21]OFD Sender: No OFD packet to send [21:13:26]OFD Sender: No OFD packet to send [21:13:31]OFD Sender: No OFD packet to send [21:13:36]OFD Sender: No OFD packet to send [21:13:41]OFD Sender: No OFD packet to send [21:13:46]OFD Sender: No OFD packet to send [21:13:51]OFD Sender: No OFD packet to send [21:13:56]OFD Sender: No OFD packet to send [21:14:01]OFD Sender: No OFD packet to send [21:14:06]OFD Sender: No OFD packet to send [21:14:11]OFD Sender: No OFD packet to send [21:14:16]OFD Sender: No OFD packet to send [21:14:21]OFD Sender: No OFD packet to send [21:14:26]OFD Sender: No OFD packet to send [21:14:31]OFD Sender: No OFD packet to send [21:14:36]OFD Sender: No OFD packet to send [21:14:42]OFD Sender: No OFD packet to send [21:14:47]OFD Sender: No OFD packet to send [21:14:52]OFD Sender: No OFD packet to send [21:14:57]OFD Sender: No OFD packet to send [21:15:02]OFD Sender: No OFD packet to send [21:15:07]OFD Sender: No OFD packet to send [21:15:12]OFD Sender: No OFD packet to send [21:15:17]OFD Sender: No OFD packet to send [21:15:22]OFD Sender: No OFD packet to send [21:15:27]OFD Sender: No OFD packet to send [21:15:32]OFD Sender: No OFD packet to send [21:15:37]OFD Sender: No OFD packet to send [21:15:42]OFD Sender: No OFD packet to send [21:15:47]OFD Sender: No OFD packet to send [21:15:52]OFD Sender: No OFD packet to send [21:15:57]OFD Sender: No OFD packet to send [21:16:02]OFD Sender: No OFD packet to send [21:16:07]OFD Sender: No OFD packet to send [21:16:12]OFD Sender: No OFD packet to send [21:16:17]OFD Sender: No OFD packet to send [21:16:22]OFD Sender: No OFD packet to send [21:16:27]OFD Sender: No OFD packet to send [21:16:32]OFD Sender: No OFD packet to send [21:16:37]OFD Sender: No OFD packet to send [21:16:42]OFD Sender: No OFD packet to send [21:16:47]OFD Sender: No OFD packet to send [21:16:52]OFD Sender: No OFD packet to send [21:16:57]OFD Sender: No OFD packet to send [21:17:02]OFD Sender: No OFD packet to send [21:17:07]OFD Sender: No OFD packet to send [21:17:12]OFD Sender: No OFD packet to send [21:17:17]OFD Sender: No OFD packet to send [21:17:22]OFD Sender: No OFD packet to send [21:17:27]OFD Sender: No OFD packet to send [21:17:32]OFD Sender: No OFD packet to send [21:17:37]OFD Sender: No OFD packet to send [21:17:42]OFD Sender: No OFD packet to send [21:17:47]OFD Sender: No OFD packet to send [21:17:52]OFD Sender: No OFD packet to send [21:17:57]OFD Sender: No OFD packet to send [21:18:02]OFD Sender: No OFD packet to send [21:18:07]OFD Sender: No OFD packet to send [21:18:12]OFD Sender: No OFD packet to send [21:18:17]OFD Sender: No OFD packet to send [21:18:22]OFD Sender: No OFD packet to send [21:18:27]OFD Sender: No OFD packet to send [21:18:32]OFD Sender: No OFD packet to send [21:18:37]OFD Sender: No OFD packet to send [21:18:42]OFD Sender: No OFD packet to send [21:18:47]OFD Sender: No OFD packet to send [21:18:52]OFD Sender: No OFD packet to send [21:18:57]OFD Sender: No OFD packet to send [21:19:02]OFD Sender: No OFD packet to send [21:19:07]OFD Sender: No OFD packet to send [21:19:12]OFD Sender: No OFD packet to send [21:19:17]OFD Sender: No OFD packet to send [21:19:22]OFD Sender: No OFD packet to send [21:19:27]OFD Sender: No OFD packet to send [21:19:32]OFD Sender: No OFD packet to send [21:19:37]OFD Sender: No OFD packet to send [21:19:42]OFD Sender: No OFD packet to send [21:19:47]OFD Sender: No OFD packet to send [21:19:52]OFD Sender: No OFD packet to send [21:19:57]OFD Sender: No OFD packet to send [21:20:02]OFD Sender: No OFD packet to send [21:20:07]OFD Sender: No OFD packet to send [21:20:12]OFD Sender: No OFD packet to send [21:20:17]OFD Sender: No OFD packet to send [21:20:22]OFD Sender: No OFD packet to send [21:20:27]OFD Sender: No OFD packet to send [21:20:32]OFD Sender: No OFD packet to send [21:20:37]OFD Sender: No OFD packet to send [21:20:42]OFD Sender: No OFD packet to send [21:20:47]OFD Sender: No OFD packet to send [21:20:52]OFD Sender: No OFD packet to send [21:20:57]OFD Sender: No OFD packet to send [21:21:02]OFD Sender: No OFD packet to send [21:21:07]OFD Sender: No OFD packet to send [21:21:12]OFD Sender: No OFD packet to send [21:21:17]OFD Sender: No OFD packet to send [21:21:22]OFD Sender: No OFD packet to send [21:21:27]OFD Sender: No OFD packet to send [21:21:32]OFD Sender: No OFD packet to send [21:21:37]OFD Sender: No OFD packet to send [21:21:42]OFD Sender: No OFD packet to send [21:21:47]OFD Sender: No OFD packet to send [21:21:52]OFD Sender: No OFD packet to send [21:21:57]OFD Sender: No OFD packet to send [21:22:02]OFD Sender: No OFD packet to send [21:22:07]OFD Sender: No OFD packet to send [21:22:12]OFD Sender: No OFD packet to send [21:22:17]OFD Sender: No OFD packet to send [21:22:22]OFD Sender: No OFD packet to send [21:22:27]OFD Sender: No OFD packet to send [21:22:32]OFD Sender: No OFD packet to send [21:22:37]OFD Sender: No OFD packet to send [21:22: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]OFD Sender: No OFD packet to send [21:27:47]OFD Sender: No OFD packet to send [21:27:52]OFD Sender: No OFD packet to send [21:27:57]OFD Sender: No OFD packet to send [21:28:02]OFD Sender: No OFD packet to send [21:28:07]OFD Sender: No OFD packet to send [21:28:12]OFD Sender: No OFD packet to send [21:28:17]OFD Sender: No OFD packet to send [21:28:22]OFD Sender: No OFD packet to send [21:28:27]OFD Sender: No OFD packet to send [21:28:32]OFD Sender: No OFD packet to send [21:28:37]OFD Sender: No OFD packet to send [21:28:42]OFD Sender: No OFD packet to send [21:28:47]OFD Sender: No OFD packet to send [21:28:52]OFD Sender: No OFD packet to send [21:28:57]OFD Sender: No OFD packet to send [21:29:02]OFD Sender: No OFD packet to send [21:29:07]OFD Sender: No OFD packet to send [21:29:12]OFD Sender: No OFD packet to send [21:29:17]OFD Sender: No OFD packet to send [21:29:22]OFD Sender: No OFD packet to send [21:29:27]OFD Sender: No OFD packet to send [21:29:32]OFD Sender: No OFD packet to send [21:29:37]OFD Sender: No OFD packet to send [21:29:42]OFD Sender: No OFD packet to send [21:29:47]OFD Sender: No OFD packet to send [21:29:52]OFD Sender: No OFD packet to send [21:29:57]OFD Sender: No OFD packet to send [21:30:02]OFD Sender: No OFD packet to send [21:30:07]OFD Sender: No OFD packet to send [21:30:12]OFD Sender: No OFD packet to send [21:30:17]OFD Sender: No OFD packet to send [21:30:22]OFD Sender: No OFD packet to send [21:30:27]OFD Sender: No OFD packet to send [21:30:32]OFD Sender: No OFD packet to send [21:30:37]OFD Sender: No OFD packet to send [21:30:42]OFD Sender: No OFD packet to send [21:30:47]OFD Sender: No OFD packet to send [21:30:52]OFD Sender: No OFD packet to send [21:30:57]OFD Sender: No OFD packet to send [21:31:02]OFD Sender: No OFD packet to send [21:31:07]OFD Sender: No OFD packet to send [21:31:12]OFD Sender: No OFD packet to send [21:31:17]OFD Sender: No OFD packet to send [21:31:22]OFD Sender: No OFD packet to send [21:31:27]OFD Sender: No OFD packet to send [21:31:32]OFD Sender: No OFD packet to send [21:31:37]OFD Sender: No OFD packet to send [21:31:42]OFD Sender: No OFD packet to send [21:31:47]OFD Sender: No OFD packet to send [21:31:52]OFD Sender: No OFD packet to send [21:31:57]OFD Sender: No OFD packet to send [21:32:02]OFD Sender: No OFD packet to send [21:32:07]OFD Sender: No OFD packet to send [21:32:12]OFD Sender: No OFD packet to send [21:32:17]OFD Sender: No OFD packet to send [21:32:22]OFD Sender: No OFD packet to send [21:32:27]OFD Sender: No OFD packet to send [21:32:32]OFD Sender: No OFD packet to send [21:32:37]OFD Sender: No OFD packet to send [21:32:42]OFD Sender: No OFD packet to send [21:32:47]OFD Sender: No OFD packet to send [21:32:52]OFD Sender: No OFD packet to send [21:32:57]OFD Sender: No OFD packet to send [21:33:02]OFD Sender: No OFD packet to send [21:33:07]OFD Sender: No OFD packet to send [21:33:12]OFD Sender: No OFD packet to send [21:33:17]OFD Sender: No OFD packet to send [21:33:22]OFD Sender: No OFD packet to send [21:33:27]OFD Sender: No OFD packet to send [21:33:32]OFD Sender: No OFD packet to send [21:33:37]OFD Sender: No OFD packet to send [21:33:42]OFD Sender: No OFD packet to send [21:33:47]OFD Sender: No OFD packet to send [21:33:52]OFD Sender: No OFD packet to send [21:33:57]OFD Sender: No OFD packet to send [21:34:02]OFD Sender: No OFD packet to send [21:34:07]OFD Sender: No OFD packet to send [21:34:12]OFD Sender: No OFD packet to send [21:34:17]OFD Sender: No OFD packet to send [21:34:23]OFD Sender: No OFD packet to send [21:34:28]OFD Sender: No OFD packet to send [21:34:33]OFD Sender: No OFD packet to send [21:34:38]OFD Sender: No OFD packet to send [21:34:43]OFD Sender: No OFD packet to send [21:34:48]OFD Sender: No OFD packet to send [21:34:53]OFD Sender: No OFD packet to send [21:34:58]OFD Sender: No OFD packet to send [21:35:03]OFD Sender: No OFD packet to send [21:35:08]OFD Sender: No OFD packet to send [21:35:13]OFD Sender: No OFD packet to send [21:35:18]OFD Sender: No OFD packet to send [21:35:23]OFD Sender: No OFD packet to send [21:35:24]accept exits with 7 [21:35:24]New connection [21:35:24]New thread 3067084132 created [21:35:24]Thread 3067227492 joined [21:35:24]Waiting for new connection... [21:35:24] Sock 7.Parse request [21:35:24]Sock 7.Check first char [21:35:24]Sock 7.First char is OK [21:35:24]request: POST /json_proto HTTP/1.0 [21:35:24]Method: POST [21:35:24]URL: /json_proto [21:35:24]Method is POST - this is cgi request [21:35:24]url: /json_proto [21:35:24]query_string will be loaded in cgi processing [21:35:24]execute_cgi json_proto POST (null) [21:35:24]execute_cgi path=json_proto method=POST [21:35:24]POST find Content-Length [21:35:24]Host: 172.17.36.132:8080 [21:35:24]Content-Length: 677 [21:35:24]Content-Type: application/json [21:35:24] [21:35:24]POST finish read [21:35:24]Found Content-Length = 677 [21:35:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706586", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.000, "sum" : 334.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 334.00, "payments": [ { "type": 0, "sum" : 334.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:35:24]execute_script... [21:35: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)706586", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.000, "sum" : 334.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 334.00, "payments": [ { "type": 0, "sum" : 334.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:35:24]POST & json_proto [21:35:24]process_json_proto [21:35:24]json parsed OK: [21:35:24]protocol is kg_v1.0 [21:35:24]action value=close_receipt [21:35:24]process_action close_receipt [21:35:24]cmd_close_receipt [21:35:24]MH_GetDate [21:35:24]Write to MH i2c: F0 00 00 3F 04 32 [21:35:24]Write i2c OK [21:35:24]MH_I2C_Read... [21:35:24]Read from MH i2c: F0 [21:35:24]MH_I2C_Read... [21:35:24]Read from MH i2c: F0 09 00 [21:35:24]MH_I2C_Read... [21:35:24]Read from MH i2c: F0 09 00 3F 04 00 1D 37 5E 66 B2 22 B0 64 3B [21:35:24]GetLastDocTimeStamp 1717448944 [21:35:24]current date 1717450525 [21:35:24]FM_GetShiftState [21:35:24]SAM_PROTO_GetShiftState [21:35:24]wFMCommunicate request_size=4 [21:35:24]MH_SAM_APDU [21:35:24]CAPDU: 80 13 01 00 [21:35:24]Write to MH i2c: E2 08 00 40 04 80 13 01 00 00 00 00 00 C1 [21:35:24]Write i2c OK [21:35:24]MH_I2C_Read... [21:35:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:35:24]Read from MH i2c: E2 [21:35:24]MH_I2C_Read... [21:35:24]Read from MH i2c: E2 0E 00 [21:35:24]MH_I2C_Read... [21:35:24]Read from MH i2c: E2 0E 00 40 04 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 9C [21:35:24]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [21:35:24]wFMCommunicate OK [21:35:24]SAM_PROTO_GetShiftState done [21:35:24]FM_GetShiftState done [21:35:24]opened in 1717378033 [21:35:24]opened+sec_in_day 1717464433 [21:35:24]quantity*price = 33450 [21:35:24]sum+1 = 33451 [21:35:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 334.00 Внесено: 500.00 СДАЧА: 166.00 НСП 1% : 2.96 НДС 12% : 35.52 Наличными: 334.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 222 03.06.2024 21:35 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68476 ФПД: 206153116548508 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T213525&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68476&fm=206153116548508&tin=02508201610067®Number=0000000000098096&sum=33400 [21:35:25]StoreToDocumentArchive [21:35:25]shift 324 fd 68476 [21:35:25]save to /storage/0324/doc_00068476 [21:35:25]save last doc name /storage/0324/doc_00068476 to /storage/kkm_last_doc_name [21:35:25]save OK [21:35:25]Clear old archive folders... [21:35:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:35:25]tlvbuf is 00A45010 [21:35:25]SAM_PROTO_ClearQueue [21:35:25]wFMCommunicate request_size=4 [21:35:25]MH_SAM_APDU [21:35:25]CAPDU: 80 09 00 00 [21:35:25]Write to MH i2c: E2 08 00 4D 04 80 09 00 00 00 00 00 00 C3 [21:35:25]Write i2c OK [21:35:25]MH_I2C_Read... [21:35:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:35:26]Read from MH i2c: E2 [21:35:26]MH_I2C_Read... [21:35:26]Read from MH i2c: E2 03 00 [21:35:26]MH_I2C_Read... [21:35:26]Read from MH i2c: E2 03 00 4D 04 00 90 00 C5 [21:35:26]RAPDU: 90 00 [21:35:26]wFMCommunicate OK [21:35:26]SAM_PROTO_ClearQueue done [21:35:26]KKMCreateOFDPacket [21:35:26]OFDProtocolAddRootSTLVToBuf [21:35:26]FM_MakeSignedData [21:35:26]FM_MakeSignedData [21:35:26]SAM_PROTO_SignData [21:35:26]wFMCommunicate request_size=4 [21:35:26]MH_SAM_APDU [21:35:26]CAPDU: 80 0D 01 02 [21:35:26]Write to MH i2c: E2 08 00 4E 04 80 0D 01 02 00 00 00 00 CB [21:35:26]Write i2c OK [21:35:26]MH_I2C_Read... [21:35:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:35:26]Read from MH i2c: E2 [21:35:26]MH_I2C_Read... [21:35:26]Read from MH i2c: E2 03 00 [21:35:26]MH_I2C_Read... [21:35:26]Read from MH i2c: E2 03 00 4E 04 00 90 00 C6 [21:35:26]RAPDU: 90 00 [21:35:26]wFMCommunicate OK [21:35:26]wFMCommunicate request_size=255 [21:35:26]MH_SAM_APDU [21:35:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 AA 82 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 0D 00 00 00 00 07 04 06 00 78 82 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 1D 37 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 7C 0B 01 00 35 04 06 00 BB [21:35:26]Write to MH i2c: E2 02 01 4F 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 AA 82 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 0D 00 00 00 00 07 04 06 00 78 82 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 1D 37 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 7C 0B 01 00 35 04 06 00 BB 00 00 5E [21:35:26]Write i2c OK [21:35:26]MH_I2C_Read... [21:35:26]Read from MH i2c: E2 [21:35:26]MH_I2C_Read... [21:35:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:35:26]Read from MH i2c: E2 03 00 [21:35:26]MH_I2C_Read... [21:35:26]Read from MH i2c: E2 03 00 4F 04 00 90 00 C7 [21:35:26]RAPDU: 90 00 [21:35:26]wFMCommunicate OK [21:35:26]wFMCommunicate request_size=10 [21:35:26]MH_SAM_APDU [21:35:26]CAPDU: 80 0D 02 02 05 7E C3 47 FD 9C [21:35:26]Write to MH i2c: E2 0D 00 50 04 80 0D 02 02 05 00 7E C3 47 FD 9C 00 00 F9 [21:35:26]Write i2c OK [21:35:26]MH_I2C_Read... [21:35:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:35:26]Read from MH i2c: E2 [21:35:26]MH_I2C_Read... [21:35:26]Read from MH i2c: E2 03 00 [21:35:26]MH_I2C_Read... [21:35:26]Read from MH i2c: E2 03 00 50 04 00 90 00 C8 [21:35:26]RAPDU: 90 00 [21:35:26]wFMCommunicate OK [21:35:26]wFMCommunicate request_size=4 [21:35:26]MH_SAM_APDU [21:35:26]CAPDU: 80 0D 03 02 [21:35:26]Write to MH i2c: E2 08 00 51 04 80 0D 03 02 00 00 00 00 D0 [21:35:26]Write i2c OK [21:35:26]MH_I2C_Read... [21:35:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:35:26]Read from MH i2c: E2 [21:35:26]MH_I2C_Read... [21:35:26]Read from MH i2c: E2 0B 00 [21:35:26]MH_I2C_Read... [21:35:26]Read from MH i2c: E2 0B 00 51 04 00 EF C8 61 5A C4 31 F6 BB 90 00 E9 [21:35:26]RAPDU: EF C8 61 5A C4 31 F6 BB 90 00 [21:35:26]wFMCommunicate OK [21:35:26]SAM_PROTO_SignData done [21:35:26]FM_MakeSignedData done [21:35:26]CreateOFDProtocolMessage [21:35:26]wFMCommunicate request_size=4 [21:35:26]MH_SAM_APDU [21:35:26]CAPDU: 80 11 00 00 [21:35:26]Write to MH i2c: E2 08 00 52 04 80 11 00 00 00 00 00 00 D0 [21:35:26]Write i2c OK [21:35:26]MH_I2C_Read... [21:35:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:35:26]Read from MH i2c: E2 [21:35:26]MH_I2C_Read... [21:35:26]Read from MH i2c: E2 17 00 [21:35:26]MH_I2C_Read... [21:35:26]Read from MH i2c: E2 17 00 52 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 1B [21:35:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [21:35:26]wFMCommunicate OK [21:35:26]CreateOFDProtocolMessage done [21:35:26]OFDSenderStorePacket 68476 [21:35:26]StoreOFDPacket docnum=68476 [21:35:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 2B FB 07 01 FE 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 AA 82 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 0D 00 00 00 00 07 04 06 00 78 82 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 1D 37 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 7C 0B 01 00 35 04 06 00 BB 7E C3 47 FD 9C EF C8 61 5A C4 31 F6 BB [21:35:26]CheckFolder [21:35:26]dirname=/storage/ofd_packets [21:35:26]CheckFolder done [21:35:26]ProducePacketName [21:35:26]name=ofd_packets/00068476 [21:35:26]NVStorageSaveData ofd_packets/00068476 [21:35:26]File name is /storage/ofd_packets/00068476 [21:35:26]Write 301 bytes [21:35:26]NVStorageSaveData done [21:35:26]OFDSenderStorePacket done [21:35:26]KKMCreateOFDPacket done [21:35:26]NVStorageSaveData kkm_last_timestamp [21:35:26]File name is /storage/kkm_last_timestamp [21:35:26]Write 4 bytes [21:35:26]NVStorageSaveData done [21:35:26]ExternCall_PrintAddStr [21:35:26]wPrintStart [21:35:26]Write to MH i2c: 01 00 00 53 04 57 [21:35:26]Write i2c OK [21:35:26]MH_I2C_Read... [21:35:26]Read from MH i2c: 01 [21:35:26]MH_I2C_Read... [21:35:26]Read from MH i2c: 01 07 00 [21:35:26]MH_I2C_Read... [21:35:26]Read from MH i2c: 01 07 00 53 04 00 00 00 00 00 FF 0F 6C [21:35:26]RasterBufferAndPrint [21:35:26]line Счет N : (1)706586 [21:35:26]line ИНН: 02508201610067 [21:35:26]line Контрольно-Кассовый Чек [21:35:26]line ПРОДАЖА [21:35:26]line ТРК (МРК, ГНК) : 63 [21:35:26]line Товар: 2710124130 [21:35:26]line Аи-92-К-4 [21:35:26]line 5.000 * 66.90 [21:35:26]line = 334.50 [21:35:26]line НДС 12% НСП 1% [21:35:26]line > о реализуемом товаре [21:35:26]line ОКРУГЛЕНИЕ: -0.50 [21:35:26]line ИТОГО: 334.00 [21:35:26]line Внесено: 500.00 [21:35:26]line СДАЧА: 166.00 [21:35:26]line НСП 1% : 2.96 [21:35:26]line НДС 12% : 35.52 [21:35:26]line Наличными: 334.00 [21:35:26]line Безнал.: 0.00 [21:35:26]line Место: АЗС № 62 "Партнер Нефть" [21:35:26]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [21:35:26]line СНО: Общий режим [21:35:26]line Чек 222 03.06.2024 21:35 [21:35:26]line Смена: 324 ФФД: 1.0 [21:35:26]line ЗНМ: 0300000181 [21:35:26]line РНМ: 0000000000098096 [21:35:26]line Версия ККМ: 001 [21:35:26]line ФМ: 0000000000965400 [21:35:26]line ФД: 68476 [21:35:26]line ФПД: 206153116548508 [21:35:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T213525&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68476&fm=206153116548508&tin=02508201610067®Number=0000000000098096&sum=33400 [21:35:26]OFD Sender: Processing packet 68476 [packets to send 26, broken 25] [21:35:26]ProducePacketName [21:35:26]name=ofd_packets/00068476 [21:35:26]OFD Sender: To server: pG, [21:35:26]CommunicateWithHost lk.salyk.kg:30040 [21:35:26]ConnectInit lk.salyk.kg [21:35:26]written 0, free lines is 4095 [21:35:26]Connected sock=10 [21:35:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 2B FB 07 01 FE 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 AA 82 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 0D 00 00 00 00 07 04 06 00 78 82 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 1D 37 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 7C 0B 01 00 35 04 06 00 BB 7E C3 47 FD 9C EF C8 61 5A C4 31 F6 BB [21:35:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 E3 FF 47 00 8C B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 7C 0B 01 00 F4 03 04 00 18 DE 5D 66 B6 04 01 00 00 21 06 54 CB 3E 63 3D B7 [21:35:27]CommunicateWithHost err = 0 [21:35:27]CheckOFDResponse [21:35:27]1017 (14) - 77093643461234 [21:35:27]1041 (16) - 0000000000965400 [21:35:27]1040 (4) - 68476 [21:35:27]1012 (4) - 03.06.2024 15:15 [21:35:27]1206 (1) - 0 [21:35:27]OFD Sender: Remove packet 68476 [21:35:27]ProducePacketName [21:35:27]name=ofd_packets/00068476 [21:35:27]NVStorageDeleteData [21:35:27]Write to MH i2c: 01 00 00 7E 04 82 [21:35:27]Write i2c OK [21:35:27]MH_I2C_Read... [21:35:27]Read from MH i2c: 01 [21:35:27]MH_I2C_Read... [21:35:27]Read from MH i2c: 01 07 00 [21:35:27]MH_I2C_Read... [21:35:27]Read from MH i2c: 01 07 00 7E 04 00 00 00 00 00 D0 0C 65 [21:35:27]RasterBufferAndPrint [21:35:27]line [21:35:27]line [21:35:27]line [21:35:27]line [21:35:27]line [21:35:27]written 0, free lines is 3288 [21:35:27]MH_Cut [21:35:27]Write to MH i2c: D1 01 00 85 04 01 5B [21:35:27]Write i2c OK [21:35:27]MH_I2C_Read... [21:35:27]Read from MH i2c: D1 [21:35:27]MH_I2C_Read... [21:35:27]Read from MH i2c: D1 01 00 [21:35:27]MH_I2C_Read... [21:35:27]Read from MH i2c: D1 01 00 85 04 00 5A [21:35:27]Write to MH i2c: 01 00 00 86 04 8A [21:35:27]Write i2c OK [21:35:27]MH_I2C_Read... [21:35:27]OFD Sender: No OFD packet to send [21:35:28]*** Cut start [21:35:28]*** Partial cut [21:35:28]*** CUTSNS_PIN = 1 [21:35:28]*** CUTSNS_PIN = 0 [21:35:28]*** Brake cut motor [21:35:28]Read from MH i2c: 01 [21:35:28]MH_I2C_Read... [21:35:28]*** Stop cut motor [21:35:28]*** Cut end [21:35:28]Read from MH i2c: 01 07 00 [21:35:28]MH_I2C_Read... [21:35:28]Read from MH i2c: 01 07 00 86 04 00 00 00 00 00 FF 0F 9F [21:35:28]process_action close_receipt done [21:35:28]requested_data is exist [21:35:28]produce_requested_data [21:35:28]requested_item fm.sn is exist - process it [21:35:28]wFMCommunicate request_size=4 [21:35:28]MH_SAM_APDU [21:35:28]CAPDU: 80 11 00 00 [21:35:28]Write to MH i2c: E2 08 00 87 04 80 11 00 00 00 00 00 00 05 [21:35:28]Write i2c OK [21:35:28]MH_I2C_Read... [21:35:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:35:28]Read from MH i2c: E2 [21:35:28]MH_I2C_Read... [21:35:28]Read from MH i2c: E2 17 00 [21:35:28]MH_I2C_Read... [21:35:28]Read from MH i2c: E2 17 00 87 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 50 [21:35:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [21:35:28]wFMCommunicate OK [21:35:28]requested_item fd.num is exist - process it [21:35:28]SAM_PROTO_GetFieldsCounters [21:35:28]wFMCommunicate request_size=4 [21:35:28]MH_SAM_APDU [21:35:28]CAPDU: 80 13 00 00 [21:35:28]Write to MH i2c: E2 08 00 88 04 80 13 00 00 00 00 00 00 08 [21:35:28]Write i2c OK [21:35:28]MH_I2C_Read... [21:35:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:35:28]Read from MH i2c: E2 [21:35:28]MH_I2C_Read... [21:35:28]Read from MH i2c: E2 62 00 [21:35:28]MH_I2C_Read... [21:35:28]Read from MH i2c: E2 62 00 88 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 7C 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 8F [21:35:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 7C 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:35:28]wFMCommunicate OK [21:35:28]SAM_PROTO_GetFieldsCounters done [21:35:28]requested_item shift.num is exist - process it [21:35:28]requested_item shift.opened is exist - process it [21:35:28]req_shift_opened [21:35:28]FM_GetShiftState [21:35:28]SAM_PROTO_GetShiftState [21:35:28]wFMCommunicate request_size=4 [21:35:28]MH_SAM_APDU [21:35:28]CAPDU: 80 13 01 00 [21:35:28]Write to MH i2c: E2 08 00 89 04 80 13 01 00 00 00 00 00 0A [21:35:28]Write i2c OK [21:35:28]MH_I2C_Read... [21:35:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:35:29]Read from MH i2c: E2 [21:35:29]MH_I2C_Read... [21:35:29]Read from MH i2c: E2 0E 00 [21:35:29]MH_I2C_Read... [21:35:29]Read from MH i2c: E2 0E 00 89 04 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 E5 [21:35:29]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [21:35:29]wFMCommunicate OK [21:35:29]SAM_PROTO_GetShiftState done [21:35:29]FM_GetShiftState done [21:35:29]req_shift_opened done [21:35:29]requested_item shift.open_date is exist - process it [21:35:29]req_shift_open_date [21:35:29]req_shift_open_date done [21:35:29]produce_requested_data done [21:35:29]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68476,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [21:35:29]process_action_free close_receipt [21:35:29]json_value_free [21:35:29]json_value_free done [21:35:29]process_json_proto returns [21:35:29]Send response to host [21:35:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68476,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [21:35:29]free response buf [21:35:29]execute_script done [21:35:29]execute_script returns [21:35:29]free content buf [21:35:29]Sock 7.Close socket [21:35:29]Sock 7.Thread stoped [21:35:32]OFD Sender: No OFD packet to send [21:35:37]OFD Sender: No OFD packet to send [21:35:42]OFD Sender: No OFD packet to send [21:35:47]OFD Sender: No OFD packet to send [21:35:52]OFD Sender: No OFD packet to send [21:35:57]OFD Sender: No OFD packet to send [21:36:02]OFD Sender: No OFD packet to send [21:36:07]OFD Sender: No OFD packet to send [21:36:12]OFD Sender: No OFD packet to send [21:36:17]OFD Sender: No OFD packet to send [21:36:22]OFD Sender: No OFD packet to send [21:36:27]OFD Sender: No OFD packet to send [21:36:32]OFD Sender: No OFD packet to send [21:36:37]OFD Sender: No OFD packet to send [21:36:39]accept exits with 9 [21:36:39]New connection [21:36:39]New thread 3067227492 created [21:36:39]Thread 3067084132 joined [21:36:39]Waiting for new connection... [21:36:39] Sock 9.Parse request [21:36:39]Sock 9.Check first char [21:36:39]Sock 9.First char is OK [21:36:39]request: POST /json_proto HTTP/1.0 [21:36:39]Method: POST [21:36:39]URL: /json_proto [21:36:39]Method is POST - this is cgi request [21:36:39]url: /json_proto [21:36:39]query_string will be loaded in cgi processing [21:36:39]execute_cgi json_proto POST (null) [21:36:39]execute_cgi path=json_proto method=POST [21:36:39]POST find Content-Length [21:36:39]Host: 172.17.36.132:8080 [21:36:39]Content-Length: 677 [21:36:39]Content-Type: application/json [21:36:39] [21:36:39]POST finish read [21:36:39]Found Content-Length = 677 [21:36:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706587", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:36:39]execute_script... [21:36:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706587", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:36:39]POST & json_proto [21:36:39]process_json_proto [21:36:39]json parsed OK: [21:36:39]protocol is kg_v1.0 [21:36:39]action value=close_receipt [21:36:39]process_action close_receipt [21:36:39]cmd_close_receipt [21:36:39]MH_GetDate [21:36:39]Write to MH i2c: F0 00 00 8A 04 7D [21:36:39]Write i2c OK [21:36:39]MH_I2C_Read... [21:36:39]Read from MH i2c: F0 [21:36:39]MH_I2C_Read... [21:36:39]Read from MH i2c: F0 09 00 [21:36:39]MH_I2C_Read... [21:36:39]Read from MH i2c: F0 09 00 8A 04 00 68 37 5E 66 B2 22 B0 64 D1 [21:36:39]GetLastDocTimeStamp 1717450525 [21:36:39]current date 1717450600 [21:36:39]FM_GetShiftState [21:36:39]SAM_PROTO_GetShiftState [21:36:39]wFMCommunicate request_size=4 [21:36:39]MH_SAM_APDU [21:36:39]CAPDU: 80 13 01 00 [21:36:39]Write to MH i2c: E2 08 00 8B 04 80 13 01 00 00 00 00 00 0C [21:36:39]Write i2c OK [21:36:39]MH_I2C_Read... [21:36:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:36:39]Read from MH i2c: E2 [21:36:39]MH_I2C_Read... [21:36:39]Read from MH i2c: E2 0E 00 [21:36:39]MH_I2C_Read... [21:36:39]Read from MH i2c: E2 0E 00 8B 04 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 E7 [21:36:39]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [21:36:39]wFMCommunicate OK [21:36:39]SAM_PROTO_GetShiftState done [21:36:39]FM_GetShiftState done [21:36:39]opened in 1717378033 [21:36:39]opened+sec_in_day 1717464433 [21:36:39]quantity*price = 20003 [21:36:39]sum+1 = 20004 [21:36:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 223 03.06.2024 21:36 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68477 ФПД: 214987870204638 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T213640&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68477&fm=214987870204638&tin=02508201610067®Number=0000000000098096&sum=20000 [21:36:40]StoreToDocumentArchive [21:36:40]shift 324 fd 68477 [21:36:40]save to /storage/0324/doc_00068477 [21:36:40]save last doc name /storage/0324/doc_00068477 to /storage/kkm_last_doc_name [21:36:40]save OK [21:36:40]Clear old archive folders... [21:36:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:36:40]tlvbuf is 00A34A80 [21:36:40]SAM_PROTO_ClearQueue [21:36:40]wFMCommunicate request_size=4 [21:36:40]MH_SAM_APDU [21:36:40]CAPDU: 80 09 00 00 [21:36:40]Write to MH i2c: E2 08 00 98 04 80 09 00 00 00 00 00 00 0E [21:36:40]Write i2c OK [21:36:40]MH_I2C_Read... [21:36:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:36:40]Read from MH i2c: E2 [21:36:40]MH_I2C_Read... [21:36:40]Read from MH i2c: E2 03 00 [21:36:40]MH_I2C_Read... [21:36:40]Read from MH i2c: E2 03 00 98 04 00 90 00 10 [21:36:40]RAPDU: 90 00 [21:36:40]wFMCommunicate OK [21:36:40]SAM_PROTO_ClearQueue done [21:36:40]KKMCreateOFDPacket [21:36:40]OFDProtocolAddRootSTLVToBuf [21:36:40]FM_MakeSignedData [21:36:40]FM_MakeSignedData [21:36:40]SAM_PROTO_SignData [21:36:40]wFMCommunicate request_size=4 [21:36:40]MH_SAM_APDU [21:36:40]CAPDU: 80 0D 01 02 [21:36:40]Write to MH i2c: E2 08 00 99 04 80 0D 01 02 00 00 00 00 16 [21:36:40]Write i2c OK [21:36:40]MH_I2C_Read... [21:36:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:36:41]Read from MH i2c: E2 [21:36:41]MH_I2C_Read... [21:36:41]Read from MH i2c: E2 03 00 [21:36:41]MH_I2C_Read... [21:36:41]Read from MH i2c: E2 03 00 99 04 00 90 00 11 [21:36:41]RAPDU: 90 00 [21:36:41]wFMCommunicate OK [21:36:41]wFMCommunicate request_size=255 [21:36:41]MH_SAM_APDU [21:36: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 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 68 37 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 7D 0B 01 00 35 04 06 00 C3 [21:36:41]Write to MH i2c: E2 02 01 9A 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 68 37 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 7D 0B 01 00 35 04 06 00 C3 00 00 38 [21:36:41]Write i2c OK [21:36:41]MH_I2C_Read... [21:36:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:36:41]Read from MH i2c: E2 [21:36:41]MH_I2C_Read... [21:36:41]Read from MH i2c: E2 03 00 [21:36:41]MH_I2C_Read... [21:36:41]Read from MH i2c: E2 03 00 9A 04 00 90 00 12 [21:36:41]RAPDU: 90 00 [21:36:41]wFMCommunicate OK [21:36:41]wFMCommunicate request_size=10 [21:36:41]MH_SAM_APDU [21:36:41]CAPDU: 80 0D 02 02 05 87 C3 A2 72 DE [21:36:41]Write to MH i2c: E2 0D 00 9B 04 80 0D 02 02 05 00 87 C3 A2 72 DE 00 00 5F [21:36:41]Write i2c OK [21:36:41]MH_I2C_Read... [21:36:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:36:41]Read from MH i2c: E2 [21:36:41]MH_I2C_Read... [21:36:41]Read from MH i2c: E2 03 00 [21:36:41]MH_I2C_Read... [21:36:41]Read from MH i2c: E2 03 00 9B 04 00 90 00 13 [21:36:41]RAPDU: 90 00 [21:36:41]wFMCommunicate OK [21:36:41]wFMCommunicate request_size=4 [21:36:41]MH_SAM_APDU [21:36:41]CAPDU: 80 0D 03 02 [21:36:41]Write to MH i2c: E2 08 00 9C 04 80 0D 03 02 00 00 00 00 1B [21:36:41]Write i2c OK [21:36:41]MH_I2C_Read... [21:36:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:36:41]Read from MH i2c: E2 [21:36:41]MH_I2C_Read... [21:36:41]Read from MH i2c: E2 0B 00 [21:36:41]MH_I2C_Read... [21:36:41]Read from MH i2c: E2 0B 00 9C 04 00 1A 53 B6 F3 C2 B0 FB B5 90 00 54 [21:36:41]RAPDU: 1A 53 B6 F3 C2 B0 FB B5 90 00 [21:36:41]wFMCommunicate OK [21:36:41]SAM_PROTO_SignData done [21:36:41]FM_MakeSignedData done [21:36:41]CreateOFDProtocolMessage [21:36:41]wFMCommunicate request_size=4 [21:36:41]MH_SAM_APDU [21:36:41]CAPDU: 80 11 00 00 [21:36:41]Write to MH i2c: E2 08 00 9D 04 80 11 00 00 00 00 00 00 1B [21:36:41]Write i2c OK [21:36:41]MH_I2C_Read... [21:36:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:36:41]Read from MH i2c: E2 [21:36:41]MH_I2C_Read... [21:36:41]Read from MH i2c: E2 17 00 [21:36:41]MH_I2C_Read... [21:36:41]Read from MH i2c: E2 17 00 9D 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 66 [21:36:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [21:36:41]wFMCommunicate OK [21:36:41]CreateOFDProtocolMessage done [21:36:41]OFDSenderStorePacket 68477 [21:36:41]StoreOFDPacket docnum=68477 [21:36:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 52 39 07 01 B3 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 68 37 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 7D 0B 01 00 35 04 06 00 C3 87 C3 A2 72 DE 1A 53 B6 F3 C2 B0 FB B5 [21:36:41]CheckFolder [21:36:41]dirname=/storage/ofd_packets [21:36:41]CheckFolder done [21:36:41]ProducePacketName [21:36:41]name=ofd_packets/00068477 [21:36:41]NVStorageSaveData ofd_packets/00068477 [21:36:41]File name is /storage/ofd_packets/00068477 [21:36:41]Write 301 bytes [21:36:41]NVStorageSaveData done [21:36:41]OFDSenderStorePacket done [21:36:41]KKMCreateOFDPacket done [21:36:41]NVStorageSaveData kkm_last_timestamp [21:36:41]File name is /storage/kkm_last_timestamp [21:36:41]Write 4 bytes [21:36:41]NVStorageSaveData done [21:36:41]ExternCall_PrintAddStr [21:36:41]wPrintStart [21:36:41]Write to MH i2c: 01 00 00 9E 04 A2 [21:36:41]Write i2c OK [21:36:41]MH_I2C_Read... [21:36:41]Read from MH i2c: 01 [21:36:41]MH_I2C_Read... [21:36:41]Read from MH i2c: 01 07 00 [21:36:41]MH_I2C_Read... [21:36:41]Read from MH i2c: 01 07 00 9E 04 00 00 00 00 00 FF 0F B7 [21:36:41]RasterBufferAndPrint [21:36:41]line Счет N : (1)706587 [21:36:41]line ИНН: 02508201610067 [21:36:41]line Контрольно-Кассовый Чек [21:36:41]line ПРОДАЖА [21:36:41]line ТРК (МРК, ГНК) : 32 [21:36:41]line Товар: 2710124130 [21:36:41]line Аи-92-К-4 [21:36:41]line 2.990 * 66.90 [21:36:41]line = 200.03 [21:36:41]line НДС 12% НСП 1% [21:36:41]line > о реализуемом товаре [21:36:41]line ОКРУГЛЕНИЕ: -0.03 [21:36:41]line ИТОГО: 200.00 [21:36:41]line Внесено: 200.00 [21:36:41]line СДАЧА: 0.00 [21:36:41]line НСП 1% : 1.77 [21:36:41]line НДС 12% : 21.24 [21:36:41]line Наличными: 200.00 [21:36:41]line Безнал.: 0.00 [21:36:41]line Место: АЗС № 62 "Партнер Нефть" [21:36:41]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [21:36:41]line СНО: Общий режим [21:36:41]line Чек 223 03.06.2024 21:36 [21:36:41]line Смена: 324 ФФД: 1.0 [21:36:41]line ЗНМ: 0300000181 [21:36:41]line РНМ: 0000000000098096 [21:36:41]line Версия ККМ: 001 [21:36:41]line ФМ: 0000000000965400 [21:36:41]line ФД: 68477 [21:36:41]line ФПД: 214987870204638 [21:36:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T213640&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68477&fm=214987870204638&tin=02508201610067®Number=0000000000098096&sum=20000 [21:36:41]OFD Sender: Processing packet 68477 [packets to send 26, broken 25] [21:36:41]ProducePacketName [21:36:41]name=ofd_packets/00068477 [21:36:41]OFD Sender: To server: pG, [21:36:41]CommunicateWithHost lk.salyk.kg:30040 [21:36:41]ConnectInit lk.salyk.kg [21:36:41]written 0, free lines is 4095 [21:36:41]Connected sock=10 [21:36:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 52 39 07 01 B3 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 68 37 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 7D 0B 01 00 35 04 06 00 C3 87 C3 A2 72 DE 1A 53 B6 F3 C2 B0 FB B5 [21:36:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 8E 5B 47 00 A2 F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 7D 0B 01 00 F4 03 04 00 63 DE 5D 66 B6 04 01 00 00 3B FA 17 DE A8 47 33 97 [21:36:42]CommunicateWithHost err = 0 [21:36:42]CheckOFDResponse [21:36:42]1017 (14) - 77093643461234 [21:36:42]1041 (16) - 0000000000965400 [21:36:42]1040 (4) - 68477 [21:36:42]1012 (4) - 03.06.2024 15:16 [21:36:42]1206 (1) - 0 [21:36:42]OFD Sender: Remove packet 68477 [21:36:42]ProducePacketName [21:36:42]name=ofd_packets/00068477 [21:36:42]NVStorageDeleteData [21:36:42]Write to MH i2c: 01 00 00 C9 04 CD [21:36:42]Write i2c OK [21:36:42]MH_I2C_Read... [21:36:42]Read from MH i2c: 01 [21:36:42]MH_I2C_Read... [21:36:42]Read from MH i2c: 01 07 00 [21:36:42]MH_I2C_Read... [21:36:42]Read from MH i2c: 01 07 00 C9 04 00 00 00 00 00 D6 0C B6 [21:36:42]RasterBufferAndPrint [21:36:42]line [21:36:42]line [21:36:42]line [21:36:42]line [21:36:42]line [21:36:42]written 0, free lines is 3289 [21:36:42]MH_Cut [21:36:42]Write to MH i2c: D1 01 00 D0 04 01 A6 [21:36:42]Write i2c OK [21:36:42]MH_I2C_Read... [21:36:42]Read from MH i2c: D1 [21:36:42]MH_I2C_Read... [21:36:42]Read from MH i2c: D1 01 00 [21:36:42]MH_I2C_Read... [21:36:42]Read from MH i2c: D1 01 00 D0 04 00 A5 [21:36:42]Write to MH i2c: 01 00 00 D1 04 D5 [21:36:42]Write i2c OK [21:36:42]MH_I2C_Read... [21:36:42]OFD Sender: No OFD packet to send [21:36:43]*** Cut start [21:36:43]*** Partial cut [21:36:43]*** CUTSNS_PIN = 1 [21:36:43]*** CUTSNS_PIN = 0 [21:36:43]*** Brake cut motor [21:36:43]Read from MH i2c: 01 [21:36:43]MH_I2C_Read... [21:36:43]*** Stop cut motor [21:36:43]*** Cut end [21:36:43]Read from MH i2c: 01 07 00 [21:36:43]MH_I2C_Read... [21:36:43]Read from MH i2c: 01 07 00 D1 04 00 00 00 00 00 FF 0F EA [21:36:43]process_action close_receipt done [21:36:43]requested_data is exist [21:36:43]produce_requested_data [21:36:43]requested_item fm.sn is exist - process it [21:36:43]wFMCommunicate request_size=4 [21:36:43]MH_SAM_APDU [21:36:43]CAPDU: 80 11 00 00 [21:36:43]Write to MH i2c: E2 08 00 D2 04 80 11 00 00 00 00 00 00 50 [21:36:43]Write i2c OK [21:36:43]MH_I2C_Read... [21:36:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:36:43]Read from MH i2c: E2 [21:36:43]MH_I2C_Read... [21:36:43]Read from MH i2c: E2 17 00 [21:36:43]MH_I2C_Read... [21:36:43]Read from MH i2c: E2 17 00 D2 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 9B [21:36:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [21:36:43]wFMCommunicate OK [21:36:43]requested_item fd.num is exist - process it [21:36:43]SAM_PROTO_GetFieldsCounters [21:36:43]wFMCommunicate request_size=4 [21:36:43]MH_SAM_APDU [21:36:43]CAPDU: 80 13 00 00 [21:36:43]Write to MH i2c: E2 08 00 D3 04 80 13 00 00 00 00 00 00 53 [21:36:43]Write i2c OK [21:36:43]MH_I2C_Read... [21:36:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:36:43]Read from MH i2c: E2 [21:36:43]MH_I2C_Read... [21:36:43]Read from MH i2c: E2 62 00 [21:36:43]MH_I2C_Read... [21:36:43]Read from MH i2c: E2 62 00 D3 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 7D 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 DE [21:36:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 7D 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:36:43]wFMCommunicate OK [21:36:43]SAM_PROTO_GetFieldsCounters done [21:36:43]requested_item shift.num is exist - process it [21:36:43]requested_item shift.opened is exist - process it [21:36:43]req_shift_opened [21:36:43]FM_GetShiftState [21:36:43]SAM_PROTO_GetShiftState [21:36:43]wFMCommunicate request_size=4 [21:36:43]MH_SAM_APDU [21:36:43]CAPDU: 80 13 01 00 [21:36:43]Write to MH i2c: E2 08 00 D4 04 80 13 01 00 00 00 00 00 55 [21:36:43]Write i2c OK [21:36:43]MH_I2C_Read... [21:36:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:36:43]Read from MH i2c: E2 [21:36:43]MH_I2C_Read... [21:36:43]Read from MH i2c: E2 0E 00 [21:36:43]MH_I2C_Read... [21:36:43]Read from MH i2c: E2 0E 00 D4 04 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 30 [21:36:43]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [21:36:43]wFMCommunicate OK [21:36:43]SAM_PROTO_GetShiftState done [21:36:43]FM_GetShiftState done [21:36:43]req_shift_opened done [21:36:43]requested_item shift.open_date is exist - process it [21:36:43]req_shift_open_date [21:36:43]req_shift_open_date done [21:36:43]produce_requested_data done [21:36:43]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68477,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [21:36:43]process_action_free close_receipt [21:36:43]json_value_free [21:36:43]json_value_free done [21:36:43]process_json_proto returns [21:36:43]Send response to host [21:36:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68477,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [21:36:43]free response buf [21:36:43]execute_script done [21:36:43]execute_script returns [21:36:43]free content buf [21:36:43]Sock 9.Close socket [21:36:43]Sock 9.Thread stoped [21:36:47]OFD Sender: No OFD packet to send [21:36:52]OFD Sender: No OFD packet to send [21:36:57]OFD Sender: No OFD packet to send [21:37:02]OFD Sender: No OFD packet to send [21:37:07]OFD Sender: No OFD packet to send [21:37:12]OFD Sender: No OFD packet to send [21:37:17]OFD Sender: No OFD packet to send [21:37:22]OFD Sender: No OFD packet to send [21:37:27]OFD Sender: No OFD packet to send [21:37:32]OFD Sender: No OFD packet to send [21:37:37]OFD Sender: No OFD packet to send [21:37:42]OFD Sender: No OFD packet to send [21:37:47]OFD Sender: No OFD packet to send [21:37:52]OFD Sender: No OFD packet to send [21:37:57]OFD Sender: No OFD packet to send [21:38:02]OFD Sender: No OFD packet to send [21:38:07]OFD Sender: No OFD packet to send [21:38:12]OFD Sender: No OFD packet to send [21:38:17]OFD Sender: No OFD packet to send [21:38:22]OFD Sender: No OFD packet to send [21:38:27]OFD Sender: No OFD packet to send [21:38:32]OFD Sender: No OFD packet to send [21:38:37]OFD Sender: No OFD packet to send [21:38:42]OFD Sender: No OFD packet to send [21:38:47]OFD Sender: No OFD packet to send [21:38:52]OFD Sender: No OFD packet to send [21:38:57]OFD Sender: No OFD packet to send [21:39:02]OFD Sender: No OFD packet to send [21:39:07]OFD Sender: No OFD packet to send [21:39:12]OFD Sender: No OFD packet to send [21:39:17]OFD Sender: No OFD packet to send [21:39:22]OFD Sender: No OFD packet to send [21:39:27]OFD Sender: No OFD packet to send [21:39:32]OFD Sender: No OFD packet to send [21:39:37]OFD Sender: No OFD packet to send [21:39:42]OFD Sender: No OFD packet to send [21:39:47]OFD Sender: No OFD packet to send [21:39:52]OFD Sender: No OFD packet to send [21:39:57]OFD Sender: No OFD packet to send [21:40:02]OFD Sender: No OFD packet to send [21:40:07]OFD Sender: No OFD packet to send [21:40:12]OFD Sender: No OFD packet to send [21:40:17]OFD Sender: No OFD packet to send [21:40:22]OFD Sender: No OFD packet to send [21:40:27]OFD Sender: No OFD packet to send [21:40:32]OFD Sender: No OFD packet to send [21:40:37]OFD Sender: No OFD packet to send [21:40:42]OFD Sender: No OFD packet to send [21:40:47]OFD Sender: No OFD packet to send [21:40:52]OFD Sender: No OFD packet to send [21:40:57]OFD Sender: No OFD packet to send [21:41:02]OFD Sender: No OFD packet to send [21:41:07]OFD Sender: No OFD packet to send [21:41:12]OFD Sender: No OFD packet to send [21:41:17]OFD Sender: No OFD packet to send [21:41:22]OFD Sender: No OFD packet to send [21:41:27]OFD Sender: No OFD packet to send [21:41:32]OFD Sender: No OFD packet to send [21:41:37]OFD Sender: No OFD packet to send [21:41:42]OFD Sender: No OFD packet to send [21:41:47]OFD Sender: No OFD packet to send [21:41:52]OFD Sender: No OFD packet to send [21:41:57]OFD Sender: No OFD packet to send [21:42:02]OFD Sender: No OFD packet to send [21:42:07]OFD Sender: No OFD packet to send [21:42:12]OFD Sender: No OFD packet to send [21:42:17]OFD Sender: No OFD packet to send [21:42:22]OFD Sender: No OFD packet to send [21:42:27]OFD Sender: No OFD packet to send [21:42:32]OFD Sender: No OFD packet to send [21:42:37]OFD Sender: No OFD packet to send [21:42:42]OFD Sender: No OFD packet to send [21:42:47]OFD Sender: No OFD packet to send [21:42:52]OFD Sender: No OFD packet to send [21:42:57]OFD Sender: No OFD packet to send [21:43:02]OFD Sender: No OFD packet to send [21:43:07]OFD Sender: No OFD packet to send [21:43:12]OFD Sender: No OFD packet to send [21:43:17]OFD Sender: No OFD packet to send [21:43:22]OFD Sender: No OFD packet to send [21:43:27]OFD Sender: No OFD packet to send [21:43:32]OFD Sender: No OFD packet to send [21:43:37]OFD Sender: No OFD packet to send [21:43:42]OFD Sender: No OFD packet to send [21:43:47]OFD Sender: No OFD packet to send [21:43:52]OFD Sender: No OFD packet to send [21:43:57]OFD Sender: No OFD packet to send [21:44:02]OFD Sender: No OFD packet to send [21:44:07]OFD Sender: No OFD packet to send [21:44:12]OFD Sender: No OFD packet to send [21:44:17]OFD Sender: No OFD packet to send [21:44:22]OFD Sender: No OFD packet to send [21:44:27]OFD Sender: No OFD packet to send [21:44:32]OFD Sender: No OFD packet to send [21:44:37]OFD Sender: No OFD packet to send [21:44:42]OFD Sender: No OFD packet to send [21:44:47]OFD Sender: No OFD packet to send [21:44:53]OFD Sender: No OFD packet to send [21:44:58]OFD Sender: No OFD packet to send [21:45:03]OFD Sender: No OFD packet to send [21:45:08]OFD Sender: No OFD packet to send [21:45:13]OFD Sender: No OFD packet to send [21:45:18]OFD Sender: No OFD packet to send [21:45:23]OFD Sender: No OFD packet to send [21:45:28]OFD Sender: No OFD packet to send [21:45:33]OFD Sender: No OFD packet to send [21:45:38]OFD Sender: No OFD packet to send [21:45:43]OFD Sender: No OFD packet to send [21:45:48]OFD Sender: No OFD packet to send [21:45:53]OFD Sender: No OFD packet to send [21:45:58]OFD Sender: No OFD packet to send [21:46:03]OFD Sender: No OFD packet to send [21:46:08]OFD Sender: No OFD packet to send [21:46:13]OFD Sender: No OFD packet to send [21:46:18]OFD Sender: No OFD packet to send [21:46:23]OFD Sender: No OFD packet to send [21:46:28]OFD Sender: No OFD packet to send [21:46:33]OFD Sender: No OFD packet to send [21:46:38]OFD Sender: No OFD packet to send [21:46:43]OFD Sender: No OFD packet to send [21:46:48]OFD Sender: No OFD packet to send [21:46:53]OFD Sender: No OFD packet to send [21:46:58]OFD Sender: No OFD packet to send [21:47:03]OFD Sender: No OFD packet to send [21:47:08]OFD Sender: No OFD packet to send [21:47:13]OFD Sender: No OFD packet to send [21:47:18]OFD Sender: No OFD packet to send [21:47:23]OFD Sender: No OFD packet to send [21:47:28]OFD Sender: No OFD packet to send [21:47:33]OFD Sender: No OFD packet to send [21:47:38]OFD Sender: No OFD packet to send [21:47:43]OFD Sender: No OFD packet to send [21:47:48]OFD Sender: No OFD packet to send [21:47: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:28]OFD Sender: No OFD packet to send [21:48:33]OFD Sender: No OFD packet to send [21:48:38]OFD Sender: No OFD packet to send [21:48:43]OFD Sender: No OFD packet to send [21:48:48]OFD Sender: No OFD packet to send [21:48:53]OFD Sender: No OFD packet to send [21:48:58]OFD Sender: No OFD packet to send [21:49:03]OFD Sender: No OFD packet to send [21:49:08]OFD Sender: No OFD packet to send [21:49:13]OFD Sender: No OFD packet to send [21:49:18]OFD Sender: No OFD packet to send [21:49:23]OFD Sender: No OFD packet to send [21:49:28]OFD Sender: No OFD packet to send [21:49:33]OFD Sender: No OFD packet to send [21:49:38]OFD Sender: No OFD packet to send [21:49:43]OFD Sender: No OFD packet to send [21:49:48]OFD Sender: No OFD packet to send [21:49:53]OFD Sender: No OFD packet to send [21:49:58]OFD Sender: No OFD packet to send [21:50:03]OFD Sender: No OFD packet to send [21:50:08]OFD Sender: No OFD packet to send [21:50:13]OFD Sender: No OFD packet to send [21:50:18]OFD Sender: No OFD packet to send [21:50:23]OFD Sender: No OFD packet to send [21:50:28]OFD Sender: No OFD packet to send [21:50:33]OFD Sender: No OFD packet to send [21:50:38]OFD Sender: No OFD packet to send [21:50:43]OFD Sender: No OFD packet to send [21:50:48]OFD Sender: No OFD packet to send [21:50:53]OFD Sender: No OFD packet to send [21:50:58]OFD Sender: No OFD packet to send [21:51:03]OFD Sender: No OFD packet to send [21:51:08]OFD Sender: No OFD packet to send [21:51:13]OFD Sender: No OFD packet to send [21:51:18]OFD Sender: No OFD packet to send [21:51:23]OFD Sender: No OFD packet to send [21:51:28]OFD Sender: No OFD packet to send [21:51:33]OFD Sender: No OFD packet to send [21:51:38]OFD Sender: No OFD packet to send [21:51:43]OFD Sender: No OFD packet to send [21:51:48]OFD Sender: No OFD packet to send [21:51:52]accept exits with 7 [21:51:52]New connection [21:51:52]New thread 3067084132 created [21:51:52]Thread 3067227492 joined [21:51:52]Waiting for new connection... [21:51:52] Sock 7.Parse request [21:51:52]Sock 7.Check first char [21:51:52]Sock 7.First char is OK [21:51:52]request: POST /json_proto HTTP/1.0 [21:51:52]Method: POST [21:51:52]URL: /json_proto [21:51:52]Method is POST - this is cgi request [21:51:52]url: /json_proto [21:51:52]query_string will be loaded in cgi processing [21:51:52]execute_cgi json_proto POST (null) [21:51:52]execute_cgi path=json_proto method=POST [21:51:52]POST find Content-Length [21:51:52]Host: 172.17.36.132:8080 [21:51:52]Content-Length: 840 [21:51:52]Content-Type: application/json [21:51:52] [21:51:52]POST finish read [21:51:52]Found Content-Length = 840 [21:51:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706588", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:51:52]execute_script... [21:51:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706588", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:51:52]POST & json_proto [21:51:52]process_json_proto [21:51:52]json parsed OK: [21:51:52]protocol is kg_v1.0 [21:51:52]action value=close_receipt [21:51:52]process_action close_receipt [21:51:52]cmd_close_receipt [21:51:52]MH_GetDate [21:51:52]Write to MH i2c: F0 00 00 D5 04 C8 [21:51:52]Write i2c OK [21:51:52]MH_I2C_Read... [21:51:52]Read from MH i2c: F0 [21:51:52]MH_I2C_Read... [21:51:52]Read from MH i2c: F0 09 00 [21:51:52]MH_I2C_Read... [21:51:52]Read from MH i2c: F0 09 00 D5 04 00 F9 3A 5E 66 B2 22 B0 64 B0 [21:51:52]GetLastDocTimeStamp 1717450600 [21:51:52]current date 1717451513 [21:51:52]FM_GetShiftState [21:51:52]SAM_PROTO_GetShiftState [21:51:52]wFMCommunicate request_size=4 [21:51:52]MH_SAM_APDU [21:51:52]CAPDU: 80 13 01 00 [21:51:52]Write to MH i2c: E2 08 00 D6 04 80 13 01 00 00 00 00 00 57 [21:51:52]Write i2c OK [21:51:52]MH_I2C_Read... [21:51:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:51:53]Read from MH i2c: E2 [21:51:53]MH_I2C_Read... [21:51:53]Read from MH i2c: E2 0E 00 [21:51:53]MH_I2C_Read... [21:51:53]Read from MH i2c: E2 0E 00 D6 04 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 32 [21:51:53]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [21:51:53]wFMCommunicate OK [21:51:53]SAM_PROTO_GetShiftState done [21:51:53]FM_GetShiftState done [21:51:53]opened in 1717378033 [21:51:53]opened+sec_in_day 1717464433 [21:51:53]quantity*price = 50041 [21:51:53]sum+1 = 50042 [21:51:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 224 03.06.2024 21:51 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68478 ФПД: 167499930722259 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T215153&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68478&fm=167499930722259&tin=02508201610067®Number=0000000000098096&sum=50041 [21:51:54]StoreToDocumentArchive [21:51:54]shift 324 fd 68478 [21:51:54]save to /storage/0324/doc_00068478 [21:51:54]save last doc name /storage/0324/doc_00068478 to /storage/kkm_last_doc_name [21:51:54]save OK [21:51:54]Clear old archive folders... [21:51:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:51:54]tlvbuf is 00A464F0 [21:51:54]SAM_PROTO_ClearQueue [21:51:54]wFMCommunicate request_size=4 [21:51:54]MH_SAM_APDU [21:51:54]CAPDU: 80 09 00 00 [21:51:54]Write to MH i2c: E2 08 00 E3 04 80 09 00 00 00 00 00 00 59 [21:51:54]Write i2c OK [21:51:54]MH_I2C_Read... [21:51:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:51:54]Read from MH i2c: E2 [21:51:54]MH_I2C_Read... [21:51:54]Read from MH i2c: E2 03 00 [21:51:54]MH_I2C_Read... [21:51:54]Read from MH i2c: E2 03 00 E3 04 00 90 00 5B [21:51:54]RAPDU: 90 00 [21:51:54]wFMCommunicate OK [21:51:54]SAM_PROTO_ClearQueue done [21:51:54]KKMCreateOFDPacket [21:51:54]OFDProtocolAddRootSTLVToBuf [21:51:54]FM_MakeSignedData [21:51:54]FM_MakeSignedData [21:51:54]SAM_PROTO_SignData [21:51:54]wFMCommunicate request_size=4 [21:51:54]MH_SAM_APDU [21:51:54]CAPDU: 80 0D 01 02 [21:51:54]Write to MH i2c: E2 08 00 E4 04 80 0D 01 02 00 00 00 00 61 [21:51:54]Write i2c OK [21:51:54]MH_I2C_Read... [21:51:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:51:54]Read from MH i2c: E2 [21:51:54]MH_I2C_Read... [21:51:54]Read from MH i2c: E2 03 00 [21:51:54]MH_I2C_Read... [21:51:54]Read from MH i2c: E2 03 00 E4 04 00 90 00 5C [21:51:54]RAPDU: 90 00 [21:51:54]wFMCommunicate OK [21:51:54]wFMCommunicate request_size=255 [21:51:54]MH_SAM_APDU [21:51:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 F9 3A 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 7E 0B 01 00 35 04 06 00 98 [21:51:54]Write to MH i2c: E2 02 01 E5 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 F9 3A 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 7E 0B 01 00 35 04 06 00 98 00 00 7E [21:51:54]Write i2c OK [21:51:54]MH_I2C_Read... [21:51:54]Read from MH i2c: E2 [21:51:54]MH_I2C_Read... [21:51:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:51:54]Read from MH i2c: E2 03 00 [21:51:54]MH_I2C_Read... [21:51:54]Read from MH i2c: E2 03 00 E5 04 00 90 00 5D [21:51:54]RAPDU: 90 00 [21:51:54]wFMCommunicate OK [21:51:54]wFMCommunicate request_size=10 [21:51:54]MH_SAM_APDU [21:51:54]CAPDU: 80 0D 02 02 05 57 1D DE DF D3 [21:51:54]Write to MH i2c: E2 0D 00 E6 04 80 0D 02 02 05 00 57 1D DE DF D3 00 00 72 [21:51:54]Write i2c OK [21:51:54]MH_I2C_Read... [21:51:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:51:54]Read from MH i2c: E2 [21:51:54]MH_I2C_Read... [21:51:54]Read from MH i2c: E2 03 00 [21:51:54]MH_I2C_Read... [21:51:54]Read from MH i2c: E2 03 00 E6 04 00 90 00 5E [21:51:54]RAPDU: 90 00 [21:51:54]wFMCommunicate OK [21:51:54]wFMCommunicate request_size=4 [21:51:54]MH_SAM_APDU [21:51:54]CAPDU: 80 0D 03 02 [21:51:54]Write to MH i2c: E2 08 00 E7 04 80 0D 03 02 00 00 00 00 66 [21:51:54]Write i2c OK [21:51:54]MH_I2C_Read... [21:51:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:51:54]Read from MH i2c: E2 [21:51:54]MH_I2C_Read... [21:51:54]Read from MH i2c: E2 0B 00 [21:51:54]MH_I2C_Read... [21:51:54]Read from MH i2c: E2 0B 00 E7 04 00 FD 2F F5 DA B0 21 CC 84 90 00 83 [21:51:54]RAPDU: FD 2F F5 DA B0 21 CC 84 90 00 [21:51:54]wFMCommunicate OK [21:51:54]SAM_PROTO_SignData done [21:51:54]FM_MakeSignedData done [21:51:54]CreateOFDProtocolMessage [21:51:54]wFMCommunicate request_size=4 [21:51:54]MH_SAM_APDU [21:51:54]CAPDU: 80 11 00 00 [21:51:54]Write to MH i2c: E2 08 00 E8 04 80 11 00 00 00 00 00 00 66 [21:51:54]Write i2c OK [21:51:54]MH_I2C_Read... [21:51:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:51:54]Read from MH i2c: E2 [21:51:54]MH_I2C_Read... [21:51:54]Read from MH i2c: E2 17 00 [21:51:54]MH_I2C_Read... [21:51:54]Read from MH i2c: E2 17 00 E8 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 B1 [21:51:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [21:51:54]wFMCommunicate OK [21:51:54]CreateOFDProtocolMessage done [21:51:54]OFDSenderStorePacket 68478 [21:51:54]StoreOFDPacket docnum=68478 [21:51:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 B0 47 07 01 8F DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 F9 3A 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 7E 0B 01 00 35 04 06 00 98 57 1D DE DF D3 FD 2F F5 DA B0 21 CC 84 [21:51:54]CheckFolder [21:51:54]dirname=/storage/ofd_packets [21:51:54]CheckFolder done [21:51:54]ProducePacketName [21:51:54]name=ofd_packets/00068478 [21:51:54]NVStorageSaveData ofd_packets/00068478 [21:51:54]File name is /storage/ofd_packets/00068478 [21:51:54]Write 301 bytes [21:51:54]NVStorageSaveData done [21:51:54]OFDSenderStorePacket done [21:51:54]KKMCreateOFDPacket done [21:51:54]NVStorageSaveData kkm_last_timestamp [21:51:54]File name is /storage/kkm_last_timestamp [21:51:54]Write 4 bytes [21:51:54]NVStorageSaveData done [21:51:54]ExternCall_PrintAddStr [21:51:54]wPrintStart [21:51:54]Write to MH i2c: 01 00 00 E9 04 ED [21:51:54]Write i2c OK [21:51:54]MH_I2C_Read... [21:51:54]Read from MH i2c: 01 [21:51:54]MH_I2C_Read... [21:51:54]Read from MH i2c: 01 07 00 [21:51:54]MH_I2C_Read... [21:51:54]Read from MH i2c: 01 07 00 E9 04 00 00 00 00 00 FF 0F 02 [21:51:54]RasterBufferAndPrint [21:51:54]line Счет N : (1)706588 [21:51:54]line ИНН: 02508201610067 [21:51:54]line Контрольно-Кассовый Чек [21:51:54]line ПРОДАЖА [21:51:54]line ТРК (МРК, ГНК) : 53 [21:51:54]line Товар: 2710124130 [21:51:54]line Аи-92-К-4 [21:51:54]line 7.480 * 66.90 [21:51:54]line = 500.41 [21:51:54]line НДС 12% НСП 1% [21:51:54]line > о реализуемом товаре [21:51:54]line ИТОГО: 500.41 [21:51:54]line НСП 1% : 4.43 [21:51:54]line НДС 12% : 53.14 [21:51:54]line Наличными: 0.00 [21:51:54]line Безнал.: 500.41 [21:51:54]line Место: АЗС № 62 "Партнер Нефть" [21:51:54]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [21:51:54]line СНО: Общий режим [21:51:54]line Чек 224 03.06.2024 21:51 [21:51:54]line Смена: 324 ФФД: 1.0 [21:51:54]line ЗНМ: 0300000181 [21:51:54]line РНМ: 0000000000098096 [21:51:54]line Версия ККМ: 001 [21:51:54]line Платежная система: АКБ Кыргызстан [21:51:54]line ФМ: 0000000000965400 [21:51:54]line ФД: 68478 [21:51:54]line ФПД: 167499930722259 [21:51:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T215153&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68478&fm=167499930722259&tin=02508201610067®Number=0000000000098096&sum=50041 [21:51:55]OFD Sender: Processing packet 68478 [packets to send 26, broken 25] [21:51:55]ProducePacketName [21:51:55]name=ofd_packets/00068478 [21:51:55]OFD Sender: To server: pG, [21:51:55]CommunicateWithHost lk.salyk.kg:30040 [21:51:55]ConnectInit lk.salyk.kg [21:51:55]written 0, free lines is 4095 [21:51:55]Connected sock=10 [21:51:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 B0 47 07 01 8F DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 F9 3A 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 7E 0B 01 00 35 04 06 00 98 57 1D DE DF D3 FD 2F F5 DA B0 21 CC 84 [21:51:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 E9 FC 47 00 82 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 7E 0B 01 00 F4 03 04 00 F4 E1 5D 66 B6 04 01 00 00 84 91 E3 50 E3 48 77 FB [21:51:55]CommunicateWithHost err = 0 [21:51:55]CheckOFDResponse [21:51:55]1017 (14) - 77093643461234 [21:51:55]1041 (16) - 0000000000965400 [21:51:55]1040 (4) - 68478 [21:51:55]1012 (4) - 03.06.2024 15:32 [21:51:55]1206 (1) - 0 [21:51:55]OFD Sender: Remove packet 68478 [21:51:55]ProducePacketName [21:51:55]name=ofd_packets/00068478 [21:51:55]NVStorageDeleteData [21:51:55]Write to MH i2c: 01 00 00 13 05 18 [21:51:55]Write i2c OK [21:51:55]MH_I2C_Read... [21:51:55]Read from MH i2c: 01 [21:51:55]MH_I2C_Read... [21:51:55]Read from MH i2c: 01 07 00 [21:51:55]MH_I2C_Read... [21:51:55]Read from MH i2c: 01 07 00 13 05 00 00 00 00 00 ED 0C 18 [21:51:55]RasterBufferAndPrint [21:51:55]line [21:51:55]line [21:51:55]line [21:51:55]line [21:51:55]line [21:51:55]written 0, free lines is 3316 [21:51:55]MH_Cut [21:51:55]Write to MH i2c: D1 01 00 1A 05 01 F1 [21:51:55]Write i2c OK [21:51:55]MH_I2C_Read... [21:51:55]Read from MH i2c: D1 [21:51:55]MH_I2C_Read... [21:51:55]Read from MH i2c: D1 01 00 [21:51:55]MH_I2C_Read... [21:51:55]Read from MH i2c: D1 01 00 1A 05 00 F0 [21:51:55]Write to MH i2c: 01 00 00 1B 05 20 [21:51:55]Write i2c OK [21:51:55]MH_I2C_Read... [21:51:55]OFD Sender: No OFD packet to send [21:51:56]*** Cut start [21:51:56]*** Partial cut [21:51:56]*** CUTSNS_PIN = 1 [21:51:56]*** CUTSNS_PIN = 0 [21:51:56]*** Brake cut motor [21:51:56]Read from MH i2c: 01 [21:51:56]MH_I2C_Read... [21:51:56]*** Stop cut motor [21:51:56]*** Cut end [21:51:56]Read from MH i2c: 01 07 00 [21:51:56]MH_I2C_Read... [21:51:56]Read from MH i2c: 01 07 00 1B 05 00 00 00 00 00 FF 0F 35 [21:51:56]process_action close_receipt done [21:51:56]requested_data is exist [21:51:56]produce_requested_data [21:51:56]requested_item fm.sn is exist - process it [21:51:56]wFMCommunicate request_size=4 [21:51:56]MH_SAM_APDU [21:51:56]CAPDU: 80 11 00 00 [21:51:56]Write to MH i2c: E2 08 00 1C 05 80 11 00 00 00 00 00 00 9B [21:51:56]Write i2c OK [21:51:56]MH_I2C_Read... [21:51:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:51:56]Read from MH i2c: E2 [21:51:56]MH_I2C_Read... [21:51:56]Read from MH i2c: E2 17 00 [21:51:56]MH_I2C_Read... [21:51:56]Read from MH i2c: E2 17 00 1C 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 E6 [21:51:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [21:51:56]wFMCommunicate OK [21:51:56]requested_item fd.num is exist - process it [21:51:56]SAM_PROTO_GetFieldsCounters [21:51:56]wFMCommunicate request_size=4 [21:51:56]MH_SAM_APDU [21:51:56]CAPDU: 80 13 00 00 [21:51:56]Write to MH i2c: E2 08 00 1D 05 80 13 00 00 00 00 00 00 9E [21:51:56]Write i2c OK [21:51:56]MH_I2C_Read... [21:51:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:51:57]Read from MH i2c: E2 [21:51:57]MH_I2C_Read... [21:51:57]Read from MH i2c: E2 62 00 [21:51:57]MH_I2C_Read... [21:51:57]Read from MH i2c: E2 62 00 1D 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 7E 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 2D [21:51:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 7E 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:51:57]wFMCommunicate OK [21:51:57]SAM_PROTO_GetFieldsCounters done [21:51:57]requested_item shift.num is exist - process it [21:51:57]requested_item shift.opened is exist - process it [21:51:57]req_shift_opened [21:51:57]FM_GetShiftState [21:51:57]SAM_PROTO_GetShiftState [21:51:57]wFMCommunicate request_size=4 [21:51:57]MH_SAM_APDU [21:51:57]CAPDU: 80 13 01 00 [21:51:57]Write to MH i2c: E2 08 00 1E 05 80 13 01 00 00 00 00 00 A0 [21:51:57]Write i2c OK [21:51:57]MH_I2C_Read... [21:51:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:51:57]Read from MH i2c: E2 [21:51:57]MH_I2C_Read... [21:51:57]Read from MH i2c: E2 0E 00 [21:51:57]MH_I2C_Read... [21:51:57]Read from MH i2c: E2 0E 00 1E 05 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 7B [21:51:57]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [21:51:57]wFMCommunicate OK [21:51:57]SAM_PROTO_GetShiftState done [21:51:57]FM_GetShiftState done [21:51:57]req_shift_opened done [21:51:57]requested_item shift.open_date is exist - process it [21:51:57]req_shift_open_date [21:51:57]req_shift_open_date done [21:51:57]produce_requested_data done [21:51:57]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68478,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [21:51:57]process_action_free close_receipt [21:51:57]json_value_free [21:51:57]json_value_free done [21:51:57]process_json_proto returns [21:51:57]Send response to host [21:51:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68478,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [21:51:57]free response buf [21:51:57]execute_script done [21:51:57]execute_script returns [21:51:57]free content buf [21:51:57]Sock 7.Close socket [21:51:57]Sock 7.Thread stoped [21:52:00]OFD Sender: No OFD packet to send [21:52:05]OFD Sender: No OFD packet to send [21:52:10]OFD Sender: No OFD packet to send [21:52:15]OFD Sender: No OFD packet to send [21:52:20]OFD Sender: No OFD packet to send [21:52:25]OFD Sender: No OFD packet to send [21:52:30]OFD Sender: No OFD packet to send [21:52:35]OFD Sender: No OFD packet to send [21:52:40]OFD Sender: No OFD packet to send [21:52:45]OFD Sender: No OFD packet to send [21:52:50]OFD Sender: No OFD packet to send [21:52:55]OFD Sender: No OFD packet to send [21:53:00]OFD Sender: No OFD packet to send [21:53:05]OFD Sender: No OFD packet to send [21:53:10]OFD Sender: No OFD packet to send [21:53:15]OFD Sender: No OFD packet to send [21:53:20]OFD Sender: No OFD packet to send [21:53:25]OFD Sender: No OFD packet to send [21:53:30]OFD Sender: No OFD packet to send [21:53:35]OFD Sender: No OFD packet to send [21:53:40]OFD Sender: No OFD packet to send [21:53:45]OFD Sender: No OFD packet to send [21:53:50]OFD Sender: No OFD packet to send [21:53:55]OFD Sender: No OFD packet to send [21:54:00]OFD Sender: No OFD packet to send [21:54:05]OFD Sender: No OFD packet to send [21:54:10]OFD Sender: No OFD packet to send [21:54:15]OFD Sender: No OFD packet to send [21:54:20]OFD Sender: No OFD packet to send [21:54:25]OFD Sender: No OFD packet to send [21:54:30]OFD Sender: No OFD packet to send [21:54:35]OFD Sender: No OFD packet to send [21:54:40]OFD Sender: No OFD packet to send [21:54:44]accept exits with 9 [21:54:44]New connection [21:54:44]New thread 3067227492 created [21:54:44]Thread 3067084132 joined [21:54:44]Waiting for new connection... [21:54:44] Sock 9.Parse request [21:54:44]Sock 9.Check first char [21:54:44]Sock 9.First char is OK [21:54:44]request: POST /json_proto HTTP/1.0 [21:54:44]Method: POST [21:54:44]URL: /json_proto [21:54:44]Method is POST - this is cgi request [21:54:44]url: /json_proto [21:54:44]query_string will be loaded in cgi processing [21:54:44]execute_cgi json_proto POST (null) [21:54:44]execute_cgi path=json_proto method=POST [21:54:44]POST find Content-Length [21:54:44]Host: 172.17.36.132:8080 [21:54:44]Content-Length: 843 [21:54:44]Content-Type: application/json [21:54:44] [21:54:44]POST finish read [21:54:44]Found Content-Length = 843 [21:54:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706589", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 19.440, "sum" : 1300.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1300.54 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:54:44]execute_script... [21:54:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706589", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 19.440, "sum" : 1300.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1300.54 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:54:44]POST & json_proto [21:54:44]process_json_proto [21:54:44]json parsed OK: [21:54:44]protocol is kg_v1.0 [21:54:44]action value=close_receipt [21:54:44]process_action close_receipt [21:54:44]cmd_close_receipt [21:54:44]MH_GetDate [21:54:44]Write to MH i2c: F0 00 00 1F 05 13 [21:54:44]Write i2c OK [21:54:44]MH_I2C_Read... [21:54:44]Read from MH i2c: F0 [21:54:44]MH_I2C_Read... [21:54:44]Read from MH i2c: F0 09 00 [21:54:44]MH_I2C_Read... [21:54:44]Read from MH i2c: F0 09 00 1F 05 00 A5 3B 5E 66 B2 22 B0 64 A8 [21:54:44]GetLastDocTimeStamp 1717451513 [21:54:44]current date 1717451685 [21:54:44]FM_GetShiftState [21:54:44]SAM_PROTO_GetShiftState [21:54:44]wFMCommunicate request_size=4 [21:54:44]MH_SAM_APDU [21:54:44]CAPDU: 80 13 01 00 [21:54:44]Write to MH i2c: E2 08 00 20 05 80 13 01 00 00 00 00 00 A2 [21:54:44]Write i2c OK [21:54:44]MH_I2C_Read... [21:54:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:54:44]Read from MH i2c: E2 [21:54:44]MH_I2C_Read... [21:54:44]Read from MH i2c: E2 0E 00 [21:54:44]MH_I2C_Read... [21:54:44]Read from MH i2c: E2 0E 00 20 05 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 7D [21:54:44]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [21:54:44]wFMCommunicate OK [21:54:44]SAM_PROTO_GetShiftState done [21:54:44]FM_GetShiftState done [21:54:44]opened in 1717378033 [21:54:44]opened+sec_in_day 1717464433 [21:54:44]quantity*price = 130053 [21:54:44]sum+1 = 130055 [21:54:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1300.54 НСП 1% : 11.51 НДС 12% : 138.11 Наличными: 0.00 Безнал.: 1300.54 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 225 03.06.2024 21:54 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68479 ФПД: 207982301327957 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T215445&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68479&fm=207982301327957&tin=02508201610067®Number=0000000000098096&sum=130054 [21:54:45]StoreToDocumentArchive [21:54:45]shift 324 fd 68479 [21:54:45]save to /storage/0324/doc_00068479 [21:54:45]save last doc name /storage/0324/doc_00068479 to /storage/kkm_last_doc_name [21:54:45]save OK [21:54:45]Clear old archive folders... [21:54:45]OFD Sender: No OFD packet to send [21:54:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:54:45]tlvbuf is 009C8740 [21:54:45]SAM_PROTO_ClearQueue [21:54:45]wFMCommunicate request_size=4 [21:54:45]MH_SAM_APDU [21:54:45]CAPDU: 80 09 00 00 [21:54:45]Write to MH i2c: E2 08 00 2D 05 80 09 00 00 00 00 00 00 A4 [21:54:45]Write i2c OK [21:54:45]MH_I2C_Read... [21:54:45]Read from MH i2c: E2 [21:54:45]MH_I2C_Read... [21:54:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:54:45]Read from MH i2c: E2 03 00 [21:54:45]MH_I2C_Read... [21:54:45]Read from MH i2c: E2 03 00 2D 05 00 90 00 A6 [21:54:45]RAPDU: 90 00 [21:54:45]wFMCommunicate OK [21:54:45]SAM_PROTO_ClearQueue done [21:54:45]KKMCreateOFDPacket [21:54:45]OFDProtocolAddRootSTLVToBuf [21:54:45]FM_MakeSignedData [21:54:45]FM_MakeSignedData [21:54:45]SAM_PROTO_SignData [21:54:45]wFMCommunicate request_size=4 [21:54:45]MH_SAM_APDU [21:54:45]CAPDU: 80 0D 01 02 [21:54:45]Write to MH i2c: E2 08 00 2E 05 80 0D 01 02 00 00 00 00 AC [21:54:45]Write i2c OK [21:54:45]MH_I2C_Read... [21:54:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:54:45]Read from MH i2c: E2 [21:54:45]MH_I2C_Read... [21:54:45]Read from MH i2c: E2 03 00 [21:54:45]MH_I2C_Read... [21:54:45]Read from MH i2c: E2 03 00 2E 05 00 90 00 A7 [21:54:45]RAPDU: 90 00 [21:54:45]wFMCommunicate OK [21:54:45]wFMCommunicate request_size=255 [21:54:45]MH_SAM_APDU [21:54:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 06 FC 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 06 FC 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 A5 3B 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 7F 0B 01 00 35 04 06 00 BD [21:54:46]Write to MH i2c: E2 02 01 2F 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 06 FC 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 06 FC 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 A5 3B 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 7F 0B 01 00 35 04 06 00 BD 00 00 F1 [21:54:46]Write i2c OK [21:54:46]MH_I2C_Read... [21:54:46]Read from MH i2c: E2 [21:54:46]MH_I2C_Read... [21:54:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:54:46]Read from MH i2c: E2 03 00 [21:54:46]MH_I2C_Read... [21:54:46]Read from MH i2c: E2 03 00 2F 05 00 90 00 A8 [21:54:46]RAPDU: 90 00 [21:54:46]wFMCommunicate OK [21:54:46]wFMCommunicate request_size=10 [21:54:46]MH_SAM_APDU [21:54:46]CAPDU: 80 0D 02 02 05 28 A7 30 B2 55 [21:54:46]Write to MH i2c: E2 0D 00 30 05 80 0D 02 02 05 00 28 A7 30 B2 55 00 00 BF [21:54:46]Write i2c OK [21:54:46]MH_I2C_Read... [21:54:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:54:46]Read from MH i2c: E2 [21:54:46]MH_I2C_Read... [21:54:46]Read from MH i2c: E2 03 00 [21:54:46]MH_I2C_Read... [21:54:46]Read from MH i2c: E2 03 00 30 05 00 90 00 A9 [21:54:46]RAPDU: 90 00 [21:54:46]wFMCommunicate OK [21:54:46]wFMCommunicate request_size=4 [21:54:46]MH_SAM_APDU [21:54:46]CAPDU: 80 0D 03 02 [21:54:46]Write to MH i2c: E2 08 00 31 05 80 0D 03 02 00 00 00 00 B1 [21:54:46]Write i2c OK [21:54:46]MH_I2C_Read... [21:54:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:54:46]Read from MH i2c: E2 [21:54:46]MH_I2C_Read... [21:54:46]Read from MH i2c: E2 0B 00 [21:54:46]MH_I2C_Read... [21:54:46]Read from MH i2c: E2 0B 00 31 05 00 F4 35 BE 8E C8 44 C7 77 90 00 71 [21:54:46]RAPDU: F4 35 BE 8E C8 44 C7 77 90 00 [21:54:46]wFMCommunicate OK [21:54:46]SAM_PROTO_SignData done [21:54:46]FM_MakeSignedData done [21:54:46]CreateOFDProtocolMessage [21:54:46]wFMCommunicate request_size=4 [21:54:46]MH_SAM_APDU [21:54:46]CAPDU: 80 11 00 00 [21:54:46]Write to MH i2c: E2 08 00 32 05 80 11 00 00 00 00 00 00 B1 [21:54:46]Write i2c OK [21:54:46]MH_I2C_Read... [21:54:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:54:46]Read from MH i2c: E2 [21:54:46]MH_I2C_Read... [21:54:46]Read from MH i2c: E2 17 00 [21:54:46]MH_I2C_Read... [21:54:46]Read from MH i2c: E2 17 00 32 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 FC [21:54:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [21:54:46]wFMCommunicate OK [21:54:46]CreateOFDProtocolMessage done [21:54:46]OFDSenderStorePacket 68479 [21:54:46]StoreOFDPacket docnum=68479 [21:54:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 6D D1 07 01 18 A7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 06 FC 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 06 FC 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 A5 3B 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 7F 0B 01 00 35 04 06 00 BD 28 A7 30 B2 55 F4 35 BE 8E C8 44 C7 77 [21:54:46]CheckFolder [21:54:46]dirname=/storage/ofd_packets [21:54:46]CheckFolder done [21:54:46]ProducePacketName [21:54:46]name=ofd_packets/00068479 [21:54:46]NVStorageSaveData ofd_packets/00068479 [21:54:46]File name is /storage/ofd_packets/00068479 [21:54:46]Write 301 bytes [21:54:46]NVStorageSaveData done [21:54:46]OFDSenderStorePacket done [21:54:46]KKMCreateOFDPacket done [21:54:46]NVStorageSaveData kkm_last_timestamp [21:54:46]File name is /storage/kkm_last_timestamp [21:54:46]Write 4 bytes [21:54:46]NVStorageSaveData done [21:54:46]ExternCall_PrintAddStr [21:54:46]wPrintStart [21:54:46]Write to MH i2c: 01 00 00 33 05 38 [21:54:46]Write i2c OK [21:54:46]MH_I2C_Read... [21:54:46]Read from MH i2c: 01 [21:54:46]MH_I2C_Read... [21:54:46]Read from MH i2c: 01 07 00 [21:54:46]MH_I2C_Read... [21:54:46]Read from MH i2c: 01 07 00 33 05 00 00 00 00 00 FF 0F 4D [21:54:46]RasterBufferAndPrint [21:54:46]line Счет N : (1)706589 [21:54:46]line ИНН: 02508201610067 [21:54:46]line Контрольно-Кассовый Чек [21:54:46]line ПРОДАЖА [21:54:46]line ТРК (МРК, ГНК) : 32 [21:54:46]line Товар: 2710124130 [21:54:46]line Аи-92-К-4 [21:54:46]line 19.440 * 66.90 [21:54:46]line = 1300.54 [21:54:46]line НДС 12% НСП 1% [21:54:46]line > о реализуемом товаре [21:54:46]line ИТОГО: 1300.54 [21:54:46]line НСП 1% : 11.51 [21:54:46]line НДС 12% : 138.11 [21:54:46]line Наличными: 0.00 [21:54:46]line Безнал.: 1300.54 [21:54:46]line Место: АЗС № 62 "Партнер Нефть" [21:54:46]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [21:54:46]line СНО: Общий режим [21:54:46]line Чек 225 03.06.2024 21:54 [21:54:46]line Смена: 324 ФФД: 1.0 [21:54:46]line ЗНМ: 0300000181 [21:54:46]line РНМ: 0000000000098096 [21:54:46]line Версия ККМ: 001 [21:54:46]line Платежная система: АКБ Кыргызстан [21:54:46]line ФМ: 0000000000965400 [21:54:46]line ФД: 68479 [21:54:46]line ФПД: 207982301327957 [21:54:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T215445&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68479&fm=207982301327957&tin=02508201610067®Number=0000000000098096&sum=130054 [21:54:46]OFD Sender: Processing packet 68479 [packets to send 26, broken 25] [21:54:46]ProducePacketName [21:54:46]name=ofd_packets/00068479 [21:54:46]OFD Sender: To server: pG, [21:54:46]CommunicateWithHost lk.salyk.kg:30040 [21:54:46]ConnectInit lk.salyk.kg [21:54:46]written 0, free lines is 4095 [21:54:46]Connected sock=10 [21:54:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 6D D1 07 01 18 A7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 06 FC 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 06 FC 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 A5 3B 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 7F 0B 01 00 35 04 06 00 BD 28 A7 30 B2 55 F4 35 BE 8E C8 44 C7 77 [21:54:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 48 0D 47 00 EE AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 7F 0B 01 00 F4 03 04 00 A0 E2 5D 66 B6 04 01 00 00 87 7A 06 5D 62 E9 D1 A4 [21:54:47]CommunicateWithHost err = 0 [21:54:47]CheckOFDResponse [21:54:47]1017 (14) - 77093643461234 [21:54:47]1041 (16) - 0000000000965400 [21:54:47]1040 (4) - 68479 [21:54:47]1012 (4) - 03.06.2024 15:34 [21:54:47]1206 (1) - 0 [21:54:47]OFD Sender: Remove packet 68479 [21:54:47]ProducePacketName [21:54:47]name=ofd_packets/00068479 [21:54:47]NVStorageDeleteData [21:54:47]Write to MH i2c: 01 00 00 5D 05 62 [21:54:47]Write i2c OK [21:54:47]MH_I2C_Read... [21:54:47]Read from MH i2c: 01 [21:54:47]MH_I2C_Read... [21:54:47]Read from MH i2c: 01 07 00 [21:54:47]MH_I2C_Read... [21:54:47]Read from MH i2c: 01 07 00 5D 05 00 00 00 00 00 F1 0C 66 [21:54:47]RasterBufferAndPrint [21:54:47]line [21:54:47]line [21:54:47]line [21:54:47]line [21:54:47]line [21:54:47]written 0, free lines is 3318 [21:54:47]MH_Cut [21:54:47]Write to MH i2c: D1 01 00 64 05 01 3B [21:54:47]Write i2c OK [21:54:47]MH_I2C_Read... [21:54:47]Read from MH i2c: D1 [21:54:47]MH_I2C_Read... [21:54:47]Read from MH i2c: D1 01 00 [21:54:47]MH_I2C_Read... [21:54:47]Read from MH i2c: D1 01 00 64 05 00 3A [21:54:47]Write to MH i2c: 01 00 00 65 05 6A [21:54:47]Write i2c OK [21:54:47]MH_I2C_Read... [21:54:47]OFD Sender: No OFD packet to send [21:54:48]*** Cut start [21:54:48]*** Partial cut [21:54:48]*** CUTSNS_PIN = 1 [21:54:48]*** CUTSNS_PIN = 0 [21:54:48]*** Brake cut motor [21:54:48]Read from MH i2c: 01 [21:54:48]MH_I2C_Read... [21:54:48]*** Stop cut motor [21:54:48]*** Cut end [21:54:48]Read from MH i2c: 01 07 00 [21:54:48]MH_I2C_Read... [21:54:48]Read from MH i2c: 01 07 00 65 05 00 00 00 00 00 FF 0F 7F [21:54:48]process_action close_receipt done [21:54:48]requested_data is exist [21:54:48]produce_requested_data [21:54:48]requested_item fm.sn is exist - process it [21:54:48]wFMCommunicate request_size=4 [21:54:48]MH_SAM_APDU [21:54:48]CAPDU: 80 11 00 00 [21:54:48]Write to MH i2c: E2 08 00 66 05 80 11 00 00 00 00 00 00 E5 [21:54:48]Write i2c OK [21:54:48]MH_I2C_Read... [21:54:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:54:48]Read from MH i2c: E2 [21:54:48]MH_I2C_Read... [21:54:48]Read from MH i2c: E2 17 00 [21:54:48]MH_I2C_Read... [21:54:48]Read from MH i2c: E2 17 00 66 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 30 [21:54:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [21:54:48]wFMCommunicate OK [21:54:48]requested_item fd.num is exist - process it [21:54:48]SAM_PROTO_GetFieldsCounters [21:54:48]wFMCommunicate request_size=4 [21:54:48]MH_SAM_APDU [21:54:48]CAPDU: 80 13 00 00 [21:54:48]Write to MH i2c: E2 08 00 67 05 80 13 00 00 00 00 00 00 E8 [21:54:48]Write i2c OK [21:54:48]MH_I2C_Read... [21:54:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:54:48]Read from MH i2c: E2 [21:54:48]MH_I2C_Read... [21:54:48]Read from MH i2c: E2 62 00 [21:54:48]MH_I2C_Read... [21:54:48]Read from MH i2c: E2 62 00 67 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 7F 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [21:54:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 7F 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:54:48]wFMCommunicate OK [21:54:48]SAM_PROTO_GetFieldsCounters done [21:54:48]requested_item shift.num is exist - process it [21:54:48]requested_item shift.opened is exist - process it [21:54:48]req_shift_opened [21:54:48]FM_GetShiftState [21:54:48]SAM_PROTO_GetShiftState [21:54:48]wFMCommunicate request_size=4 [21:54:48]MH_SAM_APDU [21:54:48]CAPDU: 80 13 01 00 [21:54:48]Write to MH i2c: E2 08 00 68 05 80 13 01 00 00 00 00 00 EA [21:54:48]Write i2c OK [21:54:48]MH_I2C_Read... [21:54:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:54:48]Read from MH i2c: E2 [21:54:48]MH_I2C_Read... [21:54:48]Read from MH i2c: E2 0E 00 [21:54:48]MH_I2C_Read... [21:54:48]Read from MH i2c: E2 0E 00 68 05 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 C5 [21:54:48]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [21:54:48]wFMCommunicate OK [21:54:48]SAM_PROTO_GetShiftState done [21:54:48]FM_GetShiftState done [21:54:48]req_shift_opened done [21:54:48]requested_item shift.open_date is exist - process it [21:54:48]req_shift_open_date [21:54:48]req_shift_open_date done [21:54:48]produce_requested_data done [21:54:48]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68479,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [21:54:48]process_action_free close_receipt [21:54:48]json_value_free [21:54:48]json_value_free done [21:54:48]process_json_proto returns [21:54:48]Send response to host [21:54:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68479,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [21:54:48]free response buf [21:54:48]execute_script done [21:54:48]execute_script returns [21:54:48]free content buf [21:54:48]Sock 9.Close socket [21:54:48]Sock 9.Thread stoped [21:54:52]OFD Sender: No OFD packet to send [21:54:57]OFD Sender: No OFD packet to send [21:55:02]OFD Sender: No OFD packet to send [21:55:07]OFD Sender: No OFD packet to send [21:55:12]OFD Sender: No OFD packet to send [21:55:17]OFD Sender: No OFD packet to send [21:55:22]OFD Sender: No OFD packet to send [21:55:27]OFD Sender: No OFD packet to send [21:55:32]OFD Sender: No OFD packet to send [21:55:37]OFD Sender: No OFD packet to send [21:55:42]OFD Sender: No OFD packet to send [21:55:47]OFD Sender: No OFD packet to send [21:55:52]OFD Sender: No OFD packet to send [21:55:57]OFD Sender: No OFD packet to send [21:56:02]OFD Sender: No OFD packet to send [21:56:07]OFD Sender: No OFD packet to send [21:56:12]OFD Sender: No OFD packet to send [21:56:17]OFD Sender: No OFD packet to send [21:56:22]OFD Sender: No OFD packet to send [21:56:27]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:52]OFD Sender: No OFD packet to send [21:56:57]OFD Sender: No OFD packet to send [21:57:02]OFD Sender: No OFD packet to send [21:57:07]OFD Sender: No OFD packet to send [21:57:12]OFD Sender: No OFD packet to send [21:57:17]OFD Sender: No OFD packet to send [21:57:22]OFD Sender: No OFD packet to send [21:57:27]OFD Sender: No OFD packet to send [21:57:32]OFD Sender: No OFD packet to send [21:57:37]OFD Sender: No OFD packet to send [21:57:42]OFD Sender: No OFD packet to send [21:57:47]OFD Sender: No OFD packet to send [21:57:52]OFD Sender: No OFD packet to send [21:57:57]OFD Sender: No OFD packet to send [21:58:02]OFD Sender: No OFD packet to send [21:58:07]OFD Sender: No OFD packet to send [21:58:12]OFD Sender: No OFD packet to send [21:58:17]OFD Sender: No OFD packet to send [21:58:22]OFD Sender: No OFD packet to send [21:58:27]OFD Sender: No OFD packet to send [21:58:32]OFD Sender: No OFD packet to send [21:58:37]OFD Sender: No OFD packet to send [21:58:42]OFD Sender: No OFD packet to send [21:58:47]OFD Sender: No OFD packet to send [21:58:52]OFD Sender: No OFD packet to send [21:58:57]OFD Sender: No OFD packet to send [21:59:02]OFD Sender: No OFD packet to send [21:59:07]OFD Sender: No OFD packet to send [21:59:12]OFD Sender: No OFD packet to send [21:59:17]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:13]OFD Sender: No OFD packet to send [22:04:18]OFD Sender: No OFD packet to send [22:04:23]OFD Sender: No OFD packet to send [22:04:28]OFD Sender: No OFD packet to send [22:04:33]OFD Sender: No OFD packet to send [22:04:38]OFD Sender: No OFD packet to send [22:04:43]OFD Sender: No OFD packet to send [22:04:48]OFD Sender: No OFD packet to send [22:04:49]accept exits with 7 [22:04:49]New connection [22:04:49]New thread 3067084132 created [22:04:49]Thread 3067227492 joined [22:04:49]Waiting for new connection... [22:04:49] Sock 7.Parse request [22:04:49]Sock 7.Check first char [22:04:49]Sock 7.First char is OK [22:04:49]request: POST /json_proto HTTP/1.0 [22:04:49]Method: POST [22:04:49]URL: /json_proto [22:04:49]Method is POST - this is cgi request [22:04:49]url: /json_proto [22:04:49]query_string will be loaded in cgi processing [22:04:49]execute_cgi json_proto POST (null) [22:04:49]execute_cgi path=json_proto method=POST [22:04:49]POST find Content-Length [22:04:49]Host: 172.17.36.132:8080 [22:04:49]Content-Length: 1149 [22:04:49]Content-Type: application/json [22:04:49] [22:04:49]POST finish read [22:04:49]Found Content-Length = 1149 [22:04:49]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706590\u000A03.06.2024 21:41\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-4\u000A 11.110 x 72.90\u000A\u0418\u0422\u041E\u0413: 809.92\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30111803\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:04:49]execute_script... [22:04:49]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 62\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u043B\u0430\u0435\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)706590\u000A03.06.2024 21:41\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-4\u000A 11.110 x 72.90\u000A\u0418\u0422\u041E\u0413: 809.92\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30111803\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:04:49]POST & json_proto [22:04:49]process_json_proto [22:04:49]json parsed OK: [22:04:49]protocol is kg_v1.0 [22:04:49]action value=print_text [22:04:49]process_action print_text [22:04:49]cmd_print_text [22:04:49]ExternCall_PrintAddStr [22:04:49]wPrintStart [22:04:49]Write to MH i2c: 01 00 00 69 05 6E [22:04:49]Write i2c OK [22:04:49]MH_I2C_Read... [22:04:49]Read from MH i2c: 01 [22:04:49]MH_I2C_Read... [22:04:49]Read from MH i2c: 01 07 00 [22:04:49]MH_I2C_Read... [22:04:49]Read from MH i2c: 01 07 00 69 05 00 00 00 00 00 FF 0F 83 [22:04:49]RasterBufferAndPrint [22:04:49]line *****ТОВАРНЫЙ ЧЕК***** [22:04:49]line АЗС 62 [22:04:49]line Партнер нефть [22:04:49]line 02508201610067 [22:04:49]line Кассир : Балаев А. [22:04:49]line Счет N : (1)706590 [22:04:49]line 03.06.2024 21:41 [22:04:49]line ПРОДАЖА [22:04:49]line ТРК (МРК, ГНК): 11 [22:04:49]line Вид ГСМ : 2710194210 [22:04:49]line ДТ(л)-К-4 [22:04:49]line 11.110 x 72.90 [22:04:49]line ИТОГ: 809.92 [22:04:49]line Тип оплаты: Талоны: ТК ГПНА Online [22:04:49]line 30111803 [22:04:49]line ______________________ [22:04:49]line (подпись) [22:04:49]written 0, free lines is 4095 [22:04:49]Write to MH i2c: 01 00 00 7D 05 82 [22:04:49]Write i2c OK [22:04:49]MH_I2C_Read... [22:04:49]Read from MH i2c: 01 [22:04:49]MH_I2C_Read... [22:04:49]Read from MH i2c: 01 07 00 [22:04:49]MH_I2C_Read... [22:04:49]Read from MH i2c: 01 07 00 7D 05 00 00 00 00 00 0D 0E A4 [22:04:49]RasterBufferAndPrint [22:04:49]line [22:04:49]line [22:04:49]line [22:04:49]line [22:04:49]line [22:04:49]written 0, free lines is 3598 [22:04:49]MH_Cut [22:04:49]Write to MH i2c: D1 01 00 84 05 01 5B [22:04:49]Write i2c OK [22:04:49]MH_I2C_Read... [22:04:49]Read from MH i2c: D1 [22:04:49]MH_I2C_Read... [22:04:49]Read from MH i2c: D1 01 00 [22:04:49]MH_I2C_Read... [22:04:49]Read from MH i2c: D1 01 00 84 05 00 5A [22:04:49]Write to MH i2c: 01 00 00 85 05 8A [22:04:49]Write i2c OK [22:04:49]MH_I2C_Read... [22:04:50]*** Cut start [22:04:50]*** Partial cut [22:04:50]*** CUTSNS_PIN = 1 [22:04:50]*** CUTSNS_PIN = 0 [22:04:50]*** Brake cut motor [22:04:50]Read from MH i2c: 01 [22:04:50]MH_I2C_Read... [22:04:50]Read from MH i2c: 01 07 00 [22:04:50]MH_I2C_Read... [22:04:50]*** Stop cut motor [22:04:50]*** Cut end [22:04:50]Read from MH i2c: 01 07 00 85 05 00 00 00 00 00 FF 0F 9F [22:04:50]process_action print_text done [22:04:50]requested_data is exist [22:04:50]produce_requested_data [22:04:50]requested_item fm.sn is exist - process it [22:04:50]wFMCommunicate request_size=4 [22:04:50]MH_SAM_APDU [22:04:50]CAPDU: 80 11 00 00 [22:04:50]Write to MH i2c: E2 08 00 86 05 80 11 00 00 00 00 00 00 05 [22:04:50]Write i2c OK [22:04:50]MH_I2C_Read... [22:04:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:04:50]Read from MH i2c: E2 [22:04:50]MH_I2C_Read... [22:04:50]Read from MH i2c: E2 17 00 [22:04:50]MH_I2C_Read... [22:04:50]Read from MH i2c: E2 17 00 86 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 50 [22:04:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [22:04:50]wFMCommunicate OK [22:04:50]requested_item fd.num is exist - process it [22:04:50]SAM_PROTO_GetFieldsCounters [22:04:50]wFMCommunicate request_size=4 [22:04:50]MH_SAM_APDU [22:04:50]CAPDU: 80 13 00 00 [22:04:50]Write to MH i2c: E2 08 00 87 05 80 13 00 00 00 00 00 00 08 [22:04:50]Write i2c OK [22:04:50]MH_I2C_Read... [22:04:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:04:51]Read from MH i2c: E2 [22:04:51]MH_I2C_Read... [22:04:51]Read from MH i2c: E2 62 00 [22:04:51]MH_I2C_Read... [22:04:51]Read from MH i2c: E2 62 00 87 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 7F 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 9B [22:04:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 7F 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:04:51]wFMCommunicate OK [22:04:51]SAM_PROTO_GetFieldsCounters done [22:04:51]requested_item shift.num is exist - process it [22:04:51]requested_item shift.opened is exist - process it [22:04:51]req_shift_opened [22:04:51]FM_GetShiftState [22:04:51]SAM_PROTO_GetShiftState [22:04:51]wFMCommunicate request_size=4 [22:04:51]MH_SAM_APDU [22:04:51]CAPDU: 80 13 01 00 [22:04:51]Write to MH i2c: E2 08 00 88 05 80 13 01 00 00 00 00 00 0A [22:04:51]Write i2c OK [22:04:51]MH_I2C_Read... [22:04:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:04:51]Read from MH i2c: E2 [22:04:51]MH_I2C_Read... [22:04:51]Read from MH i2c: E2 0E 00 [22:04:51]MH_I2C_Read... [22:04:51]Read from MH i2c: E2 0E 00 88 05 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 E5 [22:04:51]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [22:04:51]wFMCommunicate OK [22:04:51]SAM_PROTO_GetShiftState done [22:04:51]FM_GetShiftState done [22:04:51]req_shift_opened done [22:04:51]requested_item shift.open_date is exist - process it [22:04:51]req_shift_open_date [22:04:51]req_shift_open_date done [22:04:51]produce_requested_data done [22:04:51]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68479,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [22:04:51]process_action_free print_text [22:04:51]json_value_free [22:04:51]json_value_free done [22:04:51]process_json_proto returns [22:04:51]Send response to host [22:04:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68479,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [22:04:51]free response buf [22:04:51]execute_script done [22:04:51]execute_script returns [22:04:51]free content buf [22:04:51]Sock 7.Close socket [22:04:51]Sock 7.Thread stoped [22:04:53]OFD Sender: No OFD packet to send [22:04:58]OFD Sender: No OFD packet to send [22:05:03]OFD Sender: No OFD packet to send [22:05:08]OFD Sender: No OFD packet to send [22:05:13]OFD Sender: No OFD packet to send [22:05:18]OFD Sender: No OFD packet to send [22:05:23]OFD Sender: No OFD packet to send [22:05:28]OFD Sender: No OFD packet to send [22:05:33]OFD Sender: No OFD packet to send [22:05:38]OFD Sender: No OFD packet to send [22:05:43]OFD Sender: No OFD packet to send [22:05:48]OFD Sender: No OFD packet to send [22:05:53]OFD Sender: No OFD packet to send [22:05:58]OFD Sender: No OFD packet to send [22:06:03]OFD Sender: No OFD packet to send [22:06:06]accept exits with 9 [22:06:06]New connection [22:06:06]New thread 3067227492 created [22:06:06]Thread 3067084132 joined [22:06:06]Waiting for new connection... [22:06:06] Sock 9.Parse request [22:06:06]Sock 9.Check first char [22:06:06]Sock 9.First char is OK [22:06:06]request: POST /json_proto HTTP/1.0 [22:06:06]Method: POST [22:06:06]URL: /json_proto [22:06:06]Method is POST - this is cgi request [22:06:06]url: /json_proto [22:06:06]query_string will be loaded in cgi processing [22:06:06]execute_cgi json_proto POST (null) [22:06:06]execute_cgi path=json_proto method=POST [22:06:06]POST find Content-Length [22:06:06]Host: 172.17.36.132:8080 [22:06:06]Content-Length: 845 [22:06:06]Content-Type: application/json [22:06:06] [22:06:06]POST finish read [22:06:06]Found Content-Length = 845 [22:06:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706591", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 2.630, "sum" : 191.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 191.73 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:06:06]execute_script... [22:06:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706591", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 2.630, "sum" : 191.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 191.73 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:06:06]POST & json_proto [22:06:06]process_json_proto [22:06:06]json parsed OK: [22:06:06]protocol is kg_v1.0 [22:06:06]action value=close_receipt [22:06:06]process_action close_receipt [22:06:06]cmd_close_receipt [22:06:06]MH_GetDate [22:06:06]Write to MH i2c: F0 00 00 89 05 7D [22:06:06]Write i2c OK [22:06:06]MH_I2C_Read... [22:06:06]Read from MH i2c: F0 [22:06:06]MH_I2C_Read... [22:06:06]Read from MH i2c: F0 09 00 [22:06:06]MH_I2C_Read... [22:06:06]Read from MH i2c: F0 09 00 89 05 00 4F 3E 5E 66 B2 22 B0 64 BF [22:06:06]GetLastDocTimeStamp 1717451685 [22:06:06]current date 1717452367 [22:06:06]FM_GetShiftState [22:06:06]SAM_PROTO_GetShiftState [22:06:06]wFMCommunicate request_size=4 [22:06:06]MH_SAM_APDU [22:06:06]CAPDU: 80 13 01 00 [22:06:06]Write to MH i2c: E2 08 00 8A 05 80 13 01 00 00 00 00 00 0C [22:06:06]Write i2c OK [22:06:06]MH_I2C_Read... [22:06:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:06:06]Read from MH i2c: E2 [22:06:06]MH_I2C_Read... [22:06:06]Read from MH i2c: E2 0E 00 [22:06:06]MH_I2C_Read... [22:06:06]Read from MH i2c: E2 0E 00 8A 05 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 E7 [22:06:06]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [22:06:06]wFMCommunicate OK [22:06:06]SAM_PROTO_GetShiftState done [22:06:06]FM_GetShiftState done [22:06:06]opened in 1717378033 [22:06:06]opened+sec_in_day 1717464433 [22:06:06]quantity*price = 19172 [22:06:06]sum+1 = 19174 [22:06:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 191.73 НСП 1% : 1.70 НДС 12% : 20.36 Наличными: 0.00 Безнал.: 191.73 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 226 03.06.2024 22:06 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68480 ФПД: 109093648336276 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T220607&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68480&fm=109093648336276&tin=02508201610067®Number=0000000000098096&sum=19173 [22:06:07]StoreToDocumentArchive [22:06:07]shift 324 fd 68480 [22:06:07]save to /storage/0324/doc_00068480 [22:06:07]save last doc name /storage/0324/doc_00068480 to /storage/kkm_last_doc_name [22:06:07]save OK [22:06:07]Clear old archive folders... [22:06:07]ProcessDocumentItem done err = 0, tmpTLVsize=252 [22:06:07]tlvbuf is 00A261A0 [22:06:07]SAM_PROTO_ClearQueue [22:06:07]wFMCommunicate request_size=4 [22:06:07]MH_SAM_APDU [22:06:07]CAPDU: 80 09 00 00 [22:06:07]Write to MH i2c: E2 08 00 97 05 80 09 00 00 00 00 00 00 0E [22:06:07]Write i2c OK [22:06:07]MH_I2C_Read... [22:06:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:06:07]Read from MH i2c: E2 [22:06:07]MH_I2C_Read... [22:06:07]Read from MH i2c: E2 03 00 [22:06:07]MH_I2C_Read... [22:06:07]Read from MH i2c: E2 03 00 97 05 00 90 00 10 [22:06:07]RAPDU: 90 00 [22:06:07]wFMCommunicate OK [22:06:07]SAM_PROTO_ClearQueue done [22:06:07]KKMCreateOFDPacket [22:06:07]OFDProtocolAddRootSTLVToBuf [22:06:07]FM_MakeSignedData [22:06:07]FM_MakeSignedData [22:06:07]SAM_PROTO_SignData [22:06:07]wFMCommunicate request_size=4 [22:06:07]MH_SAM_APDU [22:06:07]CAPDU: 80 0D 01 02 [22:06:07]Write to MH i2c: E2 08 00 98 05 80 0D 01 02 00 00 00 00 16 [22:06:07]Write i2c OK [22:06:07]MH_I2C_Read... [22:06:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:06:07]Read from MH i2c: E2 [22:06:07]MH_I2C_Read... [22:06:07]Read from MH i2c: E2 03 00 [22:06:07]MH_I2C_Read... [22:06:07]Read from MH i2c: E2 03 00 98 05 00 90 00 11 [22:06:07]RAPDU: 90 00 [22:06:07]wFMCommunicate OK [22:06:07]wFMCommunicate request_size=255 [22:06:07]MH_SAM_APDU [22:06:07]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 34 FF 03 08 00 03 46 0A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 E5 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E5 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F4 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E5 4A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 4F 3E 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 80 0B 01 00 35 04 06 00 [22:06:07]Write to MH i2c: E2 02 01 99 05 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 34 FF 03 08 00 03 46 0A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 E5 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E5 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F4 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E5 4A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 4F 3E 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 80 0B 01 00 35 04 06 00 00 00 75 [22:06:07]Write i2c OK [22:06:07]MH_I2C_Read... [22:06:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:06:08]Read from MH i2c: E2 [22:06:08]MH_I2C_Read... [22:06:08]Read from MH i2c: E2 03 00 [22:06:08]MH_I2C_Read... [22:06:08]Read from MH i2c: E2 03 00 99 05 00 90 00 12 [22:06:08]RAPDU: 90 00 [22:06:08]wFMCommunicate OK [22:06:08]wFMCommunicate request_size=11 [22:06:08]MH_SAM_APDU [22:06:08]CAPDU: 80 0D 02 02 06 63 38 58 28 05 94 [22:06:08]Write to MH i2c: E2 0E 00 9A 05 80 0D 02 02 06 00 63 38 58 28 05 94 00 00 D9 [22:06:08]Write i2c OK [22:06:08]MH_I2C_Read... [22:06:08]OFD Sender: No OFD packet to send [22:06:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:06:08]Read from MH i2c: E2 [22:06:08]MH_I2C_Read... [22:06:08]Read from MH i2c: E2 03 00 [22:06:08]MH_I2C_Read... [22:06:08]Read from MH i2c: E2 03 00 9A 05 00 90 00 13 [22:06:08]RAPDU: 90 00 [22:06:08]wFMCommunicate OK [22:06:08]wFMCommunicate request_size=4 [22:06:08]MH_SAM_APDU [22:06:08]CAPDU: 80 0D 03 02 [22:06:08]Write to MH i2c: E2 08 00 9B 05 80 0D 03 02 00 00 00 00 1B [22:06:08]Write i2c OK [22:06:08]MH_I2C_Read... [22:06:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:06:08]Read from MH i2c: E2 [22:06:08]MH_I2C_Read... [22:06:08]Read from MH i2c: E2 0B 00 [22:06:08]MH_I2C_Read... [22:06:08]Read from MH i2c: E2 0B 00 9B 05 00 B6 74 F1 94 75 DA 86 08 90 00 A8 [22:06:08]RAPDU: B6 74 F1 94 75 DA 86 08 90 00 [22:06:08]wFMCommunicate OK [22:06:08]SAM_PROTO_SignData done [22:06:08]FM_MakeSignedData done [22:06:08]CreateOFDProtocolMessage [22:06:08]wFMCommunicate request_size=4 [22:06:08]MH_SAM_APDU [22:06:08]CAPDU: 80 11 00 00 [22:06:08]Write to MH i2c: E2 08 00 9C 05 80 11 00 00 00 00 00 00 1B [22:06:08]Write i2c OK [22:06:08]MH_I2C_Read... [22:06:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:06:08]Read from MH i2c: E2 [22:06:08]MH_I2C_Read... [22:06:08]Read from MH i2c: E2 17 00 [22:06:08]MH_I2C_Read... [22:06:08]Read from MH i2c: E2 17 00 9C 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 66 [22:06:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [22:06:08]wFMCommunicate OK [22:06:08]CreateOFDProtocolMessage done [22:06:08]OFDSenderStorePacket 68480 [22:06:08]StoreOFDPacket docnum=68480 [22:06:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 9E BC 08 01 DA 62 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 34 FF 03 08 00 03 46 0A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 E5 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E5 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F4 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E5 4A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 4F 3E 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 80 0B 01 00 35 04 06 00 63 38 58 28 05 94 B6 74 F1 94 75 DA 86 08 [22:06:08]CheckFolder [22:06:08]dirname=/storage/ofd_packets [22:06:08]CheckFolder done [22:06:08]ProducePacketName [22:06:08]name=ofd_packets/00068480 [22:06:08]NVStorageSaveData ofd_packets/00068480 [22:06:08]File name is /storage/ofd_packets/00068480 [22:06:08]Write 302 bytes [22:06:08]NVStorageSaveData done [22:06:08]OFDSenderStorePacket done [22:06:08]KKMCreateOFDPacket done [22:06:08]NVStorageSaveData kkm_last_timestamp [22:06:08]File name is /storage/kkm_last_timestamp [22:06:08]Write 4 bytes [22:06:08]NVStorageSaveData done [22:06:08]ExternCall_PrintAddStr [22:06:08]wPrintStart [22:06:08]Write to MH i2c: 01 00 00 9D 05 A2 [22:06:08]Write i2c OK [22:06:08]MH_I2C_Read... [22:06:08]Read from MH i2c: 01 [22:06:08]MH_I2C_Read... [22:06:08]Read from MH i2c: 01 07 00 [22:06:08]MH_I2C_Read... [22:06:08]Read from MH i2c: 01 07 00 9D 05 00 00 00 00 00 FF 0F B7 [22:06:08]RasterBufferAndPrint [22:06:08]line Счет N : (1)706591 [22:06:08]line ИНН: 02508201610067 [22:06:08]line Контрольно-Кассовый Чек [22:06:08]line ПРОДАЖА [22:06:08]line ТРК (МРК, ГНК) : 11 [22:06:08]line Товар: 2710194210 [22:06:08]line ДТ(л)-К-4 [22:06:08]line 2.630 * 72.90 [22:06:08]line = 191.73 [22:06:08]line НДС 12% НСП 1% [22:06:08]line > о реализуемом товаре [22:06:08]line ИТОГО: 191.73 [22:06:08]line НСП 1% : 1.70 [22:06:08]line НДС 12% : 20.36 [22:06:08]line Наличными: 0.00 [22:06:08]line Безнал.: 191.73 [22:06:08]line Место: АЗС № 62 "Партнер Нефть" [22:06:08]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [22:06:08]line СНО: Общий режим [22:06:08]line Чек 226 03.06.2024 22:06 [22:06:08]line Смена: 324 ФФД: 1.0 [22:06:08]line ЗНМ: 0300000181 [22:06:08]line РНМ: 0000000000098096 [22:06:08]line Версия ККМ: 001 [22:06:08]line Платежная система: АКБ Кыргызстан [22:06:08]line ФМ: 0000000000965400 [22:06:08]line ФД: 68480 [22:06:08]line ФПД: 109093648336276 [22:06:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T220607&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68480&fm=109093648336276&tin=02508201610067®Number=0000000000098096&sum=19173 [22:06:08]OFD Sender: Processing packet 68480 [packets to send 26, broken 25] [22:06:08]ProducePacketName [22:06:08]name=ofd_packets/00068480 [22:06:08]OFD Sender: To server: pG, [22:06:08]CommunicateWithHost lk.salyk.kg:30040 [22:06:08]ConnectInit lk.salyk.kg [22:06:08]written 0, free lines is 4095 [22:06:08]Connected sock=10 [22:06:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 9E BC 08 01 DA 62 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 34 FF 03 08 00 03 46 0A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 E5 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E5 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F4 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E5 4A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 4F 3E 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 80 0B 01 00 35 04 06 00 63 38 58 28 05 94 B6 74 F1 94 75 DA 86 08 [22:06:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 32 59 47 00 C0 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 80 0B 01 00 F4 03 04 00 4A E5 5D 66 B6 04 01 00 00 72 0A B9 93 10 9F 13 D5 [22:06:08]CommunicateWithHost err = 0 [22:06:08]CheckOFDResponse [22:06:08]1017 (14) - 77093643461234 [22:06:08]1041 (16) - 0000000000965400 [22:06:08]1040 (4) - 68480 [22:06:08]1012 (4) - 03.06.2024 15:46 [22:06:08]1206 (1) - 0 [22:06:08]OFD Sender: Remove packet 68480 [22:06:08]ProducePacketName [22:06:08]name=ofd_packets/00068480 [22:06:08]NVStorageDeleteData [22:06:09]Write to MH i2c: 01 00 00 C7 05 CC [22:06:09]Write i2c OK [22:06:09]MH_I2C_Read... [22:06:09]Read from MH i2c: 01 [22:06:09]MH_I2C_Read... [22:06:09]Read from MH i2c: 01 07 00 [22:06:09]MH_I2C_Read... [22:06:09]Read from MH i2c: 01 07 00 C7 05 00 00 00 00 00 DF 0C BE [22:06:09]RasterBufferAndPrint [22:06:09]line [22:06:09]line [22:06:09]line [22:06:09]line [22:06:09]line [22:06:09]written 0, free lines is 3302 [22:06:09]MH_Cut [22:06:09]Write to MH i2c: D1 01 00 CE 05 01 A5 [22:06:09]Write i2c OK [22:06:09]MH_I2C_Read... [22:06:09]Read from MH i2c: D1 [22:06:09]MH_I2C_Read... [22:06:09]Read from MH i2c: D1 01 00 [22:06:09]MH_I2C_Read... [22:06:09]Read from MH i2c: D1 01 00 CE 05 00 A4 [22:06:09]Write to MH i2c: 01 00 00 CF 05 D4 [22:06:09]Write i2c OK [22:06:09]MH_I2C_Read... [22:06:09]OFD Sender: No OFD packet to send [22:06:09]*** Cut start [22:06:09]*** Partial cut [22:06:09]*** CUTSNS_PIN = 1 [22:06:09]*** CUTSNS_PIN = 0 [22:06:10]*** Brake cut motor [22:06:10]Read from MH i2c: 01 [22:06:10]MH_I2C_Read... [22:06:10]Read from MH i2c: 01 07 00 [22:06:10]MH_I2C_Read... [22:06:10]*** Stop cut motor [22:06:10]*** Cut end [22:06:10]Read from MH i2c: 01 07 00 CF 05 00 00 00 00 00 FF 0F E9 [22:06:10]process_action close_receipt done [22:06:10]requested_data is exist [22:06:10]produce_requested_data [22:06:10]requested_item fm.sn is exist - process it [22:06:10]wFMCommunicate request_size=4 [22:06:10]MH_SAM_APDU [22:06:10]CAPDU: 80 11 00 00 [22:06:10]Write to MH i2c: E2 08 00 D0 05 80 11 00 00 00 00 00 00 4F [22:06:10]Write i2c OK [22:06:10]MH_I2C_Read... [22:06:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:06:10]Read from MH i2c: E2 [22:06:10]MH_I2C_Read... [22:06:10]Read from MH i2c: E2 17 00 [22:06:10]MH_I2C_Read... [22:06:10]Read from MH i2c: E2 17 00 D0 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 9A [22:06:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [22:06:10]wFMCommunicate OK [22:06:10]requested_item fd.num is exist - process it [22:06:10]SAM_PROTO_GetFieldsCounters [22:06:10]wFMCommunicate request_size=4 [22:06:10]MH_SAM_APDU [22:06:10]CAPDU: 80 13 00 00 [22:06:10]Write to MH i2c: E2 08 00 D1 05 80 13 00 00 00 00 00 00 52 [22:06:10]Write i2c OK [22:06:10]MH_I2C_Read... [22:06:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:06:10]Read from MH i2c: E2 [22:06:10]MH_I2C_Read... [22:06:10]Read from MH i2c: E2 62 00 [22:06:10]MH_I2C_Read... [22:06:10]Read from MH i2c: E2 62 00 D1 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 80 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 E9 [22:06:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 80 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:06:10]wFMCommunicate OK [22:06:10]SAM_PROTO_GetFieldsCounters done [22:06:10]requested_item shift.num is exist - process it [22:06:10]requested_item shift.opened is exist - process it [22:06:10]req_shift_opened [22:06:10]FM_GetShiftState [22:06:10]SAM_PROTO_GetShiftState [22:06:10]wFMCommunicate request_size=4 [22:06:10]MH_SAM_APDU [22:06:10]CAPDU: 80 13 01 00 [22:06:10]Write to MH i2c: E2 08 00 D2 05 80 13 01 00 00 00 00 00 54 [22:06:10]Write i2c OK [22:06:10]MH_I2C_Read... [22:06:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:06:10]Read from MH i2c: E2 [22:06:10]MH_I2C_Read... [22:06:10]Read from MH i2c: E2 0E 00 [22:06:10]MH_I2C_Read... [22:06:10]Read from MH i2c: E2 0E 00 D2 05 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 2F [22:06:10]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [22:06:10]wFMCommunicate OK [22:06:10]SAM_PROTO_GetShiftState done [22:06:10]FM_GetShiftState done [22:06:10]req_shift_opened done [22:06:10]requested_item shift.open_date is exist - process it [22:06:10]req_shift_open_date [22:06:10]req_shift_open_date done [22:06:10]produce_requested_data done [22:06:10]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68480,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [22:06:10]process_action_free close_receipt [22:06:10]json_value_free [22:06:10]json_value_free done [22:06:10]process_json_proto returns [22:06:10]Send response to host [22:06:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68480,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [22:06:10]free response buf [22:06:10]execute_script done [22:06:10]execute_script returns [22:06:10]free content buf [22:06:10]Sock 9.Close socket [22:06:10]Sock 9.Thread stoped [22:06:13]accept exits with 7 [22:06:13]New connection [22:06:13]New thread 3067084132 created [22:06:13]Thread 3067227492 joined [22:06:13]Waiting for new connection... [22:06:13] Sock 7.Parse request [22:06:13]Sock 7.Check first char [22:06:13]Sock 7.First char is OK [22:06:13]request: POST /json_proto HTTP/1.0 [22:06:13]Method: POST [22:06:13]URL: /json_proto [22:06:13]Method is POST - this is cgi request [22:06:13]url: /json_proto [22:06:13]query_string will be loaded in cgi processing [22:06:13]execute_cgi json_proto POST (null) [22:06:13]execute_cgi path=json_proto method=POST [22:06:13]POST find Content-Length [22:06:13]Host: 172.17.36.132:8080 [22:06:13]Content-Length: 683 [22:06:13]Content-Type: application/json [22:06:13] [22:06:13]POST finish read [22:06:13]Found Content-Length = 683 [22:06:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706592", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 11.110, "sum" : 809.92, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 809.00, "total" : 809.00, "payments": [ { "type": 0, "sum" : 809.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:06:13]execute_script... [22:06: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)706592", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 11.110, "sum" : 809.92, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 809.00, "total" : 809.00, "payments": [ { "type": 0, "sum" : 809.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:06:13]POST & json_proto [22:06:13]process_json_proto [22:06:13]json parsed OK: [22:06:13]protocol is kg_v1.0 [22:06:13]action value=close_receipt [22:06:13]process_action close_receipt [22:06:13]cmd_close_receipt [22:06:13]MH_GetDate [22:06:13]Write to MH i2c: F0 00 00 D3 05 C7 [22:06:13]Write i2c OK [22:06:13]MH_I2C_Read... [22:06:13]Read from MH i2c: F0 [22:06:13]MH_I2C_Read... [22:06:13]Read from MH i2c: F0 09 00 [22:06:13]MH_I2C_Read... [22:06:13]Read from MH i2c: F0 09 00 D3 05 00 56 3E 5E 66 B2 22 B0 64 10 [22:06:13]GetLastDocTimeStamp 1717452367 [22:06:13]current date 1717452374 [22:06:13]FM_GetShiftState [22:06:13]SAM_PROTO_GetShiftState [22:06:13]wFMCommunicate request_size=4 [22:06:13]MH_SAM_APDU [22:06:13]CAPDU: 80 13 01 00 [22:06:13]Write to MH i2c: E2 08 00 D4 05 80 13 01 00 00 00 00 00 56 [22:06:13]Write i2c OK [22:06:13]MH_I2C_Read... [22:06:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:06:13]Read from MH i2c: E2 [22:06:13]MH_I2C_Read... [22:06:13]Read from MH i2c: E2 0E 00 [22:06:13]MH_I2C_Read... [22:06:13]Read from MH i2c: E2 0E 00 D4 05 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 31 [22:06:13]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [22:06:13]wFMCommunicate OK [22:06:13]SAM_PROTO_GetShiftState done [22:06:13]FM_GetShiftState done [22:06:13]opened in 1717378033 [22:06:13]opened+sec_in_day 1717464433 [22:06:13]quantity*price = 80991 [22:06:13]sum+1 = 80993 [22:06:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.92 ИТОГО: 809.00 Внесено: 809.00 СДАЧА: 0.00 НСП 1% : 7.17 НДС 12% : 86.01 Наличными: 809.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 227 03.06.2024 22:06 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68481 ФПД: 148736612642803 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T220614&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68481&fm=148736612642803&tin=02508201610067®Number=0000000000098096&sum=80900 [22:06:14]StoreToDocumentArchive [22:06:14]shift 324 fd 68481 [22:06:14]save to /storage/0324/doc_00068481 [22:06:14]save last doc name /storage/0324/doc_00068481 to /storage/kkm_last_doc_name [22:06:14]save OK [22:06:14]Clear old archive folders... [22:06:14]ProcessDocumentItem done err = 0, tmpTLVsize=252 [22:06:14]tlvbuf is 009E1A10 [22:06:14]SAM_PROTO_ClearQueue [22:06:14]wFMCommunicate request_size=4 [22:06:14]MH_SAM_APDU [22:06:14]CAPDU: 80 09 00 00 [22:06:14]Write to MH i2c: E2 08 00 E1 05 80 09 00 00 00 00 00 00 58 [22:06:14]Write i2c OK [22:06:14]MH_I2C_Read... [22:06:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:06:14]Read from MH i2c: E2 [22:06:14]MH_I2C_Read... [22:06:14]Read from MH i2c: E2 03 00 [22:06:14]MH_I2C_Read... [22:06:14]Read from MH i2c: E2 03 00 E1 05 00 90 00 5A [22:06:14]RAPDU: 90 00 [22:06:14]wFMCommunicate OK [22:06:14]SAM_PROTO_ClearQueue done [22:06:14]KKMCreateOFDPacket [22:06:14]OFDProtocolAddRootSTLVToBuf [22:06:14]FM_MakeSignedData [22:06:14]FM_MakeSignedData [22:06:14]SAM_PROTO_SignData [22:06:14]wFMCommunicate request_size=4 [22:06:14]MH_SAM_APDU [22:06:14]CAPDU: 80 0D 01 02 [22:06:14]Write to MH i2c: E2 08 00 E2 05 80 0D 01 02 00 00 00 00 60 [22:06:14]Write i2c OK [22:06:14]MH_I2C_Read... [22:06:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:06:14]Read from MH i2c: E2 [22:06:14]MH_I2C_Read... [22:06:14]Read from MH i2c: E2 03 00 [22:06:14]MH_I2C_Read... [22:06:14]Read from MH i2c: E2 03 00 E2 05 00 90 00 5B [22:06:14]RAPDU: 90 00 [22:06:14]wFMCommunicate OK [22:06:14]wFMCommunicate request_size=255 [22:06:14]MH_SAM_APDU [22:06: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 34 FF 03 08 00 03 66 2B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 60 3C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 3C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 21 00 00 00 00 07 04 06 00 04 3C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 56 3E 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 81 0B 01 00 35 04 06 00 [22:06:14]Write to MH i2c: E2 02 01 E3 05 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 34 FF 03 08 00 03 66 2B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 60 3C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 3C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 21 00 00 00 00 07 04 06 00 04 3C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 56 3E 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 81 0B 01 00 35 04 06 00 00 00 7F [22:06:14]Write i2c OK [22:06:14]MH_I2C_Read... [22:06:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:06:15]Read from MH i2c: E2 [22:06:15]MH_I2C_Read... [22:06:15]Read from MH i2c: E2 03 00 [22:06:15]MH_I2C_Read... [22:06:15]Read from MH i2c: E2 03 00 E3 05 00 90 00 5C [22:06:15]RAPDU: 90 00 [22:06:15]wFMCommunicate OK [22:06:15]wFMCommunicate request_size=11 [22:06:15]MH_SAM_APDU [22:06:15]CAPDU: 80 0D 02 02 06 87 46 70 F6 2F F3 [22:06:15]Write to MH i2c: E2 0E 00 E4 05 80 0D 02 02 06 00 87 46 70 F6 2F F3 00 00 C4 [22:06:15]Write i2c OK [22:06:15]MH_I2C_Read... [22:06:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:06:15]Read from MH i2c: E2 [22:06:15]MH_I2C_Read... [22:06:15]Read from MH i2c: E2 03 00 [22:06:15]MH_I2C_Read... [22:06:15]Read from MH i2c: E2 03 00 E4 05 00 90 00 5D [22:06:15]RAPDU: 90 00 [22:06:15]wFMCommunicate OK [22:06:15]wFMCommunicate request_size=4 [22:06:15]MH_SAM_APDU [22:06:15]CAPDU: 80 0D 03 02 [22:06:15]Write to MH i2c: E2 08 00 E5 05 80 0D 03 02 00 00 00 00 65 [22:06:15]Write i2c OK [22:06:15]MH_I2C_Read... [22:06:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:06:15]Read from MH i2c: E2 [22:06:15]MH_I2C_Read... [22:06:15]Read from MH i2c: E2 0B 00 [22:06:15]MH_I2C_Read... [22:06:15]Read from MH i2c: E2 0B 00 E5 05 00 BF B1 75 11 8C 7F 6E 82 90 00 57 [22:06:15]RAPDU: BF B1 75 11 8C 7F 6E 82 90 00 [22:06:15]wFMCommunicate OK [22:06:15]SAM_PROTO_SignData done [22:06:15]FM_MakeSignedData done [22:06:15]CreateOFDProtocolMessage [22:06:15]wFMCommunicate request_size=4 [22:06:15]MH_SAM_APDU [22:06:15]CAPDU: 80 11 00 00 [22:06:15]Write to MH i2c: E2 08 00 E6 05 80 11 00 00 00 00 00 00 65 [22:06:15]Write i2c OK [22:06:15]MH_I2C_Read... [22:06:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:06:15]Read from MH i2c: E2 [22:06:15]MH_I2C_Read... [22:06:15]Read from MH i2c: E2 17 00 [22:06:15]MH_I2C_Read... [22:06:15]Read from MH i2c: E2 17 00 E6 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 B0 [22:06:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [22:06:15]wFMCommunicate OK [22:06:15]CreateOFDProtocolMessage done [22:06:15]OFDSenderStorePacket 68481 [22:06:15]StoreOFDPacket docnum=68481 [22:06:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 2C EF 08 01 22 16 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 34 FF 03 08 00 03 66 2B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 60 3C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 3C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 21 00 00 00 00 07 04 06 00 04 3C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 56 3E 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 81 0B 01 00 35 04 06 00 87 46 70 F6 2F F3 BF B1 75 11 8C 7F 6E 82 [22:06:15]CheckFolder [22:06:15]dirname=/storage/ofd_packets [22:06:15]CheckFolder done [22:06:15]ProducePacketName [22:06:15]name=ofd_packets/00068481 [22:06:15]NVStorageSaveData ofd_packets/00068481 [22:06:15]File name is /storage/ofd_packets/00068481 [22:06:15]Write 302 bytes [22:06:15]NVStorageSaveData done [22:06:15]OFDSenderStorePacket done [22:06:15]KKMCreateOFDPacket done [22:06:15]NVStorageSaveData kkm_last_timestamp [22:06:15]File name is /storage/kkm_last_timestamp [22:06:15]Write 4 bytes [22:06:15]NVStorageSaveData done [22:06:15]ExternCall_PrintAddStr [22:06:15]wPrintStart [22:06:15]Write to MH i2c: 01 00 00 E7 05 EC [22:06:15]Write i2c OK [22:06:15]MH_I2C_Read... [22:06:15]Read from MH i2c: 01 [22:06:15]MH_I2C_Read... [22:06:15]Read from MH i2c: 01 07 00 [22:06:15]MH_I2C_Read... [22:06:15]Read from MH i2c: 01 07 00 E7 05 00 00 00 00 00 FF 0F 01 [22:06:15]RasterBufferAndPrint [22:06:15]line Счет N : (1)706592 [22:06:15]line ИНН: 02508201610067 [22:06:15]line Контрольно-Кассовый Чек [22:06:15]line ПРОДАЖА [22:06:15]line ТРК (МРК, ГНК) : 51 [22:06:15]line Товар: 2710194210 [22:06:15]line ДТ(л)-К-4 [22:06:15]line 11.110 * 72.90 [22:06:15]line = 809.92 [22:06:15]line НДС 12% НСП 1% [22:06:15]line > о реализуемом товаре [22:06:15]line ОКРУГЛЕНИЕ: -0.92 [22:06:15]line ИТОГО: 809.00 [22:06:15]line Внесено: 809.00 [22:06:15]line СДАЧА: 0.00 [22:06:15]line НСП 1% : 7.17 [22:06:15]line НДС 12% : 86.01 [22:06:15]line Наличными: 809.00 [22:06:15]line Безнал.: 0.00 [22:06:15]line Место: АЗС № 62 "Партнер Нефть" [22:06:15]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [22:06:15]line СНО: Общий режим [22:06:15]line Чек 227 03.06.2024 22:06 [22:06:15]line Смена: 324 ФФД: 1.0 [22:06:15]line ЗНМ: 0300000181 [22:06:15]line РНМ: 0000000000098096 [22:06:15]line Версия ККМ: 001 [22:06:15]line ФМ: 0000000000965400 [22:06:15]line ФД: 68481 [22:06:15]line ФПД: 148736612642803 [22:06:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T220614&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68481&fm=148736612642803&tin=02508201610067®Number=0000000000098096&sum=80900 [22:06:15]OFD Sender: Processing packet 68481 [packets to send 26, broken 25] [22:06:15]ProducePacketName [22:06:15]name=ofd_packets/00068481 [22:06:15]OFD Sender: To server: pG, [22:06:15]CommunicateWithHost lk.salyk.kg:30040 [22:06:15]ConnectInit lk.salyk.kg [22:06:15]written 0, free lines is 4095 [22:06:15]Connected sock=10 [22:06:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 2C EF 08 01 22 16 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 34 FF 03 08 00 03 66 2B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 60 3C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 3C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 21 00 00 00 00 07 04 06 00 04 3C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 56 3E 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 81 0B 01 00 35 04 06 00 87 46 70 F6 2F F3 BF B1 75 11 8C 7F 6E 82 [22:06:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 F4 C9 47 00 D4 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 81 0B 01 00 F4 03 04 00 50 E5 5D 66 B6 04 01 00 00 D6 63 D1 9C DC 0A 5D CC [22:06:15]CommunicateWithHost err = 0 [22:06:15]CheckOFDResponse [22:06:15]1017 (14) - 77093643461234 [22:06:15]1041 (16) - 0000000000965400 [22:06:15]1040 (4) - 68481 [22:06:15]1012 (4) - 03.06.2024 15:46 [22:06:15]1206 (1) - 0 [22:06:15]OFD Sender: Remove packet 68481 [22:06:15]ProducePacketName [22:06:15]name=ofd_packets/00068481 [22:06:15]NVStorageDeleteData [22:06:15]Write to MH i2c: 01 00 00 12 06 18 [22:06:15]Write i2c OK [22:06:15]MH_I2C_Read... [22:06:15]Read from MH i2c: 01 [22:06:15]MH_I2C_Read... [22:06:15]Read from MH i2c: 01 07 00 [22:06:15]MH_I2C_Read... [22:06:15]Read from MH i2c: 01 07 00 12 06 00 00 00 00 00 EE 0C 19 [22:06:15]RasterBufferAndPrint [22:06:15]line [22:06:15]line [22:06:15]line [22:06:15]line [22:06:15]line [22:06:15]written 0, free lines is 3323 [22:06:15]MH_Cut [22:06:15]Write to MH i2c: D1 01 00 19 06 01 F1 [22:06:15]Write i2c OK [22:06:15]MH_I2C_Read... [22:06:15]Read from MH i2c: D1 [22:06:15]MH_I2C_Read... [22:06:15]Read from MH i2c: D1 01 00 [22:06:15]MH_I2C_Read... [22:06:15]Read from MH i2c: D1 01 00 19 06 00 F0 [22:06:15]Write to MH i2c: 01 00 00 1A 06 20 [22:06:15]Write i2c OK [22:06:15]MH_I2C_Read... [22:06:16]OFD Sender: No OFD packet to send [22:06:16]*** Cut start [22:06:16]*** Partial cut [22:06:16]*** CUTSNS_PIN = 1 [22:06:16]*** CUTSNS_PIN = 0 [22:06:16]*** Brake cut motor [22:06:17]Read from MH i2c: 01 [22:06:17]MH_I2C_Read... [22:06:17]*** Stop cut motor [22:06:17]*** Cut end [22:06:17]Read from MH i2c: 01 07 00 [22:06:17]MH_I2C_Read... [22:06:17]Read from MH i2c: 01 07 00 1A 06 00 00 00 00 00 FF 0F 35 [22:06:17]process_action close_receipt done [22:06:17]requested_data is exist [22:06:17]produce_requested_data [22:06:17]requested_item fm.sn is exist - process it [22:06:17]wFMCommunicate request_size=4 [22:06:17]MH_SAM_APDU [22:06:17]CAPDU: 80 11 00 00 [22:06:17]Write to MH i2c: E2 08 00 1B 06 80 11 00 00 00 00 00 00 9B [22:06:17]Write i2c OK [22:06:17]MH_I2C_Read... [22:06:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:06:17]Read from MH i2c: E2 [22:06:17]MH_I2C_Read... [22:06:17]Read from MH i2c: E2 17 00 [22:06:17]MH_I2C_Read... [22:06:17]Read from MH i2c: E2 17 00 1B 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 E6 [22:06:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [22:06:17]wFMCommunicate OK [22:06:17]requested_item fd.num is exist - process it [22:06:17]SAM_PROTO_GetFieldsCounters [22:06:17]wFMCommunicate request_size=4 [22:06:17]MH_SAM_APDU [22:06:17]CAPDU: 80 13 00 00 [22:06:17]Write to MH i2c: E2 08 00 1C 06 80 13 00 00 00 00 00 00 9E [22:06:17]Write i2c OK [22:06:17]MH_I2C_Read... [22:06:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:06:17]Read from MH i2c: E2 [22:06:17]MH_I2C_Read... [22:06:17]Read from MH i2c: E2 62 00 [22:06:17]MH_I2C_Read... [22:06:17]Read from MH i2c: E2 62 00 1C 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 81 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 39 [22:06:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 81 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:06:17]wFMCommunicate OK [22:06:17]SAM_PROTO_GetFieldsCounters done [22:06:17]requested_item shift.num is exist - process it [22:06:17]requested_item shift.opened is exist - process it [22:06:17]req_shift_opened [22:06:17]FM_GetShiftState [22:06:17]SAM_PROTO_GetShiftState [22:06:17]wFMCommunicate request_size=4 [22:06:17]MH_SAM_APDU [22:06:17]CAPDU: 80 13 01 00 [22:06:17]Write to MH i2c: E2 08 00 1D 06 80 13 01 00 00 00 00 00 A0 [22:06:17]Write i2c OK [22:06:17]MH_I2C_Read... [22:06:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:06:17]Read from MH i2c: E2 [22:06:17]MH_I2C_Read... [22:06:17]Read from MH i2c: E2 0E 00 [22:06:17]MH_I2C_Read... [22:06:17]Read from MH i2c: E2 0E 00 1D 06 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 7B [22:06:17]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [22:06:17]wFMCommunicate OK [22:06:17]SAM_PROTO_GetShiftState done [22:06:17]FM_GetShiftState done [22:06:17]req_shift_opened done [22:06:17]requested_item shift.open_date is exist - process it [22:06:17]req_shift_open_date [22:06:17]req_shift_open_date done [22:06:17]produce_requested_data done [22:06:17]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68481,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [22:06:17]process_action_free close_receipt [22:06:17]json_value_free [22:06:17]json_value_free done [22:06:17]process_json_proto returns [22:06:17]Send response to host [22:06:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68481,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [22:06:17]free response buf [22:06:17]execute_script done [22:06:17]execute_script returns [22:06:17]free content buf [22:06:17]Sock 7.Close socket [22:06:17]Sock 7.Thread stoped [22:06:21]OFD Sender: No OFD packet to send [22:06:26]OFD Sender: No OFD packet to send [22:06:31]OFD Sender: No OFD packet to send [22:06:36]OFD Sender: No OFD packet to send [22:06:41]OFD Sender: No OFD packet to send [22:06:46]OFD Sender: No OFD packet to send [22:06:51]OFD Sender: No OFD packet to send [22:06:56]OFD Sender: No OFD packet to send [22:07:01]OFD Sender: No OFD packet to send [22:07:06]OFD Sender: No OFD packet to send [22:07:11]OFD Sender: No OFD packet to send [22:07:16]OFD Sender: No OFD packet to send [22:07:21]OFD Sender: No OFD packet to send [22:07:26]OFD Sender: No OFD packet to send [22:07:31]OFD Sender: No OFD packet to send [22:07:36]OFD Sender: No OFD packet to send [22:07:41]OFD Sender: No OFD packet to send [22:07:46]OFD Sender: No OFD packet to send [22:07:51]OFD Sender: No OFD packet to send [22:07:56]OFD Sender: No OFD packet to send [22:07:59]accept exits with 9 [22:07:59]New connection [22:07:59]New thread 3067227492 created [22:07:59]Thread 3067084132 joined [22:07:59]Waiting for new connection... [22:07:59] Sock 9.Parse request [22:07:59]Sock 9.Check first char [22:07:59]Sock 9.First char is OK [22:07:59]request: POST /json_proto HTTP/1.0 [22:07:59]Method: POST [22:07:59]URL: /json_proto [22:07:59]Method is POST - this is cgi request [22:07:59]url: /json_proto [22:07:59]query_string will be loaded in cgi processing [22:07:59]execute_cgi json_proto POST (null) [22:07:59]execute_cgi path=json_proto method=POST [22:07:59]POST find Content-Length [22:07:59]Host: 172.17.36.132:8080 [22:07:59]Content-Length: 677 [22:07:59]Content-Type: application/json [22:07:59] [22:07:59]POST finish read [22:07:59]Found Content-Length = 677 [22:07:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706593", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:07:59]execute_script... [22:07: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)706593", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:07:59]POST & json_proto [22:07:59]process_json_proto [22:07:59]json parsed OK: [22:07:59]protocol is kg_v1.0 [22:07:59]action value=close_receipt [22:07:59]process_action close_receipt [22:07:59]cmd_close_receipt [22:07:59]MH_GetDate [22:07:59]Write to MH i2c: F0 00 00 1E 06 13 [22:07:59]Write i2c OK [22:07:59]MH_I2C_Read... [22:07:59]Read from MH i2c: F0 [22:07:59]MH_I2C_Read... [22:07:59]Read from MH i2c: F0 09 00 [22:07:59]MH_I2C_Read... [22:07:59]Read from MH i2c: F0 09 00 1E 06 00 BF 3E 5E 66 B2 22 B0 64 C5 [22:07:59]GetLastDocTimeStamp 1717452374 [22:07:59]current date 1717452479 [22:07:59]FM_GetShiftState [22:07:59]SAM_PROTO_GetShiftState [22:07:59]wFMCommunicate request_size=4 [22:07:59]MH_SAM_APDU [22:07:59]CAPDU: 80 13 01 00 [22:07:59]Write to MH i2c: E2 08 00 1F 06 80 13 01 00 00 00 00 00 A2 [22:07:59]Write i2c OK [22:07:59]MH_I2C_Read... [22:07:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:07:59]Read from MH i2c: E2 [22:07:59]MH_I2C_Read... [22:07:59]Read from MH i2c: E2 0E 00 [22:07:59]MH_I2C_Read... [22:07:59]Read from MH i2c: E2 0E 00 1F 06 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 7D [22:07:59]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [22:07:59]wFMCommunicate OK [22:07:59]SAM_PROTO_GetShiftState done [22:07:59]FM_GetShiftState done [22:07:59]opened in 1717378033 [22:07:59]opened+sec_in_day 1717464433 [22:07:59]quantity*price = 20003 [22:07:59]sum+1 = 20004 [22:07:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 228 03.06.2024 22:07 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68482 ФПД: 258403244213127 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T220759&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68482&fm=258403244213127&tin=02508201610067®Number=0000000000098096&sum=20000 [22:08:00]StoreToDocumentArchive [22:08:00]shift 324 fd 68482 [22:08:00]save to /storage/0324/doc_00068482 [22:08:00]save last doc name /storage/0324/doc_00068482 to /storage/kkm_last_doc_name [22:08:00]save OK [22:08:00]Clear old archive folders... [22:08:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:08:00]tlvbuf is 00A32C20 [22:08:00]SAM_PROTO_ClearQueue [22:08:00]wFMCommunicate request_size=4 [22:08:00]MH_SAM_APDU [22:08:00]CAPDU: 80 09 00 00 [22:08:00]Write to MH i2c: E2 08 00 2C 06 80 09 00 00 00 00 00 00 A4 [22:08:00]Write i2c OK [22:08:00]MH_I2C_Read... [22:08:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:08:00]Read from MH i2c: E2 [22:08:00]MH_I2C_Read... [22:08:00]Read from MH i2c: E2 03 00 [22:08:00]MH_I2C_Read... [22:08:00]Read from MH i2c: E2 03 00 2C 06 00 90 00 A6 [22:08:00]RAPDU: 90 00 [22:08:00]wFMCommunicate OK [22:08:00]SAM_PROTO_ClearQueue done [22:08:00]KKMCreateOFDPacket [22:08:00]OFDProtocolAddRootSTLVToBuf [22:08:00]FM_MakeSignedData [22:08:00]FM_MakeSignedData [22:08:00]SAM_PROTO_SignData [22:08:00]wFMCommunicate request_size=4 [22:08:00]MH_SAM_APDU [22:08:00]CAPDU: 80 0D 01 02 [22:08:00]Write to MH i2c: E2 08 00 2D 06 80 0D 01 02 00 00 00 00 AC [22:08:00]Write i2c OK [22:08:00]MH_I2C_Read... [22:08:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:08:00]Read from MH i2c: E2 [22:08:00]MH_I2C_Read... [22:08:00]Read from MH i2c: E2 03 00 [22:08:00]MH_I2C_Read... [22:08:00]Read from MH i2c: E2 03 00 2D 06 00 90 00 A7 [22:08:00]RAPDU: 90 00 [22:08:00]wFMCommunicate OK [22:08:00]wFMCommunicate request_size=255 [22:08:00]MH_SAM_APDU [22:08:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 BF 3E 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 82 0B 01 00 35 04 06 00 EB [22:08:00]Write to MH i2c: E2 02 01 2E 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 BF 3E 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 82 0B 01 00 35 04 06 00 EB 00 00 5E [22:08:00]Write i2c OK [22:08:00]MH_I2C_Read... [22:08:00]Read from MH i2c: E2 [22:08:00]MH_I2C_Read... [22:08:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:08:00]Read from MH i2c: E2 03 00 [22:08:00]MH_I2C_Read... [22:08:00]Read from MH i2c: E2 03 00 2E 06 00 90 00 A8 [22:08:00]RAPDU: 90 00 [22:08:00]wFMCommunicate OK [22:08:00]wFMCommunicate request_size=10 [22:08:00]MH_SAM_APDU [22:08:00]CAPDU: 80 0D 02 02 05 04 31 94 83 87 [22:08:00]Write to MH i2c: E2 0D 00 2F 06 80 0D 02 02 05 00 04 31 94 83 87 00 00 8C [22:08:00]Write i2c OK [22:08:00]MH_I2C_Read... [22:08:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:08:00]Read from MH i2c: E2 [22:08:00]MH_I2C_Read... [22:08:00]Read from MH i2c: E2 03 00 [22:08:00]MH_I2C_Read... [22:08:00]Read from MH i2c: E2 03 00 2F 06 00 90 00 A9 [22:08:00]RAPDU: 90 00 [22:08:00]wFMCommunicate OK [22:08:00]wFMCommunicate request_size=4 [22:08:00]MH_SAM_APDU [22:08:00]CAPDU: 80 0D 03 02 [22:08:00]Write to MH i2c: E2 08 00 30 06 80 0D 03 02 00 00 00 00 B1 [22:08:00]Write i2c OK [22:08:00]MH_I2C_Read... [22:08:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:08:00]Read from MH i2c: E2 [22:08:00]MH_I2C_Read... [22:08:00]Read from MH i2c: E2 0B 00 [22:08:00]MH_I2C_Read... [22:08:00]Read from MH i2c: E2 0B 00 30 06 00 22 60 37 82 1B 8D FC D7 90 00 68 [22:08:00]RAPDU: 22 60 37 82 1B 8D FC D7 90 00 [22:08:00]wFMCommunicate OK [22:08:00]SAM_PROTO_SignData done [22:08:00]FM_MakeSignedData done [22:08:00]CreateOFDProtocolMessage [22:08:00]wFMCommunicate request_size=4 [22:08:00]MH_SAM_APDU [22:08:00]CAPDU: 80 11 00 00 [22:08:00]Write to MH i2c: E2 08 00 31 06 80 11 00 00 00 00 00 00 B1 [22:08:00]Write i2c OK [22:08:00]MH_I2C_Read... [22:08:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:08:00]Read from MH i2c: E2 [22:08:00]MH_I2C_Read... [22:08:00]Read from MH i2c: E2 17 00 [22:08:00]MH_I2C_Read... [22:08:00]Read from MH i2c: E2 17 00 31 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 FC [22:08:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [22:08:00]wFMCommunicate OK [22:08:00]CreateOFDProtocolMessage done [22:08:00]OFDSenderStorePacket 68482 [22:08:00]StoreOFDPacket docnum=68482 [22:08:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 08 59 07 01 92 A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 BF 3E 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 82 0B 01 00 35 04 06 00 EB 04 31 94 83 87 22 60 37 82 1B 8D FC D7 [22:08:00]CheckFolder [22:08:00]dirname=/storage/ofd_packets [22:08:00]CheckFolder done [22:08:00]ProducePacketName [22:08:00]name=ofd_packets/00068482 [22:08:00]NVStorageSaveData ofd_packets/00068482 [22:08:00]File name is /storage/ofd_packets/00068482 [22:08:00]Write 301 bytes [22:08:00]NVStorageSaveData done [22:08:00]OFDSenderStorePacket done [22:08:00]KKMCreateOFDPacket done [22:08:00]NVStorageSaveData kkm_last_timestamp [22:08:00]File name is /storage/kkm_last_timestamp [22:08:00]Write 4 bytes [22:08:00]NVStorageSaveData done [22:08:00]ExternCall_PrintAddStr [22:08:00]wPrintStart [22:08:00]Write to MH i2c: 01 00 00 32 06 38 [22:08:00]Write i2c OK [22:08:00]MH_I2C_Read... [22:08:00]Read from MH i2c: 01 [22:08:00]MH_I2C_Read... [22:08:00]Read from MH i2c: 01 07 00 [22:08:00]MH_I2C_Read... [22:08:00]Read from MH i2c: 01 07 00 32 06 00 00 00 00 00 FF 0F 4D [22:08:00]RasterBufferAndPrint [22:08:00]line Счет N : (1)706593 [22:08:00]line ИНН: 02508201610067 [22:08:00]line Контрольно-Кассовый Чек [22:08:00]line ПРОДАЖА [22:08:00]line ТРК (МРК, ГНК) : 63 [22:08:00]line Товар: 2710124130 [22:08:00]line Аи-92-К-4 [22:08:00]line 2.990 * 66.90 [22:08:00]line = 200.03 [22:08:00]line НДС 12% НСП 1% [22:08:00]line > о реализуемом товаре [22:08:00]line ОКРУГЛЕНИЕ: -0.03 [22:08:00]line ИТОГО: 200.00 [22:08:00]line Внесено: 200.00 [22:08:00]line СДАЧА: 0.00 [22:08:00]line НСП 1% : 1.77 [22:08:00]line НДС 12% : 21.24 [22:08:00]line Наличными: 200.00 [22:08:00]line Безнал.: 0.00 [22:08:00]line Место: АЗС № 62 "Партнер Нефть" [22:08:00]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [22:08:00]line СНО: Общий режим [22:08:00]line Чек 228 03.06.2024 22:07 [22:08:00]line Смена: 324 ФФД: 1.0 [22:08:00]line ЗНМ: 0300000181 [22:08:00]line РНМ: 0000000000098096 [22:08:00]line Версия ККМ: 001 [22:08:00]line ФМ: 0000000000965400 [22:08:00]line ФД: 68482 [22:08:00]line ФПД: 258403244213127 [22:08:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T220759&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68482&fm=258403244213127&tin=02508201610067®Number=0000000000098096&sum=20000 [22:08:01]OFD Sender: Processing packet 68482 [packets to send 26, broken 25] [22:08:01]ProducePacketName [22:08:01]name=ofd_packets/00068482 [22:08:01]OFD Sender: To server: pG, [22:08:01]CommunicateWithHost lk.salyk.kg:30040 [22:08:01]ConnectInit lk.salyk.kg [22:08:01]written 0, free lines is 4095 [22:08:01]Connected sock=10 [22:08:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 08 59 07 01 92 A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 BF 3E 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 82 0B 01 00 35 04 06 00 EB 04 31 94 83 87 22 60 37 82 1B 8D FC D7 [22:08:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 85 F3 47 00 07 F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 82 0B 01 00 F4 03 04 00 BA E5 5D 66 B6 04 01 00 00 1D D7 AC 0A F2 D4 46 AB [22:08:01]CommunicateWithHost err = 0 [22:08:01]CheckOFDResponse [22:08:01]1017 (14) - 77093643461234 [22:08:01]1041 (16) - 0000000000965400 [22:08:01]1040 (4) - 68482 [22:08:01]1012 (4) - 03.06.2024 15:48 [22:08:01]1206 (1) - 0 [22:08:01]OFD Sender: Remove packet 68482 [22:08:01]ProducePacketName [22:08:01]name=ofd_packets/00068482 [22:08:01]NVStorageDeleteData [22:08:01]Write to MH i2c: 01 00 00 5D 06 63 [22:08:01]Write i2c OK [22:08:01]MH_I2C_Read... [22:08:01]Read from MH i2c: 01 [22:08:01]MH_I2C_Read... [22:08:01]Read from MH i2c: 01 07 00 [22:08:01]MH_I2C_Read... [22:08:01]Read from MH i2c: 01 07 00 5D 06 00 00 00 00 00 ED 0C 63 [22:08:01]RasterBufferAndPrint [22:08:01]line [22:08:01]line [22:08:01]line [22:08:01]line [22:08:01]line [22:08:01]written 0, free lines is 3315 [22:08:01]MH_Cut [22:08:01]Write to MH i2c: D1 01 00 64 06 01 3C [22:08:01]Write i2c OK [22:08:01]MH_I2C_Read... [22:08:01]Read from MH i2c: D1 [22:08:01]MH_I2C_Read... [22:08:01]Read from MH i2c: D1 01 00 [22:08:01]MH_I2C_Read... [22:08:01]Read from MH i2c: D1 01 00 64 06 00 3B [22:08:01]Write to MH i2c: 01 00 00 65 06 6B [22:08:01]Write i2c OK [22:08:01]MH_I2C_Read... [22:08:01]OFD Sender: No OFD packet to send [22:08:02]*** Cut start [22:08:02]*** Partial cut [22:08:02]*** CUTSNS_PIN = 1 [22:08:02]*** CUTSNS_PIN = 0 [22:08:02]*** Brake cut motor [22:08:02]Read from MH i2c: 01 [22:08:03]MH_I2C_Read... [22:08:03]*** Stop cut motor [22:08:03]*** Cut end [22:08:03]Read from MH i2c: 01 07 00 [22:08:03]MH_I2C_Read... [22:08:03]Read from MH i2c: 01 07 00 65 06 00 00 00 00 00 FF 0F 80 [22:08:03]process_action close_receipt done [22:08:03]requested_data is exist [22:08:03]produce_requested_data [22:08:03]requested_item fm.sn is exist - process it [22:08:03]wFMCommunicate request_size=4 [22:08:03]MH_SAM_APDU [22:08:03]CAPDU: 80 11 00 00 [22:08:03]Write to MH i2c: E2 08 00 66 06 80 11 00 00 00 00 00 00 E6 [22:08:03]Write i2c OK [22:08:03]MH_I2C_Read... [22:08:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:08:03]Read from MH i2c: E2 [22:08:03]MH_I2C_Read... [22:08:03]Read from MH i2c: E2 17 00 [22:08:03]MH_I2C_Read... [22:08:03]Read from MH i2c: E2 17 00 66 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 31 [22:08:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [22:08:03]wFMCommunicate OK [22:08:03]requested_item fd.num is exist - process it [22:08:03]SAM_PROTO_GetFieldsCounters [22:08:03]wFMCommunicate request_size=4 [22:08:03]MH_SAM_APDU [22:08:03]CAPDU: 80 13 00 00 [22:08:03]Write to MH i2c: E2 08 00 67 06 80 13 00 00 00 00 00 00 E9 [22:08:03]Write i2c OK [22:08:03]MH_I2C_Read... [22:08:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:08:03]Read from MH i2c: E2 [22:08:03]MH_I2C_Read... [22:08:03]Read from MH i2c: E2 62 00 [22:08:03]MH_I2C_Read... [22:08:03]Read from MH i2c: E2 62 00 67 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 82 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 88 [22:08:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 82 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:08:03]wFMCommunicate OK [22:08:03]SAM_PROTO_GetFieldsCounters done [22:08:03]requested_item shift.num is exist - process it [22:08:03]requested_item shift.opened is exist - process it [22:08:03]req_shift_opened [22:08:03]FM_GetShiftState [22:08:03]SAM_PROTO_GetShiftState [22:08:03]wFMCommunicate request_size=4 [22:08:03]MH_SAM_APDU [22:08:03]CAPDU: 80 13 01 00 [22:08:03]Write to MH i2c: E2 08 00 68 06 80 13 01 00 00 00 00 00 EB [22:08:03]Write i2c OK [22:08:03]MH_I2C_Read... [22:08:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:08:03]Read from MH i2c: E2 [22:08:03]MH_I2C_Read... [22:08:03]Read from MH i2c: E2 0E 00 [22:08:03]MH_I2C_Read... [22:08:03]Read from MH i2c: E2 0E 00 68 06 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 C6 [22:08:03]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [22:08:03]wFMCommunicate OK [22:08:03]SAM_PROTO_GetShiftState done [22:08:03]FM_GetShiftState done [22:08:03]req_shift_opened done [22:08:03]requested_item shift.open_date is exist - process it [22:08:03]req_shift_open_date [22:08:03]req_shift_open_date done [22:08:03]produce_requested_data done [22:08:03]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68482,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [22:08:03]process_action_free close_receipt [22:08:03]json_value_free [22:08:03]json_value_free done [22:08:03]process_json_proto returns [22:08:03]Send response to host [22:08:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68482,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [22:08:03]free response buf [22:08:03]execute_script done [22:08:03]execute_script returns [22:08:03]free content buf [22:08:03]Sock 9.Close socket [22:08:03]Sock 9.Thread stoped [22:08:03]accept exits with 7 [22:08:03]New connection [22:08:03]New thread 3067084132 created [22:08:03]Thread 3067227492 joined [22:08:03]Waiting for new connection... [22:08:03] Sock 7.Parse request [22:08:03]Sock 7.Check first char [22:08:03]Sock 7.First char is OK [22:08:03]request: POST /json_proto HTTP/1.0 [22:08:03]Method: POST [22:08:03]URL: /json_proto [22:08:03]Method is POST - this is cgi request [22:08:03]url: /json_proto [22:08:03]query_string will be loaded in cgi processing [22:08:03]execute_cgi json_proto POST (null) [22:08:03]execute_cgi path=json_proto method=POST [22:08:03]POST find Content-Length [22:08:03]Host: 172.17.36.132:8080 [22:08:03]Content-Length: 739 [22:08:03]Content-Type: application/json [22:08:03] [22:08:03]POST finish read [22:08:03]Found Content-Length = 739 [22:08:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 68481, "base_FM": "0000000000965400", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706592", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 11.110, "sum" : 809.92, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 809.00, "total" : 809.00, "payments": [ { "type": 0, "sum" : 809.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:08:03]execute_script... [22:08:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 68481, "base_FM": "0000000000965400", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706592", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 11.110, "sum" : 809.92, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 809.00, "total" : 809.00, "payments": [ { "type": 0, "sum" : 809.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:08:03]POST & json_proto [22:08:03]process_json_proto [22:08:03]json parsed OK: [22:08:03]protocol is kg_v1.0 [22:08:03]action value=close_receipt [22:08:03]process_action close_receipt [22:08:03]cmd_close_receipt [22:08:03]MH_GetDate [22:08:03]Write to MH i2c: F0 00 00 69 06 5E [22:08:03]Write i2c OK [22:08:03]MH_I2C_Read... [22:08:03]Read from MH i2c: F0 [22:08:03]MH_I2C_Read... [22:08:03]Read from MH i2c: F0 09 00 [22:08:03]MH_I2C_Read... [22:08:03]Read from MH i2c: F0 09 00 69 06 00 C4 3E 5E 66 B2 22 B0 64 15 [22:08:03]GetLastDocTimeStamp 1717452479 [22:08:03]current date 1717452484 [22:08:03]FM_GetShiftState [22:08:03]SAM_PROTO_GetShiftState [22:08:03]wFMCommunicate request_size=4 [22:08:03]MH_SAM_APDU [22:08:03]CAPDU: 80 13 01 00 [22:08:03]Write to MH i2c: E2 08 00 6A 06 80 13 01 00 00 00 00 00 ED [22:08:03]Write i2c OK [22:08:03]MH_I2C_Read... [22:08:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:08:03]Read from MH i2c: E2 [22:08:03]MH_I2C_Read... [22:08:03]Read from MH i2c: E2 0E 00 [22:08:03]MH_I2C_Read... [22:08:03]Read from MH i2c: E2 0E 00 6A 06 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 C8 [22:08:03]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [22:08:03]wFMCommunicate OK [22:08:03]SAM_PROTO_GetShiftState done [22:08:03]FM_GetShiftState done [22:08:03]opened in 1717378033 [22:08:03]opened+sec_in_day 1717464433 [22:08:03]quantity*price = 80991 [22:08:03]sum+1 = 80993 [22:08:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.92 ИТОГО: 809.00 НСП 1% : 7.17 НДС 12% : 86.01 Наличными: 809.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 229 03.06.2024 22:08 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФД осн.: 68481 ФМ осн.: 0000000000965400 ФМ: 0000000000965400 ФД: 68483 ФПД: 188655984504958 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T220804&type=2&operation_type=1&fn_number=0000000000965400&fd_number=68483&fm=188655984504958&tin=02508201610067®Number=0000000000098096&sum=80900 [22:08:04]StoreToDocumentArchive [22:08:04]shift 324 fd 68483 [22:08:04]save to /storage/0324/doc_00068483 [22:08:04]save last doc name /storage/0324/doc_00068483 to /storage/kkm_last_doc_name [22:08:04]save OK [22:08:04]Clear old archive folders... [22:08:04]ProcessDocumentItem done err = 0, tmpTLVsize=280 [22:08:04]tlvbuf is 00A4C630 [22:08:04]SAM_PROTO_ClearQueue [22:08:04]wFMCommunicate request_size=4 [22:08:04]MH_SAM_APDU [22:08:04]CAPDU: 80 09 00 00 [22:08:04]Write to MH i2c: E2 08 00 79 06 80 09 00 00 00 00 00 00 F1 [22:08:04]Write i2c OK [22:08:04]MH_I2C_Read... [22:08:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:08:04]Read from MH i2c: E2 [22:08:04]MH_I2C_Read... [22:08:04]Read from MH i2c: E2 03 00 [22:08:04]MH_I2C_Read... [22:08:04]Read from MH i2c: E2 03 00 79 06 00 90 00 F3 [22:08:04]RAPDU: 90 00 [22:08:04]wFMCommunicate OK [22:08:04]SAM_PROTO_ClearQueue done [22:08:04]KKMCreateOFDPacket [22:08:04]OFDProtocolAddRootSTLVToBuf [22:08:04]FM_MakeSignedData [22:08:04]FM_MakeSignedData [22:08:04]SAM_PROTO_SignData [22:08:04]wFMCommunicate request_size=4 [22:08:04]MH_SAM_APDU [22:08:04]CAPDU: 80 0D 01 02 [22:08:04]Write to MH i2c: E2 08 00 7A 06 80 0D 01 02 00 00 00 00 F9 [22:08:04]Write i2c OK [22:08:04]MH_I2C_Read... [22:08:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:08:04]Read from MH i2c: E2 [22:08:04]MH_I2C_Read... [22:08:04]Read from MH i2c: E2 03 00 [22:08:04]MH_I2C_Read... [22:08:04]Read from MH i2c: E2 03 00 7A 06 00 90 00 F4 [22:08:04]RAPDU: 90 00 [22:08:04]wFMCommunicate OK [22:08:04]wFMCommunicate request_size=255 [22:08:04]MH_SAM_APDU [22:08:04]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 02 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 34 FF 03 08 00 03 66 2B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 60 3C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 3C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 21 00 00 00 00 07 04 06 00 04 3C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 C4 3E 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 27 04 04 00 81 0B 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 11 04 10 00 [22:08:04]Write to MH i2c: E2 02 01 7B 06 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 02 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 34 FF 03 08 00 03 66 2B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 60 3C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 3C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 21 00 00 00 00 07 04 06 00 04 3C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 C4 3E 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 27 04 04 00 81 0B 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 11 04 10 00 00 00 BA [22:08:04]Write i2c OK [22:08:04]MH_I2C_Read... [22:08:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:08:05]Read from MH i2c: E2 [22:08:05]MH_I2C_Read... [22:08:05]Read from MH i2c: E2 03 00 [22:08:05]MH_I2C_Read... [22:08:05]Read from MH i2c: E2 03 00 7B 06 00 90 00 F5 [22:08:05]RAPDU: 90 00 [22:08:05]wFMCommunicate OK [22:08:05]wFMCommunicate request_size=39 [22:08:05]MH_SAM_APDU [22:08:05]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 83 0B 01 00 35 04 06 00 AB 94 E4 F0 F0 7E [22:08:05]Write to MH i2c: E2 2A 00 7C 06 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 83 0B 01 00 35 04 06 00 AB 94 E4 F0 F0 7E 00 00 BF [22:08:05]Write i2c OK [22:08:05]MH_I2C_Read... [22:08:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:08:05]Read from MH i2c: E2 [22:08:05]MH_I2C_Read... [22:08:05]Read from MH i2c: E2 03 00 [22:08:05]MH_I2C_Read... [22:08:05]Read from MH i2c: E2 03 00 7C 06 00 90 00 F6 [22:08:05]RAPDU: 90 00 [22:08:05]wFMCommunicate OK [22:08:05]wFMCommunicate request_size=4 [22:08:05]MH_SAM_APDU [22:08:05]CAPDU: 80 0D 03 02 [22:08:05]Write to MH i2c: E2 08 00 7D 06 80 0D 03 02 00 00 00 00 FE [22:08:05]Write i2c OK [22:08:05]MH_I2C_Read... [22:08:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:08:05]Read from MH i2c: E2 [22:08:05]MH_I2C_Read... [22:08:05]Read from MH i2c: E2 0B 00 [22:08:05]MH_I2C_Read... [22:08:05]Read from MH i2c: E2 0B 00 7D 06 00 D2 58 5B 31 CE AB 2B EB 90 00 44 [22:08:05]RAPDU: D2 58 5B 31 CE AB 2B EB 90 00 [22:08:05]wFMCommunicate OK [22:08:05]SAM_PROTO_SignData done [22:08:05]FM_MakeSignedData done [22:08:05]CreateOFDProtocolMessage [22:08:05]wFMCommunicate request_size=4 [22:08:05]MH_SAM_APDU [22:08:05]CAPDU: 80 11 00 00 [22:08:05]Write to MH i2c: E2 08 00 7E 06 80 11 00 00 00 00 00 00 FE [22:08:05]Write i2c OK [22:08:05]MH_I2C_Read... [22:08:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:08:05]Read from MH i2c: E2 [22:08:05]MH_I2C_Read... [22:08:05]Read from MH i2c: E2 17 00 [22:08:05]MH_I2C_Read... [22:08:05]Read from MH i2c: E2 17 00 7E 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 49 [22:08:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [22:08:05]wFMCommunicate OK [22:08:05]CreateOFDProtocolMessage done [22:08:05]OFDSenderStorePacket 68483 [22:08:05]StoreOFDPacket docnum=68483 [22:08:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 2C 01 00 00 3A 0A 24 01 CF A8 5A 03 01 00 03 00 18 01 1E 04 01 00 02 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 34 FF 03 08 00 03 66 2B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 60 3C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 3C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 21 00 00 00 00 07 04 06 00 04 3C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 C4 3E 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 27 04 04 00 81 0B 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 83 0B 01 00 35 04 06 00 AB 94 E4 F0 F0 7E D2 58 5B 31 CE AB 2B EB [22:08:05]CheckFolder [22:08:05]dirname=/storage/ofd_packets [22:08:05]CheckFolder done [22:08:05]ProducePacketName [22:08:05]name=ofd_packets/00068483 [22:08:05]NVStorageSaveData ofd_packets/00068483 [22:08:05]File name is /storage/ofd_packets/00068483 [22:08:05]Write 330 bytes [22:08:05]NVStorageSaveData done [22:08:05]OFDSenderStorePacket done [22:08:05]KKMCreateOFDPacket done [22:08:05]NVStorageSaveData kkm_last_timestamp [22:08:05]File name is /storage/kkm_last_timestamp [22:08:05]Write 4 bytes [22:08:05]NVStorageSaveData done [22:08:05]ExternCall_PrintAddStr [22:08:05]wPrintStart [22:08:05]Write to MH i2c: 01 00 00 7F 06 85 [22:08:05]Write i2c OK [22:08:05]MH_I2C_Read... [22:08:05]Read from MH i2c: 01 [22:08:05]MH_I2C_Read... [22:08:05]Read from MH i2c: 01 07 00 [22:08:05]MH_I2C_Read... [22:08:05]Read from MH i2c: 01 07 00 7F 06 00 00 00 00 00 FF 0F 9A [22:08:05]RasterBufferAndPrint [22:08:05]line Счет N : (1)706592 [22:08:05]line ИНН: 02508201610067 [22:08:05]line Контрольно-Кассовый Чек [22:08:05]line ВОЗВРАТ ПРОДАЖИ [22:08:05]line ТРК (МРК, ГНК) : 51 [22:08:05]line Товар: 2710194210 [22:08:05]line ДТ(л)-К-4 [22:08:05]line 11.110 * 72.90 [22:08:06]line = 809.92 [22:08:06]line НДС 12% НСП 1% [22:08:06]line > о реализуемом товаре [22:08:06]line ОКРУГЛЕНИЕ: -0.92 [22:08:06]line ИТОГО: 809.00 [22:08:06]line НСП 1% : 7.17 [22:08:06]line НДС 12% : 86.01 [22:08:06]line Наличными: 809.00 [22:08:06]line Безнал.: 0.00 [22:08:06]line Место: АЗС № 62 "Партнер Нефть" [22:08:06]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [22:08:06]line СНО: Общий режим [22:08:06]line Чек 229 03.06.2024 22:08 [22:08:06]line Смена: 324 ФФД: 1.0 [22:08:06]line ЗНМ: 0300000181 [22:08:06]line РНМ: 0000000000098096 [22:08:06]line Версия ККМ: 001 [22:08:06]line ФД осн.: 68481 [22:08:06]line ФМ осн.: 0000000000965400 [22:08:06]line ФМ: 0000000000965400 [22:08:06]line ФД: 68483 [22:08:06]line ФПД: 188655984504958 [22:08:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T220804&type=2&operation_type=1&fn_number=0000000000965400&fd_number=68483&fm=188655984504958&tin=02508201610067®Number=0000000000098096&sum=80900 [22:08:06]OFD Sender: Processing packet 68483 [packets to send 26, broken 25] [22:08:06]ProducePacketName [22:08:06]name=ofd_packets/00068483 [22:08:06]OFD Sender: To server: pG, [22:08:06]CommunicateWithHost lk.salyk.kg:30040 [22:08:06]ConnectInit lk.salyk.kg [22:08:06]written 0, free lines is 4095 [22:08:06]Connected sock=11 [22:08:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 2C 01 00 00 3A 0A 24 01 CF A8 5A 03 01 00 03 00 18 01 1E 04 01 00 02 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 34 FF 03 08 00 03 66 2B 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 60 3C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 3C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 21 00 00 00 00 07 04 06 00 04 3C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 C4 3E 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 27 04 04 00 81 0B 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 83 0B 01 00 35 04 06 00 AB 94 E4 F0 F0 7E D2 58 5B 31 CE AB 2B EB [22:08:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 9A 6E 47 00 EC A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 83 0B 01 00 F4 03 04 00 BF E5 5D 66 B6 04 01 00 00 0C F8 AC 2E 56 67 60 DB [22:08:06]CommunicateWithHost err = 0 [22:08:06]CheckOFDResponse [22:08:06]1017 (14) - 77093643461234 [22:08:06]1041 (16) - 0000000000965400 [22:08:06]1040 (4) - 68483 [22:08:06]1012 (4) - 03.06.2024 15:48 [22:08:06]1206 (1) - 0 [22:08:06]OFD Sender: Remove packet 68483 [22:08:06]ProducePacketName [22:08:06]name=ofd_packets/00068483 [22:08:06]NVStorageDeleteData [22:08:06]Write to MH i2c: 01 00 00 AA 06 B0 [22:08:06]Write i2c OK [22:08:06]MH_I2C_Read... [22:08:06]Read from MH i2c: 01 [22:08:06]MH_I2C_Read... [22:08:06]Read from MH i2c: 01 07 00 [22:08:06]MH_I2C_Read... [22:08:06]Read from MH i2c: 01 07 00 AA 06 00 00 00 00 00 03 0D C7 [22:08:06]RasterBufferAndPrint [22:08:06]line [22:08:06]line [22:08:06]line [22:08:06]line [22:08:06]line [22:08:06]written 0, free lines is 3339 [22:08:06]MH_Cut [22:08:06]Write to MH i2c: D1 01 00 B1 06 01 89 [22:08:06]Write i2c OK [22:08:06]MH_I2C_Read... [22:08:06]Read from MH i2c: D1 [22:08:06]MH_I2C_Read... [22:08:06]Read from MH i2c: D1 01 00 [22:08:06]MH_I2C_Read... [22:08:06]Read from MH i2c: D1 01 00 B1 06 00 88 [22:08:06]Write to MH i2c: 01 00 00 B2 06 B8 [22:08:06]Write i2c OK [22:08:06]MH_I2C_Read... [22:08:06]OFD Sender: No OFD packet to send [22:08:07]*** Cut start [22:08:07]*** Partial cut [22:08:07]*** CUTSNS_PIN = 1 [22:08:07]*** CUTSNS_PIN = 0 [22:08:07]*** Brake cut motor [22:08:07]Read from MH i2c: 01 [22:08:07]MH_I2C_Read... [22:08:07]*** Stop cut motor [22:08:07]*** Cut end [22:08:07]Read from MH i2c: 01 07 00 [22:08:07]MH_I2C_Read... [22:08:07]Read from MH i2c: 01 07 00 B2 06 00 00 00 00 00 FF 0F CD [22:08:07]process_action close_receipt done [22:08:07]requested_data is exist [22:08:07]produce_requested_data [22:08:07]requested_item fm.sn is exist - process it [22:08:07]wFMCommunicate request_size=4 [22:08:07]MH_SAM_APDU [22:08:07]CAPDU: 80 11 00 00 [22:08:07]Write to MH i2c: E2 08 00 B3 06 80 11 00 00 00 00 00 00 33 [22:08:07]Write i2c OK [22:08:07]MH_I2C_Read... [22:08:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:08:08]Read from MH i2c: E2 [22:08:08]MH_I2C_Read... [22:08:08]Read from MH i2c: E2 17 00 [22:08:08]MH_I2C_Read... [22:08:08]Read from MH i2c: E2 17 00 B3 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 7E [22:08:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [22:08:08]wFMCommunicate OK [22:08:08]requested_item fd.num is exist - process it [22:08:08]SAM_PROTO_GetFieldsCounters [22:08:08]wFMCommunicate request_size=4 [22:08:08]MH_SAM_APDU [22:08:08]CAPDU: 80 13 00 00 [22:08:08]Write to MH i2c: E2 08 00 B4 06 80 13 00 00 00 00 00 00 36 [22:08:08]Write i2c OK [22:08:08]MH_I2C_Read... [22:08:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:08:08]Read from MH i2c: E2 [22:08:08]MH_I2C_Read... [22:08:08]Read from MH i2c: E2 62 00 [22:08:08]MH_I2C_Read... [22:08:08]Read from MH i2c: E2 62 00 B4 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 83 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 D9 [22:08:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 83 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:08:08]wFMCommunicate OK [22:08:08]SAM_PROTO_GetFieldsCounters done [22:08:08]requested_item shift.num is exist - process it [22:08:08]requested_item shift.opened is exist - process it [22:08:08]req_shift_opened [22:08:08]FM_GetShiftState [22:08:08]SAM_PROTO_GetShiftState [22:08:08]wFMCommunicate request_size=4 [22:08:08]MH_SAM_APDU [22:08:08]CAPDU: 80 13 01 00 [22:08:08]Write to MH i2c: E2 08 00 B5 06 80 13 01 00 00 00 00 00 38 [22:08:08]Write i2c OK [22:08:08]MH_I2C_Read... [22:08:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:08:08]Read from MH i2c: E2 [22:08:08]MH_I2C_Read... [22:08:08]Read from MH i2c: E2 0E 00 [22:08:08]MH_I2C_Read... [22:08:08]Read from MH i2c: E2 0E 00 B5 06 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 13 [22:08:08]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [22:08:08]wFMCommunicate OK [22:08:08]SAM_PROTO_GetShiftState done [22:08:08]FM_GetShiftState done [22:08:08]req_shift_opened done [22:08:08]requested_item shift.open_date is exist - process it [22:08:08]req_shift_open_date [22:08:08]req_shift_open_date done [22:08:08]produce_requested_data done [22:08:08]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68483,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [22:08:08]process_action_free close_receipt [22:08:08]json_value_free [22:08:08]json_value_free done [22:08:08]process_json_proto returns [22:08:08]Send response to host [22:08:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68483,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [22:08:08]free response buf [22:08:08]execute_script done [22:08:08]execute_script returns [22:08:08]free content buf [22:08:08]Sock 7.Close socket [22:08:08]Sock 7.Thread stoped [22:08:11]OFD Sender: No OFD packet to send [22:08:16]OFD Sender: No OFD packet to send [22:08:21]OFD Sender: No OFD packet to send [22:08:26]OFD Sender: No OFD packet to send [22:08:31]OFD Sender: No OFD packet to send [22:08:36]OFD Sender: No OFD packet to send [22:08:41]OFD Sender: No OFD packet to send [22:08:46]OFD Sender: No OFD packet to send [22:08:51]OFD Sender: No OFD packet to send [22:08:56]OFD Sender: No OFD packet to send [22:09:01]OFD Sender: No OFD packet to send [22:09:06]OFD Sender: No OFD packet to send [22:09:11]OFD Sender: No OFD packet to send [22:09:16]OFD Sender: No OFD packet to send [22:09:21]OFD Sender: No OFD packet to send [22:09:26]OFD Sender: No OFD packet to send [22:09:31]OFD Sender: No OFD packet to send [22:09:36]OFD Sender: No OFD packet to send [22:09:41]OFD Sender: No OFD packet to send [22:09:46]OFD Sender: No OFD packet to send [22:09:51]OFD Sender: No OFD packet to send [22:09:56]OFD Sender: No OFD packet to send [22:10: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:32]OFD Sender: No OFD packet to send [22:10:37]OFD Sender: No OFD packet to send [22:10:42]OFD Sender: No OFD packet to send [22:10:47]OFD Sender: No OFD packet to send [22:10:52]OFD Sender: No OFD packet to send [22:10:57]OFD Sender: No OFD packet to send [22:11:02]OFD Sender: No OFD packet to send [22:11:07]OFD Sender: No OFD packet to send [22:11:12]OFD Sender: No OFD packet to send [22:11:17]OFD Sender: No OFD packet to send [22:11:22]OFD Sender: No OFD packet to send [22:11:27]OFD Sender: No OFD packet to send [22:11:32]OFD Sender: No OFD packet to send [22:11:37]OFD Sender: No OFD packet to send [22:11:42]OFD Sender: No OFD packet to send [22:11:47]OFD Sender: No OFD packet to send [22:11:52]OFD Sender: No OFD packet to send [22:11:57]OFD Sender: No OFD packet to send [22:12:02]OFD Sender: No OFD packet to send [22:12:07]OFD Sender: No OFD packet to send [22:12:12]OFD Sender: No OFD packet to send [22:12:17]OFD Sender: No OFD packet to send [22:12:22]OFD Sender: No OFD packet to send [22:12:27]OFD Sender: No OFD packet to send [22:12:32]OFD Sender: No OFD packet to send [22:12:37]OFD Sender: No OFD packet to send [22:12:42]OFD Sender: No OFD packet to send [22:12:47]OFD Sender: No OFD packet to send [22:12:52]OFD Sender: No OFD packet to send [22:12:57]OFD Sender: No OFD packet to send [22:13:02]OFD Sender: No OFD packet to send [22:13:07]OFD Sender: No OFD packet to send [22:13:12]OFD Sender: No OFD packet to send [22:13:17]OFD Sender: No OFD packet to send [22:13:22]OFD Sender: No OFD packet to send [22:13:27]OFD Sender: No OFD packet to send [22:13:32]OFD Sender: No OFD packet to send [22:13:37]OFD Sender: No OFD packet to send [22:13:42]OFD Sender: No OFD packet to send [22:13:47]OFD Sender: No OFD packet to send [22:13:52]OFD Sender: No OFD packet to send [22:13:57]OFD Sender: No OFD packet to send [22:14:02]OFD Sender: No OFD packet to send [22:14:07]OFD Sender: No OFD packet to send [22:14:12]OFD Sender: No OFD packet to send [22:14:17]OFD Sender: No OFD packet to send [22:14:22]OFD Sender: No OFD packet to send [22:14:27]OFD Sender: No OFD packet to send [22:14:32]OFD Sender: No OFD packet to send [22:14:37]OFD Sender: No OFD packet to send [22:14:42]OFD Sender: No OFD packet to send [22:14:47]OFD Sender: No OFD packet to send [22:14:52]OFD Sender: No OFD packet to send [22:14:57]OFD Sender: No OFD packet to send [22:15:02]OFD Sender: No OFD packet to send [22:15:07]OFD Sender: No OFD packet to send [22:15:12]OFD Sender: No OFD packet to send [22:15:17]OFD Sender: No OFD packet to send [22:15:22]OFD Sender: No OFD packet to send [22:15:27]OFD Sender: No OFD packet to send [22:15:32]OFD Sender: No OFD packet to send [22:15:37]OFD Sender: No OFD packet to send [22:15:42]OFD Sender: No OFD packet to send [22:15:47]OFD Sender: No OFD packet to send [22:15:52]OFD Sender: No OFD packet to send [22:15:57]OFD Sender: No OFD packet to send [22:16:02]OFD Sender: No OFD packet to send [22:16:07]OFD Sender: No OFD packet to send [22:16:12]OFD Sender: No OFD packet to send [22:16:17]OFD Sender: No OFD packet to send [22:16:22]OFD Sender: No OFD packet to send [22:16:27]OFD Sender: No OFD packet to send [22:16:32]OFD Sender: No OFD packet to send [22:16:37]OFD Sender: No OFD packet to send [22:16:42]OFD Sender: No OFD packet to send [22:16:47]OFD Sender: No OFD packet to send [22:16:52]OFD Sender: No OFD packet to send [22:16:57]OFD Sender: No OFD packet to send [22:17:02]OFD Sender: No OFD packet to send [22:17:07]OFD Sender: No OFD packet to send [22:17:12]OFD Sender: No OFD packet to send [22:17:17]OFD Sender: No OFD packet to send [22:17:22]OFD Sender: No OFD packet to send [22:17:27]OFD Sender: No OFD packet to send [22:17:32]OFD Sender: No OFD packet to send [22:17:37]OFD Sender: No OFD packet to send [22:17:42]OFD Sender: No OFD packet to send [22:17:47]OFD Sender: No OFD packet to send [22:17:52]OFD Sender: No OFD packet to send [22:17:57]OFD Sender: No OFD packet to send [22:18:02]OFD Sender: No OFD packet to send [22:18:07]OFD Sender: No OFD packet to send [22:18:12]OFD Sender: No OFD packet to send [22:18:17]OFD Sender: No OFD packet to send [22:18:22]OFD Sender: No OFD packet to send [22:18:27]OFD Sender: No OFD packet to send [22:18:32]OFD Sender: No OFD packet to send [22:18:37]OFD Sender: No OFD packet to send [22:18:42]OFD Sender: No OFD packet to send [22:18:47]OFD Sender: No OFD packet to send [22:18:52]OFD Sender: No OFD packet to send [22:18:57]OFD Sender: No OFD packet to send [22:19:02]OFD Sender: No OFD packet to send [22:19:07]OFD Sender: No OFD packet to send [22:19:12]OFD Sender: No OFD packet to send [22:19:17]OFD Sender: No OFD packet to send [22:19:22]OFD Sender: No OFD packet to send [22:19:27]OFD Sender: No OFD packet to send [22:19:32]OFD Sender: No OFD packet to send [22:19:37]OFD Sender: No OFD packet to send [22:19:42]OFD Sender: No OFD packet to send [22:19:47]OFD Sender: No OFD packet to send [22:19:52]OFD Sender: No OFD packet to send [22:19:57]OFD Sender: No OFD packet to send [22:20:02]OFD Sender: No OFD packet to send [22:20:07]OFD Sender: No OFD packet to send [22:20:12]OFD Sender: No OFD packet to send [22:20:17]OFD Sender: No OFD packet to send [22:20:22]OFD Sender: No OFD packet to send [22:20:27]OFD Sender: No OFD packet to send [22:20:32]OFD Sender: No OFD packet to send [22:20:37]OFD Sender: No OFD packet to send [22:20:42]OFD Sender: No OFD packet to send [22:20:47]OFD Sender: No OFD packet to send [22:20:52]OFD Sender: No OFD packet to send [22:20:57]OFD Sender: No OFD packet to send [22:21:02]OFD Sender: No OFD packet to send [22:21:07]OFD Sender: No OFD packet to send [22:21:12]OFD Sender: No OFD packet to send [22:21:17]OFD Sender: No OFD packet to send [22:21:22]OFD Sender: No OFD packet to send [22:21:27]OFD Sender: No OFD packet to send [22:21:32]OFD Sender: No OFD packet to send [22:21:37]OFD Sender: No OFD packet to send [22:21:42]OFD Sender: No OFD packet to send [22:21:47]OFD Sender: No OFD packet to send [22:21:52]OFD Sender: No OFD packet to send [22:21:57]OFD Sender: No OFD packet to send [22:22:02]OFD Sender: No OFD packet to send [22:22:07]OFD Sender: No OFD packet to send [22:22:12]OFD Sender: No OFD packet to send [22:22:17]OFD Sender: No OFD packet to send [22:22:22]OFD Sender: No OFD packet to send [22:22:27]OFD Sender: No OFD packet to send [22:22:32]OFD Sender: No OFD packet to send [22:22:37]OFD Sender: No OFD packet to send [22:22:42]OFD Sender: No OFD packet to send [22:22:47]OFD Sender: No OFD packet to send [22:22:52]OFD Sender: No OFD packet to send [22:22:57]OFD Sender: No OFD packet to send [22:23:02]OFD Sender: No OFD packet to send [22:23:07]OFD Sender: No OFD packet to send [22:23:12]OFD Sender: No OFD packet to send [22:23:17]OFD Sender: No OFD packet to send [22:23:22]OFD Sender: No OFD packet to send [22:23:27]OFD Sender: No OFD packet to send [22:23:32]OFD Sender: No OFD packet to send [22:23:37]OFD Sender: No OFD packet to send [22:23:42]OFD Sender: No OFD packet to send [22:23:47]OFD Sender: No OFD packet to send [22:23:52]OFD Sender: No OFD packet to send [22:23:57]OFD Sender: No OFD packet to send [22:24:02]OFD Sender: No OFD packet to send [22:24:07]OFD Sender: No OFD packet to send [22:24:12]OFD Sender: No OFD packet to send [22:24:17]OFD Sender: No OFD packet to send [22:24:22]OFD Sender: No OFD packet to send [22:24:27]OFD Sender: No OFD packet to send [22:24:32]OFD Sender: No OFD packet to send [22:24:37]OFD Sender: No OFD packet to send [22:24:42]OFD Sender: No OFD packet to send [22:24:47]OFD Sender: No OFD packet to send [22:24:52]OFD Sender: No OFD packet to send [22:24:57]OFD Sender: No OFD packet to send [22:25:02]OFD Sender: No OFD packet to send [22:25:07]OFD Sender: No OFD packet to send [22:25:12]OFD Sender: No OFD packet to send [22:25:17]OFD Sender: No OFD packet to send [22:25:22]OFD Sender: No OFD packet to send [22:25:27]OFD Sender: No OFD packet to send [22:25:32]OFD Sender: No OFD packet to send [22:25:37]OFD Sender: No OFD packet to send [22:25:42]OFD Sender: No OFD packet to send [22:25:47]OFD Sender: No OFD packet to send [22:25:52]OFD Sender: No OFD packet to send [22:25:57]OFD Sender: No OFD packet to send [22:26:02]OFD Sender: No OFD packet to send [22:26:07]OFD Sender: No OFD packet to send [22:26:10]accept exits with 9 [22:26:10]New connection [22:26:10]New thread 3067227492 created [22:26:10]Thread 3067084132 joined [22:26:10]Waiting for new connection... [22:26:10] Sock 9.Parse request [22:26:10]Sock 9.Check first char [22:26:10]Sock 9.First char is OK [22:26:10]request: POST /json_proto HTTP/1.0 [22:26:10]Method: POST [22:26:10]URL: /json_proto [22:26:10]Method is POST - this is cgi request [22:26:10]url: /json_proto [22:26:10]query_string will be loaded in cgi processing [22:26:10]execute_cgi json_proto POST (null) [22:26:10]execute_cgi path=json_proto method=POST [22:26:10]POST find Content-Length [22:26:10]Host: 172.17.36.132:8080 [22:26:10]Content-Length: 670 [22:26:10]Content-Type: application/json [22:26:10] [22:26:10]POST finish read [22:26:10]Found Content-Length = 670 [22:26:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706595", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 7.370, "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" ] } } [22:26:10]execute_script... [22:26:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706595", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.90, "quantity" : 7.370, "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" ] } } [22:26:10]POST & json_proto [22:26:10]process_json_proto [22:26:10]json parsed OK: [22:26:10]protocol is kg_v1.0 [22:26:10]action value=close_receipt [22:26:10]process_action close_receipt [22:26:10]cmd_close_receipt [22:26:10]MH_GetDate [22:26:10]Write to MH i2c: F0 00 00 B6 06 AB [22:26:10]Write i2c OK [22:26:10]MH_I2C_Read... [22:26:10]Read from MH i2c: F0 [22:26:10]MH_I2C_Read... [22:26:10]Read from MH i2c: F0 09 00 [22:26:10]MH_I2C_Read... [22:26:10]Read from MH i2c: F0 09 00 B6 06 00 03 43 5E 66 B2 22 B0 64 A6 [22:26:10]GetLastDocTimeStamp 1717452484 [22:26:10]current date 1717453571 [22:26:10]FM_GetShiftState [22:26:10]SAM_PROTO_GetShiftState [22:26:10]wFMCommunicate request_size=4 [22:26:10]MH_SAM_APDU [22:26:10]CAPDU: 80 13 01 00 [22:26:10]Write to MH i2c: E2 08 00 B7 06 80 13 01 00 00 00 00 00 3A [22:26:10]Write i2c OK [22:26:10]MH_I2C_Read... [22:26:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:26:11]Read from MH i2c: E2 [22:26:11]MH_I2C_Read... [22:26:11]Read from MH i2c: E2 0E 00 [22:26:11]MH_I2C_Read... [22:26:11]Read from MH i2c: E2 0E 00 B7 06 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 15 [22:26:11]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [22:26:11]wFMCommunicate OK [22:26:11]SAM_PROTO_GetShiftState done [22:26:11]FM_GetShiftState done [22:26:11]opened in 1717378033 [22:26:11]opened+sec_in_day 1717464433 [22:26:11]quantity*price = 50042 [22:26:11]sum+1 = 50043 [22:26:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 230 03.06.2024 22:26 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68484 ФПД: 226257295960189 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T222611&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68484&fm=226257295960189&tin=02508201610067®Number=0000000000098096&sum=50000 [22:26:12]StoreToDocumentArchive [22:26:12]shift 324 fd 68484 [22:26:12]save to /storage/0324/doc_00068484 [22:26:12]save last doc name /storage/0324/doc_00068484 to /storage/kkm_last_doc_name [22:26:12]save OK [22:26:12]Clear old archive folders... [22:26:12]ProcessDocumentItem done err = 0, tmpTLVsize=252 [22:26:12]tlvbuf is 00A27170 [22:26:12]SAM_PROTO_ClearQueue [22:26:12]wFMCommunicate request_size=4 [22:26:12]MH_SAM_APDU [22:26:12]CAPDU: 80 09 00 00 [22:26:12]Write to MH i2c: E2 08 00 C4 06 80 09 00 00 00 00 00 00 3C [22:26:12]Write i2c OK [22:26:12]MH_I2C_Read... [22:26:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:26:12]Read from MH i2c: E2 [22:26:12]MH_I2C_Read... [22:26:12]Read from MH i2c: E2 03 00 [22:26:12]MH_I2C_Read... [22:26:12]Read from MH i2c: E2 03 00 C4 06 00 90 00 3E [22:26:12]RAPDU: 90 00 [22:26:12]wFMCommunicate OK [22:26:12]SAM_PROTO_ClearQueue done [22:26:12]KKMCreateOFDPacket [22:26:12]OFDProtocolAddRootSTLVToBuf [22:26:12]FM_MakeSignedData [22:26:12]FM_MakeSignedData [22:26:12]SAM_PROTO_SignData [22:26:12]wFMCommunicate request_size=4 [22:26:12]MH_SAM_APDU [22:26:12]CAPDU: 80 0D 01 02 [22:26:12]Write to MH i2c: E2 08 00 C5 06 80 0D 01 02 00 00 00 00 44 [22:26:12]Write i2c OK [22:26:12]MH_I2C_Read... [22:26:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:26:12]Read from MH i2c: E2 [22:26:12]MH_I2C_Read... [22:26:12]Read from MH i2c: E2 03 00 [22:26:12]MH_I2C_Read... [22:26:12]Read from MH i2c: E2 03 00 C5 06 00 90 00 3F [22:26:12]RAPDU: 90 00 [22:26:12]wFMCommunicate OK [22:26:12]wFMCommunicate request_size=255 [22:26:12]MH_SAM_APDU [22:26:12]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 1C 00 00 00 00 00 37 04 06 00 86 1A 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 E6 00 00 00 F4 03 04 00 03 43 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 84 0B 01 00 35 04 06 00 [22:26:12]Write to MH i2c: E2 02 01 C6 06 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 1C 00 00 00 00 00 37 04 06 00 86 1A 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 E6 00 00 00 F4 03 04 00 03 43 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 84 0B 01 00 35 04 06 00 00 00 B7 [22:26:12]Write i2c OK [22:26:12]MH_I2C_Read... [22:26:12]Read from MH i2c: E2 [22:26:12]MH_I2C_Read... [22:26:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:26:12]Read from MH i2c: E2 03 00 [22:26:12]MH_I2C_Read... [22:26:12]Read from MH i2c: E2 03 00 C6 06 00 90 00 40 [22:26:12]RAPDU: 90 00 [22:26:12]wFMCommunicate OK [22:26:12]wFMCommunicate request_size=11 [22:26:12]MH_SAM_APDU [22:26:12]CAPDU: 80 0D 02 02 06 CD C7 A1 C0 E8 7D [22:26:12]Write to MH i2c: E2 0E 00 C7 06 80 0D 02 02 06 00 CD C7 A1 C0 E8 7D 00 00 AD [22:26:12]Write i2c OK [22:26:12]MH_I2C_Read... [22:26:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:26:12]Read from MH i2c: E2 [22:26:12]MH_I2C_Read... [22:26:12]Read from MH i2c: E2 03 00 [22:26:12]MH_I2C_Read... [22:26:12]Read from MH i2c: E2 03 00 C7 06 00 90 00 41 [22:26:12]RAPDU: 90 00 [22:26:12]wFMCommunicate OK [22:26:12]wFMCommunicate request_size=4 [22:26:12]MH_SAM_APDU [22:26:12]CAPDU: 80 0D 03 02 [22:26:12]Write to MH i2c: E2 08 00 C8 06 80 0D 03 02 00 00 00 00 49 [22:26:12]Write i2c OK [22:26:12]MH_I2C_Read... [22:26:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:26:12]Read from MH i2c: E2 [22:26:12]MH_I2C_Read... [22:26:12]Read from MH i2c: E2 0B 00 [22:26:12]MH_I2C_Read... [22:26:12]Read from MH i2c: E2 0B 00 C8 06 00 0D 2C 79 85 AB 94 0A D6 90 00 A0 [22:26:12]RAPDU: 0D 2C 79 85 AB 94 0A D6 90 00 [22:26:12]wFMCommunicate OK [22:26:12]SAM_PROTO_SignData done [22:26:12]FM_MakeSignedData done [22:26:12]CreateOFDProtocolMessage [22:26:12]wFMCommunicate request_size=4 [22:26:12]MH_SAM_APDU [22:26:12]CAPDU: 80 11 00 00 [22:26:12]Write to MH i2c: E2 08 00 C9 06 80 11 00 00 00 00 00 00 49 [22:26:12]Write i2c OK [22:26:12]MH_I2C_Read... [22:26:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:26:12]Read from MH i2c: E2 [22:26:12]MH_I2C_Read... [22:26:12]Read from MH i2c: E2 17 00 [22:26:12]MH_I2C_Read... [22:26:12]Read from MH i2c: E2 17 00 C9 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 94 [22:26:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [22:26:12]wFMCommunicate OK [22:26:12]CreateOFDProtocolMessage done [22:26:12]OFDSenderStorePacket 68484 [22:26:12]StoreOFDPacket docnum=68484 [22:26:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 FD B9 08 01 4B 47 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 1C 00 00 00 00 00 37 04 06 00 86 1A 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 E6 00 00 00 F4 03 04 00 03 43 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 84 0B 01 00 35 04 06 00 CD C7 A1 C0 E8 7D 0D 2C 79 85 AB 94 0A D6 [22:26:12]CheckFolder [22:26:12]dirname=/storage/ofd_packets [22:26:12]CheckFolder done [22:26:12]ProducePacketName [22:26:12]name=ofd_packets/00068484 [22:26:12]NVStorageSaveData ofd_packets/00068484 [22:26:12]File name is /storage/ofd_packets/00068484 [22:26:12]Write 302 bytes [22:26:12]NVStorageSaveData done [22:26:12]OFDSenderStorePacket done [22:26:12]KKMCreateOFDPacket done [22:26:12]NVStorageSaveData kkm_last_timestamp [22:26:12]File name is /storage/kkm_last_timestamp [22:26:12]Write 4 bytes [22:26:12]NVStorageSaveData done [22:26:12]ExternCall_PrintAddStr [22:26:12]wPrintStart [22:26:12]Write to MH i2c: 01 00 00 CA 06 D0 [22:26:12]Write i2c OK [22:26:12]MH_I2C_Read... [22:26:12]Read from MH i2c: 01 [22:26:12]MH_I2C_Read... [22:26:12]Read from MH i2c: 01 07 00 [22:26:12]MH_I2C_Read... [22:26:12]Read from MH i2c: 01 07 00 CA 06 00 00 00 00 00 FF 0F E5 [22:26:12]RasterBufferAndPrint [22:26:12]line Счет N : (1)706595 [22:26:12]line ИНН: 02508201610067 [22:26:12]line Контрольно-Кассовый Чек [22:26:12]line ПРОДАЖА [22:26:12]line ТРК (МРК, ГНК) : 41 [22:26:12]line Товар: 2710124130 [22:26:12]line Super-92-К-5 [22:26:12]line 7.370 * 67.90 [22:26:12]line = 500.42 [22:26:12]line НДС 12% НСП 1% [22:26:12]line > о реализуемом товаре [22:26:12]line ОКРУГЛЕНИЕ: -0.42 [22:26:12]line ИТОГО: 500.00 [22:26:12]line Внесено: 500.00 [22:26:12]line СДАЧА: 0.00 [22:26:12]line НСП 1% : 4.43 [22:26:12]line НДС 12% : 53.14 [22:26:12]line Наличными: 500.00 [22:26:12]line Безнал.: 0.00 [22:26:12]line Место: АЗС № 62 "Партнер Нефть" [22:26:12]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [22:26:12]line СНО: Общий режим [22:26:12]line Чек 230 03.06.2024 22:26 [22:26:12]line Смена: 324 ФФД: 1.0 [22:26:12]line ЗНМ: 0300000181 [22:26:12]line РНМ: 0000000000098096 [22:26:12]line Версия ККМ: 001 [22:26:12]line ФМ: 0000000000965400 [22:26:12]line ФД: 68484 [22:26:12]line ФПД: 226257295960189 [22:26:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T222611&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68484&fm=226257295960189&tin=02508201610067®Number=0000000000098096&sum=50000 [22:26:13]OFD Sender: Processing packet 68484 [packets to send 26, broken 25] [22:26:13]ProducePacketName [22:26:13]name=ofd_packets/00068484 [22:26:13]OFD Sender: To server: pG, [22:26:13]CommunicateWithHost lk.salyk.kg:30040 [22:26:13]ConnectInit lk.salyk.kg [22:26:13]written 0, free lines is 4095 [22:26:13]Connected sock=11 [22:26:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 FD B9 08 01 4B 47 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 1C 00 00 00 00 00 37 04 06 00 86 1A 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 E6 00 00 00 F4 03 04 00 03 43 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 84 0B 01 00 35 04 06 00 CD C7 A1 C0 E8 7D 0D 2C 79 85 AB 94 0A D6 [22:26:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 54 8B 47 00 40 B6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 84 0B 01 00 F4 03 04 00 FE E9 5D 66 B6 04 01 00 00 38 0C 9A BE 19 93 14 30 [22:26:13]CommunicateWithHost err = 0 [22:26:13]CheckOFDResponse [22:26:13]1017 (14) - 77093643461234 [22:26:13]1041 (16) - 0000000000965400 [22:26:13]1040 (4) - 68484 [22:26:13]1012 (4) - 03.06.2024 16:06 [22:26:13]1206 (1) - 0 [22:26:13]OFD Sender: Remove packet 68484 [22:26:13]ProducePacketName [22:26:13]name=ofd_packets/00068484 [22:26:13]NVStorageDeleteData [22:26:13]Write to MH i2c: 01 00 00 F5 06 FB [22:26:13]Write i2c OK [22:26:13]MH_I2C_Read... [22:26:13]Read from MH i2c: 01 [22:26:13]MH_I2C_Read... [22:26:13]Read from MH i2c: 01 07 00 [22:26:13]MH_I2C_Read... [22:26:13]Read from MH i2c: 01 07 00 F5 06 00 00 00 00 00 DC 0C EA [22:26:13]RasterBufferAndPrint [22:26:13]line [22:26:13]line [22:26:13]line [22:26:13]line [22:26:13]line [22:26:13]written 0, free lines is 3299 [22:26:13]MH_Cut [22:26:13]Write to MH i2c: D1 01 00 FC 06 01 D4 [22:26:13]Write i2c OK [22:26:13]MH_I2C_Read... [22:26:13]Read from MH i2c: D1 [22:26:13]MH_I2C_Read... [22:26:13]Read from MH i2c: D1 01 00 [22:26:13]MH_I2C_Read... [22:26:13]Read from MH i2c: D1 01 00 FC 06 00 D3 [22:26:13]Write to MH i2c: 01 00 00 FD 06 03 [22:26:13]Write i2c OK [22:26:13]MH_I2C_Read... [22:26:13]OFD Sender: No OFD packet to send [22:26:14]*** Cut start [22:26:14]*** Partial cut [22:26:14]*** CUTSNS_PIN = 1 [22:26:14]*** CUTSNS_PIN = 0 [22:26:14]*** Brake cut motor [22:26:14]Read from MH i2c: 01 [22:26:14]MH_I2C_Read... [22:26:14]*** Stop cut motor [22:26:14]*** Cut end [22:26:14]Read from MH i2c: 01 07 00 [22:26:14]MH_I2C_Read... [22:26:14]Read from MH i2c: 01 07 00 FD 06 00 00 00 00 00 FF 0F 18 [22:26:14]process_action close_receipt done [22:26:14]requested_data is exist [22:26:14]produce_requested_data [22:26:14]requested_item fm.sn is exist - process it [22:26:14]wFMCommunicate request_size=4 [22:26:14]MH_SAM_APDU [22:26:14]CAPDU: 80 11 00 00 [22:26:14]Write to MH i2c: E2 08 00 FE 06 80 11 00 00 00 00 00 00 7E [22:26:14]Write i2c OK [22:26:14]MH_I2C_Read... [22:26:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:26:14]Read from MH i2c: E2 [22:26:14]MH_I2C_Read... [22:26:14]Read from MH i2c: E2 17 00 [22:26:14]MH_I2C_Read... [22:26:14]Read from MH i2c: E2 17 00 FE 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 C9 [22:26:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [22:26:14]wFMCommunicate OK [22:26:14]requested_item fd.num is exist - process it [22:26:14]SAM_PROTO_GetFieldsCounters [22:26:14]wFMCommunicate request_size=4 [22:26:14]MH_SAM_APDU [22:26:14]CAPDU: 80 13 00 00 [22:26:14]Write to MH i2c: E2 08 00 FF 06 80 13 00 00 00 00 00 00 81 [22:26:14]Write i2c OK [22:26:14]MH_I2C_Read... [22:26:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:26:15]Read from MH i2c: E2 [22:26:15]MH_I2C_Read... [22:26:15]Read from MH i2c: E2 62 00 [22:26:15]MH_I2C_Read... [22:26:15]Read from MH i2c: E2 62 00 FF 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 84 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 28 [22:26:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 84 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:26:15]wFMCommunicate OK [22:26:15]SAM_PROTO_GetFieldsCounters done [22:26:15]requested_item shift.num is exist - process it [22:26:15]requested_item shift.opened is exist - process it [22:26:15]req_shift_opened [22:26:15]FM_GetShiftState [22:26:15]SAM_PROTO_GetShiftState [22:26:15]wFMCommunicate request_size=4 [22:26:15]MH_SAM_APDU [22:26:15]CAPDU: 80 13 01 00 [22:26:15]Write to MH i2c: E2 08 00 00 07 80 13 01 00 00 00 00 00 84 [22:26:15]Write i2c OK [22:26:15]MH_I2C_Read... [22:26:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:26:15]Read from MH i2c: E2 [22:26:15]MH_I2C_Read... [22:26:15]Read from MH i2c: E2 0E 00 [22:26:15]MH_I2C_Read... [22:26:15]Read from MH i2c: E2 0E 00 00 07 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 5F [22:26:15]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [22:26:15]wFMCommunicate OK [22:26:15]SAM_PROTO_GetShiftState done [22:26:15]FM_GetShiftState done [22:26:15]req_shift_opened done [22:26:15]requested_item shift.open_date is exist - process it [22:26:15]req_shift_open_date [22:26:15]req_shift_open_date done [22:26:15]produce_requested_data done [22:26:15]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68484,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [22:26:15]process_action_free close_receipt [22:26:15]json_value_free [22:26:15]json_value_free done [22:26:15]process_json_proto returns [22:26:15]Send response to host [22:26:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68484,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [22:26:15]free response buf [22:26:15]execute_script done [22:26:15]execute_script returns [22:26:15]free content buf [22:26:15]Sock 9.Close socket [22:26:15]Sock 9.Thread stoped [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:59]OFD Sender: No OFD packet to send [22:31:04]OFD Sender: No OFD packet to send [22:31:09]OFD Sender: No OFD packet to send [22:31:14]OFD Sender: No OFD packet to send [22:31:19]OFD Sender: No OFD packet to send [22:31:24]OFD Sender: No OFD packet to send [22:31:29]OFD Sender: No OFD packet to send [22:31:34]OFD Sender: No OFD packet to send [22:31:39]OFD Sender: No OFD packet to send [22:31:44]OFD Sender: No OFD packet to send [22:31:49]OFD Sender: No OFD packet to send [22:31:54]OFD Sender: No OFD packet to send [22:31:59]OFD Sender: No OFD packet to send [22:32:04]OFD Sender: No OFD packet to send [22:32:09]OFD Sender: No OFD packet to send [22:32:14]OFD Sender: No OFD packet to send [22:32:19]OFD Sender: No OFD packet to send [22:32:24]OFD Sender: No OFD packet to send [22:32:29]OFD Sender: No OFD packet to send [22:32:34]OFD Sender: No OFD packet to send [22:32:39]OFD Sender: No OFD packet to send [22:32:44]OFD Sender: No OFD packet to send [22:32:49]OFD Sender: No OFD packet to send [22:32:54]OFD Sender: No OFD packet to send [22:32:59]OFD Sender: No OFD packet to send [22:33:04]OFD Sender: No OFD packet to send [22:33:09]OFD Sender: No OFD packet to send [22:33:14]OFD Sender: No OFD packet to send [22:33:19]OFD Sender: No OFD packet to send [22:33:24]OFD Sender: No OFD packet to send [22:33:29]OFD Sender: No OFD packet to send [22:33:34]OFD Sender: No OFD packet to send [22:33:39]OFD Sender: No OFD packet to send [22:33:44]OFD Sender: No OFD packet to send [22:33:49]OFD Sender: No OFD packet to send [22:33:54]OFD Sender: No OFD packet to send [22:33:59]OFD Sender: No OFD packet to send [22:34:04]OFD Sender: No OFD packet to send [22:34:09]OFD Sender: No OFD packet to send [22:34:14]OFD Sender: No OFD packet to send [22:34:19]OFD Sender: No OFD packet to send [22:34:24]OFD Sender: No OFD packet to send [22:34:29]OFD Sender: No OFD packet to send [22:34:34]OFD Sender: No OFD packet to send [22:34:39]OFD Sender: No OFD packet to send [22:34:44]OFD Sender: No OFD packet to send [22:34:49]OFD Sender: No OFD packet to send [22:34:54]OFD Sender: No OFD packet to send [22:34:59]OFD Sender: No OFD packet to send [22:35:04]OFD Sender: No OFD packet to send [22:35:09]OFD Sender: No OFD packet to send [22:35:14]OFD Sender: No OFD packet to send [22:35:19]OFD Sender: No OFD packet to send [22:35:24]OFD Sender: No OFD packet to send [22:35:29]OFD Sender: No OFD packet to send [22:35:34]OFD Sender: No OFD packet to send [22:35:39]OFD Sender: No OFD packet to send [22:35:44]OFD Sender: No OFD packet to send [22:35:49]OFD Sender: No OFD packet to send [22:35:54]OFD Sender: No OFD packet to send [22:35:59]OFD Sender: No OFD packet to send [22:36:04]OFD Sender: No OFD packet to send [22:36:09]OFD Sender: No OFD packet to send [22:36:14]OFD Sender: No OFD packet to send [22:36:19]OFD Sender: No OFD packet to send [22:36:24]OFD Sender: No OFD packet to send [22:36:29]OFD Sender: No OFD packet to send [22:36:34]OFD Sender: No OFD packet to send [22:36:39]OFD Sender: No OFD packet to send [22:36:44]OFD Sender: No OFD packet to send [22:36:49]OFD Sender: No OFD packet to send [22:36:54]OFD Sender: No OFD packet to send [22:36:59]OFD Sender: No OFD packet to send [22:37:04]OFD Sender: No OFD packet to send [22:37:09]OFD Sender: No OFD packet to send [22:37:14]OFD Sender: No OFD packet to send [22:37:19]OFD Sender: No OFD packet to send [22:37:24]OFD Sender: No OFD packet to send [22:37:29]OFD Sender: No OFD packet to send [22:37:34]OFD Sender: No OFD packet to send [22:37:39]OFD Sender: No OFD packet to send [22:37:44]OFD Sender: No OFD packet to send [22:37:49]OFD Sender: No OFD packet to send [22:37:54]OFD Sender: No OFD packet to send [22:37:59]OFD Sender: No OFD packet to send [22:38:04]OFD Sender: No OFD packet to send [22:38:09]OFD Sender: No OFD packet to send [22:38:14]OFD Sender: No OFD packet to send [22:38:19]OFD Sender: No OFD packet to send [22:38:24]OFD Sender: No OFD packet to send [22:38:29]OFD Sender: No OFD packet to send [22:38:34]OFD Sender: No OFD packet to send [22:38:39]OFD Sender: No OFD packet to send [22:38:44]OFD Sender: No OFD packet to send [22:38:49]OFD Sender: No OFD packet to send [22:38:54]OFD Sender: No OFD packet to send [22:38:59]OFD Sender: No OFD packet to send [22:39:04]OFD Sender: No OFD packet to send [22:39:09]OFD Sender: No OFD packet to send [22:39:14]OFD Sender: No OFD packet to send [22:39:19]OFD Sender: No OFD packet to send [22:39:24]OFD Sender: No OFD packet to send [22:39:29]OFD Sender: No OFD packet to send [22:39:34]OFD Sender: No OFD packet to send [22:39:39]OFD Sender: No OFD packet to send [22:39:44]OFD Sender: No OFD packet to send [22:39:49]OFD Sender: No OFD packet to send [22:39:54]OFD Sender: No OFD packet to send [22:39:59]OFD Sender: No OFD packet to send [22:40:04]OFD Sender: No OFD packet to send [22:40:09]OFD Sender: No OFD packet to send [22:40:14]OFD Sender: No OFD packet to send [22:40:19]OFD Sender: No OFD packet to send [22:40:24]OFD Sender: No OFD packet to send [22:40:29]OFD Sender: No OFD packet to send [22:40:34]OFD Sender: No OFD packet to send [22:40:39]OFD Sender: No OFD packet to send [22:40:44]OFD Sender: No OFD packet to send [22:40:49]OFD Sender: No OFD packet to send [22:40:54]OFD Sender: No OFD packet to send [22:40:59]OFD Sender: No OFD packet to send [22:41:04]OFD Sender: No OFD packet to send [22:41:09]OFD Sender: No OFD packet to send [22:41:14]OFD Sender: No OFD packet to send [22:41:19]OFD Sender: No OFD packet to send [22:41:24]OFD Sender: No OFD packet to send [22:41:29]OFD Sender: No OFD packet to send [22:41:34]OFD Sender: No OFD packet to send [22:41:39]OFD Sender: No OFD packet to send [22:41:44]OFD Sender: No OFD packet to send [22:41:49]OFD Sender: No OFD packet to send [22:41:54]OFD Sender: No OFD packet to send [22:41:59]OFD Sender: No OFD packet to send [22:42:04]OFD Sender: No OFD packet to send [22:42:09]OFD Sender: No OFD packet to send [22:42:14]OFD Sender: No OFD packet to send [22:42:19]OFD Sender: No OFD packet to send [22:42:24]OFD Sender: No OFD packet to send [22:42:29]OFD Sender: No OFD packet to send [22:42:34]OFD Sender: No OFD packet to send [22:42:39]OFD Sender: No OFD packet to send [22:42:44]OFD Sender: No OFD packet to send [22:42:49]OFD Sender: No OFD packet to send [22:42:54]OFD Sender: No OFD packet to send [22:42:59]OFD Sender: No OFD packet to send [22:43:04]OFD Sender: No OFD packet to send [22:43:09]OFD Sender: No OFD packet to send [22:43:14]OFD Sender: No OFD packet to send [22:43:19]OFD Sender: No OFD packet to send [22:43:24]OFD Sender: No OFD packet to send [22:43:29]OFD Sender: No OFD packet to send [22:43:34]OFD Sender: No OFD packet to send [22:43:39]OFD Sender: No OFD packet to send [22:43:44]OFD Sender: No OFD packet to send [22:43:49]OFD Sender: No OFD packet to send [22:43:54]OFD Sender: No OFD packet to send [22:43:59]OFD Sender: No OFD packet to send [22:44:04]OFD Sender: No OFD packet to send [22:44:09]OFD Sender: No OFD packet to send [22:44:14]OFD Sender: No OFD packet to send [22:44:19]OFD Sender: No OFD packet to send [22:44:24]OFD Sender: No OFD packet to send [22:44:29]OFD Sender: No OFD packet to send [22:44:34]OFD Sender: No OFD packet to send [22:44:39]OFD Sender: No OFD packet to send [22:44:44]OFD Sender: No OFD packet to send [22:44:49]OFD Sender: No OFD packet to send [22:44:54]OFD Sender: No OFD packet to send [22:44:59]OFD Sender: No OFD packet to send [22:45:04]OFD Sender: No OFD packet to send [22:45:09]OFD Sender: No OFD packet to send [22:45:14]OFD Sender: No OFD packet to send [22:45:19]OFD Sender: No OFD packet to send [22:45:24]OFD Sender: No OFD packet to send [22:45:29]OFD Sender: No OFD packet to send [22:45:34]OFD Sender: No OFD packet to send [22:45:39]OFD Sender: No OFD packet to send [22:45:44]OFD Sender: No OFD packet to send [22:45:49]OFD Sender: No OFD packet to send [22:45:54]OFD Sender: No OFD packet to send [22:45:59]OFD Sender: No OFD packet to send [22:46:04]OFD Sender: No OFD packet to send [22:46:09]OFD Sender: No OFD packet to send [22:46:14]OFD Sender: No OFD packet to send [22:46:19]OFD Sender: No OFD packet to send [22:46:24]OFD Sender: No OFD packet to send [22:46:29]OFD Sender: No OFD packet to send [22:46:34]OFD Sender: No OFD packet to send [22:46:39]OFD Sender: No OFD packet to send [22:46:44]OFD Sender: No OFD packet to send [22:46:49]OFD Sender: No OFD packet to send [22:46:54]OFD Sender: No OFD packet to send [22:46:59]accept exits with 7 [22:46:59]New connection [22:46:59]New thread 3067084132 created [22:46:59]Thread 3067227492 joined [22:46:59]Waiting for new connection... [22:46:59] Sock 7.Parse request [22:46:59]Sock 7.Check first char [22:46:59]Sock 7.First char is OK [22:46:59]request: POST /json_proto HTTP/1.0 [22:46:59]Method: POST [22:46:59]URL: /json_proto [22:46:59]Method is POST - this is cgi request [22:46:59]url: /json_proto [22:46:59]query_string will be loaded in cgi processing [22:46:59]execute_cgi json_proto POST (null) [22:46:59]execute_cgi path=json_proto method=POST [22:46:59]POST find Content-Length [22:46:59]Host: 172.17.36.132:8080 [22:46:59]Content-Length: 840 [22:46:59]Content-Type: application/json [22:46:59] [22:46:59]POST finish read [22:46:59]Found Content-Length = 840 [22:46:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706596", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:46:59]execute_script... [22:46: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)706596", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:46:59]POST & json_proto [22:46:59]process_json_proto [22:46:59]json parsed OK: [22:46:59]protocol is kg_v1.0 [22:46:59]action value=close_receipt [22:46:59]process_action close_receipt [22:46:59]cmd_close_receipt [22:46:59]MH_GetDate [22:46:59]Write to MH i2c: F0 00 00 01 07 F7 [22:46:59]Write i2c OK [22:46:59]MH_I2C_Read... [22:46:59]Read from MH i2c: F0 [22:46:59]MH_I2C_Read... [22:46:59]Read from MH i2c: F0 09 00 [22:46:59]MH_I2C_Read... [22:46:59]Read from MH i2c: F0 09 00 01 07 00 E4 47 5E 66 B2 22 B0 64 D7 [22:46:59]GetLastDocTimeStamp 1717453571 [22:46:59]current date 1717454820 [22:46:59]FM_GetShiftState [22:46:59]SAM_PROTO_GetShiftState [22:46:59]wFMCommunicate request_size=4 [22:46:59]MH_SAM_APDU [22:46:59]CAPDU: 80 13 01 00 [22:46:59]Write to MH i2c: E2 08 00 02 07 80 13 01 00 00 00 00 00 86 [22:46:59]Write i2c OK [22:46:59]MH_I2C_Read... [22:46:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:46:59]Read from MH i2c: E2 [22:46:59]MH_I2C_Read... [22:46:59]Read from MH i2c: E2 0E 00 [22:46:59]MH_I2C_Read... [22:46:59]Read from MH i2c: E2 0E 00 02 07 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 61 [22:46:59]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [22:46:59]wFMCommunicate OK [22:46:59]SAM_PROTO_GetShiftState done [22:46:59]FM_GetShiftState done [22:46:59]opened in 1717378033 [22:46:59]opened+sec_in_day 1717464433 [22:46:59]quantity*price = 20003 [22:46:59]sum+1 = 20004 [22:46:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.03 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 0.00 Безнал.: 200.03 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 231 03.06.2024 22:47 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68485 ФПД: 27050306166901 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T224700&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68485&fm=27050306166901&tin=02508201610067®Number=0000000000098096&sum=20003 [22:47:00]StoreToDocumentArchive [22:47:00]shift 324 fd 68485 [22:47:00]save to /storage/0324/doc_00068485 [22:47:00]save last doc name /storage/0324/doc_00068485 to /storage/kkm_last_doc_name [22:47:00]save OK [22:47:00]Clear old archive folders... [22:47:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:47:00]tlvbuf is 009C8A30 [22:47:00]SAM_PROTO_ClearQueue [22:47:00]wFMCommunicate request_size=4 [22:47:00]MH_SAM_APDU [22:47:00]CAPDU: 80 09 00 00 [22:47:00]Write to MH i2c: E2 08 00 0F 07 80 09 00 00 00 00 00 00 88 [22:47:00]Write i2c OK [22:47:00]MH_I2C_Read... [22:47:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:47:00]Read from MH i2c: E2 [22:47:00]MH_I2C_Read... [22:47:00]Read from MH i2c: E2 03 00 [22:47:00]MH_I2C_Read... [22:47:00]Read from MH i2c: E2 03 00 0F 07 00 90 00 8A [22:47:00]RAPDU: 90 00 [22:47:00]wFMCommunicate OK [22:47:00]SAM_PROTO_ClearQueue done [22:47:00]KKMCreateOFDPacket [22:47:00]OFDProtocolAddRootSTLVToBuf [22:47:00]FM_MakeSignedData [22:47:00]FM_MakeSignedData [22:47:00]SAM_PROTO_SignData [22:47:00]wFMCommunicate request_size=4 [22:47:00]MH_SAM_APDU [22:47:00]CAPDU: 80 0D 01 02 [22:47:00]Write to MH i2c: E2 08 00 10 07 80 0D 01 02 00 00 00 00 90 [22:47:00]Write i2c OK [22:47:00]MH_I2C_Read... [22:47:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:47:00]Read from MH i2c: E2 [22:47:00]MH_I2C_Read... [22:47:00]Read from MH i2c: E2 03 00 [22:47:00]MH_I2C_Read... [22:47:00]Read from MH i2c: E2 03 00 10 07 00 90 00 8B [22:47:00]RAPDU: 90 00 [22:47:00]wFMCommunicate OK [22:47:00]wFMCommunicate request_size=255 [22:47:00]MH_SAM_APDU [22:47:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 E4 47 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 85 0B 01 00 35 04 06 00 18 [22:47:00]Write to MH i2c: E2 02 01 11 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 E4 47 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 85 0B 01 00 35 04 06 00 18 00 00 A9 [22:47:00]Write i2c OK [22:47:00]MH_I2C_Read... [22:47:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:47:01]Read from MH i2c: E2 [22:47:01]MH_I2C_Read... [22:47:01]Read from MH i2c: E2 03 00 [22:47:01]MH_I2C_Read... [22:47:01]Read from MH i2c: E2 03 00 11 07 00 90 00 8C [22:47:01]RAPDU: 90 00 [22:47:01]wFMCommunicate OK [22:47:01]wFMCommunicate request_size=10 [22:47:01]MH_SAM_APDU [22:47:01]CAPDU: 80 0D 02 02 05 9A 23 E3 E0 75 [22:47:01]Write to MH i2c: E2 0D 00 12 07 80 0D 02 02 05 00 9A 23 E3 E0 75 00 00 92 [22:47:01]Write i2c OK [22:47:01]MH_I2C_Read... [22:47:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:47:01]Read from MH i2c: E2 [22:47:01]MH_I2C_Read... [22:47:01]Read from MH i2c: E2 03 00 [22:47:01]MH_I2C_Read... [22:47:01]Read from MH i2c: E2 03 00 12 07 00 90 00 8D [22:47:01]RAPDU: 90 00 [22:47:01]wFMCommunicate OK [22:47:01]wFMCommunicate request_size=4 [22:47:01]MH_SAM_APDU [22:47:01]CAPDU: 80 0D 03 02 [22:47:01]Write to MH i2c: E2 08 00 13 07 80 0D 03 02 00 00 00 00 95 [22:47:01]Write i2c OK [22:47:01]MH_I2C_Read... [22:47:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:47:01]Read from MH i2c: E2 [22:47:01]MH_I2C_Read... [22:47:01]Read from MH i2c: E2 0B 00 [22:47:01]MH_I2C_Read... [22:47:01]Read from MH i2c: E2 0B 00 13 07 00 8B AE D2 0A 0B 36 1B 8F 90 00 96 [22:47:01]RAPDU: 8B AE D2 0A 0B 36 1B 8F 90 00 [22:47:01]wFMCommunicate OK [22:47:01]SAM_PROTO_SignData done [22:47:01]FM_MakeSignedData done [22:47:01]CreateOFDProtocolMessage [22:47:01]wFMCommunicate request_size=4 [22:47:01]MH_SAM_APDU [22:47:01]CAPDU: 80 11 00 00 [22:47:01]Write to MH i2c: E2 08 00 14 07 80 11 00 00 00 00 00 00 95 [22:47:01]Write i2c OK [22:47:01]MH_I2C_Read... [22:47:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:47:01]Read from MH i2c: E2 [22:47:01]MH_I2C_Read... [22:47:01]Read from MH i2c: E2 17 00 [22:47:01]MH_I2C_Read... [22:47:01]Read from MH i2c: E2 17 00 14 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 E0 [22:47:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [22:47:01]wFMCommunicate OK [22:47:01]CreateOFDProtocolMessage done [22:47:01]OFDSenderStorePacket 68485 [22:47:01]StoreOFDPacket docnum=68485 [22:47:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 28 A8 07 01 A1 0A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 E4 47 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 85 0B 01 00 35 04 06 00 18 9A 23 E3 E0 75 8B AE D2 0A 0B 36 1B 8F [22:47:01]CheckFolder [22:47:01]dirname=/storage/ofd_packets [22:47:01]CheckFolder done [22:47:01]ProducePacketName [22:47:01]name=ofd_packets/00068485 [22:47:01]NVStorageSaveData ofd_packets/00068485 [22:47:01]File name is /storage/ofd_packets/00068485 [22:47:01]Write 301 bytes [22:47:01]NVStorageSaveData done [22:47:01]OFDSenderStorePacket done [22:47:01]KKMCreateOFDPacket done [22:47:01]NVStorageSaveData kkm_last_timestamp [22:47:01]File name is /storage/kkm_last_timestamp [22:47:01]Write 4 bytes [22:47:01]NVStorageSaveData done [22:47:01]ExternCall_PrintAddStr [22:47:01]wPrintStart [22:47:01]Write to MH i2c: 01 00 00 15 07 1C [22:47:01]Write i2c OK [22:47:01]MH_I2C_Read... [22:47:01]Read from MH i2c: 01 [22:47:01]MH_I2C_Read... [22:47:01]Read from MH i2c: 01 07 00 [22:47:01]MH_I2C_Read... [22:47:01]Read from MH i2c: 01 07 00 15 07 00 00 00 00 00 FF 0F 31 [22:47:01]RasterBufferAndPrint [22:47:01]line Счет N : (1)706596 [22:47:01]line ИНН: 02508201610067 [22:47:01]line Контрольно-Кассовый Чек [22:47:01]line ПРОДАЖА [22:47:01]line ТРК (МРК, ГНК) : 32 [22:47:01]line Товар: 2710124130 [22:47:01]line Аи-92-К-4 [22:47:01]line 2.990 * 66.90 [22:47:01]line = 200.03 [22:47:01]line НДС 12% НСП 1% [22:47:01]line > о реализуемом товаре [22:47:01]line ИТОГО: 200.03 [22:47:01]line НСП 1% : 1.77 [22:47:01]line НДС 12% : 21.24 [22:47:01]line Наличными: 0.00 [22:47:01]line Безнал.: 200.03 [22:47:01]line Место: АЗС № 62 "Партнер Нефть" [22:47:01]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [22:47:01]line СНО: Общий режим [22:47:01]line Чек 231 03.06.2024 22:47 [22:47:01]line Смена: 324 ФФД: 1.0 [22:47:01]line ЗНМ: 0300000181 [22:47:01]line РНМ: 0000000000098096 [22:47:01]line Версия ККМ: 001 [22:47:01]line Платежная система: АКБ Кыргызстан [22:47:01]line ФМ: 0000000000965400 [22:47:01]line ФД: 68485 [22:47:01]line ФПД: 27050306166901 [22:47:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T224700&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68485&fm=27050306166901&tin=02508201610067®Number=0000000000098096&sum=20003 [22:47:01]OFD Sender: Processing packet 68485 [packets to send 26, broken 25] [22:47:01]ProducePacketName [22:47:01]name=ofd_packets/00068485 [22:47:01]OFD Sender: To server: pG, [22:47:01]CommunicateWithHost lk.salyk.kg:30040 [22:47:01]ConnectInit lk.salyk.kg [22:47:01]written 0, free lines is 4095 [22:47:01]Connected sock=10 [22:47:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 28 A8 07 01 A1 0A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 E4 47 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 85 0B 01 00 35 04 06 00 18 9A 23 E3 E0 75 8B AE D2 0A 0B 36 1B 8F [22:47:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 FA 13 47 00 E5 B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 85 0B 01 00 F4 03 04 00 DF EE 5D 66 B6 04 01 00 00 D0 25 E9 F4 35 C6 6E 4A [22:47:01]CommunicateWithHost err = 0 [22:47:01]CheckOFDResponse [22:47:01]1017 (14) - 77093643461234 [22:47:01]1041 (16) - 0000000000965400 [22:47:01]1040 (4) - 68485 [22:47:01]1012 (4) - 03.06.2024 16:27 [22:47:01]1206 (1) - 0 [22:47:01]OFD Sender: Remove packet 68485 [22:47:01]ProducePacketName [22:47:01]name=ofd_packets/00068485 [22:47:01]NVStorageDeleteData [22:47:02]Write to MH i2c: 01 00 00 3F 07 46 [22:47:02]Write i2c OK [22:47:02]MH_I2C_Read... [22:47:02]Read from MH i2c: 01 [22:47:02]MH_I2C_Read... [22:47:02]Read from MH i2c: 01 07 00 [22:47:02]MH_I2C_Read... [22:47:02]Read from MH i2c: 01 07 00 3F 07 00 00 00 00 00 F3 0C 4C [22:47:02]RasterBufferAndPrint [22:47:02]line [22:47:02]line [22:47:02]line [22:47:02]line [22:47:02]line [22:47:02]written 0, free lines is 3321 [22:47:02]MH_Cut [22:47:02]Write to MH i2c: D1 01 00 46 07 01 1F [22:47:02]Write i2c OK [22:47:02]MH_I2C_Read... [22:47:02]Read from MH i2c: D1 [22:47:02]MH_I2C_Read... [22:47:02]Read from MH i2c: D1 01 00 [22:47:02]MH_I2C_Read... [22:47:02]Read from MH i2c: D1 01 00 46 07 00 1E [22:47:02]Write to MH i2c: 01 00 00 47 07 4E [22:47:02]Write i2c OK [22:47:02]MH_I2C_Read... [22:47:02]OFD Sender: No OFD packet to send [22:47:02]*** Cut start [22:47:02]*** Partial cut [22:47:02]*** CUTSNS_PIN = 1 [22:47:02]*** CUTSNS_PIN = 0 [22:47:03]*** Brake cut motor [22:47:03]Read from MH i2c: 01 [22:47:03]MH_I2C_Read... [22:47:03]*** Stop cut motor [22:47:03]*** Cut end [22:47:03]Read from MH i2c: 01 07 00 [22:47:03]MH_I2C_Read... [22:47:03]Read from MH i2c: 01 07 00 47 07 00 00 00 00 00 FF 0F 63 [22:47:03]process_action close_receipt done [22:47:03]requested_data is exist [22:47:03]produce_requested_data [22:47:03]requested_item fm.sn is exist - process it [22:47:03]wFMCommunicate request_size=4 [22:47:03]MH_SAM_APDU [22:47:03]CAPDU: 80 11 00 00 [22:47:03]Write to MH i2c: E2 08 00 48 07 80 11 00 00 00 00 00 00 C9 [22:47:03]Write i2c OK [22:47:03]MH_I2C_Read... [22:47:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:47:03]Read from MH i2c: E2 [22:47:03]MH_I2C_Read... [22:47:03]Read from MH i2c: E2 17 00 [22:47:03]MH_I2C_Read... [22:47:03]Read from MH i2c: E2 17 00 48 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 14 [22:47:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [22:47:03]wFMCommunicate OK [22:47:03]requested_item fd.num is exist - process it [22:47:03]SAM_PROTO_GetFieldsCounters [22:47:03]wFMCommunicate request_size=4 [22:47:03]MH_SAM_APDU [22:47:03]CAPDU: 80 13 00 00 [22:47:03]Write to MH i2c: E2 08 00 49 07 80 13 00 00 00 00 00 00 CC [22:47:03]Write i2c OK [22:47:03]MH_I2C_Read... [22:47:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:47:03]Read from MH i2c: E2 [22:47:03]MH_I2C_Read... [22:47:03]Read from MH i2c: E2 62 00 [22:47:03]MH_I2C_Read... [22:47:03]Read from MH i2c: E2 62 00 49 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 85 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 77 [22:47:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 85 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:47:03]wFMCommunicate OK [22:47:03]SAM_PROTO_GetFieldsCounters done [22:47:03]requested_item shift.num is exist - process it [22:47:03]requested_item shift.opened is exist - process it [22:47:03]req_shift_opened [22:47:03]FM_GetShiftState [22:47:03]SAM_PROTO_GetShiftState [22:47:03]wFMCommunicate request_size=4 [22:47:03]MH_SAM_APDU [22:47:03]CAPDU: 80 13 01 00 [22:47:03]Write to MH i2c: E2 08 00 4A 07 80 13 01 00 00 00 00 00 CE [22:47:03]Write i2c OK [22:47:03]MH_I2C_Read... [22:47:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:47:03]Read from MH i2c: E2 [22:47:03]MH_I2C_Read... [22:47:03]Read from MH i2c: E2 0E 00 [22:47:03]MH_I2C_Read... [22:47:03]Read from MH i2c: E2 0E 00 4A 07 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 A9 [22:47:03]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [22:47:03]wFMCommunicate OK [22:47:03]SAM_PROTO_GetShiftState done [22:47:03]FM_GetShiftState done [22:47:03]req_shift_opened done [22:47:03]requested_item shift.open_date is exist - process it [22:47:03]req_shift_open_date [22:47:03]req_shift_open_date done [22:47:03]produce_requested_data done [22:47:03]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68485,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [22:47:03]process_action_free close_receipt [22:47:03]json_value_free [22:47:03]json_value_free done [22:47:03]process_json_proto returns [22:47:03]Send response to host [22:47:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68485,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [22:47:03]free response buf [22:47:03]execute_script done [22:47:03]execute_script returns [22:47:03]free content buf [22:47:03]Sock 7.Close socket [22:47:03]Sock 7.Thread stoped [22:47:07]OFD Sender: No OFD packet to send [22:47:12]OFD Sender: No OFD packet to send [22:47:17]OFD Sender: No OFD packet to send [22:47:22]OFD Sender: No OFD packet to send [22:47:27]OFD Sender: No OFD packet to send [22:47:32]OFD Sender: No OFD packet to send [22:47:37]OFD Sender: No OFD packet to send [22:47:42]OFD Sender: No OFD packet to send [22:47:47]OFD Sender: No OFD packet to send [22:47:52]OFD Sender: No OFD packet to send [22:47:57]OFD Sender: No OFD packet to send [22:48:02]OFD Sender: No OFD packet to send [22:48:07]OFD Sender: No OFD packet to send [22:48:12]OFD Sender: No OFD packet to send [22:48:17]OFD Sender: No OFD packet to send [22:48:22]OFD Sender: No OFD packet to send [22:48:27]OFD Sender: No OFD packet to send [22:48:32]OFD Sender: No OFD packet to send [22:48:37]OFD Sender: No OFD packet to send [22:48:42]OFD Sender: No OFD packet to send [22:48:47]OFD Sender: No OFD packet to send [22:48:52]OFD Sender: No OFD packet to send [22:48:57]OFD Sender: No OFD packet to send [22:49:02]OFD Sender: No OFD packet to send [22:49:07]OFD Sender: No OFD packet to send [22:49:12]OFD Sender: No OFD packet to send [22:49:17]OFD Sender: No OFD packet to send [22:49:22]OFD Sender: No OFD packet to send [22:49:27]OFD Sender: No OFD packet to send [22:49:32]OFD Sender: No OFD packet to send [22:49:37]OFD Sender: No OFD packet to send [22:49:42]OFD Sender: No OFD packet to send [22:49:47]OFD Sender: No OFD packet to send [22:49:52]OFD Sender: No OFD packet to send [22:49:57]OFD Sender: No OFD packet to send [22:50:02]OFD Sender: No OFD packet to send [22:50:07]OFD Sender: No OFD packet to send [22:50:12]OFD Sender: No OFD packet to send [22:50:17]OFD Sender: No OFD packet to send [22:50:22]OFD Sender: No OFD packet to send [22:50:27]OFD Sender: No OFD packet to send [22:50:32]OFD Sender: No OFD packet to send [22:50:37]OFD Sender: No OFD packet to send [22:50:42]OFD Sender: No OFD packet to send [22:50:47]OFD Sender: No OFD packet to send [22:50:52]OFD Sender: No OFD packet to send [22:50:57]OFD Sender: No OFD packet to send [22:51:02]OFD Sender: No OFD packet to send [22:51:07]OFD Sender: No OFD packet to send [22:51:12]OFD Sender: No OFD packet to send [22:51:17]OFD Sender: No OFD packet to send [22:51:22]OFD Sender: No OFD packet to send [22:51:27]OFD Sender: No OFD packet to send [22:51:32]OFD Sender: No OFD packet to send [22:51:37]OFD Sender: No OFD packet to send [22:51:42]OFD Sender: No OFD packet to send [22:51:47]OFD Sender: No OFD packet to send [22:51:52]OFD Sender: No OFD packet to send [22:51:57]OFD Sender: No OFD packet to send [22:52:02]OFD Sender: No OFD packet to send [22:52:07]OFD Sender: No OFD packet to send [22:52:12]OFD Sender: No OFD packet to send [22:52:17]OFD Sender: No OFD packet to send [22:52:22]OFD Sender: No OFD packet to send [22:52:27]OFD Sender: No OFD packet to send [22:52:32]OFD Sender: No OFD packet to send [22:52:37]OFD Sender: No OFD packet to send [22:52:42]OFD Sender: No OFD packet to send [22:52:47]OFD Sender: No OFD packet to send [22:52:52]OFD Sender: No OFD packet to send [22:52:57]OFD Sender: No OFD packet to send [22:53:02]OFD Sender: No OFD packet to send [22:53:07]OFD Sender: No OFD packet to send [22:53:12]OFD Sender: No OFD packet to send [22:53:17]OFD Sender: No OFD packet to send [22:53:22]OFD Sender: No OFD packet to send [22:53:27]OFD Sender: No OFD packet to send [22:53:32]OFD Sender: No OFD packet to send [22:53:37]OFD Sender: No OFD packet to send [22:53:42]OFD Sender: No OFD packet to send [22:53:47]OFD Sender: No OFD packet to send [22:53:52]OFD Sender: No OFD packet to send [22:53:57]OFD Sender: No OFD packet to send [22:54:02]OFD Sender: No OFD packet to send [22:54:07]OFD Sender: No OFD packet to send [22:54:12]OFD Sender: No OFD packet to send [22:54:17]OFD Sender: No OFD packet to send [22:54:22]OFD Sender: No OFD packet to send [22:54:27]OFD Sender: No OFD packet to send [22:54:32]OFD Sender: No OFD packet to send [22:54:36]accept exits with 9 [22:54:36]New connection [22:54:36]New thread 3067227492 created [22:54:36]Thread 3067084132 joined [22:54:36]Waiting for new connection... [22:54:36] Sock 9.Parse request [22:54:36]Sock 9.Check first char [22:54:36]Sock 9.First char is OK [22:54:36]request: POST /json_proto HTTP/1.0 [22:54:36]Method: POST [22:54:36]URL: /json_proto [22:54:36]Method is POST - this is cgi request [22:54:36]url: /json_proto [22:54:36]query_string will be loaded in cgi processing [22:54:36]execute_cgi json_proto POST (null) [22:54:36]execute_cgi path=json_proto method=POST [22:54:36]POST find Content-Length [22:54:36]Host: 172.17.36.132:8080 [22:54:36]Content-Length: 841 [22:54:36]Content-Type: application/json [22:54:36] [22:54:36]POST finish read [22:54:36]Found Content-Length = 841 [22:54:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706597", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:54:36]execute_script... [22:54:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706597", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:54:36]POST & json_proto [22:54:36]process_json_proto [22:54:36]json parsed OK: [22:54:36]protocol is kg_v1.0 [22:54:36]action value=close_receipt [22:54:36]process_action close_receipt [22:54:36]cmd_close_receipt [22:54:36]MH_GetDate [22:54:36]Write to MH i2c: F0 00 00 4B 07 41 [22:54:36]Write i2c OK [22:54:36]MH_I2C_Read... [22:54:36]Read from MH i2c: F0 [22:54:36]MH_I2C_Read... [22:54:36]Read from MH i2c: F0 09 00 [22:54:36]MH_I2C_Read... [22:54:36]Read from MH i2c: F0 09 00 4B 07 00 AD 49 5E 66 B2 22 B0 64 EC [22:54:36]GetLastDocTimeStamp 1717454820 [22:54:36]current date 1717455277 [22:54:36]FM_GetShiftState [22:54:36]SAM_PROTO_GetShiftState [22:54:36]wFMCommunicate request_size=4 [22:54:36]MH_SAM_APDU [22:54:36]CAPDU: 80 13 01 00 [22:54:36]Write to MH i2c: E2 08 00 4C 07 80 13 01 00 00 00 00 00 D0 [22:54:36]Write i2c OK [22:54:36]MH_I2C_Read... [22:54:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:54:36]Read from MH i2c: E2 [22:54:36]MH_I2C_Read... [22:54:36]Read from MH i2c: E2 0E 00 [22:54:36]MH_I2C_Read... [22:54:36]Read from MH i2c: E2 0E 00 4C 07 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 AB [22:54:36]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [22:54:36]wFMCommunicate OK [22:54:36]SAM_PROTO_GetShiftState done [22:54:36]FM_GetShiftState done [22:54:36]opened in 1717378033 [22:54:36]opened+sec_in_day 1717464433 [22:54:36]quantity*price = 70044 [22:54:36]sum+1 = 70045 [22:54:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.44 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 0.00 Безнал.: 700.44 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 232 03.06.2024 22:54 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68486 ФПД: 191664489728554 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T225437&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68486&fm=191664489728554&tin=02508201610067®Number=0000000000098096&sum=70044 [22:54:37]StoreToDocumentArchive [22:54:37]shift 324 fd 68486 [22:54:37]save to /storage/0324/doc_00068486 [22:54:37]save last doc name /storage/0324/doc_00068486 to /storage/kkm_last_doc_name [22:54:37]save OK [22:54:37]Clear old archive folders... [22:54:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:54:37]tlvbuf is 00A262B0 [22:54:37]SAM_PROTO_ClearQueue [22:54:37]wFMCommunicate request_size=4 [22:54:37]MH_SAM_APDU [22:54:37]CAPDU: 80 09 00 00 [22:54:37]Write to MH i2c: E2 08 00 59 07 80 09 00 00 00 00 00 00 D2 [22:54:37]Write i2c OK [22:54:37]MH_I2C_Read... [22:54:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:54:37]Read from MH i2c: E2 [22:54:37]MH_I2C_Read... [22:54:37]Read from MH i2c: E2 03 00 [22:54:37]MH_I2C_Read... [22:54:37]Read from MH i2c: E2 03 00 59 07 00 90 00 D4 [22:54:37]RAPDU: 90 00 [22:54:37]wFMCommunicate OK [22:54:37]SAM_PROTO_ClearQueue done [22:54:37]KKMCreateOFDPacket [22:54:37]OFDProtocolAddRootSTLVToBuf [22:54:37]FM_MakeSignedData [22:54:37]FM_MakeSignedData [22:54:37]SAM_PROTO_SignData [22:54:37]wFMCommunicate request_size=4 [22:54:37]MH_SAM_APDU [22:54:37]CAPDU: 80 0D 01 02 [22:54:37]Write to MH i2c: E2 08 00 5A 07 80 0D 01 02 00 00 00 00 DA [22:54:37]Write i2c OK [22:54:37]MH_I2C_Read... [22:54:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:54:37]Read from MH i2c: E2 [22:54:37]MH_I2C_Read... [22:54:37]Read from MH i2c: E2 03 00 [22:54:37]MH_I2C_Read... [22:54:37]Read from MH i2c: E2 03 00 5A 07 00 90 00 D5 [22:54:37]RAPDU: 90 00 [22:54:37]wFMCommunicate OK [22:54:37]wFMCommunicate request_size=255 [22:54:37]MH_SAM_APDU [22:54:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 AD 49 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 86 0B 01 00 35 04 06 00 AE [22:54:37]Write to MH i2c: E2 02 01 5B 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 AD 49 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 86 0B 01 00 35 04 06 00 AE 00 00 F6 [22:54:37]Write i2c OK [22:54:37]MH_I2C_Read... [22:54:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:54:38]Read from MH i2c: E2 [22:54:38]MH_I2C_Read... [22:54:38]Read from MH i2c: E2 03 00 [22:54:38]MH_I2C_Read... [22:54:38]Read from MH i2c: E2 03 00 5B 07 00 90 00 D6 [22:54:38]RAPDU: 90 00 [22:54:38]wFMCommunicate OK [22:54:38]wFMCommunicate request_size=10 [22:54:38]MH_SAM_APDU [22:54:38]CAPDU: 80 0D 02 02 05 51 5D D3 8A 2A [22:54:38]Write to MH i2c: E2 0D 00 5C 07 80 0D 02 02 05 00 51 5D D3 8A 2A 00 00 1C [22:54:38]Write i2c OK [22:54:38]MH_I2C_Read... [22:54:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:54:38]Read from MH i2c: E2 [22:54:38]MH_I2C_Read... [22:54:38]Read from MH i2c: E2 03 00 [22:54:38]MH_I2C_Read... [22:54:38]Read from MH i2c: E2 03 00 5C 07 00 90 00 D7 [22:54:38]RAPDU: 90 00 [22:54:38]wFMCommunicate OK [22:54:38]wFMCommunicate request_size=4 [22:54:38]MH_SAM_APDU [22:54:38]CAPDU: 80 0D 03 02 [22:54:38]Write to MH i2c: E2 08 00 5D 07 80 0D 03 02 00 00 00 00 DF [22:54:38]Write i2c OK [22:54:38]MH_I2C_Read... [22:54:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:54:38]Read from MH i2c: E2 [22:54:38]MH_I2C_Read... [22:54:38]Read from MH i2c: E2 0B 00 [22:54:38]MH_I2C_Read... [22:54:38]Read from MH i2c: E2 0B 00 5D 07 00 B6 87 0F CE 2A A0 84 2C 90 00 74 [22:54:38]RAPDU: B6 87 0F CE 2A A0 84 2C 90 00 [22:54:38]wFMCommunicate OK [22:54:38]SAM_PROTO_SignData done [22:54:38]FM_MakeSignedData done [22:54:38]CreateOFDProtocolMessage [22:54:38]wFMCommunicate request_size=4 [22:54:38]MH_SAM_APDU [22:54:38]CAPDU: 80 11 00 00 [22:54:38]Write to MH i2c: E2 08 00 5E 07 80 11 00 00 00 00 00 00 DF [22:54:38]Write i2c OK [22:54:38]MH_I2C_Read... [22:54:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:54:38]Read from MH i2c: E2 [22:54:38]MH_I2C_Read... [22:54:38]Read from MH i2c: E2 17 00 [22:54:38]MH_I2C_Read... [22:54:38]Read from MH i2c: E2 17 00 5E 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 2A [22:54:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [22:54:38]wFMCommunicate OK [22:54:38]CreateOFDProtocolMessage done [22:54:38]OFDSenderStorePacket 68486 [22:54:38]StoreOFDPacket docnum=68486 [22:54:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 E4 E9 07 01 69 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 AD 49 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 86 0B 01 00 35 04 06 00 AE 51 5D D3 8A 2A B6 87 0F CE 2A A0 84 2C [22:54:38]CheckFolder [22:54:38]dirname=/storage/ofd_packets [22:54:38]CheckFolder done [22:54:38]ProducePacketName [22:54:38]name=ofd_packets/00068486 [22:54:38]NVStorageSaveData ofd_packets/00068486 [22:54:38]File name is /storage/ofd_packets/00068486 [22:54:38]Write 301 bytes [22:54:38]NVStorageSaveData done [22:54:38]OFDSenderStorePacket done [22:54:38]KKMCreateOFDPacket done [22:54:38]NVStorageSaveData kkm_last_timestamp [22:54:38]File name is /storage/kkm_last_timestamp [22:54:38]Write 4 bytes [22:54:38]NVStorageSaveData done [22:54:38]ExternCall_PrintAddStr [22:54:38]wPrintStart [22:54:38]Write to MH i2c: 01 00 00 5F 07 66 [22:54:38]Write i2c OK [22:54:38]MH_I2C_Read... [22:54:38]Read from MH i2c: 01 [22:54:38]MH_I2C_Read... [22:54:38]Read from MH i2c: 01 07 00 [22:54:38]MH_I2C_Read... [22:54:38]Read from MH i2c: 01 07 00 5F 07 00 00 00 00 00 FF 0F 7B [22:54:38]RasterBufferAndPrint [22:54:38]line Счет N : (1)706597 [22:54:38]line ИНН: 02508201610067 [22:54:38]line Контрольно-Кассовый Чек [22:54:38]line ПРОДАЖА [22:54:38]line ТРК (МРК, ГНК) : 23 [22:54:38]line Товар: 2710124130 [22:54:38]line Аи-92-К-4 [22:54:38]line 10.470 * 66.90 [22:54:38]line = 700.44 [22:54:38]line НДС 12% НСП 1% [22:54:38]line > о реализуемом товаре [22:54:38]line ИТОГО: 700.44 [22:54:38]line НСП 1% : 6.20 [22:54:38]line НДС 12% : 74.38 [22:54:38]line Наличными: 0.00 [22:54:38]line Безнал.: 700.44 [22:54:38]line Место: АЗС № 62 "Партнер Нефть" [22:54:38]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [22:54:38]line СНО: Общий режим [22:54:38]line Чек 232 03.06.2024 22:54 [22:54:38]line Смена: 324 ФФД: 1.0 [22:54:38]line ЗНМ: 0300000181 [22:54:38]line РНМ: 0000000000098096 [22:54:38]line Версия ККМ: 001 [22:54:38]line Платежная система: АКБ Кыргызстан [22:54:38]line ФМ: 0000000000965400 [22:54:38]line ФД: 68486 [22:54:38]line ФПД: 191664489728554 [22:54:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T225437&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68486&fm=191664489728554&tin=02508201610067®Number=0000000000098096&sum=70044 [22:54:38]OFD Sender: Processing packet 68486 [packets to send 26, broken 25] [22:54:38]ProducePacketName [22:54:38]name=ofd_packets/00068486 [22:54:38]OFD Sender: To server: pG, [22:54:38]CommunicateWithHost lk.salyk.kg:30040 [22:54:38]ConnectInit lk.salyk.kg [22:54:38]written 0, free lines is 4095 [22:54:38]Connected sock=10 [22:54:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 E4 E9 07 01 69 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 AD 49 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 86 0B 01 00 35 04 06 00 AE 51 5D D3 8A 2A B6 87 0F CE 2A A0 84 2C [22:54:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 59 5D 47 00 ED DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 86 0B 01 00 F4 03 04 00 A8 F0 5D 66 B6 04 01 00 00 7D 5D 7F 66 1C 70 76 BD [22:54:38]CommunicateWithHost err = 0 [22:54:38]CheckOFDResponse [22:54:38]1017 (14) - 77093643461234 [22:54:38]1041 (16) - 0000000000965400 [22:54:38]1040 (4) - 68486 [22:54:38]1012 (4) - 03.06.2024 16:34 [22:54:38]1206 (1) - 0 [22:54:38]OFD Sender: Remove packet 68486 [22:54:38]ProducePacketName [22:54:38]name=ofd_packets/00068486 [22:54:38]NVStorageDeleteData [22:54:39]Write to MH i2c: 01 00 00 89 07 90 [22:54:39]Write i2c OK [22:54:39]MH_I2C_Read... [22:54:39]Read from MH i2c: 01 [22:54:39]MH_I2C_Read... [22:54:39]Read from MH i2c: 01 07 00 [22:54:39]MH_I2C_Read... [22:54:39]Read from MH i2c: 01 07 00 89 07 00 00 00 00 00 EA 0C 8D [22:54:39]RasterBufferAndPrint [22:54:39]line [22:54:39]line [22:54:39]line [22:54:39]line [22:54:39]line [22:54:39]written 0, free lines is 3312 [22:54:39]MH_Cut [22:54:39]Write to MH i2c: D1 01 00 90 07 01 69 [22:54:39]Write i2c OK [22:54:39]MH_I2C_Read... [22:54:39]Read from MH i2c: D1 [22:54:39]MH_I2C_Read... [22:54:39]Read from MH i2c: D1 01 00 [22:54:39]MH_I2C_Read... [22:54:39]Read from MH i2c: D1 01 00 90 07 00 68 [22:54:39]Write to MH i2c: 01 00 00 91 07 98 [22:54:39]Write i2c OK [22:54:39]MH_I2C_Read... [22:54:39]OFD Sender: No OFD packet to send [22:54:39]*** Cut start [22:54:39]*** Partial cut [22:54:39]*** CUTSNS_PIN = 1 [22:54:39]*** CUTSNS_PIN = 0 [22:54:40]*** Brake cut motor [22:54:40]Read from MH i2c: 01 [22:54:40]MH_I2C_Read... [22:54:40]*** Stop cut motor [22:54:40]*** Cut end [22:54:40]Read from MH i2c: 01 07 00 [22:54:40]MH_I2C_Read... [22:54:40]Read from MH i2c: 01 07 00 91 07 00 00 00 00 00 FF 0F AD [22:54:40]process_action close_receipt done [22:54:40]requested_data is exist [22:54:40]produce_requested_data [22:54:40]requested_item fm.sn is exist - process it [22:54:40]wFMCommunicate request_size=4 [22:54:40]MH_SAM_APDU [22:54:40]CAPDU: 80 11 00 00 [22:54:40]Write to MH i2c: E2 08 00 92 07 80 11 00 00 00 00 00 00 13 [22:54:40]Write i2c OK [22:54:40]MH_I2C_Read... [22:54:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:54:40]Read from MH i2c: E2 [22:54:40]MH_I2C_Read... [22:54:40]Read from MH i2c: E2 17 00 [22:54:40]MH_I2C_Read... [22:54:40]Read from MH i2c: E2 17 00 92 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 5E [22:54:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [22:54:40]wFMCommunicate OK [22:54:40]requested_item fd.num is exist - process it [22:54:40]SAM_PROTO_GetFieldsCounters [22:54:40]wFMCommunicate request_size=4 [22:54:40]MH_SAM_APDU [22:54:40]CAPDU: 80 13 00 00 [22:54:40]Write to MH i2c: E2 08 00 93 07 80 13 00 00 00 00 00 00 16 [22:54:40]Write i2c OK [22:54:40]MH_I2C_Read... [22:54:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:54:40]Read from MH i2c: E2 [22:54:40]MH_I2C_Read... [22:54:40]Read from MH i2c: E2 62 00 [22:54:40]MH_I2C_Read... [22:54:40]Read from MH i2c: E2 62 00 93 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 86 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 C5 [22:54:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 86 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:54:40]wFMCommunicate OK [22:54:40]SAM_PROTO_GetFieldsCounters done [22:54:40]requested_item shift.num is exist - process it [22:54:40]requested_item shift.opened is exist - process it [22:54:40]req_shift_opened [22:54:40]FM_GetShiftState [22:54:40]SAM_PROTO_GetShiftState [22:54:40]wFMCommunicate request_size=4 [22:54:40]MH_SAM_APDU [22:54:40]CAPDU: 80 13 01 00 [22:54:40]Write to MH i2c: E2 08 00 94 07 80 13 01 00 00 00 00 00 18 [22:54:40]Write i2c OK [22:54:40]MH_I2C_Read... [22:54:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:54:40]Read from MH i2c: E2 [22:54:40]MH_I2C_Read... [22:54:40]Read from MH i2c: E2 0E 00 [22:54:40]MH_I2C_Read... [22:54:40]Read from MH i2c: E2 0E 00 94 07 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 F3 [22:54:40]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [22:54:40]wFMCommunicate OK [22:54:40]SAM_PROTO_GetShiftState done [22:54:40]FM_GetShiftState done [22:54:40]req_shift_opened done [22:54:40]requested_item shift.open_date is exist - process it [22:54:40]req_shift_open_date [22:54:40]req_shift_open_date done [22:54:40]produce_requested_data done [22:54:40]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68486,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [22:54:40]process_action_free close_receipt [22:54:40]json_value_free [22:54:40]json_value_free done [22:54:40]process_json_proto returns [22:54:40]Send response to host [22:54:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68486,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [22:54:40]free response buf [22:54:40]execute_script done [22:54:40]execute_script returns [22:54:40]free content buf [22:54:40]Sock 9.Close socket [22:54:40]Sock 9.Thread stoped [22:54:44]OFD Sender: No OFD packet to send [22:54:49]OFD Sender: No OFD packet to send [22:54:54]OFD Sender: No OFD packet to send [22:54:59]OFD Sender: No OFD packet to send [22:55:04]OFD Sender: No OFD packet to send [22:55:09]OFD Sender: No OFD packet to send [22:55:14]OFD Sender: No OFD packet to send [22:55:19]OFD Sender: No OFD packet to send [22:55:24]OFD Sender: No OFD packet to send [22:55:29]OFD Sender: No OFD packet to send [22:55:34]OFD Sender: No OFD packet to send [22:55:39]OFD Sender: No OFD packet to send [22:55:44]OFD Sender: No OFD packet to send [22:55:49]OFD Sender: No OFD packet to send [22:55:54]OFD Sender: No OFD packet to send [22:55:59]OFD Sender: No OFD packet to send [22:56:04]OFD Sender: No OFD packet to send [22:56:09]OFD Sender: No OFD packet to send [22:56:14]OFD Sender: No OFD packet to send [22:56:19]OFD Sender: No OFD packet to send [22:56:24]OFD Sender: No OFD packet to send [22:56:29]OFD Sender: No OFD packet to send [22:56:34]OFD Sender: No OFD packet to send [22:56:39]OFD Sender: No OFD packet to send [22:56:44]OFD Sender: No OFD packet to send [22:56:49]OFD Sender: No OFD packet to send [22:56:54]OFD Sender: No OFD packet to send [22:56:59]OFD Sender: No OFD packet to send [22:57:04]OFD Sender: No OFD packet to send [22:57:09]OFD Sender: No OFD packet to send [22:57:14]OFD Sender: No OFD packet to send [22:57:19]OFD Sender: No OFD packet to send [22:57:24]OFD Sender: No OFD packet to send [22:57:29]OFD Sender: No OFD packet to send [22:57:34]OFD Sender: No OFD packet to send [22:57:39]OFD Sender: No OFD packet to send [22:57:44]OFD Sender: No OFD packet to send [22:57:49]OFD Sender: No OFD packet to send [22:57:54]OFD Sender: No OFD packet to send [22:57:59]OFD Sender: No OFD packet to send [22:58:04]OFD Sender: No OFD packet to send [22:58:09]OFD Sender: No OFD packet to send [22:58:14]OFD Sender: No OFD packet to send [22:58:19]OFD Sender: No OFD packet to send [22:58:24]OFD Sender: No OFD packet to send [22:58:29]OFD Sender: No OFD packet to send [22:58:34]OFD Sender: No OFD packet to send [22:58:39]OFD Sender: No OFD packet to send [22:58:44]OFD Sender: No OFD packet to send [22:58:49]OFD Sender: No OFD packet to send [22:58:54]OFD Sender: No OFD packet to send [22:58:59]OFD Sender: No OFD packet to send [22:59:04]OFD Sender: No OFD packet to send [22:59:07]accept exits with 7 [22:59:07]New connection [22:59:07]New thread 3067084132 created [22:59:07]Thread 3067227492 joined [22:59:07]Waiting for new connection... [22:59:07] Sock 7.Parse request [22:59:07]Sock 7.Check first char [22:59:07]Sock 7.First char is OK [22:59:07]request: POST /json_proto HTTP/1.0 [22:59:07]Method: POST [22:59:07]URL: /json_proto [22:59:07]Method is POST - this is cgi request [22:59:07]url: /json_proto [22:59:07]query_string will be loaded in cgi processing [22:59:07]execute_cgi json_proto POST (null) [22:59:07]execute_cgi path=json_proto method=POST [22:59:07]POST find Content-Length [22:59:07]Host: 172.17.36.132:8080 [22:59:07]Content-Length: 682 [22:59:07]Content-Type: application/json [22:59:07] [22:59:07]POST finish read [22:59:07]Found Content-Length = 682 [22:59:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706598", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 19.440, "sum" : 1300.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:59:07]execute_script... [22:59:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706598", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 19.440, "sum" : 1300.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:59:07]POST & json_proto [22:59:07]process_json_proto [22:59:07]json parsed OK: [22:59:07]protocol is kg_v1.0 [22:59:07]action value=close_receipt [22:59:07]process_action close_receipt [22:59:07]cmd_close_receipt [22:59:07]MH_GetDate [22:59:07]Write to MH i2c: F0 00 00 95 07 8B [22:59:07]Write i2c OK [22:59:07]MH_I2C_Read... [22:59:07]Read from MH i2c: F0 [22:59:07]MH_I2C_Read... [22:59:07]Read from MH i2c: F0 09 00 [22:59:07]MH_I2C_Read... [22:59:07]Read from MH i2c: F0 09 00 95 07 00 BC 4A 5E 66 B2 22 B0 64 46 [22:59:07]GetLastDocTimeStamp 1717455277 [22:59:07]current date 1717455548 [22:59:07]FM_GetShiftState [22:59:07]SAM_PROTO_GetShiftState [22:59:07]wFMCommunicate request_size=4 [22:59:07]MH_SAM_APDU [22:59:07]CAPDU: 80 13 01 00 [22:59:07]Write to MH i2c: E2 08 00 96 07 80 13 01 00 00 00 00 00 1A [22:59:07]Write i2c OK [22:59:07]MH_I2C_Read... [22:59:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:59:07]Read from MH i2c: E2 [22:59:07]MH_I2C_Read... [22:59:07]Read from MH i2c: E2 0E 00 [22:59:07]MH_I2C_Read... [22:59:07]Read from MH i2c: E2 0E 00 96 07 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 F5 [22:59:07]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [22:59:07]wFMCommunicate OK [22:59:07]SAM_PROTO_GetShiftState done [22:59:07]FM_GetShiftState done [22:59:07]opened in 1717378033 [22:59:07]opened+sec_in_day 1717464433 [22:59:07]quantity*price = 130053 [22:59:07]sum+1 = 130055 [22:59:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 1300.00 Внесено: 1300.00 СДАЧА: 0.00 НСП 1% : 11.51 НДС 12% : 138.11 Наличными: 1300.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 233 03.06.2024 22:59 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68487 ФПД: 74218680304767 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T225908&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68487&fm=74218680304767&tin=02508201610067®Number=0000000000098096&sum=130000 [22:59:08]StoreToDocumentArchive [22:59:08]shift 324 fd 68487 [22:59:08]save to /storage/0324/doc_00068487 [22:59:08]save last doc name /storage/0324/doc_00068487 to /storage/kkm_last_doc_name [22:59:08]save OK [22:59:08]Clear old archive folders... [22:59:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:59:08]tlvbuf is 00A25D90 [22:59:08]SAM_PROTO_ClearQueue [22:59:08]wFMCommunicate request_size=4 [22:59:08]MH_SAM_APDU [22:59:08]CAPDU: 80 09 00 00 [22:59:08]Write to MH i2c: E2 08 00 A3 07 80 09 00 00 00 00 00 00 1C [22:59:08]Write i2c OK [22:59:08]MH_I2C_Read... [22:59:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:59:08]Read from MH i2c: E2 [22:59:08]MH_I2C_Read... [22:59:08]Read from MH i2c: E2 03 00 [22:59:08]MH_I2C_Read... [22:59:08]Read from MH i2c: E2 03 00 A3 07 00 90 00 1E [22:59:08]RAPDU: 90 00 [22:59:08]wFMCommunicate OK [22:59:08]SAM_PROTO_ClearQueue done [22:59:08]KKMCreateOFDPacket [22:59:08]OFDProtocolAddRootSTLVToBuf [22:59:08]FM_MakeSignedData [22:59:08]FM_MakeSignedData [22:59:08]SAM_PROTO_SignData [22:59:08]wFMCommunicate request_size=4 [22:59:08]MH_SAM_APDU [22:59:08]CAPDU: 80 0D 01 02 [22:59:08]Write to MH i2c: E2 08 00 A4 07 80 0D 01 02 00 00 00 00 24 [22:59:08]Write i2c OK [22:59:08]MH_I2C_Read... [22:59:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:59:08]Read from MH i2c: E2 [22:59:08]MH_I2C_Read... [22:59:08]Read from MH i2c: E2 03 00 [22:59:08]MH_I2C_Read... [22:59:08]Read from MH i2c: E2 03 00 A4 07 00 90 00 1F [22:59:08]RAPDU: 90 00 [22:59:08]wFMCommunicate OK [22:59:08]wFMCommunicate request_size=255 [22:59:08]MH_SAM_APDU [22:59:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 BC 4A 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 87 0B 01 00 35 04 06 00 43 [22:59:08]Write to MH i2c: E2 02 01 A5 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 BC 4A 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 87 0B 01 00 35 04 06 00 43 00 00 B7 [22:59:08]Write i2c OK [22:59:08]MH_I2C_Read... [22:59:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:59:08]Read from MH i2c: E2 [22:59:08]MH_I2C_Read... [22:59:08]Read from MH i2c: E2 03 00 [22:59:08]MH_I2C_Read... [22:59:08]Read from MH i2c: E2 03 00 A5 07 00 90 00 20 [22:59:08]RAPDU: 90 00 [22:59:08]wFMCommunicate OK [22:59:08]wFMCommunicate request_size=10 [22:59:08]MH_SAM_APDU [22:59:08]CAPDU: 80 0D 02 02 05 80 62 13 44 7F [22:59:08]Write to MH i2c: E2 0D 00 A6 07 80 0D 02 02 05 00 80 62 13 44 7F 00 00 E9 [22:59:08]Write i2c OK [22:59:08]MH_I2C_Read... [22:59:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:59:08]Read from MH i2c: E2 [22:59:08]MH_I2C_Read... [22:59:08]Read from MH i2c: E2 03 00 [22:59:08]MH_I2C_Read... [22:59:08]Read from MH i2c: E2 03 00 A6 07 00 90 00 21 [22:59:08]RAPDU: 90 00 [22:59:08]wFMCommunicate OK [22:59:08]wFMCommunicate request_size=4 [22:59:08]MH_SAM_APDU [22:59:08]CAPDU: 80 0D 03 02 [22:59:08]Write to MH i2c: E2 08 00 A7 07 80 0D 03 02 00 00 00 00 29 [22:59:08]Write i2c OK [22:59:08]MH_I2C_Read... [22:59:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:59:08]Read from MH i2c: E2 [22:59:08]MH_I2C_Read... [22:59:08]Read from MH i2c: E2 0B 00 [22:59:08]MH_I2C_Read... [22:59:08]Read from MH i2c: E2 0B 00 A7 07 00 86 A4 1C EF 36 8F FF D9 90 00 FC [22:59:08]RAPDU: 86 A4 1C EF 36 8F FF D9 90 00 [22:59:08]wFMCommunicate OK [22:59:08]SAM_PROTO_SignData done [22:59:08]FM_MakeSignedData done [22:59:08]CreateOFDProtocolMessage [22:59:08]wFMCommunicate request_size=4 [22:59:08]MH_SAM_APDU [22:59:08]CAPDU: 80 11 00 00 [22:59:08]Write to MH i2c: E2 08 00 A8 07 80 11 00 00 00 00 00 00 29 [22:59:08]Write i2c OK [22:59:08]MH_I2C_Read... [22:59:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:59:08]Read from MH i2c: E2 [22:59:08]MH_I2C_Read... [22:59:08]Read from MH i2c: E2 17 00 [22:59:08]MH_I2C_Read... [22:59:08]Read from MH i2c: E2 17 00 A8 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 74 [22:59:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [22:59:08]wFMCommunicate OK [22:59:08]CreateOFDProtocolMessage done [22:59:08]OFDSenderStorePacket 68487 [22:59:08]StoreOFDPacket docnum=68487 [22:59:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 6B D7 07 01 DC 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 BC 4A 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 87 0B 01 00 35 04 06 00 43 80 62 13 44 7F 86 A4 1C EF 36 8F FF D9 [22:59:08]CheckFolder [22:59:08]dirname=/storage/ofd_packets [22:59:08]CheckFolder done [22:59:08]ProducePacketName [22:59:08]name=ofd_packets/00068487 [22:59:08]NVStorageSaveData ofd_packets/00068487 [22:59:08]File name is /storage/ofd_packets/00068487 [22:59:08]Write 301 bytes [22:59:08]NVStorageSaveData done [22:59:08]OFDSenderStorePacket done [22:59:08]KKMCreateOFDPacket done [22:59:08]NVStorageSaveData kkm_last_timestamp [22:59:08]File name is /storage/kkm_last_timestamp [22:59:08]Write 4 bytes [22:59:08]NVStorageSaveData done [22:59:08]ExternCall_PrintAddStr [22:59:08]wPrintStart [22:59:08]Write to MH i2c: 01 00 00 A9 07 B0 [22:59:08]Write i2c OK [22:59:08]MH_I2C_Read... [22:59:08]Read from MH i2c: 01 [22:59:08]MH_I2C_Read... [22:59:08]Read from MH i2c: 01 07 00 [22:59:08]MH_I2C_Read... [22:59:08]Read from MH i2c: 01 07 00 A9 07 00 00 00 00 00 FF 0F C5 [22:59:08]RasterBufferAndPrint [22:59:08]line Счет N : (1)706598 [22:59:08]line ИНН: 02508201610067 [22:59:08]line Контрольно-Кассовый Чек [22:59:08]line ПРОДАЖА [22:59:08]line ТРК (МРК, ГНК) : 23 [22:59:08]line Товар: 2710124130 [22:59:08]line Аи-92-К-4 [22:59:08]line 19.440 * 66.90 [22:59:08]line = 1300.54 [22:59:08]line НДС 12% НСП 1% [22:59:08]line > о реализуемом товаре [22:59:08]line ОКРУГЛЕНИЕ: -0.54 [22:59:08]line ИТОГО: 1300.00 [22:59:08]line Внесено: 1300.00 [22:59:08]line СДАЧА: 0.00 [22:59:08]line НСП 1% : 11.51 [22:59:08]line НДС 12% : 138.11 [22:59:08]line Наличными: 1300.00 [22:59:08]line Безнал.: 0.00 [22:59:08]line Место: АЗС № 62 "Партнер Нефть" [22:59:08]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [22:59:08]line СНО: Общий режим [22:59:08]line Чек 233 03.06.2024 22:59 [22:59:08]line Смена: 324 ФФД: 1.0 [22:59:08]line ЗНМ: 0300000181 [22:59:08]line РНМ: 0000000000098096 [22:59:08]line Версия ККМ: 001 [22:59:08]line ФМ: 0000000000965400 [22:59:08]line ФД: 68487 [22:59:08]line ФПД: 74218680304767 [22:59:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T225908&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68487&fm=74218680304767&tin=02508201610067®Number=0000000000098096&sum=130000 [22:59:09]OFD Sender: Processing packet 68487 [packets to send 26, broken 25] [22:59:09]ProducePacketName [22:59:09]name=ofd_packets/00068487 [22:59:09]OFD Sender: To server: pG, [22:59:09]CommunicateWithHost lk.salyk.kg:30040 [22:59:09]ConnectInit lk.salyk.kg [22:59:09]written 0, free lines is 4095 [22:59:09]Write to MH i2c: 01 00 00 D4 07 DB [22:59:09]Write i2c OK [22:59:09]MH_I2C_Read... [22:59:09]Read from MH i2c: 01 [22:59:09]MH_I2C_Read... [22:59:09]Read from MH i2c: 01 07 00 [22:59:09]MH_I2C_Read... [22:59:09]Read from MH i2c: 01 07 00 D4 07 00 00 00 00 00 CD 0C BB [22:59:09]RasterBufferAndPrint [22:59:09]line [22:59:09]line [22:59:09]line [22:59:09]line [22:59:09]line [22:59:09]written 0, free lines is 3281 [22:59:09]MH_Cut [22:59:09]Write to MH i2c: D1 01 00 DB 07 01 B4 [22:59:09]Write i2c OK [22:59:09]MH_I2C_Read... [22:59:09]Read from MH i2c: D1 [22:59:09]MH_I2C_Read... [22:59:09]Read from MH i2c: D1 01 00 [22:59:09]MH_I2C_Read... [22:59:09]Read from MH i2c: D1 01 00 DB 07 00 B3 [22:59:09]Write to MH i2c: 01 00 00 DC 07 E3 [22:59:09]Write i2c OK [22:59:09]MH_I2C_Read... [22:59:10]*** Cut start [22:59:10]*** Partial cut [22:59:10]*** CUTSNS_PIN = 1 [22:59:10]*** CUTSNS_PIN = 0 [22:59:10]*** Brake cut motor [22:59:11]Read from MH i2c: 01 [22:59:11]MH_I2C_Read... [22:59:11]*** Stop cut motor [22:59:11]Read from MH i2c: 01 07 00 [22:59:11]MH_I2C_Read... [22:59:11]*** Cut end [22:59:11]Read from MH i2c: 01 07 00 DC 07 00 00 00 00 00 FF 0F F8 [22:59:11]process_action close_receipt done [22:59:11]requested_data is exist [22:59:11]produce_requested_data [22:59:11]requested_item fm.sn is exist - process it [22:59:11]wFMCommunicate request_size=4 [22:59:11]MH_SAM_APDU [22:59:11]CAPDU: 80 11 00 00 [22:59:11]Write to MH i2c: E2 08 00 DD 07 80 11 00 00 00 00 00 00 5E [22:59:11]Write i2c OK [22:59:11]MH_I2C_Read... [22:59:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:59:11]Read from MH i2c: E2 [22:59:11]MH_I2C_Read... [22:59:11]Read from MH i2c: E2 17 00 [22:59:11]MH_I2C_Read... [22:59:11]Read from MH i2c: E2 17 00 DD 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 A9 [22:59:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [22:59:11]wFMCommunicate OK [22:59:11]requested_item fd.num is exist - process it [22:59:11]SAM_PROTO_GetFieldsCounters [22:59:11]wFMCommunicate request_size=4 [22:59:11]MH_SAM_APDU [22:59:11]CAPDU: 80 13 00 00 [22:59:11]Write to MH i2c: E2 08 00 DE 07 80 13 00 00 00 00 00 00 61 [22:59:11]Write i2c OK [22:59:11]MH_I2C_Read... [22:59:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:59:11]Read from MH i2c: E2 [22:59:11]MH_I2C_Read... [22:59:11]Read from MH i2c: E2 62 00 [22:59:11]MH_I2C_Read... [22:59:11]Read from MH i2c: E2 62 00 DE 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 87 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 14 [22:59:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 87 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:59:11]wFMCommunicate OK [22:59:11]SAM_PROTO_GetFieldsCounters done [22:59:11]requested_item shift.num is exist - process it [22:59:11]requested_item shift.opened is exist - process it [22:59:11]req_shift_opened [22:59:11]FM_GetShiftState [22:59:11]SAM_PROTO_GetShiftState [22:59:11]wFMCommunicate request_size=4 [22:59:11]MH_SAM_APDU [22:59:11]CAPDU: 80 13 01 00 [22:59:11]Write to MH i2c: E2 08 00 DF 07 80 13 01 00 00 00 00 00 63 [22:59:11]Write i2c OK [22:59:11]MH_I2C_Read... [22:59:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:59:11]Read from MH i2c: E2 [22:59:11]MH_I2C_Read... [22:59:11]Read from MH i2c: E2 0E 00 [22:59:11]MH_I2C_Read... [22:59:11]Read from MH i2c: E2 0E 00 DF 07 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 3E [22:59:11]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [22:59:11]wFMCommunicate OK [22:59:11]SAM_PROTO_GetShiftState done [22:59:11]FM_GetShiftState done [22:59:11]req_shift_opened done [22:59:11]requested_item shift.open_date is exist - process it [22:59:11]req_shift_open_date [22:59:11]req_shift_open_date done [22:59:11]produce_requested_data done [22:59:11]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68487,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [22:59:11]process_action_free close_receipt [22:59:11]json_value_free [22:59:11]json_value_free done [22:59:11]process_json_proto returns [22:59:11]Send response to host [22:59:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68487,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [22:59:11]free response buf [22:59:11]execute_script done [22:59:11]execute_script returns [22:59:11]free content buf [22:59:11]Sock 7.Close socket [22:59:11]Sock 7.Thread stoped [22:59:11]accept exits with 9 [22:59:11]New connection [22:59:11]New thread 3067227492 created [22:59:11]Thread 3067084132 joined [22:59:11]Waiting for new connection... [22:59:11] Sock 9.Parse request [22:59:11]Sock 9.Check first char [22:59:11]Sock 9.First char is OK [22:59:11]request: POST /json_proto HTTP/1.0 [22:59:11]Method: POST [22:59:11]URL: /json_proto [22:59:11]Method is POST - this is cgi request [22:59:11]url: /json_proto [22:59:11]query_string will be loaded in cgi processing [22:59:11]execute_cgi json_proto POST (null) [22:59:11]execute_cgi path=json_proto method=POST [22:59:11]POST find Content-Length [22:59:11]Host: 172.17.36.132:8080 [22:59:11]Content-Length: 845 [22:59:11]Content-Type: application/json [22:59:11] [22:59:11]POST finish read [22:59:11]Found Content-Length = 845 [22:59:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706599", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:59:11]execute_script... [22:59:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706599", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:59:11]POST & json_proto [22:59:11]process_json_proto [22:59:11]json parsed OK: [22:59:11]protocol is kg_v1.0 [22:59:11]action value=close_receipt [22:59:11]process_action close_receipt [22:59:11]cmd_close_receipt [22:59:11]MH_GetDate [22:59:11]Write to MH i2c: F0 00 00 E0 07 D6 [22:59:11]Write i2c OK [22:59:11]MH_I2C_Read... [22:59:11]Read from MH i2c: F0 [22:59:11]MH_I2C_Read... [22:59:11]Read from MH i2c: F0 09 00 [22:59:11]MH_I2C_Read... [22:59:11]Read from MH i2c: F0 09 00 E0 07 00 C0 4A 5E 66 B2 22 B0 64 95 [22:59:11]GetLastDocTimeStamp 1717455548 [22:59:11]current date 1717455552 [22:59:11]FM_GetShiftState [22:59:11]SAM_PROTO_GetShiftState [22:59:11]wFMCommunicate request_size=4 [22:59:11]MH_SAM_APDU [22:59:11]CAPDU: 80 13 01 00 [22:59:11]Write to MH i2c: E2 08 00 E1 07 80 13 01 00 00 00 00 00 65 [22:59:11]Write i2c OK [22:59:11]MH_I2C_Read... [22:59:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:59:11]Read from MH i2c: E2 [22:59:11]MH_I2C_Read... [22:59:11]Read from MH i2c: E2 0E 00 [22:59:11]MH_I2C_Read... [22:59:11]Read from MH i2c: E2 0E 00 E1 07 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 40 [22:59:11]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [22:59:11]wFMCommunicate OK [22:59:11]SAM_PROTO_GetShiftState done [22:59:11]FM_GetShiftState done [22:59:11]opened in 1717378033 [22:59:11]opened+sec_in_day 1717464433 [22:59:11]quantity*price = 50009 [22:59:11]sum+1 = 50010 [22:59:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.09 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.09 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 234 03.06.2024 22:59 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68488 ФПД: 66840051993764 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T225912&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68488&fm=66840051993764&tin=02508201610067®Number=0000000000098096&sum=50009 [22:59:12]StoreToDocumentArchive [22:59:12]shift 324 fd 68488 [22:59:12]save to /storage/0324/doc_00068488 [22:59:12]save last doc name /storage/0324/doc_00068488 to /storage/kkm_last_doc_name [22:59:12]save OK [22:59:12]Clear old archive folders... [22:59:12]ProcessDocumentItem done err = 0, tmpTLVsize=252 [22:59:12]tlvbuf is 009D7A00 [22:59:12]SAM_PROTO_ClearQueue [22:59:12]wFMCommunicate request_size=4 [22:59:12]MH_SAM_APDU [22:59:12]CAPDU: 80 09 00 00 [22:59:12]Write to MH i2c: E2 08 00 EE 07 80 09 00 00 00 00 00 00 67 [22:59:12]Write i2c OK [22:59:12]MH_I2C_Read... [22:59:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:59:12]Read from MH i2c: E2 [22:59:12]MH_I2C_Read... [22:59:12]Read from MH i2c: E2 03 00 [22:59:12]MH_I2C_Read... [22:59:12]Read from MH i2c: E2 03 00 EE 07 00 90 00 69 [22:59:12]RAPDU: 90 00 [22:59:12]wFMCommunicate OK [22:59:12]SAM_PROTO_ClearQueue done [22:59:12]KKMCreateOFDPacket [22:59:12]OFDProtocolAddRootSTLVToBuf [22:59:12]FM_MakeSignedData [22:59:12]FM_MakeSignedData [22:59:12]SAM_PROTO_SignData [22:59:12]wFMCommunicate request_size=4 [22:59:12]MH_SAM_APDU [22:59:12]CAPDU: 80 0D 01 02 [22:59:12]Write to MH i2c: E2 08 00 EF 07 80 0D 01 02 00 00 00 00 6F [22:59:12]Write i2c OK [22:59:12]MH_I2C_Read... [22:59:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:59:12]Read from MH i2c: E2 [22:59:12]MH_I2C_Read... [22:59:12]Read from MH i2c: E2 03 00 [22:59:12]MH_I2C_Read... [22:59:12]Read from MH i2c: E2 03 00 EF 07 00 90 00 6A [22:59:12]RAPDU: 90 00 [22:59:12]wFMCommunicate OK [22:59:12]wFMCommunicate request_size=255 [22:59:12]MH_SAM_APDU [22:59:12]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 34 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 C0 4A 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 88 0B 01 00 35 04 06 00 [22:59:12]Write to MH i2c: E2 02 01 F0 07 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 34 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 C0 4A 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 88 0B 01 00 35 04 06 00 00 00 A2 [22:59:13]Write i2c OK [22:59:13]MH_I2C_Read... [22:59:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:59:13]Read from MH i2c: E2 [22:59:13]MH_I2C_Read... [22:59:13]Read from MH i2c: E2 03 00 [22:59:13]MH_I2C_Read... [22:59:13]Read from MH i2c: E2 03 00 F0 07 00 90 00 6B [22:59:13]RAPDU: 90 00 [22:59:13]wFMCommunicate OK [22:59:13]wFMCommunicate request_size=11 [22:59:13]MH_SAM_APDU [22:59:13]CAPDU: 80 0D 02 02 06 3C CA 69 8E 4C A4 [22:59:13]Write to MH i2c: E2 0E 00 F1 07 80 0D 02 02 06 00 3C CA 69 8E 4C A4 00 00 6B [22:59:13]Write i2c OK [22:59:13]MH_I2C_Read... [22:59:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:59:13]Read from MH i2c: E2 [22:59:13]MH_I2C_Read... [22:59:13]Read from MH i2c: E2 03 00 [22:59:13]MH_I2C_Read... [22:59:13]Read from MH i2c: E2 03 00 F1 07 00 90 00 6C [22:59:13]RAPDU: 90 00 [22:59:13]wFMCommunicate OK [22:59:13]wFMCommunicate request_size=4 [22:59:13]MH_SAM_APDU [22:59:13]CAPDU: 80 0D 03 02 [22:59:13]Write to MH i2c: E2 08 00 F2 07 80 0D 03 02 00 00 00 00 74 [22:59:13]Write i2c OK [22:59:13]MH_I2C_Read... [22:59:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:59:13]Read from MH i2c: E2 [22:59:13]MH_I2C_Read... [22:59:13]Read from MH i2c: E2 0B 00 [22:59:13]MH_I2C_Read... [22:59:13]Read from MH i2c: E2 0B 00 F2 07 00 B3 31 D9 93 F5 FB BC 8C 90 00 FD [22:59:13]RAPDU: B3 31 D9 93 F5 FB BC 8C 90 00 [22:59:13]wFMCommunicate OK [22:59:13]SAM_PROTO_SignData done [22:59:13]FM_MakeSignedData done [22:59:13]CreateOFDProtocolMessage [22:59:13]wFMCommunicate request_size=4 [22:59:13]MH_SAM_APDU [22:59:13]CAPDU: 80 11 00 00 [22:59:13]Write to MH i2c: E2 08 00 F3 07 80 11 00 00 00 00 00 00 74 [22:59:13]Write i2c OK [22:59:13]MH_I2C_Read... [22:59:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:59:13]Read from MH i2c: E2 [22:59:13]MH_I2C_Read... [22:59:13]Read from MH i2c: E2 17 00 [22:59:13]MH_I2C_Read... [22:59:13]Read from MH i2c: E2 17 00 F3 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 BF [22:59:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [22:59:13]wFMCommunicate OK [22:59:13]CreateOFDProtocolMessage done [22:59:13]OFDSenderStorePacket 68488 [22:59:13]StoreOFDPacket docnum=68488 [22:59:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 31 7C 08 01 E9 E7 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 34 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 C0 4A 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 88 0B 01 00 35 04 06 00 3C CA 69 8E 4C A4 B3 31 D9 93 F5 FB BC 8C [22:59:13]CheckFolder [22:59:13]dirname=/storage/ofd_packets [22:59:13]CheckFolder done [22:59:13]ProducePacketName [22:59:13]name=ofd_packets/00068488 [22:59:13]NVStorageSaveData ofd_packets/00068488 [22:59:13]File name is /storage/ofd_packets/00068488 [22:59:13]Write 302 bytes [22:59:13]NVStorageSaveData done [22:59:13]OFDSenderStorePacket done [22:59:13]KKMCreateOFDPacket done [22:59:13]NVStorageSaveData kkm_last_timestamp [22:59:13]File name is /storage/kkm_last_timestamp [22:59:13]Write 4 bytes [22:59:13]NVStorageSaveData done [22:59:13]ExternCall_PrintAddStr [22:59:13]wPrintStart [22:59:13]Write to MH i2c: 01 00 00 F4 07 FB [22:59:13]Write i2c OK [22:59:13]MH_I2C_Read... [22:59:13]Read from MH i2c: 01 [22:59:13]MH_I2C_Read... [22:59:13]Read from MH i2c: 01 07 00 [22:59:13]MH_I2C_Read... [22:59:13]Read from MH i2c: 01 07 00 F4 07 00 00 00 00 00 FF 0F 10 [22:59:13]RasterBufferAndPrint [22:59:13]line Счет N : (1)706599 [22:59:13]line ИНН: 02508201610067 [22:59:13]line Контрольно-Кассовый Чек [22:59:13]line ПРОДАЖА [22:59:13]line ТРК (МРК, ГНК) : 51 [22:59:13]line Товар: 2710194210 [22:59:13]line ДТ(л)-К-4 [22:59:13]line 6.860 * 72.90 [22:59:13]line = 500.09 [22:59:13]line НДС 12% НСП 1% [22:59:13]line > о реализуемом товаре [22:59:13]line ИТОГО: 500.09 [22:59:13]line НСП 1% : 4.43 [22:59:13]line НДС 12% : 53.11 [22:59:13]line Наличными: 0.00 [22:59:13]line Безнал.: 500.09 [22:59:13]line Место: АЗС № 62 "Партнер Нефть" [22:59:13]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [22:59:13]line СНО: Общий режим [22:59:13]line Чек 234 03.06.2024 22:59 [22:59:13]line Смена: 324 ФФД: 1.0 [22:59:13]line ЗНМ: 0300000181 [22:59:13]line РНМ: 0000000000098096 [22:59:13]line Версия ККМ: 001 [22:59:13]line Платежная система: АКБ Кыргызстан [22:59:13]line ФМ: 0000000000965400 [22:59:13]line ФД: 68488 [22:59:13]line ФПД: 66840051993764 [22:59:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T225912&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68488&fm=66840051993764&tin=02508201610067®Number=0000000000098096&sum=50009 [22:59:13]written 0, free lines is 4095 [22:59:14]Write to MH i2c: 01 00 00 1E 08 26 [22:59:14]Write i2c OK [22:59:14]MH_I2C_Read... [22:59:14]Read from MH i2c: 01 [22:59:14]MH_I2C_Read... [22:59:14]Read from MH i2c: 01 07 00 [22:59:14]MH_I2C_Read... [22:59:14]Read from MH i2c: 01 07 00 1E 08 00 00 00 00 00 EB 0C 24 [22:59:14]RasterBufferAndPrint [22:59:14]line [22:59:14]line [22:59:14]line [22:59:14]line [22:59:14]line [22:59:14]written 0, free lines is 3319 [22:59:14]MH_Cut [22:59:14]Write to MH i2c: D1 01 00 25 08 01 FF [22:59:14]Write i2c OK [22:59:14]MH_I2C_Read... [22:59:14]Read from MH i2c: D1 [22:59:14]MH_I2C_Read... [22:59:14]Read from MH i2c: D1 01 00 [22:59:14]MH_I2C_Read... [22:59:14]Read from MH i2c: D1 01 00 25 08 00 FE [22:59:14]Write to MH i2c: 01 00 00 26 08 2E [22:59:14]Write i2c OK [22:59:14]MH_I2C_Read... [22:59:15]*** Cut start [22:59:15]*** Partial cut [22:59:15]*** CUTSNS_PIN = 1 [22:59:15]*** CUTSNS_PIN = 0 [22:59:15]*** Brake cut motor [22:59:15]Read from MH i2c: 01 [22:59:15]MH_I2C_Read... [22:59:15]*** Stop cut motor [22:59:15]*** Cut end [22:59:15]Read from MH i2c: 01 07 00 [22:59:15]MH_I2C_Read... [22:59:15]Read from MH i2c: 01 07 00 26 08 00 00 00 00 00 FF 0F 43 [22:59:15]process_action close_receipt done [22:59:15]requested_data is exist [22:59:15]produce_requested_data [22:59:15]requested_item fm.sn is exist - process it [22:59:15]wFMCommunicate request_size=4 [22:59:15]MH_SAM_APDU [22:59:15]CAPDU: 80 11 00 00 [22:59:15]Write to MH i2c: E2 08 00 27 08 80 11 00 00 00 00 00 00 A9 [22:59:15]Write i2c OK [22:59:15]MH_I2C_Read... [22:59:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:59:15]Read from MH i2c: E2 [22:59:15]MH_I2C_Read... [22:59:15]Read from MH i2c: E2 17 00 [22:59:15]MH_I2C_Read... [22:59:15]Read from MH i2c: E2 17 00 27 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 F4 [22:59:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [22:59:15]wFMCommunicate OK [22:59:15]requested_item fd.num is exist - process it [22:59:15]SAM_PROTO_GetFieldsCounters [22:59:15]wFMCommunicate request_size=4 [22:59:15]MH_SAM_APDU [22:59:15]CAPDU: 80 13 00 00 [22:59:15]Write to MH i2c: E2 08 00 28 08 80 13 00 00 00 00 00 00 AC [22:59:15]Write i2c OK [22:59:15]MH_I2C_Read... [22:59:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:59:16]Read from MH i2c: E2 [22:59:16]MH_I2C_Read... [22:59:16]Read from MH i2c: E2 62 00 [22:59:16]MH_I2C_Read... [22:59:16]Read from MH i2c: E2 62 00 28 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 88 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 63 [22:59:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 88 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:59:16]wFMCommunicate OK [22:59:16]SAM_PROTO_GetFieldsCounters done [22:59:16]requested_item shift.num is exist - process it [22:59:16]requested_item shift.opened is exist - process it [22:59:16]req_shift_opened [22:59:16]FM_GetShiftState [22:59:16]SAM_PROTO_GetShiftState [22:59:16]wFMCommunicate request_size=4 [22:59:16]MH_SAM_APDU [22:59:16]CAPDU: 80 13 01 00 [22:59:16]Write to MH i2c: E2 08 00 29 08 80 13 01 00 00 00 00 00 AE [22:59:16]Write i2c OK [22:59:16]MH_I2C_Read... [22:59:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:59:16]Read from MH i2c: E2 [22:59:16]MH_I2C_Read... [22:59:16]Read from MH i2c: E2 0E 00 [22:59:16]MH_I2C_Read... [22:59:16]Read from MH i2c: E2 0E 00 29 08 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 89 [22:59:16]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [22:59:16]wFMCommunicate OK [22:59:16]SAM_PROTO_GetShiftState done [22:59:16]FM_GetShiftState done [22:59:16]req_shift_opened done [22:59:16]requested_item shift.open_date is exist - process it [22:59:16]req_shift_open_date [22:59:16]req_shift_open_date done [22:59:16]produce_requested_data done [22:59:16]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68488,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [22:59:16]process_action_free close_receipt [22:59:16]json_value_free [22:59:16]json_value_free done [22:59:16]process_json_proto returns [22:59:16]Send response to host [22:59:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68488,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [22:59:16]free response buf [22:59:16]execute_script done [22:59:16]execute_script returns [22:59:16]free content buf [22:59:16]Sock 9.Close socket [22:59:16]Sock 9.Thread stoped [23:00:07]accept exits with 7 [23:00:07]New connection [23:00:07]New thread 3067084132 created [23:00:07]Thread 3067227492 joined [23:00:07]Waiting for new connection... [23:00:07] Sock 7.Parse request [23:00:07]Sock 7.Check first char [23:00:07]Sock 7.First char is OK [23:00:07]request: POST /json_proto HTTP/1.0 [23:00:07]Method: POST [23:00:07]URL: /json_proto [23:00:07]Method is POST - this is cgi request [23:00:07]url: /json_proto [23:00:07]query_string will be loaded in cgi processing [23:00:07]execute_cgi json_proto POST (null) [23:00:07]execute_cgi path=json_proto method=POST [23:00:07]POST find Content-Length [23:00:07]Host: 172.17.36.132:8080 [23:00:07]Content-Length: 678 [23:00:07]Content-Type: application/json [23:00:07] [23:00:07]POST finish read [23:00:07]Found Content-Length = 678 [23:00:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706600", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 11.370, "sum" : 760.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 760.00, "total" : 760.00, "payments": [ { "type": 0, "sum" : 760.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:00:07]execute_script... [23:00:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706600", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 11.370, "sum" : 760.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 760.00, "total" : 760.00, "payments": [ { "type": 0, "sum" : 760.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:00:07]POST & json_proto [23:00:07]process_json_proto [23:00:07]json parsed OK: [23:00:07]protocol is kg_v1.0 [23:00:07]action value=close_receipt [23:00:07]process_action close_receipt [23:00:07]cmd_close_receipt [23:00:07]MH_GetDate [23:00:07]Write to MH i2c: F0 00 00 2A 08 21 [23:00:07]Write i2c OK [23:00:07]MH_I2C_Read... [23:00:07]Read from MH i2c: F0 [23:00:07]MH_I2C_Read... [23:00:07]Read from MH i2c: F0 09 00 [23:00:07]MH_I2C_Read... [23:00:07]Read from MH i2c: F0 09 00 2A 08 00 F8 4A 5E 66 B2 22 B0 64 18 [23:00:07]GetLastDocTimeStamp 1717455552 [23:00:07]current date 1717455608 [23:00:07]FM_GetShiftState [23:00:07]SAM_PROTO_GetShiftState [23:00:07]wFMCommunicate request_size=4 [23:00:07]MH_SAM_APDU [23:00:07]CAPDU: 80 13 01 00 [23:00:07]Write to MH i2c: E2 08 00 2B 08 80 13 01 00 00 00 00 00 B0 [23:00:07]Write i2c OK [23:00:07]MH_I2C_Read... [23:00:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:00:07]Read from MH i2c: E2 [23:00:07]MH_I2C_Read... [23:00:07]Read from MH i2c: E2 0E 00 [23:00:07]MH_I2C_Read... [23:00:07]Read from MH i2c: E2 0E 00 2B 08 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 8B [23:00:07]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [23:00:07]wFMCommunicate OK [23:00:07]SAM_PROTO_GetShiftState done [23:00:07]FM_GetShiftState done [23:00:07]opened in 1717378033 [23:00:07]opened+sec_in_day 1717464433 [23:00:07]quantity*price = 76065 [23:00:07]sum+1 = 76066 [23:00:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 760.00 Внесено: 760.00 СДАЧА: 0.00 НСП 1% : 6.73 НДС 12% : 80.78 Наличными: 760.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 235 03.06.2024 23:00 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68489 ФПД: 270060092129365 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T230008&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68489&fm=270060092129365&tin=02508201610067®Number=0000000000098096&sum=76000 [23:00:08]StoreToDocumentArchive [23:00:08]shift 324 fd 68489 [23:00:08]save to /storage/0324/doc_00068489 [23:00:08]save last doc name /storage/0324/doc_00068489 to /storage/kkm_last_doc_name [23:00:08]save OK [23:00:08]Clear old archive folders... [23:00:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:00:08]tlvbuf is 00A20F90 [23:00:08]SAM_PROTO_ClearQueue [23:00:08]wFMCommunicate request_size=4 [23:00:08]MH_SAM_APDU [23:00:08]CAPDU: 80 09 00 00 [23:00:08]Write to MH i2c: E2 08 00 38 08 80 09 00 00 00 00 00 00 B2 [23:00:08]Write i2c OK [23:00:08]MH_I2C_Read... [23:00:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:00:08]Read from MH i2c: E2 [23:00:08]MH_I2C_Read... [23:00:08]Read from MH i2c: E2 03 00 [23:00:08]MH_I2C_Read... [23:00:08]Read from MH i2c: E2 03 00 38 08 00 90 00 B4 [23:00:08]RAPDU: 90 00 [23:00:08]wFMCommunicate OK [23:00:08]SAM_PROTO_ClearQueue done [23:00:08]KKMCreateOFDPacket [23:00:08]OFDProtocolAddRootSTLVToBuf [23:00:08]FM_MakeSignedData [23:00:08]FM_MakeSignedData [23:00:08]SAM_PROTO_SignData [23:00:08]wFMCommunicate request_size=4 [23:00:08]MH_SAM_APDU [23:00:08]CAPDU: 80 0D 01 02 [23:00:08]Write to MH i2c: E2 08 00 39 08 80 0D 01 02 00 00 00 00 BA [23:00:08]Write i2c OK [23:00:08]MH_I2C_Read... [23:00:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:00:08]Read from MH i2c: E2 [23:00:08]MH_I2C_Read... [23:00:08]Read from MH i2c: E2 03 00 [23:00:08]MH_I2C_Read... [23:00:08]Read from MH i2c: E2 03 00 39 08 00 90 00 B5 [23:00:08]RAPDU: 90 00 [23:00:08]wFMCommunicate OK [23:00:08]wFMCommunicate request_size=255 [23:00:08]MH_SAM_APDU [23:00:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6A 2C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 21 29 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 28 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 1F 00 00 00 00 07 04 06 00 E0 28 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 F8 4A 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 89 0B 01 00 35 04 06 00 F5 [23:00:08]Write to MH i2c: E2 02 01 3A 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6A 2C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 21 29 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 28 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 1F 00 00 00 00 07 04 06 00 E0 28 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 F8 4A 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 89 0B 01 00 35 04 06 00 F5 00 00 01 [23:00:08]Write i2c OK [23:00:08]MH_I2C_Read... [23:00:08]Read from MH i2c: E2 [23:00:08]MH_I2C_Read... [23:00:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:00:08]Read from MH i2c: E2 03 00 [23:00:08]MH_I2C_Read... [23:00:08]Read from MH i2c: E2 03 00 3A 08 00 90 00 B6 [23:00:08]RAPDU: 90 00 [23:00:08]wFMCommunicate OK [23:00:08]wFMCommunicate request_size=10 [23:00:08]MH_SAM_APDU [23:00:08]CAPDU: 80 0D 02 02 05 9E 43 DC 00 55 [23:00:08]Write to MH i2c: E2 0D 00 3B 08 80 0D 02 02 05 00 9E 43 DC 00 55 00 00 D9 [23:00:08]Write i2c OK [23:00:08]MH_I2C_Read... [23:00:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:00:08]Read from MH i2c: E2 [23:00:08]MH_I2C_Read... [23:00:08]Read from MH i2c: E2 03 00 [23:00:08]MH_I2C_Read... [23:00:08]Read from MH i2c: E2 03 00 3B 08 00 90 00 B7 [23:00:08]RAPDU: 90 00 [23:00:08]wFMCommunicate OK [23:00:08]wFMCommunicate request_size=4 [23:00:08]MH_SAM_APDU [23:00:08]CAPDU: 80 0D 03 02 [23:00:08]Write to MH i2c: E2 08 00 3C 08 80 0D 03 02 00 00 00 00 BF [23:00:08]Write i2c OK [23:00:08]MH_I2C_Read... [23:00:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:00:08]Read from MH i2c: E2 [23:00:08]MH_I2C_Read... [23:00:08]Read from MH i2c: E2 0B 00 [23:00:08]MH_I2C_Read... [23:00:08]Read from MH i2c: E2 0B 00 3C 08 00 3C 91 30 BB E3 F5 98 07 90 00 EF [23:00:08]RAPDU: 3C 91 30 BB E3 F5 98 07 90 00 [23:00:08]wFMCommunicate OK [23:00:08]SAM_PROTO_SignData done [23:00:08]FM_MakeSignedData done [23:00:08]CreateOFDProtocolMessage [23:00:08]wFMCommunicate request_size=4 [23:00:08]MH_SAM_APDU [23:00:08]CAPDU: 80 11 00 00 [23:00:08]Write to MH i2c: E2 08 00 3D 08 80 11 00 00 00 00 00 00 BF [23:00:08]Write i2c OK [23:00:08]MH_I2C_Read... [23:00:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:00:08]Read from MH i2c: E2 [23:00:08]MH_I2C_Read... [23:00:08]Read from MH i2c: E2 17 00 [23:00:08]MH_I2C_Read... [23:00:08]Read from MH i2c: E2 17 00 3D 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 0A [23:00:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [23:00:08]wFMCommunicate OK [23:00:08]CreateOFDProtocolMessage done [23:00:08]OFDSenderStorePacket 68489 [23:00:08]StoreOFDPacket docnum=68489 [23:00:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 E5 17 07 01 D9 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6A 2C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 21 29 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 28 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 1F 00 00 00 00 07 04 06 00 E0 28 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 F8 4A 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 89 0B 01 00 35 04 06 00 F5 9E 43 DC 00 55 3C 91 30 BB E3 F5 98 07 [23:00:08]CheckFolder [23:00:08]dirname=/storage/ofd_packets [23:00:08]CheckFolder done [23:00:08]ProducePacketName [23:00:08]name=ofd_packets/00068489 [23:00:08]NVStorageSaveData ofd_packets/00068489 [23:00:08]File name is /storage/ofd_packets/00068489 [23:00:08]Write 301 bytes [23:00:08]NVStorageSaveData done [23:00:08]OFDSenderStorePacket done [23:00:08]KKMCreateOFDPacket done [23:00:08]NVStorageSaveData kkm_last_timestamp [23:00:08]File name is /storage/kkm_last_timestamp [23:00:08]Write 4 bytes [23:00:08]NVStorageSaveData done [23:00:08]ExternCall_PrintAddStr [23:00:08]wPrintStart [23:00:08]Write to MH i2c: 01 00 00 3E 08 46 [23:00:08]Write i2c OK [23:00:08]MH_I2C_Read... [23:00:08]Read from MH i2c: 01 [23:00:08]MH_I2C_Read... [23:00:08]Read from MH i2c: 01 07 00 [23:00:08]MH_I2C_Read... [23:00:08]Read from MH i2c: 01 07 00 3E 08 00 00 00 00 00 FF 0F 5B [23:00:08]RasterBufferAndPrint [23:00:08]line Счет N : (1)706600 [23:00:08]line ИНН: 02508201610067 [23:00:08]line Контрольно-Кассовый Чек [23:00:08]line ПРОДАЖА [23:00:08]line ТРК (МРК, ГНК) : 32 [23:00:08]line Товар: 2710124130 [23:00:08]line Аи-92-К-4 [23:00:08]line 11.370 * 66.90 [23:00:08]line = 760.65 [23:00:08]line НДС 12% НСП 1% [23:00:08]line > о реализуемом товаре [23:00:08]line ОКРУГЛЕНИЕ: -0.65 [23:00:08]line ИТОГО: 760.00 [23:00:08]line Внесено: 760.00 [23:00:08]line СДАЧА: 0.00 [23:00:08]line НСП 1% : 6.73 [23:00:08]line НДС 12% : 80.78 [23:00:08]line Наличными: 760.00 [23:00:08]line Безнал.: 0.00 [23:00:08]line Место: АЗС № 62 "Партнер Нефть" [23:00:08]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [23:00:08]line СНО: Общий режим [23:00:08]line Чек 235 03.06.2024 23:00 [23:00:08]line Смена: 324 ФФД: 1.0 [23:00:08]line ЗНМ: 0300000181 [23:00:08]line РНМ: 0000000000098096 [23:00:08]line Версия ККМ: 001 [23:00:08]line ФМ: 0000000000965400 [23:00:08]line ФД: 68489 [23:00:08]line ФПД: 270060092129365 [23:00:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T230008&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68489&fm=270060092129365&tin=02508201610067®Number=0000000000098096&sum=76000 [23:00:09]written 0, free lines is 4095 [23:00:09]Write to MH i2c: 01 00 00 69 08 71 [23:00:09]Write i2c OK [23:00:09]MH_I2C_Read... [23:00:09]Read from MH i2c: 01 [23:00:09]MH_I2C_Read... [23:00:09]Read from MH i2c: 01 07 00 [23:00:09]MH_I2C_Read... [23:00:09]Read from MH i2c: 01 07 00 69 08 00 00 00 00 00 D6 0C 5A [23:00:09]RasterBufferAndPrint [23:00:09]line [23:00:09]line [23:00:09]line [23:00:09]line [23:00:09]line [23:00:09]written 0, free lines is 3293 [23:00:09]MH_Cut [23:00:09]Write to MH i2c: D1 01 00 70 08 01 4A [23:00:09]Write i2c OK [23:00:09]MH_I2C_Read... [23:00:09]Read from MH i2c: D1 [23:00:09]MH_I2C_Read... [23:00:09]Read from MH i2c: D1 01 00 [23:00:09]MH_I2C_Read... [23:00:09]Read from MH i2c: D1 01 00 70 08 00 49 [23:00:09]Write to MH i2c: 01 00 00 71 08 79 [23:00:09]Write i2c OK [23:00:09]MH_I2C_Read... [23:00:10]*** Cut start [23:00:10]*** Partial cut [23:00:10]*** CUTSNS_PIN = 1 [23:00:10]*** CUTSNS_PIN = 0 [23:00:10]*** Brake cut motor [23:00:11]Read from MH i2c: 01 [23:00:11]MH_I2C_Read... [23:00:11]*** Stop cut motor [23:00:11]*** Cut end [23:00:11]Read from MH i2c: 01 07 00 [23:00:11]MH_I2C_Read... [23:00:11]Read from MH i2c: 01 07 00 71 08 00 00 00 00 00 FF 0F 8E [23:00:11]process_action close_receipt done [23:00:11]requested_data is exist [23:00:11]produce_requested_data [23:00:11]requested_item fm.sn is exist - process it [23:00:11]wFMCommunicate request_size=4 [23:00:11]MH_SAM_APDU [23:00:11]CAPDU: 80 11 00 00 [23:00:11]Write to MH i2c: E2 08 00 72 08 80 11 00 00 00 00 00 00 F4 [23:00:11]Write i2c OK [23:00:11]MH_I2C_Read... [23:00:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:00:11]Read from MH i2c: E2 [23:00:11]MH_I2C_Read... [23:00:11]Read from MH i2c: E2 17 00 [23:00:11]MH_I2C_Read... [23:00:11]Read from MH i2c: E2 17 00 72 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 3F [23:00:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [23:00:11]wFMCommunicate OK [23:00:11]requested_item fd.num is exist - process it [23:00:11]SAM_PROTO_GetFieldsCounters [23:00:11]wFMCommunicate request_size=4 [23:00:11]MH_SAM_APDU [23:00:11]CAPDU: 80 13 00 00 [23:00:11]Write to MH i2c: E2 08 00 73 08 80 13 00 00 00 00 00 00 F7 [23:00:11]Write i2c OK [23:00:11]MH_I2C_Read... [23:00:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:00:11]Read from MH i2c: E2 [23:00:11]MH_I2C_Read... [23:00:11]Read from MH i2c: E2 62 00 [23:00:11]MH_I2C_Read... [23:00:11]Read from MH i2c: E2 62 00 73 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 89 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 B2 [23:00:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 89 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:00:11]wFMCommunicate OK [23:00:11]SAM_PROTO_GetFieldsCounters done [23:00:11]requested_item shift.num is exist - process it [23:00:11]requested_item shift.opened is exist - process it [23:00:11]req_shift_opened [23:00:11]FM_GetShiftState [23:00:11]SAM_PROTO_GetShiftState [23:00:11]wFMCommunicate request_size=4 [23:00:11]MH_SAM_APDU [23:00:11]CAPDU: 80 13 01 00 [23:00:11]Write to MH i2c: E2 08 00 74 08 80 13 01 00 00 00 00 00 F9 [23:00:11]Write i2c OK [23:00:11]MH_I2C_Read... [23:00:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:00:11]Read from MH i2c: E2 [23:00:11]MH_I2C_Read... [23:00:11]Read from MH i2c: E2 0E 00 [23:00:11]MH_I2C_Read... [23:00:11]Read from MH i2c: E2 0E 00 74 08 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 D4 [23:00:11]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [23:00:11]wFMCommunicate OK [23:00:11]SAM_PROTO_GetShiftState done [23:00:11]FM_GetShiftState done [23:00:11]req_shift_opened done [23:00:11]requested_item shift.open_date is exist - process it [23:00:11]req_shift_open_date [23:00:11]req_shift_open_date done [23:00:11]produce_requested_data done [23:00:11]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68489,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [23:00:11]process_action_free close_receipt [23:00:11]json_value_free [23:00:11]json_value_free done [23:00:11]process_json_proto returns [23:00:11]Send response to host [23:00:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68489,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [23:00:11]free response buf [23:00:11]execute_script done [23:00:11]execute_script returns [23:00:11]free content buf [23:00:11]Sock 7.Close socket [23:00:11]Sock 7.Thread stoped [23:00:24]accept exits with 9 [23:00:24]New connection [23:00:24]New thread 3067227492 created [23:00:24]Thread 3067084132 joined [23:00:24]Waiting for new connection... [23:00:24] Sock 9.Parse request [23:00:24]Sock 9.Check first char [23:00:24]Sock 9.First char is OK [23:00:24]request: POST /json_proto HTTP/1.0 [23:00:24]Method: POST [23:00:24]URL: /json_proto [23:00:24]Method is POST - this is cgi request [23:00:24]url: /json_proto [23:00:24]query_string will be loaded in cgi processing [23:00:24]execute_cgi json_proto POST (null) [23:00:24]execute_cgi path=json_proto method=POST [23:00:24]POST find Content-Length [23:00:24]Host: 172.17.36.132:8080 [23:00:24]Content-Length: 682 [23:00:24]Content-Type: application/json [23:00:24] [23:00:24]POST finish read [23:00:24]Found Content-Length = 682 [23:00:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706601", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:00:24]execute_script... [23:00: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)706601", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 6.860, "sum" : 500.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:00:24]POST & json_proto [23:00:24]process_json_proto [23:00:24]json parsed OK: [23:00:24]protocol is kg_v1.0 [23:00:24]action value=close_receipt [23:00:24]process_action close_receipt [23:00:24]cmd_close_receipt [23:00:24]MH_GetDate [23:00:24]Write to MH i2c: F0 00 00 75 08 6C [23:00:24]Write i2c OK [23:00:24]MH_I2C_Read... [23:00:24]Read from MH i2c: F0 [23:00:24]MH_I2C_Read... [23:00:24]Read from MH i2c: F0 09 00 [23:00:24]MH_I2C_Read... [23:00:24]Read from MH i2c: F0 09 00 75 08 00 09 4B 5E 66 B2 22 B0 64 75 [23:00:24]GetLastDocTimeStamp 1717455608 [23:00:24]current date 1717455625 [23:00:24]FM_GetShiftState [23:00:24]SAM_PROTO_GetShiftState [23:00:24]wFMCommunicate request_size=4 [23:00:24]MH_SAM_APDU [23:00:24]CAPDU: 80 13 01 00 [23:00:24]Write to MH i2c: E2 08 00 76 08 80 13 01 00 00 00 00 00 FB [23:00:24]Write i2c OK [23:00:24]MH_I2C_Read... [23:00:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:00:24]Read from MH i2c: E2 [23:00:24]MH_I2C_Read... [23:00:24]Read from MH i2c: E2 0E 00 [23:00:24]MH_I2C_Read... [23:00:24]Read from MH i2c: E2 0E 00 76 08 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 D6 [23:00:24]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [23:00:24]wFMCommunicate OK [23:00:24]SAM_PROTO_GetShiftState done [23:00:24]FM_GetShiftState done [23:00:24]opened in 1717378033 [23:00:24]opened+sec_in_day 1717464433 [23:00:24]quantity*price = 50009 [23:00:24]sum+1 = 50010 [23:00:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 236 03.06.2024 23:00 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68490 ФПД: 218820594955090 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T230025&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68490&fm=218820594955090&tin=02508201610067®Number=0000000000098096&sum=50000 [23:00:25]StoreToDocumentArchive [23:00:25]shift 324 fd 68490 [23:00:25]save to /storage/0324/doc_00068490 [23:00:25]save last doc name /storage/0324/doc_00068490 to /storage/kkm_last_doc_name [23:00:25]save OK [23:00:25]Clear old archive folders... [23:00:25]ProcessDocumentItem done err = 0, tmpTLVsize=252 [23:00:25]tlvbuf is 00A22780 [23:00:25]SAM_PROTO_ClearQueue [23:00:25]wFMCommunicate request_size=4 [23:00:25]MH_SAM_APDU [23:00:25]CAPDU: 80 09 00 00 [23:00:25]Write to MH i2c: E2 08 00 83 08 80 09 00 00 00 00 00 00 FD [23:00:25]Write i2c OK [23:00:25]MH_I2C_Read... [23:00:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:00:26]Read from MH i2c: E2 [23:00:26]MH_I2C_Read... [23:00:26]Read from MH i2c: E2 03 00 [23:00:26]MH_I2C_Read... [23:00:26]Read from MH i2c: E2 03 00 83 08 00 90 00 FF [23:00:26]RAPDU: 90 00 [23:00:26]wFMCommunicate OK [23:00:26]SAM_PROTO_ClearQueue done [23:00:26]KKMCreateOFDPacket [23:00:26]OFDProtocolAddRootSTLVToBuf [23:00:26]FM_MakeSignedData [23:00:26]FM_MakeSignedData [23:00:26]SAM_PROTO_SignData [23:00:26]wFMCommunicate request_size=4 [23:00:26]MH_SAM_APDU [23:00:26]CAPDU: 80 0D 01 02 [23:00:26]Write to MH i2c: E2 08 00 84 08 80 0D 01 02 00 00 00 00 05 [23:00:26]Write i2c OK [23:00:26]MH_I2C_Read... [23:00:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:00:26]Read from MH i2c: E2 [23:00:26]MH_I2C_Read... [23:00:26]Read from MH i2c: E2 03 00 [23:00:26]MH_I2C_Read... [23:00:26]Read from MH i2c: E2 03 00 84 08 00 90 00 00 [23:00:26]RAPDU: 90 00 [23:00:26]wFMCommunicate OK [23:00:26]wFMCommunicate request_size=255 [23:00:26]MH_SAM_APDU [23:00: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 34 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 09 4B 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 8A 0B 01 00 35 04 06 00 [23:00:26]Write to MH i2c: E2 02 01 85 08 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 34 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 09 4B 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 8A 0B 01 00 35 04 06 00 00 00 74 [23:00:26]Write i2c OK [23:00:26]MH_I2C_Read... [23:00:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:00:26]Read from MH i2c: E2 [23:00:26]MH_I2C_Read... [23:00:26]Read from MH i2c: E2 03 00 [23:00:26]MH_I2C_Read... [23:00:26]Read from MH i2c: E2 03 00 85 08 00 90 00 01 [23:00:26]RAPDU: 90 00 [23:00:26]wFMCommunicate OK [23:00:26]wFMCommunicate request_size=11 [23:00:26]MH_SAM_APDU [23:00:26]CAPDU: 80 0D 02 02 06 C7 04 23 D4 F3 52 [23:00:26]Write to MH i2c: E2 0E 00 86 08 80 0D 02 02 06 00 C7 04 23 D4 F3 52 00 00 1B [23:00:26]Write i2c OK [23:00:26]MH_I2C_Read... [23:00:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:00:26]Read from MH i2c: E2 [23:00:26]MH_I2C_Read... [23:00:26]Read from MH i2c: E2 03 00 [23:00:26]MH_I2C_Read... [23:00:26]Read from MH i2c: E2 03 00 86 08 00 90 00 02 [23:00:26]RAPDU: 90 00 [23:00:26]wFMCommunicate OK [23:00:26]wFMCommunicate request_size=4 [23:00:26]MH_SAM_APDU [23:00:26]CAPDU: 80 0D 03 02 [23:00:26]Write to MH i2c: E2 08 00 87 08 80 0D 03 02 00 00 00 00 0A [23:00:26]Write i2c OK [23:00:26]MH_I2C_Read... [23:00:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:00:26]Read from MH i2c: E2 [23:00:26]MH_I2C_Read... [23:00:26]Read from MH i2c: E2 0B 00 [23:00:26]MH_I2C_Read... [23:00:26]Read from MH i2c: E2 0B 00 87 08 00 0C 33 C5 7A 83 F5 E8 B6 90 00 9F [23:00:26]RAPDU: 0C 33 C5 7A 83 F5 E8 B6 90 00 [23:00:26]wFMCommunicate OK [23:00:26]SAM_PROTO_SignData done [23:00:26]FM_MakeSignedData done [23:00:26]CreateOFDProtocolMessage [23:00:26]wFMCommunicate request_size=4 [23:00:26]MH_SAM_APDU [23:00:26]CAPDU: 80 11 00 00 [23:00:26]Write to MH i2c: E2 08 00 88 08 80 11 00 00 00 00 00 00 0A [23:00:26]Write i2c OK [23:00:26]MH_I2C_Read... [23:00:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:00:26]Read from MH i2c: E2 [23:00:26]MH_I2C_Read... [23:00:26]Read from MH i2c: E2 17 00 [23:00:26]MH_I2C_Read... [23:00:26]Read from MH i2c: E2 17 00 88 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 55 [23:00:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [23:00:26]wFMCommunicate OK [23:00:26]CreateOFDProtocolMessage done [23:00:26]OFDSenderStorePacket 68490 [23:00:26]StoreOFDPacket docnum=68490 [23:00:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 D8 C9 08 01 40 9D 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 34 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 09 4B 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 8A 0B 01 00 35 04 06 00 C7 04 23 D4 F3 52 0C 33 C5 7A 83 F5 E8 B6 [23:00:26]CheckFolder [23:00:26]dirname=/storage/ofd_packets [23:00:26]CheckFolder done [23:00:26]ProducePacketName [23:00:26]name=ofd_packets/00068490 [23:00:26]NVStorageSaveData ofd_packets/00068490 [23:00:26]File name is /storage/ofd_packets/00068490 [23:00:26]Write 302 bytes [23:00:26]NVStorageSaveData done [23:00:26]OFDSenderStorePacket done [23:00:26]KKMCreateOFDPacket done [23:00:26]NVStorageSaveData kkm_last_timestamp [23:00:26]File name is /storage/kkm_last_timestamp [23:00:26]Write 4 bytes [23:00:26]NVStorageSaveData done [23:00:26]ExternCall_PrintAddStr [23:00:26]wPrintStart [23:00:26]Write to MH i2c: 01 00 00 89 08 91 [23:00:26]Write i2c OK [23:00:26]MH_I2C_Read... [23:00:26]Read from MH i2c: 01 [23:00:26]MH_I2C_Read... [23:00:26]Read from MH i2c: 01 07 00 [23:00:26]MH_I2C_Read... [23:00:26]Read from MH i2c: 01 07 00 89 08 00 00 00 00 00 FF 0F A6 [23:00:26]RasterBufferAndPrint [23:00:26]line Счет N : (1)706601 [23:00:26]line ИНН: 02508201610067 [23:00:26]line Контрольно-Кассовый Чек [23:00:26]line ПРОДАЖА [23:00:26]line ТРК (МРК, ГНК) : 51 [23:00:26]line Товар: 2710194210 [23:00:26]line ДТ(л)-К-4 [23:00:26]line 6.860 * 72.90 [23:00:26]line = 500.09 [23:00:26]line НДС 12% НСП 1% [23:00:26]line > о реализуемом товаре [23:00:26]line ОКРУГЛЕНИЕ: -0.09 [23:00:26]line ИТОГО: 500.00 [23:00:26]line Внесено: 500.00 [23:00:26]line СДАЧА: 0.00 [23:00:26]line НСП 1% : 4.43 [23:00:26]line НДС 12% : 53.11 [23:00:26]line Наличными: 500.00 [23:00:26]line Безнал.: 0.00 [23:00:26]line Место: АЗС № 62 "Партнер Нефть" [23:00:26]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [23:00:26]line СНО: Общий режим [23:00:26]line Чек 236 03.06.2024 23:00 [23:00:26]line Смена: 324 ФФД: 1.0 [23:00:26]line ЗНМ: 0300000181 [23:00:26]line РНМ: 0000000000098096 [23:00:26]line Версия ККМ: 001 [23:00:26]line ФМ: 0000000000965400 [23:00:26]line ФД: 68490 [23:00:26]line ФПД: 218820594955090 [23:00:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T230025&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68490&fm=218820594955090&tin=02508201610067®Number=0000000000098096&sum=50000 [23:00:26]written 0, free lines is 4095 [23:00:27]Write to MH i2c: 01 00 00 B4 08 BC [23:00:27]Write i2c OK [23:00:27]MH_I2C_Read... [23:00:27]Read from MH i2c: 01 [23:00:27]MH_I2C_Read... [23:00:27]Read from MH i2c: 01 07 00 [23:00:27]MH_I2C_Read... [23:00:27]Read from MH i2c: 01 07 00 B4 08 00 00 00 00 00 D0 0C 9F [23:00:27]RasterBufferAndPrint [23:00:27]line [23:00:27]line [23:00:27]line [23:00:27]line [23:00:27]line [23:00:27]written 0, free lines is 3284 [23:00:27]MH_Cut [23:00:27]Write to MH i2c: D1 01 00 BB 08 01 95 [23:00:27]Write i2c OK [23:00:27]MH_I2C_Read... [23:00:27]Read from MH i2c: D1 [23:00:27]MH_I2C_Read... [23:00:27]Read from MH i2c: D1 01 00 [23:00:27]MH_I2C_Read... [23:00:27]Read from MH i2c: D1 01 00 BB 08 00 94 [23:00:27]Write to MH i2c: 01 00 00 BC 08 C4 [23:00:27]Write i2c OK [23:00:27]MH_I2C_Read... [23:00:28]*** Cut start [23:00:28]*** Partial cut [23:00:28]*** CUTSNS_PIN = 1 [23:00:28]*** CUTSNS_PIN = 0 [23:00:28]*** Brake cut motor [23:00:28]Read from MH i2c: 01 [23:00:28]MH_I2C_Read... [23:00:28]*** Stop cut motor [23:00:28]*** Cut end [23:00:28]Read from MH i2c: 01 07 00 [23:00:28]MH_I2C_Read... [23:00:28]Read from MH i2c: 01 07 00 BC 08 00 00 00 00 00 FF 0F D9 [23:00:28]process_action close_receipt done [23:00:28]requested_data is exist [23:00:28]produce_requested_data [23:00:28]requested_item fm.sn is exist - process it [23:00:28]wFMCommunicate request_size=4 [23:00:28]MH_SAM_APDU [23:00:28]CAPDU: 80 11 00 00 [23:00:28]Write to MH i2c: E2 08 00 BD 08 80 11 00 00 00 00 00 00 3F [23:00:28]Write i2c OK [23:00:28]MH_I2C_Read... [23:00:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:00:28]Read from MH i2c: E2 [23:00:28]MH_I2C_Read... [23:00:28]Read from MH i2c: E2 17 00 [23:00:28]MH_I2C_Read... [23:00:28]Read from MH i2c: E2 17 00 BD 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 8A [23:00:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [23:00:28]wFMCommunicate OK [23:00:28]requested_item fd.num is exist - process it [23:00:28]SAM_PROTO_GetFieldsCounters [23:00:28]wFMCommunicate request_size=4 [23:00:28]MH_SAM_APDU [23:00:28]CAPDU: 80 13 00 00 [23:00:28]Write to MH i2c: E2 08 00 BE 08 80 13 00 00 00 00 00 00 42 [23:00:28]Write i2c OK [23:00:28]MH_I2C_Read... [23:00:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:00:28]Read from MH i2c: E2 [23:00:28]MH_I2C_Read... [23:00:28]Read from MH i2c: E2 62 00 [23:00:28]MH_I2C_Read... [23:00:28]Read from MH i2c: E2 62 00 BE 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 8A 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 01 [23:00:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 8A 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:00:28]wFMCommunicate OK [23:00:28]SAM_PROTO_GetFieldsCounters done [23:00:28]requested_item shift.num is exist - process it [23:00:28]requested_item shift.opened is exist - process it [23:00:28]req_shift_opened [23:00:28]FM_GetShiftState [23:00:28]SAM_PROTO_GetShiftState [23:00:28]wFMCommunicate request_size=4 [23:00:28]MH_SAM_APDU [23:00:28]CAPDU: 80 13 01 00 [23:00:28]Write to MH i2c: E2 08 00 BF 08 80 13 01 00 00 00 00 00 44 [23:00:28]Write i2c OK [23:00:28]MH_I2C_Read... [23:00:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:00:28]Read from MH i2c: E2 [23:00:28]MH_I2C_Read... [23:00:28]Read from MH i2c: E2 0E 00 [23:00:28]MH_I2C_Read... [23:00:28]Read from MH i2c: E2 0E 00 BF 08 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 1F [23:00:28]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [23:00:28]wFMCommunicate OK [23:00:28]SAM_PROTO_GetShiftState done [23:00:28]FM_GetShiftState done [23:00:28]req_shift_opened done [23:00:28]requested_item shift.open_date is exist - process it [23:00:28]req_shift_open_date [23:00:28]req_shift_open_date done [23:00:28]produce_requested_data done [23:00:28]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68490,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [23:00:28]process_action_free close_receipt [23:00:28]json_value_free [23:00:28]json_value_free done [23:00:28]process_json_proto returns [23:00:28]Send response to host [23:00:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68490,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [23:00:28]free response buf [23:00:28]execute_script done [23:00:28]execute_script returns [23:00:28]free content buf [23:00:28]Sock 9.Close socket [23:00:28]Sock 9.Thread stoped [23:01:22]ConnectInit Can't connect to host [23:01:22]CommunicateWithHost connect error [23:01:22]CommunicateWithHost err = -1 [23:01:22]OFD Sender: Server communicate error [23:01:22]OFD Sender: Processing packet 68487 [packets to send 29, broken 25] [23:01:22]ProducePacketName [23:01:22]name=ofd_packets/00068487 [23:01:22]OFD Sender: To server: pG, [23:01:22]CommunicateWithHost lk.salyk.kg:30040 [23:01:22]ConnectInit lk.salyk.kg [23:01:22]Connected sock=9 [23:01:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 6B D7 07 01 DC 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 BC 4A 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 87 0B 01 00 35 04 06 00 43 80 62 13 44 7F 86 A4 1C EF 36 8F FF D9 [23:01:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 C2 B2 47 00 BD E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 87 0B 01 00 F4 03 04 00 3C F2 5D 66 B6 04 01 00 00 3C A1 B8 0A 13 E5 45 49 [23:01:23]CommunicateWithHost err = 0 [23:01:23]CheckOFDResponse [23:01:23]1017 (14) - 77093643461234 [23:01:23]1041 (16) - 0000000000965400 [23:01:23]1040 (4) - 68487 [23:01:23]1012 (4) - 03.06.2024 16:41 [23:01:23]1206 (1) - 0 [23:01:23]OFD Sender: Remove packet 68487 [23:01:23]ProducePacketName [23:01:23]name=ofd_packets/00068487 [23:01:23]NVStorageDeleteData [23:01:23]OFD Sender: Processing packet 68488 [packets to send 28, broken 25] [23:01:23]ProducePacketName [23:01:23]name=ofd_packets/00068488 [23:01:23]OFD Sender: To server: pG, [23:01:23]CommunicateWithHost lk.salyk.kg:30040 [23:01:23]ConnectInit lk.salyk.kg [23:01:23]Connected sock=9 [23:01:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 31 7C 08 01 E9 E7 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 34 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 C0 4A 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 88 0B 01 00 35 04 06 00 3C CA 69 8E 4C A4 B3 31 D9 93 F5 FB BC 8C [23:01:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 F7 2B 47 00 0C 03 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 88 0B 01 00 F4 03 04 00 3D F2 5D 66 B6 04 01 00 00 8B 36 C2 20 72 59 14 00 [23:01:23]CommunicateWithHost err = 0 [23:01:23]CheckOFDResponse [23:01:23]1017 (14) - 77093643461234 [23:01:23]1041 (16) - 0000000000965400 [23:01:23]1040 (4) - 68488 [23:01:23]1012 (4) - 03.06.2024 16:41 [23:01:23]1206 (1) - 0 [23:01:23]OFD Sender: Remove packet 68488 [23:01:23]ProducePacketName [23:01:23]name=ofd_packets/00068488 [23:01:23]NVStorageDeleteData [23:01:24]OFD Sender: Processing packet 68489 [packets to send 27, broken 25] [23:01:24]ProducePacketName [23:01:24]name=ofd_packets/00068489 [23:01:24]OFD Sender: To server: pG, [23:01:24]CommunicateWithHost lk.salyk.kg:30040 [23:01:24]ConnectInit lk.salyk.kg [23:01:24]Connected sock=9 [23:01:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 E5 17 07 01 D9 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 6A 2C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 21 29 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 28 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 1F 00 00 00 00 07 04 06 00 E0 28 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 F8 4A 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 89 0B 01 00 35 04 06 00 F5 9E 43 DC 00 55 3C 91 30 BB E3 F5 98 07 [23:01:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 3A 58 47 00 8D A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 89 0B 01 00 F4 03 04 00 3E F2 5D 66 B6 04 01 00 00 05 9D CF 26 E5 05 D2 C6 [23:01:24]CommunicateWithHost err = 0 [23:01:24]CheckOFDResponse [23:01:24]1017 (14) - 77093643461234 [23:01:24]1041 (16) - 0000000000965400 [23:01:24]1040 (4) - 68489 [23:01:24]1012 (4) - 03.06.2024 16:41 [23:01:24]1206 (1) - 0 [23:01:24]OFD Sender: Remove packet 68489 [23:01:24]ProducePacketName [23:01:24]name=ofd_packets/00068489 [23:01:24]NVStorageDeleteData [23:01:25]OFD Sender: Processing packet 68490 [packets to send 26, broken 25] [23:01:25]ProducePacketName [23:01:25]name=ofd_packets/00068490 [23:01:25]OFD Sender: To server: pG, [23:01:25]CommunicateWithHost lk.salyk.kg:30040 [23:01:25]ConnectInit lk.salyk.kg [23:01:25]Connected sock=9 [23:01:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 D8 C9 08 01 40 9D 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 34 FF 03 08 00 03 CC 1A 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 59 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 09 4B 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 8A 0B 01 00 35 04 06 00 C7 04 23 D4 F3 52 0C 33 C5 7A 83 F5 E8 B6 [23:01:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 A0 70 47 00 B5 D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 8A 0B 01 00 F4 03 04 00 3E F2 5D 66 B6 04 01 00 00 D4 62 E0 C6 19 3B 31 9D [23:01:25]CommunicateWithHost err = 0 [23:01:25]CheckOFDResponse [23:01:25]1017 (14) - 77093643461234 [23:01:25]1041 (16) - 0000000000965400 [23:01:25]1040 (4) - 68490 [23:01:25]1012 (4) - 03.06.2024 16:41 [23:01:25]1206 (1) - 0 [23:01:25]OFD Sender: Remove packet 68490 [23:01:25]ProducePacketName [23:01:25]name=ofd_packets/00068490 [23:01:25]NVStorageDeleteData [23:01:25]OFD Sender: No OFD packet to send [23:01:30]OFD Sender: No OFD packet to send [23:01:35]OFD Sender: No OFD packet to send [23:01:40]accept exits with 7 [23:01:40]New connection [23:01:40]New thread 3067084132 created [23:01:40]Thread 3067227492 joined [23:01:40]Waiting for new connection... [23:01:40] Sock 7.Parse request [23:01:40]Sock 7.Check first char [23:01:40]Sock 7.First char is OK [23:01:40]request: POST /json_proto HTTP/1.0 [23:01:40]Method: POST [23:01:40]URL: /json_proto [23:01:40]Method is POST - this is cgi request [23:01:40]url: /json_proto [23:01:40]query_string will be loaded in cgi processing [23:01:40]execute_cgi json_proto POST (null) [23:01:40]execute_cgi path=json_proto method=POST [23:01:40]POST find Content-Length [23:01:40]Host: 172.17.36.132:8080 [23:01:40]Content-Length: 682 [23:01:40]Content-Type: application/json [23:01:40] [23:01:40]POST finish read [23:01:40]Found Content-Length = 682 [23:01:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706604", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:01:40]execute_script... [23:01:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706604", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:01:40]POST & json_proto [23:01:40]process_json_proto [23:01:40]json parsed OK: [23:01:40]protocol is kg_v1.0 [23:01:40]action value=close_receipt [23:01:40]process_action close_receipt [23:01:40]cmd_close_receipt [23:01:40]MH_GetDate [23:01:40]Write to MH i2c: F0 00 00 C0 08 B7 [23:01:40]Write i2c OK [23:01:40]MH_I2C_Read... [23:01:40]Read from MH i2c: F0 [23:01:40]MH_I2C_Read... [23:01:40]Read from MH i2c: F0 09 00 [23:01:40]MH_I2C_Read... [23:01:40]Read from MH i2c: F0 09 00 C0 08 00 55 4B 5E 66 B2 22 B0 64 0C [23:01:40]GetLastDocTimeStamp 1717455625 [23:01:40]current date 1717455701 [23:01:40]FM_GetShiftState [23:01:40]SAM_PROTO_GetShiftState [23:01:40]wFMCommunicate request_size=4 [23:01:40]MH_SAM_APDU [23:01:40]CAPDU: 80 13 01 00 [23:01:40]Write to MH i2c: E2 08 00 C1 08 80 13 01 00 00 00 00 00 46 [23:01:40]Write i2c OK [23:01:40]MH_I2C_Read... [23:01:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:01:40]Read from MH i2c: E2 [23:01:40]MH_I2C_Read... [23:01:40]Read from MH i2c: E2 0E 00 [23:01:40]MH_I2C_Read... [23:01:40]Read from MH i2c: E2 0E 00 C1 08 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 21 [23:01:40]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [23:01:40]wFMCommunicate OK [23:01:40]SAM_PROTO_GetShiftState done [23:01:40]FM_GetShiftState done [23:01:40]opened in 1717378033 [23:01:40]opened+sec_in_day 1717464433 [23:01:40]quantity*price = 100015 [23:01:40]sum+1 = 100017 [23:01:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 237 03.06.2024 23:01 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68491 ФПД: 59041419442848 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T230141&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68491&fm=59041419442848&tin=02508201610067®Number=0000000000098096&sum=100000 [23:01:41]StoreToDocumentArchive [23:01:41]shift 324 fd 68491 [23:01:41]save to /storage/0324/doc_00068491 [23:01:41]save last doc name /storage/0324/doc_00068491 to /storage/kkm_last_doc_name [23:01:41]save OK [23:01:41]Clear old archive folders... [23:01:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:01:41]tlvbuf is 009C7400 [23:01:41]SAM_PROTO_ClearQueue [23:01:41]wFMCommunicate request_size=4 [23:01:41]MH_SAM_APDU [23:01:41]CAPDU: 80 09 00 00 [23:01:41]Write to MH i2c: E2 08 00 CE 08 80 09 00 00 00 00 00 00 48 [23:01:41]Write i2c OK [23:01:41]MH_I2C_Read... [23:01:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:01:41]Read from MH i2c: E2 [23:01:41]MH_I2C_Read... [23:01:41]Read from MH i2c: E2 03 00 [23:01:41]MH_I2C_Read... [23:01:41]Read from MH i2c: E2 03 00 CE 08 00 90 00 4A [23:01:41]RAPDU: 90 00 [23:01:41]wFMCommunicate OK [23:01:41]SAM_PROTO_ClearQueue done [23:01:41]KKMCreateOFDPacket [23:01:41]OFDProtocolAddRootSTLVToBuf [23:01:41]FM_MakeSignedData [23:01:41]FM_MakeSignedData [23:01:41]SAM_PROTO_SignData [23:01:41]wFMCommunicate request_size=4 [23:01:41]MH_SAM_APDU [23:01:41]CAPDU: 80 0D 01 02 [23:01:41]Write to MH i2c: E2 08 00 CF 08 80 0D 01 02 00 00 00 00 50 [23:01:41]Write i2c OK [23:01:41]MH_I2C_Read... [23:01:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:01:41]Read from MH i2c: E2 [23:01:41]MH_I2C_Read... [23:01:41]Read from MH i2c: E2 03 00 [23:01:41]MH_I2C_Read... [23:01:41]Read from MH i2c: E2 03 00 CF 08 00 90 00 4B [23:01:41]RAPDU: 90 00 [23:01:41]wFMCommunicate OK [23:01:41]wFMCommunicate request_size=255 [23:01:41]MH_SAM_APDU [23:01: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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 55 4B 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 8B 0B 01 00 35 04 06 00 35 [23:01:41]Write to MH i2c: E2 02 01 D0 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 55 4B 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 8B 0B 01 00 35 04 06 00 35 00 00 39 [23:01:41]Write i2c OK [23:01:41]MH_I2C_Read... [23:01:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:01:41]Read from MH i2c: E2 [23:01:41]MH_I2C_Read... [23:01:41]Read from MH i2c: E2 03 00 [23:01:41]MH_I2C_Read... [23:01:41]Read from MH i2c: E2 03 00 D0 08 00 90 00 4C [23:01:41]RAPDU: 90 00 [23:01:41]wFMCommunicate OK [23:01:41]wFMCommunicate request_size=10 [23:01:41]MH_SAM_APDU [23:01:41]CAPDU: 80 0D 02 02 05 B2 A6 D5 3A A0 [23:01:41]Write to MH i2c: E2 0D 00 D1 08 80 0D 02 02 05 00 B2 A6 D5 3A A0 00 00 64 [23:01:41]Write i2c OK [23:01:41]MH_I2C_Read... [23:01:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:01:41]Read from MH i2c: E2 [23:01:41]MH_I2C_Read... [23:01:41]Read from MH i2c: E2 03 00 [23:01:41]MH_I2C_Read... [23:01:41]Read from MH i2c: E2 03 00 D1 08 00 90 00 4D [23:01:41]RAPDU: 90 00 [23:01:41]wFMCommunicate OK [23:01:41]wFMCommunicate request_size=4 [23:01:41]MH_SAM_APDU [23:01:41]CAPDU: 80 0D 03 02 [23:01:41]Write to MH i2c: E2 08 00 D2 08 80 0D 03 02 00 00 00 00 55 [23:01:41]Write i2c OK [23:01:41]MH_I2C_Read... [23:01:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:01:41]Read from MH i2c: E2 [23:01:41]MH_I2C_Read... [23:01:41]Read from MH i2c: E2 0B 00 [23:01:41]MH_I2C_Read... [23:01:41]Read from MH i2c: E2 0B 00 D2 08 00 99 D1 DD 51 E4 DF F5 0D 90 00 B3 [23:01:41]RAPDU: 99 D1 DD 51 E4 DF F5 0D 90 00 [23:01:41]wFMCommunicate OK [23:01:41]SAM_PROTO_SignData done [23:01:41]FM_MakeSignedData done [23:01:41]CreateOFDProtocolMessage [23:01:41]wFMCommunicate request_size=4 [23:01:41]MH_SAM_APDU [23:01:41]CAPDU: 80 11 00 00 [23:01:41]Write to MH i2c: E2 08 00 D3 08 80 11 00 00 00 00 00 00 55 [23:01:41]Write i2c OK [23:01:41]MH_I2C_Read... [23:01:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:01:41]Read from MH i2c: E2 [23:01:41]MH_I2C_Read... [23:01:41]Read from MH i2c: E2 17 00 [23:01:41]MH_I2C_Read... [23:01:41]Read from MH i2c: E2 17 00 D3 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 A0 [23:01:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [23:01:41]wFMCommunicate OK [23:01:41]CreateOFDProtocolMessage done [23:01:41]OFDSenderStorePacket 68491 [23:01:41]StoreOFDPacket docnum=68491 [23:01:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 A8 95 07 01 88 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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 55 4B 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 8B 0B 01 00 35 04 06 00 35 B2 A6 D5 3A A0 99 D1 DD 51 E4 DF F5 0D [23:01:41]CheckFolder [23:01:41]dirname=/storage/ofd_packets [23:01:41]CheckFolder done [23:01:41]ProducePacketName [23:01:41]name=ofd_packets/00068491 [23:01:41]NVStorageSaveData ofd_packets/00068491 [23:01:41]File name is /storage/ofd_packets/00068491 [23:01:41]Write 301 bytes [23:01:41]NVStorageSaveData done [23:01:41]OFDSenderStorePacket done [23:01:41]KKMCreateOFDPacket done [23:01:41]NVStorageSaveData kkm_last_timestamp [23:01:41]File name is /storage/kkm_last_timestamp [23:01:41]Write 4 bytes [23:01:41]NVStorageSaveData done [23:01:41]ExternCall_PrintAddStr [23:01:41]wPrintStart [23:01:41]Write to MH i2c: 01 00 00 D4 08 DC [23:01:41]Write i2c OK [23:01:41]MH_I2C_Read... [23:01:41]Read from MH i2c: 01 [23:01:41]MH_I2C_Read... [23:01:41]Read from MH i2c: 01 07 00 [23:01:41]MH_I2C_Read... [23:01:41]Read from MH i2c: 01 07 00 D4 08 00 00 00 00 00 FF 0F F1 [23:01:41]RasterBufferAndPrint [23:01:41]line Счет N : (1)706604 [23:01:41]line ИНН: 02508201610067 [23:01:41]line Контрольно-Кассовый Чек [23:01:41]line ПРОДАЖА [23:01:41]line ТРК (МРК, ГНК) : 13 [23:01:41]line Товар: 2710124130 [23:01:41]line Аи-92-К-4 [23:01:41]line 14.950 * 66.90 [23:01:41]line = 1000.16 [23:01:41]line НДС 12% НСП 1% [23:01:41]line > о реализуемом товаре [23:01:41]line ОКРУГЛЕНИЕ: -0.16 [23:01:41]line ИТОГО: 1000.00 [23:01:41]line Внесено: 1000.00 [23:01:41]line СДАЧА: 0.00 [23:01:41]line НСП 1% : 8.85 [23:01:41]line НДС 12% : 106.21 [23:01:41]line Наличными: 1000.00 [23:01:41]line Безнал.: 0.00 [23:01:41]line Место: АЗС № 62 "Партнер Нефть" [23:01:41]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [23:01:41]line СНО: Общий режим [23:01:41]line Чек 237 03.06.2024 23:01 [23:01:41]line Смена: 324 ФФД: 1.0 [23:01:41]line ЗНМ: 0300000181 [23:01:41]line РНМ: 0000000000098096 [23:01:41]line Версия ККМ: 001 [23:01:41]line ФМ: 0000000000965400 [23:01:41]line ФД: 68491 [23:01:41]line ФПД: 59041419442848 [23:01:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T230141&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68491&fm=59041419442848&tin=02508201610067®Number=0000000000098096&sum=100000 [23:01:41]written 0, free lines is 4095 [23:01:41]OFD Sender: Processing packet 68491 [packets to send 26, broken 25] [23:01:41]ProducePacketName [23:01:41]name=ofd_packets/00068491 [23:01:41]OFD Sender: To server: pG, [23:01:41]CommunicateWithHost lk.salyk.kg:30040 [23:01:41]ConnectInit lk.salyk.kg [23:01:42]Connected sock=10 [23:01:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 A8 95 07 01 88 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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 55 4B 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 8B 0B 01 00 35 04 06 00 35 B2 A6 D5 3A A0 99 D1 DD 51 E4 DF F5 0D [23:01:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 08 30 47 00 BB 03 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 8B 0B 01 00 F4 03 04 00 4F F2 5D 66 B6 04 01 00 00 47 30 83 89 6C 24 FA 93 [23:01:42]CommunicateWithHost err = 0 [23:01:42]CheckOFDResponse [23:01:42]1017 (14) - 77093643461234 [23:01:42]1041 (16) - 0000000000965400 [23:01:42]1040 (4) - 68491 [23:01:42]1012 (4) - 03.06.2024 16:41 [23:01:42]1206 (1) - 0 [23:01:42]OFD Sender: Remove packet 68491 [23:01:42]ProducePacketName [23:01:42]name=ofd_packets/00068491 [23:01:42]NVStorageDeleteData [23:01:42]Write to MH i2c: 01 00 00 FF 08 07 [23:01:42]Write i2c OK [23:01:42]MH_I2C_Read... [23:01:42]Read from MH i2c: 01 [23:01:42]MH_I2C_Read... [23:01:42]Read from MH i2c: 01 07 00 [23:01:42]MH_I2C_Read... [23:01:42]Read from MH i2c: 01 07 00 FF 08 00 00 00 00 00 E4 0C FE [23:01:42]RasterBufferAndPrint [23:01:42]line [23:01:42]line [23:01:42]line [23:01:42]line [23:01:42]line [23:01:42]written 0, free lines is 3306 [23:01:42]MH_Cut [23:01:42]Write to MH i2c: D1 01 00 06 09 01 E1 [23:01:42]Write i2c OK [23:01:42]MH_I2C_Read... [23:01:42]Read from MH i2c: D1 [23:01:42]MH_I2C_Read... [23:01:42]Read from MH i2c: D1 01 00 [23:01:42]MH_I2C_Read... [23:01:42]Read from MH i2c: D1 01 00 06 09 00 E0 [23:01:42]Write to MH i2c: 01 00 00 07 09 10 [23:01:42]Write i2c OK [23:01:42]MH_I2C_Read... [23:01:42]OFD Sender: No OFD packet to send [23:01:43]*** Cut start [23:01:43]*** Partial cut [23:01:43]*** CUTSNS_PIN = 1 [23:01:43]*** CUTSNS_PIN = 0 [23:01:43]*** Brake cut motor [23:01:43]Read from MH i2c: 01 [23:01:43]MH_I2C_Read... [23:01:43]*** Stop cut motor [23:01:43]*** Cut end [23:01:43]Read from MH i2c: 01 07 00 [23:01:43]MH_I2C_Read... [23:01:43]Read from MH i2c: 01 07 00 07 09 00 00 00 00 00 FF 0F 25 [23:01:43]process_action close_receipt done [23:01:43]requested_data is exist [23:01:43]produce_requested_data [23:01:43]requested_item fm.sn is exist - process it [23:01:43]wFMCommunicate request_size=4 [23:01:43]MH_SAM_APDU [23:01:43]CAPDU: 80 11 00 00 [23:01:43]Write to MH i2c: E2 08 00 08 09 80 11 00 00 00 00 00 00 8B [23:01:43]Write i2c OK [23:01:43]MH_I2C_Read... [23:01:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:01:43]Read from MH i2c: E2 [23:01:43]MH_I2C_Read... [23:01:43]Read from MH i2c: E2 17 00 [23:01:43]MH_I2C_Read... [23:01:43]Read from MH i2c: E2 17 00 08 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 D6 [23:01:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [23:01:43]wFMCommunicate OK [23:01:43]requested_item fd.num is exist - process it [23:01:43]SAM_PROTO_GetFieldsCounters [23:01:43]wFMCommunicate request_size=4 [23:01:43]MH_SAM_APDU [23:01:43]CAPDU: 80 13 00 00 [23:01:43]Write to MH i2c: E2 08 00 09 09 80 13 00 00 00 00 00 00 8E [23:01:43]Write i2c OK [23:01:43]MH_I2C_Read... [23:01:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:01:44]Read from MH i2c: E2 [23:01:44]MH_I2C_Read... [23:01:44]Read from MH i2c: E2 62 00 [23:01:44]MH_I2C_Read... [23:01:44]Read from MH i2c: E2 62 00 09 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 8B 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 51 [23:01:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 8B 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:01:44]wFMCommunicate OK [23:01:44]SAM_PROTO_GetFieldsCounters done [23:01:44]requested_item shift.num is exist - process it [23:01:44]requested_item shift.opened is exist - process it [23:01:44]req_shift_opened [23:01:44]FM_GetShiftState [23:01:44]SAM_PROTO_GetShiftState [23:01:44]wFMCommunicate request_size=4 [23:01:44]MH_SAM_APDU [23:01:44]CAPDU: 80 13 01 00 [23:01:44]Write to MH i2c: E2 08 00 0A 09 80 13 01 00 00 00 00 00 90 [23:01:44]Write i2c OK [23:01:44]MH_I2C_Read... [23:01:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:01:44]Read from MH i2c: E2 [23:01:44]MH_I2C_Read... [23:01:44]Read from MH i2c: E2 0E 00 [23:01:44]MH_I2C_Read... [23:01:44]Read from MH i2c: E2 0E 00 0A 09 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 6B [23:01:44]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [23:01:44]wFMCommunicate OK [23:01:44]SAM_PROTO_GetShiftState done [23:01:44]FM_GetShiftState done [23:01:44]req_shift_opened done [23:01:44]requested_item shift.open_date is exist - process it [23:01:44]req_shift_open_date [23:01:44]req_shift_open_date done [23:01:44]produce_requested_data done [23:01:44]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68491,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [23:01:44]process_action_free close_receipt [23:01:44]json_value_free [23:01:44]json_value_free done [23:01:44]process_json_proto returns [23:01:44]Send response to host [23:01:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68491,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [23:01:44]free response buf [23:01:44]execute_script done [23:01:44]execute_script returns [23:01:44]free content buf [23:01:44]Sock 7.Close socket [23:01:44]Sock 7.Thread stoped [23:01:47]OFD Sender: No OFD packet to send [23:01:52]OFD Sender: No OFD packet to send [23:01:57]OFD Sender: No OFD packet to send [23:02:02]OFD Sender: No OFD packet to send [23:02:07]OFD Sender: No OFD packet to send [23:02:12]OFD Sender: No OFD packet to send [23:02:15]accept exits with 9 [23:02:15]New connection [23:02:15]New thread 3067227492 created [23:02:15]Thread 3067084132 joined [23:02:15]Waiting for new connection... [23:02:15] Sock 9.Parse request [23:02:15]Sock 9.Check first char [23:02:15]Sock 9.First char is OK [23:02:15]request: POST /json_proto HTTP/1.0 [23:02:15]Method: POST [23:02:15]URL: /json_proto [23:02:15]Method is POST - this is cgi request [23:02:15]url: /json_proto [23:02:15]query_string will be loaded in cgi processing [23:02:15]execute_cgi json_proto POST (null) [23:02:15]execute_cgi path=json_proto method=POST [23:02:15]POST find Content-Length [23:02:15]Host: 172.17.36.132:8080 [23:02:15]Content-Length: 840 [23:02:15]Content-Type: application/json [23:02:15] [23:02:15]POST finish read [23:02:15]Found Content-Length = 840 [23:02:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706605", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:02:15]execute_script... [23:02: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)706605", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:02:15]POST & json_proto [23:02:15]process_json_proto [23:02:15]json parsed OK: [23:02:15]protocol is kg_v1.0 [23:02:15]action value=close_receipt [23:02:15]process_action close_receipt [23:02:15]cmd_close_receipt [23:02:15]MH_GetDate [23:02:15]Write to MH i2c: F0 00 00 0B 09 03 [23:02:15]Write i2c OK [23:02:15]MH_I2C_Read... [23:02:15]Read from MH i2c: F0 [23:02:15]MH_I2C_Read... [23:02:15]Read from MH i2c: F0 09 00 [23:02:15]MH_I2C_Read... [23:02:15]Read from MH i2c: F0 09 00 0B 09 00 78 4B 5E 66 B2 22 B0 64 7B [23:02:15]GetLastDocTimeStamp 1717455701 [23:02:15]current date 1717455736 [23:02:15]FM_GetShiftState [23:02:15]SAM_PROTO_GetShiftState [23:02:15]wFMCommunicate request_size=4 [23:02:15]MH_SAM_APDU [23:02:15]CAPDU: 80 13 01 00 [23:02:15]Write to MH i2c: E2 08 00 0C 09 80 13 01 00 00 00 00 00 92 [23:02:15]Write i2c OK [23:02:15]MH_I2C_Read... [23:02:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:02:15]Read from MH i2c: E2 [23:02:15]MH_I2C_Read... [23:02:15]Read from MH i2c: E2 0E 00 [23:02:15]MH_I2C_Read... [23:02:15]Read from MH i2c: E2 0E 00 0C 09 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 6D [23:02:15]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [23:02:15]wFMCommunicate OK [23:02:15]SAM_PROTO_GetShiftState done [23:02:15]FM_GetShiftState done [23:02:15]opened in 1717378033 [23:02:15]opened+sec_in_day 1717464433 [23:02:15]quantity*price = 30038 [23:02:15]sum+1 = 30039 [23:02:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.38 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.38 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 238 03.06.2024 23:02 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68492 ФПД: 1788232704052 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T230216&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68492&fm=1788232704052&tin=02508201610067®Number=0000000000098096&sum=30038 [23:02:16]StoreToDocumentArchive [23:02:16]shift 324 fd 68492 [23:02:16]save to /storage/0324/doc_00068492 [23:02:16]save last doc name /storage/0324/doc_00068492 to /storage/kkm_last_doc_name [23:02:16]save OK [23:02:16]Clear old archive folders... [23:02:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:02:16]tlvbuf is 00A67F60 [23:02:16]SAM_PROTO_ClearQueue [23:02:16]wFMCommunicate request_size=4 [23:02:16]MH_SAM_APDU [23:02:16]CAPDU: 80 09 00 00 [23:02:16]Write to MH i2c: E2 08 00 19 09 80 09 00 00 00 00 00 00 94 [23:02:16]Write i2c OK [23:02:16]MH_I2C_Read... [23:02:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:02:16]Read from MH i2c: E2 [23:02:16]MH_I2C_Read... [23:02:16]Read from MH i2c: E2 03 00 [23:02:16]MH_I2C_Read... [23:02:16]Read from MH i2c: E2 03 00 19 09 00 90 00 96 [23:02:16]RAPDU: 90 00 [23:02:16]wFMCommunicate OK [23:02:16]SAM_PROTO_ClearQueue done [23:02:16]KKMCreateOFDPacket [23:02:16]OFDProtocolAddRootSTLVToBuf [23:02:16]FM_MakeSignedData [23:02:16]FM_MakeSignedData [23:02:16]SAM_PROTO_SignData [23:02:16]wFMCommunicate request_size=4 [23:02:16]MH_SAM_APDU [23:02:16]CAPDU: 80 0D 01 02 [23:02:16]Write to MH i2c: E2 08 00 1A 09 80 0D 01 02 00 00 00 00 9C [23:02:16]Write i2c OK [23:02:16]MH_I2C_Read... [23:02:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:02:16]Read from MH i2c: E2 [23:02:16]MH_I2C_Read... [23:02:16]Read from MH i2c: E2 03 00 [23:02:16]MH_I2C_Read... [23:02:16]Read from MH i2c: E2 03 00 1A 09 00 90 00 97 [23:02:16]RAPDU: 90 00 [23:02:16]wFMCommunicate OK [23:02:16]wFMCommunicate request_size=255 [23:02:16]MH_SAM_APDU [23:02:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 78 4B 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 8C 0B 01 00 35 04 06 00 01 [23:02:16]Write to MH i2c: E2 02 01 1B 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 78 4B 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 8C 0B 01 00 35 04 06 00 01 00 00 BC [23:02:16]Write i2c OK [23:02:16]MH_I2C_Read... [23:02:16]Read from MH i2c: E2 [23:02:16]MH_I2C_Read... [23:02:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:02:16]Read from MH i2c: E2 03 00 [23:02:16]MH_I2C_Read... [23:02:16]Read from MH i2c: E2 03 00 1B 09 00 90 00 98 [23:02:16]RAPDU: 90 00 [23:02:16]wFMCommunicate OK [23:02:16]wFMCommunicate request_size=10 [23:02:16]MH_SAM_APDU [23:02:16]CAPDU: 80 0D 02 02 05 A0 5A F9 A0 34 [23:02:16]Write to MH i2c: E2 0D 00 1C 09 80 0D 02 02 05 00 A0 5A F9 A0 34 00 00 70 [23:02:16]Write i2c OK [23:02:16]MH_I2C_Read... [23:02:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:02:16]Read from MH i2c: E2 [23:02:16]MH_I2C_Read... [23:02:16]Read from MH i2c: E2 03 00 [23:02:16]MH_I2C_Read... [23:02:16]Read from MH i2c: E2 03 00 1C 09 00 90 00 99 [23:02:16]RAPDU: 90 00 [23:02:16]wFMCommunicate OK [23:02:16]wFMCommunicate request_size=4 [23:02:16]MH_SAM_APDU [23:02:16]CAPDU: 80 0D 03 02 [23:02:16]Write to MH i2c: E2 08 00 1D 09 80 0D 03 02 00 00 00 00 A1 [23:02:16]Write i2c OK [23:02:16]MH_I2C_Read... [23:02:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:02:16]Read from MH i2c: E2 [23:02:16]MH_I2C_Read... [23:02:16]Read from MH i2c: E2 0B 00 [23:02:16]MH_I2C_Read... [23:02:16]Read from MH i2c: E2 0B 00 1D 09 00 62 22 A5 C7 3A 86 6D 8D 90 00 4C [23:02:16]RAPDU: 62 22 A5 C7 3A 86 6D 8D 90 00 [23:02:16]wFMCommunicate OK [23:02:16]SAM_PROTO_SignData done [23:02:16]FM_MakeSignedData done [23:02:16]CreateOFDProtocolMessage [23:02:16]wFMCommunicate request_size=4 [23:02:16]MH_SAM_APDU [23:02:16]CAPDU: 80 11 00 00 [23:02:16]Write to MH i2c: E2 08 00 1E 09 80 11 00 00 00 00 00 00 A1 [23:02:16]Write i2c OK [23:02:16]MH_I2C_Read... [23:02:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:02:16]Read from MH i2c: E2 [23:02:16]MH_I2C_Read... [23:02:16]Read from MH i2c: E2 17 00 [23:02:16]MH_I2C_Read... [23:02:16]Read from MH i2c: E2 17 00 1E 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 EC [23:02:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [23:02:16]wFMCommunicate OK [23:02:16]CreateOFDProtocolMessage done [23:02:16]OFDSenderStorePacket 68492 [23:02:16]StoreOFDPacket docnum=68492 [23:02:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 AA FE 07 01 E9 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 78 4B 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 8C 0B 01 00 35 04 06 00 01 A0 5A F9 A0 34 62 22 A5 C7 3A 86 6D 8D [23:02:16]CheckFolder [23:02:16]dirname=/storage/ofd_packets [23:02:16]CheckFolder done [23:02:16]ProducePacketName [23:02:16]name=ofd_packets/00068492 [23:02:16]NVStorageSaveData ofd_packets/00068492 [23:02:16]File name is /storage/ofd_packets/00068492 [23:02:16]Write 301 bytes [23:02:16]NVStorageSaveData done [23:02:16]OFDSenderStorePacket done [23:02:16]KKMCreateOFDPacket done [23:02:16]NVStorageSaveData kkm_last_timestamp [23:02:16]File name is /storage/kkm_last_timestamp [23:02:16]Write 4 bytes [23:02:16]NVStorageSaveData done [23:02:16]ExternCall_PrintAddStr [23:02:16]wPrintStart [23:02:16]Write to MH i2c: 01 00 00 1F 09 28 [23:02:16]Write i2c OK [23:02:16]MH_I2C_Read... [23:02:16]Read from MH i2c: 01 [23:02:16]MH_I2C_Read... [23:02:16]Read from MH i2c: 01 07 00 [23:02:16]MH_I2C_Read... [23:02:16]Read from MH i2c: 01 07 00 1F 09 00 00 00 00 00 FF 0F 3D [23:02:16]RasterBufferAndPrint [23:02:16]line Счет N : (1)706605 [23:02:16]line ИНН: 02508201610067 [23:02:16]line Контрольно-Кассовый Чек [23:02:16]line ПРОДАЖА [23:02:16]line ТРК (МРК, ГНК) : 32 [23:02:16]line Товар: 2710124130 [23:02:16]line Аи-92-К-4 [23:02:16]line 4.490 * 66.90 [23:02:16]line = 300.38 [23:02:16]line НДС 12% НСП 1% [23:02:16]line > о реализуемом товаре [23:02:16]line ИТОГО: 300.38 [23:02:16]line НСП 1% : 2.66 [23:02:16]line НДС 12% : 31.90 [23:02:16]line Наличными: 0.00 [23:02:16]line Безнал.: 300.38 [23:02:16]line Место: АЗС № 62 "Партнер Нефть" [23:02:16]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [23:02:16]line СНО: Общий режим [23:02:16]line Чек 238 03.06.2024 23:02 [23:02:16]line Смена: 324 ФФД: 1.0 [23:02:16]line ЗНМ: 0300000181 [23:02:16]line РНМ: 0000000000098096 [23:02:16]line Версия ККМ: 001 [23:02:16]line Платежная система: АКБ Кыргызстан [23:02:16]line ФМ: 0000000000965400 [23:02:16]line ФД: 68492 [23:02:16]line ФПД: 1788232704052 [23:02:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T230216&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68492&fm=1788232704052&tin=02508201610067®Number=0000000000098096&sum=30038 [23:02:17]OFD Sender: Processing packet 68492 [packets to send 26, broken 25] [23:02:17]ProducePacketName [23:02:17]name=ofd_packets/00068492 [23:02:17]OFD Sender: To server: pG, [23:02:17]CommunicateWithHost lk.salyk.kg:30040 [23:02:17]ConnectInit lk.salyk.kg [23:02:17]written 0, free lines is 4095 [23:02:17]Connected sock=10 [23:02:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 AA FE 07 01 E9 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 78 4B 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 8C 0B 01 00 35 04 06 00 01 A0 5A F9 A0 34 62 22 A5 C7 3A 86 6D 8D [23:02:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 DA EE 47 00 D8 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 8C 0B 01 00 F4 03 04 00 72 F2 5D 66 B6 04 01 00 00 ED 84 50 B9 27 C6 22 A6 [23:02:17]CommunicateWithHost err = 0 [23:02:17]CheckOFDResponse [23:02:17]1017 (14) - 77093643461234 [23:02:17]1041 (16) - 0000000000965400 [23:02:17]1040 (4) - 68492 [23:02:17]1012 (4) - 03.06.2024 16:42 [23:02:17]1206 (1) - 0 [23:02:17]OFD Sender: Remove packet 68492 [23:02:17]ProducePacketName [23:02:17]name=ofd_packets/00068492 [23:02:17]NVStorageDeleteData [23:02:17]Write to MH i2c: 01 00 00 49 09 52 [23:02:17]Write i2c OK [23:02:17]MH_I2C_Read... [23:02:17]Read from MH i2c: 01 [23:02:17]MH_I2C_Read... [23:02:17]Read from MH i2c: 01 07 00 [23:02:17]MH_I2C_Read... [23:02:17]Read from MH i2c: 01 07 00 49 09 00 00 00 00 00 ED 0C 52 [23:02:17]RasterBufferAndPrint [23:02:17]line [23:02:17]line [23:02:17]line [23:02:17]line [23:02:17]line [23:02:17]written 0, free lines is 3315 [23:02:17]MH_Cut [23:02:17]Write to MH i2c: D1 01 00 50 09 01 2B [23:02:17]Write i2c OK [23:02:17]MH_I2C_Read... [23:02:17]Read from MH i2c: D1 [23:02:17]MH_I2C_Read... [23:02:17]Read from MH i2c: D1 01 00 [23:02:17]MH_I2C_Read... [23:02:17]Read from MH i2c: D1 01 00 50 09 00 2A [23:02:17]Write to MH i2c: 01 00 00 51 09 5A [23:02:17]Write i2c OK [23:02:17]MH_I2C_Read... [23:02:17]OFD Sender: No OFD packet to send [23:02:18]*** Cut start [23:02:18]*** Partial cut [23:02:18]*** CUTSNS_PIN = 1 [23:02:18]*** CUTSNS_PIN = 0 [23:02:18]*** Brake cut motor [23:02:18]Read from MH i2c: 01 [23:02:18]MH_I2C_Read... [23:02:18]*** Stop cut motor [23:02:18]*** Cut end [23:02:18]Read from MH i2c: 01 07 00 [23:02:18]MH_I2C_Read... [23:02:18]Read from MH i2c: 01 07 00 51 09 00 00 00 00 00 FF 0F 6F [23:02:18]process_action close_receipt done [23:02:18]requested_data is exist [23:02:18]produce_requested_data [23:02:18]requested_item fm.sn is exist - process it [23:02:18]wFMCommunicate request_size=4 [23:02:18]MH_SAM_APDU [23:02:18]CAPDU: 80 11 00 00 [23:02:18]Write to MH i2c: E2 08 00 52 09 80 11 00 00 00 00 00 00 D5 [23:02:18]Write i2c OK [23:02:18]MH_I2C_Read... [23:02:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:02:19]Read from MH i2c: E2 [23:02:19]MH_I2C_Read... [23:02:19]Read from MH i2c: E2 17 00 [23:02:19]MH_I2C_Read... [23:02:19]Read from MH i2c: E2 17 00 52 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 20 [23:02:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [23:02:19]wFMCommunicate OK [23:02:19]requested_item fd.num is exist - process it [23:02:19]SAM_PROTO_GetFieldsCounters [23:02:19]wFMCommunicate request_size=4 [23:02:19]MH_SAM_APDU [23:02:19]CAPDU: 80 13 00 00 [23:02:19]Write to MH i2c: E2 08 00 53 09 80 13 00 00 00 00 00 00 D8 [23:02:19]Write i2c OK [23:02:19]MH_I2C_Read... [23:02:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:02:19]Read from MH i2c: E2 [23:02:19]MH_I2C_Read... [23:02:19]Read from MH i2c: E2 62 00 [23:02:19]MH_I2C_Read... [23:02:19]Read from MH i2c: E2 62 00 53 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 8C 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 9F [23:02:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 8C 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:02:19]wFMCommunicate OK [23:02:19]SAM_PROTO_GetFieldsCounters done [23:02:19]requested_item shift.num is exist - process it [23:02:19]requested_item shift.opened is exist - process it [23:02:19]req_shift_opened [23:02:19]FM_GetShiftState [23:02:19]SAM_PROTO_GetShiftState [23:02:19]wFMCommunicate request_size=4 [23:02:19]MH_SAM_APDU [23:02:19]CAPDU: 80 13 01 00 [23:02:19]Write to MH i2c: E2 08 00 54 09 80 13 01 00 00 00 00 00 DA [23:02:19]Write i2c OK [23:02:19]MH_I2C_Read... [23:02:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:02:19]Read from MH i2c: E2 [23:02:19]MH_I2C_Read... [23:02:19]Read from MH i2c: E2 0E 00 [23:02:19]MH_I2C_Read... [23:02:19]Read from MH i2c: E2 0E 00 54 09 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 B5 [23:02:19]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [23:02:19]wFMCommunicate OK [23:02:19]SAM_PROTO_GetShiftState done [23:02:19]FM_GetShiftState done [23:02:19]req_shift_opened done [23:02:19]requested_item shift.open_date is exist - process it [23:02:19]req_shift_open_date [23:02:19]req_shift_open_date done [23:02:19]produce_requested_data done [23:02:19]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68492,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [23:02:19]process_action_free close_receipt [23:02:19]json_value_free [23:02:19]json_value_free done [23:02:19]process_json_proto returns [23:02:19]Send response to host [23:02:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68492,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [23:02:19]free response buf [23:02:19]execute_script done [23:02:19]execute_script returns [23:02:19]free content buf [23:02:19]Sock 9.Close socket [23:02:19]Sock 9.Thread stoped [23:02:22]OFD Sender: No OFD packet to send [23:02:27]OFD Sender: No OFD packet to send [23:02:32]OFD Sender: No OFD packet to send [23:02:37]OFD Sender: No OFD packet to send [23:02:42]OFD Sender: No OFD packet to send [23:02:47]OFD Sender: No OFD packet to send [23:02:52]OFD Sender: No OFD packet to send [23:02:57]OFD Sender: No OFD packet to send [23:03:02]OFD Sender: No OFD packet to send [23:03:07]OFD Sender: No OFD packet to send [23:03:12]OFD Sender: No OFD packet to send [23:03:17]OFD Sender: No OFD packet to send [23:03:22]OFD Sender: No OFD packet to send [23:03:27]OFD Sender: No OFD packet to send [23:03:32]OFD Sender: No OFD packet to send [23:03:37]OFD Sender: No OFD packet to send [23:03:42]OFD Sender: No OFD packet to send [23:03:47]OFD Sender: No OFD packet to send [23:03:52]OFD Sender: No OFD packet to send [23:03:57]OFD Sender: No OFD packet to send [23:04:02]OFD Sender: No OFD packet to send [23:04:07]OFD Sender: No OFD packet to send [23:04:12]OFD Sender: No OFD packet to send [23:04:17]OFD Sender: No OFD packet to send [23:04:22]OFD Sender: No OFD packet to send [23:04:27]OFD Sender: No OFD packet to send [23:04:32]OFD Sender: No OFD packet to send [23:04:37]OFD Sender: No OFD packet to send [23:04:42]OFD Sender: No OFD packet to send [23:04:47]OFD Sender: No OFD packet to send [23:04:52]OFD Sender: No OFD packet to send [23:04:57]OFD Sender: No OFD packet to send [23:05:02]OFD Sender: No OFD packet to send [23:05:07]OFD Sender: No OFD packet to send [23:05:12]OFD Sender: No OFD packet to send [23:05:17]OFD Sender: No OFD packet to send [23:05:22]OFD Sender: No OFD packet to send [23:05:27]OFD Sender: No OFD packet to send [23:05:32]OFD Sender: No OFD packet to send [23:05:37]OFD Sender: No OFD packet to send [23:05:42]OFD Sender: No OFD packet to send [23:05:47]OFD Sender: No OFD packet to send [23:05:52]OFD Sender: No OFD packet to send [23:05:58]OFD Sender: No OFD packet to send [23:06:03]OFD Sender: No OFD packet to send [23:06:08]OFD Sender: No OFD packet to send [23:06:13]OFD Sender: No OFD packet to send [23:06:18]OFD Sender: No OFD packet to send [23:06:23]OFD Sender: No OFD packet to send [23:06:28]OFD Sender: No OFD packet to send [23:06:33]OFD Sender: No OFD packet to send [23:06:38]OFD Sender: No OFD packet to send [23:06:43]OFD Sender: No OFD packet to send [23:06:48]OFD Sender: No OFD packet to send [23:06:53]OFD Sender: No OFD packet to send [23:06:58]OFD Sender: No OFD packet to send [23:07:03]OFD Sender: No OFD packet to send [23:07:08]OFD Sender: No OFD packet to send [23:07:13]OFD Sender: No OFD packet to send [23:07:18]OFD Sender: No OFD packet to send [23:07:23]OFD Sender: No OFD packet to send [23:07:28]OFD Sender: No OFD packet to send [23:07:33]OFD Sender: No OFD packet to send [23:07:38]OFD Sender: No OFD packet to send [23:07:43]OFD Sender: No OFD packet to send [23:07:48]OFD Sender: No OFD packet to send [23:07:53]OFD Sender: No OFD packet to send [23:07:58]OFD Sender: No OFD packet to send [23:08:03]OFD Sender: No OFD packet to send [23:08:08]OFD Sender: No OFD packet to send [23:08:13]OFD Sender: No OFD packet to send [23:08:18]OFD Sender: No OFD packet to send [23:08:23]OFD Sender: No OFD packet to send [23:08:28]OFD Sender: No OFD packet to send [23:08:33]OFD Sender: No OFD packet to send [23:08:38]OFD Sender: No OFD packet to send [23:08:43]OFD Sender: No OFD packet to send [23:08:48]OFD Sender: No OFD packet to send [23:08:52]accept exits with 7 [23:08:52]New connection [23:08:52]New thread 3067084132 created [23:08:52]Thread 3067227492 joined [23:08:52]Waiting for new connection... [23:08:52] Sock 7.Parse request [23:08:52]Sock 7.Check first char [23:08:52]Sock 7.First char is OK [23:08:52]request: POST /json_proto HTTP/1.0 [23:08:52]Method: POST [23:08:52]URL: /json_proto [23:08:52]Method is POST - this is cgi request [23:08:52]url: /json_proto [23:08:52]query_string will be loaded in cgi processing [23:08:52]execute_cgi json_proto POST (null) [23:08:52]execute_cgi path=json_proto method=POST [23:08:52]POST find Content-Length [23:08:52]Host: 172.17.36.132:8080 [23:08:52]Content-Length: 840 [23:08:52]Content-Type: application/json [23:08:52] [23:08:52]POST finish read [23:08:52]Found Content-Length = 840 [23:08:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706606", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:08:52]execute_script... [23:08:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706606", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:08:52]POST & json_proto [23:08:52]process_json_proto [23:08:52]json parsed OK: [23:08:52]protocol is kg_v1.0 [23:08:52]action value=close_receipt [23:08:52]process_action close_receipt [23:08:52]cmd_close_receipt [23:08:52]MH_GetDate [23:08:52]Write to MH i2c: F0 00 00 55 09 4D [23:08:52]Write i2c OK [23:08:52]MH_I2C_Read... [23:08:52]Read from MH i2c: F0 [23:08:52]MH_I2C_Read... [23:08:52]Read from MH i2c: F0 09 00 [23:08:52]MH_I2C_Read... [23:08:52]Read from MH i2c: F0 09 00 55 09 00 05 4D 5E 66 B2 22 B0 64 54 [23:08:52]GetLastDocTimeStamp 1717455736 [23:08:52]current date 1717456133 [23:08:52]FM_GetShiftState [23:08:52]SAM_PROTO_GetShiftState [23:08:52]wFMCommunicate request_size=4 [23:08:52]MH_SAM_APDU [23:08:52]CAPDU: 80 13 01 00 [23:08:52]Write to MH i2c: E2 08 00 56 09 80 13 01 00 00 00 00 00 DC [23:08:52]Write i2c OK [23:08:52]MH_I2C_Read... [23:08:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:08:52]Read from MH i2c: E2 [23:08:52]MH_I2C_Read... [23:08:52]Read from MH i2c: E2 0E 00 [23:08:52]MH_I2C_Read... [23:08:52]Read from MH i2c: E2 0E 00 56 09 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 B7 [23:08:52]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [23:08:52]wFMCommunicate OK [23:08:52]SAM_PROTO_GetShiftState done [23:08:52]FM_GetShiftState done [23:08:52]opened in 1717378033 [23:08:52]opened+sec_in_day 1717464433 [23:08:52]quantity*price = 50041 [23:08:52]sum+1 = 50042 [23:08:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 239 03.06.2024 23:08 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68493 ФПД: 46581677165819 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T230853&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68493&fm=46581677165819&tin=02508201610067®Number=0000000000098096&sum=50041 [23:08:53]StoreToDocumentArchive [23:08:53]shift 324 fd 68493 [23:08:53]save to /storage/0324/doc_00068493 [23:08:53]save last doc name /storage/0324/doc_00068493 to /storage/kkm_last_doc_name [23:08:53]save OK [23:08:53]Clear old archive folders... [23:08:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:08:53]tlvbuf is 00A13810 [23:08:53]SAM_PROTO_ClearQueue [23:08:53]wFMCommunicate request_size=4 [23:08:53]MH_SAM_APDU [23:08:53]CAPDU: 80 09 00 00 [23:08:53]Write to MH i2c: E2 08 00 63 09 80 09 00 00 00 00 00 00 DE [23:08:53]Write i2c OK [23:08:53]MH_I2C_Read... [23:08:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:08:53]Read from MH i2c: E2 [23:08:53]MH_I2C_Read... [23:08:53]Read from MH i2c: E2 03 00 [23:08:53]MH_I2C_Read... [23:08:53]Read from MH i2c: E2 03 00 63 09 00 90 00 E0 [23:08:53]RAPDU: 90 00 [23:08:53]wFMCommunicate OK [23:08:53]SAM_PROTO_ClearQueue done [23:08:53]KKMCreateOFDPacket [23:08:53]OFDProtocolAddRootSTLVToBuf [23:08:53]FM_MakeSignedData [23:08:53]FM_MakeSignedData [23:08:53]SAM_PROTO_SignData [23:08:53]wFMCommunicate request_size=4 [23:08:53]MH_SAM_APDU [23:08:53]CAPDU: 80 0D 01 02 [23:08:53]Write to MH i2c: E2 08 00 64 09 80 0D 01 02 00 00 00 00 E6 [23:08:53]Write i2c OK [23:08:53]MH_I2C_Read... [23:08:53]Read from MH i2c: E2 [23:08:53]MH_I2C_Read... [23:08:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:08:53]Read from MH i2c: E2 03 00 [23:08:53]MH_I2C_Read... [23:08:53]Read from MH i2c: E2 03 00 64 09 00 90 00 E1 [23:08:53]RAPDU: 90 00 [23:08:53]wFMCommunicate OK [23:08:53]wFMCommunicate request_size=255 [23:08:53]MH_SAM_APDU [23:08:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 05 4D 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 8D 0B 01 00 35 04 06 00 2A [23:08:53]Write to MH i2c: E2 02 01 65 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 05 4D 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 8D 0B 01 00 35 04 06 00 2A 00 00 D2 [23:08:53]Write i2c OK [23:08:53]MH_I2C_Read... [23:08:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:08:53]Read from MH i2c: E2 [23:08:53]MH_I2C_Read... [23:08:53]Read from MH i2c: E2 03 00 [23:08:53]MH_I2C_Read... [23:08:53]Read from MH i2c: E2 03 00 65 09 00 90 00 E2 [23:08:53]RAPDU: 90 00 [23:08:53]wFMCommunicate OK [23:08:53]wFMCommunicate request_size=10 [23:08:53]MH_SAM_APDU [23:08:53]CAPDU: 80 0D 02 02 05 5D A4 52 0C FB [23:08:53]Write to MH i2c: E2 0D 00 66 09 80 0D 02 02 05 00 5D A4 52 0C FB 00 00 4D [23:08:53]Write i2c OK [23:08:53]MH_I2C_Read... [23:08:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:08:53]Read from MH i2c: E2 [23:08:53]MH_I2C_Read... [23:08:53]Read from MH i2c: E2 03 00 [23:08:53]MH_I2C_Read... [23:08:53]Read from MH i2c: E2 03 00 66 09 00 90 00 E3 [23:08:53]RAPDU: 90 00 [23:08:53]wFMCommunicate OK [23:08:53]wFMCommunicate request_size=4 [23:08:53]MH_SAM_APDU [23:08:53]CAPDU: 80 0D 03 02 [23:08:53]Write to MH i2c: E2 08 00 67 09 80 0D 03 02 00 00 00 00 EB [23:08:53]Write i2c OK [23:08:53]MH_I2C_Read... [23:08:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:08:53]Read from MH i2c: E2 [23:08:53]MH_I2C_Read... [23:08:53]Read from MH i2c: E2 0B 00 [23:08:53]MH_I2C_Read... [23:08:53]Read from MH i2c: E2 0B 00 67 09 00 8E E2 7A CA 89 58 13 F6 90 00 8A [23:08:53]RAPDU: 8E E2 7A CA 89 58 13 F6 90 00 [23:08:53]wFMCommunicate OK [23:08:53]SAM_PROTO_SignData done [23:08:53]FM_MakeSignedData done [23:08:53]CreateOFDProtocolMessage [23:08:53]wFMCommunicate request_size=4 [23:08:53]MH_SAM_APDU [23:08:53]CAPDU: 80 11 00 00 [23:08:53]Write to MH i2c: E2 08 00 68 09 80 11 00 00 00 00 00 00 EB [23:08:53]Write i2c OK [23:08:53]MH_I2C_Read... [23:08:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:08:53]Read from MH i2c: E2 [23:08:53]MH_I2C_Read... [23:08:53]Read from MH i2c: E2 17 00 [23:08:53]MH_I2C_Read... [23:08:53]Read from MH i2c: E2 17 00 68 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 36 [23:08:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [23:08:53]wFMCommunicate OK [23:08:53]CreateOFDProtocolMessage done [23:08:53]OFDSenderStorePacket 68493 [23:08:53]StoreOFDPacket docnum=68493 [23:08:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 2B DA 07 01 52 FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 05 4D 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 8D 0B 01 00 35 04 06 00 2A 5D A4 52 0C FB 8E E2 7A CA 89 58 13 F6 [23:08:53]CheckFolder [23:08:53]dirname=/storage/ofd_packets [23:08:53]CheckFolder done [23:08:53]ProducePacketName [23:08:53]name=ofd_packets/00068493 [23:08:53]NVStorageSaveData ofd_packets/00068493 [23:08:53]File name is /storage/ofd_packets/00068493 [23:08:53]Write 301 bytes [23:08:53]NVStorageSaveData done [23:08:53]OFDSenderStorePacket done [23:08:53]KKMCreateOFDPacket done [23:08:53]NVStorageSaveData kkm_last_timestamp [23:08:53]File name is /storage/kkm_last_timestamp [23:08:53]Write 4 bytes [23:08:53]NVStorageSaveData done [23:08:53]ExternCall_PrintAddStr [23:08:53]wPrintStart [23:08:53]Write to MH i2c: 01 00 00 69 09 72 [23:08:53]Write i2c OK [23:08:53]MH_I2C_Read... [23:08:53]Read from MH i2c: 01 [23:08:53]MH_I2C_Read... [23:08:53]Read from MH i2c: 01 07 00 [23:08:53]MH_I2C_Read... [23:08:53]Read from MH i2c: 01 07 00 69 09 00 00 00 00 00 FF 0F 87 [23:08:53]RasterBufferAndPrint [23:08:53]line Счет N : (1)706606 [23:08:53]line ИНН: 02508201610067 [23:08:53]line Контрольно-Кассовый Чек [23:08:53]line ПРОДАЖА [23:08:53]line ТРК (МРК, ГНК) : 32 [23:08:53]line Товар: 2710124130 [23:08:53]line Аи-92-К-4 [23:08:53]line 7.480 * 66.90 [23:08:53]line = 500.41 [23:08:53]line НДС 12% НСП 1% [23:08:53]line > о реализуемом товаре [23:08:53]line ИТОГО: 500.41 [23:08:53]line НСП 1% : 4.43 [23:08:53]line НДС 12% : 53.14 [23:08:53]line Наличными: 0.00 [23:08:53]line Безнал.: 500.41 [23:08:53]line Место: АЗС № 62 "Партнер Нефть" [23:08:53]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [23:08:53]line СНО: Общий режим [23:08:53]line Чек 239 03.06.2024 23:08 [23:08:53]line Смена: 324 ФФД: 1.0 [23:08:53]line ЗНМ: 0300000181 [23:08:53]line РНМ: 0000000000098096 [23:08:53]line Версия ККМ: 001 [23:08:54]line Платежная система: АКБ Кыргызстан [23:08:54]line ФМ: 0000000000965400 [23:08:54]line ФД: 68493 [23:08:54]line ФПД: 46581677165819 [23:08:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T230853&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68493&fm=46581677165819&tin=02508201610067®Number=0000000000098096&sum=50041 [23:08:54]OFD Sender: Processing packet 68493 [packets to send 26, broken 25] [23:08:54]ProducePacketName [23:08:54]name=ofd_packets/00068493 [23:08:54]OFD Sender: To server: pG, [23:08:54]CommunicateWithHost lk.salyk.kg:30040 [23:08:54]ConnectInit lk.salyk.kg [23:08:54]written 0, free lines is 4095 [23:08:54]Connected sock=10 [23:08:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 2B DA 07 01 52 FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 05 4D 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 8D 0B 01 00 35 04 06 00 2A 5D A4 52 0C FB 8E E2 7A CA 89 58 13 F6 [23:08:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 29 7E 47 00 7E F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 8D 0B 01 00 F4 03 04 00 FF F3 5D 66 B6 04 01 00 00 C1 E3 9E 8B B4 EB 1E 5E [23:08:54]CommunicateWithHost err = 0 [23:08:54]CheckOFDResponse [23:08:54]1017 (14) - 77093643461234 [23:08:54]1041 (16) - 0000000000965400 [23:08:54]1040 (4) - 68493 [23:08:54]1012 (4) - 03.06.2024 16:49 [23:08:54]1206 (1) - 0 [23:08:54]OFD Sender: Remove packet 68493 [23:08:54]ProducePacketName [23:08:54]name=ofd_packets/00068493 [23:08:54]NVStorageDeleteData [23:08:54]Write to MH i2c: 01 00 00 93 09 9C [23:08:54]Write i2c OK [23:08:54]MH_I2C_Read... [23:08:54]Read from MH i2c: 01 [23:08:54]MH_I2C_Read... [23:08:54]Read from MH i2c: 01 07 00 [23:08:54]MH_I2C_Read... [23:08:54]Read from MH i2c: 01 07 00 93 09 00 00 00 00 00 E1 0C 90 [23:08:54]RasterBufferAndPrint [23:08:54]line [23:08:54]line [23:08:54]line [23:08:54]line [23:08:54]line [23:08:54]written 0, free lines is 3303 [23:08:54]MH_Cut [23:08:54]Write to MH i2c: D1 01 00 9A 09 01 75 [23:08:54]Write i2c OK [23:08:54]MH_I2C_Read... [23:08:54]Read from MH i2c: D1 [23:08:54]MH_I2C_Read... [23:08:54]Read from MH i2c: D1 01 00 [23:08:54]MH_I2C_Read... [23:08:54]Read from MH i2c: D1 01 00 9A 09 00 74 [23:08:54]Write to MH i2c: 01 00 00 9B 09 A4 [23:08:54]Write i2c OK [23:08:54]MH_I2C_Read... [23:08:54]OFD Sender: No OFD packet to send [23:08:55]*** Cut start [23:08:55]*** Partial cut [23:08:55]*** CUTSNS_PIN = 1 [23:08:55]*** CUTSNS_PIN = 0 [23:08:55]*** Brake cut motor [23:08:55]Read from MH i2c: 01 [23:08:55]MH_I2C_Read... [23:08:55]*** Stop cut motor [23:08:55]*** Cut end [23:08:55]Read from MH i2c: 01 07 00 [23:08:55]MH_I2C_Read... [23:08:55]Read from MH i2c: 01 07 00 9B 09 00 00 00 00 00 FF 0F B9 [23:08:55]process_action close_receipt done [23:08:55]requested_data is exist [23:08:55]produce_requested_data [23:08:55]requested_item fm.sn is exist - process it [23:08:55]wFMCommunicate request_size=4 [23:08:55]MH_SAM_APDU [23:08:55]CAPDU: 80 11 00 00 [23:08:55]Write to MH i2c: E2 08 00 9C 09 80 11 00 00 00 00 00 00 1F [23:08:55]Write i2c OK [23:08:55]MH_I2C_Read... [23:08:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:08:56]Read from MH i2c: E2 [23:08:56]MH_I2C_Read... [23:08:56]Read from MH i2c: E2 17 00 [23:08:56]MH_I2C_Read... [23:08:56]Read from MH i2c: E2 17 00 9C 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 6A [23:08:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [23:08:56]wFMCommunicate OK [23:08:56]requested_item fd.num is exist - process it [23:08:56]SAM_PROTO_GetFieldsCounters [23:08:56]wFMCommunicate request_size=4 [23:08:56]MH_SAM_APDU [23:08:56]CAPDU: 80 13 00 00 [23:08:56]Write to MH i2c: E2 08 00 9D 09 80 13 00 00 00 00 00 00 22 [23:08:56]Write i2c OK [23:08:56]MH_I2C_Read... [23:08:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:08:56]Read from MH i2c: E2 [23:08:56]MH_I2C_Read... [23:08:56]Read from MH i2c: E2 62 00 [23:08:56]MH_I2C_Read... [23:08:56]Read from MH i2c: E2 62 00 9D 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 8D 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 ED [23:08:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 8D 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:08:56]wFMCommunicate OK [23:08:56]SAM_PROTO_GetFieldsCounters done [23:08:56]requested_item shift.num is exist - process it [23:08:56]requested_item shift.opened is exist - process it [23:08:56]req_shift_opened [23:08:56]FM_GetShiftState [23:08:56]SAM_PROTO_GetShiftState [23:08:56]wFMCommunicate request_size=4 [23:08:56]MH_SAM_APDU [23:08:56]CAPDU: 80 13 01 00 [23:08:56]Write to MH i2c: E2 08 00 9E 09 80 13 01 00 00 00 00 00 24 [23:08:56]Write i2c OK [23:08:56]MH_I2C_Read... [23:08:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:08:56]Read from MH i2c: E2 [23:08:56]MH_I2C_Read... [23:08:56]Read from MH i2c: E2 0E 00 [23:08:56]MH_I2C_Read... [23:08:56]Read from MH i2c: E2 0E 00 9E 09 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 FF [23:08:56]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [23:08:56]wFMCommunicate OK [23:08:56]SAM_PROTO_GetShiftState done [23:08:56]FM_GetShiftState done [23:08:56]req_shift_opened done [23:08:56]requested_item shift.open_date is exist - process it [23:08:56]req_shift_open_date [23:08:56]req_shift_open_date done [23:08:56]produce_requested_data done [23:08:56]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68493,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [23:08:56]process_action_free close_receipt [23:08:56]json_value_free [23:08:56]json_value_free done [23:08:56]process_json_proto returns [23:08:56]Send response to host [23:08:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68493,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [23:08:56]free response buf [23:08:56]execute_script done [23:08:56]execute_script returns [23:08:56]free content buf [23:08:56]Sock 7.Close socket [23:08:56]Sock 7.Thread stoped [23:08:59]OFD Sender: No OFD packet to send [23:09:04]OFD Sender: No OFD packet to send [23:09:09]OFD Sender: No OFD packet to send [23:09:14]OFD Sender: No OFD packet to send [23:09:19]OFD Sender: No OFD packet to send [23:09:24]OFD Sender: No OFD packet to send [23:09:29]OFD Sender: No OFD packet to send [23:09:34]OFD Sender: No OFD packet to send [23:09:39]OFD Sender: No OFD packet to send [23:09:44]OFD Sender: No OFD packet to send [23:09:49]OFD Sender: No OFD packet to send [23:09:54]OFD Sender: No OFD packet to send [23:09:59]OFD Sender: No OFD packet to send [23:10:04]OFD Sender: No OFD packet to send [23:10:09]OFD Sender: No OFD packet to send [23:10:14]OFD Sender: No OFD packet to send [23:10:19]OFD Sender: No OFD packet to send [23:10:24]OFD Sender: No OFD packet to send [23:10:29]OFD Sender: No OFD packet to send [23:10:34]OFD Sender: No OFD packet to send [23:10:39]OFD Sender: No OFD packet to send [23:10:44]OFD Sender: No OFD packet to send [23:10:49]OFD Sender: No OFD packet to send [23:10:54]OFD Sender: No OFD packet to send [23:10:59]OFD Sender: No OFD packet to send [23:11:05]OFD Sender: No OFD packet to send [23:11:10]OFD Sender: No OFD packet to send [23:11:15]OFD Sender: No OFD packet to send [23:11:20]OFD Sender: No OFD packet to send [23:11:25]OFD Sender: No OFD packet to send [23:11:30]OFD Sender: No OFD packet to send [23:11:35]OFD Sender: No OFD packet to send [23:11:40]OFD Sender: No OFD packet to send [23:11:45]OFD Sender: No OFD packet to send [23:11:50]OFD Sender: No OFD packet to send [23:11:55]OFD Sender: No OFD packet to send [23:12:00]OFD Sender: No OFD packet to send [23:12:05]OFD Sender: No OFD packet to send [23:12:10]OFD Sender: No OFD packet to send [23:12:15]OFD Sender: No OFD packet to send [23:12:20]OFD Sender: No OFD packet to send [23:12:25]OFD Sender: No OFD packet to send [23:12:30]OFD Sender: No OFD packet to send [23:12:35]OFD Sender: No OFD packet to send [23:12:40]OFD Sender: No OFD packet to send [23:12:45]OFD Sender: No OFD packet to send [23:12:50]OFD Sender: No OFD packet to send [23:12:55]OFD Sender: No OFD packet to send [23:13:00]OFD Sender: No OFD packet to send [23:13:05]OFD Sender: No OFD packet to send [23:13:10]OFD Sender: No OFD packet to send [23:13:15]OFD Sender: No OFD packet to send [23:13:20]OFD Sender: No OFD packet to send [23:13:25]OFD Sender: No OFD packet to send [23:13:30]OFD Sender: No OFD packet to send [23:13:35]OFD Sender: No OFD packet to send [23:13:40]OFD Sender: No OFD packet to send [23:13:45]OFD Sender: No OFD packet to send [23:13:50]OFD Sender: No OFD packet to send [23:13:55]OFD Sender: No OFD packet to send [23:14:00]OFD Sender: No OFD packet to send [23:14:05]OFD Sender: No OFD packet to send [23:14:10]OFD Sender: No OFD packet to send [23:14:15]OFD Sender: No OFD packet to send [23:14:20]OFD Sender: No OFD packet to send [23:14:25]OFD Sender: No OFD packet to send [23:14:30]OFD Sender: No OFD packet to send [23:14:35]OFD Sender: No OFD packet to send [23:14:40]OFD Sender: No OFD packet to send [23:14:45]OFD Sender: No OFD packet to send [23:14:50]OFD Sender: No OFD packet to send [23:14:55]OFD Sender: No OFD packet to send [23:15:00]OFD Sender: No OFD packet to send [23:15:05]OFD Sender: No OFD packet to send [23:15:10]OFD Sender: No OFD packet to send [23:15:15]OFD Sender: No OFD packet to send [23:15:20]OFD Sender: No OFD packet to send [23:15:25]OFD Sender: No OFD packet to send [23:15:30]OFD Sender: No OFD packet to send [23:15:35]OFD Sender: No OFD packet to send [23:15:40]OFD Sender: No OFD packet to send [23:15:45]OFD Sender: No OFD packet to send [23:15:50]OFD Sender: No OFD packet to send [23:15:55]OFD Sender: No OFD packet to send [23:16:00]OFD Sender: No OFD packet to send [23:16:05]OFD Sender: No OFD packet to send [23:16:10]OFD Sender: No OFD packet to send [23:16:15]OFD Sender: No OFD packet to send [23:16:20]OFD Sender: No OFD packet to send [23:16:25]OFD Sender: No OFD packet to send [23:16:30]OFD Sender: No OFD packet to send [23:16:35]OFD Sender: No OFD packet to send [23:16:40]OFD Sender: No OFD packet to send [23:16:45]OFD Sender: No OFD packet to send [23:16:50]OFD Sender: No OFD packet to send [23:16:55]OFD Sender: No OFD packet to send [23:17:00]OFD Sender: No OFD packet to send [23:17:05]OFD Sender: No OFD packet to send [23:17:10]OFD Sender: No OFD packet to send [23:17:15]OFD Sender: No OFD packet to send [23:17:20]OFD Sender: No OFD packet to send [23:17:25]OFD Sender: No OFD packet to send [23:17:30]OFD Sender: No OFD packet to send [23:17:35]OFD Sender: No OFD packet to send [23:17:40]OFD Sender: No OFD packet to send [23:17:45]OFD Sender: No OFD packet to send [23:17:50]OFD Sender: No OFD packet to send [23:17:55]OFD Sender: No OFD packet to send [23:18:00]OFD Sender: No OFD packet to send [23:18:05]OFD Sender: No OFD packet to send [23:18:10]OFD Sender: No OFD packet to send [23:18:15]OFD Sender: No OFD packet to send [23:18:20]OFD Sender: No OFD packet to send [23:18:25]OFD Sender: No OFD packet to send [23:18:30]OFD Sender: No OFD packet to send [23:18:35]OFD Sender: No OFD packet to send [23:18:40]OFD Sender: No OFD packet to send [23:18:45]OFD Sender: No OFD packet to send [23:18:50]OFD Sender: No OFD packet to send [23:18:55]OFD Sender: No OFD packet to send [23:19:00]accept exits with 9 [23:19:00]New connection [23:19:00]New thread 3067227492 created [23:19:00]Thread 3067084132 joined [23:19:00]Waiting for new connection... [23:19:00] Sock 9.Parse request [23:19:00]Sock 9.Check first char [23:19:00]Sock 9.First char is OK [23:19:00]request: POST /json_proto HTTP/1.0 [23:19:00]Method: POST [23:19:00]URL: /json_proto [23:19:00]Method is POST - this is cgi request [23:19:00]url: /json_proto [23:19:00]query_string will be loaded in cgi processing [23:19:00]execute_cgi json_proto POST (null) [23:19:00]execute_cgi path=json_proto method=POST [23:19:00]POST find Content-Length [23:19:00]Host: 172.17.36.132:8080 [23:19:00]Content-Length: 843 [23:19:00]Content-Type: application/json [23:19:00] [23:19:00]POST finish read [23:19:00]Found Content-Length = 843 [23:19:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706607", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:19:00]execute_script... [23:19:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706607", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:19:00]POST & json_proto [23:19:00]process_json_proto [23:19:00]json parsed OK: [23:19:00]protocol is kg_v1.0 [23:19:00]action value=close_receipt [23:19:00]process_action close_receipt [23:19:00]cmd_close_receipt [23:19:00]MH_GetDate [23:19:00]Write to MH i2c: F0 00 00 9F 09 97 [23:19:00]Write i2c OK [23:19:00]MH_I2C_Read... [23:19:00]Read from MH i2c: F0 [23:19:00]MH_I2C_Read... [23:19:00]Read from MH i2c: F0 09 00 [23:19:00]MH_I2C_Read... [23:19:00]Read from MH i2c: F0 09 00 9F 09 00 65 4F 5E 66 B2 22 B0 64 00 [23:19:00]GetLastDocTimeStamp 1717456133 [23:19:00]current date 1717456741 [23:19:00]FM_GetShiftState [23:19:00]SAM_PROTO_GetShiftState [23:19:00]wFMCommunicate request_size=4 [23:19:00]MH_SAM_APDU [23:19:00]CAPDU: 80 13 01 00 [23:19:00]Write to MH i2c: E2 08 00 A0 09 80 13 01 00 00 00 00 00 26 [23:19:00]Write i2c OK [23:19:00]MH_I2C_Read... [23:19:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:19:00]Read from MH i2c: E2 [23:19:00]MH_I2C_Read... [23:19:00]Read from MH i2c: E2 0E 00 [23:19:00]MH_I2C_Read... [23:19:00]Read from MH i2c: E2 0E 00 A0 09 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 01 [23:19:00]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [23:19:00]wFMCommunicate OK [23:19:00]SAM_PROTO_GetShiftState done [23:19:00]FM_GetShiftState done [23:19:00]opened in 1717378033 [23:19:00]opened+sec_in_day 1717464433 [23:19:00]quantity*price = 100015 [23:19:00]sum+1 = 100017 [23:19:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 240 03.06.2024 23:19 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68494 ФПД: 276267850512277 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T231901&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68494&fm=276267850512277&tin=02508201610067®Number=0000000000098096&sum=100016 [23:19:01]StoreToDocumentArchive [23:19:01]shift 324 fd 68494 [23:19:01]save to /storage/0324/doc_00068494 [23:19:01]save last doc name /storage/0324/doc_00068494 to /storage/kkm_last_doc_name [23:19:01]save OK [23:19:01]Clear old archive folders... [23:19:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:19:01]tlvbuf is 009AE930 [23:19:01]SAM_PROTO_ClearQueue [23:19:01]wFMCommunicate request_size=4 [23:19:01]MH_SAM_APDU [23:19:01]CAPDU: 80 09 00 00 [23:19:01]Write to MH i2c: E2 08 00 AD 09 80 09 00 00 00 00 00 00 28 [23:19:01]Write i2c OK [23:19:01]MH_I2C_Read... [23:19:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:19:01]Read from MH i2c: E2 [23:19:01]MH_I2C_Read... [23:19:01]Read from MH i2c: E2 03 00 [23:19:01]MH_I2C_Read... [23:19:01]Read from MH i2c: E2 03 00 AD 09 00 90 00 2A [23:19:01]RAPDU: 90 00 [23:19:01]wFMCommunicate OK [23:19:01]SAM_PROTO_ClearQueue done [23:19:01]KKMCreateOFDPacket [23:19:01]OFDProtocolAddRootSTLVToBuf [23:19:01]FM_MakeSignedData [23:19:01]FM_MakeSignedData [23:19:01]SAM_PROTO_SignData [23:19:01]wFMCommunicate request_size=4 [23:19:01]MH_SAM_APDU [23:19:01]CAPDU: 80 0D 01 02 [23:19:01]Write to MH i2c: E2 08 00 AE 09 80 0D 01 02 00 00 00 00 30 [23:19:01]Write i2c OK [23:19:01]MH_I2C_Read... [23:19:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:19:01]Read from MH i2c: E2 [23:19:01]MH_I2C_Read... [23:19:01]Read from MH i2c: E2 03 00 [23:19:01]MH_I2C_Read... [23:19:01]Read from MH i2c: E2 03 00 AE 09 00 90 00 2B [23:19:01]RAPDU: 90 00 [23:19:01]wFMCommunicate OK [23:19:01]wFMCommunicate request_size=255 [23:19:01]MH_SAM_APDU [23:19:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 65 4F 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 8E 0B 01 00 35 04 06 00 FB [23:19:01]Write to MH i2c: E2 02 01 AF 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 65 4F 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 8E 0B 01 00 35 04 06 00 FB 00 00 19 [23:19:01]Write i2c OK [23:19:01]MH_I2C_Read... [23:19:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:19:01]Read from MH i2c: E2 [23:19:01]MH_I2C_Read... [23:19:01]Read from MH i2c: E2 03 00 [23:19:01]MH_I2C_Read... [23:19:01]Read from MH i2c: E2 03 00 AF 09 00 90 00 2C [23:19:01]RAPDU: 90 00 [23:19:01]wFMCommunicate OK [23:19:01]wFMCommunicate request_size=10 [23:19:01]MH_SAM_APDU [23:19:01]CAPDU: 80 0D 02 02 05 43 9F 17 B7 95 [23:19:01]Write to MH i2c: E2 0D 00 B0 09 80 0D 02 02 05 00 43 9F 17 B7 95 00 00 82 [23:19:01]Write i2c OK [23:19:01]MH_I2C_Read... [23:19:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:19:01]Read from MH i2c: E2 [23:19:01]MH_I2C_Read... [23:19:01]Read from MH i2c: E2 03 00 [23:19:01]MH_I2C_Read... [23:19:01]Read from MH i2c: E2 03 00 B0 09 00 90 00 2D [23:19:01]RAPDU: 90 00 [23:19:01]wFMCommunicate OK [23:19:01]wFMCommunicate request_size=4 [23:19:01]MH_SAM_APDU [23:19:01]CAPDU: 80 0D 03 02 [23:19:01]Write to MH i2c: E2 08 00 B1 09 80 0D 03 02 00 00 00 00 35 [23:19:01]Write i2c OK [23:19:01]MH_I2C_Read... [23:19:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:19:01]Read from MH i2c: E2 [23:19:01]MH_I2C_Read... [23:19:01]Read from MH i2c: E2 0B 00 [23:19:01]MH_I2C_Read... [23:19:01]Read from MH i2c: E2 0B 00 B1 09 00 30 11 88 E1 B1 E1 06 F4 90 00 6C [23:19:01]RAPDU: 30 11 88 E1 B1 E1 06 F4 90 00 [23:19:01]wFMCommunicate OK [23:19:01]SAM_PROTO_SignData done [23:19:01]FM_MakeSignedData done [23:19:01]CreateOFDProtocolMessage [23:19:01]wFMCommunicate request_size=4 [23:19:01]MH_SAM_APDU [23:19:01]CAPDU: 80 11 00 00 [23:19:01]Write to MH i2c: E2 08 00 B2 09 80 11 00 00 00 00 00 00 35 [23:19:01]Write i2c OK [23:19:01]MH_I2C_Read... [23:19:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:19:01]Read from MH i2c: E2 [23:19:01]MH_I2C_Read... [23:19:01]Read from MH i2c: E2 17 00 [23:19:01]MH_I2C_Read... [23:19:01]Read from MH i2c: E2 17 00 B2 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 80 [23:19:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [23:19:01]wFMCommunicate OK [23:19:01]CreateOFDProtocolMessage done [23:19:01]OFDSenderStorePacket 68494 [23:19:01]StoreOFDPacket docnum=68494 [23:19:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 39 FE 07 01 AF 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 65 4F 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 8E 0B 01 00 35 04 06 00 FB 43 9F 17 B7 95 30 11 88 E1 B1 E1 06 F4 [23:19:01]CheckFolder [23:19:01]dirname=/storage/ofd_packets [23:19:01]CheckFolder done [23:19:01]ProducePacketName [23:19:01]name=ofd_packets/00068494 [23:19:01]NVStorageSaveData ofd_packets/00068494 [23:19:01]File name is /storage/ofd_packets/00068494 [23:19:01]Write 301 bytes [23:19:01]NVStorageSaveData done [23:19:01]OFDSenderStorePacket done [23:19:01]KKMCreateOFDPacket done [23:19:01]NVStorageSaveData kkm_last_timestamp [23:19:01]File name is /storage/kkm_last_timestamp [23:19:01]Write 4 bytes [23:19:01]NVStorageSaveData done [23:19:01]ExternCall_PrintAddStr [23:19:01]wPrintStart [23:19:01]Write to MH i2c: 01 00 00 B3 09 BC [23:19:01]Write i2c OK [23:19:01]MH_I2C_Read... [23:19:01]Read from MH i2c: 01 [23:19:01]MH_I2C_Read... [23:19:01]Read from MH i2c: 01 07 00 [23:19:01]MH_I2C_Read... [23:19:01]Read from MH i2c: 01 07 00 B3 09 00 00 00 00 00 FF 0F D1 [23:19:01]RasterBufferAndPrint [23:19:01]line Счет N : (1)706607 [23:19:01]line ИНН: 02508201610067 [23:19:01]line Контрольно-Кассовый Чек [23:19:01]line ПРОДАЖА [23:19:01]line ТРК (МРК, ГНК) : 32 [23:19:01]line Товар: 2710124130 [23:19:01]line Аи-92-К-4 [23:19:01]line 14.950 * 66.90 [23:19:01]line = 1000.16 [23:19:01]line НДС 12% НСП 1% [23:19:01]line > о реализуемом товаре [23:19:01]line ИТОГО: 1000.16 [23:19:01]line НСП 1% : 8.85 [23:19:01]line НДС 12% : 106.21 [23:19:01]line Наличными: 0.00 [23:19:01]line Безнал.: 1000.16 [23:19:01]line Место: АЗС № 62 "Партнер Нефть" [23:19:01]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [23:19:01]line СНО: Общий режим [23:19:01]line Чек 240 03.06.2024 23:19 [23:19:01]line Смена: 324 ФФД: 1.0 [23:19:01]line ЗНМ: 0300000181 [23:19:01]line РНМ: 0000000000098096 [23:19:01]line Версия ККМ: 001 [23:19:01]line Платежная система: АКБ Кыргызстан [23:19:01]line ФМ: 0000000000965400 [23:19:01]line ФД: 68494 [23:19:01]line ФПД: 276267850512277 [23:19:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T231901&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68494&fm=276267850512277&tin=02508201610067®Number=0000000000098096&sum=100016 [23:19:02]OFD Sender: Processing packet 68494 [packets to send 26, broken 25] [23:19:02]ProducePacketName [23:19:02]name=ofd_packets/00068494 [23:19:02]OFD Sender: To server: pG, [23:19:02]CommunicateWithHost lk.salyk.kg:30040 [23:19:02]ConnectInit lk.salyk.kg [23:19:02]written 0, free lines is 4095 [23:19:02]Connected sock=10 [23:19:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 39 FE 07 01 AF 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 65 4F 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 8E 0B 01 00 35 04 06 00 FB 43 9F 17 B7 95 30 11 88 E1 B1 E1 06 F4 [23:19:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 11 1A 47 00 8A 44 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 8E 0B 01 00 F4 03 04 00 5F F6 5D 66 B6 04 01 00 00 23 97 72 2E C0 BB BD 5D [23:19:02]CommunicateWithHost err = 0 [23:19:02]CheckOFDResponse [23:19:02]1017 (14) - 77093643461234 [23:19:02]1041 (16) - 0000000000965400 [23:19:02]1040 (4) - 68494 [23:19:02]1012 (4) - 03.06.2024 16:59 [23:19:02]1206 (1) - 0 [23:19:02]OFD Sender: Remove packet 68494 [23:19:02]ProducePacketName [23:19:02]name=ofd_packets/00068494 [23:19:02]NVStorageDeleteData [23:19:02]Write to MH i2c: 01 00 00 DD 09 E6 [23:19:02]Write i2c OK [23:19:02]MH_I2C_Read... [23:19:02]Read from MH i2c: 01 [23:19:02]MH_I2C_Read... [23:19:02]Read from MH i2c: 01 07 00 [23:19:02]MH_I2C_Read... [23:19:02]Read from MH i2c: 01 07 00 DD 09 00 00 00 00 00 EF 0C E8 [23:19:02]RasterBufferAndPrint [23:19:02]line [23:19:02]line [23:19:02]line [23:19:02]line [23:19:02]line [23:19:02]written 0, free lines is 3318 [23:19:02]MH_Cut [23:19:02]Write to MH i2c: D1 01 00 E4 09 01 BF [23:19:02]Write i2c OK [23:19:02]MH_I2C_Read... [23:19:02]Read from MH i2c: D1 [23:19:02]MH_I2C_Read... [23:19:02]Read from MH i2c: D1 01 00 [23:19:02]MH_I2C_Read... [23:19:02]Read from MH i2c: D1 01 00 E4 09 00 BE [23:19:02]Write to MH i2c: 01 00 00 E5 09 EE [23:19:02]Write i2c OK [23:19:02]MH_I2C_Read... [23:19:03]OFD Sender: No OFD packet to send [23:19:03]*** Cut start [23:19:03]*** Partial cut [23:19:03]*** CUTSNS_PIN = 1 [23:19:03]*** CUTSNS_PIN = 0 [23:19:03]*** Brake cut motor [23:19:04]Read from MH i2c: 01 [23:19:04]MH_I2C_Read... [23:19:04]*** Stop cut motor [23:19:04]*** Cut end [23:19:04]Read from MH i2c: 01 07 00 [23:19:04]MH_I2C_Read... [23:19:04]Read from MH i2c: 01 07 00 E5 09 00 00 00 00 00 FF 0F 03 [23:19:04]process_action close_receipt done [23:19:04]requested_data is exist [23:19:04]produce_requested_data [23:19:04]requested_item fm.sn is exist - process it [23:19:04]wFMCommunicate request_size=4 [23:19:04]MH_SAM_APDU [23:19:04]CAPDU: 80 11 00 00 [23:19:04]Write to MH i2c: E2 08 00 E6 09 80 11 00 00 00 00 00 00 69 [23:19:04]Write i2c OK [23:19:04]MH_I2C_Read... [23:19:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:19:04]Read from MH i2c: E2 [23:19:04]MH_I2C_Read... [23:19:04]Read from MH i2c: E2 17 00 [23:19:04]MH_I2C_Read... [23:19:04]Read from MH i2c: E2 17 00 E6 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 B4 [23:19:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [23:19:04]wFMCommunicate OK [23:19:04]requested_item fd.num is exist - process it [23:19:04]SAM_PROTO_GetFieldsCounters [23:19:04]wFMCommunicate request_size=4 [23:19:04]MH_SAM_APDU [23:19:04]CAPDU: 80 13 00 00 [23:19:04]Write to MH i2c: E2 08 00 E7 09 80 13 00 00 00 00 00 00 6C [23:19:04]Write i2c OK [23:19:04]MH_I2C_Read... [23:19:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:19:04]Read from MH i2c: E2 [23:19:04]MH_I2C_Read... [23:19:04]Read from MH i2c: E2 62 00 [23:19:04]MH_I2C_Read... [23:19:04]Read from MH i2c: E2 62 00 E7 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 8E 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 3B [23:19:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 8E 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:19:04]wFMCommunicate OK [23:19:04]SAM_PROTO_GetFieldsCounters done [23:19:04]requested_item shift.num is exist - process it [23:19:04]requested_item shift.opened is exist - process it [23:19:04]req_shift_opened [23:19:04]FM_GetShiftState [23:19:04]SAM_PROTO_GetShiftState [23:19:04]wFMCommunicate request_size=4 [23:19:04]MH_SAM_APDU [23:19:04]CAPDU: 80 13 01 00 [23:19:04]Write to MH i2c: E2 08 00 E8 09 80 13 01 00 00 00 00 00 6E [23:19:04]Write i2c OK [23:19:04]MH_I2C_Read... [23:19:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:19:04]Read from MH i2c: E2 [23:19:04]MH_I2C_Read... [23:19:04]Read from MH i2c: E2 0E 00 [23:19:04]MH_I2C_Read... [23:19:04]Read from MH i2c: E2 0E 00 E8 09 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 49 [23:19:04]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [23:19:04]wFMCommunicate OK [23:19:04]SAM_PROTO_GetShiftState done [23:19:04]FM_GetShiftState done [23:19:04]req_shift_opened done [23:19:04]requested_item shift.open_date is exist - process it [23:19:04]req_shift_open_date [23:19:04]req_shift_open_date done [23:19:04]produce_requested_data done [23:19:04]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68494,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [23:19:04]process_action_free close_receipt [23:19:04]json_value_free [23:19:04]json_value_free done [23:19:04]process_json_proto returns [23:19:04]Send response to host [23:19:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68494,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [23:19:04]free response buf [23:19:04]execute_script done [23:19:04]execute_script returns [23:19:04]free content buf [23:19:04]Sock 9.Close socket [23:19:04]Sock 9.Thread stoped [23:19:08]OFD Sender: No OFD packet to send [23:19:13]OFD Sender: No OFD packet to send [23:19:18]OFD Sender: No OFD packet to send [23:19:23]OFD Sender: No OFD packet to send [23:19:24]accept exits with 7 [23:19:24]New connection [23:19:24]New thread 3067084132 created [23:19:24]Thread 3067227492 joined [23:19:24]Waiting for new connection... [23:19:24] Sock 7.Parse request [23:19:24]Sock 7.Check first char [23:19:24]Sock 7.First char is OK [23:19:24]request: POST /json_proto HTTP/1.0 [23:19:24]Method: POST [23:19:24]URL: /json_proto [23:19:24]Method is POST - this is cgi request [23:19:24]url: /json_proto [23:19:24]query_string will be loaded in cgi processing [23:19:24]execute_cgi json_proto POST (null) [23:19:24]execute_cgi path=json_proto method=POST [23:19:24]POST find Content-Length [23:19:24]Host: 172.17.36.132:8080 [23:19:24]Content-Length: 677 [23:19:24]Content-Type: application/json [23:19:24] [23:19:24]POST finish read [23:19:24]Found Content-Length = 677 [23:19:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706609", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:19:24]execute_script... [23:19:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706609", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:19:24]POST & json_proto [23:19:24]process_json_proto [23:19:24]json parsed OK: [23:19:24]protocol is kg_v1.0 [23:19:24]action value=close_receipt [23:19:24]process_action close_receipt [23:19:24]cmd_close_receipt [23:19:24]MH_GetDate [23:19:24]Write to MH i2c: F0 00 00 E9 09 E1 [23:19:24]Write i2c OK [23:19:24]MH_I2C_Read... [23:19:24]Read from MH i2c: F0 [23:19:24]MH_I2C_Read... [23:19:24]Read from MH i2c: F0 09 00 [23:19:24]MH_I2C_Read... [23:19:24]Read from MH i2c: F0 09 00 E9 09 00 7D 4F 5E 66 B2 22 B0 64 62 [23:19:24]GetLastDocTimeStamp 1717456741 [23:19:24]current date 1717456765 [23:19:24]FM_GetShiftState [23:19:24]SAM_PROTO_GetShiftState [23:19:24]wFMCommunicate request_size=4 [23:19:24]MH_SAM_APDU [23:19:24]CAPDU: 80 13 01 00 [23:19:24]Write to MH i2c: E2 08 00 EA 09 80 13 01 00 00 00 00 00 70 [23:19:24]Write i2c OK [23:19:24]MH_I2C_Read... [23:19:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:19:24]Read from MH i2c: E2 [23:19:24]MH_I2C_Read... [23:19:24]Read from MH i2c: E2 0E 00 [23:19:24]MH_I2C_Read... [23:19:24]Read from MH i2c: E2 0E 00 EA 09 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 4B [23:19:24]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [23:19:24]wFMCommunicate OK [23:19:24]SAM_PROTO_GetShiftState done [23:19:24]FM_GetShiftState done [23:19:24]opened in 1717378033 [23:19:24]opened+sec_in_day 1717464433 [23:19:24]quantity*price = 20003 [23:19:24]sum+1 = 20004 [23:19:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 241 03.06.2024 23:19 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68495 ФПД: 25927213633953 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T231925&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68495&fm=25927213633953&tin=02508201610067®Number=0000000000098096&sum=20000 [23:19:25]StoreToDocumentArchive [23:19:25]shift 324 fd 68495 [23:19:25]save to /storage/0324/doc_00068495 [23:19:25]save last doc name /storage/0324/doc_00068495 to /storage/kkm_last_doc_name [23:19:25]save OK [23:19:25]Clear old archive folders... [23:19:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:19:25]tlvbuf is 00A3FAE0 [23:19:25]SAM_PROTO_ClearQueue [23:19:25]wFMCommunicate request_size=4 [23:19:25]MH_SAM_APDU [23:19:25]CAPDU: 80 09 00 00 [23:19:25]Write to MH i2c: E2 08 00 F7 09 80 09 00 00 00 00 00 00 72 [23:19:25]Write i2c OK [23:19:25]MH_I2C_Read... [23:19:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:19:25]Read from MH i2c: E2 [23:19:25]MH_I2C_Read... [23:19:25]Read from MH i2c: E2 03 00 [23:19:25]MH_I2C_Read... [23:19:25]Read from MH i2c: E2 03 00 F7 09 00 90 00 74 [23:19:25]RAPDU: 90 00 [23:19:25]wFMCommunicate OK [23:19:25]SAM_PROTO_ClearQueue done [23:19:25]KKMCreateOFDPacket [23:19:25]OFDProtocolAddRootSTLVToBuf [23:19:25]FM_MakeSignedData [23:19:25]FM_MakeSignedData [23:19:25]SAM_PROTO_SignData [23:19:25]wFMCommunicate request_size=4 [23:19:25]MH_SAM_APDU [23:19:25]CAPDU: 80 0D 01 02 [23:19:25]Write to MH i2c: E2 08 00 F8 09 80 0D 01 02 00 00 00 00 7A [23:19:26]Write i2c OK [23:19:26]MH_I2C_Read... [23:19:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:19:26]Read from MH i2c: E2 [23:19:26]MH_I2C_Read... [23:19:26]Read from MH i2c: E2 03 00 [23:19:26]MH_I2C_Read... [23:19:26]Read from MH i2c: E2 03 00 F8 09 00 90 00 75 [23:19:26]RAPDU: 90 00 [23:19:26]wFMCommunicate OK [23:19:26]wFMCommunicate request_size=255 [23:19:26]MH_SAM_APDU [23:19:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 7D 4F 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 8F 0B 01 00 35 04 06 00 17 [23:19:26]Write to MH i2c: E2 02 01 F9 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 7D 4F 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 8F 0B 01 00 35 04 06 00 17 00 00 41 [23:19:26]Write i2c OK [23:19:26]MH_I2C_Read... [23:19:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:19:26]Read from MH i2c: E2 [23:19:26]MH_I2C_Read... [23:19:26]Read from MH i2c: E2 03 00 [23:19:26]MH_I2C_Read... [23:19:26]Read from MH i2c: E2 03 00 F9 09 00 90 00 76 [23:19:26]RAPDU: 90 00 [23:19:26]wFMCommunicate OK [23:19:26]wFMCommunicate request_size=10 [23:19:26]MH_SAM_APDU [23:19:26]CAPDU: 80 0D 02 02 05 94 A6 5B D1 A1 [23:19:26]Write to MH i2c: E2 0D 00 FA 09 80 0D 02 02 05 00 94 A6 5B D1 A1 00 00 8E [23:19:26]Write i2c OK [23:19:26]MH_I2C_Read... [23:19:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:19:26]Read from MH i2c: E2 [23:19:26]MH_I2C_Read... [23:19:26]Read from MH i2c: E2 03 00 [23:19:26]MH_I2C_Read... [23:19:26]Read from MH i2c: E2 03 00 FA 09 00 90 00 77 [23:19:26]RAPDU: 90 00 [23:19:26]wFMCommunicate OK [23:19:26]wFMCommunicate request_size=4 [23:19:26]MH_SAM_APDU [23:19:26]CAPDU: 80 0D 03 02 [23:19:26]Write to MH i2c: E2 08 00 FB 09 80 0D 03 02 00 00 00 00 7F [23:19:26]Write i2c OK [23:19:26]MH_I2C_Read... [23:19:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:19:26]Read from MH i2c: E2 [23:19:26]MH_I2C_Read... [23:19:26]Read from MH i2c: E2 0B 00 [23:19:26]MH_I2C_Read... [23:19:26]Read from MH i2c: E2 0B 00 FB 09 00 20 81 75 73 CF 64 FF A6 90 00 E1 [23:19:26]RAPDU: 20 81 75 73 CF 64 FF A6 90 00 [23:19:26]wFMCommunicate OK [23:19:26]SAM_PROTO_SignData done [23:19:26]FM_MakeSignedData done [23:19:26]CreateOFDProtocolMessage [23:19:26]wFMCommunicate request_size=4 [23:19:26]MH_SAM_APDU [23:19:26]CAPDU: 80 11 00 00 [23:19:26]Write to MH i2c: E2 08 00 FC 09 80 11 00 00 00 00 00 00 7F [23:19:26]Write i2c OK [23:19:26]MH_I2C_Read... [23:19:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:19:26]Read from MH i2c: E2 [23:19:26]MH_I2C_Read... [23:19:26]Read from MH i2c: E2 17 00 [23:19:26]MH_I2C_Read... [23:19:26]Read from MH i2c: E2 17 00 FC 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 CA [23:19:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [23:19:26]wFMCommunicate OK [23:19:26]CreateOFDProtocolMessage done [23:19:26]OFDSenderStorePacket 68495 [23:19:26]StoreOFDPacket docnum=68495 [23:19:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 0F 91 07 01 94 50 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 7D 4F 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 8F 0B 01 00 35 04 06 00 17 94 A6 5B D1 A1 20 81 75 73 CF 64 FF A6 [23:19:26]CheckFolder [23:19:26]dirname=/storage/ofd_packets [23:19:26]CheckFolder done [23:19:26]ProducePacketName [23:19:26]name=ofd_packets/00068495 [23:19:26]NVStorageSaveData ofd_packets/00068495 [23:19:26]File name is /storage/ofd_packets/00068495 [23:19:26]Write 301 bytes [23:19:26]NVStorageSaveData done [23:19:26]OFDSenderStorePacket done [23:19:26]KKMCreateOFDPacket done [23:19:26]NVStorageSaveData kkm_last_timestamp [23:19:26]File name is /storage/kkm_last_timestamp [23:19:26]Write 4 bytes [23:19:26]NVStorageSaveData done [23:19:26]ExternCall_PrintAddStr [23:19:26]wPrintStart [23:19:26]Write to MH i2c: 01 00 00 FD 09 06 [23:19:26]Write i2c OK [23:19:26]MH_I2C_Read... [23:19:26]Read from MH i2c: 01 [23:19:26]MH_I2C_Read... [23:19:26]Read from MH i2c: 01 07 00 [23:19:26]MH_I2C_Read... [23:19:26]Read from MH i2c: 01 07 00 FD 09 00 00 00 00 00 FF 0F 1B [23:19:26]RasterBufferAndPrint [23:19:26]line Счет N : (1)706609 [23:19:26]line ИНН: 02508201610067 [23:19:26]line Контрольно-Кассовый Чек [23:19:26]line ПРОДАЖА [23:19:26]line ТРК (МРК, ГНК) : 53 [23:19:26]line Товар: 2710124130 [23:19:26]line Аи-92-К-4 [23:19:26]line 2.990 * 66.90 [23:19:26]line = 200.03 [23:19:26]line НДС 12% НСП 1% [23:19:26]line > о реализуемом товаре [23:19:26]line ОКРУГЛЕНИЕ: -0.03 [23:19:26]line ИТОГО: 200.00 [23:19:26]line Внесено: 200.00 [23:19:26]line СДАЧА: 0.00 [23:19:26]line НСП 1% : 1.77 [23:19:26]line НДС 12% : 21.24 [23:19:26]line Наличными: 200.00 [23:19:26]line Безнал.: 0.00 [23:19:26]line Место: АЗС № 62 "Партнер Нефть" [23:19:26]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [23:19:26]line СНО: Общий режим [23:19:26]line Чек 241 03.06.2024 23:19 [23:19:26]line Смена: 324 ФФД: 1.0 [23:19:26]line ЗНМ: 0300000181 [23:19:26]line РНМ: 0000000000098096 [23:19:26]line Версия ККМ: 001 [23:19:26]line ФМ: 0000000000965400 [23:19:26]line ФД: 68495 [23:19:26]line ФПД: 25927213633953 [23:19:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T231925&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68495&fm=25927213633953&tin=02508201610067®Number=0000000000098096&sum=20000 [23:19:26]OFD Sender: Processing packet 68495 [packets to send 26, broken 25] [23:19:26]ProducePacketName [23:19:26]name=ofd_packets/00068495 [23:19:26]OFD Sender: To server: pG, [23:19:26]CommunicateWithHost lk.salyk.kg:30040 [23:19:26]ConnectInit lk.salyk.kg [23:19:26]written 0, free lines is 4095 [23:19:26]Connected sock=10 [23:19:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 0F 91 07 01 94 50 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 7D 4F 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 8F 0B 01 00 35 04 06 00 17 94 A6 5B D1 A1 20 81 75 73 CF 64 FF A6 [23:19:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 68 C0 47 00 DA E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 8F 0B 01 00 F4 03 04 00 78 F6 5D 66 B6 04 01 00 00 D9 A4 17 13 B5 62 C0 30 [23:19:27]CommunicateWithHost err = 0 [23:19:27]CheckOFDResponse [23:19:27]1017 (14) - 77093643461234 [23:19:27]1041 (16) - 0000000000965400 [23:19:27]1040 (4) - 68495 [23:19:27]1012 (4) - 03.06.2024 16:59 [23:19:27]1206 (1) - 0 [23:19:27]OFD Sender: Remove packet 68495 [23:19:27]ProducePacketName [23:19:27]name=ofd_packets/00068495 [23:19:27]NVStorageDeleteData [23:19:27]Write to MH i2c: 01 00 00 28 0A 32 [23:19:27]Write i2c OK [23:19:27]MH_I2C_Read... [23:19:27]Read from MH i2c: 01 [23:19:27]MH_I2C_Read... [23:19:27]Read from MH i2c: 01 07 00 [23:19:27]MH_I2C_Read... [23:19:27]Read from MH i2c: 01 07 00 28 0A 00 00 00 00 00 D7 0C 1C [23:19:27]RasterBufferAndPrint [23:19:27]line [23:19:27]line [23:19:27]line [23:19:27]line [23:19:27]line [23:19:27]written 0, free lines is 3294 [23:19:27]MH_Cut [23:19:27]Write to MH i2c: D1 01 00 2F 0A 01 0B [23:19:27]Write i2c OK [23:19:27]MH_I2C_Read... [23:19:27]Read from MH i2c: D1 [23:19:27]MH_I2C_Read... [23:19:27]Read from MH i2c: D1 01 00 [23:19:27]MH_I2C_Read... [23:19:27]Read from MH i2c: D1 01 00 2F 0A 00 0A [23:19:27]Write to MH i2c: 01 00 00 30 0A 3A [23:19:27]Write i2c OK [23:19:27]MH_I2C_Read... [23:19:27]OFD Sender: No OFD packet to send [23:19:28]*** Cut start [23:19:28]*** Partial cut [23:19:28]*** CUTSNS_PIN = 1 [23:19:28]*** CUTSNS_PIN = 0 [23:19:28]*** Brake cut motor [23:19:28]Read from MH i2c: 01 [23:19:28]MH_I2C_Read... [23:19:28]*** Stop cut motor [23:19:28]Read from MH i2c: 01 07 00 [23:19:28]MH_I2C_Read... [23:19:28]*** Cut end [23:19:28]Read from MH i2c: 01 07 00 30 0A 00 00 00 00 00 FF 0F 4F [23:19:28]process_action close_receipt done [23:19:28]requested_data is exist [23:19:28]produce_requested_data [23:19:28]requested_item fm.sn is exist - process it [23:19:28]wFMCommunicate request_size=4 [23:19:28]MH_SAM_APDU [23:19:28]CAPDU: 80 11 00 00 [23:19:28]Write to MH i2c: E2 08 00 31 0A 80 11 00 00 00 00 00 00 B5 [23:19:28]Write i2c OK [23:19:28]MH_I2C_Read... [23:19:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:19:28]Read from MH i2c: E2 [23:19:28]MH_I2C_Read... [23:19:28]Read from MH i2c: E2 17 00 [23:19:28]MH_I2C_Read... [23:19:28]Read from MH i2c: E2 17 00 31 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 00 [23:19:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [23:19:28]wFMCommunicate OK [23:19:28]requested_item fd.num is exist - process it [23:19:28]SAM_PROTO_GetFieldsCounters [23:19:28]wFMCommunicate request_size=4 [23:19:28]MH_SAM_APDU [23:19:28]CAPDU: 80 13 00 00 [23:19:28]Write to MH i2c: E2 08 00 32 0A 80 13 00 00 00 00 00 00 B8 [23:19:28]Write i2c OK [23:19:28]MH_I2C_Read... [23:19:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:19:28]Read from MH i2c: E2 [23:19:28]MH_I2C_Read... [23:19:28]Read from MH i2c: E2 62 00 [23:19:28]MH_I2C_Read... [23:19:28]Read from MH i2c: E2 62 00 32 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 8F 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 8B [23:19:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 8F 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:19:28]wFMCommunicate OK [23:19:28]SAM_PROTO_GetFieldsCounters done [23:19:28]requested_item shift.num is exist - process it [23:19:28]requested_item shift.opened is exist - process it [23:19:28]req_shift_opened [23:19:28]FM_GetShiftState [23:19:28]SAM_PROTO_GetShiftState [23:19:28]wFMCommunicate request_size=4 [23:19:28]MH_SAM_APDU [23:19:28]CAPDU: 80 13 01 00 [23:19:28]Write to MH i2c: E2 08 00 33 0A 80 13 01 00 00 00 00 00 BA [23:19:28]Write i2c OK [23:19:28]MH_I2C_Read... [23:19:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:19:28]Read from MH i2c: E2 [23:19:28]MH_I2C_Read... [23:19:28]Read from MH i2c: E2 0E 00 [23:19:28]MH_I2C_Read... [23:19:28]Read from MH i2c: E2 0E 00 33 0A 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 95 [23:19:28]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [23:19:28]wFMCommunicate OK [23:19:28]SAM_PROTO_GetShiftState done [23:19:28]FM_GetShiftState done [23:19:28]req_shift_opened done [23:19:28]requested_item shift.open_date is exist - process it [23:19:28]req_shift_open_date [23:19:28]req_shift_open_date done [23:19:28]produce_requested_data done [23:19:28]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68495,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [23:19:28]process_action_free close_receipt [23:19:28]json_value_free [23:19:28]json_value_free done [23:19:28]process_json_proto returns [23:19:28]Send response to host [23:19:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68495,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [23:19:28]free response buf [23:19:28]execute_script done [23:19:28]execute_script returns [23:19:28]free content buf [23:19:28]Sock 7.Close socket [23:19:28]Sock 7.Thread stoped [23:19:32]OFD Sender: No OFD packet to send [23:19:37]OFD Sender: No OFD packet to send [23:19:42]OFD Sender: No OFD packet to send [23:19:47]OFD Sender: No OFD packet to send [23:19:52]OFD Sender: No OFD packet to send [23:19:57]OFD Sender: No OFD packet to send [23:20:02]OFD Sender: No OFD packet to send [23:20:07]OFD Sender: No OFD packet to send [23:20:12]OFD Sender: No OFD packet to send [23:20:17]OFD Sender: No OFD packet to send [23:20:22]OFD Sender: No OFD packet to send [23:20:27]OFD Sender: No OFD packet to send [23:20:32]OFD Sender: No OFD packet to send [23:20:37]OFD Sender: No OFD packet to send [23:20:42]OFD Sender: No OFD packet to send [23:20:44]accept exits with 9 [23:20:44]New connection [23:20:44]New thread 3067227492 created [23:20:44]Thread 3067084132 joined [23:20:44]Waiting for new connection... [23:20:44] Sock 9.Parse request [23:20:44]Sock 9.Check first char [23:20:44]Sock 9.First char is OK [23:20:44]request: POST /json_proto HTTP/1.0 [23:20:44]Method: POST [23:20:44]URL: /json_proto [23:20:44]Method is POST - this is cgi request [23:20:44]url: /json_proto [23:20:44]query_string will be loaded in cgi processing [23:20:44]execute_cgi json_proto POST (null) [23:20:44]execute_cgi path=json_proto method=POST [23:20:44]POST find Content-Length [23:20:44]Host: 172.17.36.132:8080 [23:20:44]Content-Length: 838 [23:20:44]Content-Type: application/json [23:20:44] [23:20:44]POST finish read [23:20:44]Found Content-Length = 838 [23:20:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706610", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 1.000, "sum" : 66.90, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 66.90 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:20:44]execute_script... [23:20:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706610", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 1.000, "sum" : 66.90, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 66.90 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:20:44]POST & json_proto [23:20:44]process_json_proto [23:20:44]json parsed OK: [23:20:44]protocol is kg_v1.0 [23:20:44]action value=close_receipt [23:20:44]process_action close_receipt [23:20:44]cmd_close_receipt [23:20:44]MH_GetDate [23:20:44]Write to MH i2c: F0 00 00 34 0A 2D [23:20:44]Write i2c OK [23:20:44]MH_I2C_Read... [23:20:44]Read from MH i2c: F0 [23:20:44]MH_I2C_Read... [23:20:44]Read from MH i2c: F0 09 00 [23:20:44]MH_I2C_Read... [23:20:44]Read from MH i2c: F0 09 00 34 0A 00 CD 4F 5E 66 B2 22 B0 64 FE [23:20:44]GetLastDocTimeStamp 1717456765 [23:20:44]current date 1717456845 [23:20:44]FM_GetShiftState [23:20:44]SAM_PROTO_GetShiftState [23:20:44]wFMCommunicate request_size=4 [23:20:44]MH_SAM_APDU [23:20:44]CAPDU: 80 13 01 00 [23:20:44]Write to MH i2c: E2 08 00 35 0A 80 13 01 00 00 00 00 00 BC [23:20:44]Write i2c OK [23:20:44]MH_I2C_Read... [23:20:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:20:44]Read from MH i2c: E2 [23:20:44]MH_I2C_Read... [23:20:44]Read from MH i2c: E2 0E 00 [23:20:44]MH_I2C_Read... [23:20:44]Read from MH i2c: E2 0E 00 35 0A 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 97 [23:20:44]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [23:20:44]wFMCommunicate OK [23:20:44]SAM_PROTO_GetShiftState done [23:20:44]FM_GetShiftState done [23:20:44]opened in 1717378033 [23:20:44]opened+sec_in_day 1717464433 [23:20:44]quantity*price = 6690 [23:20:44]sum+1 = 6691 [23:20:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 66.90 НСП 1% : 0.59 НДС 12% : 7.10 Наличными: 0.00 Безнал.: 66.90 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 242 03.06.2024 23:20 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68496 ФПД: 99529034848793 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T232045&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68496&fm=99529034848793&tin=02508201610067®Number=0000000000098096&sum=6690 [23:20:45]StoreToDocumentArchive [23:20:45]shift 324 fd 68496 [23:20:45]save to /storage/0324/doc_00068496 [23:20:45]save last doc name /storage/0324/doc_00068496 to /storage/kkm_last_doc_name [23:20:45]save OK [23:20:45]Clear old archive folders... [23:20:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:20:45]tlvbuf is 00A3A830 [23:20:45]SAM_PROTO_ClearQueue [23:20:45]wFMCommunicate request_size=4 [23:20:45]MH_SAM_APDU [23:20:45]CAPDU: 80 09 00 00 [23:20:45]Write to MH i2c: E2 08 00 42 0A 80 09 00 00 00 00 00 00 BE [23:20:45]Write i2c OK [23:20:45]MH_I2C_Read... [23:20:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:20:45]Read from MH i2c: E2 [23:20:45]MH_I2C_Read... [23:20:45]Read from MH i2c: E2 03 00 [23:20:45]MH_I2C_Read... [23:20:45]Read from MH i2c: E2 03 00 42 0A 00 90 00 C0 [23:20:45]RAPDU: 90 00 [23:20:45]wFMCommunicate OK [23:20:45]SAM_PROTO_ClearQueue done [23:20:45]KKMCreateOFDPacket [23:20:45]OFDProtocolAddRootSTLVToBuf [23:20:45]FM_MakeSignedData [23:20:45]FM_MakeSignedData [23:20:45]SAM_PROTO_SignData [23:20:45]wFMCommunicate request_size=4 [23:20:45]MH_SAM_APDU [23:20:45]CAPDU: 80 0D 01 02 [23:20:45]Write to MH i2c: E2 08 00 43 0A 80 0D 01 02 00 00 00 00 C6 [23:20:45]Write i2c OK [23:20:45]MH_I2C_Read... [23:20:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:20:45]Read from MH i2c: E2 [23:20:45]MH_I2C_Read... [23:20:45]Read from MH i2c: E2 03 00 [23:20:45]MH_I2C_Read... [23:20:45]Read from MH i2c: E2 03 00 43 0A 00 90 00 C1 [23:20:45]RAPDU: 90 00 [23:20:45]wFMCommunicate OK [23:20:45]wFMCommunicate request_size=255 [23:20:45]MH_SAM_APDU [23:20:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 22 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 22 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 22 1A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 CD 4F 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 90 0B 01 00 35 04 06 00 5A [23:20:45]Write to MH i2c: E2 02 01 44 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 22 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 22 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 22 1A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 CD 4F 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 90 0B 01 00 35 04 06 00 5A 00 00 B9 [23:20:45]Write i2c OK [23:20:45]MH_I2C_Read... [23:20:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:20:45]Read from MH i2c: E2 [23:20:45]MH_I2C_Read... [23:20:45]Read from MH i2c: E2 03 00 [23:20:45]MH_I2C_Read... [23:20:45]Read from MH i2c: E2 03 00 44 0A 00 90 00 C2 [23:20:45]RAPDU: 90 00 [23:20:45]wFMCommunicate OK [23:20:45]wFMCommunicate request_size=10 [23:20:45]MH_SAM_APDU [23:20:45]CAPDU: 80 0D 02 02 05 85 68 C4 5A 19 [23:20:45]Write to MH i2c: E2 0D 00 45 0A 80 0D 02 02 05 00 85 68 C4 5A 19 00 00 F7 [23:20:45]Write i2c OK [23:20:45]MH_I2C_Read... [23:20:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:20:45]Read from MH i2c: E2 [23:20:45]MH_I2C_Read... [23:20:45]Read from MH i2c: E2 03 00 [23:20:45]MH_I2C_Read... [23:20:45]Read from MH i2c: E2 03 00 45 0A 00 90 00 C3 [23:20:45]RAPDU: 90 00 [23:20:45]wFMCommunicate OK [23:20:45]wFMCommunicate request_size=4 [23:20:45]MH_SAM_APDU [23:20:45]CAPDU: 80 0D 03 02 [23:20:45]Write to MH i2c: E2 08 00 46 0A 80 0D 03 02 00 00 00 00 CB [23:20:45]Write i2c OK [23:20:45]MH_I2C_Read... [23:20:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:20:46]Read from MH i2c: E2 [23:20:46]MH_I2C_Read... [23:20:46]Read from MH i2c: E2 0B 00 [23:20:46]MH_I2C_Read... [23:20:46]Read from MH i2c: E2 0B 00 46 0A 00 B4 AB 52 98 46 C2 1D CF 90 00 09 [23:20:46]RAPDU: B4 AB 52 98 46 C2 1D CF 90 00 [23:20:46]wFMCommunicate OK [23:20:46]SAM_PROTO_SignData done [23:20:46]FM_MakeSignedData done [23:20:46]CreateOFDProtocolMessage [23:20:46]wFMCommunicate request_size=4 [23:20:46]MH_SAM_APDU [23:20:46]CAPDU: 80 11 00 00 [23:20:46]Write to MH i2c: E2 08 00 47 0A 80 11 00 00 00 00 00 00 CB [23:20:46]Write i2c OK [23:20:46]MH_I2C_Read... [23:20:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:20:46]Read from MH i2c: E2 [23:20:46]MH_I2C_Read... [23:20:46]Read from MH i2c: E2 17 00 [23:20:46]MH_I2C_Read... [23:20:46]Read from MH i2c: E2 17 00 47 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 16 [23:20:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [23:20:46]wFMCommunicate OK [23:20:46]CreateOFDProtocolMessage done [23:20:46]OFDSenderStorePacket 68496 [23:20:46]StoreOFDPacket docnum=68496 [23:20:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 10 E8 07 01 43 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 22 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 22 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 22 1A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 CD 4F 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 90 0B 01 00 35 04 06 00 5A 85 68 C4 5A 19 B4 AB 52 98 46 C2 1D CF [23:20:46]CheckFolder [23:20:46]dirname=/storage/ofd_packets [23:20:46]CheckFolder done [23:20:46]ProducePacketName [23:20:46]name=ofd_packets/00068496 [23:20:46]NVStorageSaveData ofd_packets/00068496 [23:20:46]File name is /storage/ofd_packets/00068496 [23:20:46]Write 301 bytes [23:20:46]NVStorageSaveData done [23:20:46]OFDSenderStorePacket done [23:20:46]KKMCreateOFDPacket done [23:20:46]NVStorageSaveData kkm_last_timestamp [23:20:46]File name is /storage/kkm_last_timestamp [23:20:46]Write 4 bytes [23:20:46]NVStorageSaveData done [23:20:46]ExternCall_PrintAddStr [23:20:46]wPrintStart [23:20:46]Write to MH i2c: 01 00 00 48 0A 52 [23:20:46]Write i2c OK [23:20:46]MH_I2C_Read... [23:20:46]Read from MH i2c: 01 [23:20:46]MH_I2C_Read... [23:20:46]Read from MH i2c: 01 07 00 [23:20:46]MH_I2C_Read... [23:20:46]Read from MH i2c: 01 07 00 48 0A 00 00 00 00 00 FF 0F 67 [23:20:46]RasterBufferAndPrint [23:20:46]line Счет N : (1)706610 [23:20:46]line ИНН: 02508201610067 [23:20:46]line Контрольно-Кассовый Чек [23:20:46]line ПРОДАЖА [23:20:46]line ТРК (МРК, ГНК) : 53 [23:20:46]line Товар: 2710124130 [23:20:46]line Аи-92-К-4 [23:20:46]line 1.000 * 66.90 [23:20:46]line = 66.90 [23:20:46]line НДС 12% НСП 1% [23:20:46]line > о реализуемом товаре [23:20:46]line ИТОГО: 66.90 [23:20:46]line НСП 1% : 0.59 [23:20:46]line НДС 12% : 7.10 [23:20:46]line Наличными: 0.00 [23:20:46]line Безнал.: 66.90 [23:20:46]line Место: АЗС № 62 "Партнер Нефть" [23:20:46]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [23:20:46]line СНО: Общий режим [23:20:46]line Чек 242 03.06.2024 23:20 [23:20:46]line Смена: 324 ФФД: 1.0 [23:20:46]line ЗНМ: 0300000181 [23:20:46]line РНМ: 0000000000098096 [23:20:46]line Версия ККМ: 001 [23:20:46]line Платежная система: АКБ Кыргызстан [23:20:46]line ФМ: 0000000000965400 [23:20:46]line ФД: 68496 [23:20:46]line ФПД: 99529034848793 [23:20:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T232045&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68496&fm=99529034848793&tin=02508201610067®Number=0000000000098096&sum=6690 [23:20:46]OFD Sender: Processing packet 68496 [packets to send 26, broken 25] [23:20:46]ProducePacketName [23:20:46]name=ofd_packets/00068496 [23:20:46]OFD Sender: To server: pG, [23:20:46]CommunicateWithHost lk.salyk.kg:30040 [23:20:46]ConnectInit lk.salyk.kg [23:20:46]written 0, free lines is 4095 [23:20:46]Connected sock=10 [23:20:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 10 E8 07 01 43 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 22 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 22 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 22 1A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 CD 4F 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 90 0B 01 00 35 04 06 00 5A 85 68 C4 5A 19 B4 AB 52 98 46 C2 1D CF [23:20:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 41 EF 47 00 8A 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 90 0B 01 00 F4 03 04 00 C8 F6 5D 66 B6 04 01 00 00 5B A9 E4 C8 CF 47 70 C6 [23:20:46]CommunicateWithHost err = 0 [23:20:46]CheckOFDResponse [23:20:46]1017 (14) - 77093643461234 [23:20:46]1041 (16) - 0000000000965400 [23:20:46]1040 (4) - 68496 [23:20:46]1012 (4) - 03.06.2024 17:00 [23:20:46]1206 (1) - 0 [23:20:46]OFD Sender: Remove packet 68496 [23:20:46]ProducePacketName [23:20:46]name=ofd_packets/00068496 [23:20:46]NVStorageDeleteData [23:20:46]Write to MH i2c: 01 00 00 72 0A 7C [23:20:46]Write i2c OK [23:20:46]MH_I2C_Read... [23:20:46]Read from MH i2c: 01 [23:20:46]MH_I2C_Read... [23:20:46]Read from MH i2c: 01 07 00 [23:20:46]MH_I2C_Read... [23:20:46]Read from MH i2c: 01 07 00 72 0A 00 00 00 00 00 F4 0C 83 [23:20:46]RasterBufferAndPrint [23:20:46]line [23:20:46]line [23:20:46]line [23:20:46]line [23:20:46]line [23:20:46]written 0, free lines is 3324 [23:20:46]MH_Cut [23:20:46]Write to MH i2c: D1 01 00 79 0A 01 55 [23:20:46]Write i2c OK [23:20:46]MH_I2C_Read... [23:20:46]Read from MH i2c: D1 [23:20:46]MH_I2C_Read... [23:20:46]Read from MH i2c: D1 01 00 [23:20:46]MH_I2C_Read... [23:20:46]Read from MH i2c: D1 01 00 79 0A 00 54 [23:20:46]Write to MH i2c: 01 00 00 7A 0A 84 [23:20:46]Write i2c OK [23:20:46]MH_I2C_Read... [23:20:47]OFD Sender: No OFD packet to send [23:20:47]*** Cut start [23:20:47]*** Partial cut [23:20:47]*** CUTSNS_PIN = 1 [23:20:47]*** CUTSNS_PIN = 0 [23:20:47]*** Brake cut motor [23:20:48]Read from MH i2c: 01 [23:20:48]MH_I2C_Read... [23:20:48]*** Stop cut motor [23:20:48]*** Cut end [23:20:48]Read from MH i2c: 01 07 00 [23:20:48]MH_I2C_Read... [23:20:48]Read from MH i2c: 01 07 00 7A 0A 00 00 00 00 00 FF 0F 99 [23:20:48]process_action close_receipt done [23:20:48]requested_data is exist [23:20:48]produce_requested_data [23:20:48]requested_item fm.sn is exist - process it [23:20:48]wFMCommunicate request_size=4 [23:20:48]MH_SAM_APDU [23:20:48]CAPDU: 80 11 00 00 [23:20:48]Write to MH i2c: E2 08 00 7B 0A 80 11 00 00 00 00 00 00 FF [23:20:48]Write i2c OK [23:20:48]MH_I2C_Read... [23:20:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:20:48]Read from MH i2c: E2 [23:20:48]MH_I2C_Read... [23:20:48]Read from MH i2c: E2 17 00 [23:20:48]MH_I2C_Read... [23:20:48]Read from MH i2c: E2 17 00 7B 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 4A [23:20:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [23:20:48]wFMCommunicate OK [23:20:48]requested_item fd.num is exist - process it [23:20:48]SAM_PROTO_GetFieldsCounters [23:20:48]wFMCommunicate request_size=4 [23:20:48]MH_SAM_APDU [23:20:48]CAPDU: 80 13 00 00 [23:20:48]Write to MH i2c: E2 08 00 7C 0A 80 13 00 00 00 00 00 00 02 [23:20:48]Write i2c OK [23:20:48]MH_I2C_Read... [23:20:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:20:48]Read from MH i2c: E2 [23:20:48]MH_I2C_Read... [23:20:48]Read from MH i2c: E2 62 00 [23:20:48]MH_I2C_Read... [23:20:48]Read from MH i2c: E2 62 00 7C 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 90 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 D9 [23:20:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 90 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:20:48]wFMCommunicate OK [23:20:48]SAM_PROTO_GetFieldsCounters done [23:20:48]requested_item shift.num is exist - process it [23:20:48]requested_item shift.opened is exist - process it [23:20:48]req_shift_opened [23:20:48]FM_GetShiftState [23:20:48]SAM_PROTO_GetShiftState [23:20:48]wFMCommunicate request_size=4 [23:20:48]MH_SAM_APDU [23:20:48]CAPDU: 80 13 01 00 [23:20:48]Write to MH i2c: E2 08 00 7D 0A 80 13 01 00 00 00 00 00 04 [23:20:48]Write i2c OK [23:20:48]MH_I2C_Read... [23:20:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:20:48]Read from MH i2c: E2 [23:20:48]MH_I2C_Read... [23:20:48]Read from MH i2c: E2 0E 00 [23:20:48]MH_I2C_Read... [23:20:48]Read from MH i2c: E2 0E 00 7D 0A 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 DF [23:20:48]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [23:20:48]wFMCommunicate OK [23:20:48]SAM_PROTO_GetShiftState done [23:20:48]FM_GetShiftState done [23:20:48]req_shift_opened done [23:20:48]requested_item shift.open_date is exist - process it [23:20:48]req_shift_open_date [23:20:48]req_shift_open_date done [23:20:48]produce_requested_data done [23:20:48]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68496,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [23:20:48]process_action_free close_receipt [23:20:48]json_value_free [23:20:48]json_value_free done [23:20:48]process_json_proto returns [23:20:48]Send response to host [23:20:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68496,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [23:20:48]free response buf [23:20:48]execute_script done [23:20:48]execute_script returns [23:20:48]free content buf [23:20:48]Sock 9.Close socket [23:20:48]Sock 9.Thread stoped [23:20:52]OFD Sender: No OFD packet to send [23:20:57]OFD Sender: No OFD packet to send [23:21:02]OFD Sender: No OFD packet to send [23:21:07]OFD Sender: No OFD packet to send [23:21:11]accept exits with 7 [23:21:11]New connection [23:21:11]New thread 3067084132 created [23:21:11]Thread 3067227492 joined [23:21:11]Waiting for new connection... [23:21:11] Sock 7.Parse request [23:21:11]Sock 7.Check first char [23:21:11]Sock 7.First char is OK [23:21:11]request: POST /json_proto HTTP/1.0 [23:21:11]Method: POST [23:21:11]URL: /json_proto [23:21:11]Method is POST - this is cgi request [23:21:11]url: /json_proto [23:21:11]query_string will be loaded in cgi processing [23:21:11]execute_cgi json_proto POST (null) [23:21:11]execute_cgi path=json_proto method=POST [23:21:11]POST find Content-Length [23:21:11]Host: 172.17.36.132:8080 [23:21:11]Content-Length: 840 [23:21:11]Content-Type: application/json [23:21:11] [23:21:11]POST finish read [23:21:11]Found Content-Length = 840 [23:21:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706611", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:21:11]execute_script... [23:21:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706611", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:21:11]POST & json_proto [23:21:11]process_json_proto [23:21:11]json parsed OK: [23:21:11]protocol is kg_v1.0 [23:21:11]action value=close_receipt [23:21:11]process_action close_receipt [23:21:11]cmd_close_receipt [23:21:11]MH_GetDate [23:21:11]Write to MH i2c: F0 00 00 7E 0A 77 [23:21:11]Write i2c OK [23:21:11]MH_I2C_Read... [23:21:11]Read from MH i2c: F0 [23:21:11]MH_I2C_Read... [23:21:11]Read from MH i2c: F0 09 00 [23:21:11]MH_I2C_Read... [23:21:11]Read from MH i2c: F0 09 00 7E 0A 00 E8 4F 5E 66 B2 22 B0 64 63 [23:21:11]GetLastDocTimeStamp 1717456845 [23:21:11]current date 1717456872 [23:21:11]FM_GetShiftState [23:21:11]SAM_PROTO_GetShiftState [23:21:11]wFMCommunicate request_size=4 [23:21:11]MH_SAM_APDU [23:21:11]CAPDU: 80 13 01 00 [23:21:11]Write to MH i2c: E2 08 00 7F 0A 80 13 01 00 00 00 00 00 06 [23:21:11]Write i2c OK [23:21:11]MH_I2C_Read... [23:21:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:21:11]Read from MH i2c: E2 [23:21:11]MH_I2C_Read... [23:21:11]Read from MH i2c: E2 0E 00 [23:21:11]MH_I2C_Read... [23:21:11]Read from MH i2c: E2 0E 00 7F 0A 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 E1 [23:21:11]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [23:21:11]wFMCommunicate OK [23:21:11]SAM_PROTO_GetShiftState done [23:21:11]FM_GetShiftState done [23:21:11]opened in 1717378033 [23:21:11]opened+sec_in_day 1717464433 [23:21:11]quantity*price = 30038 [23:21:11]sum+1 = 30039 [23:21:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.38 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.38 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 243 03.06.2024 23:21 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68497 ФПД: 223934917182812 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T232112&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68497&fm=223934917182812&tin=02508201610067®Number=0000000000098096&sum=30038 [23:21:12]StoreToDocumentArchive [23:21:12]shift 324 fd 68497 [23:21:12]save to /storage/0324/doc_00068497 [23:21:12]save last doc name /storage/0324/doc_00068497 to /storage/kkm_last_doc_name [23:21:12]save OK [23:21:12]Clear old archive folders... [23:21:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:21:12]tlvbuf is 00A3EAC0 [23:21:12]SAM_PROTO_ClearQueue [23:21:12]wFMCommunicate request_size=4 [23:21:12]MH_SAM_APDU [23:21:12]CAPDU: 80 09 00 00 [23:21:12]Write to MH i2c: E2 08 00 8C 0A 80 09 00 00 00 00 00 00 08 [23:21:12]Write i2c OK [23:21:12]MH_I2C_Read... [23:21:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:21:12]Read from MH i2c: E2 [23:21:12]MH_I2C_Read... [23:21:12]Read from MH i2c: E2 03 00 [23:21:12]MH_I2C_Read... [23:21:12]Read from MH i2c: E2 03 00 8C 0A 00 90 00 0A [23:21:12]RAPDU: 90 00 [23:21:12]wFMCommunicate OK [23:21:12]SAM_PROTO_ClearQueue done [23:21:12]KKMCreateOFDPacket [23:21:12]OFDProtocolAddRootSTLVToBuf [23:21:12]FM_MakeSignedData [23:21:12]FM_MakeSignedData [23:21:12]SAM_PROTO_SignData [23:21:12]wFMCommunicate request_size=4 [23:21:12]MH_SAM_APDU [23:21:12]CAPDU: 80 0D 01 02 [23:21:12]Write to MH i2c: E2 08 00 8D 0A 80 0D 01 02 00 00 00 00 10 [23:21:12]Write i2c OK [23:21:12]MH_I2C_Read... [23:21:12]OFD Sender: No OFD packet to send [23:21:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:21:12]Read from MH i2c: E2 [23:21:12]MH_I2C_Read... [23:21:12]Read from MH i2c: E2 03 00 [23:21:12]MH_I2C_Read... [23:21:12]Read from MH i2c: E2 03 00 8D 0A 00 90 00 0B [23:21:12]RAPDU: 90 00 [23:21:12]wFMCommunicate OK [23:21:12]wFMCommunicate request_size=255 [23:21:12]MH_SAM_APDU [23:21:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 E8 4F 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 91 0B 01 00 35 04 06 00 CB [23:21:12]Write to MH i2c: E2 02 01 8E 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 E8 4F 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 91 0B 01 00 35 04 06 00 CB 00 00 78 [23:21:12]Write i2c OK [23:21:12]MH_I2C_Read... [23:21:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:21:12]Read from MH i2c: E2 [23:21:12]MH_I2C_Read... [23:21:12]Read from MH i2c: E2 03 00 [23:21:12]MH_I2C_Read... [23:21:12]Read from MH i2c: E2 03 00 8E 0A 00 90 00 0C [23:21:12]RAPDU: 90 00 [23:21:12]wFMCommunicate OK [23:21:12]wFMCommunicate request_size=10 [23:21:12]MH_SAM_APDU [23:21:12]CAPDU: 80 0D 02 02 05 AA E9 31 05 5C [23:21:12]Write to MH i2c: E2 0D 00 8F 0A 80 0D 02 02 05 00 AA E9 31 05 5C 00 00 42 [23:21:12]Write i2c OK [23:21:12]MH_I2C_Read... [23:21:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:21:12]Read from MH i2c: E2 [23:21:12]MH_I2C_Read... [23:21:12]Read from MH i2c: E2 03 00 [23:21:12]MH_I2C_Read... [23:21:12]Read from MH i2c: E2 03 00 8F 0A 00 90 00 0D [23:21:12]RAPDU: 90 00 [23:21:12]wFMCommunicate OK [23:21:12]wFMCommunicate request_size=4 [23:21:12]MH_SAM_APDU [23:21:12]CAPDU: 80 0D 03 02 [23:21:12]Write to MH i2c: E2 08 00 90 0A 80 0D 03 02 00 00 00 00 15 [23:21:12]Write i2c OK [23:21:12]MH_I2C_Read... [23:21:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:21:12]Read from MH i2c: E2 [23:21:12]MH_I2C_Read... [23:21:12]Read from MH i2c: E2 0B 00 [23:21:12]MH_I2C_Read... [23:21:12]Read from MH i2c: E2 0B 00 90 0A 00 D0 35 32 69 95 2F D4 EC 90 00 3A [23:21:12]RAPDU: D0 35 32 69 95 2F D4 EC 90 00 [23:21:12]wFMCommunicate OK [23:21:12]SAM_PROTO_SignData done [23:21:12]FM_MakeSignedData done [23:21:12]CreateOFDProtocolMessage [23:21:12]wFMCommunicate request_size=4 [23:21:12]MH_SAM_APDU [23:21:12]CAPDU: 80 11 00 00 [23:21:12]Write to MH i2c: E2 08 00 91 0A 80 11 00 00 00 00 00 00 15 [23:21:12]Write i2c OK [23:21:12]MH_I2C_Read... [23:21:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:21:12]Read from MH i2c: E2 [23:21:12]MH_I2C_Read... [23:21:12]Read from MH i2c: E2 17 00 [23:21:12]MH_I2C_Read... [23:21:12]Read from MH i2c: E2 17 00 91 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 60 [23:21:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [23:21:12]wFMCommunicate OK [23:21:12]CreateOFDProtocolMessage done [23:21:12]OFDSenderStorePacket 68497 [23:21:12]StoreOFDPacket docnum=68497 [23:21:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 A0 54 07 01 FD A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 E8 4F 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 91 0B 01 00 35 04 06 00 CB AA E9 31 05 5C D0 35 32 69 95 2F D4 EC [23:21:12]CheckFolder [23:21:12]dirname=/storage/ofd_packets [23:21:12]CheckFolder done [23:21:12]ProducePacketName [23:21:12]name=ofd_packets/00068497 [23:21:12]NVStorageSaveData ofd_packets/00068497 [23:21:12]File name is /storage/ofd_packets/00068497 [23:21:12]Write 301 bytes [23:21:12]NVStorageSaveData done [23:21:12]OFDSenderStorePacket done [23:21:12]KKMCreateOFDPacket done [23:21:12]NVStorageSaveData kkm_last_timestamp [23:21:12]File name is /storage/kkm_last_timestamp [23:21:12]Write 4 bytes [23:21:12]NVStorageSaveData done [23:21:12]ExternCall_PrintAddStr [23:21:12]wPrintStart [23:21:12]Write to MH i2c: 01 00 00 92 0A 9C [23:21:12]Write i2c OK [23:21:12]MH_I2C_Read... [23:21:12]Read from MH i2c: 01 [23:21:12]MH_I2C_Read... [23:21:12]Read from MH i2c: 01 07 00 [23:21:12]MH_I2C_Read... [23:21:12]Read from MH i2c: 01 07 00 92 0A 00 00 00 00 00 FF 0F B1 [23:21:12]RasterBufferAndPrint [23:21:12]line Счет N : (1)706611 [23:21:12]line ИНН: 02508201610067 [23:21:12]line Контрольно-Кассовый Чек [23:21:12]line ПРОДАЖА [23:21:12]line ТРК (МРК, ГНК) : 32 [23:21:12]line Товар: 2710124130 [23:21:12]line Аи-92-К-4 [23:21:12]line 4.490 * 66.90 [23:21:12]line = 300.38 [23:21:12]line НДС 12% НСП 1% [23:21:12]line > о реализуемом товаре [23:21:12]line ИТОГО: 300.38 [23:21:12]line НСП 1% : 2.66 [23:21:12]line НДС 12% : 31.90 [23:21:12]line Наличными: 0.00 [23:21:12]line Безнал.: 300.38 [23:21:12]line Место: АЗС № 62 "Партнер Нефть" [23:21:12]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [23:21:12]line СНО: Общий режим [23:21:12]line Чек 243 03.06.2024 23:21 [23:21:12]line Смена: 324 ФФД: 1.0 [23:21:12]line ЗНМ: 0300000181 [23:21:12]line РНМ: 0000000000098096 [23:21:12]line Версия ККМ: 001 [23:21:12]line Платежная система: АКБ Кыргызстан [23:21:12]line ФМ: 0000000000965400 [23:21:12]line ФД: 68497 [23:21:12]line ФПД: 223934917182812 [23:21:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T232112&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68497&fm=223934917182812&tin=02508201610067®Number=0000000000098096&sum=30038 [23:21:13]OFD Sender: Processing packet 68497 [packets to send 26, broken 25] [23:21:13]ProducePacketName [23:21:13]name=ofd_packets/00068497 [23:21:13]OFD Sender: To server: pG, [23:21:13]CommunicateWithHost lk.salyk.kg:30040 [23:21:13]ConnectInit lk.salyk.kg [23:21:13]written 0, free lines is 4095 [23:21:13]Connected sock=10 [23:21:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 A0 54 07 01 FD A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 E8 4F 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 91 0B 01 00 35 04 06 00 CB AA E9 31 05 5C D0 35 32 69 95 2F D4 EC [23:21:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 58 74 47 00 C1 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 91 0B 01 00 F4 03 04 00 E2 F6 5D 66 B6 04 01 00 00 1D 21 AE DF FB 7A F7 FC [23:21:13]CommunicateWithHost err = 0 [23:21:13]CheckOFDResponse [23:21:13]1017 (14) - 77093643461234 [23:21:13]1041 (16) - 0000000000965400 [23:21:13]1040 (4) - 68497 [23:21:13]1012 (4) - 03.06.2024 17:01 [23:21:13]1206 (1) - 0 [23:21:13]OFD Sender: Remove packet 68497 [23:21:13]ProducePacketName [23:21:13]name=ofd_packets/00068497 [23:21:13]NVStorageDeleteData [23:21:13]Write to MH i2c: 01 00 00 BC 0A C6 [23:21:13]Write i2c OK [23:21:13]MH_I2C_Read... [23:21:13]Read from MH i2c: 01 [23:21:13]MH_I2C_Read... [23:21:13]Read from MH i2c: 01 07 00 [23:21:13]MH_I2C_Read... [23:21:13]Read from MH i2c: 01 07 00 BC 0A 00 00 00 00 00 F3 0C CC [23:21:13]RasterBufferAndPrint [23:21:13]line [23:21:13]line [23:21:13]line [23:21:13]line [23:21:13]line [23:21:13]written 0, free lines is 3321 [23:21:13]MH_Cut [23:21:13]Write to MH i2c: D1 01 00 C3 0A 01 9F [23:21:13]Write i2c OK [23:21:13]MH_I2C_Read... [23:21:13]Read from MH i2c: D1 [23:21:13]MH_I2C_Read... [23:21:13]Read from MH i2c: D1 01 00 [23:21:13]MH_I2C_Read... [23:21:13]Read from MH i2c: D1 01 00 C3 0A 00 9E [23:21:13]Write to MH i2c: 01 00 00 C4 0A CE [23:21:13]Write i2c OK [23:21:13]MH_I2C_Read... [23:21:13]OFD Sender: No OFD packet to send [23:21:14]*** Cut start [23:21:14]*** Partial cut [23:21:14]*** CUTSNS_PIN = 1 [23:21:14]*** CUTSNS_PIN = 0 [23:21:14]*** Brake cut motor [23:21:14]Read from MH i2c: 01 [23:21:14]MH_I2C_Read... [23:21:14]*** Stop cut motor [23:21:14]*** Cut end [23:21:14]Read from MH i2c: 01 07 00 [23:21:14]MH_I2C_Read... [23:21:14]Read from MH i2c: 01 07 00 C4 0A 00 00 00 00 00 FF 0F E3 [23:21:14]process_action close_receipt done [23:21:14]requested_data is exist [23:21:14]produce_requested_data [23:21:14]requested_item fm.sn is exist - process it [23:21:14]wFMCommunicate request_size=4 [23:21:14]MH_SAM_APDU [23:21:14]CAPDU: 80 11 00 00 [23:21:14]Write to MH i2c: E2 08 00 C5 0A 80 11 00 00 00 00 00 00 49 [23:21:14]Write i2c OK [23:21:14]MH_I2C_Read... [23:21:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:21:14]Read from MH i2c: E2 [23:21:14]MH_I2C_Read... [23:21:14]Read from MH i2c: E2 17 00 [23:21:14]MH_I2C_Read... [23:21:14]Read from MH i2c: E2 17 00 C5 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 94 [23:21:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [23:21:14]wFMCommunicate OK [23:21:14]requested_item fd.num is exist - process it [23:21:14]SAM_PROTO_GetFieldsCounters [23:21:14]wFMCommunicate request_size=4 [23:21:14]MH_SAM_APDU [23:21:14]CAPDU: 80 13 00 00 [23:21:14]Write to MH i2c: E2 08 00 C6 0A 80 13 00 00 00 00 00 00 4C [23:21:14]Write i2c OK [23:21:14]MH_I2C_Read... [23:21:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:21:15]Read from MH i2c: E2 [23:21:15]MH_I2C_Read... [23:21:15]Read from MH i2c: E2 62 00 [23:21:15]MH_I2C_Read... [23:21:15]Read from MH i2c: E2 62 00 C6 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 91 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 27 [23:21:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 91 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:21:15]wFMCommunicate OK [23:21:15]SAM_PROTO_GetFieldsCounters done [23:21:15]requested_item shift.num is exist - process it [23:21:15]requested_item shift.opened is exist - process it [23:21:15]req_shift_opened [23:21:15]FM_GetShiftState [23:21:15]SAM_PROTO_GetShiftState [23:21:15]wFMCommunicate request_size=4 [23:21:15]MH_SAM_APDU [23:21:15]CAPDU: 80 13 01 00 [23:21:15]Write to MH i2c: E2 08 00 C7 0A 80 13 01 00 00 00 00 00 4E [23:21:15]Write i2c OK [23:21:15]MH_I2C_Read... [23:21:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:21:15]Read from MH i2c: E2 [23:21:15]MH_I2C_Read... [23:21:15]Read from MH i2c: E2 0E 00 [23:21:15]MH_I2C_Read... [23:21:15]Read from MH i2c: E2 0E 00 C7 0A 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 29 [23:21:15]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [23:21:15]wFMCommunicate OK [23:21:15]SAM_PROTO_GetShiftState done [23:21:15]FM_GetShiftState done [23:21:15]req_shift_opened done [23:21:15]requested_item shift.open_date is exist - process it [23:21:15]req_shift_open_date [23:21:15]req_shift_open_date done [23:21:15]produce_requested_data done [23:21:15]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68497,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [23:21:15]process_action_free close_receipt [23:21:15]json_value_free [23:21:15]json_value_free done [23:21:15]process_json_proto returns [23:21:15]Send response to host [23:21:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68497,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [23:21:15]free response buf [23:21:15]execute_script done [23:21:15]execute_script returns [23:21:15]free content buf [23:21:15]Sock 7.Close socket [23:21:15]Sock 7.Thread stoped [23:21:18]OFD Sender: No OFD packet to send [23:21:23]OFD Sender: No OFD packet to send [23:21:28]OFD Sender: No OFD packet to send [23:21:33]OFD Sender: No OFD packet to send [23:21:38]OFD Sender: No OFD packet to send [23:21:43]OFD Sender: No OFD packet to send [23:21:48]OFD Sender: No OFD packet to send [23:21:53]OFD Sender: No OFD packet to send [23:21:58]OFD Sender: No OFD packet to send [23:22:00]accept exits with 9 [23:22:00]New connection [23:22:00]New thread 3067227492 created [23:22:00]Thread 3067084132 joined [23:22:00]Waiting for new connection... [23:22:00] Sock 9.Parse request [23:22:00]Sock 9.Check first char [23:22:00]Sock 9.First char is OK [23:22:00]request: POST /json_proto HTTP/1.0 [23:22:00]Method: POST [23:22:00]URL: /json_proto [23:22:00]Method is POST - this is cgi request [23:22:00]url: /json_proto [23:22:00]query_string will be loaded in cgi processing [23:22:00]execute_cgi json_proto POST (null) [23:22:00]execute_cgi path=json_proto method=POST [23:22:00]POST find Content-Length [23:22:00]Host: 172.17.36.132:8080 [23:22:00]Content-Length: 677 [23:22:00]Content-Type: application/json [23:22:00] [23:22:00]POST finish read [23:22:00]Found Content-Length = 677 [23:22:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706612", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:22:00]execute_script... [23:22:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706612", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:22:00]POST & json_proto [23:22:00]process_json_proto [23:22:00]json parsed OK: [23:22:00]protocol is kg_v1.0 [23:22:00]action value=close_receipt [23:22:00]process_action close_receipt [23:22:00]cmd_close_receipt [23:22:00]MH_GetDate [23:22:00]Write to MH i2c: F0 00 00 C8 0A C1 [23:22:00]Write i2c OK [23:22:00]MH_I2C_Read... [23:22:00]Read from MH i2c: F0 [23:22:00]MH_I2C_Read... [23:22:00]Read from MH i2c: F0 09 00 [23:22:00]MH_I2C_Read... [23:22:00]Read from MH i2c: F0 09 00 C8 0A 00 19 50 5E 66 B2 22 B0 64 DF [23:22:00]GetLastDocTimeStamp 1717456872 [23:22:00]current date 1717456921 [23:22:00]FM_GetShiftState [23:22:00]SAM_PROTO_GetShiftState [23:22:00]wFMCommunicate request_size=4 [23:22:00]MH_SAM_APDU [23:22:00]CAPDU: 80 13 01 00 [23:22:00]Write to MH i2c: E2 08 00 C9 0A 80 13 01 00 00 00 00 00 50 [23:22:00]Write i2c OK [23:22:00]MH_I2C_Read... [23:22:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:22:00]Read from MH i2c: E2 [23:22:00]MH_I2C_Read... [23:22:00]Read from MH i2c: E2 0E 00 [23:22:00]MH_I2C_Read... [23:22:00]Read from MH i2c: E2 0E 00 C9 0A 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 2B [23:22:00]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [23:22:00]wFMCommunicate OK [23:22:00]SAM_PROTO_GetShiftState done [23:22:00]FM_GetShiftState done [23:22:00]opened in 1717378033 [23:22:00]opened+sec_in_day 1717464433 [23:22:00]quantity*price = 30038 [23:22:00]sum+1 = 30039 [23:22:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 244 03.06.2024 23:22 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68498 ФПД: 74721106201208 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T232201&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68498&fm=74721106201208&tin=02508201610067®Number=0000000000098096&sum=30000 [23:22:01]StoreToDocumentArchive [23:22:01]shift 324 fd 68498 [23:22:01]save to /storage/0324/doc_00068498 [23:22:01]save last doc name /storage/0324/doc_00068498 to /storage/kkm_last_doc_name [23:22:01]save OK [23:22:01]Clear old archive folders... [23:22:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:22:01]tlvbuf is 00A013A0 [23:22:01]SAM_PROTO_ClearQueue [23:22:01]wFMCommunicate request_size=4 [23:22:01]MH_SAM_APDU [23:22:01]CAPDU: 80 09 00 00 [23:22:01]Write to MH i2c: E2 08 00 D6 0A 80 09 00 00 00 00 00 00 52 [23:22:01]Write i2c OK [23:22:01]MH_I2C_Read... [23:22:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:22:01]Read from MH i2c: E2 [23:22:01]MH_I2C_Read... [23:22:01]Read from MH i2c: E2 03 00 [23:22:01]MH_I2C_Read... [23:22:01]Read from MH i2c: E2 03 00 D6 0A 00 90 00 54 [23:22:01]RAPDU: 90 00 [23:22:01]wFMCommunicate OK [23:22:01]SAM_PROTO_ClearQueue done [23:22:01]KKMCreateOFDPacket [23:22:01]OFDProtocolAddRootSTLVToBuf [23:22:01]FM_MakeSignedData [23:22:01]FM_MakeSignedData [23:22:01]SAM_PROTO_SignData [23:22:01]wFMCommunicate request_size=4 [23:22:01]MH_SAM_APDU [23:22:01]CAPDU: 80 0D 01 02 [23:22:01]Write to MH i2c: E2 08 00 D7 0A 80 0D 01 02 00 00 00 00 5A [23:22:01]Write i2c OK [23:22:01]MH_I2C_Read... [23:22:01]Read from MH i2c: E2 [23:22:01]MH_I2C_Read... [23:22:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:22:01]Read from MH i2c: E2 03 00 [23:22:01]MH_I2C_Read... [23:22:01]Read from MH i2c: E2 03 00 D7 0A 00 90 00 55 [23:22:01]RAPDU: 90 00 [23:22:01]wFMCommunicate OK [23:22:01]wFMCommunicate request_size=255 [23:22:01]MH_SAM_APDU [23:22:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 19 50 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 92 0B 01 00 35 04 06 00 43 [23:22:01]Write to MH i2c: E2 02 01 D8 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 19 50 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 92 0B 01 00 35 04 06 00 43 00 00 22 [23:22:01]Write i2c OK [23:22:01]MH_I2C_Read... [23:22:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:22:01]Read from MH i2c: E2 [23:22:01]MH_I2C_Read... [23:22:01]Read from MH i2c: E2 03 00 [23:22:01]MH_I2C_Read... [23:22:01]Read from MH i2c: E2 03 00 D8 0A 00 90 00 56 [23:22:01]RAPDU: 90 00 [23:22:01]wFMCommunicate OK [23:22:01]wFMCommunicate request_size=10 [23:22:01]MH_SAM_APDU [23:22:01]CAPDU: 80 0D 02 02 05 F5 5C FE 0A 78 [23:22:01]Write to MH i2c: E2 0D 00 D9 0A 80 0D 02 02 05 00 F5 5C FE 0A 78 00 00 38 [23:22:01]Write i2c OK [23:22:01]MH_I2C_Read... [23:22:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:22:01]Read from MH i2c: E2 [23:22:01]MH_I2C_Read... [23:22:01]Read from MH i2c: E2 03 00 [23:22:01]MH_I2C_Read... [23:22:01]Read from MH i2c: E2 03 00 D9 0A 00 90 00 57 [23:22:01]RAPDU: 90 00 [23:22:01]wFMCommunicate OK [23:22:01]wFMCommunicate request_size=4 [23:22:01]MH_SAM_APDU [23:22:01]CAPDU: 80 0D 03 02 [23:22:01]Write to MH i2c: E2 08 00 DA 0A 80 0D 03 02 00 00 00 00 5F [23:22:01]Write i2c OK [23:22:01]MH_I2C_Read... [23:22:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:22:01]Read from MH i2c: E2 [23:22:01]MH_I2C_Read... [23:22:01]Read from MH i2c: E2 0B 00 [23:22:01]MH_I2C_Read... [23:22:01]Read from MH i2c: E2 0B 00 DA 0A 00 3E 5B CE 8A 94 00 33 99 90 00 B1 [23:22:01]RAPDU: 3E 5B CE 8A 94 00 33 99 90 00 [23:22:01]wFMCommunicate OK [23:22:01]SAM_PROTO_SignData done [23:22:01]FM_MakeSignedData done [23:22:01]CreateOFDProtocolMessage [23:22:01]wFMCommunicate request_size=4 [23:22:01]MH_SAM_APDU [23:22:01]CAPDU: 80 11 00 00 [23:22:01]Write to MH i2c: E2 08 00 DB 0A 80 11 00 00 00 00 00 00 5F [23:22:01]Write i2c OK [23:22:01]MH_I2C_Read... [23:22:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:22:01]Read from MH i2c: E2 [23:22:01]MH_I2C_Read... [23:22:01]Read from MH i2c: E2 17 00 [23:22:01]MH_I2C_Read... [23:22:01]Read from MH i2c: E2 17 00 DB 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 AA [23:22:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [23:22:01]wFMCommunicate OK [23:22:01]CreateOFDProtocolMessage done [23:22:01]OFDSenderStorePacket 68498 [23:22:01]StoreOFDPacket docnum=68498 [23:22:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 C2 05 07 01 28 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 19 50 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 92 0B 01 00 35 04 06 00 43 F5 5C FE 0A 78 3E 5B CE 8A 94 00 33 99 [23:22:01]CheckFolder [23:22:01]dirname=/storage/ofd_packets [23:22:01]CheckFolder done [23:22:01]ProducePacketName [23:22:01]name=ofd_packets/00068498 [23:22:01]NVStorageSaveData ofd_packets/00068498 [23:22:01]File name is /storage/ofd_packets/00068498 [23:22:01]Write 301 bytes [23:22:01]NVStorageSaveData done [23:22:01]OFDSenderStorePacket done [23:22:01]KKMCreateOFDPacket done [23:22:01]NVStorageSaveData kkm_last_timestamp [23:22:01]File name is /storage/kkm_last_timestamp [23:22:01]Write 4 bytes [23:22:01]NVStorageSaveData done [23:22:01]ExternCall_PrintAddStr [23:22:01]wPrintStart [23:22:01]Write to MH i2c: 01 00 00 DC 0A E6 [23:22:01]Write i2c OK [23:22:01]MH_I2C_Read... [23:22:01]Read from MH i2c: 01 [23:22:01]MH_I2C_Read... [23:22:01]Read from MH i2c: 01 07 00 [23:22:01]MH_I2C_Read... [23:22:01]Read from MH i2c: 01 07 00 DC 0A 00 00 00 00 00 FF 0F FB [23:22:01]RasterBufferAndPrint [23:22:01]line Счет N : (1)706612 [23:22:01]line ИНН: 02508201610067 [23:22:01]line Контрольно-Кассовый Чек [23:22:01]line ПРОДАЖА [23:22:01]line ТРК (МРК, ГНК) : 32 [23:22:01]line Товар: 2710124130 [23:22:01]line Аи-92-К-4 [23:22:01]line 4.490 * 66.90 [23:22:01]line = 300.38 [23:22:01]line НДС 12% НСП 1% [23:22:01]line > о реализуемом товаре [23:22:01]line ОКРУГЛЕНИЕ: -0.38 [23:22:01]line ИТОГО: 300.00 [23:22:01]line Внесено: 300.00 [23:22:01]line СДАЧА: 0.00 [23:22:01]line НСП 1% : 2.66 [23:22:01]line НДС 12% : 31.90 [23:22:01]line Наличными: 300.00 [23:22:01]line Безнал.: 0.00 [23:22:01]line Место: АЗС № 62 "Партнер Нефть" [23:22:01]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [23:22:01]line СНО: Общий режим [23:22:01]line Чек 244 03.06.2024 23:22 [23:22:01]line Смена: 324 ФФД: 1.0 [23:22:02]line ЗНМ: 0300000181 [23:22:02]line РНМ: 0000000000098096 [23:22:02]line Версия ККМ: 001 [23:22:02]line ФМ: 0000000000965400 [23:22:02]line ФД: 68498 [23:22:02]line ФПД: 74721106201208 [23:22:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T232201&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68498&fm=74721106201208&tin=02508201610067®Number=0000000000098096&sum=30000 [23:22:02]OFD Sender: Processing packet 68498 [packets to send 26, broken 25] [23:22:02]ProducePacketName [23:22:02]name=ofd_packets/00068498 [23:22:02]OFD Sender: To server: pG, [23:22:02]CommunicateWithHost lk.salyk.kg:30040 [23:22:02]ConnectInit lk.salyk.kg [23:22:02]written 0, free lines is 4095 [23:22:02]Connected sock=10 [23:22:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 C2 05 07 01 28 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 19 50 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 92 0B 01 00 35 04 06 00 43 F5 5C FE 0A 78 3E 5B CE 8A 94 00 33 99 [23:22:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 D9 99 47 00 3B 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 92 0B 01 00 F4 03 04 00 13 F7 5D 66 B6 04 01 00 00 8E 9B 23 99 4E 72 76 9D [23:22:02]CommunicateWithHost err = 0 [23:22:02]CheckOFDResponse [23:22:02]1017 (14) - 77093643461234 [23:22:02]1041 (16) - 0000000000965400 [23:22:02]1040 (4) - 68498 [23:22:02]1012 (4) - 03.06.2024 17:02 [23:22:02]1206 (1) - 0 [23:22:02]OFD Sender: Remove packet 68498 [23:22:02]ProducePacketName [23:22:02]name=ofd_packets/00068498 [23:22:02]NVStorageDeleteData [23:22:02]Write to MH i2c: 01 00 00 07 0B 12 [23:22:02]Write i2c OK [23:22:02]MH_I2C_Read... [23:22:02]Read from MH i2c: 01 [23:22:02]MH_I2C_Read... [23:22:02]Read from MH i2c: 01 07 00 [23:22:02]MH_I2C_Read... [23:22:02]Read from MH i2c: 01 07 00 07 0B 00 00 00 00 00 DC 0C 01 [23:22:02]RasterBufferAndPrint [23:22:02]line [23:22:02]line [23:22:02]line [23:22:02]line [23:22:02]line [23:22:02]written 0, free lines is 3299 [23:22:02]MH_Cut [23:22:02]Write to MH i2c: D1 01 00 0E 0B 01 EB [23:22:02]Write i2c OK [23:22:02]MH_I2C_Read... [23:22:02]Read from MH i2c: D1 [23:22:02]MH_I2C_Read... [23:22:02]Read from MH i2c: D1 01 00 [23:22:02]MH_I2C_Read... [23:22:02]Read from MH i2c: D1 01 00 0E 0B 00 EA [23:22:02]Write to MH i2c: 01 00 00 0F 0B 1A [23:22:02]Write i2c OK [23:22:02]MH_I2C_Read... [23:22:02]OFD Sender: No OFD packet to send [23:22:03]*** Cut start [23:22:03]*** Partial cut [23:22:03]*** CUTSNS_PIN = 1 [23:22:03]*** CUTSNS_PIN = 0 [23:22:03]*** Brake cut motor [23:22:04]Read from MH i2c: 01 [23:22:04]MH_I2C_Read... [23:22:04]*** Stop cut motor [23:22:04]*** Cut end [23:22:04]Read from MH i2c: 01 07 00 [23:22:04]MH_I2C_Read... [23:22:04]Read from MH i2c: 01 07 00 0F 0B 00 00 00 00 00 FF 0F 2F [23:22:04]process_action close_receipt done [23:22:04]requested_data is exist [23:22:04]produce_requested_data [23:22:04]requested_item fm.sn is exist - process it [23:22:04]wFMCommunicate request_size=4 [23:22:04]MH_SAM_APDU [23:22:04]CAPDU: 80 11 00 00 [23:22:04]Write to MH i2c: E2 08 00 10 0B 80 11 00 00 00 00 00 00 95 [23:22:04]Write i2c OK [23:22:04]MH_I2C_Read... [23:22:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:22:04]Read from MH i2c: E2 [23:22:04]MH_I2C_Read... [23:22:04]Read from MH i2c: E2 17 00 [23:22:04]MH_I2C_Read... [23:22:04]Read from MH i2c: E2 17 00 10 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 E0 [23:22:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [23:22:04]wFMCommunicate OK [23:22:04]requested_item fd.num is exist - process it [23:22:04]SAM_PROTO_GetFieldsCounters [23:22:04]wFMCommunicate request_size=4 [23:22:04]MH_SAM_APDU [23:22:04]CAPDU: 80 13 00 00 [23:22:04]Write to MH i2c: E2 08 00 11 0B 80 13 00 00 00 00 00 00 98 [23:22:04]Write i2c OK [23:22:04]MH_I2C_Read... [23:22:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:22:04]Read from MH i2c: E2 [23:22:04]MH_I2C_Read... [23:22:04]Read from MH i2c: E2 62 00 [23:22:04]MH_I2C_Read... [23:22:04]Read from MH i2c: E2 62 00 11 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 92 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 77 [23:22:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 92 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:22:04]wFMCommunicate OK [23:22:04]SAM_PROTO_GetFieldsCounters done [23:22:04]requested_item shift.num is exist - process it [23:22:04]requested_item shift.opened is exist - process it [23:22:04]req_shift_opened [23:22:04]FM_GetShiftState [23:22:04]SAM_PROTO_GetShiftState [23:22:04]wFMCommunicate request_size=4 [23:22:04]MH_SAM_APDU [23:22:04]CAPDU: 80 13 01 00 [23:22:04]Write to MH i2c: E2 08 00 12 0B 80 13 01 00 00 00 00 00 9A [23:22:04]Write i2c OK [23:22:04]MH_I2C_Read... [23:22:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:22:04]Read from MH i2c: E2 [23:22:04]MH_I2C_Read... [23:22:04]Read from MH i2c: E2 0E 00 [23:22:04]MH_I2C_Read... [23:22:04]Read from MH i2c: E2 0E 00 12 0B 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 75 [23:22:04]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [23:22:04]wFMCommunicate OK [23:22:04]SAM_PROTO_GetShiftState done [23:22:04]FM_GetShiftState done [23:22:04]req_shift_opened done [23:22:04]requested_item shift.open_date is exist - process it [23:22:04]req_shift_open_date [23:22:04]req_shift_open_date done [23:22:04]produce_requested_data done [23:22:04]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68498,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [23:22:04]process_action_free close_receipt [23:22:04]json_value_free [23:22:04]json_value_free done [23:22:04]process_json_proto returns [23:22:04]Send response to host [23:22:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68498,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [23:22:04]free response buf [23:22:04]execute_script done [23:22:04]execute_script returns [23:22:04]free content buf [23:22:04]Sock 9.Close socket [23:22:04]Sock 9.Thread stoped [23:22:07]OFD Sender: No OFD packet to send [23:22:12]OFD Sender: No OFD packet to send [23:22:17]OFD Sender: No OFD packet to send [23:22:22]OFD Sender: No OFD packet to send [23:22:27]OFD Sender: No OFD packet to send [23:22:32]OFD Sender: No OFD packet to send [23:22:37]OFD Sender: No OFD packet to send [23:22:42]OFD Sender: No OFD packet to send [23:22:47]OFD Sender: No OFD packet to send [23:22:52]OFD Sender: No OFD packet to send [23:22:57]OFD Sender: No OFD packet to send [23:23:02]OFD Sender: No OFD packet to send [23:23:07]OFD Sender: No OFD packet to send [23:23:12]OFD Sender: No OFD packet to send [23:23:17]OFD Sender: No OFD packet to send [23:23:23]OFD Sender: No OFD packet to send [23:23:28]OFD Sender: No OFD packet to send [23:23:33]OFD Sender: No OFD packet to send [23:23:38]OFD Sender: No OFD packet to send [23:23:43]OFD Sender: No OFD packet to send [23:23:48]OFD Sender: No OFD packet to send [23:23:53]OFD Sender: No OFD packet to send [23:23:58]OFD Sender: No OFD packet to send [23:24:03]OFD Sender: No OFD packet to send [23:24:08]OFD Sender: No OFD packet to send [23:24:13]OFD Sender: No OFD packet to send [23:24:18]OFD Sender: No OFD packet to send [23:24:23]OFD Sender: No OFD packet to send [23:24:28]OFD Sender: No OFD packet to send [23:24:33]OFD Sender: No OFD packet to send [23:24:38]OFD Sender: No OFD packet to send [23:24:43]OFD Sender: No OFD packet to send [23:24:48]OFD Sender: No OFD packet to send [23:24:53]OFD Sender: No OFD packet to send [23:24:58]OFD Sender: No OFD packet to send [23:25:03]OFD Sender: No OFD packet to send [23:25:08]OFD Sender: No OFD packet to send [23:25:13]OFD Sender: No OFD packet to send [23:25:18]OFD Sender: No OFD packet to send [23:25:23]OFD Sender: No OFD packet to send [23:25:28]OFD Sender: No OFD packet to send [23:25:33]OFD Sender: No OFD packet to send [23:25:38]OFD Sender: No OFD packet to send [23:25:43]OFD Sender: No OFD packet to send [23:25:48]OFD Sender: No OFD packet to send [23:25:53]OFD Sender: No OFD packet to send [23:25:58]OFD Sender: No OFD packet to send [23:26:03]OFD Sender: No OFD packet to send [23:26:08]OFD Sender: No OFD packet to send [23:26:13]OFD Sender: No OFD packet to send [23:26:18]OFD Sender: No OFD packet to send [23:26:23]OFD Sender: No OFD packet to send [23:26:28]OFD Sender: No OFD packet to send [23:26:33]OFD Sender: No OFD packet to send [23:26:38]OFD Sender: No OFD packet to send [23:26:43]OFD Sender: No OFD packet to send [23:26:48]OFD Sender: No OFD packet to send [23:26:53]OFD Sender: No OFD packet to send [23:26:58]OFD Sender: No OFD packet to send [23:27:03]OFD Sender: No OFD packet to send [23:27:08]OFD Sender: No OFD packet to send [23:27:13]OFD Sender: No OFD packet to send [23:27:18]OFD Sender: No OFD packet to send [23:27:23]OFD Sender: No OFD packet to send [23:27:28]OFD Sender: No OFD packet to send [23:27:33]OFD Sender: No OFD packet to send [23:27:38]OFD Sender: No OFD packet to send [23:27:43]OFD Sender: No OFD packet to send [23:27:48]OFD Sender: No OFD packet to send [23:27:53]OFD Sender: No OFD packet to send [23:27:58]OFD Sender: No OFD packet to send [23:28:03]OFD Sender: No OFD packet to send [23:28:08]OFD Sender: No OFD packet to send [23:28:13]OFD Sender: No OFD packet to send [23:28:18]OFD Sender: No OFD packet to send [23:28:23]OFD Sender: No OFD packet to send [23:28:28]OFD Sender: No OFD packet to send [23:28:33]OFD Sender: No OFD packet to send [23:28:38]OFD Sender: No OFD packet to send [23:28:43]OFD Sender: No OFD packet to send [23:28:48]OFD Sender: No OFD packet to send [23:28:53]OFD Sender: No OFD packet to send [23:28:58]OFD Sender: No OFD packet to send [23:29:03]OFD Sender: No OFD packet to send [23:29:08]OFD Sender: No OFD packet to send [23:29:13]OFD Sender: No OFD packet to send [23:29:18]OFD Sender: No OFD packet to send [23:29:23]OFD Sender: No OFD packet to send [23:29:28]OFD Sender: No OFD packet to send [23:29:33]OFD Sender: No OFD packet to send [23:29:38]OFD Sender: No OFD packet to send [23:29:43]OFD Sender: No OFD packet to send [23:29:48]OFD Sender: No OFD packet to send [23:29:53]OFD Sender: No OFD packet to send [23:29:58]OFD Sender: No OFD packet to send [23:30:03]OFD Sender: No OFD packet to send [23:30:08]OFD Sender: No OFD packet to send [23:30:13]OFD Sender: No OFD packet to send [23:30:18]OFD Sender: No OFD packet to send [23:30:23]OFD Sender: No OFD packet to send [23:30:28]OFD Sender: No OFD packet to send [23:30:33]OFD Sender: No OFD packet to send [23:30:38]OFD Sender: No OFD packet to send [23:30:43]OFD Sender: No OFD packet to send [23:30:48]OFD Sender: No OFD packet to send [23:30:53]OFD Sender: No OFD packet to send [23:30:58]OFD Sender: No OFD packet to send [23:31:03]OFD Sender: No OFD packet to send [23:31:08]OFD Sender: No OFD packet to send [23:31:13]OFD Sender: No OFD packet to send [23:31:18]OFD Sender: No OFD packet to send [23:31:23]OFD Sender: No OFD packet to send [23:31:28]OFD Sender: No OFD packet to send [23:31:33]OFD Sender: No OFD packet to send [23:31:38]OFD Sender: No OFD packet to send [23:31:43]OFD Sender: No OFD packet to send [23:31:48]OFD Sender: No OFD packet to send [23:31:53]OFD Sender: No OFD packet to send [23:31:58]OFD Sender: No OFD packet to send [23:32:03]OFD Sender: No OFD packet to send [23:32:08]OFD Sender: No OFD packet to send [23:32:13]OFD Sender: No OFD packet to send [23:32:18]OFD Sender: No OFD packet to send [23:32:23]OFD Sender: No OFD packet to send [23:32:28]OFD Sender: No OFD packet to send [23:32:33]OFD Sender: No OFD packet to send [23:32:38]OFD Sender: No OFD packet to send [23:32:43]OFD Sender: No OFD packet to send [23:32:48]OFD Sender: No OFD packet to send [23:32:53]OFD Sender: No OFD packet to send [23:32:58]OFD Sender: No OFD packet to send [23:33:03]OFD Sender: No OFD packet to send [23:33:08]OFD Sender: No OFD packet to send [23:33:13]OFD Sender: No OFD packet to send [23:33:18]OFD Sender: No OFD packet to send [23:33:23]OFD Sender: No OFD packet to send [23:33:28]OFD Sender: No OFD packet to send [23:33:33]OFD Sender: No OFD packet to send [23:33:38]OFD Sender: No OFD packet to send [23:33:43]OFD Sender: No OFD packet to send [23:33:48]OFD Sender: No OFD packet to send [23:33:53]OFD Sender: No OFD packet to send [23:33:58]OFD Sender: No OFD packet to send [23:34:03]OFD Sender: No OFD packet to send [23:34:08]OFD Sender: No OFD packet to send [23:34:13]OFD Sender: No OFD packet to send [23:34:18]OFD Sender: No OFD packet to send [23:34:23]OFD Sender: No OFD packet to send [23:34:28]OFD Sender: No OFD packet to send [23:34:33]OFD Sender: No OFD packet to send [23:34:38]OFD Sender: No OFD packet to send [23:34:43]OFD Sender: No OFD packet to send [23:34:48]OFD Sender: No OFD packet to send [23:34:53]OFD Sender: No OFD packet to send [23:34:58]OFD Sender: No OFD packet to send [23:35:03]OFD Sender: No OFD packet to send [23:35:08]OFD Sender: No OFD packet to send [23:35:13]OFD Sender: No OFD packet to send [23:35:18]OFD Sender: No OFD packet to send [23:35:23]OFD Sender: No OFD packet to send [23:35:28]OFD Sender: No OFD packet to send [23:35:33]OFD Sender: No OFD packet to send [23:35:38]OFD Sender: No OFD packet to send [23:35:43]OFD Sender: No OFD packet to send [23:35:48]OFD Sender: No OFD packet to send [23:35:53]OFD Sender: No OFD packet to send [23:35:58]OFD Sender: No OFD packet to send [23:36:03]OFD Sender: No OFD packet to send [23:36:08]OFD Sender: No OFD packet to send [23:36:13]OFD Sender: No OFD packet to send [23:36:18]OFD Sender: No OFD packet to send [23:36:23]OFD Sender: No OFD packet to send [23:36:28]OFD Sender: No OFD packet to send [23:36:33]OFD Sender: No OFD packet to send [23:36:38]OFD Sender: No OFD packet to send [23:36:43]OFD Sender: No OFD packet to send [23:36:48]OFD Sender: No OFD packet to send [23:36:53]OFD Sender: No OFD packet to send [23:36:58]OFD Sender: No OFD packet to send [23:37:03]OFD Sender: No OFD packet to send [23:37:08]OFD Sender: No OFD packet to send [23:37:13]OFD Sender: No OFD packet to send [23:37:18]OFD Sender: No OFD packet to send [23:37:23]OFD Sender: No OFD packet to send [23:37:28]OFD Sender: No OFD packet to send [23:37:33]OFD Sender: No OFD packet to send [23:37:38]OFD Sender: No OFD packet to send [23:37:43]OFD Sender: No OFD packet to send [23:37:48]OFD Sender: No OFD packet to send [23:37:53]OFD Sender: No OFD packet to send [23:37:58]OFD Sender: No OFD packet to send [23:38:03]OFD Sender: No OFD packet to send [23:38:08]OFD Sender: No OFD packet to send [23:38:13]OFD Sender: No OFD packet to send [23:38:18]OFD Sender: No OFD packet to send [23:38:23]OFD Sender: No OFD packet to send [23:38:28]OFD Sender: No OFD packet to send [23:38:33]OFD Sender: No OFD packet to send [23:38:38]OFD Sender: No OFD packet to send [23:38:43]OFD Sender: No OFD packet to send [23:38:48]OFD Sender: No OFD packet to send [23:38:53]OFD Sender: No OFD packet to send [23:38:58]OFD Sender: No OFD packet to send [23:39:03]OFD Sender: No OFD packet to send [23:39:08]OFD Sender: No OFD packet to send [23:39:13]OFD Sender: No OFD packet to send [23:39:18]OFD Sender: No OFD packet to send [23:39:23]OFD Sender: No OFD packet to send [23:39:28]OFD Sender: No OFD packet to send [23:39:33]OFD Sender: No OFD packet to send [23:39:38]OFD Sender: No OFD packet to send [23:39:43]OFD Sender: No OFD packet to send [23:39:48]OFD Sender: No OFD packet to send [23:39:53]OFD Sender: No OFD packet to send [23:39:58]OFD Sender: No OFD packet to send [23:40:03]OFD Sender: No OFD packet to send [23:40:08]OFD Sender: No OFD packet to send [23:40:13]OFD Sender: No OFD packet to send [23:40:18]OFD Sender: No OFD packet to send [23:40:23]OFD Sender: No OFD packet to send [23:40:28]OFD Sender: No OFD packet to send [23:40:33]OFD Sender: No OFD packet to send [23:40:38]OFD Sender: No OFD packet to send [23:40:43]OFD Sender: No OFD packet to send [23:40:48]OFD Sender: No OFD packet to send [23:40:53]OFD Sender: No OFD packet to send [23:40:58]OFD Sender: No OFD packet to send [23:41:03]OFD Sender: No OFD packet to send [23:41:08]OFD Sender: No OFD packet to send [23:41:13]OFD Sender: No OFD packet to send [23:41:18]OFD Sender: No OFD packet to send [23:41:23]OFD Sender: No OFD packet to send [23:41:28]OFD Sender: No OFD packet to send [23:41:33]OFD Sender: No OFD packet to send [23:41:38]OFD Sender: No OFD packet to send [23:41:43]OFD Sender: No OFD packet to send [23:41:48]OFD Sender: No OFD packet to send [23:41:53]OFD Sender: No OFD packet to send [23:41:58]OFD Sender: No OFD packet to send [23:42:03]OFD Sender: No OFD packet to send [23:42:08]OFD Sender: No OFD packet to send [23:42:13]OFD Sender: No OFD packet to send [23:42:18]OFD Sender: No OFD packet to send [23:42:23]OFD Sender: No OFD packet to send [23:42:28]OFD Sender: No OFD packet to send [23:42:33]OFD Sender: No OFD packet to send [23:42:38]OFD Sender: No OFD packet to send [23:42:43]OFD Sender: No OFD packet to send [23:42:48]OFD Sender: No OFD packet to send [23:42:53]OFD Sender: No OFD packet to send [23:42:58]OFD Sender: No OFD packet to send [23:43:03]OFD Sender: No OFD packet to send [23:43:08]OFD Sender: No OFD packet to send [23:43:13]OFD Sender: No OFD packet to send [23:43:18]OFD Sender: No OFD packet to send [23:43:24]OFD Sender: No OFD packet to send [23:43:29]OFD Sender: No OFD packet to send [23:43:34]OFD Sender: No OFD packet to send [23:43:39]OFD Sender: No OFD packet to send [23:43:44]OFD Sender: No OFD packet to send [23:43:49]OFD Sender: No OFD packet to send [23:43:54]OFD Sender: No OFD packet to send [23:43:59]OFD Sender: No OFD packet to send [23:44:04]OFD Sender: No OFD packet to send [23:44:09]OFD Sender: No OFD packet to send [23:44:14]OFD Sender: No OFD packet to send [23:44:19]OFD Sender: No OFD packet to send [23:44:24]OFD Sender: No OFD packet to send [23:44:29]OFD Sender: No OFD packet to send [23:44:34]OFD Sender: No OFD packet to send [23:44:39]OFD Sender: No OFD packet to send [23:44:44]OFD Sender: No OFD packet to send [23:44:49]OFD Sender: No OFD packet to send [23:44:54]OFD Sender: No OFD packet to send [23:44:59]OFD Sender: No OFD packet to send [23:45:04]OFD Sender: No OFD packet to send [23:45:09]OFD Sender: No OFD packet to send [23:45:14]OFD Sender: No OFD packet to send [23:45:19]OFD Sender: No OFD packet to send [23:45:24]OFD Sender: No OFD packet to send [23:45:29]OFD Sender: No OFD packet to send [23:45:34]OFD Sender: No OFD packet to send [23:45:39]OFD Sender: No OFD packet to send [23:45:44]OFD Sender: No OFD packet to send [23:45:49]OFD Sender: No OFD packet to send [23:45:54]OFD Sender: No OFD packet to send [23:45:59]OFD Sender: No OFD packet to send [23:46:04]OFD Sender: No OFD packet to send [23:46:09]OFD Sender: No OFD packet to send [23:46:14]OFD Sender: No OFD packet to send [23:46:19]OFD Sender: No OFD packet to send [23:46:24]OFD Sender: No OFD packet to send [23:46:29]OFD Sender: No OFD packet to send [23:46:34]OFD Sender: No OFD packet to send [23:46:39]OFD Sender: No OFD packet to send [23:46:44]OFD Sender: No OFD packet to send [23:46:49]OFD Sender: No OFD packet to send [23:46:54]OFD Sender: No OFD packet to send [23:46:59]OFD Sender: No OFD packet to send [23:47:04]OFD Sender: No OFD packet to send [23:47:09]OFD Sender: No OFD packet to send [23:47:14]OFD Sender: No OFD packet to send [23:47:19]OFD Sender: No OFD packet to send [23:47:24]OFD Sender: No OFD packet to send [23:47:29]OFD Sender: No OFD packet to send [23:47:34]OFD Sender: No OFD packet to send [23:47:39]OFD Sender: No OFD packet to send [23:47:44]OFD Sender: No OFD packet to send [23:47:49]OFD Sender: No OFD packet to send [23:47:54]OFD Sender: No OFD packet to send [23:47:59]OFD Sender: No OFD packet to send [23:48:04]OFD Sender: No OFD packet to send [23:48:09]OFD Sender: No OFD packet to send [23:48:14]OFD Sender: No OFD packet to send [23:48:19]OFD Sender: No OFD packet to send [23:48:24]OFD Sender: No OFD packet to send [23:48:29]OFD Sender: No OFD packet to send [23:48:34]OFD Sender: No OFD packet to send [23:48:39]OFD Sender: No OFD packet to send [23:48:44]OFD Sender: No OFD packet to send [23:48:49]OFD Sender: No OFD packet to send [23:48:54]OFD Sender: No OFD packet to send [23:48:59]OFD Sender: No OFD packet to send [23:49:04]OFD Sender: No OFD packet to send [23:49:09]OFD Sender: No OFD packet to send [23:49:14]OFD Sender: No OFD packet to send [23:49:19]OFD Sender: No OFD packet to send [23:49:21]accept exits with 7 [23:49:21]New connection [23:49:21]New thread 3067084132 created [23:49:21]Thread 3067227492 joined [23:49:21]Waiting for new connection... [23:49:21] Sock 7.Parse request [23:49:21]Sock 7.Check first char [23:49:21]Sock 7.First char is OK [23:49:21]request: POST /json_proto HTTP/1.0 [23:49:21]Method: POST [23:49:21]URL: /json_proto [23:49:21]Method is POST - this is cgi request [23:49:21]url: /json_proto [23:49:21]query_string will be loaded in cgi processing [23:49:21]execute_cgi json_proto POST (null) [23:49:21]execute_cgi path=json_proto method=POST [23:49:21]POST find Content-Length [23:49:21]Host: 172.17.36.132:8080 [23:49:21]Content-Length: 682 [23:49:21]Content-Type: application/json [23:49:21] [23:49:21]POST finish read [23:49:21]Found Content-Length = 682 [23:49:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706613", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 8.240, "sum" : 600.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:49:21]execute_script... [23:49: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)706613", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-4", "price" : 72.90, "quantity" : 8.240, "sum" : 600.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:49:21]POST & json_proto [23:49:21]process_json_proto [23:49:21]json parsed OK: [23:49:21]protocol is kg_v1.0 [23:49:21]action value=close_receipt [23:49:21]process_action close_receipt [23:49:21]cmd_close_receipt [23:49:21]MH_GetDate [23:49:21]Write to MH i2c: F0 00 00 13 0B 0D [23:49:21]Write i2c OK [23:49:21]MH_I2C_Read... [23:49:21]Read from MH i2c: F0 [23:49:21]MH_I2C_Read... [23:49:21]Read from MH i2c: F0 09 00 [23:49:21]MH_I2C_Read... [23:49:21]Read from MH i2c: F0 09 00 13 0B 00 82 56 5E 66 B2 22 B0 64 9A [23:49:21]GetLastDocTimeStamp 1717456921 [23:49:21]current date 1717458562 [23:49:21]FM_GetShiftState [23:49:21]SAM_PROTO_GetShiftState [23:49:21]wFMCommunicate request_size=4 [23:49:21]MH_SAM_APDU [23:49:21]CAPDU: 80 13 01 00 [23:49:21]Write to MH i2c: E2 08 00 14 0B 80 13 01 00 00 00 00 00 9C [23:49:21]Write i2c OK [23:49:21]MH_I2C_Read... [23:49:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:49:21]Read from MH i2c: E2 [23:49:21]MH_I2C_Read... [23:49:21]Read from MH i2c: E2 0E 00 [23:49:21]MH_I2C_Read... [23:49:21]Read from MH i2c: E2 0E 00 14 0B 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 77 [23:49:21]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [23:49:21]wFMCommunicate OK [23:49:21]SAM_PROTO_GetShiftState done [23:49:21]FM_GetShiftState done [23:49:21]opened in 1717378033 [23:49:21]opened+sec_in_day 1717464433 [23:49:21]quantity*price = 60069 [23:49:21]sum+1 = 60071 [23:49:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.70 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.32 НДС 12% : 63.79 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 245 03.06.2024 23:49 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68499 ФПД: 129913441181336 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T234922&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68499&fm=129913441181336&tin=02508201610067®Number=0000000000098096&sum=60000 [23:49:22]StoreToDocumentArchive [23:49:22]shift 324 fd 68499 [23:49:22]save to /storage/0324/doc_00068499 [23:49:22]save last doc name /storage/0324/doc_00068499 to /storage/kkm_last_doc_name [23:49:22]save OK [23:49:22]Clear old archive folders... [23:49:22]ProcessDocumentItem done err = 0, tmpTLVsize=252 [23:49:22]tlvbuf is 00A3EF30 [23:49:22]SAM_PROTO_ClearQueue [23:49:22]wFMCommunicate request_size=4 [23:49:22]MH_SAM_APDU [23:49:22]CAPDU: 80 09 00 00 [23:49:22]Write to MH i2c: E2 08 00 21 0B 80 09 00 00 00 00 00 00 9E [23:49:22]Write i2c OK [23:49:22]MH_I2C_Read... [23:49:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:49:22]Read from MH i2c: E2 [23:49:22]MH_I2C_Read... [23:49:22]Read from MH i2c: E2 03 00 [23:49:22]MH_I2C_Read... [23:49:22]Read from MH i2c: E2 03 00 21 0B 00 90 00 A0 [23:49:22]RAPDU: 90 00 [23:49:22]wFMCommunicate OK [23:49:22]SAM_PROTO_ClearQueue done [23:49:22]KKMCreateOFDPacket [23:49:22]OFDProtocolAddRootSTLVToBuf [23:49:22]FM_MakeSignedData [23:49:22]FM_MakeSignedData [23:49:22]SAM_PROTO_SignData [23:49:22]wFMCommunicate request_size=4 [23:49:22]MH_SAM_APDU [23:49:22]CAPDU: 80 0D 01 02 [23:49:22]Write to MH i2c: E2 08 00 22 0B 80 0D 01 02 00 00 00 00 A6 [23:49:22]Write i2c OK [23:49:22]MH_I2C_Read... [23:49:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:49:22]Read from MH i2c: E2 [23:49:22]MH_I2C_Read... [23:49:22]Read from MH i2c: E2 03 00 [23:49:22]MH_I2C_Read... [23:49:22]Read from MH i2c: E2 03 00 22 0B 00 90 00 A1 [23:49:22]RAPDU: 90 00 [23:49:22]wFMCommunicate OK [23:49:22]wFMCommunicate request_size=255 [23:49:22]MH_SAM_APDU [23:49:22]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 34 FF 03 08 00 03 30 20 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A6 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 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 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 F5 00 00 00 F4 03 04 00 82 56 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 93 0B 01 00 35 04 06 00 [23:49:22]Write to MH i2c: E2 02 01 23 0B 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 34 FF 03 08 00 03 30 20 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A6 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 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 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 F5 00 00 00 F4 03 04 00 82 56 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 93 0B 01 00 35 04 06 00 00 00 81 [23:49:22]Write i2c OK [23:49:22]MH_I2C_Read... [23:49:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:49:23]Read from MH i2c: E2 [23:49:23]MH_I2C_Read... [23:49:23]Read from MH i2c: E2 03 00 [23:49:23]MH_I2C_Read... [23:49:23]Read from MH i2c: E2 03 00 23 0B 00 90 00 A2 [23:49:23]RAPDU: 90 00 [23:49:23]wFMCommunicate OK [23:49:23]wFMCommunicate request_size=11 [23:49:23]MH_SAM_APDU [23:49:23]CAPDU: 80 0D 02 02 06 76 27 D4 83 5E 98 [23:49:23]Write to MH i2c: E2 0E 00 24 0B 80 0D 02 02 06 00 76 27 D4 83 5E 98 00 00 9F [23:49:23]Write i2c OK [23:49:23]MH_I2C_Read... [23:49:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:49:23]Read from MH i2c: E2 [23:49:23]MH_I2C_Read... [23:49:23]Read from MH i2c: E2 03 00 [23:49:23]MH_I2C_Read... [23:49:23]Read from MH i2c: E2 03 00 24 0B 00 90 00 A3 [23:49:23]RAPDU: 90 00 [23:49:23]wFMCommunicate OK [23:49:23]wFMCommunicate request_size=4 [23:49:23]MH_SAM_APDU [23:49:23]CAPDU: 80 0D 03 02 [23:49:23]Write to MH i2c: E2 08 00 25 0B 80 0D 03 02 00 00 00 00 AB [23:49:23]Write i2c OK [23:49:23]MH_I2C_Read... [23:49:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:49:23]Read from MH i2c: E2 [23:49:23]MH_I2C_Read... [23:49:23]Read from MH i2c: E2 0B 00 [23:49:23]MH_I2C_Read... [23:49:23]Read from MH i2c: E2 0B 00 25 0B 00 A1 AA 8E 04 08 F8 1F 0D 90 00 B5 [23:49:23]RAPDU: A1 AA 8E 04 08 F8 1F 0D 90 00 [23:49:23]wFMCommunicate OK [23:49:23]SAM_PROTO_SignData done [23:49:23]FM_MakeSignedData done [23:49:23]CreateOFDProtocolMessage [23:49:23]wFMCommunicate request_size=4 [23:49:23]MH_SAM_APDU [23:49:23]CAPDU: 80 11 00 00 [23:49:23]Write to MH i2c: E2 08 00 26 0B 80 11 00 00 00 00 00 00 AB [23:49:23]Write i2c OK [23:49:23]MH_I2C_Read... [23:49:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:49:23]Read from MH i2c: E2 [23:49:23]MH_I2C_Read... [23:49:23]Read from MH i2c: E2 17 00 [23:49:23]MH_I2C_Read... [23:49:23]Read from MH i2c: E2 17 00 26 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 F6 [23:49:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [23:49:23]wFMCommunicate OK [23:49:23]CreateOFDProtocolMessage done [23:49:23]OFDSenderStorePacket 68499 [23:49:23]StoreOFDPacket docnum=68499 [23:49:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 A7 A8 08 01 F5 2C 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 34 FF 03 08 00 03 30 20 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A6 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 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 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 F5 00 00 00 F4 03 04 00 82 56 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 93 0B 01 00 35 04 06 00 76 27 D4 83 5E 98 A1 AA 8E 04 08 F8 1F 0D [23:49:23]CheckFolder [23:49:23]dirname=/storage/ofd_packets [23:49:23]CheckFolder done [23:49:23]ProducePacketName [23:49:23]name=ofd_packets/00068499 [23:49:23]NVStorageSaveData ofd_packets/00068499 [23:49:23]File name is /storage/ofd_packets/00068499 [23:49:23]Write 302 bytes [23:49:23]NVStorageSaveData done [23:49:23]OFDSenderStorePacket done [23:49:23]KKMCreateOFDPacket done [23:49:23]NVStorageSaveData kkm_last_timestamp [23:49:23]File name is /storage/kkm_last_timestamp [23:49:23]Write 4 bytes [23:49:23]NVStorageSaveData done [23:49:23]ExternCall_PrintAddStr [23:49:23]wPrintStart [23:49:23]Write to MH i2c: 01 00 00 27 0B 32 [23:49:23]Write i2c OK [23:49:23]MH_I2C_Read... [23:49:23]Read from MH i2c: 01 [23:49:23]MH_I2C_Read... [23:49:23]Read from MH i2c: 01 07 00 [23:49:23]MH_I2C_Read... [23:49:23]Read from MH i2c: 01 07 00 27 0B 00 00 00 00 00 FF 0F 47 [23:49:23]RasterBufferAndPrint [23:49:23]line Счет N : (1)706613 [23:49:23]line ИНН: 02508201610067 [23:49:23]line Контрольно-Кассовый Чек [23:49:23]line ПРОДАЖА [23:49:23]line ТРК (МРК, ГНК) : 61 [23:49:23]line Товар: 2710194210 [23:49:23]line ДТ(л)-К-4 [23:49:23]line 8.240 * 72.90 [23:49:23]line = 600.70 [23:49:23]line НДС 12% НСП 1% [23:49:23]line > о реализуемом товаре [23:49:23]line ОКРУГЛЕНИЕ: -0.70 [23:49:23]line ИТОГО: 600.00 [23:49:23]line Внесено: 600.00 [23:49:23]line СДАЧА: 0.00 [23:49:23]line НСП 1% : 5.32 [23:49:23]line НДС 12% : 63.79 [23:49:23]line Наличными: 600.00 [23:49:23]line Безнал.: 0.00 [23:49:23]line Место: АЗС № 62 "Партнер Нефть" [23:49:23]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [23:49:23]line СНО: Общий режим [23:49:23]line Чек 245 03.06.2024 23:49 [23:49:23]line Смена: 324 ФФД: 1.0 [23:49:23]line ЗНМ: 0300000181 [23:49:23]line РНМ: 0000000000098096 [23:49:23]line Версия ККМ: 001 [23:49:23]line ФМ: 0000000000965400 [23:49:23]line ФД: 68499 [23:49:23]line ФПД: 129913441181336 [23:49:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T234922&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68499&fm=129913441181336&tin=02508201610067®Number=0000000000098096&sum=60000 [23:49:23]OFD Sender: Processing packet 68499 [packets to send 26, broken 25] [23:49:23]ProducePacketName [23:49:23]name=ofd_packets/00068499 [23:49:23]OFD Sender: To server: pG, [23:49:23]CommunicateWithHost lk.salyk.kg:30040 [23:49:23]ConnectInit lk.salyk.kg [23:49:23]written 0, free lines is 4095 [23:49:23]Connected sock=10 [23:49:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 01 00 00 A7 A8 08 01 F5 2C 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 34 FF 03 08 00 03 30 20 00 00 00 00 00 37 04 06 00 7A 1C 00 00 00 00 13 04 06 00 A6 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 14 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 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 F5 00 00 00 F4 03 04 00 82 56 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 93 0B 01 00 35 04 06 00 76 27 D4 83 5E 98 A1 AA 8E 04 08 F8 1F 0D [23:49:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 5B AA 47 00 28 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 39 36 35 34 30 30 10 04 04 00 93 0B 01 00 F4 03 04 00 7D FD 5D 66 B6 04 01 00 00 09 3D 87 EB 33 A5 36 23 [23:49:23]CommunicateWithHost err = 0 [23:49:23]CheckOFDResponse [23:49:23]1017 (14) - 77093643461234 [23:49:23]1041 (16) - 0000000000965400 [23:49:23]1040 (4) - 68499 [23:49:23]1012 (4) - 03.06.2024 17:29 [23:49:23]1206 (1) - 0 [23:49:23]OFD Sender: Remove packet 68499 [23:49:23]ProducePacketName [23:49:23]name=ofd_packets/00068499 [23:49:23]NVStorageDeleteData [23:49:24]Write to MH i2c: 01 00 00 52 0B 5D [23:49:24]Write i2c OK [23:49:24]MH_I2C_Read... [23:49:24]Read from MH i2c: 01 [23:49:24]MH_I2C_Read... [23:49:24]Read from MH i2c: 01 07 00 [23:49:24]MH_I2C_Read... [23:49:24]Read from MH i2c: 01 07 00 52 0B 00 00 00 00 00 DD 0C 4D [23:49:24]RasterBufferAndPrint [23:49:24]line [23:49:24]line [23:49:24]line [23:49:24]line [23:49:24]line [23:49:24]written 0, free lines is 3299 [23:49:24]MH_Cut [23:49:24]Write to MH i2c: D1 01 00 59 0B 01 36 [23:49:24]Write i2c OK [23:49:24]MH_I2C_Read... [23:49:24]Read from MH i2c: D1 [23:49:24]MH_I2C_Read... [23:49:24]Read from MH i2c: D1 01 00 [23:49:24]MH_I2C_Read... [23:49:24]Read from MH i2c: D1 01 00 59 0B 00 35 [23:49:24]Write to MH i2c: 01 00 00 5A 0B 65 [23:49:24]Write i2c OK [23:49:24]MH_I2C_Read... [23:49:24]OFD Sender: No OFD packet to send [23:49:24]*** Cut start [23:49:24]*** Partial cut [23:49:24]*** CUTSNS_PIN = 1 [23:49:24]*** CUTSNS_PIN = 0 [23:49:25]*** Brake cut motor [23:49:25]Read from MH i2c: 01 [23:49:25]MH_I2C_Read... [23:49:25]*** Stop cut motor [23:49:25]*** Cut end [23:49:25]Read from MH i2c: 01 07 00 [23:49:25]MH_I2C_Read... [23:49:25]Read from MH i2c: 01 07 00 5A 0B 00 00 00 00 00 FF 0F 7A [23:49:25]process_action close_receipt done [23:49:25]requested_data is exist [23:49:25]produce_requested_data [23:49:25]requested_item fm.sn is exist - process it [23:49:25]wFMCommunicate request_size=4 [23:49:25]MH_SAM_APDU [23:49:25]CAPDU: 80 11 00 00 [23:49:25]Write to MH i2c: E2 08 00 5B 0B 80 11 00 00 00 00 00 00 E0 [23:49:25]Write i2c OK [23:49:25]MH_I2C_Read... [23:49:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:49:25]Read from MH i2c: E2 [23:49:25]MH_I2C_Read... [23:49:25]Read from MH i2c: E2 17 00 [23:49:25]MH_I2C_Read... [23:49:25]Read from MH i2c: E2 17 00 5B 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 2B [23:49:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [23:49:25]wFMCommunicate OK [23:49:25]requested_item fd.num is exist - process it [23:49:25]SAM_PROTO_GetFieldsCounters [23:49:25]wFMCommunicate request_size=4 [23:49:25]MH_SAM_APDU [23:49:25]CAPDU: 80 13 00 00 [23:49:25]Write to MH i2c: E2 08 00 5C 0B 80 13 00 00 00 00 00 00 E3 [23:49:25]Write i2c OK [23:49:25]MH_I2C_Read... [23:49:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:49:25]Read from MH i2c: E2 [23:49:25]MH_I2C_Read... [23:49:25]Read from MH i2c: E2 62 00 [23:49:25]MH_I2C_Read... [23:49:25]Read from MH i2c: E2 62 00 5C 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 93 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 C6 [23:49:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 93 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:49:25]wFMCommunicate OK [23:49:25]SAM_PROTO_GetFieldsCounters done [23:49:25]requested_item shift.num is exist - process it [23:49:25]requested_item shift.opened is exist - process it [23:49:25]req_shift_opened [23:49:25]FM_GetShiftState [23:49:25]SAM_PROTO_GetShiftState [23:49:25]wFMCommunicate request_size=4 [23:49:25]MH_SAM_APDU [23:49:25]CAPDU: 80 13 01 00 [23:49:25]Write to MH i2c: E2 08 00 5D 0B 80 13 01 00 00 00 00 00 E5 [23:49:25]Write i2c OK [23:49:25]MH_I2C_Read... [23:49:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:49:25]Read from MH i2c: E2 [23:49:25]MH_I2C_Read... [23:49:25]Read from MH i2c: E2 0E 00 [23:49:25]MH_I2C_Read... [23:49:25]Read from MH i2c: E2 0E 00 5D 0B 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 C0 [23:49:25]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [23:49:25]wFMCommunicate OK [23:49:25]SAM_PROTO_GetShiftState done [23:49:25]FM_GetShiftState done [23:49:25]req_shift_opened done [23:49:25]requested_item shift.open_date is exist - process it [23:49:25]req_shift_open_date [23:49:25]req_shift_open_date done [23:49:25]produce_requested_data done [23:49:25]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68499,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [23:49:25]process_action_free close_receipt [23:49:25]json_value_free [23:49:25]json_value_free done [23:49:25]process_json_proto returns [23:49:25]Send response to host [23:49:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68499,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [23:49:25]free response buf [23:49:25]execute_script done [23:49:25]execute_script returns [23:49:25]free content buf [23:49:25]Sock 7.Close socket [23:49:25]Sock 7.Thread stoped [23:49:29]OFD Sender: No OFD packet to send [23:49:34]OFD Sender: No OFD packet to send [23:49:39]OFD Sender: No OFD packet to send [23:49:44]OFD Sender: No OFD packet to send [23:49:49]OFD Sender: No OFD packet to send [23:49:54]OFD Sender: No OFD packet to send [23:49:59]OFD Sender: No OFD packet to send [23:50:04]OFD Sender: No OFD packet to send [23:50:09]OFD Sender: No OFD packet to send [23:50:14]OFD Sender: No OFD packet to send [23:50:19]OFD Sender: No OFD packet to send [23:50:24]OFD Sender: No OFD packet to send [23:50:29]OFD Sender: No OFD packet to send [23:50:34]OFD Sender: No OFD packet to send [23:50:39]OFD Sender: No OFD packet to send [23:50:44]OFD Sender: No OFD packet to send [23:50:49]OFD Sender: No OFD packet to send [23:50:54]OFD Sender: No OFD packet to send [23:50:59]OFD Sender: No OFD packet to send [23:51:04]OFD Sender: No OFD packet to send [23:51:09]OFD Sender: No OFD packet to send [23:51:14]OFD Sender: No OFD packet to send [23:51:19]OFD Sender: No OFD packet to send [23:51:24]OFD Sender: No OFD packet to send [23:51:29]OFD Sender: No OFD packet to send [23:51:34]OFD Sender: No OFD packet to send [23:51:39]OFD Sender: No OFD packet to send [23:51:44]OFD Sender: No OFD packet to send [23:51:49]OFD Sender: No OFD packet to send [23:51:50]accept exits with 9 [23:51:50]New connection [23:51:50]New thread 3067227492 created [23:51:50]Thread 3067084132 joined [23:51:50]Waiting for new connection... [23:51:50] Sock 9.Parse request [23:51:50]Sock 9.Check first char [23:51:50]Sock 9.First char is OK [23:51:50]request: POST /json_proto HTTP/1.0 [23:51:50]Method: POST [23:51:50]URL: /json_proto [23:51:50]Method is POST - this is cgi request [23:51:50]url: /json_proto [23:51:50]query_string will be loaded in cgi processing [23:51:50]execute_cgi json_proto POST (null) [23:51:50]execute_cgi path=json_proto method=POST [23:51:50]POST find Content-Length [23:51:50]Host: 172.17.36.132:8080 [23:51:50]Content-Length: 677 [23:51:50]Content-Type: application/json [23:51:50] [23:51:50]POST finish read [23:51:50]Found Content-Length = 677 [23:51:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706614", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.020, "sum" : 135.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 135.00, "total" : 135.00, "payments": [ { "type": 0, "sum" : 135.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:51:50]execute_script... [23:51: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)706614", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 2.020, "sum" : 135.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 135.00, "total" : 135.00, "payments": [ { "type": 0, "sum" : 135.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:51:50]POST & json_proto [23:51:50]process_json_proto [23:51:50]json parsed OK: [23:51:50]protocol is kg_v1.0 [23:51:50]action value=close_receipt [23:51:50]process_action close_receipt [23:51:50]cmd_close_receipt [23:51:50]MH_GetDate [23:51:50]Write to MH i2c: F0 00 00 5E 0B 58 [23:51:50]Write i2c OK [23:51:50]MH_I2C_Read... [23:51:50]Read from MH i2c: F0 [23:51:50]MH_I2C_Read... [23:51:50]Read from MH i2c: F0 09 00 [23:51:50]MH_I2C_Read... [23:51:50]Read from MH i2c: F0 09 00 5E 0B 00 17 57 5E 66 B2 22 B0 64 7B [23:51:50]GetLastDocTimeStamp 1717458562 [23:51:50]current date 1717458711 [23:51:50]FM_GetShiftState [23:51:50]SAM_PROTO_GetShiftState [23:51:50]wFMCommunicate request_size=4 [23:51:50]MH_SAM_APDU [23:51:50]CAPDU: 80 13 01 00 [23:51:50]Write to MH i2c: E2 08 00 5F 0B 80 13 01 00 00 00 00 00 E7 [23:51:50]Write i2c OK [23:51:50]MH_I2C_Read... [23:51:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:51:50]Read from MH i2c: E2 [23:51:50]MH_I2C_Read... [23:51:50]Read from MH i2c: E2 0E 00 [23:51:50]MH_I2C_Read... [23:51:50]Read from MH i2c: E2 0E 00 5F 0B 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 C2 [23:51:50]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [23:51:50]wFMCommunicate OK [23:51:50]SAM_PROTO_GetShiftState done [23:51:50]FM_GetShiftState done [23:51:50]opened in 1717378033 [23:51:50]opened+sec_in_day 1717464433 [23:51:50]quantity*price = 13513 [23:51:50]sum+1 = 13515 [23:51:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 135.00 Внесено: 135.00 СДАЧА: 0.00 НСП 1% : 1.20 НДС 12% : 14.35 Наличными: 135.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 246 03.06.2024 23:51 Смена: 324 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68500 ФПД: 190281270393377 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T235151&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68500&fm=190281270393377&tin=02508201610067®Number=0000000000098096&sum=13500 [23:51:51]StoreToDocumentArchive [23:51:51]shift 324 fd 68500 [23:51:51]save to /storage/0324/doc_00068500 [23:51:51]save last doc name /storage/0324/doc_00068500 to /storage/kkm_last_doc_name [23:51:51]save OK [23:51:51]Clear old archive folders... [23:51:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:51:51]tlvbuf is 00A3EFF0 [23:51:51]SAM_PROTO_ClearQueue [23:51:51]wFMCommunicate request_size=4 [23:51:51]MH_SAM_APDU [23:51:51]CAPDU: 80 09 00 00 [23:51:51]Write to MH i2c: E2 08 00 6C 0B 80 09 00 00 00 00 00 00 E9 [23:51:51]Write i2c OK [23:51:51]MH_I2C_Read... [23:51:51]Read from MH i2c: E2 [23:51:51]MH_I2C_Read... [23:51:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:51:51]Read from MH i2c: E2 03 00 [23:51:51]MH_I2C_Read... [23:51:51]Read from MH i2c: E2 03 00 6C 0B 00 90 00 EB [23:51:51]RAPDU: 90 00 [23:51:51]wFMCommunicate OK [23:51:51]SAM_PROTO_ClearQueue done [23:51:51]KKMCreateOFDPacket [23:51:51]OFDProtocolAddRootSTLVToBuf [23:51:51]FM_MakeSignedData [23:51:51]FM_MakeSignedData [23:51:51]SAM_PROTO_SignData [23:51:51]wFMCommunicate request_size=4 [23:51:51]MH_SAM_APDU [23:51:51]CAPDU: 80 0D 01 02 [23:51:51]Write to MH i2c: E2 08 00 6D 0B 80 0D 01 02 00 00 00 00 F1 [23:51:51]Write i2c OK [23:51:51]MH_I2C_Read... [23:51:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:51:51]Read from MH i2c: E2 [23:51:51]MH_I2C_Read... [23:51:51]Read from MH i2c: E2 03 00 [23:51:51]MH_I2C_Read... [23:51:51]Read from MH i2c: E2 03 00 6D 0B 00 90 00 EC [23:51:51]RAPDU: 90 00 [23:51:51]wFMCommunicate OK [23:51:51]wFMCommunicate request_size=255 [23:51:51]MH_SAM_APDU [23:51:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E4 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CA 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 17 57 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 94 0B 01 00 35 04 06 00 AD [23:51:51]Write to MH i2c: E2 02 01 6E 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E4 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CA 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 17 57 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 94 0B 01 00 35 04 06 00 AD 00 00 D0 [23:51:51]Write i2c OK [23:51:51]MH_I2C_Read... [23:51:51]Read from MH i2c: E2 [23:51:51]MH_I2C_Read... [23:51:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:51:51]Read from MH i2c: E2 03 00 [23:51:51]MH_I2C_Read... [23:51:51]Read from MH i2c: E2 03 00 6E 0B 00 90 00 ED [23:51:51]RAPDU: 90 00 [23:51:51]wFMCommunicate OK [23:51:51]wFMCommunicate request_size=10 [23:51:51]MH_SAM_APDU [23:51:51]CAPDU: 80 0D 02 02 05 0F 4F 87 7A 21 [23:51:51]Write to MH i2c: E2 0D 00 6F 0B 80 0D 02 02 05 00 0F 4F 87 7A 21 00 00 7E [23:51:51]Write i2c OK [23:51:51]MH_I2C_Read... [23:51:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:51:51]Read from MH i2c: E2 [23:51:51]MH_I2C_Read... [23:51:51]Read from MH i2c: E2 03 00 [23:51:51]MH_I2C_Read... [23:51:51]Read from MH i2c: E2 03 00 6F 0B 00 90 00 EE [23:51:51]RAPDU: 90 00 [23:51:51]wFMCommunicate OK [23:51:51]wFMCommunicate request_size=4 [23:51:51]MH_SAM_APDU [23:51:51]CAPDU: 80 0D 03 02 [23:51:51]Write to MH i2c: E2 08 00 70 0B 80 0D 03 02 00 00 00 00 F6 [23:51:51]Write i2c OK [23:51:51]MH_I2C_Read... [23:51:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:51:51]Read from MH i2c: E2 [23:51:51]MH_I2C_Read... [23:51:51]Read from MH i2c: E2 0B 00 [23:51:51]MH_I2C_Read... [23:51:51]Read from MH i2c: E2 0B 00 70 0B 00 2F A0 0E 4F C4 55 CB 0D 90 00 14 [23:51:51]RAPDU: 2F A0 0E 4F C4 55 CB 0D 90 00 [23:51:51]wFMCommunicate OK [23:51:51]SAM_PROTO_SignData done [23:51:51]FM_MakeSignedData done [23:51:51]CreateOFDProtocolMessage [23:51:51]wFMCommunicate request_size=4 [23:51:51]MH_SAM_APDU [23:51:51]CAPDU: 80 11 00 00 [23:51:51]Write to MH i2c: E2 08 00 71 0B 80 11 00 00 00 00 00 00 F6 [23:51:51]Write i2c OK [23:51:51]MH_I2C_Read... [23:51:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:51:51]Read from MH i2c: E2 [23:51:51]MH_I2C_Read... [23:51:51]Read from MH i2c: E2 17 00 [23:51:51]MH_I2C_Read... [23:51:51]Read from MH i2c: E2 17 00 71 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 41 [23:51:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [23:51:51]wFMCommunicate OK [23:51:51]CreateOFDProtocolMessage done [23:51:51]OFDSenderStorePacket 68500 [23:51:51]StoreOFDPacket docnum=68500 [23:51:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 D8 13 07 01 F9 D1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E4 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CA 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 17 57 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 94 0B 01 00 35 04 06 00 AD 0F 4F 87 7A 21 2F A0 0E 4F C4 55 CB 0D [23:51:51]CheckFolder [23:51:51]dirname=/storage/ofd_packets [23:51:51]CheckFolder done [23:51:51]ProducePacketName [23:51:51]name=ofd_packets/00068500 [23:51:51]NVStorageSaveData ofd_packets/00068500 [23:51:51]File name is /storage/ofd_packets/00068500 [23:51:51]Write 301 bytes [23:51:51]NVStorageSaveData done [23:51:51]OFDSenderStorePacket done [23:51:51]KKMCreateOFDPacket done [23:51:51]NVStorageSaveData kkm_last_timestamp [23:51:51]File name is /storage/kkm_last_timestamp [23:51:51]Write 4 bytes [23:51:51]NVStorageSaveData done [23:51:51]ExternCall_PrintAddStr [23:51:51]wPrintStart [23:51:51]Write to MH i2c: 01 00 00 72 0B 7D [23:51:51]Write i2c OK [23:51:51]MH_I2C_Read... [23:51:51]Read from MH i2c: 01 [23:51:51]MH_I2C_Read... [23:51:51]Read from MH i2c: 01 07 00 [23:51:51]MH_I2C_Read... [23:51:51]Read from MH i2c: 01 07 00 72 0B 00 00 00 00 00 FF 0F 92 [23:51:51]RasterBufferAndPrint [23:51:51]line Счет N : (1)706614 [23:51:51]line ИНН: 02508201610067 [23:51:51]line Контрольно-Кассовый Чек [23:51:51]line ПРОДАЖА [23:51:51]line ТРК (МРК, ГНК) : 13 [23:51:51]line Товар: 2710124130 [23:51:51]line Аи-92-К-4 [23:51:51]line 2.020 * 66.90 [23:51:51]line = 135.14 [23:51:51]line НДС 12% НСП 1% [23:51:51]line > о реализуемом товаре [23:51:51]line ОКРУГЛЕНИЕ: -0.14 [23:51:51]line ИТОГО: 135.00 [23:51:51]line Внесено: 135.00 [23:51:51]line СДАЧА: 0.00 [23:51:51]line НСП 1% : 1.20 [23:51:51]line НДС 12% : 14.35 [23:51:51]line Наличными: 135.00 [23:51:51]line Безнал.: 0.00 [23:51:51]line Место: АЗС № 62 "Партнер Нефть" [23:51:51]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [23:51:51]line СНО: Общий режим [23:51:51]line Чек 246 03.06.2024 23:51 [23:51:51]line Смена: 324 ФФД: 1.0 [23:51:51]line ЗНМ: 0300000181 [23:51:51]line РНМ: 0000000000098096 [23:51:51]line Версия ККМ: 001 [23:51:51]line ФМ: 0000000000965400 [23:51:51]line ФД: 68500 [23:51:51]line ФПД: 190281270393377 [23:51:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240603T235151&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68500&fm=190281270393377&tin=02508201610067®Number=0000000000098096&sum=13500 [23:51:52]OFD Sender: Processing packet 68500 [packets to send 26, broken 25] [23:51:52]ProducePacketName [23:51:52]name=ofd_packets/00068500 [23:51:52]OFD Sender: To server: pG, [23:51:52]CommunicateWithHost lk.salyk.kg:30040 [23:51:52]ConnectInit lk.salyk.kg [23:51:52]written 0, free lines is 4095 [23:51:52]Connected sock=11 [23:51:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 D8 13 07 01 F9 D1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 E4 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CA 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 17 57 5E 66 0E 04 04 00 44 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 94 0B 01 00 35 04 06 00 AD 0F 4F 87 7A 21 2F A0 0E 4F C4 55 CB 0D [23:51:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 ED D3 47 00 AA 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 94 0B 01 00 F4 03 04 00 11 FE 5D 66 B6 04 01 00 00 5F D5 BE C2 C1 20 C0 9B [23:51:52]CommunicateWithHost err = 0 [23:51:52]CheckOFDResponse [23:51:52]1017 (14) - 77093643461234 [23:51:52]1041 (16) - 0000000000965400 [23:51:52]1040 (4) - 68500 [23:51:52]1012 (4) - 03.06.2024 17:32 [23:51:52]1206 (1) - 0 [23:51:52]OFD Sender: Remove packet 68500 [23:51:52]ProducePacketName [23:51:52]name=ofd_packets/00068500 [23:51:52]NVStorageDeleteData [23:51:52]Write to MH i2c: 01 00 00 9D 0B A8 [23:51:52]Write i2c OK [23:51:52]MH_I2C_Read... [23:51:52]Read from MH i2c: 01 [23:51:52]MH_I2C_Read... [23:51:52]Read from MH i2c: 01 07 00 [23:51:52]MH_I2C_Read... [23:51:52]Read from MH i2c: 01 07 00 9D 0B 00 00 00 00 00 D3 0C 8E [23:51:52]RasterBufferAndPrint [23:51:52]line [23:51:52]line [23:51:52]line [23:51:52]line [23:51:52]line [23:51:52]written 0, free lines is 3288 [23:51:52]MH_Cut [23:51:52]Write to MH i2c: D1 01 00 A4 0B 01 81 [23:51:52]Write i2c OK [23:51:52]MH_I2C_Read... [23:51:52]Read from MH i2c: D1 [23:51:52]MH_I2C_Read... [23:51:52]Read from MH i2c: D1 01 00 [23:51:52]MH_I2C_Read... [23:51:52]Read from MH i2c: D1 01 00 A4 0B 00 80 [23:51:52]Write to MH i2c: 01 00 00 A5 0B B0 [23:51:52]Write i2c OK [23:51:52]MH_I2C_Read... [23:51:53]OFD Sender: No OFD packet to send [23:51:53]*** Cut start [23:51:53]*** Partial cut [23:51:53]*** CUTSNS_PIN = 1 [23:51:53]*** CUTSNS_PIN = 0 [23:51:53]*** Brake cut motor [23:51:54]Read from MH i2c: 01 [23:51:54]MH_I2C_Read... [23:51:54]*** Stop cut motor [23:51:54]*** Cut end [23:51:54]Read from MH i2c: 01 07 00 [23:51:54]MH_I2C_Read... [23:51:54]Read from MH i2c: 01 07 00 A5 0B 00 00 00 00 00 FF 0F C5 [23:51:54]process_action close_receipt done [23:51:54]requested_data is exist [23:51:54]produce_requested_data [23:51:54]requested_item fm.sn is exist - process it [23:51:54]wFMCommunicate request_size=4 [23:51:54]MH_SAM_APDU [23:51:54]CAPDU: 80 11 00 00 [23:51:54]Write to MH i2c: E2 08 00 A6 0B 80 11 00 00 00 00 00 00 2B [23:51:54]Write i2c OK [23:51:54]MH_I2C_Read... [23:51:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:51:54]Read from MH i2c: E2 [23:51:54]MH_I2C_Read... [23:51:54]Read from MH i2c: E2 17 00 [23:51:54]MH_I2C_Read... [23:51:54]Read from MH i2c: E2 17 00 A6 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 76 [23:51:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [23:51:54]wFMCommunicate OK [23:51:54]requested_item fd.num is exist - process it [23:51:54]SAM_PROTO_GetFieldsCounters [23:51:54]wFMCommunicate request_size=4 [23:51:54]MH_SAM_APDU [23:51:54]CAPDU: 80 13 00 00 [23:51:54]Write to MH i2c: E2 08 00 A7 0B 80 13 00 00 00 00 00 00 2E [23:51:54]Write i2c OK [23:51:54]MH_I2C_Read... [23:51:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:51:54]Read from MH i2c: E2 [23:51:54]MH_I2C_Read... [23:51:54]Read from MH i2c: E2 62 00 [23:51:54]MH_I2C_Read... [23:51:54]Read from MH i2c: E2 62 00 A7 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 94 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 15 [23:51:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 94 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:51:54]wFMCommunicate OK [23:51:54]SAM_PROTO_GetFieldsCounters done [23:51:54]requested_item shift.num is exist - process it [23:51:54]requested_item shift.opened is exist - process it [23:51:54]req_shift_opened [23:51:54]FM_GetShiftState [23:51:54]SAM_PROTO_GetShiftState [23:51:54]wFMCommunicate request_size=4 [23:51:54]MH_SAM_APDU [23:51:54]CAPDU: 80 13 01 00 [23:51:54]Write to MH i2c: E2 08 00 A8 0B 80 13 01 00 00 00 00 00 30 [23:51:54]Write i2c OK [23:51:54]MH_I2C_Read... [23:51:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:51:54]Read from MH i2c: E2 [23:51:54]MH_I2C_Read... [23:51:54]Read from MH i2c: E2 0E 00 [23:51:54]MH_I2C_Read... [23:51:54]Read from MH i2c: E2 0E 00 A8 0B 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 0B [23:51:54]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [23:51:54]wFMCommunicate OK [23:51:54]SAM_PROTO_GetShiftState done [23:51:54]FM_GetShiftState done [23:51:54]req_shift_opened done [23:51:54]requested_item shift.open_date is exist - process it [23:51:54]req_shift_open_date [23:51:54]req_shift_open_date done [23:51:54]produce_requested_data done [23:51:54]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68500,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [23:51:54]process_action_free close_receipt [23:51:54]json_value_free [23:51:54]json_value_free done [23:51:54]process_json_proto returns [23:51:54]Send response to host [23:51:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68500,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [23:51:54]free response buf [23:51:54]execute_script done [23:51:54]execute_script returns [23:51:54]free content buf [23:51:54]Sock 9.Close socket [23:51:54]Sock 9.Thread stoped [23:51:58]OFD Sender: No OFD packet to send [23:52:03]OFD Sender: No OFD packet to send [23:52:08]OFD Sender: No OFD packet to send [23:52:13]OFD Sender: No OFD packet to send [23:52:18]OFD Sender: No OFD packet to send [23:52:23]OFD Sender: No OFD packet to send [23:52:28]OFD Sender: No OFD packet to send [23:52:33]OFD Sender: No OFD packet to send [23:52:38]OFD Sender: No OFD packet to send [23:52:43]OFD Sender: No OFD packet to send [23:52:48]OFD Sender: No OFD packet to send [23:52:53]OFD Sender: No OFD packet to send [23:52:58]OFD Sender: No OFD packet to send [23:53:03]OFD Sender: No OFD packet to send [23:53:08]OFD Sender: No OFD packet to send [23:53:13]OFD Sender: No OFD packet to send [23:53:18]OFD Sender: No OFD packet to send [23:53:23]OFD Sender: No OFD packet to send [23:53:28]OFD Sender: No OFD packet to send [23:53:33]OFD Sender: No OFD packet to send [23:53:38]OFD Sender: No OFD packet to send [23:53:43]OFD Sender: No OFD packet to send [23:53:48]OFD Sender: No OFD packet to send [23:53:53]OFD Sender: No OFD packet to send [23:53:58]OFD Sender: No OFD packet to send [23:54:03]OFD Sender: No OFD packet to send [23:54:08]OFD Sender: No OFD packet to send [23:54:13]OFD Sender: No OFD packet to send [23:54:18]OFD Sender: No OFD packet to send [23:54:23]OFD Sender: No OFD packet to send [23:54:28]OFD Sender: No OFD packet to send [23:54:33]OFD Sender: No OFD packet to send [23:54:38]OFD Sender: No OFD packet to send [23:54:43]OFD Sender: No OFD packet to send [23:54:48]OFD Sender: No OFD packet to send [23:54:53]OFD Sender: No OFD packet to send [23:54:58]OFD Sender: No OFD packet to send [23:55:03]OFD Sender: No OFD packet to send [23:55:08]OFD Sender: No OFD packet to send [23:55:13]OFD Sender: No OFD packet to send [23:55:18]OFD Sender: No OFD packet to send [23:55:23]OFD Sender: No OFD packet to send [23:55:28]OFD Sender: No OFD packet to send [23:55:33]OFD Sender: No OFD packet to send [23:55:38]OFD Sender: No OFD packet to send [23:55:43]OFD Sender: No OFD packet to send [23:55:48]OFD Sender: No OFD packet to send [23:55:53]OFD Sender: No OFD packet to send [23:55:58]OFD Sender: No OFD packet to send [23:56:03]OFD Sender: No OFD packet to send [23:56:08]OFD Sender: No OFD packet to send [23:56:13]OFD Sender: No OFD packet to send [23:56:18]OFD Sender: No OFD packet to send [23:56:23]OFD Sender: No OFD packet to send [23:56:28]OFD Sender: No OFD packet to send [23:56:33]OFD Sender: No OFD packet to send [23:56:38]OFD Sender: No OFD packet to send [23:56:43]OFD Sender: No OFD packet to send [23:56:48]OFD Sender: No OFD packet to send [23:56:53]OFD Sender: No OFD packet to send [23:56:58]OFD Sender: No OFD packet to send [23:57:03]OFD Sender: No OFD packet to send [23:57:08]OFD Sender: No OFD packet to send [23:57:13]OFD Sender: No OFD packet to send [23:57:18]OFD Sender: No OFD packet to send [23:57:23]OFD Sender: No OFD packet to send [23:57:28]OFD Sender: No OFD packet to send [23:57:33]OFD Sender: No OFD packet to send [23:57:38]OFD Sender: No OFD packet to send [23:57:43]OFD Sender: No OFD packet to send [23:57:48]OFD Sender: No OFD packet to send [23:57:53]OFD Sender: No OFD packet to send [23:57:58]OFD Sender: No OFD packet to send [23:58:03]OFD Sender: No OFD packet to send [23:58:08]OFD Sender: No OFD packet to send [23:58:13]OFD Sender: No OFD packet to send [23:58:18]OFD Sender: No OFD packet to send [23:58:23]OFD Sender: No OFD packet to send [23:58:28]OFD Sender: No OFD packet to send [23:58:33]OFD Sender: No OFD packet to send [23:58:38]OFD Sender: No OFD packet to send [23:58:43]OFD Sender: No OFD packet to send [23:58:48]OFD Sender: No OFD packet to send [23:58:53]OFD Sender: No OFD packet to send [23:58:58]OFD Sender: No OFD packet to send [23:59:03]OFD Sender: No OFD packet to send [23:59:08]OFD Sender: No OFD packet to send [23:59:13]OFD Sender: No OFD packet to send [23:59:18]OFD Sender: No OFD packet to send [23:59:23]OFD Sender: No OFD packet to send [23:59:28]OFD Sender: No OFD packet to send [23:59:33]OFD Sender: No OFD packet to send [23:59:38]OFD Sender: No OFD packet to send [23:59:43]OFD Sender: No OFD packet to send [23:59:48]OFD Sender: No OFD packet to send [23:59:53]OFD Sender: No OFD packet to send [23:59:58]OFD Sender: No OFD packet to send [00:00:03]OFD Sender: No OFD packet to send [00:00:08]OFD Sender: No OFD packet to send [00:00:13]OFD Sender: No OFD packet to send [00:00:18]OFD Sender: No OFD packet to send [00:00:23]OFD Sender: No OFD packet to send [00:00:28]OFD Sender: No OFD packet to send [00:00:33]OFD Sender: No OFD packet to send [00:00:38]OFD Sender: No OFD packet to send [00:00:43]OFD Sender: No OFD packet to send [00:00:48]OFD Sender: No OFD packet to send [00:00:53]OFD Sender: No OFD packet to send [00:00:58]OFD Sender: No OFD packet to send [00:01:03]OFD Sender: No OFD packet to send [00:01:08]OFD Sender: No OFD packet to send [00:01:13]OFD Sender: No OFD packet to send [00:01:18]OFD Sender: No OFD packet to send [00:01:23]OFD Sender: No OFD packet to send [00:01:28]OFD Sender: No OFD packet to send [00:01:33]OFD Sender: No OFD packet to send [00:01:38]OFD Sender: No OFD packet to send [00:01:43]OFD Sender: No OFD packet to send [00:01:48]OFD Sender: No OFD packet to send [00:01:53]OFD Sender: No OFD packet to send [00:01:58]OFD Sender: No OFD packet to send [00:02:03]OFD Sender: No OFD packet to send [00:02:08]OFD Sender: No OFD packet to send [00:02:13]OFD Sender: No OFD packet to send [00:02:18]OFD Sender: No OFD packet to send [00:02:23]OFD Sender: No OFD packet to send [00:02:28]OFD Sender: No OFD packet to send [00:02:33]OFD Sender: No OFD packet to send [00:02:38]OFD Sender: No OFD packet to send [00:02:43]OFD Sender: No OFD packet to send [00:02:48]OFD Sender: No OFD packet to send [00:02:53]OFD Sender: No OFD packet to send [00:02:58]OFD Sender: No OFD packet to send [00:03:03]OFD Sender: No OFD packet to send [00:03:08]OFD Sender: No OFD packet to send [00:03:13]OFD Sender: No OFD packet to send [00:03:18]OFD Sender: No OFD packet to send [00:03:23]OFD Sender: No OFD packet to send [00:03:28]OFD Sender: No OFD packet to send [00:03:33]OFD Sender: No OFD packet to send [00:03:38]OFD Sender: No OFD packet to send [00:03:43]OFD Sender: No OFD packet to send [00:03:48]OFD Sender: No OFD packet to send [00:03:53]OFD Sender: No OFD packet to send [00:03:58]OFD Sender: No OFD packet to send [00:04:03]OFD Sender: No OFD packet to send [00:04:08]OFD Sender: No OFD packet to send [00:04:13]OFD Sender: No OFD packet to send [00:04:18]OFD Sender: No OFD packet to send [00:04:23]OFD Sender: No OFD packet to send [00:04:28]OFD Sender: No OFD packet to send [00:04:33]OFD Sender: No OFD packet to send [00:04:38]OFD Sender: No OFD packet to send [00:04:43]OFD Sender: No OFD packet to send [00:04:48]OFD Sender: No OFD packet to send [00:04:53]OFD Sender: No OFD packet to send [00:04:58]OFD Sender: No OFD packet to send [00:05:03]OFD Sender: No OFD packet to send [00:05:08]OFD Sender: No OFD packet to send [00:05:13]OFD Sender: No OFD packet to send [00:05:18]OFD Sender: No OFD packet to send [00:05:23]OFD Sender: No OFD packet to send [00:05:28]OFD Sender: No OFD packet to send [00:05:33]OFD Sender: No OFD packet to send [00:05:38]OFD Sender: No OFD packet to send [00:05:43]OFD Sender: No OFD packet to send [00:05:48]OFD Sender: No OFD packet to send [00:05:53]OFD Sender: No OFD packet to send [00:05:58]OFD Sender: No OFD packet to send [00:06:03]OFD Sender: No OFD packet to send [00:06:08]OFD Sender: No OFD packet to send [00:06:13]OFD Sender: No OFD packet to send [00:06:18]OFD Sender: No OFD packet to send [00:06:23]OFD Sender: No OFD packet to send [00:06:28]OFD Sender: No OFD packet to send [00:06:33]OFD Sender: No OFD packet to send [00:06:38]OFD Sender: No OFD packet to send [00:06:43]OFD Sender: No OFD packet to send [00:06:48]OFD Sender: No OFD packet to send [00:06:53]OFD Sender: No OFD packet to send [00:06:58]OFD Sender: No OFD packet to send [00:07:03]OFD Sender: No OFD packet to send [00:07:08]OFD Sender: No OFD packet to send [00:07:13]OFD Sender: No OFD packet to send [00:07:18]OFD Sender: No OFD packet to send [00:07:23]OFD Sender: No OFD packet to send [00:07:28]OFD Sender: No OFD packet to send [00:07:33]OFD Sender: No OFD packet to send [00:07:38]OFD Sender: No OFD packet to send [00:07:43]OFD Sender: No OFD packet to send [00:07:48]OFD Sender: No OFD packet to send [00:07:53]OFD Sender: No OFD packet to send [00:07:58]OFD Sender: No OFD packet to send [00:08:03]OFD Sender: No OFD packet to send [00:08:08]OFD Sender: No OFD packet to send [00:08:13]OFD Sender: No OFD packet to send [00:08:18]OFD Sender: No OFD packet to send [00:08:23]OFD Sender: No OFD packet to send [00:08:28]OFD Sender: No OFD packet to send [00:08:33]OFD Sender: No OFD packet to send [00:08:38]OFD Sender: No OFD packet to send [00:08:43]OFD Sender: No OFD packet to send [00:08:45]accept exits with 7 [00:08:45]New connection [00:08:45]New thread 3067084132 created [00:08:45]Thread 3067227492 joined [00:08:45]Waiting for new connection... [00:08:45] Sock 7.Parse request [00:08:45]Sock 7.Check first char [00:08:45]Sock 7.First char is OK [00:08:45]request: POST /json_proto HTTP/1.0 [00:08:45]Method: POST [00:08:45]URL: /json_proto [00:08:45]Method is POST - this is cgi request [00:08:45]url: /json_proto [00:08:45]query_string will be loaded in cgi processing [00:08:45]execute_cgi json_proto POST (null) [00:08:45]execute_cgi path=json_proto method=POST [00:08:45]POST find Content-Length [00:08:45]Host: 172.17.36.132:8080 [00:08:45]Content-Length: 215 [00:08:45]Content-Type: application/json [00:08:45] [00:08:45]POST finish read [00:08:45]Found Content-Length = 215 [00:08:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:08:45]execute_script... [00:08:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:08:45]POST & json_proto [00:08:45]process_json_proto [00:08:45]json parsed OK: [00:08:45]protocol is kg_v1.0 [00:08:45]action value=get_value [00:08:45]process_action get_value [00:08:45]cmd_get_value [00:08:45]process_action get_value done [00:08:45]requested_data is exist [00:08:45]produce_requested_data [00:08:45]requested_item kkm.sn is exist - process it [00:08:45]requested_item kkm.ver is exist - process it [00:08:45]requested_item fm.sn is exist - process it [00:08:45]wFMCommunicate request_size=4 [00:08:45]MH_SAM_APDU [00:08:45]CAPDU: 80 11 00 00 [00:08:45]Write to MH i2c: E2 08 00 A9 0B 80 11 00 00 00 00 00 00 2E [00:08:45]Write i2c OK [00:08:45]MH_I2C_Read... [00:08:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:08:45]Read from MH i2c: E2 [00:08:45]MH_I2C_Read... [00:08:45]Read from MH i2c: E2 17 00 [00:08:45]MH_I2C_Read... [00:08:45]Read from MH i2c: E2 17 00 A9 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 79 [00:08:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [00:08:45]wFMCommunicate OK [00:08:45]requested_item fd.num is exist - process it [00:08:45]SAM_PROTO_GetFieldsCounters [00:08:45]wFMCommunicate request_size=4 [00:08:45]MH_SAM_APDU [00:08:45]CAPDU: 80 13 00 00 [00:08:45]Write to MH i2c: E2 08 00 AA 0B 80 13 00 00 00 00 00 00 31 [00:08:45]Write i2c OK [00:08:45]MH_I2C_Read... [00:08:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:08:45]Read from MH i2c: E2 [00:08:45]MH_I2C_Read... [00:08:45]Read from MH i2c: E2 62 00 [00:08:45]MH_I2C_Read... [00:08:45]Read from MH i2c: E2 62 00 AA 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 94 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 18 [00:08:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 94 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:08:45]wFMCommunicate OK [00:08:45]SAM_PROTO_GetFieldsCounters done [00:08:45]requested_item shift.num is exist - process it [00:08:45]requested_item shift.opened is exist - process it [00:08:45]req_shift_opened [00:08:45]FM_GetShiftState [00:08:45]SAM_PROTO_GetShiftState [00:08:45]wFMCommunicate request_size=4 [00:08:45]MH_SAM_APDU [00:08:45]CAPDU: 80 13 01 00 [00:08:45]Write to MH i2c: E2 08 00 AB 0B 80 13 01 00 00 00 00 00 33 [00:08:45]Write i2c OK [00:08:45]MH_I2C_Read... [00:08:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:08:45]Read from MH i2c: E2 [00:08:45]MH_I2C_Read... [00:08:45]Read from MH i2c: E2 0E 00 [00:08:45]MH_I2C_Read... [00:08:45]Read from MH i2c: E2 0E 00 AB 0B 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 0E [00:08:45]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [00:08:45]wFMCommunicate OK [00:08:45]SAM_PROTO_GetShiftState done [00:08:45]FM_GetShiftState done [00:08:45]req_shift_opened done [00:08:45]requested_item shift.open_date is exist - process it [00:08:45]req_shift_open_date [00:08:45]req_shift_open_date done [00:08:45]produce_requested_data done [00:08:45]produce_requested_data return {"kkm.sn":"0300000181","kkm.ver":"001","fm.sn":"0000000000965400","fd.num":68500,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [00:08:45]process_action_free get_value [00:08:45]json_value_free [00:08:45]json_value_free done [00:08:45]process_json_proto returns [00:08:45]Send response to host [00:08:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000181","kkm.ver":"001","fm.sn":"0000000000965400","fd.num":68500,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [00:08:45]free response buf [00:08:45]execute_script done [00:08:45]execute_script returns [00:08:45]free content buf [00:08:45]Sock 7.Close socket [00:08:45]Sock 7.Thread stoped [00:08:45]accept exits with 9 [00:08:45]New connection [00:08:45]New thread 3067227492 created [00:08:45]Thread 3067084132 joined [00:08:45]Waiting for new connection... [00:08:45] Sock 9.Parse request [00:08:45]Sock 9.Check first char [00:08:45]Sock 9.First char is OK [00:08:45]request: POST /json_proto HTTP/1.0 [00:08:45]Method: POST [00:08:45]URL: /json_proto [00:08:45]Method is POST - this is cgi request [00:08:45]url: /json_proto [00:08:45]query_string will be loaded in cgi processing [00:08:45]execute_cgi json_proto POST (null) [00:08:45]execute_cgi path=json_proto method=POST [00:08:45]POST find Content-Length [00:08:45]Host: 172.17.36.132:8080 [00:08:45]Content-Length: 331 [00:08:45]Content-Type: application/json [00:08:45] [00:08:45]POST finish read [00:08:45]Found Content-Length = 331 [00:08:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:08:45]execute_script... [00:08:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:08:45]POST & json_proto [00:08:45]process_json_proto [00:08:45]json parsed OK: [00:08:45]protocol is kg_v1.0 [00:08:45]action value=get_value [00:08:45]process_action get_value [00:08:45]cmd_get_value [00:08:45]process_action get_value done [00:08:45]requested_data is exist [00:08:45]produce_requested_data [00:08:45]requested_item fm.sale.total is exist - process it [00:08:45]SAM_PROTO_GetFMData [00:08:45]wFMCommunicate request_size=4 [00:08:45]MH_SAM_APDU [00:08:45]CAPDU: 80 13 03 00 [00:08:45]Write to MH i2c: E2 08 00 AC 0B 80 13 03 00 00 00 00 00 36 [00:08:45]Write i2c OK [00:08:45]MH_I2C_Read... [00:08:46]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:08:46]Read from MH i2c: E2 [00:08:46]MH_I2C_Read... [00:08:46]Read from MH i2c: E2 FD 00 [00:08:46]MH_I2C_Read... [00:08:46]Read from MH i2c: E2 FD 00 AC 0B 00 C5 04 85 04 C1 04 6E 04 04 00 0C 09 01 00 69 04 A3 00 6F 04 04 00 F5 03 01 00 B1 04 05 00 F1 F6 E4 39 01 70 04 05 00 68 DE 3C 0D 01 72 04 04 00 89 18 A8 2C 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 EA 17 58 21 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 0F 3E C7 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 17 05 00 00 B1 04 04 00 F4 BA E7 0E 70 04 04 00 F4 BA E7 0E 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 28 44 95 01 EF 03 09 90 00 67 [00:08:46]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 0C 09 01 00 69 04 A3 00 6F 04 04 00 F5 03 01 00 B1 04 05 00 F1 F6 E4 39 01 70 04 05 00 68 DE 3C 0D 01 72 04 04 00 89 18 A8 2C 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 EA 17 58 21 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 0F 3E C7 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 17 05 00 00 B1 04 04 00 F4 BA E7 0E 70 04 04 00 F4 BA E7 0E 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 28 44 95 01 EF 03 09 90 00 [00:08:46]wFMCommunicate OK [00:08:46]wFMCommunicate request_size=4 [00:08:46]MH_SAM_APDU [00:08:46]CAPDU: 80 17 00 00 [00:08:46]Write to MH i2c: E2 08 00 AD 0B 80 17 00 00 00 00 00 00 38 [00:08:46]Write i2c OK [00:08:46]MH_I2C_Read... [00:08:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:46]Read from MH i2c: E2 [00:08:46]MH_I2C_Read... [00:08:46]Read from MH i2c: E2 FD 00 [00:08:46]MH_I2C_Read... [00:08:46]Read from MH i2c: E2 FD 00 AD 0B 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 3C C5 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 10 [00:08:46]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 3C C5 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:08:46]wFMCommunicate OK [00:08:46]wFMCommunicate request_size=4 [00:08:46]MH_SAM_APDU [00:08:46]CAPDU: 80 17 00 00 [00:08:46]Write to MH i2c: E2 08 00 AE 0B 80 17 00 00 00 00 00 00 39 [00:08:46]Write i2c OK [00:08:46]MH_I2C_Read... [00:08:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:46]Read from MH i2c: E2 [00:08:46]MH_I2C_Read... [00:08:46]Read from MH i2c: E2 FD 00 [00:08:46]MH_I2C_Read... [00:08:46]Read from MH i2c: E2 FD 00 AE 0B 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 4B [00:08:46]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:08:46]wFMCommunicate OK [00:08:46]wFMCommunicate request_size=4 [00:08:46]MH_SAM_APDU [00:08:46]CAPDU: 80 17 00 00 [00:08:46]Write to MH i2c: E2 08 00 AF 0B 80 17 00 00 00 00 00 00 3A [00:08:46]Write i2c OK [00:08:46]MH_I2C_Read... [00:08:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:47]Read from MH i2c: E2 [00:08:47]MH_I2C_Read... [00:08:47]Read from MH i2c: E2 FD 00 [00:08:47]MH_I2C_Read... [00:08:47]Read from MH i2c: E2 FD 00 AF 0B 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 C6 [00:08:47]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:08:47]wFMCommunicate OK [00:08:47]wFMCommunicate request_size=4 [00:08:47]MH_SAM_APDU [00:08:47]CAPDU: 80 17 00 00 [00:08:47]Write to MH i2c: E2 08 00 B0 0B 80 17 00 00 00 00 00 00 3B [00:08:47]Write i2c OK [00:08:47]MH_I2C_Read... [00:08:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:08:47]Read from MH i2c: E2 [00:08:47]MH_I2C_Read... [00:08:47]Read from MH i2c: E2 E2 00 [00:08:47]MH_I2C_Read... [00:08:47]Read from MH i2c: E2 E2 00 B0 0B 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 19 [00:08:47]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:08:47]wFMCommunicate OK [00:08:47]SAM_PROTO_GetFMData done [00:08:47]requested_item fm.sale_refund.total is exist - process it [00:08:47]requested_item fm.buy.total is exist - process it [00:08:47]requested_item shift.sale.total is exist - process it [00:08:47]SAM_PROTO_GetShiftData [00:08:47]wFMCommunicate request_size=4 [00:08:47]MH_SAM_APDU [00:08:47]CAPDU: 80 13 02 00 [00:08:47]Write to MH i2c: E2 08 00 B1 0B 80 13 02 00 00 00 00 00 3A [00:08:47]Write i2c OK [00:08:47]MH_I2C_Read... [00:08:47]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:08:47]Read from MH i2c: E2 [00:08:47]MH_I2C_Read... [00:08:47]Read from MH i2c: E2 FD 00 [00:08:47]MH_I2C_Read... [00:08:47]Read from MH i2c: E2 FD 00 B1 0B 00 BC 04 AA 04 B8 04 6E 04 04 00 F6 00 00 00 69 04 9E 00 6F 04 04 00 EA 00 00 00 B1 04 04 00 3F CA 92 01 70 04 04 00 24 3F 46 01 72 04 03 00 1B 8B 4C 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 2A C8 2A EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AD 90 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0C 00 00 00 B1 04 03 00 04 53 2B 70 04 03 00 04 53 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EA 99 04 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 59 [00:08:47]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 F6 00 00 00 69 04 9E 00 6F 04 04 00 EA 00 00 00 B1 04 04 00 3F CA 92 01 70 04 04 00 24 3F 46 01 72 04 03 00 1B 8B 4C 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 2A C8 2A EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AD 90 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0C 00 00 00 B1 04 03 00 04 53 2B 70 04 03 00 04 53 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EA 99 04 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:08:47]wFMCommunicate OK [00:08:47]wFMCommunicate request_size=4 [00:08:47]MH_SAM_APDU [00:08:47]CAPDU: 80 17 00 00 [00:08:47]Write to MH i2c: E2 08 00 B2 0B 80 17 00 00 00 00 00 00 3D [00:08:47]Write i2c OK [00:08:47]MH_I2C_Read... [00:08:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:48]Read from MH i2c: E2 [00:08:48]MH_I2C_Read... [00:08:48]Read from MH i2c: E2 FD 00 [00:08:48]MH_I2C_Read... [00:08:48]Read from MH i2c: E2 FD 00 B2 0B 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 2A 62 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 90 00 73 [00:08:48]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 2A 62 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 90 00 [00:08:48]wFMCommunicate OK [00:08:48]wFMCommunicate request_size=4 [00:08:48]MH_SAM_APDU [00:08:48]CAPDU: 80 17 00 00 [00:08:48]Write to MH i2c: E2 08 00 B3 0B 80 17 00 00 00 00 00 00 3E [00:08:48]Write i2c OK [00:08:48]MH_I2C_Read... [00:08:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:48]Read from MH i2c: E2 [00:08:48]MH_I2C_Read... [00:08:48]Read from MH i2c: E2 FD 00 [00:08:48]MH_I2C_Read... [00:08:48]Read from MH i2c: E2 FD 00 B3 0B 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 90 00 67 [00:08:48]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 90 00 [00:08:48]wFMCommunicate OK [00:08:48]wFMCommunicate request_size=4 [00:08:48]MH_SAM_APDU [00:08:48]CAPDU: 80 17 00 00 [00:08:48]Write to MH i2c: E2 08 00 B4 0B 80 17 00 00 00 00 00 00 3F [00:08:48]Write i2c OK [00:08:48]MH_I2C_Read... [00:08:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:48]Read from MH i2c: E2 [00:08:48]MH_I2C_Read... [00:08:48]Read from MH i2c: E2 FD 00 [00:08:48]MH_I2C_Read... [00:08:48]Read from MH i2c: E2 FD 00 B4 0B 00 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 C0 [00:08:48]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [00:08:48]wFMCommunicate OK [00:08:48]wFMCommunicate request_size=4 [00:08:48]MH_SAM_APDU [00:08:48]CAPDU: 80 17 00 00 [00:08:48]Write to MH i2c: E2 08 00 B5 0B 80 17 00 00 00 00 00 00 40 [00:08:48]Write i2c OK [00:08:48]MH_I2C_Read... [00:08:48]OFD Sender: No OFD packet to send [00:08:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [00:08:48]Read from MH i2c: E2 [00:08:48]MH_I2C_Read... [00:08:48]Read from MH i2c: E2 D9 00 [00:08:48]MH_I2C_Read... [00:08:48]Read from MH i2c: E2 D9 00 B5 0B 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 1F [00:08:49]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:08:49]wFMCommunicate OK [00:08:49]SAM_PROTO_GetShiftData done [00:08:49]requested_item shift.sale.total_cash is exist - process it [00:08:49]requested_item shift.sale_refund.total is exist - process it [00:08:49]requested_item shift.sale_refund.total_cash is exist - process it [00:08:49]requested_item shift.buy.total is exist - process it [00:08:49]requested_item shift.buy.total_cash is exist - process it [00:08:49]produce_requested_data done [00:08:49]produce_requested_data return {"fm.sale.total":52662740.33,"fm.sale_refund.total":2500677.00,"fm.buy.total":0.00,"shift.sale.total":263972.47,"shift.sale.total_cash":213809.00,"shift.sale_refund.total":28393.00,"shift.sale_refund.total_cash":28393.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:08:49]process_action_free get_value [00:08:49]json_value_free [00:08:49]json_value_free done [00:08:49]process_json_proto returns [00:08:49]Send response to host [00:08:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":52662740.33,"fm.sale_refund.total":2500677.00,"fm.buy.total":0.00,"shift.sale.total":263972.47,"shift.sale.total_cash":213809.00,"shift.sale_refund.total":28393.00,"shift.sale_refund.total_cash":28393.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:08:49]free response buf [00:08:49]execute_script done [00:08:49]execute_script returns [00:08:49]free content buf [00:08:49]Sock 9.Close socket [00:08:49]Sock 9.Thread stoped [00:08:49]accept exits with 7 [00:08:49]New connection [00:08:49]New thread 3067084132 created [00:08:49]Thread 3067227492 joined [00:08:49]Waiting for new connection... [00:08:49] Sock 7.Parse request [00:08:49]Sock 7.Check first char [00:08:49]Sock 7.First char is OK [00:08:49]request: POST /json_proto HTTP/1.0 [00:08:49]Method: POST [00:08:49]URL: /json_proto [00:08:49]Method is POST - this is cgi request [00:08:49]url: /json_proto [00:08:49]query_string will be loaded in cgi processing [00:08:49]execute_cgi json_proto POST (null) [00:08:49]execute_cgi path=json_proto method=POST [00:08:49]POST find Content-Length [00:08:49]Host: 172.17.36.132:8080 [00:08:49]Content-Length: 331 [00:08:49]Content-Type: application/json [00:08:49] [00:08:49]POST finish read [00:08:49]Found Content-Length = 331 [00:08:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:08:49]execute_script... [00:08:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:08:49]POST & json_proto [00:08:49]process_json_proto [00:08:49]json parsed OK: [00:08:49]protocol is kg_v1.0 [00:08:49]action value=get_value [00:08:49]process_action get_value [00:08:49]cmd_get_value [00:08:49]process_action get_value done [00:08:49]requested_data is exist [00:08:49]produce_requested_data [00:08:49]requested_item fm.sale.total is exist - process it [00:08:49]SAM_PROTO_GetFMData [00:08:49]wFMCommunicate request_size=4 [00:08:49]MH_SAM_APDU [00:08:49]CAPDU: 80 13 03 00 [00:08:49]Write to MH i2c: E2 08 00 B6 0B 80 13 03 00 00 00 00 00 40 [00:08:49]Write i2c OK [00:08:49]MH_I2C_Read... [00:08:49]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:08:49]Read from MH i2c: E2 [00:08:49]MH_I2C_Read... [00:08:49]Read from MH i2c: E2 FD 00 [00:08:49]MH_I2C_Read... [00:08:49]Read from MH i2c: E2 FD 00 B6 0B 00 C5 04 85 04 C1 04 6E 04 04 00 0C 09 01 00 69 04 A3 00 6F 04 04 00 F5 03 01 00 B1 04 05 00 F1 F6 E4 39 01 70 04 05 00 68 DE 3C 0D 01 72 04 04 00 89 18 A8 2C 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 EA 17 58 21 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 0F 3E C7 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 17 05 00 00 B1 04 04 00 F4 BA E7 0E 70 04 04 00 F4 BA E7 0E 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 28 44 95 01 EF 03 09 90 00 71 [00:08:49]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 0C 09 01 00 69 04 A3 00 6F 04 04 00 F5 03 01 00 B1 04 05 00 F1 F6 E4 39 01 70 04 05 00 68 DE 3C 0D 01 72 04 04 00 89 18 A8 2C 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 EA 17 58 21 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 0F 3E C7 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 17 05 00 00 B1 04 04 00 F4 BA E7 0E 70 04 04 00 F4 BA E7 0E 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 28 44 95 01 EF 03 09 90 00 [00:08:49]wFMCommunicate OK [00:08:49]wFMCommunicate request_size=4 [00:08:49]MH_SAM_APDU [00:08:49]CAPDU: 80 17 00 00 [00:08:49]Write to MH i2c: E2 08 00 B7 0B 80 17 00 00 00 00 00 00 42 [00:08:49]Write i2c OK [00:08:49]MH_I2C_Read... [00:08:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:49]Read from MH i2c: E2 [00:08:49]MH_I2C_Read... [00:08:49]Read from MH i2c: E2 FD 00 [00:08:49]MH_I2C_Read... [00:08:49]Read from MH i2c: E2 FD 00 B7 0B 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 3C C5 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 1A [00:08:49]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 3C C5 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:08:49]wFMCommunicate OK [00:08:49]wFMCommunicate request_size=4 [00:08:49]MH_SAM_APDU [00:08:49]CAPDU: 80 17 00 00 [00:08:49]Write to MH i2c: E2 08 00 B8 0B 80 17 00 00 00 00 00 00 43 [00:08:49]Write i2c OK [00:08:49]MH_I2C_Read... [00:08:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:50]Read from MH i2c: E2 [00:08:50]MH_I2C_Read... [00:08:50]Read from MH i2c: E2 FD 00 [00:08:50]MH_I2C_Read... [00:08:50]Read from MH i2c: E2 FD 00 B8 0B 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 55 [00:08:50]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:08:50]wFMCommunicate OK [00:08:50]wFMCommunicate request_size=4 [00:08:50]MH_SAM_APDU [00:08:50]CAPDU: 80 17 00 00 [00:08:50]Write to MH i2c: E2 08 00 B9 0B 80 17 00 00 00 00 00 00 44 [00:08:50]Write i2c OK [00:08:50]MH_I2C_Read... [00:08:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:50]Read from MH i2c: E2 [00:08:50]MH_I2C_Read... [00:08:50]Read from MH i2c: E2 FD 00 [00:08:50]MH_I2C_Read... [00:08:50]Read from MH i2c: E2 FD 00 B9 0B 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 D0 [00:08:50]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:08:50]wFMCommunicate OK [00:08:50]wFMCommunicate request_size=4 [00:08:50]MH_SAM_APDU [00:08:50]CAPDU: 80 17 00 00 [00:08:50]Write to MH i2c: E2 08 00 BA 0B 80 17 00 00 00 00 00 00 45 [00:08:50]Write i2c OK [00:08:50]MH_I2C_Read... [00:08:50]Read from MH i2c: E2 [00:08:50]MH_I2C_Read... [00:08:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:08:50]Read from MH i2c: E2 E2 00 [00:08:50]MH_I2C_Read... [00:08:50]Read from MH i2c: E2 E2 00 BA 0B 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 23 [00:08:50]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:08:51]wFMCommunicate OK [00:08:51]SAM_PROTO_GetFMData done [00:08:51]requested_item fm.sale_refund.total is exist - process it [00:08:51]requested_item fm.buy.total is exist - process it [00:08:51]requested_item shift.sale.total is exist - process it [00:08:51]SAM_PROTO_GetShiftData [00:08:51]wFMCommunicate request_size=4 [00:08:51]MH_SAM_APDU [00:08:51]CAPDU: 80 13 02 00 [00:08:51]Write to MH i2c: E2 08 00 BB 0B 80 13 02 00 00 00 00 00 44 [00:08:51]Write i2c OK [00:08:51]MH_I2C_Read... [00:08:51]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:08:51]Read from MH i2c: E2 [00:08:51]MH_I2C_Read... [00:08:51]Read from MH i2c: E2 FD 00 [00:08:51]MH_I2C_Read... [00:08:51]Read from MH i2c: E2 FD 00 BB 0B 00 BC 04 AA 04 B8 04 6E 04 04 00 F6 00 00 00 69 04 9E 00 6F 04 04 00 EA 00 00 00 B1 04 04 00 3F CA 92 01 70 04 04 00 24 3F 46 01 72 04 03 00 1B 8B 4C 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 2A C8 2A EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AD 90 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0C 00 00 00 B1 04 03 00 04 53 2B 70 04 03 00 04 53 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EA 99 04 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 63 [00:08:51]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 F6 00 00 00 69 04 9E 00 6F 04 04 00 EA 00 00 00 B1 04 04 00 3F CA 92 01 70 04 04 00 24 3F 46 01 72 04 03 00 1B 8B 4C 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 2A C8 2A EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AD 90 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0C 00 00 00 B1 04 03 00 04 53 2B 70 04 03 00 04 53 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EA 99 04 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:08:51]wFMCommunicate OK [00:08:51]wFMCommunicate request_size=4 [00:08:51]MH_SAM_APDU [00:08:51]CAPDU: 80 17 00 00 [00:08:51]Write to MH i2c: E2 08 00 BC 0B 80 17 00 00 00 00 00 00 47 [00:08:51]Write i2c OK [00:08:51]MH_I2C_Read... [00:08:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:51]Read from MH i2c: E2 [00:08:51]MH_I2C_Read... [00:08:51]Read from MH i2c: E2 FD 00 [00:08:51]MH_I2C_Read... [00:08:51]Read from MH i2c: E2 FD 00 BC 0B 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 2A 62 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 90 00 7D [00:08:52]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 2A 62 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 90 00 [00:08:52]wFMCommunicate OK [00:08:52]wFMCommunicate request_size=4 [00:08:52]MH_SAM_APDU [00:08:52]CAPDU: 80 17 00 00 [00:08:52]Write to MH i2c: E2 08 00 BD 0B 80 17 00 00 00 00 00 00 48 [00:08:52]Write i2c OK [00:08:52]MH_I2C_Read... [00:08:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:52]Read from MH i2c: E2 [00:08:52]MH_I2C_Read... [00:08:52]Read from MH i2c: E2 FD 00 [00:08:52]MH_I2C_Read... [00:08:52]Read from MH i2c: E2 FD 00 BD 0B 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 90 00 71 [00:08:52]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 90 00 [00:08:52]wFMCommunicate OK [00:08:52]wFMCommunicate request_size=4 [00:08:52]MH_SAM_APDU [00:08:52]CAPDU: 80 17 00 00 [00:08:52]Write to MH i2c: E2 08 00 BE 0B 80 17 00 00 00 00 00 00 49 [00:08:52]Write i2c OK [00:08:52]MH_I2C_Read... [00:08:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:52]Read from MH i2c: E2 [00:08:52]MH_I2C_Read... [00:08:52]Read from MH i2c: E2 FD 00 [00:08:52]MH_I2C_Read... [00:08:52]Read from MH i2c: E2 FD 00 BE 0B 00 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 CA [00:08:52]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [00:08:52]wFMCommunicate OK [00:08:52]wFMCommunicate request_size=4 [00:08:52]MH_SAM_APDU [00:08:52]CAPDU: 80 17 00 00 [00:08:52]Write to MH i2c: E2 08 00 BF 0B 80 17 00 00 00 00 00 00 4A [00:08:52]Write i2c OK [00:08:52]MH_I2C_Read... [00:08:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [00:08:53]Read from MH i2c: E2 [00:08:53]MH_I2C_Read... [00:08:53]Read from MH i2c: E2 D9 00 [00:08:53]MH_I2C_Read... [00:08:53]Read from MH i2c: E2 D9 00 BF 0B 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 29 [00:08:53]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:08:53]wFMCommunicate OK [00:08:53]SAM_PROTO_GetShiftData done [00:08:53]requested_item shift.sale.total_cash is exist - process it [00:08:53]requested_item shift.sale_refund.total is exist - process it [00:08:53]requested_item shift.sale_refund.total_cash is exist - process it [00:08:53]requested_item shift.buy.total is exist - process it [00:08:53]requested_item shift.buy.total_cash is exist - process it [00:08:53]produce_requested_data done [00:08:53]produce_requested_data return {"fm.sale.total":52662740.33,"fm.sale_refund.total":2500677.00,"fm.buy.total":0.00,"shift.sale.total":263972.47,"shift.sale.total_cash":213809.00,"shift.sale_refund.total":28393.00,"shift.sale_refund.total_cash":28393.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:08:53]process_action_free get_value [00:08:53]json_value_free [00:08:53]json_value_free done [00:08:53]process_json_proto returns [00:08:53]Send response to host [00:08:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":52662740.33,"fm.sale_refund.total":2500677.00,"fm.buy.total":0.00,"shift.sale.total":263972.47,"shift.sale.total_cash":213809.00,"shift.sale_refund.total":28393.00,"shift.sale_refund.total_cash":28393.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:08:53]free response buf [00:08:53]execute_script done [00:08:53]execute_script returns [00:08:53]free content buf [00:08:53]Sock 7.Close socket [00:08:53]Sock 7.Thread stoped [00:08:53]accept exits with 9 [00:08:53]New connection [00:08:53]New thread 3067227492 created [00:08:53]Thread 3067084132 joined [00:08:53]Waiting for new connection... [00:08:53] Sock 9.Parse request [00:08:53]Sock 9.Check first char [00:08:53]Sock 9.First char is OK [00:08:53]request: POST /json_proto HTTP/1.0 [00:08:53]Method: POST [00:08:53]URL: /json_proto [00:08:53]Method is POST - this is cgi request [00:08:53]url: /json_proto [00:08:53]query_string will be loaded in cgi processing [00:08:53]execute_cgi json_proto POST (null) [00:08:53]execute_cgi path=json_proto method=POST [00:08:53]POST find Content-Length [00:08:53]Host: 172.17.36.132:8080 [00:08:53]Content-Length: 245 [00:08:53]Content-Type: application/json [00:08:53] [00:08:53]POST finish read [00:08:53]Found Content-Length = 245 [00:08:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0411\u0430\u043B\u0430\u0435\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:08:53]execute_script... [00:08:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0411\u0430\u043B\u0430\u0435\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:08:53]POST & json_proto [00:08:53]process_json_proto [00:08:53]json parsed OK: [00:08:53]protocol is kg_v1.0 [00:08:53]action value=x_report [00:08:53]process_action x_report [00:08:53]cmd_x_report [00:08:53]MH_GetDate [00:08:53]Write to MH i2c: F0 00 00 C0 0B BA [00:08:53]Write i2c OK [00:08:53]MH_I2C_Read... [00:08:53]Read from MH i2c: F0 [00:08:53]MH_I2C_Read... [00:08:53]Read from MH i2c: F0 09 00 [00:08:53]MH_I2C_Read... [00:08:53]Read from MH i2c: F0 09 00 C0 0B 00 16 5B 5E 66 B2 22 B0 64 E0 [00:08:53]GetLastDocTimeStamp 1717458711 [00:08:53]current date 1717459734 [00:08:53]FM_GetShiftState [00:08:53]SAM_PROTO_GetShiftState [00:08:53]wFMCommunicate request_size=4 [00:08:53]MH_SAM_APDU [00:08:53]CAPDU: 80 13 01 00 [00:08:53]Write to MH i2c: E2 08 00 C1 0B 80 13 01 00 00 00 00 00 49 [00:08:53]Write i2c OK [00:08:53]MH_I2C_Read... [00:08:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:08:53]Read from MH i2c: E2 [00:08:53]MH_I2C_Read... [00:08:53]Read from MH i2c: E2 0E 00 [00:08:53]MH_I2C_Read... [00:08:53]Read from MH i2c: E2 0E 00 C1 0B 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 24 [00:08:53]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [00:08:53]wFMCommunicate OK [00:08:53]SAM_PROTO_GetShiftState done [00:08:53]FM_GetShiftState done [00:08:53]KKMCreateXReportDocument [00:08:53]Load OK [00:08:53]Malloc new data [00:08:53]MH_GetDate [00:08:53]Write to MH i2c: F0 00 00 C2 0B BC [00:08:53]Write i2c OK [00:08:53]MH_I2C_Read... [00:08:53]Read from MH i2c: F0 [00:08:53]MH_I2C_Read... [00:08:53]Read from MH i2c: F0 09 00 [00:08:53]MH_I2C_Read... [00:08:53]Read from MH i2c: F0 09 00 C2 0B 00 16 5B 5E 66 B2 22 B0 64 E2 [00:08:53]Malloc new data [00:08:53]Malloc new data [00:08:53]wFMCommunicate request_size=4 [00:08:53]MH_SAM_APDU [00:08:53]CAPDU: 80 11 00 00 [00:08:53]Write to MH i2c: E2 08 00 C3 0B 80 11 00 00 00 00 00 00 48 [00:08:53]Write i2c OK [00:08:53]MH_I2C_Read... [00:08:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:08:53]Read from MH i2c: E2 [00:08:53]MH_I2C_Read... [00:08:53]Read from MH i2c: E2 17 00 [00:08:53]MH_I2C_Read... [00:08:53]Read from MH i2c: E2 17 00 C3 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 93 [00:08:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [00:08:53]wFMCommunicate OK [00:08:53]SAM_PROTO_GetFieldsCounters [00:08:53]wFMCommunicate request_size=4 [00:08:53]MH_SAM_APDU [00:08:53]CAPDU: 80 13 00 00 [00:08:53]Write to MH i2c: E2 08 00 C4 0B 80 13 00 00 00 00 00 00 4B [00:08:53]Write i2c OK [00:08:53]MH_I2C_Read... [00:08:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:08:53]Read from MH i2c: E2 [00:08:53]MH_I2C_Read... [00:08:53]Read from MH i2c: E2 62 00 [00:08:53]MH_I2C_Read... [00:08:53]Read from MH i2c: E2 62 00 C4 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 94 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 32 [00:08:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 94 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:08:53]wFMCommunicate OK [00:08:53]SAM_PROTO_GetFieldsCounters done [00:08:53]Malloc new data [00:08:53]Malloc new data [00:08:53]Malloc new data [00:08:53]KKMCreateXReportDocument OK [00:08:53]KKMSetXReportData OK [00:08:53]KKMPrepareXReportFMData [00:08:53]SAM_PROTO_GetShiftData [00:08:53]wFMCommunicate request_size=4 [00:08:53]MH_SAM_APDU [00:08:53]CAPDU: 80 13 02 00 [00:08:53]Write to MH i2c: E2 08 00 C5 0B 80 13 02 00 00 00 00 00 4E [00:08:53]Write i2c OK [00:08:53]MH_I2C_Read... [00:08:53]OFD Sender: No OFD packet to send [00:08:53]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:08:53]Read from MH i2c: E2 [00:08:53]MH_I2C_Read... [00:08:53]Read from MH i2c: E2 FD 00 [00:08:53]MH_I2C_Read... [00:08:54]Read from MH i2c: E2 FD 00 C5 0B 00 BC 04 AA 04 B8 04 6E 04 04 00 F6 00 00 00 69 04 9E 00 6F 04 04 00 EA 00 00 00 B1 04 04 00 3F CA 92 01 70 04 04 00 24 3F 46 01 72 04 03 00 1B 8B 4C 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 2A C8 2A EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AD 90 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0C 00 00 00 B1 04 03 00 04 53 2B 70 04 03 00 04 53 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EA 99 04 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 6D [00:08:54]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 F6 00 00 00 69 04 9E 00 6F 04 04 00 EA 00 00 00 B1 04 04 00 3F CA 92 01 70 04 04 00 24 3F 46 01 72 04 03 00 1B 8B 4C 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 2A C8 2A EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AD 90 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0C 00 00 00 B1 04 03 00 04 53 2B 70 04 03 00 04 53 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EA 99 04 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:08:54]wFMCommunicate OK [00:08:54]wFMCommunicate request_size=4 [00:08:54]MH_SAM_APDU [00:08:54]CAPDU: 80 17 00 00 [00:08:54]Write to MH i2c: E2 08 00 C6 0B 80 17 00 00 00 00 00 00 51 [00:08:54]Write i2c OK [00:08:54]MH_I2C_Read... [00:08:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:54]Read from MH i2c: E2 [00:08:54]MH_I2C_Read... [00:08:54]Read from MH i2c: E2 FD 00 [00:08:54]MH_I2C_Read... [00:08:54]Read from MH i2c: E2 FD 00 C6 0B 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 2A 62 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 90 00 87 [00:08:54]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 2A 62 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 90 00 [00:08:54]wFMCommunicate OK [00:08:54]wFMCommunicate request_size=4 [00:08:54]MH_SAM_APDU [00:08:54]CAPDU: 80 17 00 00 [00:08:54]Write to MH i2c: E2 08 00 C7 0B 80 17 00 00 00 00 00 00 52 [00:08:54]Write i2c OK [00:08:54]MH_I2C_Read... [00:08:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:54]Read from MH i2c: E2 [00:08:54]MH_I2C_Read... [00:08:54]Read from MH i2c: E2 FD 00 [00:08:54]MH_I2C_Read... [00:08:54]Read from MH i2c: E2 FD 00 C7 0B 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 90 00 7B [00:08:54]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 90 00 [00:08:55]wFMCommunicate OK [00:08:55]wFMCommunicate request_size=4 [00:08:55]MH_SAM_APDU [00:08:55]CAPDU: 80 17 00 00 [00:08:55]Write to MH i2c: E2 08 00 C8 0B 80 17 00 00 00 00 00 00 53 [00:08:55]Write i2c OK [00:08:55]MH_I2C_Read... [00:08:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:55]Read from MH i2c: E2 [00:08:55]MH_I2C_Read... [00:08:55]Read from MH i2c: E2 FD 00 [00:08:55]MH_I2C_Read... [00:08:55]Read from MH i2c: E2 FD 00 C8 0B 00 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 D4 [00:08:55]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [00:08:55]wFMCommunicate OK [00:08:55]wFMCommunicate request_size=4 [00:08:55]MH_SAM_APDU [00:08:55]CAPDU: 80 17 00 00 [00:08:55]Write to MH i2c: E2 08 00 C9 0B 80 17 00 00 00 00 00 00 54 [00:08:55]Write i2c OK [00:08:55]MH_I2C_Read... [00:08:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [00:08:55]Read from MH i2c: E2 [00:08:55]MH_I2C_Read... [00:08:55]Read from MH i2c: E2 D9 00 [00:08:55]MH_I2C_Read... [00:08:55]Read from MH i2c: E2 D9 00 C9 0B 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 33 [00:08:55]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:08:55]wFMCommunicate OK [00:08:55]SAM_PROTO_GetShiftData done [00:08:55]1194 (1208) - счетчики итогов смены [00:08:55] 1134 (4) - 246 - количество чеков со всеми признаками расчетов [00:08:55] 1129 (158) - счетчики операций «приход» [00:08:55] 1135 (4) - 234 - количество чеков по признаку расчетов [00:08:55] 1201 (4) - 263972.47 - общая итоговая сумма в чеках [00:08:55] 1136 (4) - 213809.00 - итоговая сумма в чеках наличными [00:08:55] 1138 (3) - 50163.47 - итоговая сумма в чеках безналичными [00:08:55] 1024 (123) - суммы налогов [00:08:55] 1006 (9) - суммы НДС [00:08:55] 1010 (1) - 0% - код ставки НДС [00:08:55] 1011 (0) - 0.00 - сумма НДС по ставке [00:08:55] 1006 (12) - суммы НДС [00:08:55] 1010 (1) - 12% - код ставки НДС [00:08:55] 1011 (3) - 28037.54 - сумма НДС по ставке [00:08:55] 1007 (9) - суммы НСП [00:08:55] 1014 (1) - 0% - код ставки НСП [00:08:55] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:55] 1007 (12) - суммы НСП [00:08:55] 1014 (1) - 1% - код ставки НСП [00:08:55] 1015 (3) - 2336.45 - сумма НСП по ставке [00:08:55] 1007 (9) - суммы НСП [00:08:55] 1014 (1) - 2% - код ставки НСП [00:08:55] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:55] 1007 (9) - суммы НСП [00:08:55] 1014 (1) - 3% - код ставки НСП [00:08:56] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:56] 1007 (9) - суммы НСП [00:08:56] 1014 (1) - 5% - код ставки НСП [00:08:56] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:56] 1007 (9) - суммы НСП [00:08:56] 1014 (1) - 0,50% - код ставки НСП [00:08:56] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:56] 1007 (9) - суммы НСП [00:08:56] 1014 (1) - 1,50% - код ставки НСП [00:08:56] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:56] 1130 (152) - счетчики операций «возврат прихода» [00:08:56] 1135 (4) - 12 - количество чеков по признаку расчетов [00:08:56] 1201 (3) - 28393.00 - общая итоговая сумма в чеках [00:08:56] 1136 (3) - 28393.00 - итоговая сумма в чеках наличными [00:08:56] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:08:56] 1024 (122) - суммы налогов [00:08:56] 1006 (9) - суммы НДС [00:08:56] 1010 (1) - 0% - код ставки НДС [00:08:56] 1011 (0) - 0.00 - сумма НДС по ставке [00:08:56] 1006 (12) - суммы НДС [00:08:56] 1010 (1) - 12% - код ставки НДС [00:08:56] 1011 (3) - 3015.46 - сумма НДС по ставке [00:08:56] 1007 (9) - суммы НСП [00:08:56] 1014 (1) - 0% - код ставки НСП [00:08:56] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:56] 1007 (11) - суммы НСП [00:08:56] 1014 (1) - 1% - код ставки НСП [00:08:56] 1015 (2) - 251.30 - сумма НСП по ставке [00:08:56] 1007 (9) - суммы НСП [00:08:56] 1014 (1) - 2% - код ставки НСП [00:08:56] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:56] 1007 (9) - суммы НСП [00:08:56] 1014 (1) - 3% - код ставки НСП [00:08:56] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:56] 1007 (9) - суммы НСП [00:08:56] 1014 (1) - 5% - код ставки НСП [00:08:56] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:56] 1007 (9) - суммы НСП [00:08:56] 1014 (1) - 0,50% - код ставки НСП [00:08:56] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:56] 1007 (9) - суммы НСП [00:08:56] 1014 (1) - 1,50% - код ставки НСП [00:08:56] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:56] 1131 (141) - счетчики операций «расход» [00:08:56] 1135 (4) - 0 - количество чеков по признаку расчетов [00:08:56] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:08:56] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:08:56] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:08:56] 1024 (117) - суммы налогов [00:08:56] 1006 (9) - суммы НДС [00:08:56] 1010 (1) - 0% - код ставки НДС [00:08:56] 1011 (0) - 0.00 - сумма НДС по ставке [00:08:56] 1006 (9) - суммы НДС [00:08:56] 1010 (1) - 12% - код ставки НДС [00:08:56] 1011 (0) - 0.00 - сумма НДС по ставке [00:08:56] 1007 (9) - суммы НСП [00:08:56] 1014 (1) - 0% - код ставки НСП [00:08:56] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:56] 1007 (9) - суммы НСП [00:08:56] 1014 (1) - 1% - код ставки НСП [00:08:56] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:56] 1007 (9) - суммы НСП [00:08:56] 1014 (1) - 2% - код ставки НСП [00:08:56] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:56] 1007 (9) - суммы НСП [00:08:56] 1014 (1) - 3% - код ставки НСП [00:08:56] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:56] 1007 (9) - суммы НСП [00:08:56] 1014 (1) - 5% - код ставки НСП [00:08:56] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:56] 1007 (9) - суммы НСП [00:08:56] 1014 (1) - 0,50% - код ставки НСП [00:08:56] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:56] 1007 (9) - суммы НСП [00:08:56] 1014 (1) - 1,50% - код ставки НСП [00:08:56] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:56] 1132 (141) - счетчики операций «возврат расхода» [00:08:56] 1135 (4) - 0 - количество чеков по признаку расчетов [00:08:56] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:08:56] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:08:56] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:08:56] 1024 (117) - суммы налогов [00:08:56] 1006 (9) - суммы НДС [00:08:56] 1010 (1) - 0% - код ставки НДС [00:08:56] 1011 (0) - 0.00 - сумма НДС по ставке [00:08:56] 1006 (9) - суммы НДС [00:08:56] 1010 (1) - 12% - код ставки НДС [00:08:56] 1011 (0) - 0.00 - сумма НДС по ставке [00:08:56] 1007 (9) - суммы НСП [00:08:56] 1014 (1) - 0% - код ставки НСП [00:08:56] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:56] 1007 (9) - суммы НСП [00:08:56] 1014 (1) - 1% - код ставки НСП [00:08:56] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:56] 1007 (9) - суммы НСП [00:08:56] 1014 (1) - 2% - код ставки НСП [00:08:56] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:56] 1007 (9) - суммы НСП [00:08:56] 1014 (1) - 3% - код ставки НСП [00:08:56] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:56] 1007 (9) - суммы НСП [00:08:56] 1014 (1) - 5% - код ставки НСП [00:08:56] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:56] 1007 (9) - суммы НСП [00:08:56] 1014 (1) - 0,50% - код ставки НСП [00:08:56] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:56] 1007 (9) - суммы НСП [00:08:56] 1014 (1) - 1,50% - код ставки НСП [00:08:56] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:56] 1133 (588) - - счетчики коррекции - не используются [00:08:56]SetTLVBufToDocument [00:08:56]Processing tag 1194 (04AA) [00:08:56]Load OK [00:08:56]SetTLVBufToDocument [00:08:56]Processing tag 1134 (046E) [00:08:56]Malloc new data [00:08:56]Processing tag 1129 (0469) [00:08:56]Load OK [00:08:56]SetTLVBufToDocument [00:08:56]Processing tag 1135 (046F) [00:08:56]Malloc new data [00:08:56]Processing tag 1201 (04B1) [00:08:56]Malloc new data [00:08:56]Processing tag 1136 (0470) [00:08:56]Malloc new data [00:08:56]Processing tag 1138 (0472) [00:08:56]Malloc new data [00:08:56]Processing tag 1024 (0400) [00:08:56]Load OK [00:08:56]SetTLVBufToDocument [00:08:56]Processing tag 1006 (03EE) [00:08:56]Load OK [00:08:56]SetTLVBufToDocument [00:08:56]Processing tag 1010 (03F2) [00:08:56]Malloc new data [00:08:56]Processing tag 1011 (03F3) [00:08:56]Malloc new data [00:08:56]SetTLVBufToDocument err=0 [00:08:56]Processing tag 1006 (03EE) [00:08:56]Load OK [00:08:56]SetTLVBufToDocument [00:08:56]Processing tag 1010 (03F2) [00:08:56]Malloc new data [00:08:56]Processing tag 1011 (03F3) [00:08:56]Malloc new data [00:08:56]SetTLVBufToDocument err=0 [00:08:56]Processing tag 1007 (03EF) [00:08:56]Load OK [00:08:56]SetTLVBufToDocument [00:08:56]Processing tag 1014 (03F6) [00:08:56]Malloc new data [00:08:56]Processing tag 1015 (03F7) [00:08:56]Malloc new data [00:08:56]SetTLVBufToDocument err=0 [00:08:56]Processing tag 1007 (03EF) [00:08:56]Load OK [00:08:56]SetTLVBufToDocument [00:08:56]Processing tag 1014 (03F6) [00:08:56]Malloc new data [00:08:56]Processing tag 1015 (03F7) [00:08:56]Malloc new data [00:08:56]SetTLVBufToDocument err=0 [00:08:56]Processing tag 1007 (03EF) [00:08:56]Load OK [00:08:56]SetTLVBufToDocument [00:08:56]Processing tag 1014 (03F6) [00:08:56]Malloc new data [00:08:56]Processing tag 1015 (03F7) [00:08:56]Malloc new data [00:08:56]SetTLVBufToDocument err=0 [00:08:56]Processing tag 1007 (03EF) [00:08:56]Load OK [00:08:56]SetTLVBufToDocument [00:08:56]Processing tag 1014 (03F6) [00:08:56]Malloc new data [00:08:56]Processing tag 1015 (03F7) [00:08:56]Malloc new data [00:08:56]SetTLVBufToDocument err=0 [00:08:56]Processing tag 1007 (03EF) [00:08:56]Load OK [00:08:56]SetTLVBufToDocument [00:08:56]Processing tag 1014 (03F6) [00:08:56]Malloc new data [00:08:56]Processing tag 1015 (03F7) [00:08:56]Malloc new data [00:08:56]SetTLVBufToDocument err=0 [00:08:56]Processing tag 1007 (03EF) [00:08:56]Load OK [00:08:56]SetTLVBufToDocument [00:08:56]Processing tag 1014 (03F6) [00:08:56]Malloc new data [00:08:56]Processing tag 1015 (03F7) [00:08:56]Malloc new data [00:08:56]SetTLVBufToDocument err=0 [00:08:56]Processing tag 1007 (03EF) [00:08:56]Load OK [00:08:56]SetTLVBufToDocument [00:08:56]Processing tag 1014 (03F6) [00:08:56]Malloc new data [00:08:56]Processing tag 1015 (03F7) [00:08:56]Malloc new data [00:08:56]SetTLVBufToDocument err=0 [00:08:56]SetTLVBufToDocument err=0 [00:08:56]SetTLVBufToDocument err=0 [00:08:56]Processing tag 1130 (046A) [00:08:56]Load OK [00:08:56]SetTLVBufToDocument [00:08:56]Processing tag 1135 (046F) [00:08:56]Malloc new data [00:08:56]Processing tag 1201 (04B1) [00:08:56]Malloc new data [00:08:56]Processing tag 1136 (0470) [00:08:56]Malloc new data [00:08:56]Processing tag 1138 (0472) [00:08:56]Malloc new data [00:08:56]Processing tag 1024 (0400) [00:08:56]Load OK [00:08:56]SetTLVBufToDocument [00:08:56]Processing tag 1006 (03EE) [00:08:56]Load OK [00:08:56]SetTLVBufToDocument [00:08:56]Processing tag 1010 (03F2) [00:08:56]Malloc new data [00:08:56]Processing tag 1011 (03F3) [00:08:56]Malloc new data [00:08:56]SetTLVBufToDocument err=0 [00:08:56]Processing tag 1006 (03EE) [00:08:56]Load OK [00:08:56]SetTLVBufToDocument [00:08:56]Processing tag 1010 (03F2) [00:08:56]Malloc new data [00:08:56]Processing tag 1011 (03F3) [00:08:56]Malloc new data [00:08:56]SetTLVBufToDocument err=0 [00:08:56]Processing tag 1007 (03EF) [00:08:56]Load OK [00:08:56]SetTLVBufToDocument [00:08:56]Processing tag 1014 (03F6) [00:08:56]Malloc new data [00:08:56]Processing tag 1015 (03F7) [00:08:56]Malloc new data [00:08:56]SetTLVBufToDocument err=0 [00:08:56]Processing tag 1007 (03EF) [00:08:56]Load OK [00:08:56]SetTLVBufToDocument [00:08:56]Processing tag 1014 (03F6) [00:08:56]Malloc new data [00:08:56]Processing tag 1015 (03F7) [00:08:56]Malloc new data [00:08:56]SetTLVBufToDocument err=0 [00:08:56]Processing tag 1007 (03EF) [00:08:56]Load OK [00:08:56]SetTLVBufToDocument [00:08:56]Processing tag 1014 (03F6) [00:08:56]Malloc new data [00:08:56]Processing tag 1015 (03F7) [00:08:56]Malloc new data [00:08:56]SetTLVBufToDocument err=0 [00:08:56]Processing tag 1007 (03EF) [00:08:56]Load OK [00:08:56]SetTLVBufToDocument [00:08:56]Processing tag 1014 (03F6) [00:08:56]Malloc new data [00:08:56]Processing tag 1015 (03F7) [00:08:56]Malloc new data [00:08:56]SetTLVBufToDocument err=0 [00:08:56]Processing tag 1007 (03EF) [00:08:56]Load OK [00:08:56]SetTLVBufToDocument [00:08:56]Processing tag 1014 (03F6) [00:08:56]Malloc new data [00:08:56]Processing tag 1015 (03F7) [00:08:56]Malloc new data [00:08:56]SetTLVBufToDocument err=0 [00:08:56]Processing tag 1007 (03EF) [00:08:56]Load OK [00:08:56]SetTLVBufToDocument [00:08:56]Processing tag 1014 (03F6) [00:08:56]Malloc new data [00:08:56]Processing tag 1015 (03F7) [00:08:56]Malloc new data [00:08:56]SetTLVBufToDocument err=0 [00:08:56]Processing tag 1007 (03EF) [00:08:56]Load OK [00:08:56]SetTLVBufToDocument [00:08:56]Processing tag 1014 (03F6) [00:08:56]Malloc new data [00:08:56]Processing tag 1015 (03F7) [00:08:56]Malloc new data [00:08:56]SetTLVBufToDocument err=0 [00:08:56]SetTLVBufToDocument err=0 [00:08:56]SetTLVBufToDocument err=0 [00:08:56]Processing tag 1131 (046B) [00:08:56]Load OK [00:08:56]SetTLVBufToDocument [00:08:56]Processing tag 1135 (046F) [00:08:56]Malloc new data [00:08:56]Processing tag 1201 (04B1) [00:08:56]Malloc new data [00:08:56]Processing tag 1136 (0470) [00:08:56]Malloc new data [00:08:56]Processing tag 1138 (0472) [00:08:56]Malloc new data [00:08:56]Processing tag 1024 (0400) [00:08:56]Load OK [00:08:56]SetTLVBufToDocument [00:08:56]Processing tag 1006 (03EE) [00:08:56]Load OK [00:08:56]SetTLVBufToDocument [00:08:56]Processing tag 1010 (03F2) [00:08:56]Malloc new data [00:08:56]Processing tag 1011 (03F3) [00:08:56]Malloc new data [00:08:56]SetTLVBufToDocument err=0 [00:08:56]Processing tag 1006 (03EE) [00:08:56]Load OK [00:08:56]SetTLVBufToDocument [00:08:56]Processing tag 1010 (03F2) [00:08:56]Malloc new data [00:08:56]Processing tag 1011 (03F3) [00:08:56]Malloc new data [00:08:56]SetTLVBufToDocument err=0 [00:08:56]Processing tag 1007 (03EF) [00:08:56]Load OK [00:08:56]SetTLVBufToDocument [00:08:56]Processing tag 1014 (03F6) [00:08:56]Malloc new data [00:08:56]Processing tag 1015 (03F7) [00:08:56]Malloc new data [00:08:56]SetTLVBufToDocument err=0 [00:08:56]Processing tag 1007 (03EF) [00:08:56]Load OK [00:08:56]SetTLVBufToDocument [00:08:56]Processing tag 1014 (03F6) [00:08:56]Malloc new data [00:08:56]Processing tag 1015 (03F7) [00:08:56]Malloc new data [00:08:56]SetTLVBufToDocument err=0 [00:08:56]Processing tag 1007 (03EF) [00:08:56]Load OK [00:08:56]SetTLVBufToDocument [00:08:56]Processing tag 1014 (03F6) [00:08:56]Malloc new data [00:08:56]Processing tag 1015 (03F7) [00:08:56]Malloc new data [00:08:56]SetTLVBufToDocument err=0 [00:08:56]Processing tag 1007 (03EF) [00:08:56]Load OK [00:08:56]SetTLVBufToDocument [00:08:56]Processing tag 1014 (03F6) [00:08:56]Malloc new data [00:08:56]Processing tag 1015 (03F7) [00:08:56]Malloc new data [00:08:56]SetTLVBufToDocument err=0 [00:08:56]Processing tag 1007 (03EF) [00:08:56]Load OK [00:08:56]SetTLVBufToDocument [00:08:56]Processing tag 1014 (03F6) [00:08:56]Malloc new data [00:08:56]Processing tag 1015 (03F7) [00:08:56]Malloc new data [00:08:56]SetTLVBufToDocument err=0 [00:08:56]Processing tag 1007 (03EF) [00:08:56]Load OK [00:08:56]SetTLVBufToDocument [00:08:56]Processing tag 1014 (03F6) [00:08:56]Malloc new data [00:08:56]Processing tag 1015 (03F7) [00:08:56]Malloc new data [00:08:56]SetTLVBufToDocument err=0 [00:08:56]Processing tag 1007 (03EF) [00:08:56]Load OK [00:08:56]SetTLVBufToDocument [00:08:56]Processing tag 1014 (03F6) [00:08:56]Malloc new data [00:08:56]Processing tag 1015 (03F7) [00:08:56]Malloc new data [00:08:57]SetTLVBufToDocument err=0 [00:08:57]SetTLVBufToDocument err=0 [00:08:57]SetTLVBufToDocument err=0 [00:08:57]Processing tag 1132 (046C) [00:08:57]Load OK [00:08:57]SetTLVBufToDocument [00:08:57]Processing tag 1135 (046F) [00:08:57]Malloc new data [00:08:57]Processing tag 1201 (04B1) [00:08:57]Malloc new data [00:08:57]Processing tag 1136 (0470) [00:08:57]Malloc new data [00:08:57]Processing tag 1138 (0472) [00:08:57]Malloc new data [00:08:57]Processing tag 1024 (0400) [00:08:57]Load OK [00:08:57]SetTLVBufToDocument [00:08:57]Processing tag 1006 (03EE) [00:08:57]Load OK [00:08:57]SetTLVBufToDocument [00:08:57]Processing tag 1010 (03F2) [00:08:57]Malloc new data [00:08:57]Processing tag 1011 (03F3) [00:08:57]Malloc new data [00:08:57]SetTLVBufToDocument err=0 [00:08:57]Processing tag 1006 (03EE) [00:08:57]Load OK [00:08:57]SetTLVBufToDocument [00:08:57]Processing tag 1010 (03F2) [00:08:57]Malloc new data [00:08:57]Processing tag 1011 (03F3) [00:08:57]Malloc new data [00:08:57]SetTLVBufToDocument err=0 [00:08:57]Processing tag 1007 (03EF) [00:08:57]Load OK [00:08:57]SetTLVBufToDocument [00:08:57]Processing tag 1014 (03F6) [00:08:57]Malloc new data [00:08:57]Processing tag 1015 (03F7) [00:08:57]Malloc new data [00:08:57]SetTLVBufToDocument err=0 [00:08:57]Processing tag 1007 (03EF) [00:08:57]Load OK [00:08:57]SetTLVBufToDocument [00:08:57]Processing tag 1014 (03F6) [00:08:57]Malloc new data [00:08:57]Processing tag 1015 (03F7) [00:08:57]Malloc new data [00:08:57]SetTLVBufToDocument err=0 [00:08:57]Processing tag 1007 (03EF) [00:08:57]Load OK [00:08:57]SetTLVBufToDocument [00:08:57]Processing tag 1014 (03F6) [00:08:57]Malloc new data [00:08:57]Processing tag 1015 (03F7) [00:08:57]Malloc new data [00:08:57]SetTLVBufToDocument err=0 [00:08:57]Processing tag 1007 (03EF) [00:08:57]Load OK [00:08:57]SetTLVBufToDocument [00:08:57]Processing tag 1014 (03F6) [00:08:57]Malloc new data [00:08:57]Processing tag 1015 (03F7) [00:08:57]Malloc new data [00:08:57]SetTLVBufToDocument err=0 [00:08:57]Processing tag 1007 (03EF) [00:08:57]Load OK [00:08:57]SetTLVBufToDocument [00:08:57]Processing tag 1014 (03F6) [00:08:57]Malloc new data [00:08:57]Processing tag 1015 (03F7) [00:08:57]Malloc new data [00:08:57]SetTLVBufToDocument err=0 [00:08:57]Processing tag 1007 (03EF) [00:08:57]Load OK [00:08:57]SetTLVBufToDocument [00:08:57]Processing tag 1014 (03F6) [00:08:57]Malloc new data [00:08:57]Processing tag 1015 (03F7) [00:08:57]Malloc new data [00:08:57]SetTLVBufToDocument err=0 [00:08:57]Processing tag 1007 (03EF) [00:08:57]Load OK [00:08:57]SetTLVBufToDocument [00:08:57]Processing tag 1014 (03F6) [00:08:57]Malloc new data [00:08:57]Processing tag 1015 (03F7) [00:08:57]Malloc new data [00:08:57]SetTLVBufToDocument err=0 [00:08:57]SetTLVBufToDocument err=0 [00:08:57]SetTLVBufToDocument err=0 [00:08:57]Processing tag 1133 (046D) [00:08:57]Malloc new data [00:08:57]SetTLVBufToDocument err=0 [00:08:57]SetTLVBufToDocument err=0 [00:08:57]Malloc new data [00:08:57]SAM_PROTO_GetFMData [00:08:57]wFMCommunicate request_size=4 [00:08:57]MH_SAM_APDU [00:08:57]CAPDU: 80 13 03 00 [00:08:57]Write to MH i2c: E2 08 00 CA 0B 80 13 03 00 00 00 00 00 54 [00:08:57]Write i2c OK [00:08:57]MH_I2C_Read... [00:08:57]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:08:57]Read from MH i2c: E2 [00:08:57]MH_I2C_Read... [00:08:57]Read from MH i2c: E2 FD 00 [00:08:57]MH_I2C_Read... [00:08:57]Read from MH i2c: E2 FD 00 CA 0B 00 C5 04 85 04 C1 04 6E 04 04 00 0C 09 01 00 69 04 A3 00 6F 04 04 00 F5 03 01 00 B1 04 05 00 F1 F6 E4 39 01 70 04 05 00 68 DE 3C 0D 01 72 04 04 00 89 18 A8 2C 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 EA 17 58 21 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 0F 3E C7 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 17 05 00 00 B1 04 04 00 F4 BA E7 0E 70 04 04 00 F4 BA E7 0E 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 28 44 95 01 EF 03 09 90 00 85 [00:08:57]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 0C 09 01 00 69 04 A3 00 6F 04 04 00 F5 03 01 00 B1 04 05 00 F1 F6 E4 39 01 70 04 05 00 68 DE 3C 0D 01 72 04 04 00 89 18 A8 2C 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 EA 17 58 21 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 0F 3E C7 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 17 05 00 00 B1 04 04 00 F4 BA E7 0E 70 04 04 00 F4 BA E7 0E 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 28 44 95 01 EF 03 09 90 00 [00:08:57]wFMCommunicate OK [00:08:57]wFMCommunicate request_size=4 [00:08:57]MH_SAM_APDU [00:08:57]CAPDU: 80 17 00 00 [00:08:57]Write to MH i2c: E2 08 00 CB 0B 80 17 00 00 00 00 00 00 56 [00:08:57]Write i2c OK [00:08:57]MH_I2C_Read... [00:08:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:58]Read from MH i2c: E2 [00:08:58]MH_I2C_Read... [00:08:58]Read from MH i2c: E2 FD 00 [00:08:58]MH_I2C_Read... [00:08:58]Read from MH i2c: E2 FD 00 CB 0B 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 3C C5 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 2E [00:08:58]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 3C C5 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:08:58]wFMCommunicate OK [00:08:58]wFMCommunicate request_size=4 [00:08:58]MH_SAM_APDU [00:08:58]CAPDU: 80 17 00 00 [00:08:58]Write to MH i2c: E2 08 00 CC 0B 80 17 00 00 00 00 00 00 57 [00:08:58]Write i2c OK [00:08:58]MH_I2C_Read... [00:08:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:58]Read from MH i2c: E2 [00:08:58]MH_I2C_Read... [00:08:58]Read from MH i2c: E2 FD 00 [00:08:58]MH_I2C_Read... [00:08:58]Read from MH i2c: E2 FD 00 CC 0B 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 69 [00:08:58]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:08:58]wFMCommunicate OK [00:08:58]wFMCommunicate request_size=4 [00:08:58]MH_SAM_APDU [00:08:58]CAPDU: 80 17 00 00 [00:08:58]Write to MH i2c: E2 08 00 CD 0B 80 17 00 00 00 00 00 00 58 [00:08:58]Write i2c OK [00:08:58]MH_I2C_Read... [00:08:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:58]Read from MH i2c: E2 [00:08:58]MH_I2C_Read... [00:08:58]Read from MH i2c: E2 FD 00 [00:08:58]MH_I2C_Read... [00:08:59]Read from MH i2c: E2 FD 00 CD 0B 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 E4 [00:08:59]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 OFD Sender: No OFD packet to send [00:08:59]F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:08:59]wFMCommunicate OK [00:08:59]wFMCommunicate request_size=4 [00:08:59]MH_SAM_APDU [00:08:59]CAPDU: 80 17 00 00 [00:08:59]Write to MH i2c: E2 08 00 CE 0B 80 17 00 00 00 00 00 00 59 [00:08:59]Write i2c OK [00:08:59]MH_I2C_Read... [00:08:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:08:59]Read from MH i2c: E2 [00:08:59]MH_I2C_Read... [00:08:59]Read from MH i2c: E2 E2 00 [00:08:59]MH_I2C_Read... [00:08:59]Read from MH i2c: E2 E2 00 CE 0B 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 37 [00:08:59]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:08:59]wFMCommunicate OK [00:08:59]SAM_PROTO_GetFMData done [00:08:59]FM_GetFMData:85 04 C1 04 6E 04 04 00 0C 09 01 00 69 04 A3 00 6F 04 04 00 F5 03 01 00 B1 04 05 00 F1 F6 E4 39 01 70 04 05 00 68 DE 3C 0D 01 72 04 04 00 89 18 A8 2C 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 EA 17 58 21 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 0F 3E C7 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 17 05 00 00 B1 04 04 00 F4 BA E7 0E 70 04 04 00 F4 BA E7 0E 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 28 44 95 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 3C C5 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:09:00]oper:6F 04 04 00 F5 03 01 00 B1 04 05 00 F1 F6 E4 39 01 70 04 05 00 68 DE 3C 0D 01 72 04 04 00 89 18 A8 2C 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 EA 17 58 21 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 0F 3E C7 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:09:00]total:F1 F6 E4 39 01 [00:09:00]Malloc new data [00:09:00]oper:6F 04 04 00 17 05 00 00 B1 04 04 00 F4 BA E7 0E 70 04 04 00 F4 BA E7 0E 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 28 44 95 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 3C C5 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:09:00]total:F4 BA E7 0E [00:09:00]Malloc new data [00:09:00]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:09:00]total: [00:09:00]Malloc new data [00:09:00]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:09:00]total: [00:09:00]Malloc new data [00:09:00]KKMPrepareXReportFMData err=0 [00:09:00]Х отчет ИНН: 02508201610067 Кассир: Балаев А. 04.06.2024 00:08 Смена: 266 РНМ: 0000000000098096 ЗНМ: 0300000181 СНО: Общий режим Всего чеков: 246 ИТОГИ ПРИХОД Чеков: 234 Общий итог: 263972.47 Итого наличными: 213809.00 Итого безнал.: 50163.47 НДС 0% : 0.00 НДС 12% : 28037.54 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 2336.45 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 12 Общий итог: 28393.00 Итого наличными: 28393.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 3015.46 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 251.30 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 185416.00 НС Приход: 52662740.33 НС Возвр.Прихода: 2500677.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000965400 [00:09:00]StoreToDocumentArchive [00:09:00]MH_GetDate [00:09:00]Write to MH i2c: F0 00 00 CF 0B C9 [00:09:00]Write i2c OK [00:09:00]MH_I2C_Read... [00:09:00]Read from MH i2c: F0 [00:09:00]MH_I2C_Read... [00:09:00]Read from MH i2c: F0 09 00 [00:09:00]MH_I2C_Read... [00:09:00]Read from MH i2c: F0 09 00 CF 0B 00 1E 5B 5E 66 B2 22 B0 64 F7 [00:09:00]shift 266 fd 1717459742 [00:09:00]Create dir for shift 0266 [00:09:00]save to /storage/0266/doc_1717459742 [00:09:00]save last doc name /storage/0266/doc_1717459742 to /storage/kkm_last_doc_name [00:09:00]save OK [00:09:00]Clear old archive folders... [00:09:00]NVStorageSaveData kkm_last_timestamp [00:09:00]File name is /storage/kkm_last_timestamp [00:09:00]Write 4 bytes [00:09:00]NVStorageSaveData done [00:09:00]ExternCall_PrintAddStr [00:09:00]wPrintStart [00:09:00]Write to MH i2c: 01 00 00 D0 0B DB [00:09:00]Write i2c OK [00:09:00]MH_I2C_Read... [00:09:00]Read from MH i2c: 01 [00:09:00]MH_I2C_Read... [00:09:00]Read from MH i2c: 01 07 00 [00:09:00]MH_I2C_Read... [00:09:00]Read from MH i2c: 01 07 00 D0 0B 00 00 00 00 00 FF 0F F0 [00:09:00]RasterBufferAndPrint [00:09:00]line Х отчет [00:09:00]line ИНН: 02508201610067 [00:09:00]line Кассир: Балаев А. [00:09:00]line 04.06.2024 00:08 [00:09:00]line Смена: 266 [00:09:00]line РНМ: 0000000000098096 [00:09:00]line ЗНМ: 0300000181 [00:09:00]line СНО: Общий режим [00:09:00]line Всего чеков: 246 [00:09:00]line ИТОГИ ПРИХОД [00:09:00]line Чеков: 234 [00:09:00]line Общий итог: 263972.47 [00:09:00]line Итого наличными: 213809.00 [00:09:00]line Итого безнал.: 50163.47 [00:09:00]line НДС 0% : 0.00 [00:09:00]line НДС 12% : 28037.54 [00:09:00]line НСП 0% : 0.00 [00:09:00]line НСП 1,50% : 0.00 [00:09:00]line НСП 0,50% : 0.00 [00:09:00]line НСП 5% : 0.00 [00:09:00]line НСП 3% : 0.00 [00:09:00]line НСП 2% : 0.00 [00:09:00]line НСП 1% : 2336.45 [00:09:00]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:09:00]line Чеков: 12 [00:09:00]line Общий итог: 28393.00 [00:09:00]line Итого наличными: 28393.00 [00:09:00]line Итого безнал.: 0.00 [00:09:00]line НДС 0% : 0.00 [00:09:00]line НДС 12% : 3015.46 [00:09:00]line НСП 0% : 0.00 [00:09:00]line НСП 1,50% : 0.00 [00:09:00]line НСП 0,50% : 0.00 [00:09:00]line НСП 5% : 0.00 [00:09:00]line НСП 3% : 0.00 [00:09:00]line НСП 2% : 0.00 [00:09:00]line НСП 1% : 251.30 [00:09:00]line ИТОГИ РАСХОД [00:09:00]line Чеков: 0 [00:09:00]line Общий итог: 0.00 [00:09:00]line Итого наличными: 0.00 [00:09:00]line Итого безнал.: 0.00 [00:09:00]line НДС 0% : 0.00 [00:09:00]line НДС 12% : 0.00 [00:09:00]line НСП 0% : 0.00 [00:09:00]line НСП 1,50% : 0.00 [00:09:00]line НСП 0,50% : 0.00 [00:09:00]line НСП 5% : 0.00 [00:09:00]line НСП 3% : 0.00 [00:09:00]line НСП 2% : 0.00 [00:09:00]line НСП 1% : 0.00 [00:09:00]line ИТОГИ ВОЗВРАТ РАСХОДА [00:09:00]line Чеков: 0 [00:09:00]line Общий итог: 0.00 [00:09:00]line Итого наличными: 0.00 [00:09:00]line Итого безнал.: 0.00 [00:09:00]line НДС 0% : 0.00 [00:09:00]line НДС 12% : 0.00 [00:09:00]line НСП 0% : 0.00 [00:09:00]line НСП 1,50% : 0.00 [00:09:00]line НСП 0,50% : 0.00 [00:09:00]line НСП 5% : 0.00 [00:09:00]line НСП 3% : 0.00 [00:09:00]line НСП 2% : 0.00 [00:09:00]line НСП 1% : 0.00 [00:09:00]line Сумма внесений: 0.00 [00:09:00]line Сумма выплат: 0.00 [00:09:00]line Нал. в кассе: 185416.00 [00:09:00]line НС Приход: 52662740.33 [00:09:00]line НС Возвр.Прихода: 2500677.00 [00:09:00]line НС Расход: 0.00 [00:09:00]line НС Возвр.Расхода: 0.00 [00:09:00]line ФМ: 0000000000965400 [00:09:00]written 0, free lines is 4095 [00:09:01]Write to MH i2c: 01 00 00 1B 0C 27 [00:09:01]Write i2c OK [00:09:01]MH_I2C_Read... [00:09:01]Read from MH i2c: 01 [00:09:01]MH_I2C_Read... [00:09:01]Read from MH i2c: 01 07 00 [00:09:01]MH_I2C_Read... [00:09:01]Read from MH i2c: 01 07 00 1B 0C 00 00 00 00 00 9F 0A D7 [00:09:01]RasterBufferAndPrint [00:09:01]line [00:09:01]line [00:09:01]line [00:09:01]line [00:09:01]line [00:09:01]written 0, free lines is 2747 [00:09:01]MH_Cut [00:09:01]Write to MH i2c: D1 01 00 22 0C 01 00 [00:09:01]Write i2c OK [00:09:01]MH_I2C_Read... [00:09:01]Read from MH i2c: D1 [00:09:01]MH_I2C_Read... [00:09:01]Read from MH i2c: D1 01 00 [00:09:01]MH_I2C_Read... [00:09:01]Read from MH i2c: D1 01 00 22 0C 00 FF [00:09:01]Write to MH i2c: 01 00 00 23 0C 2F [00:09:01]Write i2c OK [00:09:01]MH_I2C_Read... [00:09:02]*** Cut start [00:09:02]*** Partial cut [00:09:02]*** CUTSNS_PIN = 1 [00:09:02]*** CUTSNS_PIN = 0 [00:09:03]*** Brake cut motor [00:09:03]Read from MH i2c: 01 [00:09:03]MH_I2C_Read... [00:09:03]*** Stop cut motor [00:09:03]*** Cut end [00:09:03]Read from MH i2c: 01 07 00 [00:09:03]MH_I2C_Read... [00:09:03]Read from MH i2c: 01 07 00 23 0C 00 00 00 00 00 FF 0F 44 [00:09:03]process_action x_report done [00:09:03]requested_data is exist [00:09:03]produce_requested_data [00:09:03]requested_item fd.num is exist - process it [00:09:03]SAM_PROTO_GetFieldsCounters [00:09:03]wFMCommunicate request_size=4 [00:09:03]MH_SAM_APDU [00:09:03]CAPDU: 80 13 00 00 [00:09:03]Write to MH i2c: E2 08 00 24 0C 80 13 00 00 00 00 00 00 AC [00:09:03]Write i2c OK [00:09:03]MH_I2C_Read... [00:09:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:09:03]Read from MH i2c: E2 [00:09:03]MH_I2C_Read... [00:09:03]Read from MH i2c: E2 62 00 [00:09:03]MH_I2C_Read... [00:09:03]Read from MH i2c: E2 62 00 24 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 94 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [00:09:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 94 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:09:03]wFMCommunicate OK [00:09:03]SAM_PROTO_GetFieldsCounters done [00:09:03]requested_item shift.num is exist - process it [00:09:03]requested_item shift.opened is exist - process it [00:09:03]req_shift_opened [00:09:03]FM_GetShiftState [00:09:03]SAM_PROTO_GetShiftState [00:09:03]wFMCommunicate request_size=4 [00:09:03]MH_SAM_APDU [00:09:03]CAPDU: 80 13 01 00 [00:09:03]Write to MH i2c: E2 08 00 25 0C 80 13 01 00 00 00 00 00 AE [00:09:03]Write i2c OK [00:09:03]MH_I2C_Read... [00:09:03]Read from MH i2c: E2 [00:09:03]MH_I2C_Read... [00:09:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:09:03]Read from MH i2c: E2 0E 00 [00:09:03]MH_I2C_Read... [00:09:03]Read from MH i2c: E2 0E 00 25 0C 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 89 [00:09:03]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [00:09:03]wFMCommunicate OK [00:09:03]SAM_PROTO_GetShiftState done [00:09:03]FM_GetShiftState done [00:09:03]req_shift_opened done [00:09:03]requested_item shift.open_date is exist - process it [00:09:03]req_shift_open_date [00:09:03]req_shift_open_date done [00:09:03]produce_requested_data done [00:09:03]produce_requested_data return {"fd.num":68500,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [00:09:03]process_action_free x_report [00:09:03]json_value_free [00:09:03]json_value_free done [00:09:03]process_json_proto returns [00:09:03]Send response to host [00:09:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":68500,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [00:09:03]free response buf [00:09:03]execute_script done [00:09:03]execute_script returns [00:09:03]free content buf [00:09:03]Sock 9.Close socket [00:09:03]Sock 9.Thread stoped [00:09:04]OFD Sender: No OFD packet to send [00:09:09]OFD Sender: No OFD packet to send [00:09:14]OFD Sender: No OFD packet to send [00:09:19]OFD Sender: No OFD packet to send [00:09:24]OFD Sender: No OFD packet to send [00:09:29]OFD Sender: No OFD packet to send [00:09:34]OFD Sender: No OFD packet to send [00:09:39]OFD Sender: No OFD packet to send [00:09:44]OFD Sender: No OFD packet to send [00:09:48]accept exits with 7 [00:09:48]New connection [00:09:48]New thread 3067084132 created [00:09:48]Thread 3067227492 joined [00:09:48]Waiting for new connection... [00:09:48] Sock 7.Parse request [00:09:48]Sock 7.Check first char [00:09:48]Sock 7.First char is OK [00:09:48]request: POST /json_proto HTTP/1.0 [00:09:48]Method: POST [00:09:48]URL: /json_proto [00:09:48]Method is POST - this is cgi request [00:09:48]url: /json_proto [00:09:48]query_string will be loaded in cgi processing [00:09:48]execute_cgi json_proto POST (null) [00:09:48]execute_cgi path=json_proto method=POST [00:09:48]POST find Content-Length [00:09:48]Host: 172.17.36.132:8080 [00:09:48]Content-Length: 215 [00:09:48]Content-Type: application/json [00:09:48] [00:09:48]POST finish read [00:09:48]Found Content-Length = 215 [00:09:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:09:48]execute_script... [00:09:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:09:48]POST & json_proto [00:09:48]process_json_proto [00:09:48]json parsed OK: [00:09:48]protocol is kg_v1.0 [00:09:48]action value=get_value [00:09:48]process_action get_value [00:09:48]cmd_get_value [00:09:48]process_action get_value done [00:09:48]requested_data is exist [00:09:48]produce_requested_data [00:09:48]requested_item kkm.sn is exist - process it [00:09:48]requested_item kkm.ver is exist - process it [00:09:48]requested_item fm.sn is exist - process it [00:09:48]wFMCommunicate request_size=4 [00:09:48]MH_SAM_APDU [00:09:48]CAPDU: 80 11 00 00 [00:09:48]Write to MH i2c: E2 08 00 26 0C 80 11 00 00 00 00 00 00 AC [00:09:48]Write i2c OK [00:09:48]MH_I2C_Read... [00:09:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:09:48]Read from MH i2c: E2 [00:09:48]MH_I2C_Read... [00:09:48]Read from MH i2c: E2 17 00 [00:09:48]MH_I2C_Read... [00:09:48]Read from MH i2c: E2 17 00 26 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 F7 [00:09:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [00:09:48]wFMCommunicate OK [00:09:48]requested_item fd.num is exist - process it [00:09:48]SAM_PROTO_GetFieldsCounters [00:09:48]wFMCommunicate request_size=4 [00:09:48]MH_SAM_APDU [00:09:48]CAPDU: 80 13 00 00 [00:09:48]Write to MH i2c: E2 08 00 27 0C 80 13 00 00 00 00 00 00 AF [00:09:48]Write i2c OK [00:09:48]MH_I2C_Read... [00:09:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:09:49]Read from MH i2c: E2 [00:09:49]MH_I2C_Read... [00:09:49]Read from MH i2c: E2 62 00 [00:09:49]MH_I2C_Read... [00:09:49]Read from MH i2c: E2 62 00 27 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 94 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 96 [00:09:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 94 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:09:49]wFMCommunicate OK [00:09:49]SAM_PROTO_GetFieldsCounters done [00:09:49]requested_item shift.num is exist - process it [00:09:49]requested_item shift.opened is exist - process it [00:09:49]req_shift_opened [00:09:49]FM_GetShiftState [00:09:49]SAM_PROTO_GetShiftState [00:09:49]wFMCommunicate request_size=4 [00:09:49]MH_SAM_APDU [00:09:49]CAPDU: 80 13 01 00 [00:09:49]Write to MH i2c: E2 08 00 28 0C 80 13 01 00 00 00 00 00 B1 [00:09:49]Write i2c OK [00:09:49]MH_I2C_Read... [00:09:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:09:49]Read from MH i2c: E2 [00:09:49]MH_I2C_Read... [00:09:49]Read from MH i2c: E2 0E 00 [00:09:49]MH_I2C_Read... [00:09:49]Read from MH i2c: E2 0E 00 28 0C 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 8C [00:09:49]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [00:09:49]wFMCommunicate OK [00:09:49]SAM_PROTO_GetShiftState done [00:09:49]FM_GetShiftState done [00:09:49]req_shift_opened done [00:09:49]requested_item shift.open_date is exist - process it [00:09:49]req_shift_open_date [00:09:49]req_shift_open_date done [00:09:49]produce_requested_data done [00:09:49]produce_requested_data return {"kkm.sn":"0300000181","kkm.ver":"001","fm.sn":"0000000000965400","fd.num":68500,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033} [00:09:49]process_action_free get_value [00:09:49]json_value_free [00:09:49]json_value_free done [00:09:49]process_json_proto returns [00:09:49]Send response to host [00:09:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000181","kkm.ver":"001","fm.sn":"0000000000965400","fd.num":68500,"shift.num":324,"shift.opened":1,"shift.open_date":1717378033}}} [00:09:49]free response buf [00:09:49]execute_script done [00:09:49]execute_script returns [00:09:49]free content buf [00:09:49]Sock 7.Close socket [00:09:49]Sock 7.Thread stoped [00:09:49]accept exits with 9 [00:09:49]New connection [00:09:49]New thread 3067227492 created [00:09:49]Thread 3067084132 joined [00:09:49]Waiting for new connection... [00:09:49] Sock 9.Parse request [00:09:49]Sock 9.Check first char [00:09:49]Sock 9.First char is OK [00:09:49]request: POST /json_proto HTTP/1.0 [00:09:49]Method: POST [00:09:49]URL: /json_proto [00:09:49]Method is POST - this is cgi request [00:09:49]url: /json_proto [00:09:49]query_string will be loaded in cgi processing [00:09:49]execute_cgi json_proto POST (null) [00:09:49]execute_cgi path=json_proto method=POST [00:09:49]POST find Content-Length [00:09:49]Host: 172.17.36.132:8080 [00:09:49]Content-Length: 331 [00:09:49]Content-Type: application/json [00:09:49] [00:09:49]POST finish read [00:09:49]Found Content-Length = 331 [00:09:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:09:49]execute_script... [00:09:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:09:49]POST & json_proto [00:09:49]process_json_proto [00:09:49]json parsed OK: [00:09:49]protocol is kg_v1.0 [00:09:49]action value=get_value [00:09:49]process_action get_value [00:09:49]cmd_get_value [00:09:49]process_action get_value done [00:09:49]requested_data is exist [00:09:49]produce_requested_data [00:09:49]requested_item fm.sale.total is exist - process it [00:09:49]SAM_PROTO_GetFMData [00:09:49]wFMCommunicate request_size=4 [00:09:49]MH_SAM_APDU [00:09:49]CAPDU: 80 13 03 00 [00:09:49]Write to MH i2c: E2 08 00 29 0C 80 13 03 00 00 00 00 00 B4 [00:09:49]OFD Sender: No OFD packet to send [00:09:49]Write i2c OK [00:09:49]MH_I2C_Read... [00:09:49]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:09:49]Read from MH i2c: E2 [00:09:49]MH_I2C_Read... [00:09:49]Read from MH i2c: E2 FD 00 [00:09:49]MH_I2C_Read... [00:09:49]Read from MH i2c: E2 FD 00 29 0C 00 C5 04 85 04 C1 04 6E 04 04 00 0C 09 01 00 69 04 A3 00 6F 04 04 00 F5 03 01 00 B1 04 05 00 F1 F6 E4 39 01 70 04 05 00 68 DE 3C 0D 01 72 04 04 00 89 18 A8 2C 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 EA 17 58 21 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 0F 3E C7 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 17 05 00 00 B1 04 04 00 F4 BA E7 0E 70 04 04 00 F4 BA E7 0E 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 28 44 95 01 EF 03 09 90 00 E5 [00:09:49]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 0C 09 01 00 69 04 A3 00 6F 04 04 00 F5 03 01 00 B1 04 05 00 F1 F6 E4 39 01 70 04 05 00 68 DE 3C 0D 01 72 04 04 00 89 18 A8 2C 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 EA 17 58 21 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 0F 3E C7 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 17 05 00 00 B1 04 04 00 F4 BA E7 0E 70 04 04 00 F4 BA E7 0E 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 28 44 95 01 EF 03 09 90 00 [00:09:49]wFMCommunicate OK [00:09:49]wFMCommunicate request_size=4 [00:09:49]MH_SAM_APDU [00:09:49]CAPDU: 80 17 00 00 [00:09:49]Write to MH i2c: E2 08 00 2A 0C 80 17 00 00 00 00 00 00 B6 [00:09:49]Write i2c OK [00:09:49]MH_I2C_Read... [00:09:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:50]Read from MH i2c: E2 [00:09:50]MH_I2C_Read... [00:09:50]Read from MH i2c: E2 FD 00 [00:09:50]MH_I2C_Read... [00:09:50]Read from MH i2c: E2 FD 00 2A 0C 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 3C C5 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 8E [00:09:50]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 3C C5 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:09:50]wFMCommunicate OK [00:09:50]wFMCommunicate request_size=4 [00:09:50]MH_SAM_APDU [00:09:50]CAPDU: 80 17 00 00 [00:09:50]Write to MH i2c: E2 08 00 2B 0C 80 17 00 00 00 00 00 00 B7 [00:09:50]Write i2c OK [00:09:50]MH_I2C_Read... [00:09:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:50]Read from MH i2c: E2 [00:09:50]MH_I2C_Read... [00:09:50]Read from MH i2c: E2 FD 00 [00:09:50]MH_I2C_Read... [00:09:50]Read from MH i2c: E2 FD 00 2B 0C 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 C9 [00:09:50]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:09:50]wFMCommunicate OK [00:09:50]wFMCommunicate request_size=4 [00:09:50]MH_SAM_APDU [00:09:50]CAPDU: 80 17 00 00 [00:09:50]Write to MH i2c: E2 08 00 2C 0C 80 17 00 00 00 00 00 00 B8 [00:09:50]Write i2c OK [00:09:50]MH_I2C_Read... [00:09:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:50]Read from MH i2c: E2 [00:09:50]MH_I2C_Read... [00:09:50]Read from MH i2c: E2 FD 00 [00:09:50]MH_I2C_Read... [00:09:50]Read from MH i2c: E2 FD 00 2C 0C 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 44 [00:09:50]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:09:50]wFMCommunicate OK [00:09:50]wFMCommunicate request_size=4 [00:09:50]MH_SAM_APDU [00:09:50]CAPDU: 80 17 00 00 [00:09:50]Write to MH i2c: E2 08 00 2D 0C 80 17 00 00 00 00 00 00 B9 [00:09:50]Write i2c OK [00:09:50]MH_I2C_Read... [00:09:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:09:50]Read from MH i2c: E2 [00:09:50]MH_I2C_Read... [00:09:50]Read from MH i2c: E2 E2 00 [00:09:50]MH_I2C_Read... [00:09:50]Read from MH i2c: E2 E2 00 2D 0C 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 97 [00:09:50]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:09:50]wFMCommunicate OK [00:09:50]SAM_PROTO_GetFMData done [00:09:50]requested_item fm.sale_refund.total is exist - process it [00:09:50]requested_item fm.buy.total is exist - process it [00:09:50]requested_item shift.sale.total is exist - process it [00:09:50]SAM_PROTO_GetShiftData [00:09:50]wFMCommunicate request_size=4 [00:09:50]MH_SAM_APDU [00:09:50]CAPDU: 80 13 02 00 [00:09:50]Write to MH i2c: E2 08 00 2E 0C 80 13 02 00 00 00 00 00 B8 [00:09:50]Write i2c OK [00:09:50]MH_I2C_Read... [00:09:51]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:09:51]Read from MH i2c: E2 [00:09:51]MH_I2C_Read... [00:09:51]Read from MH i2c: E2 FD 00 [00:09:51]MH_I2C_Read... [00:09:51]Read from MH i2c: E2 FD 00 2E 0C 00 BC 04 AA 04 B8 04 6E 04 04 00 F6 00 00 00 69 04 9E 00 6F 04 04 00 EA 00 00 00 B1 04 04 00 3F CA 92 01 70 04 04 00 24 3F 46 01 72 04 03 00 1B 8B 4C 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 2A C8 2A EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AD 90 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0C 00 00 00 B1 04 03 00 04 53 2B 70 04 03 00 04 53 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EA 99 04 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 D7 [00:09:51]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 F6 00 00 00 69 04 9E 00 6F 04 04 00 EA 00 00 00 B1 04 04 00 3F CA 92 01 70 04 04 00 24 3F 46 01 72 04 03 00 1B 8B 4C 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 2A C8 2A EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AD 90 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0C 00 00 00 B1 04 03 00 04 53 2B 70 04 03 00 04 53 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EA 99 04 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:09:51]wFMCommunicate OK [00:09:51]wFMCommunicate request_size=4 [00:09:51]MH_SAM_APDU [00:09:51]CAPDU: 80 17 00 00 [00:09:51]Write to MH i2c: E2 08 00 2F 0C 80 17 00 00 00 00 00 00 BB [00:09:51]Write i2c OK [00:09:51]MH_I2C_Read... [00:09:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:51]Read from MH i2c: E2 [00:09:51]MH_I2C_Read... [00:09:51]Read from MH i2c: E2 FD 00 [00:09:51]MH_I2C_Read... [00:09:51]Read from MH i2c: E2 FD 00 2F 0C 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 2A 62 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 90 00 F1 [00:09:51]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 2A 62 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 90 00 [00:09:51]wFMCommunicate OK [00:09:51]wFMCommunicate request_size=4 [00:09:51]MH_SAM_APDU [00:09:51]CAPDU: 80 17 00 00 [00:09:51]Write to MH i2c: E2 08 00 30 0C 80 17 00 00 00 00 00 00 BC [00:09:51]Write i2c OK [00:09:51]MH_I2C_Read... [00:09:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:51]Read from MH i2c: E2 [00:09:51]MH_I2C_Read... [00:09:51]Read from MH i2c: E2 FD 00 [00:09:51]MH_I2C_Read... [00:09:51]Read from MH i2c: E2 FD 00 30 0C 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 90 00 E5 [00:09:51]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 90 00 [00:09:51]wFMCommunicate OK [00:09:51]wFMCommunicate request_size=4 [00:09:51]MH_SAM_APDU [00:09:51]CAPDU: 80 17 00 00 [00:09:51]Write to MH i2c: E2 08 00 31 0C 80 17 00 00 00 00 00 00 BD [00:09:51]Write i2c OK [00:09:51]MH_I2C_Read... [00:09:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:52]Read from MH i2c: E2 [00:09:52]MH_I2C_Read... [00:09:52]Read from MH i2c: E2 FD 00 [00:09:52]MH_I2C_Read... [00:09:52]Read from MH i2c: E2 FD 00 31 0C 00 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 3E [00:09:52]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [00:09:52]wFMCommunicate OK [00:09:52]wFMCommunicate request_size=4 [00:09:52]MH_SAM_APDU [00:09:52]CAPDU: 80 17 00 00 [00:09:52]Write to MH i2c: E2 08 00 32 0C 80 17 00 00 00 00 00 00 BE [00:09:52]Write i2c OK [00:09:52]MH_I2C_Read... [00:09:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [00:09:52]Read from MH i2c: E2 [00:09:52]MH_I2C_Read... [00:09:52]Read from MH i2c: E2 D9 00 [00:09:52]MH_I2C_Read... [00:09:52]Read from MH i2c: E2 D9 00 32 0C 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 9D [00:09:52]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:09:52]wFMCommunicate OK [00:09:52]SAM_PROTO_GetShiftData done [00:09:52]requested_item shift.sale.total_cash is exist - process it [00:09:52]requested_item shift.sale_refund.total is exist - process it [00:09:52]requested_item shift.sale_refund.total_cash is exist - process it [00:09:52]requested_item shift.buy.total is exist - process it [00:09:52]requested_item shift.buy.total_cash is exist - process it [00:09:52]produce_requested_data done [00:09:52]produce_requested_data return {"fm.sale.total":52662740.33,"fm.sale_refund.total":2500677.00,"fm.buy.total":0.00,"shift.sale.total":263972.47,"shift.sale.total_cash":213809.00,"shift.sale_refund.total":28393.00,"shift.sale_refund.total_cash":28393.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:09:52]process_action_free get_value [00:09:52]json_value_free [00:09:52]json_value_free done [00:09:52]process_json_proto returns [00:09:52]Send response to host [00:09:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":52662740.33,"fm.sale_refund.total":2500677.00,"fm.buy.total":0.00,"shift.sale.total":263972.47,"shift.sale.total_cash":213809.00,"shift.sale_refund.total":28393.00,"shift.sale_refund.total_cash":28393.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:09:52]free response buf [00:09:52]execute_script done [00:09:52]execute_script returns [00:09:52]free content buf [00:09:52]Sock 9.Close socket [00:09:52]Sock 9.Thread stoped [00:09:52]accept exits with 7 [00:09:52]New connection [00:09:52]New thread 3067084132 created [00:09:52]Thread 3067227492 joined [00:09:52]Waiting for new connection... [00:09:52] Sock 7.Parse request [00:09:52]Sock 7.Check first char [00:09:52]Sock 7.First char is OK [00:09:52]request: POST /json_proto HTTP/1.0 [00:09:52]Method: POST [00:09:52]URL: /json_proto [00:09:52]Method is POST - this is cgi request [00:09:52]url: /json_proto [00:09:52]query_string will be loaded in cgi processing [00:09:52]execute_cgi json_proto POST (null) [00:09:52]execute_cgi path=json_proto method=POST [00:09:52]POST find Content-Length [00:09:52]Host: 172.17.36.132:8080 [00:09:52]Content-Length: 331 [00:09:52]Content-Type: application/json [00:09:52] [00:09:52]POST finish read [00:09:52]Found Content-Length = 331 [00:09:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:09:52]execute_script... [00:09:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:09:52]POST & json_proto [00:09:52]process_json_proto [00:09:52]json parsed OK: [00:09:52]protocol is kg_v1.0 [00:09:52]action value=get_value [00:09:52]process_action get_value [00:09:52]cmd_get_value [00:09:52]process_action get_value done [00:09:52]requested_data is exist [00:09:52]produce_requested_data [00:09:52]requested_item fm.sale.total is exist - process it [00:09:52]SAM_PROTO_GetFMData [00:09:52]wFMCommunicate request_size=4 [00:09:52]MH_SAM_APDU [00:09:52]CAPDU: 80 13 03 00 [00:09:52]Write to MH i2c: E2 08 00 33 0C 80 13 03 00 00 00 00 00 BE [00:09:52]Write i2c OK [00:09:52]MH_I2C_Read... [00:09:53]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:09:53]Read from MH i2c: E2 [00:09:53]MH_I2C_Read... [00:09:53]Read from MH i2c: E2 FD 00 [00:09:53]MH_I2C_Read... [00:09:53]Read from MH i2c: E2 FD 00 33 0C 00 C5 04 85 04 C1 04 6E 04 04 00 0C 09 01 00 69 04 A3 00 6F 04 04 00 F5 03 01 00 B1 04 05 00 F1 F6 E4 39 01 70 04 05 00 68 DE 3C 0D 01 72 04 04 00 89 18 A8 2C 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 EA 17 58 21 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 0F 3E C7 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 17 05 00 00 B1 04 04 00 F4 BA E7 0E 70 04 04 00 F4 BA E7 0E 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 28 44 95 01 EF 03 09 90 00 EF [00:09:53]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 0C 09 01 00 69 04 A3 00 6F 04 04 00 F5 03 01 00 B1 04 05 00 F1 F6 E4 39 01 70 04 05 00 68 DE 3C 0D 01 72 04 04 00 89 18 A8 2C 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 EA 17 58 21 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 0F 3E C7 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 17 05 00 00 B1 04 04 00 F4 BA E7 0E 70 04 04 00 F4 BA E7 0E 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 28 44 95 01 EF 03 09 90 00 [00:09:53]wFMCommunicate OK [00:09:53]wFMCommunicate request_size=4 [00:09:53]MH_SAM_APDU [00:09:53]CAPDU: 80 17 00 00 [00:09:53]Write to MH i2c: E2 08 00 34 0C 80 17 00 00 00 00 00 00 C0 [00:09:53]Write i2c OK [00:09:53]MH_I2C_Read... [00:09:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:53]Read from MH i2c: E2 [00:09:53]MH_I2C_Read... [00:09:53]Read from MH i2c: E2 FD 00 [00:09:53]MH_I2C_Read... [00:09:53]Read from MH i2c: E2 FD 00 34 0C 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 3C C5 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 98 [00:09:53]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 3C C5 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:09:53]wFMCommunicate OK [00:09:53]wFMCommunicate request_size=4 [00:09:53]MH_SAM_APDU [00:09:53]CAPDU: 80 17 00 00 [00:09:53]Write to MH i2c: E2 08 00 35 0C 80 17 00 00 00 00 00 00 C1 [00:09:53]Write i2c OK [00:09:53]MH_I2C_Read... [00:09:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:53]Read from MH i2c: E2 [00:09:53]MH_I2C_Read... [00:09:53]Read from MH i2c: E2 FD 00 [00:09:53]MH_I2C_Read... [00:09:53]Read from MH i2c: E2 FD 00 35 0C 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 D3 [00:09:53]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:09:53]wFMCommunicate OK [00:09:53]wFMCommunicate request_size=4 [00:09:53]MH_SAM_APDU [00:09:53]CAPDU: 80 17 00 00 [00:09:53]Write to MH i2c: E2 08 00 36 0C 80 17 00 00 00 00 00 00 C2 [00:09:53]Write i2c OK [00:09:53]MH_I2C_Read... [00:09:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:54]Read from MH i2c: E2 [00:09:54]MH_I2C_Read... [00:09:54]Read from MH i2c: E2 FD 00 [00:09:54]MH_I2C_Read... [00:09:54]Read from MH i2c: E2 FD 00 36 0C 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 4E [00:09:54]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:09:54]wFMCommunicate OK [00:09:54]wFMCommunicate request_size=4 [00:09:54]MH_SAM_APDU [00:09:54]CAPDU: 80 17 00 00 [00:09:54]Write to MH i2c: E2 08 00 37 0C 80 17 00 00 00 00 00 00 C3 [00:09:54]Write i2c OK [00:09:54]MH_I2C_Read... [00:09:54]OFD Sender: No OFD packet to send [00:09:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:09:54]Read from MH i2c: E2 [00:09:54]MH_I2C_Read... [00:09:54]Read from MH i2c: E2 E2 00 [00:09:54]MH_I2C_Read... [00:09:54]Read from MH i2c: E2 E2 00 37 0C 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:09:54]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:09:54]wFMCommunicate OK [00:09:54]SAM_PROTO_GetFMData done [00:09:54]requested_item fm.sale_refund.total is exist - process it [00:09:54]requested_item fm.buy.total is exist - process it [00:09:54]requested_item shift.sale.total is exist - process it [00:09:54]SAM_PROTO_GetShiftData [00:09:54]wFMCommunicate request_size=4 [00:09:54]MH_SAM_APDU [00:09:54]CAPDU: 80 13 02 00 [00:09:54]Write to MH i2c: E2 08 00 38 0C 80 13 02 00 00 00 00 00 C2 [00:09:54]Write i2c OK [00:09:54]MH_I2C_Read... [00:09:55]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:09:55]Read from MH i2c: E2 [00:09:55]MH_I2C_Read... [00:09:55]Read from MH i2c: E2 FD 00 [00:09:55]MH_I2C_Read... [00:09:55]Read from MH i2c: E2 FD 00 38 0C 00 BC 04 AA 04 B8 04 6E 04 04 00 F6 00 00 00 69 04 9E 00 6F 04 04 00 EA 00 00 00 B1 04 04 00 3F CA 92 01 70 04 04 00 24 3F 46 01 72 04 03 00 1B 8B 4C 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 2A C8 2A EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AD 90 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0C 00 00 00 B1 04 03 00 04 53 2B 70 04 03 00 04 53 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EA 99 04 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 E1 [00:09:55]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 F6 00 00 00 69 04 9E 00 6F 04 04 00 EA 00 00 00 B1 04 04 00 3F CA 92 01 70 04 04 00 24 3F 46 01 72 04 03 00 1B 8B 4C 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 2A C8 2A EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AD 90 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0C 00 00 00 B1 04 03 00 04 53 2B 70 04 03 00 04 53 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EA 99 04 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:09:55]wFMCommunicate OK [00:09:55]wFMCommunicate request_size=4 [00:09:55]MH_SAM_APDU [00:09:55]CAPDU: 80 17 00 00 [00:09:55]Write to MH i2c: E2 08 00 39 0C 80 17 00 00 00 00 00 00 C5 [00:09:55]Write i2c OK [00:09:55]MH_I2C_Read... [00:09:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:55]Read from MH i2c: E2 [00:09:55]MH_I2C_Read... [00:09:55]Read from MH i2c: E2 FD 00 [00:09:55]MH_I2C_Read... [00:09:55]Read from MH i2c: E2 FD 00 39 0C 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 2A 62 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 90 00 FB [00:09:55]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 2A 62 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 90 00 [00:09:55]wFMCommunicate OK [00:09:55]wFMCommunicate request_size=4 [00:09:55]MH_SAM_APDU [00:09:55]CAPDU: 80 17 00 00 [00:09:55]Write to MH i2c: E2 08 00 3A 0C 80 17 00 00 00 00 00 00 C6 [00:09:55]Write i2c OK [00:09:55]MH_I2C_Read... [00:09:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:55]Read from MH i2c: E2 [00:09:55]MH_I2C_Read... [00:09:55]Read from MH i2c: E2 FD 00 [00:09:55]MH_I2C_Read... [00:09:55]Read from MH i2c: E2 FD 00 3A 0C 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 90 00 EF [00:09:55]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 90 00 [00:09:55]wFMCommunicate OK [00:09:55]wFMCommunicate request_size=4 [00:09:55]MH_SAM_APDU [00:09:55]CAPDU: 80 17 00 00 [00:09:55]Write to MH i2c: E2 08 00 3B 0C 80 17 00 00 00 00 00 00 C7 [00:09:55]Write i2c OK [00:09:55]MH_I2C_Read... [00:09:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:56]Read from MH i2c: E2 [00:09:56]MH_I2C_Read... [00:09:56]Read from MH i2c: E2 FD 00 [00:09:56]MH_I2C_Read... [00:09:56]Read from MH i2c: E2 FD 00 3B 0C 00 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 48 [00:09:56]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [00:09:56]wFMCommunicate OK [00:09:56]wFMCommunicate request_size=4 [00:09:56]MH_SAM_APDU [00:09:56]CAPDU: 80 17 00 00 [00:09:56]Write to MH i2c: E2 08 00 3C 0C 80 17 00 00 00 00 00 00 C8 [00:09:56]Write i2c OK [00:09:56]MH_I2C_Read... [00:09:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [00:09:56]Read from MH i2c: E2 [00:09:56]MH_I2C_Read... [00:09:56]Read from MH i2c: E2 D9 00 [00:09:56]MH_I2C_Read... [00:09:56]Read from MH i2c: E2 D9 00 3C 0C 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 A7 [00:09:56]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:09:56]wFMCommunicate OK [00:09:56]SAM_PROTO_GetShiftData done [00:09:56]requested_item shift.sale.total_cash is exist - process it [00:09:56]requested_item shift.sale_refund.total is exist - process it [00:09:56]requested_item shift.sale_refund.total_cash is exist - process it [00:09:56]requested_item shift.buy.total is exist - process it [00:09:56]requested_item shift.buy.total_cash is exist - process it [00:09:56]produce_requested_data done [00:09:56]produce_requested_data return {"fm.sale.total":52662740.33,"fm.sale_refund.total":2500677.00,"fm.buy.total":0.00,"shift.sale.total":263972.47,"shift.sale.total_cash":213809.00,"shift.sale_refund.total":28393.00,"shift.sale_refund.total_cash":28393.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:09:56]process_action_free get_value [00:09:56]json_value_free [00:09:56]json_value_free done [00:09:56]process_json_proto returns [00:09:56]Send response to host [00:09:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":52662740.33,"fm.sale_refund.total":2500677.00,"fm.buy.total":0.00,"shift.sale.total":263972.47,"shift.sale.total_cash":213809.00,"shift.sale_refund.total":28393.00,"shift.sale_refund.total_cash":28393.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:09:56]free response buf [00:09:56]execute_script done [00:09:56]execute_script returns [00:09:56]free content buf [00:09:56]Sock 7.Close socket [00:09:56]Sock 7.Thread stoped [00:09:56]accept exits with 9 [00:09:56]New connection [00:09:56]New thread 3067227492 created [00:09:56]Thread 3067084132 joined [00:09:56]Waiting for new connection... [00:09:56] Sock 9.Parse request [00:09:56]Sock 9.Check first char [00:09:56]Sock 9.First char is OK [00:09:56]request: POST /json_proto HTTP/1.0 [00:09:56]Method: POST [00:09:56]URL: /json_proto [00:09:56]Method is POST - this is cgi request [00:09:56]url: /json_proto [00:09:56]query_string will be loaded in cgi processing [00:09:56]execute_cgi json_proto POST (null) [00:09:56]execute_cgi path=json_proto method=POST [00:09:56]POST find Content-Length [00:09:56]Host: 172.17.36.132:8080 [00:09:56]Content-Length: 248 [00:09:56]Content-Type: application/json [00:09:56] [00:09:56]POST finish read [00:09:56]Found Content-Length = 248 [00:09:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0411\u0430\u043B\u0430\u0435\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:09:56]execute_script... [00:09:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0411\u0430\u043B\u0430\u0435\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:09:56]POST & json_proto [00:09:56]process_json_proto [00:09:56]json parsed OK: [00:09:56]protocol is kg_v1.0 [00:09:56]action value=close_shift [00:09:56]process_action close_shift [00:09:56]cmd_close_shift [00:09:56]MH_GetDate [00:09:56]Write to MH i2c: F0 00 00 3D 0C 38 [00:09:56]Write i2c OK [00:09:56]MH_I2C_Read... [00:09:56]Read from MH i2c: F0 [00:09:56]MH_I2C_Read... [00:09:56]Read from MH i2c: F0 09 00 [00:09:56]MH_I2C_Read... [00:09:56]Read from MH i2c: F0 09 00 3D 0C 00 56 5B 5E 66 B2 22 B0 64 9E [00:09:56]GetLastDocTimeStamp 1717459734 [00:09:56]current date 1717459798 [00:09:56]FM_GetShiftState [00:09:56]SAM_PROTO_GetShiftState [00:09:56]wFMCommunicate request_size=4 [00:09:56]MH_SAM_APDU [00:09:56]CAPDU: 80 13 01 00 [00:09:56]Write to MH i2c: E2 08 00 3E 0C 80 13 01 00 00 00 00 00 C7 [00:09:56]Write i2c OK [00:09:56]MH_I2C_Read... [00:09:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:09:56]Read from MH i2c: E2 [00:09:56]MH_I2C_Read... [00:09:56]Read from MH i2c: E2 0E 00 [00:09:56]MH_I2C_Read... [00:09:56]Read from MH i2c: E2 0E 00 3E 0C 00 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 A2 [00:09:56]RAPDU: 09 00 01 F1 1B 5D 66 00 00 00 00 90 00 [00:09:56]wFMCommunicate OK [00:09:56]SAM_PROTO_GetShiftState done [00:09:56]FM_GetShiftState done [00:09:56]KKMCreateCloseShiftDocument [00:09:56]Load OK [00:09:56]Malloc new data [00:09:56]MH_GetDate [00:09:56]Write to MH i2c: F0 00 00 3F 0C 3A [00:09:56]Write i2c OK [00:09:56]MH_I2C_Read... [00:09:56]Read from MH i2c: F0 [00:09:56]MH_I2C_Read... [00:09:56]Read from MH i2c: F0 09 00 [00:09:56]MH_I2C_Read... [00:09:56]Read from MH i2c: F0 09 00 3F 0C 00 56 5B 5E 66 B2 22 B0 64 A0 [00:09:56]Malloc new data [00:09:56]Malloc new data [00:09:56]Malloc new data [00:09:56]Malloc new data [00:09:56]KKMCreateCloseShiftDocument OK [00:09:56]KKMSetCloseShiftData OK [00:09:56]ProcessDocumentItem done err = 0, tmpTLVsize=67 [00:09:56]tlvbuf is 009FE510 [00:09:56]KKMLoadAndSignCloseShiftData [00:09:56]SAM_PROTO_ProcessDocument [00:09:56]wFMCommunicate request_size=9 [00:09:56]MH_SAM_APDU [00:09:56]CAPDU: 80 15 01 00 04 05 00 43 00 [00:09:56]Write to MH i2c: E2 0C 00 40 0C 80 15 01 00 04 00 05 00 43 00 00 00 1B [00:09:56]Write i2c OK [00:09:56]MH_I2C_Read... [00:09:56]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:09:56]Read from MH i2c: E2 [00:09:56]MH_I2C_Read... [00:09:56]Read from MH i2c: E2 03 00 [00:09:56]MH_I2C_Read... [00:09:56]Read from MH i2c: E2 03 00 40 0C 00 90 00 C0 [00:09:56]RAPDU: 90 00 [00:09:56]wFMCommunicate OK [00:09:56]wFMCommunicate request_size=23 [00:09:56]MH_SAM_APDU [00:09:56]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:09:56]Write to MH i2c: E2 1A 00 41 0C 80 15 02 00 12 00 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 00 00 C2 [00:09:56]Write i2c OK [00:09:56]MH_I2C_Read... [00:09:56]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:09:56]Read from MH i2c: E2 [00:09:56]MH_I2C_Read... [00:09:56]Read from MH i2c: E2 03 00 [00:09:56]MH_I2C_Read... [00:09:56]Read from MH i2c: E2 03 00 41 0C 00 90 00 C1 [00:09:56]RAPDU: 90 00 [00:09:56]wFMCommunicate OK [00:09:56]wFMCommunicate request_size=26 [00:09:56]MH_SAM_APDU [00:09:56]CAPDU: 80 15 02 00 15 FD 03 11 00 D0 91 D0 B0 D0 BB D0 B0 D0 B5 D0 B2 20 D0 90 2E 20 [00:09:56]Write to MH i2c: E2 1D 00 42 0C 80 15 02 00 15 00 FD 03 11 00 D0 91 D0 B0 D0 BB D0 B0 D0 B5 D0 B2 20 D0 90 2E 20 00 00 CA [00:09:56]Write i2c OK [00:09:56]MH_I2C_Read... [00:09:56]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:09:57]Read from MH i2c: E2 [00:09:57]MH_I2C_Read... [00:09:57]Read from MH i2c: E2 03 00 [00:09:57]MH_I2C_Read... [00:09:57]Read from MH i2c: E2 03 00 42 0C 00 90 00 C2 [00:09:57]RAPDU: 90 00 [00:09:57]wFMCommunicate OK [00:09:57]wFMCommunicate request_size=13 [00:09:57]MH_SAM_APDU [00:09:57]CAPDU: 80 15 02 00 08 F4 03 04 00 56 5B 5E 66 [00:09:57]Write to MH i2c: E2 10 00 43 0C 80 15 02 00 08 00 F4 03 04 00 56 5B 5E 66 00 00 4F [00:09:57]Write i2c OK [00:09:57]MH_I2C_Read... [00:09:57]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:09:57]Read from MH i2c: E2 [00:09:57]MH_I2C_Read... [00:09:57]Read from MH i2c: E2 03 00 [00:09:57]MH_I2C_Read... [00:09:57]Read from MH i2c: E2 03 00 43 0C 00 90 00 C3 [00:09:57]RAPDU: 90 00 [00:09:57]wFMCommunicate OK [00:09:57]wFMCommunicate request_size=25 [00:09:57]MH_SAM_APDU [00:09:57]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 [00:09:57]Write to MH i2c: E2 1C 00 44 0C 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 00 00 39 [00:09:57]Write i2c OK [00:09:57]MH_I2C_Read... [00:09:57]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:09:57]Read from MH i2c: E2 [00:09:57]MH_I2C_Read... [00:09:57]Read from MH i2c: E2 03 00 [00:09:57]MH_I2C_Read... [00:09:57]Read from MH i2c: E2 03 00 44 0C 00 90 00 C4 [00:09:57]RAPDU: 90 00 [00:09:57]wFMCommunicate OK [00:09:57]wFMCommunicate request_size=4 [00:09:57]MH_SAM_APDU [00:09:57]CAPDU: 80 15 03 00 [00:09:57]Write to MH i2c: E2 08 00 45 0C 80 15 03 00 00 00 00 00 D2 [00:09:57]Write i2c OK [00:09:57]MH_I2C_Read... [00:09:57]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:09:57]Read from MH i2c: E2 [00:09:57]MH_I2C_Read... [00:09:57]Read from MH i2c: E2 FD 00 [00:09:57]MH_I2C_Read... [00:09:57]Read from MH i2c: E2 FD 00 45 0C 00 FF 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 95 0B 01 00 0E 04 04 00 44 01 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F8 00 00 00 AA 04 B8 04 6E 04 04 00 F6 00 00 00 69 04 9E 00 6F 04 04 00 EA 00 00 00 B1 04 04 00 3F CA 92 01 70 04 04 00 24 3F 46 01 72 04 03 00 1B 8B 4C 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 2A C8 2A EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AD 90 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0C 00 00 00 B1 04 03 00 04 90 00 40 [00:09:57]RAPDU: FF 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 95 0B 01 00 0E 04 04 00 44 01 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F8 00 00 00 AA 04 B8 04 6E 04 04 00 F6 00 00 00 69 04 9E 00 6F 04 04 00 EA 00 00 00 B1 04 04 00 3F CA 92 01 70 04 04 00 24 3F 46 01 72 04 03 00 1B 8B 4C 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 2A C8 2A EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AD 90 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0C 00 00 00 B1 04 03 00 04 90 00 [00:09:57]wFMCommunicate OK [00:09:57]SAM_PROTO_ProcessDocument answer len = 1279 [00:09:57]SAM_PROTO_ProcessDocument remain to read = 1031 [00:09:57]wFMCommunicate request_size=4 [00:09:57]MH_SAM_APDU [00:09:57]CAPDU: 80 17 00 00 [00:09:57]Write to MH i2c: E2 08 00 46 0C 80 17 00 00 00 00 00 00 D2 [00:09:57]Write i2c OK [00:09:57]MH_I2C_Read... [00:09:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:58]Read from MH i2c: E2 [00:09:58]MH_I2C_Read... [00:09:58]Read from MH i2c: E2 FD 00 [00:09:58]MH_I2C_Read... [00:09:58]Read from MH i2c: E2 FD 00 46 0C 00 53 2B 70 04 03 00 04 53 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EA 99 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 2A 62 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 BE [00:09:58]RAPDU: 53 2B 70 04 03 00 04 53 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EA 99 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 2A 62 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [00:09:58]wFMCommunicate OK [00:09:58]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:09:58]SAM_PROTO_ProcessDocument remain to read = 781 [00:09:58]wFMCommunicate request_size=4 [00:09:58]MH_SAM_APDU [00:09:58]CAPDU: 80 17 00 00 [00:09:58]Write to MH i2c: E2 08 00 47 0C 80 17 00 00 00 00 00 00 D3 [00:09:58]Write i2c OK [00:09:58]MH_I2C_Read... [00:09:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:58]Read from MH i2c: E2 [00:09:58]MH_I2C_Read... [00:09:58]Read from MH i2c: E2 FD 00 [00:09:58]MH_I2C_Read... [00:09:58]Read from MH i2c: E2 FD 00 47 0C 00 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 90 00 39 [00:09:58]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 90 00 [00:09:58]wFMCommunicate OK [00:09:58]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:09:58]SAM_PROTO_ProcessDocument remain to read = 531 [00:09:58]wFMCommunicate request_size=4 [00:09:58]MH_SAM_APDU [00:09:58]CAPDU: 80 17 00 00 [00:09:58]Write to MH i2c: E2 08 00 48 0C 80 17 00 00 00 00 00 00 D4 [00:09:58]Write i2c OK [00:09:58]MH_I2C_Read... [00:09:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:59]Read from MH i2c: E2 [00:09:59]MH_I2C_Read... [00:09:59]Read from MH i2c: E2 FD 00 [00:09:59]MH_I2C_Read... [00:09:59]Read from MH i2c: E2 FD 00 48 0C 00 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 90 00 75 [00:09:59]RAPDU: 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 90 00 [00:09:59]wFMCommunicate OK [00:09:59]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:09:59]SAM_PROTO_ProcessDocument remain to read = 281 [00:09:59]wFMCommunicate request_size=4 [00:09:59]MH_SAM_APDU [00:09:59]CAPDU: 80 17 00 00 [00:09:59]Write to MH i2c: E2 08 00 49 0C 80 17 00 00 00 00 00 00 D5 [00:09:59]Write i2c OK [00:09:59]MH_I2C_Read... [00:09:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:09:59]Read from MH i2c: E2 [00:09:59]MH_I2C_Read... [00:09:59]Read from MH i2c: E2 FD 00 [00:09:59]MH_I2C_Read... [00:09:59]Read from MH i2c: E2 FD 00 49 0C 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 90 00 81 [00:09:59]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 OFD Sender: No OFD packet to send [00:09:59]03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 90 00 [00:09:59]wFMCommunicate OK [00:09:59]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:09:59]SAM_PROTO_ProcessDocument remain to read = 31 [00:09:59]wFMCommunicate request_size=4 [00:09:59]MH_SAM_APDU [00:09:59]CAPDU: 80 17 00 00 [00:09:59]Write to MH i2c: E2 08 00 4A 0C 80 17 00 00 00 00 00 00 D6 [00:09:59]Write i2c OK [00:09:59]MH_I2C_Read... [00:09:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 31! [00:09:59]Read from MH i2c: E2 [00:09:59]MH_I2C_Read... [00:09:59]Read from MH i2c: E2 22 00 [00:09:59]MH_I2C_Read... [00:09:59]Read from MH i2c: E2 22 00 4A 0C 00 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 B6 5E 55 0B 9F CC 90 00 FF [00:09:59]RAPDU: 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 B6 5E 55 0B 9F CC 90 00 [00:09:59]wFMCommunicate OK [00:09:59]SAM_PROTO_ProcessDocument received (without SW) 31 bytes [00:09:59]SAM_PROTO_ProcessDocument done [00:09:59]1209 (1) - 1.0 - номер версии ФФД [00:09:59]1041 (16) - 0000000000965400 - номер ФМ [00:09:59]1040 (4) - 68501 - номер ФД [00:09:59]1038 (4) - 324 - номер смены [00:09:59]1118 (4) - 246 - количество кассовых чеков за смену [00:09:59]1111 (4) - 248 - общее количество ФД за смену [00:09:59]1194 (1208) - счетчики итогов смены [00:09:59] 1134 (4) - 246 - количество чеков со всеми признаками расчетов [00:09:59] 1129 (158) - счетчики операций «приход» [00:09:59] 1135 (4) - 234 - количество чеков по признаку расчетов [00:09:59] 1201 (4) - 263972.47 - общая итоговая сумма в чеках [00:09:59] 1136 (4) - 213809.00 - итоговая сумма в чеках наличными [00:09:59] 1138 (3) - 50163.47 - итоговая сумма в чеках безналичными [00:09:59] 1024 (123) - суммы налогов [00:09:59] 1006 (9) - суммы НДС [00:09:59] 1010 (1) - 0% - код ставки НДС [00:09:59] 1011 (0) - 0.00 - сумма НДС по ставке [00:09:59] 1006 (12) - суммы НДС [00:09:59] 1010 (1) - 12% - код ставки НДС [00:09:59] 1011 (3) - 28037.54 - сумма НДС по ставке [00:09:59] 1007 (9) - суммы НСП [00:10:00] 1014 (1) - 0% - код ставки НСП [00:10:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:10:00] 1007 (12) - суммы НСП [00:10:00] 1014 (1) - 1% - код ставки НСП [00:10:00] 1015 (3) - 2336.45 - сумма НСП по ставке [00:10:00] 1007 (9) - суммы НСП [00:10:00] 1014 (1) - 2% - код ставки НСП [00:10:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:10:00] 1007 (9) - суммы НСП [00:10:00] 1014 (1) - 3% - код ставки НСП [00:10:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:10:00] 1007 (9) - суммы НСП [00:10:00] 1014 (1) - 5% - код ставки НСП [00:10:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:10:00] 1007 (9) - суммы НСП [00:10:00] 1014 (1) - 0,50% - код ставки НСП [00:10:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:10:00] 1007 (9) - суммы НСП [00:10:00] 1014 (1) - 1,50% - код ставки НСП [00:10:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:10:00] 1130 (152) - счетчики операций «возврат прихода» [00:10:00] 1135 (4) - 12 - количество чеков по признаку расчетов [00:10:00] 1201 (3) - 28393.00 - общая итоговая сумма в чеках [00:10:00] 1136 (3) - 28393.00 - итоговая сумма в чеках наличными [00:10:00] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:10:00] 1024 (122) - суммы налогов [00:10:00] 1006 (9) - суммы НДС [00:10:00] 1010 (1) - 0% - код ставки НДС [00:10:00] 1011 (0) - 0.00 - сумма НДС по ставке [00:10:00] 1006 (12) - суммы НДС [00:10:00] 1010 (1) - 12% - код ставки НДС [00:10:00] 1011 (3) - 3015.46 - сумма НДС по ставке [00:10:00] 1007 (9) - суммы НСП [00:10:00] 1014 (1) - 0% - код ставки НСП [00:10:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:10:00] 1007 (11) - суммы НСП [00:10:00] 1014 (1) - 1% - код ставки НСП [00:10:00] 1015 (2) - 251.30 - сумма НСП по ставке [00:10:00] 1007 (9) - суммы НСП [00:10:00] 1014 (1) - 2% - код ставки НСП [00:10:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:10:00] 1007 (9) - суммы НСП [00:10:00] 1014 (1) - 3% - код ставки НСП [00:10:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:10:00] 1007 (9) - суммы НСП [00:10:00] 1014 (1) - 5% - код ставки НСП [00:10:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:10:00] 1007 (9) - суммы НСП [00:10:00] 1014 (1) - 0,50% - код ставки НСП [00:10:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:10:00] 1007 (9) - суммы НСП [00:10:00] 1014 (1) - 1,50% - код ставки НСП [00:10:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:10:00] 1131 (141) - счетчики операций «расход» [00:10:00] 1135 (4) - 0 - количество чеков по признаку расчетов [00:10:00] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:10:00] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:10:00] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:10:00] 1024 (117) - суммы налогов [00:10:00] 1006 (9) - суммы НДС [00:10:00] 1010 (1) - 0% - код ставки НДС [00:10:00] 1011 (0) - 0.00 - сумма НДС по ставке [00:10:00] 1006 (9) - суммы НДС [00:10:00] 1010 (1) - 12% - код ставки НДС [00:10:00] 1011 (0) - 0.00 - сумма НДС по ставке [00:10:00] 1007 (9) - суммы НСП [00:10:00] 1014 (1) - 0% - код ставки НСП [00:10:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:10:00] 1007 (9) - суммы НСП [00:10:00] 1014 (1) - 1% - код ставки НСП [00:10:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:10:00] 1007 (9) - суммы НСП [00:10:00] 1014 (1) - 2% - код ставки НСП [00:10:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:10:00] 1007 (9) - суммы НСП [00:10:00] 1014 (1) - 3% - код ставки НСП [00:10:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:10:00] 1007 (9) - суммы НСП [00:10:00] 1014 (1) - 5% - код ставки НСП [00:10:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:10:00] 1007 (9) - суммы НСП [00:10:00] 1014 (1) - 0,50% - код ставки НСП [00:10:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:10:00] 1007 (9) - суммы НСП [00:10:00] 1014 (1) - 1,50% - код ставки НСП [00:10:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:10:00] 1132 (141) - счетчики операций «возврат расхода» [00:10:00] 1135 (4) - 0 - количество чеков по признаку расчетов [00:10:00] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:10:00] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:10:00] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:10:00] 1024 (117) - суммы налогов [00:10:00] 1006 (9) - суммы НДС [00:10:00] 1010 (1) - 0% - код ставки НДС [00:10:00] 1011 (0) - 0.00 - сумма НДС по ставке [00:10:00] 1006 (9) - суммы НДС [00:10:00] 1010 (1) - 12% - код ставки НДС [00:10:00] 1011 (0) - 0.00 - сумма НДС по ставке [00:10:00] 1007 (9) - суммы НСП [00:10:00] 1014 (1) - 0% - код ставки НСП [00:10:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:10:00] 1007 (9) - суммы НСП [00:10:00] 1014 (1) - 1% - код ставки НСП [00:10:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:10:00] 1007 (9) - суммы НСП [00:10:00] 1014 (1) - 2% - код ставки НСП [00:10:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:10:00] 1007 (9) - суммы НСП [00:10:00] 1014 (1) - 3% - код ставки НСП [00:10:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:10:00] 1007 (9) - суммы НСП [00:10:00] 1014 (1) - 5% - код ставки НСП [00:10:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:10:00] 1007 (9) - суммы НСП [00:10:00] 1014 (1) - 0,50% - код ставки НСП [00:10:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:10:00] 1007 (9) - суммы НСП [00:10:00] 1014 (1) - 1,50% - код ставки НСП [00:10:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:10:00] 1133 (588) - - счетчики коррекции - не используются [00:10:00]1077 (6) - 200516270006220 - ФПД [00:10:00]SetTLVBufToDocument [00:10:00]Processing tag 1209 (04B9) [00:10:00]Malloc new data [00:10:00]Processing tag 1041 (0411) [00:10:00]Processing tag 1040 (0410) [00:10:00]Malloc new data [00:10:00]Processing tag 1038 (040E) [00:10:00]Malloc new data [00:10:00]Processing tag 1118 (045E) [00:10:00]Malloc new data [00:10:00]Processing tag 1111 (0457) [00:10:00]Malloc new data [00:10:00]Processing tag 1194 (04AA) [00:10:00]Load OK [00:10:00]SetTLVBufToDocument [00:10:00]Processing tag 1134 (046E) [00:10:00]Malloc new data [00:10:00]Processing tag 1129 (0469) [00:10:00]Load OK [00:10:00]SetTLVBufToDocument [00:10:00]Processing tag 1135 (046F) [00:10:00]Malloc new data [00:10:00]Processing tag 1201 (04B1) [00:10:00]Malloc new data [00:10:00]Processing tag 1136 (0470) [00:10:00]Malloc new data [00:10:00]Processing tag 1138 (0472) [00:10:00]Malloc new data [00:10:00]Processing tag 1024 (0400) [00:10:00]Load OK [00:10:00]SetTLVBufToDocument [00:10:00]Processing tag 1006 (03EE) [00:10:00]Load OK [00:10:00]SetTLVBufToDocument [00:10:00]Processing tag 1010 (03F2) [00:10:00]Malloc new data [00:10:00]Processing tag 1011 (03F3) [00:10:00]Malloc new data [00:10:00]SetTLVBufToDocument err=0 [00:10:00]Processing tag 1006 (03EE) [00:10:00]Load OK [00:10:00]SetTLVBufToDocument [00:10:00]Processing tag 1010 (03F2) [00:10:00]Malloc new data [00:10:00]Processing tag 1011 (03F3) [00:10:00]Malloc new data [00:10:00]SetTLVBufToDocument err=0 [00:10:00]Processing tag 1007 (03EF) [00:10:00]Load OK [00:10:00]SetTLVBufToDocument [00:10:00]Processing tag 1014 (03F6) [00:10:00]Malloc new data [00:10:00]Processing tag 1015 (03F7) [00:10:00]Malloc new data [00:10:00]SetTLVBufToDocument err=0 [00:10:00]Processing tag 1007 (03EF) [00:10:00]Load OK [00:10:00]SetTLVBufToDocument [00:10:00]Processing tag 1014 (03F6) [00:10:00]Malloc new data [00:10:00]Processing tag 1015 (03F7) [00:10:00]Malloc new data [00:10:00]SetTLVBufToDocument err=0 [00:10:00]Processing tag 1007 (03EF) [00:10:00]Load OK [00:10:00]SetTLVBufToDocument [00:10:00]Processing tag 1014 (03F6) [00:10:00]Malloc new data [00:10:00]Processing tag 1015 (03F7) [00:10:00]Malloc new data [00:10:00]SetTLVBufToDocument err=0 [00:10:00]Processing tag 1007 (03EF) [00:10:00]Load OK [00:10:00]SetTLVBufToDocument [00:10:00]Processing tag 1014 (03F6) [00:10:00]Malloc new data [00:10:00]Processing tag 1015 (03F7) [00:10:00]Malloc new data [00:10:00]SetTLVBufToDocument err=0 [00:10:00]Processing tag 1007 (03EF) [00:10:00]Load OK [00:10:00]SetTLVBufToDocument [00:10:00]Processing tag 1014 (03F6) [00:10:00]Malloc new data [00:10:00]Processing tag 1015 (03F7) [00:10:00]Malloc new data [00:10:00]SetTLVBufToDocument err=0 [00:10:00]Processing tag 1007 (03EF) [00:10:00]Load OK [00:10:00]SetTLVBufToDocument [00:10:00]Processing tag 1014 (03F6) [00:10:00]Malloc new data [00:10:00]Processing tag 1015 (03F7) [00:10:00]Malloc new data [00:10:00]SetTLVBufToDocument err=0 [00:10:00]Processing tag 1007 (03EF) [00:10:00]Load OK [00:10:00]SetTLVBufToDocument [00:10:00]Processing tag 1014 (03F6) [00:10:00]Malloc new data [00:10:00]Processing tag 1015 (03F7) [00:10:00]Malloc new data [00:10:00]SetTLVBufToDocument err=0 [00:10:00]SetTLVBufToDocument err=0 [00:10:00]SetTLVBufToDocument err=0 [00:10:00]Processing tag 1130 (046A) [00:10:00]Load OK [00:10:00]SetTLVBufToDocument [00:10:00]Processing tag 1135 (046F) [00:10:00]Malloc new data [00:10:00]Processing tag 1201 (04B1) [00:10:00]Malloc new data [00:10:00]Processing tag 1136 (0470) [00:10:00]Malloc new data [00:10:00]Processing tag 1138 (0472) [00:10:00]Malloc new data [00:10:00]Processing tag 1024 (0400) [00:10:00]Load OK [00:10:00]SetTLVBufToDocument [00:10:00]Processing tag 1006 (03EE) [00:10:00]Load OK [00:10:00]SetTLVBufToDocument [00:10:00]Processing tag 1010 (03F2) [00:10:00]Malloc new data [00:10:00]Processing tag 1011 (03F3) [00:10:00]Malloc new data [00:10:00]SetTLVBufToDocument err=0 [00:10:00]Processing tag 1006 (03EE) [00:10:00]Load OK [00:10:00]SetTLVBufToDocument [00:10:00]Processing tag 1010 (03F2) [00:10:00]Malloc new data [00:10:00]Processing tag 1011 (03F3) [00:10:00]Malloc new data [00:10:00]SetTLVBufToDocument err=0 [00:10:00]Processing tag 1007 (03EF) [00:10:00]Load OK [00:10:00]SetTLVBufToDocument [00:10:00]Processing tag 1014 (03F6) [00:10:00]Malloc new data [00:10:00]Processing tag 1015 (03F7) [00:10:00]Malloc new data [00:10:00]SetTLVBufToDocument err=0 [00:10:00]Processing tag 1007 (03EF) [00:10:00]Load OK [00:10:00]SetTLVBufToDocument [00:10:00]Processing tag 1014 (03F6) [00:10:00]Malloc new data [00:10:00]Processing tag 1015 (03F7) [00:10:00]Malloc new data [00:10:00]SetTLVBufToDocument err=0 [00:10:00]Processing tag 1007 (03EF) [00:10:00]Load OK [00:10:00]SetTLVBufToDocument [00:10:00]Processing tag 1014 (03F6) [00:10:00]Malloc new data [00:10:00]Processing tag 1015 (03F7) [00:10:00]Malloc new data [00:10:00]SetTLVBufToDocument err=0 [00:10:00]Processing tag 1007 (03EF) [00:10:00]Load OK [00:10:00]SetTLVBufToDocument [00:10:00]Processing tag 1014 (03F6) [00:10:00]Malloc new data [00:10:00]Processing tag 1015 (03F7) [00:10:00]Malloc new data [00:10:00]SetTLVBufToDocument err=0 [00:10:00]Processing tag 1007 (03EF) [00:10:00]Load OK [00:10:00]SetTLVBufToDocument [00:10:00]Processing tag 1014 (03F6) [00:10:00]Malloc new data [00:10:00]Processing tag 1015 (03F7) [00:10:00]Malloc new data [00:10:00]SetTLVBufToDocument err=0 [00:10:00]Processing tag 1007 (03EF) [00:10:00]Load OK [00:10:00]SetTLVBufToDocument [00:10:00]Processing tag 1014 (03F6) [00:10:00]Malloc new data [00:10:00]Processing tag 1015 (03F7) [00:10:00]Malloc new data [00:10:00]SetTLVBufToDocument err=0 [00:10:00]Processing tag 1007 (03EF) [00:10:00]Load OK [00:10:00]SetTLVBufToDocument [00:10:00]Processing tag 1014 (03F6) [00:10:00]Malloc new data [00:10:00]Processing tag 1015 (03F7) [00:10:00]Malloc new data [00:10:00]SetTLVBufToDocument err=0 [00:10:00]SetTLVBufToDocument err=0 [00:10:00]SetTLVBufToDocument err=0 [00:10:00]Processing tag 1131 (046B) [00:10:00]Load OK [00:10:00]SetTLVBufToDocument [00:10:00]Processing tag 1135 (046F) [00:10:00]Malloc new data [00:10:00]Processing tag 1201 (04B1) [00:10:00]Malloc new data [00:10:00]Processing tag 1136 (0470) [00:10:00]Malloc new data [00:10:00]Processing tag 1138 (0472) [00:10:00]Malloc new data [00:10:00]Processing tag 1024 (0400) [00:10:00]Load OK [00:10:00]SetTLVBufToDocument [00:10:00]Processing tag 1006 (03EE) [00:10:00]Load OK [00:10:00]SetTLVBufToDocument [00:10:00]Processing tag 1010 (03F2) [00:10:00]Malloc new data [00:10:00]Processing tag 1011 (03F3) [00:10:00]Malloc new data [00:10:00]SetTLVBufToDocument err=0 [00:10:00]Processing tag 1006 (03EE) [00:10:00]Load OK [00:10:00]SetTLVBufToDocument [00:10:00]Processing tag 1010 (03F2) [00:10:00]Malloc new data [00:10:00]Processing tag 1011 (03F3) [00:10:00]Malloc new data [00:10:00]SetTLVBufToDocument err=0 [00:10:00]Processing tag 1007 (03EF) [00:10:00]Load OK [00:10:00]SetTLVBufToDocument [00:10:00]Processing tag 1014 (03F6) [00:10:00]Malloc new data [00:10:00]Processing tag 1015 (03F7) [00:10:00]Malloc new data [00:10:00]SetTLVBufToDocument err=0 [00:10:00]Processing tag 1007 (03EF) [00:10:00]Load OK [00:10:00]SetTLVBufToDocument [00:10:00]Processing tag 1014 (03F6) [00:10:00]Malloc new data [00:10:00]Processing tag 1015 (03F7) [00:10:01]Malloc new data [00:10:01]SetTLVBufToDocument err=0 [00:10:01]Processing tag 1007 (03EF) [00:10:01]Load OK [00:10:01]SetTLVBufToDocument [00:10:01]Processing tag 1014 (03F6) [00:10:01]Malloc new data [00:10:01]Processing tag 1015 (03F7) [00:10:01]Malloc new data [00:10:01]SetTLVBufToDocument err=0 [00:10:01]Processing tag 1007 (03EF) [00:10:01]Load OK [00:10:01]SetTLVBufToDocument [00:10:01]Processing tag 1014 (03F6) [00:10:01]Malloc new data [00:10:01]Processing tag 1015 (03F7) [00:10:01]Malloc new data [00:10:01]SetTLVBufToDocument err=0 [00:10:01]Processing tag 1007 (03EF) [00:10:01]Load OK [00:10:01]SetTLVBufToDocument [00:10:01]Processing tag 1014 (03F6) [00:10:01]Malloc new data [00:10:01]Processing tag 1015 (03F7) [00:10:01]Malloc new data [00:10:01]SetTLVBufToDocument err=0 [00:10:01]Processing tag 1007 (03EF) [00:10:01]Load OK [00:10:01]SetTLVBufToDocument [00:10:01]Processing tag 1014 (03F6) [00:10:01]Malloc new data [00:10:01]Processing tag 1015 (03F7) [00:10:01]Malloc new data [00:10:01]SetTLVBufToDocument err=0 [00:10:01]Processing tag 1007 (03EF) [00:10:01]Load OK [00:10:01]SetTLVBufToDocument [00:10:01]Processing tag 1014 (03F6) [00:10:01]Malloc new data [00:10:01]Processing tag 1015 (03F7) [00:10:01]Malloc new data [00:10:01]SetTLVBufToDocument err=0 [00:10:01]SetTLVBufToDocument err=0 [00:10:01]SetTLVBufToDocument err=0 [00:10:01]Processing tag 1132 (046C) [00:10:01]Load OK [00:10:01]SetTLVBufToDocument [00:10:01]Processing tag 1135 (046F) [00:10:01]Malloc new data [00:10:01]Processing tag 1201 (04B1) [00:10:01]Malloc new data [00:10:01]Processing tag 1136 (0470) [00:10:01]Malloc new data [00:10:01]Processing tag 1138 (0472) [00:10:01]Malloc new data [00:10:01]Processing tag 1024 (0400) [00:10:01]Load OK [00:10:01]SetTLVBufToDocument [00:10:01]Processing tag 1006 (03EE) [00:10:01]Load OK [00:10:01]SetTLVBufToDocument [00:10:01]Processing tag 1010 (03F2) [00:10:01]Malloc new data [00:10:01]Processing tag 1011 (03F3) [00:10:01]Malloc new data [00:10:01]SetTLVBufToDocument err=0 [00:10:01]Processing tag 1006 (03EE) [00:10:01]Load OK [00:10:01]SetTLVBufToDocument [00:10:01]Processing tag 1010 (03F2) [00:10:01]Malloc new data [00:10:01]Processing tag 1011 (03F3) [00:10:01]Malloc new data [00:10:01]SetTLVBufToDocument err=0 [00:10:01]Processing tag 1007 (03EF) [00:10:01]Load OK [00:10:01]SetTLVBufToDocument [00:10:01]Processing tag 1014 (03F6) [00:10:01]Malloc new data [00:10:01]Processing tag 1015 (03F7) [00:10:01]Malloc new data [00:10:01]SetTLVBufToDocument err=0 [00:10:01]Processing tag 1007 (03EF) [00:10:01]Load OK [00:10:01]SetTLVBufToDocument [00:10:01]Processing tag 1014 (03F6) [00:10:01]Malloc new data [00:10:01]Processing tag 1015 (03F7) [00:10:01]Malloc new data [00:10:01]SetTLVBufToDocument err=0 [00:10:01]Processing tag 1007 (03EF) [00:10:01]Load OK [00:10:01]SetTLVBufToDocument [00:10:01]Processing tag 1014 (03F6) [00:10:01]Malloc new data [00:10:01]Processing tag 1015 (03F7) [00:10:01]Malloc new data [00:10:01]SetTLVBufToDocument err=0 [00:10:01]Processing tag 1007 (03EF) [00:10:01]Load OK [00:10:01]SetTLVBufToDocument [00:10:01]Processing tag 1014 (03F6) [00:10:01]Malloc new data [00:10:01]Processing tag 1015 (03F7) [00:10:01]Malloc new data [00:10:01]SetTLVBufToDocument err=0 [00:10:01]Processing tag 1007 (03EF) [00:10:01]Load OK [00:10:01]SetTLVBufToDocument [00:10:01]Processing tag 1014 (03F6) [00:10:01]Malloc new data [00:10:01]Processing tag 1015 (03F7) [00:10:01]Malloc new data [00:10:01]SetTLVBufToDocument err=0 [00:10:01]Processing tag 1007 (03EF) [00:10:01]Load OK [00:10:01]SetTLVBufToDocument [00:10:01]Processing tag 1014 (03F6) [00:10:01]Malloc new data [00:10:01]Processing tag 1015 (03F7) [00:10:01]Malloc new data [00:10:01]SetTLVBufToDocument err=0 [00:10:01]Processing tag 1007 (03EF) [00:10:01]Load OK [00:10:01]SetTLVBufToDocument [00:10:01]Processing tag 1014 (03F6) [00:10:01]Malloc new data [00:10:01]Processing tag 1015 (03F7) [00:10:01]Malloc new data [00:10:01]SetTLVBufToDocument err=0 [00:10:01]SetTLVBufToDocument err=0 [00:10:01]SetTLVBufToDocument err=0 [00:10:01]Processing tag 1133 (046D) [00:10:01]Malloc new data [00:10:01]SetTLVBufToDocument err=0 [00:10:01]Processing tag 1077 (0435) [00:10:01]Malloc new data [00:10:01]SetTLVBufToDocument err=0 [00:10:01]Malloc new data [00:10:01]SAM_PROTO_GetFMData [00:10:01]wFMCommunicate request_size=4 [00:10:01]MH_SAM_APDU [00:10:01]CAPDU: 80 13 03 00 [00:10:01]Write to MH i2c: E2 08 00 4B 0C 80 13 03 00 00 00 00 00 D6 [00:10:01]Write i2c OK [00:10:01]MH_I2C_Read... [00:10:01]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:10:01]Read from MH i2c: E2 [00:10:01]MH_I2C_Read... [00:10:01]Read from MH i2c: E2 FD 00 [00:10:01]MH_I2C_Read... [00:10:01]Read from MH i2c: E2 FD 00 4B 0C 00 C5 04 85 04 C1 04 6E 04 04 00 0C 09 01 00 69 04 A3 00 6F 04 04 00 F5 03 01 00 B1 04 05 00 F1 F6 E4 39 01 70 04 05 00 68 DE 3C 0D 01 72 04 04 00 89 18 A8 2C 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 EA 17 58 21 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 0F 3E C7 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 17 05 00 00 B1 04 04 00 F4 BA E7 0E 70 04 04 00 F4 BA E7 0E 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 28 44 95 01 EF 03 09 90 00 07 [00:10:01]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 0C 09 01 00 69 04 A3 00 6F 04 04 00 F5 03 01 00 B1 04 05 00 F1 F6 E4 39 01 70 04 05 00 68 DE 3C 0D 01 72 04 04 00 89 18 A8 2C 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 EA 17 58 21 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 0F 3E C7 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 17 05 00 00 B1 04 04 00 F4 BA E7 0E 70 04 04 00 F4 BA E7 0E 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 28 44 95 01 EF 03 09 90 00 [00:10:01]wFMCommunicate OK [00:10:01]wFMCommunicate request_size=4 [00:10:01]MH_SAM_APDU [00:10:01]CAPDU: 80 17 00 00 [00:10:01]Write to MH i2c: E2 08 00 4C 0C 80 17 00 00 00 00 00 00 D8 [00:10:01]Write i2c OK [00:10:01]MH_I2C_Read... [00:10:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:01]Read from MH i2c: E2 [00:10:01]MH_I2C_Read... [00:10:01]Read from MH i2c: E2 FD 00 [00:10:01]MH_I2C_Read... [00:10:02]Read from MH i2c: E2 FD 00 4C 0C 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 3C C5 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 B0 [00:10:02]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 3C C5 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:10:02]wFMCommunicate OK [00:10:02]wFMCommunicate request_size=4 [00:10:02]MH_SAM_APDU [00:10:02]CAPDU: 80 17 00 00 [00:10:02]Write to MH i2c: E2 08 00 4D 0C 80 17 00 00 00 00 00 00 D9 [00:10:02]Write i2c OK [00:10:02]MH_I2C_Read... [00:10:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:02]Read from MH i2c: E2 [00:10:02]MH_I2C_Read... [00:10:02]Read from MH i2c: E2 FD 00 [00:10:02]MH_I2C_Read... [00:10:02]Read from MH i2c: E2 FD 00 4D 0C 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 EB [00:10:02]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:10:02]wFMCommunicate OK [00:10:02]wFMCommunicate request_size=4 [00:10:02]MH_SAM_APDU [00:10:02]CAPDU: 80 17 00 00 [00:10:02]Write to MH i2c: E2 08 00 4E 0C 80 17 00 00 00 00 00 00 DA [00:10:02]Write i2c OK [00:10:02]MH_I2C_Read... [00:10:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:10:02]Read from MH i2c: E2 [00:10:02]MH_I2C_Read... [00:10:02]Read from MH i2c: E2 FD 00 [00:10:02]MH_I2C_Read... [00:10:03]Read from MH i2c: E2 FD 00 4E 0C 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 66 [00:10:03]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:10:03]wFMCommunicate OK [00:10:03]wFMCommunicate request_size=4 [00:10:03]MH_SAM_APDU [00:10:03]CAPDU: 80 17 00 00 [00:10:03]Write to MH i2c: E2 08 00 4F 0C 80 17 00 00 00 00 00 00 DB [00:10:03]Write i2c OK [00:10:03]MH_I2C_Read... [00:10:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:10:03]Read from MH i2c: E2 [00:10:03]MH_I2C_Read... [00:10:03]Read from MH i2c: E2 E2 00 [00:10:03]MH_I2C_Read... [00:10:03]Read from MH i2c: E2 E2 00 4F 0C 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 B9 [00:10:03]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:10:03]wFMCommunicate OK [00:10:03]SAM_PROTO_GetFMData done [00:10:03]Malloc new data [00:10:03]Malloc new data [00:10:03]Malloc new data [00:10:03]Malloc new data [00:10:03]KKMLoadAndSignCloseShiftData err=0 [00:10:03]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Балаев А. 04.06.2024 00:09 Смена: 324 РНМ: 0000000000098096 ЗНМ: 0300000181 СНО: Общий режим Чеков за смену: 246 ФД за смену: 248 Всего чеков: 246 ИТОГИ ПРИХОД Чеков: 234 Общий итог: 263972.47 Итого наличными: 213809.00 Итого безнал.: 50163.47 НДС 0% : 0.00 НДС 12% : 28037.54 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 2336.45 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 12 Общий итог: 28393.00 Итого наличными: 28393.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 3015.46 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 251.30 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 185416.00 НС Приход: 52662740.33 НС Возвр.Прихода: 2500677.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 68501 ФМ: 0000000000965400 ФПД: 200516270006220 [00:10:03]StoreToDocumentArchive [00:10:03]shift 324 fd 68501 [00:10:03]save to /storage/0324/doc_00068501 [00:10:03]save last doc name /storage/0324/doc_00068501 to /storage/kkm_last_doc_name [00:10:03]save OK [00:10:03]Clear old archive folders... [00:10:03]Remove dir /storage/0266 [00:10:03]opendir ok [00:10:03]file . [00:10:03]file .. [00:10:03]file doc_1717459742 [00:10:03]remove file /storage/0266/doc_1717459742 [00:10:03]remove dir /storage/0266 [00:10:03]NVStorageSaveData kkm_registers [00:10:03]File name is /storage/kkm_registers [00:10:03]Write 24 bytes [00:10:03]NVStorageSaveData done [00:10:03]NVStorageSaveData kkm_registers [00:10:03]File name is /storage/kkm_registers [00:10:03]Write 24 bytes [00:10:03]NVStorageSaveData done [00:10:03]ProcessDocumentItem done err = 0, tmpTLVsize=1385 [00:10:03]tlvbuf is 00AD2790 [00:10:03]SAM_PROTO_ClearQueue [00:10:03]wFMCommunicate request_size=4 [00:10:03]MH_SAM_APDU [00:10:03]CAPDU: 80 09 00 00 [00:10:03]Write to MH i2c: E2 08 00 50 0C 80 09 00 00 00 00 00 00 CE [00:10:03]Write i2c OK [00:10:03]MH_I2C_Read... [00:10:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:10:03]Read from MH i2c: E2 [00:10:03]MH_I2C_Read... [00:10:03]Read from MH i2c: E2 03 00 [00:10:03]MH_I2C_Read... [00:10:03]Read from MH i2c: E2 03 00 50 0C 00 90 00 D0 [00:10:03]RAPDU: 90 00 [00:10:03]wFMCommunicate OK [00:10:03]SAM_PROTO_ClearQueue done [00:10:03]KKMCreateOFDPacket [00:10:03]OFDProtocolAddRootSTLVToBuf [00:10:03]FM_MakeSignedData [00:10:03]FM_MakeSignedData [00:10:03]SAM_PROTO_SignData [00:10:03]wFMCommunicate request_size=4 [00:10:03]MH_SAM_APDU [00:10:03]CAPDU: 80 0D 01 02 [00:10:03]Write to MH i2c: E2 08 00 51 0C 80 0D 01 02 00 00 00 00 D6 [00:10:03]Write i2c OK [00:10:03]MH_I2C_Read... [00:10:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:10:03]Read from MH i2c: E2 [00:10:03]MH_I2C_Read... [00:10:03]Read from MH i2c: E2 03 00 [00:10:03]MH_I2C_Read... [00:10:03]Read from MH i2c: E2 03 00 51 0C 00 90 00 D1 [00:10:03]RAPDU: 90 00 [00:10:03]wFMCommunicate OK [00:10:03]wFMCommunicate request_size=255 [00:10:03]MH_SAM_APDU [00:10:03]CAPDU: 80 0D 02 02 FA 05 00 69 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 11 00 D0 91 D0 B0 D0 BB D0 B0 D0 B5 D0 B2 20 D0 90 2E 20 F4 03 04 00 56 5B 5E 66 0E 04 04 00 44 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 5E 04 04 00 F6 00 00 00 57 04 04 00 F8 00 00 00 AA 04 DF 04 6E 04 04 00 F6 00 00 00 69 04 A5 00 6F 04 04 00 EA 00 00 00 B1 04 04 00 3F CA 92 01 70 04 04 00 24 3F 46 01 72 04 03 00 1B 8B 4C 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 2A C8 2A EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 [00:10:04]Write to MH i2c: E2 02 01 52 0C 80 0D 02 02 FA 00 05 00 69 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 11 00 D0 91 D0 B0 D0 BB D0 B0 D0 B5 D0 B2 20 D0 90 2E 20 F4 03 04 00 56 5B 5E 66 0E 04 04 00 44 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 5E 04 04 00 F6 00 00 00 57 04 04 00 F8 00 00 00 AA 04 DF 04 6E 04 04 00 F6 00 00 00 69 04 A5 00 6F 04 04 00 EA 00 00 00 B1 04 04 00 3F CA 92 01 70 04 04 00 24 3F 46 01 72 04 03 00 1B 8B 4C 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 2A C8 2A EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 00 F1 [00:10:04]Write i2c OK [00:10:04]MH_I2C_Read... [00:10:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:10:04]Read from MH i2c: E2 [00:10:04]MH_I2C_Read... [00:10:04]Read from MH i2c: E2 03 00 [00:10:04]MH_I2C_Read... [00:10:04]Read from MH i2c: E2 03 00 52 0C 00 90 00 D2 [00:10:04]RAPDU: 90 00 [00:10:04]wFMCommunicate OK [00:10:04]wFMCommunicate request_size=255 [00:10:04]MH_SAM_APDU [00:10:04]CAPDU: 80 0D 02 02 FA 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AD 90 03 6A 04 A0 00 6F 04 04 00 0C 00 00 00 B1 04 03 00 04 53 2B 70 04 03 00 04 53 2B 72 04 01 00 00 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EA 99 04 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 2A 62 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 [00:10:04]Write to MH i2c: E2 02 01 53 0C 80 0D 02 02 FA 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AD 90 03 6A 04 A0 00 6F 04 04 00 0C 00 00 00 B1 04 03 00 04 53 2B 70 04 03 00 04 53 2B 72 04 01 00 00 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EA 99 04 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 2A 62 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 00 00 BD [00:10:04]Write i2c OK [00:10:04]MH_I2C_Read... [00:10:04]OFD Sender: No OFD packet to send [00:10:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:10:04]Read from MH i2c: E2 [00:10:04]MH_I2C_Read... [00:10:05]Read from MH i2c: E2 03 00 [00:10:05]MH_I2C_Read... [00:10:05]Read from MH i2c: E2 03 00 53 0C 00 90 00 D3 [00:10:05]RAPDU: 90 00 [00:10:05]wFMCommunicate OK [00:10:05]wFMCommunicate request_size=255 [00:10:05]MH_SAM_APDU [00:10:05]CAPDU: 80 0D 02 02 FA 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 [00:10:05]Write to MH i2c: E2 02 01 54 0C 80 0D 02 02 FA 00 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 00 00 A0 [00:10:05]Write i2c OK [00:10:05]MH_I2C_Read... [00:10:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:10:05]Read from MH i2c: E2 [00:10:05]MH_I2C_Read... [00:10:05]Read from MH i2c: E2 03 00 [00:10:05]MH_I2C_Read... [00:10:05]Read from MH i2c: E2 03 00 54 0C 00 90 00 D4 [00:10:05]RAPDU: 90 00 [00:10:05]wFMCommunicate OK [00:10:05]wFMCommunicate request_size=255 [00:10:05]MH_SAM_APDU [00:10:05]CAPDU: 80 0D 02 02 FA 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 [00:10:05]Write to MH i2c: E2 02 01 55 0C 80 0D 02 02 FA 00 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 00 00 AA [00:10:05]Write i2c OK [00:10:05]MH_I2C_Read... [00:10:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:10:06]Read from MH i2c: E2 [00:10:06]MH_I2C_Read... [00:10:06]Read from MH i2c: E2 03 00 [00:10:06]MH_I2C_Read... [00:10:06]Read from MH i2c: E2 03 00 55 0C 00 90 00 D5 [00:10:06]RAPDU: 90 00 [00:10:06]wFMCommunicate OK [00:10:06]wFMCommunicate request_size=255 [00:10:06]MH_SAM_APDU [00:10:06]CAPDU: 80 0D 02 02 FA F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 [00:10:06]Write to MH i2c: E2 02 01 56 0C 80 0D 02 02 FA 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 00 6B [00:10:06]Write i2c OK [00:10:06]MH_I2C_Read... [00:10:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:10:06]Read from MH i2c: E2 [00:10:06]MH_I2C_Read... [00:10:06]Read from MH i2c: E2 03 00 [00:10:06]MH_I2C_Read... [00:10:06]Read from MH i2c: E2 03 00 56 0C 00 90 00 D6 [00:10:06]RAPDU: 90 00 [00:10:06]wFMCommunicate OK [00:10:06]wFMCommunicate request_size=144 [00:10:06]MH_SAM_APDU [00:10:06]CAPDU: 80 0D 02 02 8B 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 95 0B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 35 04 06 00 B6 5E 55 0B 9F CC [00:10:06]Write to MH i2c: E2 93 00 57 0C 80 0D 02 02 8B 00 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 95 0B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 35 04 06 00 B6 5E 55 0B 9F CC 00 00 92 [00:10:06]Write i2c OK [00:10:06]MH_I2C_Read... [00:10:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:10:07]Read from MH i2c: E2 [00:10:07]MH_I2C_Read... [00:10:07]Read from MH i2c: E2 03 00 [00:10:07]MH_I2C_Read... [00:10:07]Read from MH i2c: E2 03 00 57 0C 00 90 00 D7 [00:10:07]RAPDU: 90 00 [00:10:07]wFMCommunicate OK [00:10:07]wFMCommunicate request_size=4 [00:10:07]MH_SAM_APDU [00:10:07]CAPDU: 80 0D 03 02 [00:10:07]Write to MH i2c: E2 08 00 58 0C 80 0D 03 02 00 00 00 00 DF [00:10:07]Write i2c OK [00:10:07]MH_I2C_Read... [00:10:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:10:07]Read from MH i2c: E2 [00:10:07]MH_I2C_Read... [00:10:07]Read from MH i2c: E2 0B 00 [00:10:07]MH_I2C_Read... [00:10:07]Read from MH i2c: E2 0B 00 58 0C 00 86 D3 88 60 7A 69 55 C0 90 00 19 [00:10:07]RAPDU: 86 D3 88 60 7A 69 55 C0 90 00 [00:10:07]wFMCommunicate OK [00:10:07]SAM_PROTO_SignData done [00:10:07]FM_MakeSignedData done [00:10:07]CreateOFDProtocolMessage [00:10:07]wFMCommunicate request_size=4 [00:10:07]MH_SAM_APDU [00:10:07]CAPDU: 80 11 00 00 [00:10:07]Write to MH i2c: E2 08 00 59 0C 80 11 00 00 00 00 00 00 DF [00:10:07]Write i2c OK [00:10:07]MH_I2C_Read... [00:10:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:10:07]Read from MH i2c: E2 [00:10:07]MH_I2C_Read... [00:10:07]Read from MH i2c: E2 17 00 [00:10:07]MH_I2C_Read... [00:10:07]Read from MH i2c: E2 17 00 59 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 2A [00:10:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [00:10:07]wFMCommunicate OK [00:10:07]CreateOFDProtocolMessage done [00:10:07]OFDSenderStorePacket 68501 [00:10:07]StoreOFDPacket docnum=68501 [00:10:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 7D 05 00 00 E3 AE 75 05 D8 D4 5A 05 01 00 05 00 69 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 11 00 D0 91 D0 B0 D0 BB D0 B0 D0 B5 D0 B2 20 D0 90 2E 20 F4 03 04 00 56 5B 5E 66 0E 04 04 00 44 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 5E 04 04 00 F6 00 00 00 57 04 04 00 F8 00 00 00 AA 04 DF 04 6E 04 04 00 F6 00 00 00 69 04 A5 00 6F 04 04 00 EA 00 00 00 B1 04 04 00 3F CA 92 01 70 04 04 00 24 3F 46 01 72 04 03 00 1B 8B 4C 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 2A C8 2A EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AD 90 03 6A 04 A0 00 6F 04 04 00 0C 00 00 00 B1 04 03 00 04 53 2B 70 04 03 00 04 53 2B 72 04 01 00 00 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EA 99 04 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 2A 62 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 95 0B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 35 04 06 00 B6 5E 55 0B 9F CC 86 D3 88 60 7A 69 55 C0 [00:10:07]CheckFolder [00:10:07]dirname=/storage/ofd_packets [00:10:07]CheckFolder done [00:10:07]ProducePacketName [00:10:07]name=ofd_packets/00068501 [00:10:07]NVStorageSaveData ofd_packets/00068501 [00:10:07]File name is /storage/ofd_packets/00068501 [00:10:07]Write 1435 bytes [00:10:07]NVStorageSaveData done [00:10:07]OFDSenderStorePacket done [00:10:07]KKMCreateOFDPacket done [00:10:07]NVStorageSaveData kkm_last_timestamp [00:10:07]File name is /storage/kkm_last_timestamp [00:10:07]Write 4 bytes [00:10:07]NVStorageSaveData done [00:10:07]ExternCall_PrintAddStr [00:10:07]wPrintStart [00:10:07]Write to MH i2c: 01 00 00 5A 0C 66 [00:10:07]Write i2c OK [00:10:07]MH_I2C_Read... [00:10:07]Read from MH i2c: 01 [00:10:07]MH_I2C_Read... [00:10:07]Read from MH i2c: 01 07 00 [00:10:07]MH_I2C_Read... [00:10:07]Read from MH i2c: 01 07 00 5A 0C 00 00 00 00 00 FF 0F 7B [00:10:07]RasterBufferAndPrint [00:10:07]line Отчет о закрытии смены [00:10:07]line ФФД: 1.0 [00:10:07]line ИНН: 02508201610067 [00:10:07]line Кассир: Балаев А. [00:10:07]line 04.06.2024 00:09 [00:10:07]line Смена: 324 [00:10:07]line РНМ: 0000000000098096 [00:10:07]line ЗНМ: 0300000181 [00:10:07]line СНО: Общий режим [00:10:07]line Чеков за смену: 246 [00:10:07]line ФД за смену: 248 [00:10:07]line Всего чеков: 246 [00:10:07]line ИТОГИ ПРИХОД [00:10:07]line Чеков: 234 [00:10:07]line Общий итог: 263972.47 [00:10:07]line Итого наличными: 213809.00 [00:10:07]OFD Sender: Processing packet 68501 [packets to send 26, broken 25] [00:10:07]ProducePacketName [00:10:07]name=ofd_packets/00068501 [00:10:07]OFD Sender: To server: pG, [00:10:07]CommunicateWithHost lk.salyk.kg:30040 [00:10:07]ConnectInit lk.salyk.kg [00:10:07]line Итого безнал.: 50163.47 [00:10:07]line НДС 0% : 0.00 [00:10:07]line НДС 12% : 28037.54 [00:10:07]line НСП 0% : 0.00 [00:10:07]line НСП 1,50% : 0.00 [00:10:07]line НСП 0,50% : 0.00 [00:10:07]line НСП 5% : 0.00 [00:10:07]line НСП 3% : 0.00 [00:10:07]line НСП 2% : 0.00 [00:10:07]line НСП 1% : 2336.45 [00:10:07]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:10:07]line Чеков: 12 [00:10:07]line Общий итог: 28393.00 [00:10:07]line Итого наличными: 28393.00 [00:10:07]line Итого безнал.: 0.00 [00:10:07]line НДС 0% : 0.00 [00:10:07]line НДС 12% : 3015.46 [00:10:07]line НСП 0% : 0.00 [00:10:07]line НСП 1,50% : 0.00 [00:10:07]line НСП 0,50% : 0.00 [00:10:07]line НСП 5% : 0.00 [00:10:07]line НСП 3% : 0.00 [00:10:07]line НСП 2% : 0.00 [00:10:07]line НСП 1% : 251.30 [00:10:07]line ИТОГИ РАСХОД [00:10:07]line Чеков: 0 [00:10:07]line Общий итог: 0.00 [00:10:07]line Итого наличными: 0.00 [00:10:07]line Итого безнал.: 0.00 [00:10:07]line НДС 0% : 0.00 [00:10:07]line НДС 12% : 0.00 [00:10:07]line НСП 0% : 0.00 [00:10:07]line НСП 1,50% : 0.00 [00:10:07]line НСП 0,50% : 0.00 [00:10:07]line НСП 5% : 0.00 [00:10:07]line НСП 3% : 0.00 [00:10:07]line НСП 2% : 0.00 [00:10:07]line НСП 1% : 0.00 [00:10:07]line ИТОГИ ВОЗВРАТ РАСХОДА [00:10:07]line Чеков: 0 [00:10:07]line Общий итог: 0.00 [00:10:07]line Итого наличными: 0.00 [00:10:07]line Итого безнал.: 0.00 [00:10:07]line НДС 0% : 0.00 [00:10:07]line НДС 12% : 0.00 [00:10:07]line НСП 0% : 0.00 [00:10:07]line НСП 1,50% : 0.00 [00:10:07]line НСП 0,50% : 0.00 [00:10:07]line НСП 5% : 0.00 [00:10:07]line НСП 3% : 0.00 [00:10:07]line НСП 2% : 0.00 [00:10:07]line НСП 1% : 0.00 [00:10:07]line Сумма внесений: 0.00 [00:10:07]line Сумма выплат: 0.00 [00:10:07]line Нал. в кассе: 185416.00 [00:10:07]line НС Приход: 52662740.33 [00:10:07]line НС Возвр.Прихода: 2500677.00 [00:10:07]line НС Расход: 0.00 [00:10:07]line НС Возвр.Расхода: 0.00 [00:10:07]line ФД: 68501 [00:10:07]line ФМ: 0000000000965400 [00:10:07]line ФПД: 200516270006220 [00:10:07]written 0, free lines is 4095 [00:10:07]Connected sock=10 [00:10:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 7D 05 00 00 E3 AE 75 05 D8 D4 5A 05 01 00 05 00 69 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 11 00 D0 91 D0 B0 D0 BB D0 B0 D0 B5 D0 B2 20 D0 90 2E 20 F4 03 04 00 56 5B 5E 66 0E 04 04 00 44 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 5E 04 04 00 F6 00 00 00 57 04 04 00 F8 00 00 00 AA 04 DF 04 6E 04 04 00 F6 00 00 00 69 04 A5 00 6F 04 04 00 EA 00 00 00 B1 04 04 00 3F CA 92 01 70 04 04 00 24 3F 46 01 72 04 03 00 1B 8B 4C 00 04 82 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 2A C8 2A EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AD 90 03 6A 04 A0 00 6F 04 04 00 0C 00 00 00 B1 04 03 00 04 53 2B 70 04 03 00 04 53 2B 72 04 01 00 00 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EA 99 04 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 2A 62 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 Write to MH i2c: F7 01 03 00 00 00 00 AA EF 0C 03 B6 09 [00:10:08]00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 Write i2c OK [00:10:08]03 MH_I2C_Read... [00:10:08]F7 Read from MH i2c: 03 01 00 [00:10:08]00 MH_I2C_Read... [00:10:08]EF 03 09 Read from MH i2c: 00 01 F6 07 03 00 01 [00:10:08]00 MH_I2C_Read... [00:10:08]04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 Read from MH i2c: F6 01 03 07 01 00 00 AA 06 0C F7 00 03 00 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 00 00 70 00 04 F3 00 0A 00 BA 72 [00:10:08]04 RasterBufferAndPrint [00:10:08]00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 line [00:10:08]00 line [00:10:08]00 line [00:10:08]EE line [00:10:08]03 line [00:10:08]09 00 F2 03 01 00 01 F3 written 0, free lines is 2946 [00:10:08]03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 MH_Cut [00:10:08]F6 Write to MH i2c: 03 D1 01 01 00 00 01 B1 0C 01 8F [00:10:08]F7 03 00 00 EF 03 09 00 F6 03 01 00 02 Write i2c OK [00:10:08]F7 MH_I2C_Read... [00:10:08]03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 Read from MH i2c: 04 D1 F7 [00:10:08]03 MH_I2C_Read... [00:10:08]00 Read from MH i2c: 00 D1 EF 01 03 00 09 [00:10:08]00 MH_I2C_Read... [00:10:08]F6 03 01 00 05 F7 03 00 00 EF 03 09 Read from MH i2c: 00 D1 F6 01 03 00 01 B1 00 0C 06 00 F7 8E 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 [00:10:08]04 Write to MH i2c: 00 01 00 00 70 00 04 B2 00 0C 00 BE 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 [00:10:08]00 F3 Write i2c OK [00:10:08]03 MH_I2C_Read... [00:10:08]00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 95 0B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 35 04 06 00 B6 5E 55 0B 9F CC 86 D3 88 60 7A 69 55 C0 [00:10:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 B6 0F 47 00 5F 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 95 0B 01 00 F4 03 04 00 5A 02 5E 66 B6 04 01 00 00 7D CA E7 C8 8E 70 88 E7 [00:10:09]CommunicateWithHost err = 0 [00:10:09]CheckOFDResponse [00:10:09]1017 (14) - 77093643461234 [00:10:09]1041 (16) - 0000000000965400 [00:10:09]1040 (4) - 68501 [00:10:09]1012 (4) - 03.06.2024 17:50 [00:10:09]1206 (1) - 0 [00:10:09]OFD Sender: Remove packet 68501 [00:10:09]ProducePacketName [00:10:09]name=ofd_packets/00068501 [00:10:09]NVStorageDeleteData [00:10:09]*** Cut start [00:10:09]*** Partial cut [00:10:09]*** CUTSNS_PIN = 1 [00:10:09]*** CUTSNS_PIN = 0 [00:10:09]OFD Sender: No OFD packet to send [00:10:09]*** Brake cut motor [00:10:10]Read from MH i2c: 01 [00:10:10]MH_I2C_Read... [00:10:10]*** Stop cut motor [00:10:10]*** Cut end [00:10:10]Read from MH i2c: 01 07 00 [00:10:10]MH_I2C_Read... [00:10:10]Read from MH i2c: 01 07 00 B2 0C 00 00 00 00 00 FF 0F D3 [00:10:10]process_action close_shift done [00:10:10]requested_data is exist [00:10:10]produce_requested_data [00:10:10]requested_item fd.num is exist - process it [00:10:10]SAM_PROTO_GetFieldsCounters [00:10:10]wFMCommunicate request_size=4 [00:10:10]MH_SAM_APDU [00:10:10]CAPDU: 80 13 00 00 [00:10:10]Write to MH i2c: E2 08 00 B3 0C 80 13 00 00 00 00 00 00 3B [00:10:10]Write i2c OK [00:10:10]MH_I2C_Read... [00:10:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:10:10]Read from MH i2c: E2 [00:10:10]MH_I2C_Read... [00:10:10]Read from MH i2c: E2 62 00 [00:10:10]MH_I2C_Read... [00:10:10]Read from MH i2c: E2 62 00 B3 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 95 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 24 [00:10:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 95 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:10:10]wFMCommunicate OK [00:10:10]SAM_PROTO_GetFieldsCounters done [00:10:10]requested_item shift.num is exist - process it [00:10:10]requested_item shift.opened is exist - process it [00:10:10]req_shift_opened [00:10:10]FM_GetShiftState [00:10:10]SAM_PROTO_GetShiftState [00:10:10]wFMCommunicate request_size=4 [00:10:10]MH_SAM_APDU [00:10:10]CAPDU: 80 13 01 00 [00:10:10]Write to MH i2c: E2 08 00 B4 0C 80 13 01 00 00 00 00 00 3D [00:10:10]Write i2c OK [00:10:10]MH_I2C_Read... [00:10:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:10:10]Read from MH i2c: E2 [00:10:10]MH_I2C_Read... [00:10:10]Read from MH i2c: E2 0E 00 [00:10:10]MH_I2C_Read... [00:10:10]Read from MH i2c: E2 0E 00 B4 0C 00 09 00 00 00 00 00 00 00 00 00 00 90 00 48 [00:10:10]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:10:10]wFMCommunicate OK [00:10:10]SAM_PROTO_GetShiftState done [00:10:10]FM_GetShiftState done [00:10:10]req_shift_opened done [00:10:10]requested_item shift.open_date is exist - process it [00:10:10]req_shift_open_date [00:10:10]FM_GetShiftState [00:10:10]SAM_PROTO_GetShiftState [00:10:10]wFMCommunicate request_size=4 [00:10:10]MH_SAM_APDU [00:10:10]CAPDU: 80 13 01 00 [00:10:10]Write to MH i2c: E2 08 00 B5 0C 80 13 01 00 00 00 00 00 3E [00:10:10]Write i2c OK [00:10:10]MH_I2C_Read... [00:10:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:10:10]Read from MH i2c: E2 [00:10:10]MH_I2C_Read... [00:10:10]Read from MH i2c: E2 0E 00 [00:10:10]MH_I2C_Read... [00:10:10]Read from MH i2c: E2 0E 00 B5 0C 00 09 00 00 00 00 00 00 00 00 00 00 90 00 49 [00:10:10]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:10:10]wFMCommunicate OK [00:10:10]SAM_PROTO_GetShiftState done [00:10:10]FM_GetShiftState done [00:10:10]req_shift_open_date done [00:10:10]produce_requested_data done [00:10:10]produce_requested_data return {"fd.num":68501,"shift.num":324,"shift.opened":0,"shift.open_date":0} [00:10:10]process_action_free close_shift [00:10:10]json_value_free [00:10:10]json_value_free done [00:10:10]process_json_proto returns [00:10:10]Send response to host [00:10:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":68501,"shift.num":324,"shift.opened":0,"shift.open_date":0}}} [00:10:10]free response buf [00:10:10]execute_script done [00:10:10]execute_script returns [00:10:10]free content buf [00:10:10]Sock 9.Close socket [00:10:10]Sock 9.Thread stoped [00:10:14]OFD Sender: No OFD packet to send [00:10:19]OFD Sender: No OFD packet to send [00:10:24]OFD Sender: No OFD packet to send [00:10:29]OFD Sender: No OFD packet to send [00:10:34]OFD Sender: No OFD packet to send [00:10:39]OFD Sender: No OFD packet to send [00:10:44]OFD Sender: No OFD packet to send [00:10:49]OFD Sender: No OFD packet to send [00:10:54]OFD Sender: No OFD packet to send [00:10:59]OFD Sender: No OFD packet to send [00:11:04]OFD Sender: No OFD packet to send [00:11:09]OFD Sender: No OFD packet to send [00:11:14]OFD Sender: No OFD packet to send [00:11:19]OFD Sender: No OFD packet to send [00:11:24]OFD Sender: No OFD packet to send [00:11:29]OFD Sender: No OFD packet to send [00:11:34]OFD Sender: No OFD packet to send [00:11:39]OFD Sender: No OFD packet to send [00:11:44]OFD Sender: No OFD packet to send [00:11:49]OFD Sender: No OFD packet to send [00:11:54]OFD Sender: No OFD packet to send [00:11:59]OFD Sender: No OFD packet to send [00:12:04]OFD Sender: No OFD packet to send [00:12:09]OFD Sender: No OFD packet to send [00:12:14]OFD Sender: No OFD packet to send [00:12:19]OFD Sender: No OFD packet to send [00:12:24]OFD Sender: No OFD packet to send [00:12:29]OFD Sender: No OFD packet to send [00:12:34]OFD Sender: No OFD packet to send [00:12:39]OFD Sender: No OFD packet to send [00:12:44]OFD Sender: No OFD packet to send [00:12:49]OFD Sender: No OFD packet to send [00:12:54]OFD Sender: No OFD packet to send [00:12:59]OFD Sender: No OFD packet to send [00:13:04]OFD Sender: No OFD packet to send [00:13:09]OFD Sender: No OFD packet to send [00:13:14]OFD Sender: No OFD packet to send [00:13:19]OFD Sender: No OFD packet to send [00:13:24]OFD Sender: No OFD packet to send [00:13:29]OFD Sender: No OFD packet to send [00:13:34]OFD Sender: No OFD packet to send [00:13:39]OFD Sender: No OFD packet to send [00:13:44]OFD Sender: No OFD packet to send [00:13:49]OFD Sender: No OFD packet to send [00:13:54]OFD Sender: No OFD packet to send [00:13:59]OFD Sender: No OFD packet to send [00:14:04]OFD Sender: No OFD packet to send [00:14:09]OFD Sender: No OFD packet to send [00:14:14]OFD Sender: No OFD packet to send [00:14:19]OFD Sender: No OFD packet to send [00:14:24]OFD Sender: No OFD packet to send [00:14:29]OFD Sender: No OFD packet to send [00:14:34]OFD Sender: No OFD packet to send [00:14:39]OFD Sender: No OFD packet to send [00:14:44]OFD Sender: No OFD packet to send [00:14:49]OFD Sender: No OFD packet to send [00:14:54]OFD Sender: No OFD packet to send [00:14:59]OFD Sender: No OFD packet to send [00:15:04]OFD Sender: No OFD packet to send [00:15:09]OFD Sender: No OFD packet to send [00:15:14]OFD Sender: No OFD packet to send [00:15:19]OFD Sender: No OFD packet to send [00:15:25]OFD Sender: No OFD packet to send [00:15:30]OFD Sender: No OFD packet to send [00:15:35]OFD Sender: No OFD packet to send [00:15:40]OFD Sender: No OFD packet to send [00:15:45]OFD Sender: No OFD packet to send [00:15:50]OFD Sender: No OFD packet to send [00:15:55]OFD Sender: No OFD packet to send [00:16:00]OFD Sender: No OFD packet to send [00:16:05]OFD Sender: No OFD packet to send [00:16:10]OFD Sender: No OFD packet to send [00:16:15]OFD Sender: No OFD packet to send [00:16:20]OFD Sender: No OFD packet to send [00:16:25]OFD Sender: No OFD packet to send [00:16:30]OFD Sender: No OFD packet to send [00:16:35]OFD Sender: No OFD packet to send [00:16:40]OFD Sender: No OFD packet to send [00:16:45]OFD Sender: No OFD packet to send [00:16:50]OFD Sender: No OFD packet to send [00:16:55]OFD Sender: No OFD packet to send [00:17:00]OFD Sender: No OFD packet to send [00:17:05]OFD Sender: No OFD packet to send [00:17:10]OFD Sender: No OFD packet to send [00:17:15]OFD Sender: No OFD packet to send [00:17:20]OFD Sender: No OFD packet to send [00:17:25]OFD Sender: No OFD packet to send [00:17:30]OFD Sender: No OFD packet to send [00:17:35]OFD Sender: No OFD packet to send [00:17:40]OFD Sender: No OFD packet to send [00:17:45]OFD Sender: No OFD packet to send [00:17:50]OFD Sender: No OFD packet to send [00:17:55]OFD Sender: No OFD packet to send [00:18:00]OFD Sender: No OFD packet to send [00:18:05]OFD Sender: No OFD packet to send [00:18:10]OFD Sender: No OFD packet to send [00:18:15]OFD Sender: No OFD packet to send [00:18:20]OFD Sender: No OFD packet to send [00:18:25]OFD Sender: No OFD packet to send [00:18:30]OFD Sender: No OFD packet to send [00:18:35]OFD Sender: No OFD packet to send [00:18:40]OFD Sender: No OFD packet to send [00:18:45]OFD Sender: No OFD packet to send [00:18:50]OFD Sender: No OFD packet to send [00:18:55]OFD Sender: No OFD packet to send [00:19:00]OFD Sender: No OFD packet to send [00:19:05]OFD Sender: No OFD packet to send [00:19:10]OFD Sender: No OFD packet to send [00:19:15]OFD Sender: No OFD packet to send [00:19:20]OFD Sender: No OFD packet to send [00:19:25]OFD Sender: No OFD packet to send [00:19:30]OFD Sender: No OFD packet to send [00:19:35]OFD Sender: No OFD packet to send [00:19:40]OFD Sender: No OFD packet to send [00:19:45]OFD Sender: No OFD packet to send [00:19:50]OFD Sender: No OFD packet to send [00:19:55]OFD Sender: No OFD packet to send [00:20:00]OFD Sender: No OFD packet to send [00:20:05]OFD Sender: No OFD packet to send [00:20:10]OFD Sender: No OFD packet to send [00:20:15]OFD Sender: No OFD packet to send [00:20:20]OFD Sender: No OFD packet to send [00:20:25]OFD Sender: No OFD packet to send [00:20:30]OFD Sender: No OFD packet to send [00:20:35]OFD Sender: No OFD packet to send [00:20:40]OFD Sender: No OFD packet to send [00:20:45]OFD Sender: No OFD packet to send [00:20:50]OFD Sender: No OFD packet to send [00:20:55]OFD Sender: No OFD packet to send [00:21:00]OFD Sender: No OFD packet to send [00:21:05]OFD Sender: No OFD packet to send [00:21:10]OFD Sender: No OFD packet to send [00:21:15]OFD Sender: No OFD packet to send [00:21:20]OFD Sender: No OFD packet to send [00:21:25]OFD Sender: No OFD packet to send [00:21:30]OFD Sender: No OFD packet to send [00:21:35]OFD Sender: No OFD packet to send [00:21:40]OFD Sender: No OFD packet to send [00:21:45]OFD Sender: No OFD packet to send [00:21:50]OFD Sender: No OFD packet to send [00:21:55]OFD Sender: No OFD packet to send [00:22:00]OFD Sender: No OFD packet to send [00:22:05]OFD Sender: No OFD packet to send [00:22:10]OFD Sender: No OFD packet to send [00:22:15]OFD Sender: No OFD packet to send [00:22:20]OFD Sender: No OFD packet to send [00:22:25]OFD Sender: No OFD packet to send [00:22:30]OFD Sender: No OFD packet to send [00:22:35]OFD Sender: No OFD packet to send [00:22:40]OFD Sender: No OFD packet to send [00:22:45]OFD Sender: No OFD packet to send [00:22:50]OFD Sender: No OFD packet to send [00:22:55]OFD Sender: No OFD packet to send [00:23:00]OFD Sender: No OFD packet to send [00:23:05]OFD Sender: No OFD packet to send [00:23:05]accept exits with 7 [00:23:05]New connection [00:23:05]New thread 3067084132 created [00:23:05]Thread 3067227492 joined [00:23:05]Waiting for new connection... [00:23:05] Sock 7.Parse request [00:23:05]Sock 7.Check first char [00:23:05]Sock 7.First char is OK [00:23:05]request: POST /json_proto HTTP/1.0 [00:23:05]Method: POST [00:23:05]URL: /json_proto [00:23:05]Method is POST - this is cgi request [00:23:05]url: /json_proto [00:23:05]query_string will be loaded in cgi processing [00:23:05]execute_cgi json_proto POST (null) [00:23:05]execute_cgi path=json_proto method=POST [00:23:05]POST find Content-Length [00:23:05]Host: 172.17.36.132:8080 [00:23:05]Content-Length: 215 [00:23:05]Content-Type: application/json [00:23:05] [00:23:05]POST finish read [00:23:05]Found Content-Length = 215 [00:23:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:23:05]execute_script... [00:23:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:23:05]POST & json_proto [00:23:05]process_json_proto [00:23:05]json parsed OK: [00:23:05]protocol is kg_v1.0 [00:23:05]action value=get_value [00:23:05]process_action get_value [00:23:05]cmd_get_value [00:23:05]process_action get_value done [00:23:05]requested_data is exist [00:23:05]produce_requested_data [00:23:05]requested_item kkm.sn is exist - process it [00:23:05]requested_item kkm.ver is exist - process it [00:23:05]requested_item fm.sn is exist - process it [00:23:05]wFMCommunicate request_size=4 [00:23:05]MH_SAM_APDU [00:23:05]CAPDU: 80 11 00 00 [00:23:05]Write to MH i2c: E2 08 00 B6 0C 80 11 00 00 00 00 00 00 3C [00:23:05]Write i2c OK [00:23:05]MH_I2C_Read... [00:23:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:23:05]Read from MH i2c: E2 [00:23:05]MH_I2C_Read... [00:23:05]Read from MH i2c: E2 17 00 [00:23:05]MH_I2C_Read... [00:23:05]Read from MH i2c: E2 17 00 B6 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 87 [00:23:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [00:23:05]wFMCommunicate OK [00:23:05]requested_item fd.num is exist - process it [00:23:05]SAM_PROTO_GetFieldsCounters [00:23:05]wFMCommunicate request_size=4 [00:23:05]MH_SAM_APDU [00:23:05]CAPDU: 80 13 00 00 [00:23:05]Write to MH i2c: E2 08 00 B7 0C 80 13 00 00 00 00 00 00 3F [00:23:05]Write i2c OK [00:23:05]MH_I2C_Read... [00:23:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:23:05]Read from MH i2c: E2 [00:23:05]MH_I2C_Read... [00:23:05]Read from MH i2c: E2 62 00 [00:23:05]MH_I2C_Read... [00:23:05]Read from MH i2c: E2 62 00 B7 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 95 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 28 [00:23:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 95 0B 01 00 0E 04 04 00 44 01 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:23:05]wFMCommunicate OK [00:23:05]SAM_PROTO_GetFieldsCounters done [00:23:05]requested_item shift.num is exist - process it [00:23:05]requested_item shift.opened is exist - process it [00:23:05]req_shift_opened [00:23:05]FM_GetShiftState [00:23:05]SAM_PROTO_GetShiftState [00:23:05]wFMCommunicate request_size=4 [00:23:05]MH_SAM_APDU [00:23:05]CAPDU: 80 13 01 00 [00:23:05]Write to MH i2c: E2 08 00 B8 0C 80 13 01 00 00 00 00 00 41 [00:23:05]Write i2c OK [00:23:05]MH_I2C_Read... [00:23:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:23:05]Read from MH i2c: E2 [00:23:05]MH_I2C_Read... [00:23:05]Read from MH i2c: E2 0E 00 [00:23:05]MH_I2C_Read... [00:23:05]Read from MH i2c: E2 0E 00 B8 0C 00 09 00 00 00 00 00 00 00 00 00 00 90 00 4C [00:23:05]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:23:05]wFMCommunicate OK [00:23:05]SAM_PROTO_GetShiftState done [00:23:05]FM_GetShiftState done [00:23:05]req_shift_opened done [00:23:05]requested_item shift.open_date is exist - process it [00:23:05]req_shift_open_date [00:23:05]FM_GetShiftState [00:23:05]SAM_PROTO_GetShiftState [00:23:05]wFMCommunicate request_size=4 [00:23:05]MH_SAM_APDU [00:23:05]CAPDU: 80 13 01 00 [00:23:05]Write to MH i2c: E2 08 00 B9 0C 80 13 01 00 00 00 00 00 42 [00:23:05]Write i2c OK [00:23:05]MH_I2C_Read... [00:23:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:23:05]Read from MH i2c: E2 [00:23:05]MH_I2C_Read... [00:23:05]Read from MH i2c: E2 0E 00 [00:23:05]MH_I2C_Read... [00:23:05]Read from MH i2c: E2 0E 00 B9 0C 00 09 00 00 00 00 00 00 00 00 00 00 90 00 4D [00:23:05]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:23:05]wFMCommunicate OK [00:23:05]SAM_PROTO_GetShiftState done [00:23:05]FM_GetShiftState done [00:23:05]req_shift_open_date done [00:23:05]produce_requested_data done [00:23:05]produce_requested_data return {"kkm.sn":"0300000181","kkm.ver":"001","fm.sn":"0000000000965400","fd.num":68501,"shift.num":324,"shift.opened":0,"shift.open_date":0} [00:23:05]process_action_free get_value [00:23:05]json_value_free [00:23:05]json_value_free done [00:23:05]process_json_proto returns [00:23:05]Send response to host [00:23:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000181","kkm.ver":"001","fm.sn":"0000000000965400","fd.num":68501,"shift.num":324,"shift.opened":0,"shift.open_date":0}}} [00:23:05]free response buf [00:23:05]execute_script done [00:23:05]execute_script returns [00:23:05]free content buf [00:23:05]Sock 7.Close socket [00:23:05]Sock 7.Thread stoped [00:23:05]accept exits with 9 [00:23:05]New connection [00:23:05]New thread 3067227492 created [00:23:05]Thread 3067084132 joined [00:23:05]Waiting for new connection... [00:23:05] Sock 9.Parse request [00:23:05]Sock 9.Check first char [00:23:05]Sock 9.First char is OK [00:23:05]request: POST /json_proto HTTP/1.0 [00:23:05]Method: POST [00:23:05]URL: /json_proto [00:23:05]Method is POST - this is cgi request [00:23:05]url: /json_proto [00:23:05]query_string will be loaded in cgi processing [00:23:05]execute_cgi json_proto POST (null) [00:23:05]execute_cgi path=json_proto method=POST [00:23:05]POST find Content-Length [00:23:05]Host: 172.17.36.132:8080 [00:23:05]Content-Length: 331 [00:23:05]Content-Type: application/json [00:23:05] [00:23:05]POST finish read [00:23:05]Found Content-Length = 331 [00:23:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:23:05]execute_script... [00:23:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:23:06]POST & json_proto [00:23:06]process_json_proto [00:23:06]json parsed OK: [00:23:06]protocol is kg_v1.0 [00:23:06]action value=get_value [00:23:06]process_action get_value [00:23:06]cmd_get_value [00:23:06]process_action get_value done [00:23:06]requested_data is exist [00:23:06]produce_requested_data [00:23:06]requested_item fm.sale.total is exist - process it [00:23:06]SAM_PROTO_GetFMData [00:23:06]wFMCommunicate request_size=4 [00:23:06]MH_SAM_APDU [00:23:06]CAPDU: 80 13 03 00 [00:23:06]Write to MH i2c: E2 08 00 BA 0C 80 13 03 00 00 00 00 00 45 [00:23:06]Write i2c OK [00:23:06]MH_I2C_Read... [00:23:06]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:23:06]Read from MH i2c: E2 [00:23:06]MH_I2C_Read... [00:23:06]Read from MH i2c: E2 FD 00 [00:23:06]MH_I2C_Read... [00:23:06]Read from MH i2c: E2 FD 00 BA 0C 00 C5 04 85 04 C1 04 6E 04 04 00 0C 09 01 00 69 04 A3 00 6F 04 04 00 F5 03 01 00 B1 04 05 00 F1 F6 E4 39 01 70 04 05 00 68 DE 3C 0D 01 72 04 04 00 89 18 A8 2C 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 EA 17 58 21 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 0F 3E C7 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 17 05 00 00 B1 04 04 00 F4 BA E7 0E 70 04 04 00 F4 BA E7 0E 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 28 44 95 01 EF 03 09 90 00 76 [00:23:06]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 0C 09 01 00 69 04 A3 00 6F 04 04 00 F5 03 01 00 B1 04 05 00 F1 F6 E4 39 01 70 04 05 00 68 DE 3C 0D 01 72 04 04 00 89 18 A8 2C 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 EA 17 58 21 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 0F 3E C7 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 17 05 00 00 B1 04 04 00 F4 BA E7 0E 70 04 04 00 F4 BA E7 0E 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 28 44 95 01 EF 03 09 90 00 [00:23:06]wFMCommunicate OK [00:23:06]wFMCommunicate request_size=4 [00:23:06]MH_SAM_APDU [00:23:06]CAPDU: 80 17 00 00 [00:23:06]Write to MH i2c: E2 08 00 BB 0C 80 17 00 00 00 00 00 00 47 [00:23:06]Write i2c OK [00:23:06]MH_I2C_Read... [00:23:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:23:06]Read from MH i2c: E2 [00:23:06]MH_I2C_Read... [00:23:06]Read from MH i2c: E2 FD 00 [00:23:06]MH_I2C_Read... [00:23:06]Read from MH i2c: E2 FD 00 BB 0C 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 3C C5 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 1F [00:23:06]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 3C C5 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:23:06]wFMCommunicate OK [00:23:06]wFMCommunicate request_size=4 [00:23:06]MH_SAM_APDU [00:23:06]CAPDU: 80 17 00 00 [00:23:06]Write to MH i2c: E2 08 00 BC 0C 80 17 00 00 00 00 00 00 48 [00:23:06]Write i2c OK [00:23:06]MH_I2C_Read... [00:23:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:23:07]Read from MH i2c: E2 [00:23:07]MH_I2C_Read... [00:23:07]Read from MH i2c: E2 FD 00 [00:23:07]MH_I2C_Read... [00:23:07]Read from MH i2c: E2 FD 00 BC 0C 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 5A [00:23:07]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:23:07]wFMCommunicate OK [00:23:07]wFMCommunicate request_size=4 [00:23:07]MH_SAM_APDU [00:23:07]CAPDU: 80 17 00 00 [00:23:07]Write to MH i2c: E2 08 00 BD 0C 80 17 00 00 00 00 00 00 49 [00:23:07]Write i2c OK [00:23:07]MH_I2C_Read... [00:23:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:23:07]Read from MH i2c: E2 [00:23:07]MH_I2C_Read... [00:23:07]Read from MH i2c: E2 FD 00 [00:23:07]MH_I2C_Read... [00:23:07]Read from MH i2c: E2 FD 00 BD 0C 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 D5 [00:23:07]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:23:07]wFMCommunicate OK [00:23:07]wFMCommunicate request_size=4 [00:23:07]MH_SAM_APDU [00:23:07]CAPDU: 80 17 00 00 [00:23:07]Write to MH i2c: E2 08 00 BE 0C 80 17 00 00 00 00 00 00 4A [00:23:07]Write i2c OK [00:23:07]MH_I2C_Read... [00:23:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:23:07]Read from MH i2c: E2 [00:23:07]MH_I2C_Read... [00:23:07]Read from MH i2c: E2 E2 00 [00:23:07]MH_I2C_Read... [00:23:07]Read from MH i2c: E2 E2 00 BE 0C 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 28 [00:23:07]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:23:07]wFMCommunicate OK [00:23:07]SAM_PROTO_GetFMData done [00:23:07]requested_item fm.sale_refund.total is exist - process it [00:23:07]requested_item fm.buy.total is exist - process it [00:23:07]requested_item shift.sale.total is exist - process it [00:23:07]SAM_PROTO_GetShiftData [00:23:07]wFMCommunicate request_size=4 [00:23:07]MH_SAM_APDU [00:23:07]CAPDU: 80 13 02 00 [00:23:07]Write to MH i2c: E2 08 00 BF 0C 80 13 02 00 00 00 00 00 49 [00:23:07]Write i2c OK [00:23:07]MH_I2C_Read... [00:23:08]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:23:08]Read from MH i2c: E2 [00:23:08]MH_I2C_Read... [00:23:08]Read from MH i2c: E2 FD 00 [00:23:08]MH_I2C_Read... [00:23:08]Read from MH i2c: E2 FD 00 BF 0C 00 BC 04 AA 04 B8 04 6E 04 04 00 F6 00 00 00 69 04 9E 00 6F 04 04 00 EA 00 00 00 B1 04 04 00 3F CA 92 01 70 04 04 00 24 3F 46 01 72 04 03 00 1B 8B 4C 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 2A C8 2A EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AD 90 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0C 00 00 00 B1 04 03 00 04 53 2B 70 04 03 00 04 53 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EA 99 04 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 68 [00:23:08]RAPDU: BC 04 AA 04 B8 04 6E 04 04 00 F6 00 00 00 69 04 9E 00 6F 04 04 00 EA 00 00 00 B1 04 04 00 3F CA 92 01 70 04 04 00 24 3F 46 01 72 04 03 00 1B 8B 4C 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 2A C8 2A EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AD 90 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 0C 00 00 00 B1 04 03 00 04 53 2B 70 04 03 00 04 53 2B 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 EA 99 04 EF 03 09 00 F6 03 01 00 00 F7 03 90 00 [00:23:08]wFMCommunicate OK [00:23:08]wFMCommunicate request_size=4 [00:23:08]MH_SAM_APDU [00:23:08]CAPDU: 80 17 00 00 [00:23:08]Write to MH i2c: E2 08 00 C0 0C 80 17 00 00 00 00 00 00 4C [00:23:08]Write i2c OK [00:23:08]MH_I2C_Read... [00:23:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:23:08]Read from MH i2c: E2 [00:23:08]MH_I2C_Read... [00:23:08]Read from MH i2c: E2 FD 00 [00:23:08]MH_I2C_Read... [00:23:08]Read from MH i2c: E2 FD 00 C0 0C 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 2A 62 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 90 00 82 [00:23:08]RAPDU: 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 2A 62 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 90 00 [00:23:08]wFMCommunicate OK [00:23:08]wFMCommunicate request_size=4 [00:23:08]MH_SAM_APDU [00:23:08]CAPDU: 80 17 00 00 [00:23:08]Write to MH i2c: E2 08 00 C1 0C 80 17 00 00 00 00 00 00 4D [00:23:08]Write i2c OK [00:23:08]MH_I2C_Read... [00:23:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:23:08]Read from MH i2c: E2 [00:23:08]MH_I2C_Read... [00:23:08]Read from MH i2c: E2 FD 00 [00:23:08]MH_I2C_Read... [00:23:08]Read from MH i2c: E2 FD 00 C1 0C 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 90 00 76 [00:23:08]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 90 00 [00:23:08]wFMCommunicate OK [00:23:08]wFMCommunicate request_size=4 [00:23:08]MH_SAM_APDU [00:23:08]CAPDU: 80 17 00 00 [00:23:08]Write to MH i2c: E2 08 00 C2 0C 80 17 00 00 00 00 00 00 4E [00:23:08]Write i2c OK [00:23:08]MH_I2C_Read... [00:23:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:23:08]Read from MH i2c: E2 [00:23:08]MH_I2C_Read... [00:23:08]Read from MH i2c: E2 FD 00 [00:23:08]MH_I2C_Read... [00:23:09]Read from MH i2c: E2 FD 00 C2 0C 00 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 CF [00:23:09]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [00:23:09]wFMCommunicate OK [00:23:09]wFMCommunicate request_size=4 [00:23:09]MH_SAM_APDU [00:23:09]CAPDU: 80 17 00 00 [00:23:09]Write to MH i2c: E2 08 00 C3 0C 80 17 00 00 00 00 00 00 4F [00:23:09]Write i2c OK [00:23:09]MH_I2C_Read... [00:23:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 214! [00:23:09]Read from MH i2c: E2 [00:23:09]MH_I2C_Read... [00:23:09]Read from MH i2c: E2 D9 00 [00:23:09]MH_I2C_Read... [00:23:09]Read from MH i2c: E2 D9 00 C3 0C 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 2E [00:23:09]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:23:09]wFMCommunicate OK [00:23:09]SAM_PROTO_GetShiftData done [00:23:09]requested_item shift.sale.total_cash is exist - process it [00:23:09]requested_item shift.sale_refund.total is exist - process it [00:23:09]requested_item shift.sale_refund.total_cash is exist - process it [00:23:09]requested_item shift.buy.total is exist - process it [00:23:09]requested_item shift.buy.total_cash is exist - process it [00:23:09]produce_requested_data done [00:23:09]produce_requested_data return {"fm.sale.total":52662740.33,"fm.sale_refund.total":2500677.00,"fm.buy.total":0.00,"shift.sale.total":263972.47,"shift.sale.total_cash":213809.00,"shift.sale_refund.total":28393.00,"shift.sale_refund.total_cash":28393.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:23:09]process_action_free get_value [00:23:09]json_value_free [00:23:09]json_value_free done [00:23:09]process_json_proto returns [00:23:09]Send response to host [00:23:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":52662740.33,"fm.sale_refund.total":2500677.00,"fm.buy.total":0.00,"shift.sale.total":263972.47,"shift.sale.total_cash":213809.00,"shift.sale_refund.total":28393.00,"shift.sale_refund.total_cash":28393.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:23:09]free response buf [00:23:09]execute_script done [00:23:09]execute_script returns [00:23:09]free content buf [00:23:09]Sock 9.Close socket [00:23:09]Sock 9.Thread stoped [00:23:09]accept exits with 7 [00:23:09]New connection [00:23:09]New thread 3067084132 created [00:23:09]Thread 3067227492 joined [00:23:09]Waiting for new connection... [00:23:09] Sock 7.Parse request [00:23:09]Sock 7.Check first char [00:23:09]Sock 7.First char is OK [00:23:09]request: POST /json_proto HTTP/1.0 [00:23:09]Method: POST [00:23:09]URL: /json_proto [00:23:09]Method is POST - this is cgi request [00:23:09]url: /json_proto [00:23:09]query_string will be loaded in cgi processing [00:23:09]execute_cgi json_proto POST (null) [00:23:09]execute_cgi path=json_proto method=POST [00:23:09]POST find Content-Length [00:23:09]Host: 172.17.36.132:8080 [00:23:09]Content-Length: 271 [00:23:09]Content-Type: application/json [00:23:09] [00:23:09]POST finish read [00:23:09]Found Content-Length = 271 [00:23:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0418\u0441\u043C\u0430\u043D\u0430\u043B\u0438\u0435\u0432 \u0414. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:23:09]execute_script... [00:23:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0418\u0441\u043C\u0430\u043D\u0430\u043B\u0438\u0435\u0432 \u0414. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:23:09]POST & json_proto [00:23:09]process_json_proto [00:23:09]json parsed OK: [00:23:09]protocol is kg_v1.0 [00:23:09]action value=open_shift [00:23:09]process_action open_shift [00:23:09]cmd_open_shift [00:23:09]MH_GetDate [00:23:09]Write to MH i2c: F0 00 00 C4 0C BF [00:23:09]Write i2c OK [00:23:09]MH_I2C_Read... [00:23:09]Read from MH i2c: F0 [00:23:09]MH_I2C_Read... [00:23:09]Read from MH i2c: F0 09 00 [00:23:09]MH_I2C_Read... [00:23:09]Read from MH i2c: F0 09 00 C4 0C 00 6E 5E 5E 66 B2 22 B0 64 40 [00:23:09]GetLastDocTimeStamp 1717459798 [00:23:09]current date 1717460590 [00:23:09]FM_GetShiftState [00:23:09]SAM_PROTO_GetShiftState [00:23:09]wFMCommunicate request_size=4 [00:23:09]MH_SAM_APDU [00:23:09]CAPDU: 80 13 01 00 [00:23:09]Write to MH i2c: E2 08 00 C5 0C 80 13 01 00 00 00 00 00 4E [00:23:09]Write i2c OK [00:23:09]MH_I2C_Read... [00:23:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:23:09]Read from MH i2c: E2 [00:23:09]MH_I2C_Read... [00:23:09]Read from MH i2c: E2 0E 00 [00:23:09]MH_I2C_Read... [00:23:09]Read from MH i2c: E2 0E 00 C5 0C 00 09 00 00 00 00 00 00 00 00 00 00 90 00 59 [00:23:09]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:23:09]wFMCommunicate OK [00:23:09]SAM_PROTO_GetShiftState done [00:23:09]FM_GetShiftState done [00:23:09]KKMCreateOpenShiftDocument [00:23:09]Load OK [00:23:09]Malloc new data [00:23:09]MH_GetDate [00:23:09]Write to MH i2c: F0 00 00 C6 0C C1 [00:23:09]Write i2c OK [00:23:09]MH_I2C_Read... [00:23:09]Read from MH i2c: F0 [00:23:09]MH_I2C_Read... [00:23:09]Read from MH i2c: F0 09 00 [00:23:09]MH_I2C_Read... [00:23:09]Read from MH i2c: F0 09 00 C6 0C 00 6E 5E 5E 66 B2 22 B0 64 42 [00:23:09]Malloc new data [00:23:09]KKMCreateOpenShiftDocument OK [00:23:09]KKMSetOpenShiftData OK [00:23:09]ProcessDocumentItem done err = 0, tmpTLVsize=211 [00:23:09]tlvbuf is 00A4ED90 [00:23:09]KKMLoadAndSignOpenShiftData [00:23:09]SAM_PROTO_ProcessDocument [00:23:09]wFMCommunicate request_size=9 [00:23:09]MH_SAM_APDU [00:23:09]CAPDU: 80 15 01 00 04 02 00 D3 00 [00:23:09]Write to MH i2c: E2 0C 00 C7 0C 80 15 01 00 04 00 02 00 D3 00 00 00 2F [00:23:09]Write i2c OK [00:23:09]MH_I2C_Read... [00:23:09]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:23:09]Read from MH i2c: E2 [00:23:09]MH_I2C_Read... [00:23:09]Read from MH i2c: E2 03 00 [00:23:09]MH_I2C_Read... [00:23:09]Read from MH i2c: E2 03 00 C7 0C 00 90 00 47 [00:23:09]RAPDU: 90 00 [00:23:09]wFMCommunicate OK [00:23:09]wFMCommunicate request_size=23 [00:23:09]MH_SAM_APDU [00:23:09]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:23:09]Write to MH i2c: E2 1A 00 C8 0C 80 15 02 00 12 00 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 00 00 49 [00:23:09]Write i2c OK [00:23:09]MH_I2C_Read... [00:23:09]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:23:09]Read from MH i2c: E2 [00:23:09]MH_I2C_Read... [00:23:09]Read from MH i2c: E2 03 00 [00:23:09]MH_I2C_Read... [00:23:09]Read from MH i2c: E2 03 00 C8 0C 00 90 00 48 [00:23:09]RAPDU: 90 00 [00:23:09]wFMCommunicate OK [00:23:09]wFMCommunicate request_size=34 [00:23:09]MH_SAM_APDU [00:23:09]CAPDU: 80 15 02 00 1D FD 03 19 00 D0 98 D1 81 D0 BC D0 B0 D0 BD D0 B0 D0 BB D0 B8 D0 B5 D0 B2 20 D0 94 2E 20 [00:23:09]Write to MH i2c: E2 25 00 C9 0C 80 15 02 00 1D 00 FD 03 19 00 D0 98 D1 81 D0 BC D0 B0 D0 BD D0 B0 D0 BB D0 B8 D0 B5 D0 B2 20 D0 94 2E 20 00 00 67 [00:23:09]Write i2c OK [00:23:09]MH_I2C_Read... [00:23:09]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:23:09]Read from MH i2c: E2 [00:23:09]MH_I2C_Read... [00:23:09]Read from MH i2c: E2 03 00 [00:23:09]MH_I2C_Read... [00:23:09]Read from MH i2c: E2 03 00 C9 0C 00 90 00 49 [00:23:09]RAPDU: 90 00 [00:23:09]wFMCommunicate OK [00:23:09]wFMCommunicate request_size=96 [00:23:09]MH_SAM_APDU [00:23:09]CAPDU: 80 15 02 00 5B F1 03 57 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 91 D0 B0 D0 BB D1 8B D0 BA D1 87 D1 8B 2C 20 D1 83 D0 BB 2E 20 D0 90 D0 B1 D0 B4 D1 80 D0 B0 D1 85 D0 BC D0 B0 D0 BD D0 BE D0 B2 D0 B0 20 33 32 35 20 D0 91 2C 20 34 32 2E 34 36 32 37 36 31 2C 20 37 36 2E 32 31 34 39 33 31 [00:23:09]Write to MH i2c: E2 63 00 CA 0C 80 15 02 00 5B 00 F1 03 57 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 91 D0 B0 D0 BB D1 8B D0 BA D1 87 D1 8B 2C 20 D1 83 D0 BB 2E 20 D0 90 D0 B1 D0 B4 D1 80 D0 B0 D1 85 D0 BC D0 B0 D0 BD D0 BE D0 B2 D0 B0 20 33 32 35 20 D0 91 2C 20 34 32 2E 34 36 32 37 36 31 2C 20 37 36 2E 32 31 34 39 33 31 00 00 42 [00:23:09]Write i2c OK [00:23:09]MH_I2C_Read... [00:23:09]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:23:09]Read from MH i2c: E2 [00:23:09]MH_I2C_Read... [00:23:09]Read from MH i2c: E2 03 00 [00:23:09]MH_I2C_Read... [00:23:09]Read from MH i2c: E2 03 00 CA 0C 00 90 00 4A [00:23:09]RAPDU: 90 00 [00:23:09]wFMCommunicate OK [00:23:09]wFMCommunicate request_size=50 [00:23:09]MH_SAM_APDU [00:23:09]CAPDU: 80 15 02 00 2D A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 36 32 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 [00:23:09]Write to MH i2c: E2 35 00 CB 0C 80 15 02 00 2D 00 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 36 32 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 00 00 CE [00:23:09]Write i2c OK [00:23:09]MH_I2C_Read... [00:23:09]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:23:09]Read from MH i2c: E2 [00:23:09]MH_I2C_Read... [00:23:09]Read from MH i2c: E2 03 00 [00:23:09]MH_I2C_Read... [00:23:09]Read from MH i2c: E2 03 00 CB 0C 00 90 00 4B [00:23:09]RAPDU: 90 00 [00:23:09]wFMCommunicate OK [00:23:09]wFMCommunicate request_size=13 [00:23:09]MH_SAM_APDU [00:23:09]CAPDU: 80 15 02 00 08 F4 03 04 00 6E 5E 5E 66 [00:23:10]Write to MH i2c: E2 10 00 CC 0C 80 15 02 00 08 00 F4 03 04 00 6E 5E 5E 66 00 00 F3 [00:23:10]Write i2c OK [00:23:10]MH_I2C_Read... [00:23:10]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:23:10]Read from MH i2c: E2 [00:23:10]MH_I2C_Read... [00:23:10]Read from MH i2c: E2 03 00 [00:23:10]MH_I2C_Read... [00:23:10]Read from MH i2c: E2 03 00 CC 0C 00 90 00 4C [00:23:10]RAPDU: 90 00 [00:23:10]wFMCommunicate OK [00:23:10]wFMCommunicate request_size=25 [00:23:10]MH_SAM_APDU [00:23:10]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 [00:23:10]Write to MH i2c: E2 1C 00 CD 0C 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 00 00 C2 [00:23:10]Write i2c OK [00:23:10]MH_I2C_Read... [00:23:10]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:23:10]Read from MH i2c: E2 [00:23:10]MH_I2C_Read... [00:23:10]Read from MH i2c: E2 03 00 [00:23:10]MH_I2C_Read... [00:23:10]Read from MH i2c: E2 03 00 CD 0C 00 90 00 4D [00:23:10]RAPDU: 90 00 [00:23:10]wFMCommunicate OK [00:23:10]wFMCommunicate request_size=4 [00:23:10]MH_SAM_APDU [00:23:10]CAPDU: 80 15 03 00 [00:23:10]Write to MH i2c: E2 08 00 CE 0C 80 15 03 00 00 00 00 00 5B [00:23:10]Write i2c OK [00:23:10]MH_I2C_Read... [00:23:10]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:23:10]Read from MH i2c: E2 [00:23:10]MH_I2C_Read... [00:23:10]Read from MH i2c: E2 38 00 [00:23:10]MH_I2C_Read... [00:23:10]Read from MH i2c: E2 38 00 CE 0C 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 96 0B 01 00 0E 04 04 00 45 01 00 00 35 04 06 00 C5 A4 CF EB 4C 1A 90 00 90 [00:23:10]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 96 0B 01 00 0E 04 04 00 45 01 00 00 35 04 06 00 C5 A4 CF EB 4C 1A 90 00 [00:23:10]wFMCommunicate OK [00:23:10]SAM_PROTO_ProcessDocument answer len = 51 [00:23:10]SAM_PROTO_ProcessDocument done [00:23:10]SetTLVBufToDocument [00:23:10]Processing tag 1209 (04B9) [00:23:10]Malloc new data [00:23:10]Processing tag 1041 (0411) [00:23:10]Processing tag 1040 (0410) [00:23:10]Malloc new data [00:23:10]Processing tag 1038 (040E) [00:23:10]Malloc new data [00:23:10]Processing tag 1077 (0435) [00:23:10]Malloc new data [00:23:10]SetTLVBufToDocument err=0 [00:23:10]KKMLoadAndSignOpenShiftData store KKM data [00:23:10]KKMLoadAndSignOpenShiftData err=0 [00:23:10]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Исманалиев Д. Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 Место: АЗС № 62 "Партнер Нефть" 04.06.2024 00:23 Смена: 325 РНМ: 0000000000098096 ЗНМ: 0300000181 ФД: 68502 ФМ: 0000000000965400 ФПД: 217311653612570 [00:23:10]StoreToDocumentArchive [00:23:10]shift 325 fd 68502 [00:23:10]Create dir for shift 0325 [00:23:10]save to /storage/0325/doc_00068502 [00:23:10]save last doc name /storage/0325/doc_00068502 to /storage/kkm_last_doc_name [00:23:10]save OK [00:23:10]Clear old archive folders... [00:23:10]Remove dir /storage/0324 [00:23:10]opendir ok [00:23:10]file . [00:23:10]file .. [00:23:10]file doc_00068254 [00:23:10]remove file /storage/0324/doc_00068254 [00:23:10]file doc_00068255 [00:23:10]remove file /storage/0324/doc_00068255 [00:23:10]file doc_00068256 [00:23:10]remove file /storage/0324/doc_00068256 [00:23:10]file doc_00068257 [00:23:10]remove file /storage/0324/doc_00068257 [00:23:10]file doc_00068258 [00:23:10]remove file /storage/0324/doc_00068258 [00:23:10]file doc_00068259 [00:23:10]remove file /storage/0324/doc_00068259 [00:23:10]file doc_00068260 [00:23:10]remove file /storage/0324/doc_00068260 [00:23:10]file doc_00068261 [00:23:10]remove file /storage/0324/doc_00068261 [00:23:10]file doc_00068262 [00:23:10]remove file /storage/0324/doc_00068262 [00:23:10]file doc_00068263 [00:23:10]remove file /storage/0324/doc_00068263 [00:23:10]file doc_00068264 [00:23:10]remove file /storage/0324/doc_00068264 [00:23:10]file doc_00068265 [00:23:10]remove file /storage/0324/doc_00068265 [00:23:10]file doc_00068266 [00:23:10]remove file /storage/0324/doc_00068266 [00:23:10]file doc_00068267 [00:23:10]remove file /storage/0324/doc_00068267 [00:23:10]file doc_00068268 [00:23:10]remove file /storage/0324/doc_00068268 [00:23:10]file doc_00068269 [00:23:10]remove file /storage/0324/doc_00068269 [00:23:10]file doc_00068270 [00:23:10]remove file /storage/0324/doc_00068270 [00:23:10]file doc_00068271 [00:23:10]remove file /storage/0324/doc_00068271 [00:23:10]OFD Sender: No OFD packet to send [00:23:10]file doc_00068272 [00:23:10]remove file /storage/0324/doc_00068272 [00:23:10]file doc_00068273 [00:23:10]remove file /storage/0324/doc_00068273 [00:23:10]file doc_00068274 [00:23:10]remove file /storage/0324/doc_00068274 [00:23:10]file doc_00068275 [00:23:10]remove file /storage/0324/doc_00068275 [00:23:10]file doc_00068276 [00:23:10]remove file /storage/0324/doc_00068276 [00:23:10]file doc_00068277 [00:23:10]remove file /storage/0324/doc_00068277 [00:23:10]file doc_00068278 [00:23:10]remove file /storage/0324/doc_00068278 [00:23:10]file doc_00068279 [00:23:10]remove file /storage/0324/doc_00068279 [00:23:10]file doc_00068280 [00:23:10]remove file /storage/0324/doc_00068280 [00:23:10]file doc_00068281 [00:23:10]remove file /storage/0324/doc_00068281 [00:23:10]file doc_00068282 [00:23:10]remove file /storage/0324/doc_00068282 [00:23:10]file doc_00068283 [00:23:10]remove file /storage/0324/doc_00068283 [00:23:10]file doc_00068284 [00:23:10]remove file /storage/0324/doc_00068284 [00:23:10]file doc_00068285 [00:23:10]remove file /storage/0324/doc_00068285 [00:23:10]file doc_00068286 [00:23:10]remove file /storage/0324/doc_00068286 [00:23:10]file doc_00068287 [00:23:10]remove file /storage/0324/doc_00068287 [00:23:10]file doc_00068288 [00:23:10]remove file /storage/0324/doc_00068288 [00:23:10]file doc_00068289 [00:23:10]remove file /storage/0324/doc_00068289 [00:23:10]file doc_00068290 [00:23:10]remove file /storage/0324/doc_00068290 [00:23:10]file doc_00068291 [00:23:10]remove file /storage/0324/doc_00068291 [00:23:10]file doc_00068292 [00:23:10]remove file /storage/0324/doc_00068292 [00:23:10]file doc_00068293 [00:23:10]remove file /storage/0324/doc_00068293 [00:23:10]file doc_00068294 [00:23:10]remove file /storage/0324/doc_00068294 [00:23:10]file doc_00068295 [00:23:10]remove file /storage/0324/doc_00068295 [00:23:10]file doc_00068296 [00:23:10]remove file /storage/0324/doc_00068296 [00:23:10]file doc_00068297 [00:23:10]remove file /storage/0324/doc_00068297 [00:23:10]file doc_00068298 [00:23:10]remove file /storage/0324/doc_00068298 [00:23:10]file doc_00068299 [00:23:10]remove file /storage/0324/doc_00068299 [00:23:10]file doc_00068300 [00:23:10]remove file /storage/0324/doc_00068300 [00:23:10]file doc_00068301 [00:23:10]remove file /storage/0324/doc_00068301 [00:23:10]file doc_00068302 [00:23:10]remove file /storage/0324/doc_00068302 [00:23:10]file doc_00068303 [00:23:10]remove file /storage/0324/doc_00068303 [00:23:10]file doc_00068304 [00:23:10]remove file /storage/0324/doc_00068304 [00:23:10]file doc_00068305 [00:23:10]remove file /storage/0324/doc_00068305 [00:23:10]file doc_00068306 [00:23:10]remove file /storage/0324/doc_00068306 [00:23:10]file doc_00068307 [00:23:10]remove file /storage/0324/doc_00068307 [00:23:10]file doc_00068308 [00:23:10]remove file /storage/0324/doc_00068308 [00:23:10]file doc_00068309 [00:23:10]remove file /storage/0324/doc_00068309 [00:23:10]file doc_00068310 [00:23:10]remove file /storage/0324/doc_00068310 [00:23:10]file doc_00068311 [00:23:10]remove file /storage/0324/doc_00068311 [00:23:10]file doc_00068312 [00:23:10]remove file /storage/0324/doc_00068312 [00:23:10]file doc_00068313 [00:23:10]remove file /storage/0324/doc_00068313 [00:23:10]file doc_00068314 [00:23:10]remove file /storage/0324/doc_00068314 [00:23:10]file doc_00068315 [00:23:10]remove file /storage/0324/doc_00068315 [00:23:10]file doc_00068316 [00:23:10]remove file /storage/0324/doc_00068316 [00:23:10]file doc_00068317 [00:23:10]remove file /storage/0324/doc_00068317 [00:23:10]file doc_00068318 [00:23:10]remove file /storage/0324/doc_00068318 [00:23:10]file doc_00068319 [00:23:10]remove file /storage/0324/doc_00068319 [00:23:10]file doc_00068320 [00:23:10]remove file /storage/0324/doc_00068320 [00:23:10]file doc_00068321 [00:23:10]remove file /storage/0324/doc_00068321 [00:23:10]file doc_00068322 [00:23:10]remove file /storage/0324/doc_00068322 [00:23:10]file doc_00068323 [00:23:10]remove file /storage/0324/doc_00068323 [00:23:10]file doc_00068324 [00:23:10]remove file /storage/0324/doc_00068324 [00:23:10]file doc_00068325 [00:23:10]remove file /storage/0324/doc_00068325 [00:23:10]file doc_00068326 [00:23:10]remove file /storage/0324/doc_00068326 [00:23:10]file doc_00068327 [00:23:10]remove file /storage/0324/doc_00068327 [00:23:10]file doc_00068328 [00:23:10]remove file /storage/0324/doc_00068328 [00:23:10]file doc_00068329 [00:23:10]remove file /storage/0324/doc_00068329 [00:23:10]file doc_00068330 [00:23:10]remove file /storage/0324/doc_00068330 [00:23:10]file doc_00068331 [00:23:10]remove file /storage/0324/doc_00068331 [00:23:10]file doc_00068332 [00:23:10]remove file /storage/0324/doc_00068332 [00:23:10]file doc_00068333 [00:23:10]remove file /storage/0324/doc_00068333 [00:23:10]file doc_00068334 [00:23:10]remove file /storage/0324/doc_00068334 [00:23:10]file doc_00068335 [00:23:10]remove file /storage/0324/doc_00068335 [00:23:10]file doc_00068336 [00:23:10]remove file /storage/0324/doc_00068336 [00:23:10]file doc_00068337 [00:23:10]remove file /storage/0324/doc_00068337 [00:23:10]file doc_00068338 [00:23:10]remove file /storage/0324/doc_00068338 [00:23:10]file doc_00068339 [00:23:10]remove file /storage/0324/doc_00068339 [00:23:10]file doc_00068340 [00:23:10]remove file /storage/0324/doc_00068340 [00:23:10]file doc_00068341 [00:23:10]remove file /storage/0324/doc_00068341 [00:23:10]file doc_00068342 [00:23:10]remove file /storage/0324/doc_00068342 [00:23:10]file doc_00068343 [00:23:10]remove file /storage/0324/doc_00068343 [00:23:10]file doc_00068344 [00:23:10]remove file /storage/0324/doc_00068344 [00:23:10]file doc_00068345 [00:23:10]remove file /storage/0324/doc_00068345 [00:23:10]file doc_00068346 [00:23:10]remove file /storage/0324/doc_00068346 [00:23:10]file doc_00068347 [00:23:10]remove file /storage/0324/doc_00068347 [00:23:10]file doc_00068348 [00:23:10]remove file /storage/0324/doc_00068348 [00:23:10]file doc_00068349 [00:23:10]remove file /storage/0324/doc_00068349 [00:23:10]file doc_00068350 [00:23:10]remove file /storage/0324/doc_00068350 [00:23:10]file doc_00068351 [00:23:10]remove file /storage/0324/doc_00068351 [00:23:10]file doc_00068352 [00:23:10]remove file /storage/0324/doc_00068352 [00:23:10]file doc_00068353 [00:23:10]remove file /storage/0324/doc_00068353 [00:23:10]file doc_00068354 [00:23:10]remove file /storage/0324/doc_00068354 [00:23:10]file doc_00068355 [00:23:10]remove file /storage/0324/doc_00068355 [00:23:10]file doc_00068356 [00:23:10]remove file /storage/0324/doc_00068356 [00:23:10]file doc_00068357 [00:23:10]remove file /storage/0324/doc_00068357 [00:23:10]file doc_00068358 [00:23:10]remove file /storage/0324/doc_00068358 [00:23:10]file doc_00068359 [00:23:10]remove file /storage/0324/doc_00068359 [00:23:10]file doc_00068360 [00:23:10]remove file /storage/0324/doc_00068360 [00:23:10]file doc_00068361 [00:23:10]remove file /storage/0324/doc_00068361 [00:23:10]file doc_00068362 [00:23:10]remove file /storage/0324/doc_00068362 [00:23:10]file doc_00068363 [00:23:10]remove file /storage/0324/doc_00068363 [00:23:10]file doc_00068364 [00:23:10]remove file /storage/0324/doc_00068364 [00:23:11]file doc_00068365 [00:23:11]remove file /storage/0324/doc_00068365 [00:23:11]file doc_00068366 [00:23:11]remove file /storage/0324/doc_00068366 [00:23:11]file doc_00068367 [00:23:11]remove file /storage/0324/doc_00068367 [00:23:11]file doc_00068368 [00:23:11]remove file /storage/0324/doc_00068368 [00:23:11]file doc_00068369 [00:23:11]remove file /storage/0324/doc_00068369 [00:23:11]file doc_00068370 [00:23:11]remove file /storage/0324/doc_00068370 [00:23:11]file doc_00068371 [00:23:11]remove file /storage/0324/doc_00068371 [00:23:11]file doc_00068372 [00:23:11]remove file /storage/0324/doc_00068372 [00:23:11]file doc_00068373 [00:23:11]remove file /storage/0324/doc_00068373 [00:23:11]file doc_00068374 [00:23:11]remove file /storage/0324/doc_00068374 [00:23:11]file doc_00068375 [00:23:11]remove file /storage/0324/doc_00068375 [00:23:11]file doc_00068376 [00:23:11]remove file /storage/0324/doc_00068376 [00:23:11]file doc_00068377 [00:23:11]remove file /storage/0324/doc_00068377 [00:23:11]file doc_00068378 [00:23:11]remove file /storage/0324/doc_00068378 [00:23:11]file doc_00068379 [00:23:11]remove file /storage/0324/doc_00068379 [00:23:11]file doc_00068380 [00:23:11]remove file /storage/0324/doc_00068380 [00:23:11]file doc_00068381 [00:23:11]remove file /storage/0324/doc_00068381 [00:23:11]file doc_00068382 [00:23:11]remove file /storage/0324/doc_00068382 [00:23:11]file doc_00068383 [00:23:11]remove file /storage/0324/doc_00068383 [00:23:11]file doc_00068384 [00:23:11]remove file /storage/0324/doc_00068384 [00:23:11]file doc_00068385 [00:23:11]remove file /storage/0324/doc_00068385 [00:23:11]file doc_00068386 [00:23:11]remove file /storage/0324/doc_00068386 [00:23:11]file doc_00068387 [00:23:11]remove file /storage/0324/doc_00068387 [00:23:11]file doc_00068388 [00:23:11]remove file /storage/0324/doc_00068388 [00:23:11]file doc_00068389 [00:23:11]remove file /storage/0324/doc_00068389 [00:23:11]file doc_00068390 [00:23:11]remove file /storage/0324/doc_00068390 [00:23:11]file doc_00068391 [00:23:11]remove file /storage/0324/doc_00068391 [00:23:11]file doc_00068392 [00:23:11]remove file /storage/0324/doc_00068392 [00:23:11]file doc_00068393 [00:23:11]remove file /storage/0324/doc_00068393 [00:23:11]file doc_00068394 [00:23:11]remove file /storage/0324/doc_00068394 [00:23:11]file doc_00068395 [00:23:11]remove file /storage/0324/doc_00068395 [00:23:11]file doc_00068396 [00:23:11]remove file /storage/0324/doc_00068396 [00:23:11]file doc_00068397 [00:23:11]remove file /storage/0324/doc_00068397 [00:23:11]file doc_00068398 [00:23:11]remove file /storage/0324/doc_00068398 [00:23:11]file doc_00068399 [00:23:11]remove file /storage/0324/doc_00068399 [00:23:11]file doc_00068400 [00:23:11]remove file /storage/0324/doc_00068400 [00:23:11]file doc_00068401 [00:23:11]remove file /storage/0324/doc_00068401 [00:23:11]file doc_00068402 [00:23:11]remove file /storage/0324/doc_00068402 [00:23:11]file doc_00068403 [00:23:11]remove file /storage/0324/doc_00068403 [00:23:11]file doc_00068404 [00:23:11]remove file /storage/0324/doc_00068404 [00:23:11]file doc_00068405 [00:23:11]remove file /storage/0324/doc_00068405 [00:23:11]file doc_00068406 [00:23:11]remove file /storage/0324/doc_00068406 [00:23:11]file doc_00068407 [00:23:11]remove file /storage/0324/doc_00068407 [00:23:11]file doc_00068408 [00:23:11]remove file /storage/0324/doc_00068408 [00:23:11]file doc_00068409 [00:23:11]remove file /storage/0324/doc_00068409 [00:23:11]file doc_00068410 [00:23:11]remove file /storage/0324/doc_00068410 [00:23:11]file doc_00068411 [00:23:11]remove file /storage/0324/doc_00068411 [00:23:11]file doc_00068412 [00:23:11]remove file /storage/0324/doc_00068412 [00:23:11]file doc_00068413 [00:23:11]remove file /storage/0324/doc_00068413 [00:23:11]file doc_00068414 [00:23:11]remove file /storage/0324/doc_00068414 [00:23:11]file doc_00068415 [00:23:11]remove file /storage/0324/doc_00068415 [00:23:11]file doc_00068416 [00:23:11]remove file /storage/0324/doc_00068416 [00:23:11]file doc_00068417 [00:23:11]remove file /storage/0324/doc_00068417 [00:23:11]file doc_00068418 [00:23:11]remove file /storage/0324/doc_00068418 [00:23:11]file doc_00068419 [00:23:11]remove file /storage/0324/doc_00068419 [00:23:11]file doc_00068420 [00:23:11]remove file /storage/0324/doc_00068420 [00:23:11]file doc_00068421 [00:23:11]remove file /storage/0324/doc_00068421 [00:23:11]file doc_00068422 [00:23:11]remove file /storage/0324/doc_00068422 [00:23:11]file doc_00068423 [00:23:11]remove file /storage/0324/doc_00068423 [00:23:11]file doc_00068424 [00:23:11]remove file /storage/0324/doc_00068424 [00:23:11]file doc_00068425 [00:23:11]remove file /storage/0324/doc_00068425 [00:23:11]file doc_00068426 [00:23:11]remove file /storage/0324/doc_00068426 [00:23:11]file doc_00068427 [00:23:11]remove file /storage/0324/doc_00068427 [00:23:11]file doc_00068428 [00:23:11]remove file /storage/0324/doc_00068428 [00:23:11]file doc_00068429 [00:23:11]remove file /storage/0324/doc_00068429 [00:23:11]file doc_00068430 [00:23:11]remove file /storage/0324/doc_00068430 [00:23:11]file doc_00068431 [00:23:11]remove file /storage/0324/doc_00068431 [00:23:11]file doc_00068432 [00:23:11]remove file /storage/0324/doc_00068432 [00:23:11]file doc_00068433 [00:23:11]remove file /storage/0324/doc_00068433 [00:23:11]file doc_00068434 [00:23:11]remove file /storage/0324/doc_00068434 [00:23:11]file doc_00068435 [00:23:11]remove file /storage/0324/doc_00068435 [00:23:11]file doc_00068436 [00:23:11]remove file /storage/0324/doc_00068436 [00:23:11]file doc_00068437 [00:23:11]remove file /storage/0324/doc_00068437 [00:23:11]file doc_00068438 [00:23:11]remove file /storage/0324/doc_00068438 [00:23:11]file doc_00068439 [00:23:11]remove file /storage/0324/doc_00068439 [00:23:11]file doc_00068440 [00:23:11]remove file /storage/0324/doc_00068440 [00:23:11]file doc_00068441 [00:23:11]remove file /storage/0324/doc_00068441 [00:23:11]file doc_00068442 [00:23:11]remove file /storage/0324/doc_00068442 [00:23:11]file doc_00068443 [00:23:11]remove file /storage/0324/doc_00068443 [00:23:11]file doc_00068444 [00:23:11]remove file /storage/0324/doc_00068444 [00:23:11]file doc_00068445 [00:23:11]remove file /storage/0324/doc_00068445 [00:23:11]file doc_00068446 [00:23:11]remove file /storage/0324/doc_00068446 [00:23:11]file doc_00068447 [00:23:11]remove file /storage/0324/doc_00068447 [00:23:11]file doc_00068448 [00:23:11]remove file /storage/0324/doc_00068448 [00:23:11]file doc_00068449 [00:23:11]remove file /storage/0324/doc_00068449 [00:23:11]file doc_00068450 [00:23:11]remove file /storage/0324/doc_00068450 [00:23:11]file doc_00068451 [00:23:11]remove file /storage/0324/doc_00068451 [00:23:11]file doc_00068452 [00:23:11]remove file /storage/0324/doc_00068452 [00:23:11]file doc_00068453 [00:23:11]remove file /storage/0324/doc_00068453 [00:23:11]file doc_00068454 [00:23:11]remove file /storage/0324/doc_00068454 [00:23:11]file doc_00068455 [00:23:11]remove file /storage/0324/doc_00068455 [00:23:11]file doc_00068456 [00:23:11]remove file /storage/0324/doc_00068456 [00:23:11]file doc_00068457 [00:23:11]remove file /storage/0324/doc_00068457 [00:23:11]file doc_00068458 [00:23:11]remove file /storage/0324/doc_00068458 [00:23:11]file doc_00068459 [00:23:11]remove file /storage/0324/doc_00068459 [00:23:11]file doc_00068460 [00:23:11]remove file /storage/0324/doc_00068460 [00:23:11]file doc_00068461 [00:23:11]remove file /storage/0324/doc_00068461 [00:23:11]file doc_00068462 [00:23:11]remove file /storage/0324/doc_00068462 [00:23:11]file doc_00068463 [00:23:11]remove file /storage/0324/doc_00068463 [00:23:11]file doc_00068464 [00:23:11]remove file /storage/0324/doc_00068464 [00:23:11]file doc_00068465 [00:23:11]remove file /storage/0324/doc_00068465 [00:23:11]file doc_00068466 [00:23:11]remove file /storage/0324/doc_00068466 [00:23:11]file doc_00068467 [00:23:11]remove file /storage/0324/doc_00068467 [00:23:11]file doc_00068468 [00:23:11]remove file /storage/0324/doc_00068468 [00:23:11]file doc_00068469 [00:23:11]remove file /storage/0324/doc_00068469 [00:23:11]file doc_00068470 [00:23:11]remove file /storage/0324/doc_00068470 [00:23:11]file doc_00068471 [00:23:11]remove file /storage/0324/doc_00068471 [00:23:11]file doc_00068472 [00:23:11]remove file /storage/0324/doc_00068472 [00:23:11]file doc_00068473 [00:23:11]remove file /storage/0324/doc_00068473 [00:23:11]file doc_00068474 [00:23:11]remove file /storage/0324/doc_00068474 [00:23:11]file doc_00068475 [00:23:11]remove file /storage/0324/doc_00068475 [00:23:11]file doc_00068476 [00:23:11]remove file /storage/0324/doc_00068476 [00:23:11]file doc_00068477 [00:23:11]remove file /storage/0324/doc_00068477 [00:23:11]file doc_00068478 [00:23:11]remove file /storage/0324/doc_00068478 [00:23:11]file doc_00068479 [00:23:11]remove file /storage/0324/doc_00068479 [00:23:11]file doc_00068480 [00:23:11]remove file /storage/0324/doc_00068480 [00:23:11]file doc_00068481 [00:23:11]remove file /storage/0324/doc_00068481 [00:23:11]file doc_00068482 [00:23:11]remove file /storage/0324/doc_00068482 [00:23:11]file doc_00068483 [00:23:11]remove file /storage/0324/doc_00068483 [00:23:11]file doc_00068484 [00:23:11]remove file /storage/0324/doc_00068484 [00:23:11]file doc_00068485 [00:23:11]remove file /storage/0324/doc_00068485 [00:23:11]file doc_00068486 [00:23:11]remove file /storage/0324/doc_00068486 [00:23:11]file doc_00068487 [00:23:11]remove file /storage/0324/doc_00068487 [00:23:11]file doc_00068488 [00:23:11]remove file /storage/0324/doc_00068488 [00:23:11]file doc_00068489 [00:23:11]remove file /storage/0324/doc_00068489 [00:23:11]file doc_00068490 [00:23:11]remove file /storage/0324/doc_00068490 [00:23:11]file doc_00068491 [00:23:11]remove file /storage/0324/doc_00068491 [00:23:11]file doc_00068492 [00:23:11]remove file /storage/0324/doc_00068492 [00:23:11]file doc_00068493 [00:23:11]remove file /storage/0324/doc_00068493 [00:23:11]file doc_00068494 [00:23:11]remove file /storage/0324/doc_00068494 [00:23:11]file doc_00068495 [00:23:11]remove file /storage/0324/doc_00068495 [00:23:11]file doc_00068496 [00:23:11]remove file /storage/0324/doc_00068496 [00:23:11]file doc_00068497 [00:23:11]remove file /storage/0324/doc_00068497 [00:23:11]file doc_00068498 [00:23:11]remove file /storage/0324/doc_00068498 [00:23:11]file doc_00068499 [00:23:11]remove file /storage/0324/doc_00068499 [00:23:11]file doc_00068500 [00:23:11]remove file /storage/0324/doc_00068500 [00:23:11]file doc_00068501 [00:23:11]remove file /storage/0324/doc_00068501 [00:23:11]remove dir /storage/0324 [00:23:11]ProcessDocumentItem done err = 0, tmpTLVsize=262 [00:23:11]tlvbuf is 00AD9A80 [00:23:11]SAM_PROTO_ClearQueue [00:23:11]wFMCommunicate request_size=4 [00:23:11]MH_SAM_APDU [00:23:11]CAPDU: 80 09 00 00 [00:23:11]Write to MH i2c: E2 08 00 CF 0C 80 09 00 00 00 00 00 00 4D [00:23:11]Write i2c OK [00:23:11]MH_I2C_Read... [00:23:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:23:11]Read from MH i2c: E2 [00:23:11]MH_I2C_Read... [00:23:11]Read from MH i2c: E2 03 00 [00:23:11]MH_I2C_Read... [00:23:11]Read from MH i2c: E2 03 00 CF 0C 00 90 00 4F [00:23:11]RAPDU: 90 00 [00:23:11]wFMCommunicate OK [00:23:11]SAM_PROTO_ClearQueue done [00:23:11]KKMCreateOFDPacket [00:23:11]OFDProtocolAddRootSTLVToBuf [00:23:11]FM_MakeSignedData [00:23:11]FM_MakeSignedData [00:23:11]SAM_PROTO_SignData [00:23:11]wFMCommunicate request_size=4 [00:23:11]MH_SAM_APDU [00:23:11]CAPDU: 80 0D 01 02 [00:23:11]Write to MH i2c: E2 08 00 D0 0C 80 0D 01 02 00 00 00 00 55 [00:23:11]Write i2c OK [00:23:11]MH_I2C_Read... [00:23:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:23:12]Read from MH i2c: E2 [00:23:12]MH_I2C_Read... [00:23:12]Read from MH i2c: E2 03 00 [00:23:12]MH_I2C_Read... [00:23:12]Read from MH i2c: E2 03 00 D0 0C 00 90 00 50 [00:23:12]RAPDU: 90 00 [00:23:12]wFMCommunicate OK [00:23:12]wFMCommunicate request_size=255 [00:23:12]MH_SAM_APDU [00:23:12]CAPDU: 80 0D 02 02 FA 02 00 06 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 98 D1 81 D0 BC D0 B0 D0 BD D0 B0 D0 BB D0 B8 D0 B5 D0 B2 20 D0 94 2E 20 F1 03 57 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 91 D0 B0 D0 BB D1 8B D0 BA D1 87 D1 8B 2C 20 D1 83 D0 BB 2E 20 D0 90 D0 B1 D0 B4 D1 80 D0 B0 D1 85 D0 BC D0 B0 D0 BD D0 BE D0 B2 D0 B0 20 33 32 35 20 D0 91 2C 20 34 32 2E 34 36 32 37 36 31 2C 20 37 36 2E 32 31 34 39 33 31 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 36 32 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 6E 5E 5E 66 0E 04 04 00 45 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 96 0B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 [00:23:12]Write to MH i2c: E2 02 01 D1 0C 80 0D 02 02 FA 00 02 00 06 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 98 D1 81 D0 BC D0 B0 D0 BD D0 B0 D0 BB D0 B8 D0 B5 D0 B2 20 D0 94 2E 20 F1 03 57 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 91 D0 B0 D0 BB D1 8B D0 BA D1 87 D1 8B 2C 20 D1 83 D0 BB 2E 20 D0 90 D0 B1 D0 B4 D1 80 D0 B0 D1 85 D0 BC D0 B0 D0 BD D0 BE D0 B2 D0 B0 20 33 32 35 20 D0 91 2C 20 34 32 2E 34 36 32 37 36 31 2C 20 37 36 2E 32 31 34 39 33 31 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 36 32 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 6E 5E 5E 66 0E 04 04 00 45 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 96 0B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 F7 [00:23:12]Write i2c OK [00:23:12]MH_I2C_Read... [00:23:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:23:12]Read from MH i2c: E2 [00:23:12]MH_I2C_Read... [00:23:12]Read from MH i2c: E2 03 00 [00:23:12]MH_I2C_Read... [00:23:12]Read from MH i2c: E2 03 00 D1 0C 00 90 00 51 [00:23:12]RAPDU: 90 00 [00:23:12]wFMCommunicate OK [00:23:12]wFMCommunicate request_size=21 [00:23:12]MH_SAM_APDU [00:23:12]CAPDU: 80 0D 02 02 10 39 36 35 34 30 30 35 04 06 00 C5 A4 CF EB 4C 1A [00:23:12]Write to MH i2c: E2 18 00 D2 0C 80 0D 02 02 10 00 39 36 35 34 30 30 35 04 06 00 C5 A4 CF EB 4C 1A 00 00 78 [00:23:12]Write i2c OK [00:23:12]MH_I2C_Read... [00:23:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:23:12]Read from MH i2c: E2 [00:23:12]MH_I2C_Read... [00:23:12]Read from MH i2c: E2 03 00 [00:23:12]MH_I2C_Read... [00:23:12]Read from MH i2c: E2 03 00 D2 0C 00 90 00 52 [00:23:12]RAPDU: 90 00 [00:23:12]wFMCommunicate OK [00:23:12]wFMCommunicate request_size=4 [00:23:12]MH_SAM_APDU [00:23:12]CAPDU: 80 0D 03 02 [00:23:12]Write to MH i2c: E2 08 00 D3 0C 80 0D 03 02 00 00 00 00 5A [00:23:12]Write i2c OK [00:23:12]MH_I2C_Read... [00:23:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:23:12]Read from MH i2c: E2 [00:23:12]MH_I2C_Read... [00:23:12]Read from MH i2c: E2 0B 00 [00:23:12]MH_I2C_Read... [00:23:12]Read from MH i2c: E2 0B 00 D3 0C 00 AD 48 50 F2 66 B9 B6 99 90 00 00 [00:23:12]RAPDU: AD 48 50 F2 66 B9 B6 99 90 00 [00:23:12]wFMCommunicate OK [00:23:12]SAM_PROTO_SignData done [00:23:12]FM_MakeSignedData done [00:23:12]CreateOFDProtocolMessage [00:23:12]wFMCommunicate request_size=4 [00:23:12]MH_SAM_APDU [00:23:12]CAPDU: 80 11 00 00 [00:23:12]Write to MH i2c: E2 08 00 D4 0C 80 11 00 00 00 00 00 00 5A [00:23:12]Write i2c OK [00:23:12]MH_I2C_Read... [00:23:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:23:12]Read from MH i2c: E2 [00:23:12]MH_I2C_Read... [00:23:12]Read from MH i2c: E2 17 00 [00:23:12]MH_I2C_Read... [00:23:12]Read from MH i2c: E2 17 00 D4 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 A5 [00:23:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [00:23:12]wFMCommunicate OK [00:23:12]CreateOFDProtocolMessage done [00:23:12]OFDSenderStorePacket 68502 [00:23:12]StoreOFDPacket docnum=68502 [00:23:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 1A 01 00 00 CB 5E 12 01 2D 8A 5A 02 01 00 02 00 06 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 98 D1 81 D0 BC D0 B0 D0 BD D0 B0 D0 BB D0 B8 D0 B5 D0 B2 20 D0 94 2E 20 F1 03 57 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 91 D0 B0 D0 BB D1 8B D0 BA D1 87 D1 8B 2C 20 D1 83 D0 BB 2E 20 D0 90 D0 B1 D0 B4 D1 80 D0 B0 D1 85 D0 BC D0 B0 D0 BD D0 BE D0 B2 D0 B0 20 33 32 35 20 D0 91 2C 20 34 32 2E 34 36 32 37 36 31 2C 20 37 36 2E 32 31 34 39 33 31 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 36 32 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 6E 5E 5E 66 0E 04 04 00 45 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 96 0B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 35 04 06 00 C5 A4 CF EB 4C 1A AD 48 50 F2 66 B9 B6 99 [00:23:12]CheckFolder [00:23:12]dirname=/storage/ofd_packets [00:23:12]CheckFolder done [00:23:12]ProducePacketName [00:23:12]name=ofd_packets/00068502 [00:23:12]NVStorageSaveData ofd_packets/00068502 [00:23:12]File name is /storage/ofd_packets/00068502 [00:23:12]Write 312 bytes [00:23:12]NVStorageSaveData done [00:23:12]OFDSenderStorePacket done [00:23:12]KKMCreateOFDPacket done [00:23:12]NVStorageSaveData kkm_last_timestamp [00:23:12]File name is /storage/kkm_last_timestamp [00:23:12]Write 4 bytes [00:23:12]NVStorageSaveData done [00:23:12]ExternCall_PrintAddStr [00:23:12]wPrintStart [00:23:12]Write to MH i2c: 01 00 00 D5 0C E1 [00:23:12]Write i2c OK [00:23:12]MH_I2C_Read... [00:23:12]Read from MH i2c: 01 [00:23:12]MH_I2C_Read... [00:23:12]Read from MH i2c: 01 07 00 [00:23:12]MH_I2C_Read... [00:23:12]Read from MH i2c: 01 07 00 D5 0C 00 00 00 00 00 FF 0F F6 [00:23:12]RasterBufferAndPrint [00:23:12]line Отчет об открытии смены [00:23:12]line ФФД: 1.0 [00:23:12]line ИНН: 02508201610067 [00:23:12]line Кассир: Исманалиев Д. [00:23:12]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [00:23:12]line Место: АЗС № 62 "Партнер Нефть" [00:23:12]line 04.06.2024 00:23 [00:23:12]line Смена: 325 [00:23:12]line РНМ: 0000000000098096 [00:23:12]line ЗНМ: 0300000181 [00:23:12]line ФД: 68502 [00:23:12]line ФМ: 0000000000965400 [00:23:12]line ФПД: 217311653612570 [00:23:12]written 0, free lines is 4095 [00:23:12]OFD Sender: Processing packet 68502 [packets to send 26, broken 25] [00:23:12]ProducePacketName [00:23:12]name=ofd_packets/00068502 [00:23:12]OFD Sender: To server: pG, [00:23:12]CommunicateWithHost lk.salyk.kg:30040 [00:23:12]ConnectInit lk.salyk.kg [00:23:12]Connected sock=10 [00:23:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 1A 01 00 00 CB 5E 12 01 2D 8A 5A 02 01 00 02 00 06 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 98 D1 81 D0 BC D0 B0 D0 BD D0 B0 D0 BB D0 B8 D0 B5 D0 B2 20 D0 94 2E 20 F1 03 57 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 91 D0 B0 D0 BB D1 8B D0 BA D1 87 D1 8B 2C 20 D1 83 D0 BB 2E 20 D0 90 D0 B1 D0 B4 D1 80 D0 B0 D1 85 D0 BC D0 B0 D0 BD D0 BE D0 B2 D0 B0 20 33 32 35 20 D0 91 2C 20 34 32 2E 34 36 32 37 36 31 2C 20 37 36 2E 32 31 34 39 33 31 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 36 32 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 6E 5E 5E 66 0E 04 04 00 45 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 96 0B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 35 04 06 00 C5 A4 CF EB 4C 1A AD 48 50 F2 66 B9 B6 99 [00:23:12]Write to MH i2c: 01 00 00 E7 0C F3 [00:23:12]Write i2c OK [00:23:12]MH_I2C_Read... [00:23:12]Read from MH i2c: 01 [00:23:12]MH_I2C_Read... [00:23:12]Read from MH i2c: 01 07 00 [00:23:12]MH_I2C_Read... [00:23:12]Read from MH i2c: 01 07 00 E7 0C 00 00 00 00 00 7C 0E 84 [00:23:12]RasterBufferAndPrint [00:23:12]line [00:23:12]line [00:23:12]line [00:23:12]line [00:23:12]line [00:23:12]written 0, free lines is 3726 [00:23:12]MH_Cut [00:23:12]Write to MH i2c: D1 01 00 EE 0C 01 CC [00:23:12]Write i2c OK [00:23:12]MH_I2C_Read... [00:23:12]Read from MH i2c: D1 [00:23:12]MH_I2C_Read... [00:23:12]Read from MH i2c: D1 01 00 [00:23:12]MH_I2C_Read... [00:23:12]Read from MH i2c: D1 01 00 EE 0C 00 CB [00:23:12]Write to MH i2c: 01 00 00 EF 0C FB [00:23:12]Write i2c OK [00:23:12]MH_I2C_Read... [00:23:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 FE DE 47 00 92 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 96 0B 01 00 F4 03 04 00 6A 05 5E 66 B6 04 01 00 00 69 25 61 8C 6B A6 A1 7A [00:23:13]CommunicateWithHost err = 0 [00:23:13]CheckOFDResponse [00:23:13]1017 (14) - 77093643461234 [00:23:13]1041 (16) - 0000000000965400 [00:23:13]1040 (4) - 68502 [00:23:13]1012 (4) - 03.06.2024 18:03 [00:23:13]1206 (1) - 0 [00:23:13]OFD Sender: Remove packet 68502 [00:23:13]ProducePacketName [00:23:13]name=ofd_packets/00068502 [00:23:13]NVStorageDeleteData [00:23:13]*** Cut start [00:23:13]*** Partial cut [00:23:13]*** CUTSNS_PIN = 1 [00:23:13]*** CUTSNS_PIN = 0 [00:23:13]OFD Sender: No OFD packet to send [00:23:13]*** Brake cut motor [00:23:14]Read from MH i2c: 01 [00:23:14]MH_I2C_Read... [00:23:14]*** Stop cut motor [00:23:14]*** Cut end [00:23:14]Read from MH i2c: 01 07 00 [00:23:14]MH_I2C_Read... [00:23:14]Read from MH i2c: 01 07 00 EF 0C 00 00 00 00 00 FF 0F 10 [00:23:14]process_action open_shift done [00:23:14]requested_data is exist [00:23:14]produce_requested_data [00:23:14]requested_item fd.num is exist - process it [00:23:14]SAM_PROTO_GetFieldsCounters [00:23:14]wFMCommunicate request_size=4 [00:23:14]MH_SAM_APDU [00:23:14]CAPDU: 80 13 00 00 [00:23:14]Write to MH i2c: E2 08 00 F0 0C 80 13 00 00 00 00 00 00 78 [00:23:14]Write i2c OK [00:23:14]MH_I2C_Read... [00:23:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:23:14]Read from MH i2c: E2 [00:23:14]MH_I2C_Read... [00:23:14]Read from MH i2c: E2 62 00 [00:23:14]MH_I2C_Read... [00:23:14]Read from MH i2c: E2 62 00 F0 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 96 0B 01 00 0E 04 04 00 45 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 80 [00:23:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 96 0B 01 00 0E 04 04 00 45 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:23:14]wFMCommunicate OK [00:23:14]SAM_PROTO_GetFieldsCounters done [00:23:14]requested_item shift.num is exist - process it [00:23:14]requested_item shift.opened is exist - process it [00:23:14]req_shift_opened [00:23:14]FM_GetShiftState [00:23:14]SAM_PROTO_GetShiftState [00:23:14]wFMCommunicate request_size=4 [00:23:14]MH_SAM_APDU [00:23:14]CAPDU: 80 13 01 00 [00:23:14]Write to MH i2c: E2 08 00 F1 0C 80 13 01 00 00 00 00 00 7A [00:23:14]Write i2c OK [00:23:14]MH_I2C_Read... [00:23:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:23:14]Read from MH i2c: E2 [00:23:14]MH_I2C_Read... [00:23:14]Read from MH i2c: E2 0E 00 [00:23:14]MH_I2C_Read... [00:23:14]Read from MH i2c: E2 0E 00 F1 0C 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 16 [00:23:14]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [00:23:14]wFMCommunicate OK [00:23:14]SAM_PROTO_GetShiftState done [00:23:14]FM_GetShiftState done [00:23:14]req_shift_opened done [00:23:14]requested_item shift.open_date is exist - process it [00:23:14]req_shift_open_date [00:23:14]req_shift_open_date done [00:23:14]produce_requested_data done [00:23:14]produce_requested_data return {"fd.num":68502,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [00:23:14]process_action_free open_shift [00:23:14]json_value_free [00:23:14]json_value_free done [00:23:14]process_json_proto returns [00:23:14]Send response to host [00:23:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":68502,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [00:23:14]free response buf [00:23:14]execute_script done [00:23:14]execute_script returns [00:23:14]free content buf [00:23:14]Sock 7.Close socket [00:23:14]Sock 7.Thread stoped [00:23:14]accept exits with 9 [00:23:14]New connection [00:23:14]New thread 3067227492 created [00:23:14]Thread 3067084132 joined [00:23:14]Waiting for new connection... [00:23:14] Sock 9.Parse request [00:23:14]Sock 9.Check first char [00:23:14]Sock 9.First char is OK [00:23:14]request: POST /json_proto HTTP/1.0 [00:23:14]Method: POST [00:23:14]URL: /json_proto [00:23:14]Method is POST - this is cgi request [00:23:14]url: /json_proto [00:23:14]query_string will be loaded in cgi processing [00:23:14]execute_cgi json_proto POST (null) [00:23:14]execute_cgi path=json_proto method=POST [00:23:14]POST find Content-Length [00:23:14]Host: 172.17.36.132:8080 [00:23:14]Content-Length: 331 [00:23:14]Content-Type: application/json [00:23:14] [00:23:14]POST finish read [00:23:14]Found Content-Length = 331 [00:23:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:23:14]execute_script... [00:23:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:23:14]POST & json_proto [00:23:14]process_json_proto [00:23:14]json parsed OK: [00:23:14]protocol is kg_v1.0 [00:23:14]action value=get_value [00:23:14]process_action get_value [00:23:14]cmd_get_value [00:23:14]process_action get_value done [00:23:14]requested_data is exist [00:23:14]produce_requested_data [00:23:14]requested_item fm.sale.total is exist - process it [00:23:14]SAM_PROTO_GetFMData [00:23:14]wFMCommunicate request_size=4 [00:23:14]MH_SAM_APDU [00:23:14]CAPDU: 80 13 03 00 [00:23:14]Write to MH i2c: E2 08 00 F2 0C 80 13 03 00 00 00 00 00 7D [00:23:14]Write i2c OK [00:23:14]MH_I2C_Read... [00:23:14]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:23:14]Read from MH i2c: E2 [00:23:14]MH_I2C_Read... [00:23:14]Read from MH i2c: E2 FD 00 [00:23:14]MH_I2C_Read... [00:23:14]Read from MH i2c: E2 FD 00 F2 0C 00 C5 04 85 04 C1 04 6E 04 04 00 0C 09 01 00 69 04 A3 00 6F 04 04 00 F5 03 01 00 B1 04 05 00 F1 F6 E4 39 01 70 04 05 00 68 DE 3C 0D 01 72 04 04 00 89 18 A8 2C 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 EA 17 58 21 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 0F 3E C7 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 17 05 00 00 B1 04 04 00 F4 BA E7 0E 70 04 04 00 F4 BA E7 0E 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 28 44 95 01 EF 03 09 90 00 AE [00:23:14]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 0C 09 01 00 69 04 A3 00 6F 04 04 00 F5 03 01 00 B1 04 05 00 F1 F6 E4 39 01 70 04 05 00 68 DE 3C 0D 01 72 04 04 00 89 18 A8 2C 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 EA 17 58 21 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 0F 3E C7 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 17 05 00 00 B1 04 04 00 F4 BA E7 0E 70 04 04 00 F4 BA E7 0E 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 28 44 95 01 EF 03 09 90 00 [00:23:14]wFMCommunicate OK [00:23:14]wFMCommunicate request_size=4 [00:23:14]MH_SAM_APDU [00:23:14]CAPDU: 80 17 00 00 [00:23:14]Write to MH i2c: E2 08 00 F3 0C 80 17 00 00 00 00 00 00 7F [00:23:14]Write i2c OK [00:23:14]MH_I2C_Read... [00:23:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:23:15]Read from MH i2c: E2 [00:23:15]MH_I2C_Read... [00:23:15]Read from MH i2c: E2 FD 00 [00:23:15]MH_I2C_Read... [00:23:15]Read from MH i2c: E2 FD 00 F3 0C 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 3C C5 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 57 [00:23:15]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 3C C5 21 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:23:15]wFMCommunicate OK [00:23:15]wFMCommunicate request_size=4 [00:23:15]MH_SAM_APDU [00:23:15]CAPDU: 80 17 00 00 [00:23:15]Write to MH i2c: E2 08 00 F4 0C 80 17 00 00 00 00 00 00 80 [00:23:15]Write i2c OK [00:23:15]MH_I2C_Read... [00:23:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:23:15]Read from MH i2c: E2 [00:23:15]MH_I2C_Read... [00:23:15]Read from MH i2c: E2 FD 00 [00:23:15]MH_I2C_Read... [00:23:15]Read from MH i2c: E2 FD 00 F4 0C 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 92 [00:23:15]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:23:15]wFMCommunicate OK [00:23:15]wFMCommunicate request_size=4 [00:23:15]MH_SAM_APDU [00:23:15]CAPDU: 80 17 00 00 [00:23:15]Write to MH i2c: E2 08 00 F5 0C 80 17 00 00 00 00 00 00 81 [00:23:15]Write i2c OK [00:23:15]MH_I2C_Read... [00:23:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:23:15]Read from MH i2c: E2 [00:23:15]MH_I2C_Read... [00:23:15]Read from MH i2c: E2 FD 00 [00:23:15]MH_I2C_Read... [00:23:15]Read from MH i2c: E2 FD 00 F5 0C 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 0D [00:23:15]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:23:16]wFMCommunicate OK [00:23:16]wFMCommunicate request_size=4 [00:23:16]MH_SAM_APDU [00:23:16]CAPDU: 80 17 00 00 [00:23:16]Write to MH i2c: E2 08 00 F6 0C 80 17 00 00 00 00 00 00 82 [00:23:16]Write i2c OK [00:23:16]MH_I2C_Read... [00:23:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:23:16]Read from MH i2c: E2 [00:23:16]MH_I2C_Read... [00:23:16]Read from MH i2c: E2 E2 00 [00:23:16]MH_I2C_Read... [00:23:16]Read from MH i2c: E2 E2 00 F6 0C 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 60 [00:23:16]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:23:16]wFMCommunicate OK [00:23:16]SAM_PROTO_GetFMData done [00:23:16]requested_item fm.sale_refund.total is exist - process it [00:23:16]requested_item fm.buy.total is exist - process it [00:23:16]requested_item shift.sale.total is exist - process it [00:23:16]SAM_PROTO_GetShiftData [00:23:16]wFMCommunicate request_size=4 [00:23:16]MH_SAM_APDU [00:23:16]CAPDU: 80 13 02 00 [00:23:16]Write to MH i2c: E2 08 00 F7 0C 80 13 02 00 00 00 00 00 81 [00:23:16]Write i2c OK [00:23:16]MH_I2C_Read... [00:23:16]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:23:16]Read from MH i2c: E2 [00:23:16]MH_I2C_Read... [00:23:16]Read from MH i2c: E2 FD 00 [00:23:16]MH_I2C_Read... [00:23:16]Read from MH i2c: E2 FD 00 F7 0C 00 A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 F4 [00:23:17]RAPDU: A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [00:23:17]wFMCommunicate OK [00:23:17]wFMCommunicate request_size=4 [00:23:17]MH_SAM_APDU [00:23:17]CAPDU: 80 17 00 00 [00:23:17]Write to MH i2c: E2 08 00 F8 0C 80 17 00 00 00 00 00 00 84 [00:23:17]Write i2c OK [00:23:17]MH_I2C_Read... [00:23:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:23:17]Read from MH i2c: E2 [00:23:17]MH_I2C_Read... [00:23:17]Read from MH i2c: E2 FD 00 [00:23:17]MH_I2C_Read... [00:23:17]Read from MH i2c: E2 FD 00 F8 0C 00 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 8C [00:23:17]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 [00:23:17]wFMCommunicate OK [00:23:17]wFMCommunicate request_size=4 [00:23:17]MH_SAM_APDU [00:23:17]CAPDU: 80 17 00 00 [00:23:17]Write to MH i2c: E2 08 00 F9 0C 80 17 00 00 00 00 00 00 85 [00:23:17]Write i2c OK [00:23:17]MH_I2C_Read... [00:23:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:23:17]Read from MH i2c: E2 [00:23:17]MH_I2C_Read... [00:23:17]Read from MH i2c: E2 FD 00 [00:23:17]MH_I2C_Read... [00:23:17]Read from MH i2c: E2 FD 00 F9 0C 00 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 57 [00:23:17]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 [00:23:18]wFMCommunicate OK [00:23:18]wFMCommunicate request_size=4 [00:23:18]MH_SAM_APDU [00:23:18]CAPDU: 80 17 00 00 [00:23:18]Write to MH i2c: E2 08 00 FA 0C 80 17 00 00 00 00 00 00 86 [00:23:18]Write i2c OK [00:23:18]MH_I2C_Read... [00:23:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:23:18]Read from MH i2c: E2 [00:23:18]MH_I2C_Read... [00:23:18]Read from MH i2c: E2 FD 00 [00:23:18]MH_I2C_Read... [00:23:18]Read from MH i2c: E2 FD 00 FA 0C 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 F8 [00:23:18]RAPDU: 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:23:18]wFMCommunicate OK [00:23:18]wFMCommunicate request_size=4 [00:23:18]MH_SAM_APDU [00:23:18]CAPDU: 80 17 00 00 [00:23:18]Write to MH i2c: E2 08 00 FB 0C 80 17 00 00 00 00 00 00 87 [00:23:18]Write i2c OK [00:23:18]MH_I2C_Read... [00:23:18]OFD Sender: No OFD packet to send [00:23:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:23:18]Read from MH i2c: E2 [00:23:18]MH_I2C_Read... [00:23:18]Read from MH i2c: E2 BD 00 [00:23:18]MH_I2C_Read... [00:23:18]Read from MH i2c: E2 BD 00 FB 0C 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 6D [00:23:18]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:23:18]wFMCommunicate OK [00:23:18]SAM_PROTO_GetShiftData done [00:23:18]requested_item shift.sale.total_cash is exist - process it [00:23:18]requested_item shift.sale_refund.total is exist - process it [00:23:18]requested_item shift.sale_refund.total_cash is exist - process it [00:23:18]requested_item shift.buy.total is exist - process it [00:23:18]requested_item shift.buy.total_cash is exist - process it [00:23:18]produce_requested_data done [00:23:18]produce_requested_data return {"fm.sale.total":52662740.33,"fm.sale_refund.total":2500677.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:23:18]process_action_free get_value [00:23:18]json_value_free [00:23:18]json_value_free done [00:23:18]process_json_proto returns [00:23:18]Send response to host [00:23:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":52662740.33,"fm.sale_refund.total":2500677.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:23:18]free response buf [00:23:18]execute_script done [00:23:18]execute_script returns [00:23:18]free content buf [00:23:18]Sock 9.Close socket [00:23:18]Sock 9.Thread stoped [00:23:23]OFD Sender: No OFD packet to send [00:23:28]OFD Sender: No OFD packet to send [00:23:33]OFD Sender: No OFD packet to send [00:23:38]OFD Sender: No OFD packet to send [00:23:43]OFD Sender: No OFD packet to send [00:23:48]OFD Sender: No OFD packet to send [00:23:53]OFD Sender: No OFD packet to send [00:23:58]OFD Sender: No OFD packet to send [00:24:03]OFD Sender: No OFD packet to send [00:24:08]OFD Sender: No OFD packet to send [00:24:13]OFD Sender: No OFD packet to send [00:24:18]OFD Sender: No OFD packet to send [00:24:23]OFD Sender: No OFD packet to send [00:24:28]OFD Sender: No OFD packet to send [00:24:33]OFD Sender: No OFD packet to send [00:24:38]OFD Sender: No OFD packet to send [00:24:43]OFD Sender: No OFD packet to send [00:24:48]OFD Sender: No OFD packet to send [00:24:53]OFD Sender: No OFD packet to send [00:24:58]OFD Sender: No OFD packet to send [00:25:03]OFD Sender: No OFD packet to send [00:25:08]OFD Sender: No OFD packet to send [00:25:13]OFD Sender: No OFD packet to send [00:25:18]OFD Sender: No OFD packet to send [00:25:23]OFD Sender: No OFD packet to send [00:25:28]OFD Sender: No OFD packet to send [00:25:33]OFD Sender: No OFD packet to send [00:25:38]OFD Sender: No OFD packet to send [00:25:43]OFD Sender: No OFD packet to send [00:25:48]OFD Sender: No OFD packet to send [00:25:53]OFD Sender: No OFD packet to send [00:25:58]OFD Sender: No OFD packet to send [00:26:03]OFD Sender: No OFD packet to send [00:26:08]OFD Sender: No OFD packet to send [00:26:13]OFD Sender: No OFD packet to send [00:26:18]OFD Sender: No OFD packet to send [00:26:23]OFD Sender: No OFD packet to send [00:26:28]OFD Sender: No OFD packet to send [00:26:33]OFD Sender: No OFD packet to send [00:26:38]OFD Sender: No OFD packet to send [00:26:43]OFD Sender: No OFD packet to send [00:26:48]OFD Sender: No OFD packet to send [00:26:53]OFD Sender: No OFD packet to send [00:26:58]OFD Sender: No OFD packet to send [00:27:03]OFD Sender: No OFD packet to send [00:27:08]OFD Sender: No OFD packet to send [00:27:13]OFD Sender: No OFD packet to send [00:27:18]OFD Sender: No OFD packet to send [00:27:23]OFD Sender: No OFD packet to send [00:27:28]OFD Sender: No OFD packet to send [00:27:33]OFD Sender: No OFD packet to send [00:27:38]OFD Sender: No OFD packet to send [00:27:43]OFD Sender: No OFD packet to send [00:27:48]OFD Sender: No OFD packet to send [00:27:53]OFD Sender: No OFD packet to send [00:27:58]OFD Sender: No OFD packet to send [00:28:03]OFD Sender: No OFD packet to send [00:28:08]OFD Sender: No OFD packet to send [00:28:13]OFD Sender: No OFD packet to send [00:28:18]OFD Sender: No OFD packet to send [00:28:23]accept exits with 7 [00:28:23]New connection [00:28:23]New thread 3067084132 created [00:28:23]Thread 3067227492 joined [00:28:23]Waiting for new connection... [00:28:23] Sock 7.Parse request [00:28:23]Sock 7.Check first char [00:28:23]Sock 7.First char is OK [00:28:23]request: POST /json_proto HTTP/1.0 [00:28:23]Method: POST [00:28:23]URL: /json_proto [00:28:23]Method is POST - this is cgi request [00:28:23]url: /json_proto [00:28:23]query_string will be loaded in cgi processing [00:28:23]execute_cgi json_proto POST (null) [00:28:23]execute_cgi path=json_proto method=POST [00:28:23]POST find Content-Length [00:28:23]Host: 172.17.36.132:8080 [00:28:23]Content-Length: 840 [00:28:23]Content-Type: application/json [00:28:23] [00:28:23]POST finish read [00:28:23]Found Content-Length = 840 [00:28:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706615", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 600.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:28:23]execute_script... [00:28: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)706615", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 600.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:28:23]POST & json_proto [00:28:23]process_json_proto [00:28:23]json parsed OK: [00:28:23]protocol is kg_v1.0 [00:28:23]action value=close_receipt [00:28:23]process_action close_receipt [00:28:23]cmd_close_receipt [00:28:23]MH_GetDate [00:28:23]Write to MH i2c: F0 00 00 FC 0C F7 [00:28:23]Write i2c OK [00:28:23]MH_I2C_Read... [00:28:23]Read from MH i2c: F0 [00:28:23]MH_I2C_Read... [00:28:23]Read from MH i2c: F0 09 00 [00:28:23]MH_I2C_Read... [00:28:23]Read from MH i2c: F0 09 00 FC 0C 00 A8 5F 5E 66 B2 22 B0 64 B3 [00:28:23]GetLastDocTimeStamp 1717460590 [00:28:23]current date 1717460904 [00:28:23]FM_GetShiftState [00:28:23]SAM_PROTO_GetShiftState [00:28:23]wFMCommunicate request_size=4 [00:28:23]MH_SAM_APDU [00:28:23]CAPDU: 80 13 01 00 [00:28:23]Write to MH i2c: E2 08 00 FD 0C 80 13 01 00 00 00 00 00 86 [00:28:23]Write i2c OK [00:28:23]MH_I2C_Read... [00:28:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:28:23]Read from MH i2c: E2 [00:28:23]MH_I2C_Read... [00:28:23]Read from MH i2c: E2 0E 00 [00:28:23]MH_I2C_Read... [00:28:23]Read from MH i2c: E2 0E 00 FD 0C 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 22 [00:28:23]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [00:28:23]wFMCommunicate OK [00:28:23]SAM_PROTO_GetShiftState done [00:28:23]FM_GetShiftState done [00:28:23]opened in 1717460590 [00:28:23]opened+sec_in_day 1717546990 [00:28:23]quantity*price = 60009 [00:28:23]sum+1 = 60010 [00:28:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.09 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 0.00 Безнал.: 600.09 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 1 04.06.2024 00:28 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68503 ФПД: 134952017972862 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T002825&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68503&fm=134952017972862&tin=02508201610067®Number=0000000000098096&sum=60009 [00:28:24]StoreToDocumentArchive [00:28:24]shift 325 fd 68503 [00:28:24]save to /storage/0325/doc_00068503 [00:28:24]save last doc name /storage/0325/doc_00068503 to /storage/kkm_last_doc_name [00:28:24]save OK [00:28:24]Clear old archive folders... [00:28:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:28:24]tlvbuf is 009AE0C0 [00:28:24]SAM_PROTO_ClearQueue [00:28:24]wFMCommunicate request_size=4 [00:28:24]MH_SAM_APDU [00:28:24]CAPDU: 80 09 00 00 [00:28:24]Write to MH i2c: E2 08 00 0A 0D 80 09 00 00 00 00 00 00 89 [00:28:24]Write i2c OK [00:28:24]MH_I2C_Read... [00:28:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:28:24]Read from MH i2c: E2 [00:28:24]MH_I2C_Read... [00:28:24]Read from MH i2c: E2 03 00 [00:28:24]MH_I2C_Read... [00:28:24]Read from MH i2c: E2 03 00 0A 0D 00 90 00 8B [00:28:24]RAPDU: 90 00 [00:28:24]wFMCommunicate OK [00:28:24]SAM_PROTO_ClearQueue done [00:28:24]KKMCreateOFDPacket [00:28:24]OFDProtocolAddRootSTLVToBuf [00:28:24]FM_MakeSignedData [00:28:24]FM_MakeSignedData [00:28:24]SAM_PROTO_SignData [00:28:24]wFMCommunicate request_size=4 [00:28:24]MH_SAM_APDU [00:28:24]CAPDU: 80 0D 01 02 [00:28:24]Write to MH i2c: E2 08 00 0B 0D 80 0D 01 02 00 00 00 00 91 [00:28:24]Write i2c OK [00:28:24]MH_I2C_Read... [00:28:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:28:24]Read from MH i2c: E2 [00:28:24]MH_I2C_Read... [00:28:24]Read from MH i2c: E2 03 00 [00:28:24]MH_I2C_Read... [00:28:24]Read from MH i2c: E2 03 00 0B 0D 00 90 00 8C [00:28:24]RAPDU: 90 00 [00:28:24]wFMCommunicate OK [00:28:24]wFMCommunicate request_size=255 [00:28:24]MH_SAM_APDU [00:28:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 A9 5F 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 97 0B 01 00 35 04 06 00 7A [00:28:24]Write to MH i2c: E2 02 01 0C 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 A9 5F 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 97 0B 01 00 35 04 06 00 7A 00 00 3D [00:28:24]Write i2c OK [00:28:24]MH_I2C_Read... [00:28:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:28:25]Read from MH i2c: E2 [00:28:25]MH_I2C_Read... [00:28:25]Read from MH i2c: E2 03 00 [00:28:25]MH_I2C_Read... [00:28:25]Read from MH i2c: E2 03 00 0C 0D 00 90 00 8D [00:28:25]RAPDU: 90 00 [00:28:25]wFMCommunicate OK [00:28:25]wFMCommunicate request_size=10 [00:28:25]MH_SAM_APDU [00:28:25]CAPDU: 80 0D 02 02 05 BC F7 17 CE 7E [00:28:25]Write to MH i2c: E2 0D 00 0D 0D 80 0D 02 02 05 00 BC F7 17 CE 7E 00 00 B4 [00:28:25]Write i2c OK [00:28:25]MH_I2C_Read... [00:28:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:28:25]Read from MH i2c: E2 [00:28:25]MH_I2C_Read... [00:28:25]Read from MH i2c: E2 03 00 [00:28:25]MH_I2C_Read... [00:28:25]Read from MH i2c: E2 03 00 0D 0D 00 90 00 8E [00:28:25]RAPDU: 90 00 [00:28:25]wFMCommunicate OK [00:28:25]wFMCommunicate request_size=4 [00:28:25]MH_SAM_APDU [00:28:25]CAPDU: 80 0D 03 02 [00:28:25]Write to MH i2c: E2 08 00 0E 0D 80 0D 03 02 00 00 00 00 96 [00:28:25]Write i2c OK [00:28:25]MH_I2C_Read... [00:28:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:28:25]Read from MH i2c: E2 [00:28:25]MH_I2C_Read... [00:28:25]Read from MH i2c: E2 0B 00 [00:28:25]MH_I2C_Read... [00:28:25]Read from MH i2c: E2 0B 00 0E 0D 00 30 26 31 D4 84 51 6E B2 90 00 E7 [00:28:25]RAPDU: 30 26 31 D4 84 51 6E B2 90 00 [00:28:25]wFMCommunicate OK [00:28:25]SAM_PROTO_SignData done [00:28:25]FM_MakeSignedData done [00:28:25]CreateOFDProtocolMessage [00:28:25]wFMCommunicate request_size=4 [00:28:25]MH_SAM_APDU [00:28:25]CAPDU: 80 11 00 00 [00:28:25]Write to MH i2c: E2 08 00 0F 0D 80 11 00 00 00 00 00 00 96 [00:28:25]Write i2c OK [00:28:25]MH_I2C_Read... [00:28:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:28:25]Read from MH i2c: E2 [00:28:25]MH_I2C_Read... [00:28:25]Read from MH i2c: E2 17 00 [00:28:25]MH_I2C_Read... [00:28:25]Read from MH i2c: E2 17 00 0F 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 E1 [00:28:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [00:28:25]wFMCommunicate OK [00:28:25]CreateOFDProtocolMessage done [00:28:25]OFDSenderStorePacket 68503 [00:28:25]StoreOFDPacket docnum=68503 [00:28:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 0A FB 07 01 37 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 A9 5F 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 97 0B 01 00 35 04 06 00 7A BC F7 17 CE 7E 30 26 31 D4 84 51 6E B2 [00:28:25]CheckFolder [00:28:25]dirname=/storage/ofd_packets [00:28:25]CheckFolder done [00:28:25]ProducePacketName [00:28:25]name=ofd_packets/00068503 [00:28:25]NVStorageSaveData ofd_packets/00068503 [00:28:25]File name is /storage/ofd_packets/00068503 [00:28:25]Write 301 bytes [00:28:25]NVStorageSaveData done [00:28:25]OFDSenderStorePacket done [00:28:25]KKMCreateOFDPacket done [00:28:25]NVStorageSaveData kkm_last_timestamp [00:28:25]File name is /storage/kkm_last_timestamp [00:28:25]Write 4 bytes [00:28:25]NVStorageSaveData done [00:28:25]ExternCall_PrintAddStr [00:28:25]wPrintStart [00:28:25]Write to MH i2c: 01 00 00 10 0D 1D [00:28:25]Write i2c OK [00:28:25]MH_I2C_Read... [00:28:25]Read from MH i2c: 01 [00:28:25]MH_I2C_Read... [00:28:25]Read from MH i2c: 01 07 00 [00:28:25]MH_I2C_Read... [00:28:25]Read from MH i2c: 01 07 00 10 0D 00 00 00 00 00 FF 0F 32 [00:28:25]RasterBufferAndPrint [00:28:25]line Счет N : (1)706615 [00:28:25]line ИНН: 02508201610067 [00:28:25]line Контрольно-Кассовый Чек [00:28:25]line ПРОДАЖА [00:28:25]line ТРК (МРК, ГНК) : 42 [00:28:25]line Товар: 2710124130 [00:28:25]line Аи-92-К-4 [00:28:25]line 8.970 * 66.90 [00:28:25]line = 600.09 [00:28:25]line НДС 12% НСП 1% [00:28:25]line > о реализуемом товаре [00:28:25]line ИТОГО: 600.09 [00:28:25]line НСП 1% : 5.31 [00:28:25]line НДС 12% : 63.73 [00:28:25]line Наличными: 0.00 [00:28:25]line Безнал.: 600.09 [00:28:25]line Место: АЗС № 62 "Партнер Нефть" [00:28:25]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [00:28:25]line СНО: Общий режим [00:28:25]line Чек 1 04.06.2024 00:28 [00:28:25]line Смена: 325 ФФД: 1.0 [00:28:25]line ЗНМ: 0300000181 [00:28:25]line РНМ: 0000000000098096 [00:28:25]line Версия ККМ: 001 [00:28:25]line Платежная система: АКБ Кыргызстан [00:28:25]line ФМ: 0000000000965400 [00:28:25]line ФД: 68503 [00:28:25]line ФПД: 134952017972862 [00:28:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T002825&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68503&fm=134952017972862&tin=02508201610067®Number=0000000000098096&sum=60009 [00:28:25]OFD Sender: Processing packet 68503 [packets to send 26, broken 25] [00:28:25]ProducePacketName [00:28:25]name=ofd_packets/00068503 [00:28:25]OFD Sender: To server: pG, [00:28:25]CommunicateWithHost lk.salyk.kg:30040 [00:28:25]ConnectInit lk.salyk.kg [00:28:25]written 0, free lines is 4095 [00:28:25]Connected sock=10 [00:28:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 0A FB 07 01 37 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 A9 5F 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 97 0B 01 00 35 04 06 00 7A BC F7 17 CE 7E 30 26 31 D4 84 51 6E B2 [00:28:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 D1 5D 47 00 BF BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 97 0B 01 00 F4 03 04 00 A3 06 5E 66 B6 04 01 00 00 9F AB 1A B4 4F 95 CF 13 [00:28:25]CommunicateWithHost err = 0 [00:28:25]CheckOFDResponse [00:28:25]1017 (14) - 77093643461234 [00:28:25]1041 (16) - 0000000000965400 [00:28:25]1040 (4) - 68503 [00:28:25]1012 (4) - 03.06.2024 18:08 [00:28:25]1206 (1) - 0 [00:28:25]OFD Sender: Remove packet 68503 [00:28:25]ProducePacketName [00:28:25]name=ofd_packets/00068503 [00:28:25]NVStorageDeleteData [00:28:26]Write to MH i2c: 01 00 00 3A 0D 47 [00:28:26]Write i2c OK [00:28:26]MH_I2C_Read... [00:28:26]Read from MH i2c: 01 [00:28:26]MH_I2C_Read... [00:28:26]Read from MH i2c: 01 07 00 [00:28:26]MH_I2C_Read... [00:28:26]Read from MH i2c: 01 07 00 3A 0D 00 00 00 00 00 F5 0C 4F [00:28:26]RasterBufferAndPrint [00:28:26]line [00:28:26]line [00:28:26]line [00:28:26]line [00:28:26]line [00:28:26]written 0, free lines is 3324 [00:28:26]MH_Cut [00:28:26]Write to MH i2c: D1 01 00 41 0D 01 20 [00:28:26]Write i2c OK [00:28:26]MH_I2C_Read... [00:28:26]Read from MH i2c: D1 [00:28:26]MH_I2C_Read... [00:28:26]Read from MH i2c: D1 01 00 [00:28:26]MH_I2C_Read... [00:28:26]Read from MH i2c: D1 01 00 41 0D 00 1F [00:28:26]Write to MH i2c: 01 00 00 42 0D 4F [00:28:26]Write i2c OK [00:28:26]MH_I2C_Read... [00:28:26]OFD Sender: No OFD packet to send [00:28:26]*** Cut start [00:28:26]*** Partial cut [00:28:26]*** CUTSNS_PIN = 1 [00:28:26]*** CUTSNS_PIN = 0 [00:28:27]*** Brake cut motor [00:28:27]Read from MH i2c: 01 *** Stop cut motor [00:28:27]*** Cut end [00:28:27] [00:28:27]MH_I2C_Read... [00:28:27]Read from MH i2c: 01 07 00 [00:28:27]MH_I2C_Read... [00:28:27]Read from MH i2c: 01 07 00 42 0D 00 00 00 00 00 FF 0F 64 [00:28:27]process_action close_receipt done [00:28:27]requested_data is exist [00:28:27]produce_requested_data [00:28:27]requested_item fm.sn is exist - process it [00:28:27]wFMCommunicate request_size=4 [00:28:27]MH_SAM_APDU [00:28:27]CAPDU: 80 11 00 00 [00:28:27]Write to MH i2c: E2 08 00 43 0D 80 11 00 00 00 00 00 00 CA [00:28:27]Write i2c OK [00:28:27]MH_I2C_Read... [00:28:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:28:27]Read from MH i2c: E2 [00:28:27]MH_I2C_Read... [00:28:27]Read from MH i2c: E2 17 00 [00:28:27]MH_I2C_Read... [00:28:27]Read from MH i2c: E2 17 00 43 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 15 [00:28:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [00:28:27]wFMCommunicate OK [00:28:27]requested_item fd.num is exist - process it [00:28:27]SAM_PROTO_GetFieldsCounters [00:28:27]wFMCommunicate request_size=4 [00:28:27]MH_SAM_APDU [00:28:27]CAPDU: 80 13 00 00 [00:28:27]Write to MH i2c: E2 08 00 44 0D 80 13 00 00 00 00 00 00 CD [00:28:27]Write i2c OK [00:28:27]MH_I2C_Read... [00:28:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:28:27]Read from MH i2c: E2 [00:28:27]MH_I2C_Read... [00:28:27]Read from MH i2c: E2 62 00 [00:28:27]MH_I2C_Read... [00:28:27]Read from MH i2c: E2 62 00 44 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 97 0B 01 00 0E 04 04 00 45 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 D9 [00:28:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 97 0B 01 00 0E 04 04 00 45 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:28:27]wFMCommunicate OK [00:28:27]SAM_PROTO_GetFieldsCounters done [00:28:27]requested_item shift.num is exist - process it [00:28:27]requested_item shift.opened is exist - process it [00:28:27]req_shift_opened [00:28:27]FM_GetShiftState [00:28:27]SAM_PROTO_GetShiftState [00:28:27]wFMCommunicate request_size=4 [00:28:27]MH_SAM_APDU [00:28:27]CAPDU: 80 13 01 00 [00:28:27]Write to MH i2c: E2 08 00 45 0D 80 13 01 00 00 00 00 00 CF [00:28:27]Write i2c OK [00:28:27]MH_I2C_Read... [00:28:27]Read from MH i2c: E2 [00:28:27]MH_I2C_Read... [00:28:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:28:27]Read from MH i2c: E2 0E 00 [00:28:27]MH_I2C_Read... [00:28:27]Read from MH i2c: E2 0E 00 45 0D 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 6B [00:28:27]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [00:28:27]wFMCommunicate OK [00:28:27]SAM_PROTO_GetShiftState done [00:28:27]FM_GetShiftState done [00:28:27]req_shift_opened done [00:28:27]requested_item shift.open_date is exist - process it [00:28:27]req_shift_open_date [00:28:27]req_shift_open_date done [00:28:27]produce_requested_data done [00:28:27]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68503,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [00:28:27]process_action_free close_receipt [00:28:27]json_value_free [00:28:27]json_value_free done [00:28:27]process_json_proto returns [00:28:27]Send response to host [00:28:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68503,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [00:28:27]free response buf [00:28:27]execute_script done [00:28:27]execute_script returns [00:28:27]free content buf [00:28:27]Sock 7.Close socket [00:28:27]Sock 7.Thread stoped [00:28:31]OFD Sender: No OFD packet to send [00:28:36]OFD Sender: No OFD packet to send [00:28:41]OFD Sender: No OFD packet to send [00:28:46]OFD Sender: No OFD packet to send [00:28:51]OFD Sender: No OFD packet to send [00:28:56]OFD Sender: No OFD packet to send [00:29:01]OFD Sender: No OFD packet to send [00:29:06]OFD Sender: No OFD packet to send [00:29:11]OFD Sender: No OFD packet to send [00:29:16]OFD Sender: No OFD packet to send [00:29:21]OFD Sender: No OFD packet to send [00:29:26]OFD Sender: No OFD packet to send [00:29:31]OFD Sender: No OFD packet to send [00:29:36]OFD Sender: No OFD packet to send [00:29:41]OFD Sender: No OFD packet to send [00:29:46]OFD Sender: No OFD packet to send [00:29:51]OFD Sender: No OFD packet to send [00:29:56]OFD Sender: No OFD packet to send [00:30:01]OFD Sender: No OFD packet to send [00:30:06]OFD Sender: No OFD packet to send [00:30:11]OFD Sender: No OFD packet to send [00:30:16]OFD Sender: No OFD packet to send [00:30:21]OFD Sender: No OFD packet to send [00:30:26]OFD Sender: No OFD packet to send [00:30:31]OFD Sender: No OFD packet to send [00:30:36]OFD Sender: No OFD packet to send [00:30:41]OFD Sender: No OFD packet to send [00:30:46]OFD Sender: No OFD packet to send [00:30:51]OFD Sender: No OFD packet to send [00:30:56]OFD Sender: No OFD packet to send [00:31:01]OFD Sender: No OFD packet to send [00:31:06]OFD Sender: No OFD packet to send [00:31:11]OFD Sender: No OFD packet to send [00:31:16]OFD Sender: No OFD packet to send [00:31:21]OFD Sender: No OFD packet to send [00:31:26]OFD Sender: No OFD packet to send [00:31:31]OFD Sender: No OFD packet to send [00:31:36]OFD Sender: No OFD packet to send [00:31:41]OFD Sender: No OFD packet to send [00:31:46]OFD Sender: No OFD packet to send [00:31:51]OFD Sender: No OFD packet to send [00:31:56]OFD Sender: No OFD packet to send [00:32:01]OFD Sender: No OFD packet to send [00:32:06]OFD Sender: No OFD packet to send [00:32:11]OFD Sender: No OFD packet to send [00:32:16]OFD Sender: No OFD packet to send [00:32:21]OFD Sender: No OFD packet to send [00:32:26]OFD Sender: No OFD packet to send [00:32:31]OFD Sender: No OFD packet to send [00:32:36]OFD Sender: No OFD packet to send [00:32:41]OFD Sender: No OFD packet to send [00:32:46]OFD Sender: No OFD packet to send [00:32:51]OFD Sender: No OFD packet to send [00:32:56]OFD Sender: No OFD packet to send [00:33:01]OFD Sender: No OFD packet to send [00:33:06]OFD Sender: No OFD packet to send [00:33:11]OFD Sender: No OFD packet to send [00:33:16]OFD Sender: No OFD packet to send [00:33:21]OFD Sender: No OFD packet to send [00:33:26]OFD Sender: No OFD packet to send [00:33:31]OFD Sender: No OFD packet to send [00:33:36]OFD Sender: No OFD packet to send [00:33:41]OFD Sender: No OFD packet to send [00:33:46]OFD Sender: No OFD packet to send [00:33:51]OFD Sender: No OFD packet to send [00:33:56]OFD Sender: No OFD packet to send [00:34:01]OFD Sender: No OFD packet to send [00:34:06]OFD Sender: No OFD packet to send [00:34:11]OFD Sender: No OFD packet to send [00:34:16]OFD Sender: No OFD packet to send [00:34:21]OFD Sender: No OFD packet to send [00:34:26]OFD Sender: No OFD packet to send [00:34:31]OFD Sender: No OFD packet to send [00:34:36]OFD Sender: No OFD packet to send [00:34:41]OFD Sender: No OFD packet to send [00:34:46]OFD Sender: No OFD packet to send [00:34:51]OFD Sender: No OFD packet to send [00:34:56]OFD Sender: No OFD packet to send [00:35:01]OFD Sender: No OFD packet to send [00:35:06]OFD Sender: No OFD packet to send [00:35:11]OFD Sender: No OFD packet to send [00:35:16]OFD Sender: No OFD packet to send [00:35:21]OFD Sender: No OFD packet to send [00:35:26]OFD Sender: No OFD packet to send [00:35:31]OFD Sender: No OFD packet to send [00:35:36]OFD Sender: No OFD packet to send [00:35:41]OFD Sender: No OFD packet to send [00:35:46]OFD Sender: No OFD packet to send [00:35:51]OFD Sender: No OFD packet to send [00:35:56]OFD Sender: No OFD packet to send [00:36:01]OFD Sender: No OFD packet to send [00:36:06]OFD Sender: No OFD packet to send [00:36:11]OFD Sender: No OFD packet to send [00:36:16]OFD Sender: No OFD packet to send [00:36:21]OFD Sender: No OFD packet to send [00:36:26]OFD Sender: No OFD packet to send [00:36:31]OFD Sender: No OFD packet to send [00:36:36]OFD Sender: No OFD packet to send [00:36:41]OFD Sender: No OFD packet to send [00:36:46]OFD Sender: No OFD packet to send [00:36:51]OFD Sender: No OFD packet to send [00:36:56]OFD Sender: No OFD packet to send [00:37:01]OFD Sender: No OFD packet to send [00:37:06]OFD Sender: No OFD packet to send [00:37:11]OFD Sender: No OFD packet to send [00:37:16]OFD Sender: No OFD packet to send [00:37:21]OFD Sender: No OFD packet to send [00:37:26]OFD Sender: No OFD packet to send [00:37:31]OFD Sender: No OFD packet to send [00:37:36]OFD Sender: No OFD packet to send [00:37:41]OFD Sender: No OFD packet to send [00:37:46]OFD Sender: No OFD packet to send [00:37:51]OFD Sender: No OFD packet to send [00:37:56]OFD Sender: No OFD packet to send [00:38:01]OFD Sender: No OFD packet to send [00:38:06]OFD Sender: No OFD packet to send [00:38:11]OFD Sender: No OFD packet to send [00:38:16]OFD Sender: No OFD packet to send [00:38:21]OFD Sender: No OFD packet to send [00:38:26]OFD Sender: No OFD packet to send [00:38:31]OFD Sender: No OFD packet to send [00:38:36]OFD Sender: No OFD packet to send [00:38:41]OFD Sender: No OFD packet to send [00:38:46]OFD Sender: No OFD packet to send [00:38:51]OFD Sender: No OFD packet to send [00:38:56]OFD Sender: No OFD packet to send [00:39:01]OFD Sender: No OFD packet to send [00:39:06]OFD Sender: No OFD packet to send [00:39:11]OFD Sender: No OFD packet to send [00:39:16]OFD Sender: No OFD packet to send [00:39:21]OFD Sender: No OFD packet to send [00:39:26]OFD Sender: No OFD packet to send [00:39:31]OFD Sender: No OFD packet to send [00:39:36]OFD Sender: No OFD packet to send [00:39:41]OFD Sender: No OFD packet to send [00:39:46]OFD Sender: No OFD packet to send [00:39:51]OFD Sender: No OFD packet to send [00:39:56]OFD Sender: No OFD packet to send [00:40:01]OFD Sender: No OFD packet to send [00:40:06]OFD Sender: No OFD packet to send [00:40:11]OFD Sender: No OFD packet to send [00:40:16]OFD Sender: No OFD packet to send [00:40:21]OFD Sender: No OFD packet to send [00:40:26]OFD Sender: No OFD packet to send [00:40:31]OFD Sender: No OFD packet to send [00:40:36]OFD Sender: No OFD packet to send [00:40:41]OFD Sender: No OFD packet to send [00:40:46]OFD Sender: No OFD packet to send [00:40:52]OFD Sender: No OFD packet to send [00:40:57]OFD Sender: No OFD packet to send [00:41:02]OFD Sender: No OFD packet to send [00:41:07]OFD Sender: No OFD packet to send [00:41:12]OFD Sender: No OFD packet to send [00:41:17]OFD Sender: No OFD packet to send [00:41:22]OFD Sender: No OFD packet to send [00:41:27]OFD Sender: No OFD packet to send [00:41:32]OFD Sender: No OFD packet to send [00:41:37]OFD Sender: No OFD packet to send [00:41:42]OFD Sender: No OFD packet to send [00:41:47]OFD Sender: No OFD packet to send [00:41:52]OFD Sender: No OFD packet to send [00:41:57]OFD Sender: No OFD packet to send [00:42:02]OFD Sender: No OFD packet to send [00:42:07]OFD Sender: No OFD packet to send [00:42:12]OFD Sender: No OFD packet to send [00:42:17]OFD Sender: No OFD packet to send [00:42:22]OFD Sender: No OFD packet to send [00:42:27]OFD Sender: No OFD packet to send [00:42:32]OFD Sender: No OFD packet to send [00:42:37]OFD Sender: No OFD packet to send [00:42:42]OFD Sender: No OFD packet to send [00:42:47]OFD Sender: No OFD packet to send [00:42:52]OFD Sender: No OFD packet to send [00:42:57]OFD Sender: No OFD packet to send [00:43:02]OFD Sender: No OFD packet to send [00:43:07]OFD Sender: No OFD packet to send [00:43:12]OFD Sender: No OFD packet to send [00:43:17]OFD Sender: No OFD packet to send [00:43:22]OFD Sender: No OFD packet to send [00:43:27]OFD Sender: No OFD packet to send [00:43:32]OFD Sender: No OFD packet to send [00:43:37]OFD Sender: No OFD packet to send [00:43:42]OFD Sender: No OFD packet to send [00:43:47]OFD Sender: No OFD packet to send [00:43:52]OFD Sender: No OFD packet to send [00:43:57]OFD Sender: No OFD packet to send [00:44:02]OFD Sender: No OFD packet to send [00:44:07]OFD Sender: No OFD packet to send [00:44:12]OFD Sender: No OFD packet to send [00:44:17]OFD Sender: No OFD packet to send [00:44:22]OFD Sender: No OFD packet to send [00:44:27]OFD Sender: No OFD packet to send [00:44:32]OFD Sender: No OFD packet to send [00:44:37]OFD Sender: No OFD packet to send [00:44:42]OFD Sender: No OFD packet to send [00:44:47]OFD Sender: No OFD packet to send [00:44:52]OFD Sender: No OFD packet to send [00:44:57]OFD Sender: No OFD packet to send [00:45:02]OFD Sender: No OFD packet to send [00:45:07]OFD Sender: No OFD packet to send [00:45:12]OFD Sender: No OFD packet to send [00:45:17]OFD Sender: No OFD packet to send [00:45:22]OFD Sender: No OFD packet to send [00:45:27]OFD Sender: No OFD packet to send [00:45:32]OFD Sender: No OFD packet to send [00:45:37]OFD Sender: No OFD packet to send [00:45:42]OFD Sender: No OFD packet to send [00:45:47]OFD Sender: No OFD packet to send [00:45:52]OFD Sender: No OFD packet to send [00:45:57]OFD Sender: No OFD packet to send [00:46:02]OFD Sender: No OFD packet to send [00:46:07]OFD Sender: No OFD packet to send [00:46:12]OFD Sender: No OFD packet to send [00:46:17]OFD Sender: No OFD packet to send [00:46:22]OFD Sender: No OFD packet to send [00:46:27]OFD Sender: No OFD packet to send [00:46:32]OFD Sender: No OFD packet to send [00:46:37]OFD Sender: No OFD packet to send [00:46:42]OFD Sender: No OFD packet to send [00:46:47]OFD Sender: No OFD packet to send [00:46:52]OFD Sender: No OFD packet to send [00:46:57]OFD Sender: No OFD packet to send [00:47:02]OFD Sender: No OFD packet to send [00:47:07]OFD Sender: No OFD packet to send [00:47:12]OFD Sender: No OFD packet to send [00:47:17]OFD Sender: No OFD packet to send [00:47:22]OFD Sender: No OFD packet to send [00:47:27]OFD Sender: No OFD packet to send [00:47:32]OFD Sender: No OFD packet to send [00:47:37]OFD Sender: No OFD packet to send [00:47:42]OFD Sender: No OFD packet to send [00:47:47]OFD Sender: No OFD packet to send [00:47:52]OFD Sender: No OFD packet to send [00:47:57]OFD Sender: No OFD packet to send [00:48:02]OFD Sender: No OFD packet to send [00:48:07]OFD Sender: No OFD packet to send [00:48:12]OFD Sender: No OFD packet to send [00:48:17]OFD Sender: No OFD packet to send [00:48:22]OFD Sender: No OFD packet to send [00:48:27]OFD Sender: No OFD packet to send [00:48:32]OFD Sender: No OFD packet to send [00:48:37]OFD Sender: No OFD packet to send [00:48:42]OFD Sender: No OFD packet to send [00:48:47]OFD Sender: No OFD packet to send [00:48:52]OFD Sender: No OFD packet to send [00:48:57]OFD Sender: No OFD packet to send [00:49:02]OFD Sender: No OFD packet to send [00:49:07]OFD Sender: No OFD packet to send [00:49:12]OFD Sender: No OFD packet to send [00:49:17]OFD Sender: No OFD packet to send [00:49:22]OFD Sender: No OFD packet to send [00:49:27]OFD Sender: No OFD packet to send [00:49:32]OFD Sender: No OFD packet to send [00:49:37]OFD Sender: No OFD packet to send [00:49:42]OFD Sender: No OFD packet to send [00:49:47]OFD Sender: No OFD packet to send [00:49:52]OFD Sender: No OFD packet to send [00:49:57]OFD Sender: No OFD packet to send [00:50:02]OFD Sender: No OFD packet to send [00:50:07]OFD Sender: No OFD packet to send [00:50:12]OFD Sender: No OFD packet to send [00:50:17]OFD Sender: No OFD packet to send [00:50:22]OFD Sender: No OFD packet to send [00:50:27]OFD Sender: No OFD packet to send [00:50:32]OFD Sender: No OFD packet to send [00:50:37]OFD Sender: No OFD packet to send [00:50:42]OFD Sender: No OFD packet to send [00:50:47]OFD Sender: No OFD packet to send [00:50:52]OFD Sender: No OFD packet to send [00:50:57]OFD Sender: No OFD packet to send [00:51:02]OFD Sender: No OFD packet to send [00:51:07]OFD Sender: No OFD packet to send [00:51:12]OFD Sender: No OFD packet to send [00:51:17]OFD Sender: No OFD packet to send [00:51:22]OFD Sender: No OFD packet to send [00:51:27]OFD Sender: No OFD packet to send [00:51:32]OFD Sender: No OFD packet to send [00:51:37]OFD Sender: No OFD packet to send [00:51:42]OFD Sender: No OFD packet to send [00:51:47]OFD Sender: No OFD packet to send [00:51:52]OFD Sender: No OFD packet to send [00:51:57]OFD Sender: No OFD packet to send [00:52:02]OFD Sender: No OFD packet to send [00:52:07]OFD Sender: No OFD packet to send [00:52:12]OFD Sender: No OFD packet to send [00:52:17]OFD Sender: No OFD packet to send [00:52:22]OFD Sender: No OFD packet to send [00:52:27]OFD Sender: No OFD packet to send [00:52:32]OFD Sender: No OFD packet to send [00:52:37]OFD Sender: No OFD packet to send [00:52:42]OFD Sender: No OFD packet to send [00:52:47]OFD Sender: No OFD packet to send [00:52:52]OFD Sender: No OFD packet to send [00:52:57]OFD Sender: No OFD packet to send [00:53:02]OFD Sender: No OFD packet to send [00:53:07]OFD Sender: No OFD packet to send [00:53:12]OFD Sender: No OFD packet to send [00:53:17]OFD Sender: No OFD packet to send [00:53:22]OFD Sender: No OFD packet to send [00:53:27]OFD Sender: No OFD packet to send [00:53:32]OFD Sender: No OFD packet to send [00:53:37]OFD Sender: No OFD packet to send [00:53:42]OFD Sender: No OFD packet to send [00:53:47]OFD Sender: No OFD packet to send [00:53:52]OFD Sender: No OFD packet to send [00:53:57]OFD Sender: No OFD packet to send [00:54:02]OFD Sender: No OFD packet to send [00:54:07]OFD Sender: No OFD packet to send [00:54:12]OFD Sender: No OFD packet to send [00:54:17]OFD Sender: No OFD packet to send [00:54:22]OFD Sender: No OFD packet to send [00:54:27]OFD Sender: No OFD packet to send [00:54:32]OFD Sender: No OFD packet to send [00:54:37]OFD Sender: No OFD packet to send [00:54:42]OFD Sender: No OFD packet to send [00:54:47]OFD Sender: No OFD packet to send [00:54:52]OFD Sender: No OFD packet to send [00:54:57]OFD Sender: No OFD packet to send [00:55:02]OFD Sender: No OFD packet to send [00:55:07]OFD Sender: No OFD packet to send [00:55:12]OFD Sender: No OFD packet to send [00:55:17]OFD Sender: No OFD packet to send [00:55:22]OFD Sender: No OFD packet to send [00:55:27]OFD Sender: No OFD packet to send [00:55:32]OFD Sender: No OFD packet to send [00:55:37]OFD Sender: No OFD packet to send [00:55:42]OFD Sender: No OFD packet to send [00:55:47]OFD Sender: No OFD packet to send [00:55:52]OFD Sender: No OFD packet to send [00:55:57]OFD Sender: No OFD packet to send [00:56:02]OFD Sender: No OFD packet to send [00:56:07]OFD Sender: No OFD packet to send [00:56:12]OFD Sender: No OFD packet to send [00:56:17]OFD Sender: No OFD packet to send [00:56:22]OFD Sender: No OFD packet to send [00:56:27]OFD Sender: No OFD packet to send [00:56:32]OFD Sender: No OFD packet to send [00:56:37]OFD Sender: No OFD packet to send [00:56:42]OFD Sender: No OFD packet to send [00:56:47]OFD Sender: No OFD packet to send [00:56:52]OFD Sender: No OFD packet to send [00:56:57]OFD Sender: No OFD packet to send [00:57:02]OFD Sender: No OFD packet to send [00:57:07]OFD Sender: No OFD packet to send [00:57:12]OFD Sender: No OFD packet to send [00:57:17]OFD Sender: No OFD packet to send [00:57:22]OFD Sender: No OFD packet to send [00:57:27]OFD Sender: No OFD packet to send [00:57:32]OFD Sender: No OFD packet to send [00:57:37]OFD Sender: No OFD packet to send [00:57:42]OFD Sender: No OFD packet to send [00:57:47]OFD Sender: No OFD packet to send [00:57:52]OFD Sender: No OFD packet to send [00:57:57]OFD Sender: No OFD packet to send [00:58:02]OFD Sender: No OFD packet to send [00:58:07]OFD Sender: No OFD packet to send [00:58:12]OFD Sender: No OFD packet to send [00:58:17]OFD Sender: No OFD packet to send [00:58:22]OFD Sender: No OFD packet to send [00:58:27]OFD Sender: No OFD packet to send [00:58:32]OFD Sender: No OFD packet to send [00:58:37]OFD Sender: No OFD packet to send [00:58:42]OFD Sender: No OFD packet to send [00:58:47]OFD Sender: No OFD packet to send [00:58:52]OFD Sender: No OFD packet to send [00:58:57]OFD Sender: No OFD packet to send [00:59:02]OFD Sender: No OFD packet to send [00:59:07]OFD Sender: No OFD packet to send [00:59:12]OFD Sender: No OFD packet to send [00:59:17]OFD Sender: No OFD packet to send [00:59:22]OFD Sender: No OFD packet to send [00:59:27]OFD Sender: No OFD packet to send [00:59:32]OFD Sender: No OFD packet to send [00:59:37]OFD Sender: No OFD packet to send [00:59:42]OFD Sender: No OFD packet to send [00:59:47]OFD Sender: No OFD packet to send [00:59:52]OFD Sender: No OFD packet to send [00:59:57]OFD Sender: No OFD packet to send [01:00:02]OFD Sender: No OFD packet to send [01:00:07]OFD Sender: No OFD packet to send [01:00:12]OFD Sender: No OFD packet to send [01:00:17]OFD Sender: No OFD packet to send [01:00:22]OFD Sender: No OFD packet to send [01:00:28]OFD Sender: No OFD packet to send [01:00:33]OFD Sender: No OFD packet to send [01:00:38]OFD Sender: No OFD packet to send [01:00:43]OFD Sender: No OFD packet to send [01:00:48]OFD Sender: No OFD packet to send [01:00:53]OFD Sender: No OFD packet to send [01:00:58]OFD Sender: No OFD packet to send [01:01:03]OFD Sender: No OFD packet to send [01:01:08]OFD Sender: No OFD packet to send [01:01:13]OFD Sender: No OFD packet to send [01:01:18]OFD Sender: No OFD packet to send [01:01:23]OFD Sender: No OFD packet to send [01:01:28]OFD Sender: No OFD packet to send [01:01:33]OFD Sender: No OFD packet to send [01:01:38]OFD Sender: No OFD packet to send [01:01:43]OFD Sender: No OFD packet to send [01:01:48]OFD Sender: No OFD packet to send [01:01:53]OFD Sender: No OFD packet to send [01:01:58]OFD Sender: No OFD packet to send [01:02:03]OFD Sender: No OFD packet to send [01:02:08]OFD Sender: No OFD packet to send [01:02:13]OFD Sender: No OFD packet to send [01:02:18]OFD Sender: No OFD packet to send [01:02:23]OFD Sender: No OFD packet to send [01:02:28]OFD Sender: No OFD packet to send [01:02:33]OFD Sender: No OFD packet to send [01:02:38]OFD Sender: No OFD packet to send [01:02:43]OFD Sender: No OFD packet to send [01:02:48]OFD Sender: No OFD packet to send [01:02:53]OFD Sender: No OFD packet to send [01:02:58]OFD Sender: No OFD packet to send [01:03:03]OFD Sender: No OFD packet to send [01:03:08]OFD Sender: No OFD packet to send [01:03:13]OFD Sender: No OFD packet to send [01:03:18]OFD Sender: No OFD packet to send [01:03:23]OFD Sender: No OFD packet to send [01:03:28]OFD Sender: No OFD packet to send [01:03:33]OFD Sender: No OFD packet to send [01:03:38]OFD Sender: No OFD packet to send [01:03:43]OFD Sender: No OFD packet to send [01:03:48]OFD Sender: No OFD packet to send [01:03:53]OFD Sender: No OFD packet to send [01:03:58]OFD Sender: No OFD packet to send [01:04:03]OFD Sender: No OFD packet to send [01:04:08]OFD Sender: No OFD packet to send [01:04:13]OFD Sender: No OFD packet to send [01:04:18]OFD Sender: No OFD packet to send [01:04:23]OFD Sender: No OFD packet to send [01:04:28]OFD Sender: No OFD packet to send [01:04:33]OFD Sender: No OFD packet to send [01:04:38]OFD Sender: No OFD packet to send [01:04:43]OFD Sender: No OFD packet to send [01:04:48]OFD Sender: No OFD packet to send [01:04:53]OFD Sender: No OFD packet to send [01:04:58]OFD Sender: No OFD packet to send [01:05:03]OFD Sender: No OFD packet to send [01:05:08]OFD Sender: No OFD packet to send [01:05:13]OFD Sender: No OFD packet to send [01:05:18]OFD Sender: No OFD packet to send [01:05:23]OFD Sender: No OFD packet to send [01:05:28]OFD Sender: No OFD packet to send [01:05:33]OFD Sender: No OFD packet to send [01:05:38]OFD Sender: No OFD packet to send [01:05:43]OFD Sender: No OFD packet to send [01:05:48]OFD Sender: No OFD packet to send [01:05:53]OFD Sender: No OFD packet to send [01:05:58]OFD Sender: No OFD packet to send [01:06:03]OFD Sender: No OFD packet to send [01:06:08]OFD Sender: No OFD packet to send [01:06:13]OFD Sender: No OFD packet to send [01:06:18]OFD Sender: No OFD packet to send [01:06:23]OFD Sender: No OFD packet to send [01:06:28]OFD Sender: No OFD packet to send [01:06:33]OFD Sender: No OFD packet to send [01:06:38]OFD Sender: No OFD packet to send [01:06:43]OFD Sender: No OFD packet to send [01:06:48]OFD Sender: No OFD packet to send [01:06:53]OFD Sender: No OFD packet to send [01:06:58]OFD Sender: No OFD packet to send [01:07:03]OFD Sender: No OFD packet to send [01:07:08]OFD Sender: No OFD packet to send [01:07:13]OFD Sender: No OFD packet to send [01:07:18]OFD Sender: No OFD packet to send [01:07:23]OFD Sender: No OFD packet to send [01:07:28]OFD Sender: No OFD packet to send [01:07:33]OFD Sender: No OFD packet to send [01:07:38]OFD Sender: No OFD packet to send [01:07:43]OFD Sender: No OFD packet to send [01:07:48]OFD Sender: No OFD packet to send [01:07:53]OFD Sender: No OFD packet to send [01:07:58]OFD Sender: No OFD packet to send [01:08:03]OFD Sender: No OFD packet to send [01:08:08]OFD Sender: No OFD packet to send [01:08:13]OFD Sender: No OFD packet to send [01:08:18]OFD Sender: No OFD packet to send [01:08:23]OFD Sender: No OFD packet to send [01:08:28]OFD Sender: No OFD packet to send [01:08:33]OFD Sender: No OFD packet to send [01:08:38]OFD Sender: No OFD packet to send [01:08:43]OFD Sender: No OFD packet to send [01:08:48]OFD Sender: No OFD packet to send [01:08:53]OFD Sender: No OFD packet to send [01:08:58]OFD Sender: No OFD packet to send [01:09:03]OFD Sender: No OFD packet to send [01:09:08]OFD Sender: No OFD packet to send [01:09:13]OFD Sender: No OFD packet to send [01:09:18]OFD Sender: No OFD packet to send [01:09:23]OFD Sender: No OFD packet to send [01:09:28]OFD Sender: No OFD packet to send [01:09:33]OFD Sender: No OFD packet to send [01:09:38]OFD Sender: No OFD packet to send [01:09:43]OFD Sender: No OFD packet to send [01:09:48]OFD Sender: No OFD packet to send [01:09:53]OFD Sender: No OFD packet to send [01:09:58]OFD Sender: No OFD packet to send [01:10:03]OFD Sender: No OFD packet to send [01:10:08]OFD Sender: No OFD packet to send [01:10:13]OFD Sender: No OFD packet to send [01:10:18]OFD Sender: No OFD packet to send [01:10:23]OFD Sender: No OFD packet to send [01:10:28]OFD Sender: No OFD packet to send [01:10:33]OFD Sender: No OFD packet to send [01:10:38]OFD Sender: No OFD packet to send [01:10:43]OFD Sender: No OFD packet to send [01:10:48]OFD Sender: No OFD packet to send [01:10:53]OFD Sender: No OFD packet to send [01:10:58]OFD Sender: No OFD packet to send [01:11:03]OFD Sender: No OFD packet to send [01:11:08]OFD Sender: No OFD packet to send [01:11:13]OFD Sender: No OFD packet to send [01:11:18]OFD Sender: No OFD packet to send [01:11:23]OFD Sender: No OFD packet to send [01:11:28]OFD Sender: No OFD packet to send [01:11:33]OFD Sender: No OFD packet to send [01:11:38]OFD Sender: No OFD packet to send [01:11:43]OFD Sender: No OFD packet to send [01:11:48]OFD Sender: No OFD packet to send [01:11:53]OFD Sender: No OFD packet to send [01:11:58]OFD Sender: No OFD packet to send [01:12:03]OFD Sender: No OFD packet to send [01:12:08]OFD Sender: No OFD packet to send [01:12:13]OFD Sender: No OFD packet to send [01:12:18]OFD Sender: No OFD packet to send [01:12:23]OFD Sender: No OFD packet to send [01:12:28]OFD Sender: No OFD packet to send [01:12:33]OFD Sender: No OFD packet to send [01:12:38]OFD Sender: No OFD packet to send [01:12:43]OFD Sender: No OFD packet to send [01:12:48]OFD Sender: No OFD packet to send [01:12:53]OFD Sender: No OFD packet to send [01:12:58]OFD Sender: No OFD packet to send [01:13:03]OFD Sender: No OFD packet to send [01:13:08]OFD Sender: No OFD packet to send [01:13:13]OFD Sender: No OFD packet to send [01:13:18]OFD Sender: No OFD packet to send [01:13:23]OFD Sender: No OFD packet to send [01:13:28]OFD Sender: No OFD packet to send [01:13:33]OFD Sender: No OFD packet to send [01:13:38]OFD Sender: No OFD packet to send [01:13:43]OFD Sender: No OFD packet to send [01:13:48]OFD Sender: No OFD packet to send [01:13:53]OFD Sender: No OFD packet to send [01:13:57]accept exits with 9 [01:13:57]New connection [01:13:57]New thread 3067227492 created [01:13:57]Thread 3067084132 joined [01:13:57]Waiting for new connection... [01:13:57] Sock 9.Parse request [01:13:57]Sock 9.Check first char [01:13:57]Sock 9.First char is OK [01:13:57]request: POST /json_proto HTTP/1.0 [01:13:57]Method: POST [01:13:57]URL: /json_proto [01:13:57]Method is POST - this is cgi request [01:13:57]url: /json_proto [01:13:57]query_string will be loaded in cgi processing [01:13:57]execute_cgi json_proto POST (null) [01:13:57]execute_cgi path=json_proto method=POST [01:13:57]POST find Content-Length [01:13:57]Host: 172.17.36.132:8080 [01:13:57]Content-Length: 677 [01:13:57]Content-Type: application/json [01:13:57] [01:13:57]POST finish read [01:13:57]Found Content-Length = 677 [01:13:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706616", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:13:57]execute_script... [01:13:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706616", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:13:57]POST & json_proto [01:13:57]process_json_proto [01:13:57]json parsed OK: [01:13:57]protocol is kg_v1.0 [01:13:57]action value=close_receipt [01:13:57]process_action close_receipt [01:13:57]cmd_close_receipt [01:13:57]MH_GetDate [01:13:57]Write to MH i2c: F0 00 00 46 0D 42 [01:13:57]Write i2c OK [01:13:57]MH_I2C_Read... [01:13:57]Read from MH i2c: F0 [01:13:57]MH_I2C_Read... [01:13:57]Read from MH i2c: F0 09 00 [01:13:57]MH_I2C_Read... [01:13:57]Read from MH i2c: F0 09 00 46 0D 00 57 6A 5E 66 B2 22 B0 64 B8 [01:13:57]GetLastDocTimeStamp 1717460905 [01:13:57]current date 1717463639 [01:13:57]FM_GetShiftState [01:13:57]SAM_PROTO_GetShiftState [01:13:57]wFMCommunicate request_size=4 [01:13:57]MH_SAM_APDU [01:13:57]CAPDU: 80 13 01 00 [01:13:57]Write to MH i2c: E2 08 00 47 0D 80 13 01 00 00 00 00 00 D1 [01:13:57]Write i2c OK [01:13:57]MH_I2C_Read... [01:13:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:13:57]Read from MH i2c: E2 [01:13:57]MH_I2C_Read... [01:13:57]Read from MH i2c: E2 0E 00 [01:13:57]MH_I2C_Read... [01:13:57]Read from MH i2c: E2 0E 00 47 0D 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 6D [01:13:57]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [01:13:57]wFMCommunicate OK [01:13:57]SAM_PROTO_GetShiftState done [01:13:57]FM_GetShiftState done [01:13:57]opened in 1717460590 [01:13:57]opened+sec_in_day 1717546990 [01:13:57]quantity*price = 50041 [01:13:57]sum+1 = 50042 [01:13:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 2 04.06.2024 01:13 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68504 ФПД: 159038356654668 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T011359&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68504&fm=159038356654668&tin=02508201610067®Number=0000000000098096&sum=50000 [01:13:58]StoreToDocumentArchive [01:13:58]shift 325 fd 68504 [01:13:58]save to /storage/0325/doc_00068504 [01:13:58]save last doc name /storage/0325/doc_00068504 to /storage/kkm_last_doc_name [01:13:58]save OK [01:13:58]Clear old archive folders... [01:13:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:13:58]tlvbuf is 00A3A240 [01:13:58]SAM_PROTO_ClearQueue [01:13:58]wFMCommunicate request_size=4 [01:13:58]MH_SAM_APDU [01:13:58]CAPDU: 80 09 00 00 [01:13:58]Write to MH i2c: E2 08 00 54 0D 80 09 00 00 00 00 00 00 D3 [01:13:58]Write i2c OK [01:13:58]MH_I2C_Read... [01:13:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:13:58]Read from MH i2c: E2 [01:13:58]MH_I2C_Read... [01:13:58]Read from MH i2c: E2 03 00 [01:13:58]MH_I2C_Read... [01:13:58]Read from MH i2c: E2 03 00 54 0D 00 90 00 D5 [01:13:58]RAPDU: 90 00 [01:13:58]wFMCommunicate OK [01:13:58]SAM_PROTO_ClearQueue done [01:13:58]KKMCreateOFDPacket [01:13:58]OFDProtocolAddRootSTLVToBuf [01:13:58]FM_MakeSignedData [01:13:58]FM_MakeSignedData [01:13:58]SAM_PROTO_SignData [01:13:58]wFMCommunicate request_size=4 [01:13:58]MH_SAM_APDU [01:13:58]CAPDU: 80 0D 01 02 [01:13:58]Write to MH i2c: E2 08 00 55 0D 80 0D 01 02 00 00 00 00 DB [01:13:58]Write i2c OK [01:13:58]MH_I2C_Read... [01:13:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:13:58]Read from MH i2c: E2 [01:13:58]MH_I2C_Read... [01:13:58]Read from MH i2c: E2 03 00 [01:13:58]MH_I2C_Read... [01:13:58]Read from MH i2c: E2 03 00 55 0D 00 90 00 D6 [01:13:58]RAPDU: 90 00 [01:13:58]wFMCommunicate OK [01:13:58]wFMCommunicate request_size=255 [01:13:58]MH_SAM_APDU [01:13:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 57 6A 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 98 0B 01 00 35 04 06 00 90 [01:13:58]Write to MH i2c: E2 02 01 56 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 57 6A 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 98 0B 01 00 35 04 06 00 90 00 00 69 [01:13:58]Write i2c OK [01:13:58]MH_I2C_Read... [01:13:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:13:59]Read from MH i2c: E2 [01:13:59]MH_I2C_Read... [01:13:59]Read from MH i2c: E2 03 00 [01:13:59]MH_I2C_Read... [01:13:59]Read from MH i2c: E2 03 00 56 0D 00 90 00 D7 [01:13:59]RAPDU: 90 00 [01:13:59]wFMCommunicate OK [01:13:59]wFMCommunicate request_size=10 [01:13:59]MH_SAM_APDU [01:13:59]CAPDU: 80 0D 02 02 05 A5 00 C1 0A 4C [01:13:59]Write to MH i2c: E2 0D 00 57 0D 80 0D 02 02 05 00 A5 00 C1 0A 4C 00 00 A4 [01:13:59]Write i2c OK [01:13:59]MH_I2C_Read... [01:13:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:13:59]Read from MH i2c: E2 [01:13:59]MH_I2C_Read... [01:13:59]Read from MH i2c: E2 03 00 [01:13:59]MH_I2C_Read... [01:13:59]Read from MH i2c: E2 03 00 57 0D 00 90 00 D8 [01:13:59]RAPDU: 90 00 [01:13:59]wFMCommunicate OK [01:13:59]wFMCommunicate request_size=4 [01:13:59]MH_SAM_APDU [01:13:59]CAPDU: 80 0D 03 02 [01:13:59]Write to MH i2c: E2 08 00 58 0D 80 0D 03 02 00 00 00 00 E0 [01:13:59]Write i2c OK [01:13:59]MH_I2C_Read... [01:13:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:13:59]Read from MH i2c: E2 [01:13:59]MH_I2C_Read... [01:13:59]Read from MH i2c: E2 0B 00 [01:13:59]MH_I2C_Read... [01:13:59]Read from MH i2c: E2 0B 00 58 0D 00 57 AC 1F 78 00 61 50 CA 90 00 F6 [01:13:59]RAPDU: 57 AC 1F 78 00 61 50 CA 90 00 [01:13:59]wFMCommunicate OK [01:13:59]SAM_PROTO_SignData done [01:13:59]FM_MakeSignedData done [01:13:59]CreateOFDProtocolMessage [01:13:59]wFMCommunicate request_size=4 [01:13:59]MH_SAM_APDU [01:13:59]CAPDU: 80 11 00 00 [01:13:59]Write to MH i2c: E2 08 00 59 0D 80 11 00 00 00 00 00 00 E0 [01:13:59]Write i2c OK [01:13:59]MH_I2C_Read... [01:13:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:13:59]Read from MH i2c: E2 [01:13:59]MH_I2C_Read... [01:13:59]Read from MH i2c: E2 17 00 [01:13:59]MH_I2C_Read... [01:13:59]Read from MH i2c: E2 17 00 59 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 2B [01:13:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [01:13:59]wFMCommunicate OK [01:13:59]CreateOFDProtocolMessage done [01:13:59]OFDSenderStorePacket 68504 [01:13:59]StoreOFDPacket docnum=68504 [01:13:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 BF A0 07 01 A8 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 57 6A 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 98 0B 01 00 35 04 06 00 90 A5 00 C1 0A 4C 57 AC 1F 78 00 61 50 CA [01:13:59]CheckFolder [01:13:59]dirname=/storage/ofd_packets [01:13:59]CheckFolder done [01:13:59]ProducePacketName [01:13:59]name=ofd_packets/00068504 [01:13:59]NVStorageSaveData ofd_packets/00068504 [01:13:59]File name is /storage/ofd_packets/00068504 [01:13:59]Write 301 bytes [01:13:59]NVStorageSaveData done [01:13:59]OFDSenderStorePacket done [01:13:59]KKMCreateOFDPacket done [01:13:59]NVStorageSaveData kkm_last_timestamp [01:13:59]File name is /storage/kkm_last_timestamp [01:13:59]Write 4 bytes [01:13:59]NVStorageSaveData done [01:13:59]ExternCall_PrintAddStr [01:13:59]wPrintStart [01:13:59]Write to MH i2c: 01 00 00 5A 0D 67 [01:13:59]Write i2c OK [01:13:59]MH_I2C_Read... [01:13:59]Read from MH i2c: 01 [01:13:59]MH_I2C_Read... [01:13:59]Read from MH i2c: 01 07 00 [01:13:59]MH_I2C_Read... [01:13:59]Read from MH i2c: 01 07 00 5A 0D 00 00 00 00 00 FF 0F 7C [01:13:59]RasterBufferAndPrint [01:13:59]line Счет N : (1)706616 [01:13:59]line ИНН: 02508201610067 [01:13:59]line Контрольно-Кассовый Чек [01:13:59]line ПРОДАЖА [01:13:59]line ТРК (МРК, ГНК) : 32 [01:13:59]line Товар: 2710124130 [01:13:59]line Аи-92-К-4 [01:13:59]line 7.480 * 66.90 [01:13:59]line = 500.41 [01:13:59]line НДС 12% НСП 1% [01:13:59]line > о реализуемом товаре [01:13:59]line ОКРУГЛЕНИЕ: -0.41 [01:13:59]line ИТОГО: 500.00 [01:13:59]line Внесено: 500.00 [01:13:59]line СДАЧА: 0.00 [01:13:59]line НСП 1% : 4.43 [01:13:59]line НДС 12% : 53.14 [01:13:59]line Наличными: 500.00 [01:13:59]line Безнал.: 0.00 [01:13:59]line Место: АЗС № 62 "Партнер Нефть" [01:13:59]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [01:13:59]line СНО: Общий режим [01:13:59]line Чек 2 04.06.2024 01:13 [01:13:59]line Смена: 325 ФФД: 1.0 [01:13:59]line ЗНМ: 0300000181 [01:13:59]line РНМ: 0000000000098096 [01:13:59]line Версия ККМ: 001 [01:13:59]line ФМ: 0000000000965400 [01:13:59]line ФД: 68504 [01:13:59]line ФПД: 159038356654668 [01:13:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T011359&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68504&fm=159038356654668&tin=02508201610067®Number=0000000000098096&sum=50000 [01:13:59]OFD Sender: Processing packet 68504 [packets to send 26, broken 25] [01:13:59]ProducePacketName [01:13:59]name=ofd_packets/00068504 [01:13:59]OFD Sender: To server: pG, [01:13:59]CommunicateWithHost lk.salyk.kg:30040 [01:13:59]ConnectInit lk.salyk.kg [01:13:59]written 0, free lines is 4095 [01:13:59]Connected sock=10 [01:13:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 BF A0 07 01 A8 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 57 6A 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 98 0B 01 00 35 04 06 00 90 A5 00 C1 0A 4C 57 AC 1F 78 00 61 50 CA [01:14:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 CB C9 47 00 F9 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 98 0B 01 00 F4 03 04 00 51 11 5E 66 B6 04 01 00 00 FE 7D 11 28 52 72 22 C4 [01:14:00]CommunicateWithHost err = 0 [01:14:00]CheckOFDResponse [01:14:00]1017 (14) - 77093643461234 [01:14:00]1041 (16) - 0000000000965400 [01:14:00]1040 (4) - 68504 [01:14:00]1012 (4) - 03.06.2024 18:54 [01:14:00]1206 (1) - 0 [01:14:00]OFD Sender: Remove packet 68504 [01:14:00]ProducePacketName [01:14:00]name=ofd_packets/00068504 [01:14:00]NVStorageDeleteData [01:14:00]Write to MH i2c: 01 00 00 85 0D 92 [01:14:00]Write i2c OK [01:14:00]MH_I2C_Read... [01:14:00]Read from MH i2c: 01 [01:14:00]MH_I2C_Read... [01:14:00]Read from MH i2c: 01 07 00 [01:14:00]MH_I2C_Read... [01:14:00]Read from MH i2c: 01 07 00 85 0D 00 00 00 00 00 E1 0C 86 [01:14:00]RasterBufferAndPrint [01:14:00]line [01:14:00]line [01:14:00]line [01:14:00]line [01:14:00]line [01:14:00]written 0, free lines is 3303 [01:14:00]MH_Cut [01:14:00]Write to MH i2c: D1 01 00 8C 0D 01 6B [01:14:00]Write i2c OK [01:14:00]MH_I2C_Read... [01:14:00]Read from MH i2c: D1 [01:14:00]MH_I2C_Read... [01:14:00]Read from MH i2c: D1 01 00 [01:14:00]MH_I2C_Read... [01:14:00]Read from MH i2c: D1 01 00 8C 0D 00 6A [01:14:00]Write to MH i2c: 01 00 00 8D 0D 9A [01:14:00]Write i2c OK [01:14:00]MH_I2C_Read... [01:14:00]OFD Sender: No OFD packet to send [01:14:00]*** Cut start [01:14:00]*** Partial cut [01:14:00]*** CUTSNS_PIN = 1 [01:14:01]*** CUTSNS_PIN = 0 [01:14:01]*** Brake cut motor [01:14:01]Read from MH i2c: 01 [01:14:01]MH_I2C_Read... [01:14:01]*** Stop cut motor [01:14:01]*** Cut end [01:14:01]Read from MH i2c: 01 07 00 [01:14:01]MH_I2C_Read... [01:14:01]Read from MH i2c: 01 07 00 8D 0D 00 00 00 00 00 FF 0F AF [01:14:01]process_action close_receipt done [01:14:01]requested_data is exist [01:14:01]produce_requested_data [01:14:01]requested_item fm.sn is exist - process it [01:14:01]wFMCommunicate request_size=4 [01:14:01]MH_SAM_APDU [01:14:01]CAPDU: 80 11 00 00 [01:14:01]Write to MH i2c: E2 08 00 8E 0D 80 11 00 00 00 00 00 00 15 [01:14:01]Write i2c OK [01:14:01]MH_I2C_Read... [01:14:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:14:01]Read from MH i2c: E2 [01:14:01]MH_I2C_Read... [01:14:01]Read from MH i2c: E2 17 00 [01:14:01]MH_I2C_Read... [01:14:01]Read from MH i2c: E2 17 00 8E 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 60 [01:14:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [01:14:01]wFMCommunicate OK [01:14:01]requested_item fd.num is exist - process it [01:14:01]SAM_PROTO_GetFieldsCounters [01:14:01]wFMCommunicate request_size=4 [01:14:01]MH_SAM_APDU [01:14:01]CAPDU: 80 13 00 00 [01:14:01]Write to MH i2c: E2 08 00 8F 0D 80 13 00 00 00 00 00 00 18 [01:14:01]Write i2c OK [01:14:01]MH_I2C_Read... [01:14:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:14:01]Read from MH i2c: E2 [01:14:01]MH_I2C_Read... [01:14:01]Read from MH i2c: E2 62 00 [01:14:01]MH_I2C_Read... [01:14:01]Read from MH i2c: E2 62 00 8F 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 98 0B 01 00 0E 04 04 00 45 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 28 [01:14:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 98 0B 01 00 0E 04 04 00 45 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 [01:14:01]wFMCommunicate OK [01:14:01]SAM_PROTO_GetFieldsCounters done [01:14:01]requested_item shift.num is exist - process it [01:14:01]requested_item shift.opened is exist - process it [01:14:01]req_shift_opened [01:14:01]FM_GetShiftState [01:14:01]SAM_PROTO_GetShiftState [01:14:01]wFMCommunicate request_size=4 [01:14:01]MH_SAM_APDU [01:14:01]CAPDU: 80 13 01 00 [01:14:01]Write to MH i2c: E2 08 00 90 0D 80 13 01 00 00 00 00 00 1A [01:14:01]Write i2c OK [01:14:01]MH_I2C_Read... [01:14:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:14:01]Read from MH i2c: E2 [01:14:01]MH_I2C_Read... [01:14:01]Read from MH i2c: E2 0E 00 [01:14:01]MH_I2C_Read... [01:14:01]Read from MH i2c: E2 0E 00 90 0D 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 B6 [01:14:01]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [01:14:01]wFMCommunicate OK [01:14:01]SAM_PROTO_GetShiftState done [01:14:01]FM_GetShiftState done [01:14:01]req_shift_opened done [01:14:01]requested_item shift.open_date is exist - process it [01:14:01]req_shift_open_date [01:14:01]req_shift_open_date done [01:14:01]produce_requested_data done [01:14:01]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68504,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [01:14:01]process_action_free close_receipt [01:14:01]json_value_free [01:14:01]json_value_free done [01:14:01]process_json_proto returns [01:14:01]Send response to host [01:14:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68504,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [01:14:01]free response buf [01:14:01]execute_script done [01:14:01]execute_script returns [01:14:01]free content buf [01:14:01]Sock 9.Close socket [01:14:01]Sock 9.Thread stoped [01:14:05]OFD Sender: No OFD packet to send [01:14:10]OFD Sender: No OFD packet to send [01:14:15]OFD Sender: No OFD packet to send [01:14:20]OFD Sender: No OFD packet to send [01:14:25]OFD Sender: No OFD packet to send [01:14:30]OFD Sender: No OFD packet to send [01:14:35]OFD Sender: No OFD packet to send [01:14:40]OFD Sender: No OFD packet to send [01:14:45]OFD Sender: No OFD packet to send [01:14:50]OFD Sender: No OFD packet to send [01:14:55]OFD Sender: No OFD packet to send [01:15:00]OFD Sender: No OFD packet to send [01:15:05]OFD Sender: No OFD packet to send [01:15:10]OFD Sender: No OFD packet to send [01:15:15]OFD Sender: No OFD packet to send [01:15:20]OFD Sender: No OFD packet to send [01:15:25]OFD Sender: No OFD packet to send [01:15:30]OFD Sender: No OFD packet to send [01:15:35]OFD Sender: No OFD packet to send [01:15:40]OFD Sender: No OFD packet to send [01:15:45]OFD Sender: No OFD packet to send [01:15:50]OFD Sender: No OFD packet to send [01:15:52]accept exits with 7 [01:15:52]New connection [01:15:52]New thread 3067084132 created [01:15:52]Thread 3067227492 joined [01:15:52]Waiting for new connection... [01:15:52] Sock 7.Parse request [01:15:52]Sock 7.Check first char [01:15:52]Sock 7.First char is OK [01:15:52]request: POST /json_proto HTTP/1.0 [01:15:52]Method: POST [01:15:52]URL: /json_proto [01:15:52]Method is POST - this is cgi request [01:15:52]url: /json_proto [01:15:52]query_string will be loaded in cgi processing [01:15:52]execute_cgi json_proto POST (null) [01:15:52]execute_cgi path=json_proto method=POST [01:15:52]POST find Content-Length [01:15:52]Host: 172.17.36.132:8080 [01:15:52]Content-Length: 841 [01:15:52]Content-Type: application/json [01:15:52] [01:15:52]POST finish read [01:15:52]Found Content-Length = 841 [01:15:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706617", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.000, "sum" : 669.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 669.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:15:52]execute_script... [01:15:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706617", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 10.000, "sum" : 669.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 669.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:15:52]POST & json_proto [01:15:52]process_json_proto [01:15:52]json parsed OK: [01:15:52]protocol is kg_v1.0 [01:15:52]action value=close_receipt [01:15:52]process_action close_receipt [01:15:52]cmd_close_receipt [01:15:52]MH_GetDate [01:15:52]Write to MH i2c: F0 00 00 91 0D 8D [01:15:52]Write i2c OK [01:15:52]MH_I2C_Read... [01:15:52]Read from MH i2c: F0 [01:15:52]MH_I2C_Read... [01:15:52]Read from MH i2c: F0 09 00 [01:15:52]MH_I2C_Read... [01:15:52]Read from MH i2c: F0 09 00 91 0D 00 C9 6A 5E 66 B2 22 B0 64 75 [01:15:52]GetLastDocTimeStamp 1717463639 [01:15:52]current date 1717463753 [01:15:52]FM_GetShiftState [01:15:52]SAM_PROTO_GetShiftState [01:15:52]wFMCommunicate request_size=4 [01:15:52]MH_SAM_APDU [01:15:52]CAPDU: 80 13 01 00 [01:15:52]Write to MH i2c: E2 08 00 92 0D 80 13 01 00 00 00 00 00 1C [01:15:52]Write i2c OK [01:15:52]MH_I2C_Read... [01:15:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:15:52]Read from MH i2c: E2 [01:15:52]MH_I2C_Read... [01:15:52]Read from MH i2c: E2 0E 00 [01:15:52]MH_I2C_Read... [01:15:52]Read from MH i2c: E2 0E 00 92 0D 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 B8 [01:15:52]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [01:15:52]wFMCommunicate OK [01:15:52]SAM_PROTO_GetShiftState done [01:15:52]FM_GetShiftState done [01:15:52]opened in 1717460590 [01:15:52]opened+sec_in_day 1717546990 [01:15:52]quantity*price = 66900 [01:15:52]sum+1 = 66901 [01:15:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 669.00 НСП 1% : 5.92 НДС 12% : 71.04 Наличными: 0.00 Безнал.: 669.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 3 04.06.2024 01:15 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68505 ФПД: 113375031962004 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T011554&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68505&fm=113375031962004&tin=02508201610067®Number=0000000000098096&sum=66900 [01:15:53]StoreToDocumentArchive [01:15:53]shift 325 fd 68505 [01:15:53]save to /storage/0325/doc_00068505 [01:15:53]save last doc name /storage/0325/doc_00068505 to /storage/kkm_last_doc_name [01:15:53]save OK [01:15:53]Clear old archive folders... [01:15:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:15:53]tlvbuf is 009CD400 [01:15:53]SAM_PROTO_ClearQueue [01:15:53]wFMCommunicate request_size=4 [01:15:53]MH_SAM_APDU [01:15:53]CAPDU: 80 09 00 00 [01:15:53]Write to MH i2c: E2 08 00 9F 0D 80 09 00 00 00 00 00 00 1E [01:15:53]Write i2c OK [01:15:53]MH_I2C_Read... [01:15:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:15:53]Read from MH i2c: E2 [01:15:53]MH_I2C_Read... [01:15:53]Read from MH i2c: E2 03 00 [01:15:53]MH_I2C_Read... [01:15:53]Read from MH i2c: E2 03 00 9F 0D 00 90 00 20 [01:15:53]RAPDU: 90 00 [01:15:53]wFMCommunicate OK [01:15:53]SAM_PROTO_ClearQueue done [01:15:53]KKMCreateOFDPacket [01:15:53]OFDProtocolAddRootSTLVToBuf [01:15:53]FM_MakeSignedData [01:15:53]FM_MakeSignedData [01:15:53]SAM_PROTO_SignData [01:15:53]wFMCommunicate request_size=4 [01:15:53]MH_SAM_APDU [01:15:53]CAPDU: 80 0D 01 02 [01:15:53]Write to MH i2c: E2 08 00 A0 0D 80 0D 01 02 00 00 00 00 26 [01:15:53]Write i2c OK [01:15:53]MH_I2C_Read... [01:15:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:15:53]Read from MH i2c: E2 [01:15:53]MH_I2C_Read... [01:15:53]Read from MH i2c: E2 03 00 [01:15:53]MH_I2C_Read... [01:15:53]Read from MH i2c: E2 03 00 A0 0D 00 90 00 21 [01:15:53]RAPDU: 90 00 [01:15:53]wFMCommunicate OK [01:15:53]wFMCommunicate request_size=255 [01:15:53]MH_SAM_APDU [01:15:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 54 05 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 CA 6A 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 99 0B 01 00 35 04 06 00 67 [01:15:53]Write to MH i2c: E2 02 01 A1 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 54 05 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 CA 6A 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 99 0B 01 00 35 04 06 00 67 00 00 29 [01:15:53]Write i2c OK [01:15:53]MH_I2C_Read... [01:15:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:15:53]Read from MH i2c: E2 [01:15:53]MH_I2C_Read... [01:15:53]Read from MH i2c: E2 03 00 [01:15:53]MH_I2C_Read... [01:15:53]Read from MH i2c: E2 03 00 A1 0D 00 90 00 22 [01:15:53]RAPDU: 90 00 [01:15:53]wFMCommunicate OK [01:15:53]wFMCommunicate request_size=10 [01:15:53]MH_SAM_APDU [01:15:53]CAPDU: 80 0D 02 02 05 1D 2E 81 A9 94 [01:15:53]Write to MH i2c: E2 0D 00 A2 0D 80 0D 02 02 05 00 1D 2E 81 A9 94 00 00 3C [01:15:53]Write i2c OK [01:15:53]MH_I2C_Read... [01:15:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:15:53]Read from MH i2c: E2 [01:15:53]MH_I2C_Read... [01:15:53]Read from MH i2c: E2 03 00 [01:15:53]MH_I2C_Read... [01:15:53]Read from MH i2c: E2 03 00 A2 0D 00 90 00 23 [01:15:53]RAPDU: 90 00 [01:15:53]wFMCommunicate OK [01:15:53]wFMCommunicate request_size=4 [01:15:53]MH_SAM_APDU [01:15:53]CAPDU: 80 0D 03 02 [01:15:53]Write to MH i2c: E2 08 00 A3 0D 80 0D 03 02 00 00 00 00 2B [01:15:53]Write i2c OK [01:15:53]MH_I2C_Read... [01:15:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:15:53]Read from MH i2c: E2 [01:15:53]MH_I2C_Read... [01:15:53]Read from MH i2c: E2 0B 00 [01:15:53]MH_I2C_Read... [01:15:53]Read from MH i2c: E2 0B 00 A3 0D 00 08 DF 53 E9 4B 1D EF B2 90 00 58 [01:15:53]RAPDU: 08 DF 53 E9 4B 1D EF B2 90 00 [01:15:53]wFMCommunicate OK [01:15:53]SAM_PROTO_SignData done [01:15:53]FM_MakeSignedData done [01:15:53]CreateOFDProtocolMessage [01:15:53]wFMCommunicate request_size=4 [01:15:53]MH_SAM_APDU [01:15:53]CAPDU: 80 11 00 00 [01:15:53]Write to MH i2c: E2 08 00 A4 0D 80 11 00 00 00 00 00 00 2B [01:15:53]Write i2c OK [01:15:53]MH_I2C_Read... [01:15:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:15:54]Read from MH i2c: E2 [01:15:54]MH_I2C_Read... [01:15:54]Read from MH i2c: E2 17 00 [01:15:54]MH_I2C_Read... [01:15:54]Read from MH i2c: E2 17 00 A4 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 76 [01:15:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [01:15:54]wFMCommunicate OK [01:15:54]CreateOFDProtocolMessage done [01:15:54]OFDSenderStorePacket 68505 [01:15:54]StoreOFDPacket docnum=68505 [01:15:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 B7 9E 07 01 D0 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 54 05 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 CA 6A 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 99 0B 01 00 35 04 06 00 67 1D 2E 81 A9 94 08 DF 53 E9 4B 1D EF B2 [01:15:54]CheckFolder [01:15:54]dirname=/storage/ofd_packets [01:15:54]CheckFolder done [01:15:54]ProducePacketName [01:15:54]name=ofd_packets/00068505 [01:15:54]NVStorageSaveData ofd_packets/00068505 [01:15:54]File name is /storage/ofd_packets/00068505 [01:15:54]Write 301 bytes [01:15:54]NVStorageSaveData done [01:15:54]OFDSenderStorePacket done [01:15:54]KKMCreateOFDPacket done [01:15:54]NVStorageSaveData kkm_last_timestamp [01:15:54]File name is /storage/kkm_last_timestamp [01:15:54]Write 4 bytes [01:15:54]NVStorageSaveData done [01:15:54]ExternCall_PrintAddStr [01:15:54]wPrintStart [01:15:54]Write to MH i2c: 01 00 00 A5 0D B2 [01:15:54]Write i2c OK [01:15:54]MH_I2C_Read... [01:15:54]Read from MH i2c: 01 [01:15:54]MH_I2C_Read... [01:15:54]Read from MH i2c: 01 07 00 [01:15:54]MH_I2C_Read... [01:15:54]Read from MH i2c: 01 07 00 A5 0D 00 00 00 00 00 FF 0F C7 [01:15:54]RasterBufferAndPrint [01:15:54]line Счет N : (1)706617 [01:15:54]line ИНН: 02508201610067 [01:15:54]line Контрольно-Кассовый Чек [01:15:54]line ПРОДАЖА [01:15:54]line ТРК (МРК, ГНК) : 53 [01:15:54]line Товар: 2710124130 [01:15:54]line Аи-92-К-4 [01:15:54]line 10.000 * 66.90 [01:15:54]line = 669.00 [01:15:54]line НДС 12% НСП 1% [01:15:54]line > о реализуемом товаре [01:15:54]line ИТОГО: 669.00 [01:15:54]line НСП 1% : 5.92 [01:15:54]line НДС 12% : 71.04 [01:15:54]line Наличными: 0.00 [01:15:54]line Безнал.: 669.00 [01:15:54]line Место: АЗС № 62 "Партнер Нефть" [01:15:54]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [01:15:54]line СНО: Общий режим [01:15:54]line Чек 3 04.06.2024 01:15 [01:15:54]line Смена: 325 ФФД: 1.0 [01:15:54]line ЗНМ: 0300000181 [01:15:54]line РНМ: 0000000000098096 [01:15:54]line Версия ККМ: 001 [01:15:54]line Платежная система: АКБ Кыргызстан [01:15:54]line ФМ: 0000000000965400 [01:15:54]line ФД: 68505 [01:15:54]line ФПД: 113375031962004 [01:15:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T011554&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68505&fm=113375031962004&tin=02508201610067®Number=0000000000098096&sum=66900 [01:15:54]OFD Sender: Processing packet 68505 [packets to send 26, broken 25] [01:15:54]ProducePacketName [01:15:54]name=ofd_packets/00068505 [01:15:54]OFD Sender: To server: pG, [01:15:54]CommunicateWithHost lk.salyk.kg:30040 [01:15:54]ConnectInit lk.salyk.kg [01:15:54]written 0, free lines is 4095 [01:15:54]Connected sock=10 [01:15:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 B7 9E 07 01 D0 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 54 05 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 CA 6A 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 99 0B 01 00 35 04 06 00 67 1D 2E 81 A9 94 08 DF 53 E9 4B 1D EF B2 [01:15:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 5F AD 47 00 1C 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 99 0B 01 00 F4 03 04 00 C4 11 5E 66 B6 04 01 00 00 89 F5 50 AC B5 47 A1 27 [01:15:54]CommunicateWithHost err = 0 [01:15:54]CheckOFDResponse [01:15:54]1017 (14) - 77093643461234 [01:15:54]1041 (16) - 0000000000965400 [01:15:54]1040 (4) - 68505 [01:15:54]1012 (4) - 03.06.2024 18:56 [01:15:54]1206 (1) - 0 [01:15:54]OFD Sender: Remove packet 68505 [01:15:54]ProducePacketName [01:15:54]name=ofd_packets/00068505 [01:15:54]NVStorageDeleteData [01:15:54]Write to MH i2c: 01 00 00 CF 0D DC [01:15:54]Write i2c OK [01:15:54]MH_I2C_Read... [01:15:54]Read from MH i2c: 01 [01:15:54]MH_I2C_Read... [01:15:54]Read from MH i2c: 01 07 00 [01:15:54]MH_I2C_Read... [01:15:54]Read from MH i2c: 01 07 00 CF 0D 00 00 00 00 00 F1 0C E0 [01:15:54]RasterBufferAndPrint [01:15:54]line [01:15:54]line [01:15:54]line [01:15:54]line [01:15:54]line [01:15:54]written 0, free lines is 3319 [01:15:54]MH_Cut [01:15:54]Write to MH i2c: D1 01 00 D6 0D 01 B5 [01:15:54]Write i2c OK [01:15:54]MH_I2C_Read... [01:15:54]Read from MH i2c: D1 [01:15:54]MH_I2C_Read... [01:15:54]Read from MH i2c: D1 01 00 [01:15:54]MH_I2C_Read... [01:15:54]Read from MH i2c: D1 01 00 D6 0D 00 B4 [01:15:54]Write to MH i2c: 01 00 00 D7 0D E4 [01:15:54]Write i2c OK [01:15:54]MH_I2C_Read... [01:15:55]OFD Sender: No OFD packet to send [01:15:55]*** Cut start [01:15:55]*** Partial cut [01:15:55]*** CUTSNS_PIN = 1 [01:15:55]*** CUTSNS_PIN = 0 [01:15:55]*** Brake cut motor [01:15:56]Read from MH i2c: 01 [01:15:56]MH_I2C_Read... [01:15:56]*** Stop cut motor [01:15:56]*** Cut end [01:15:56]Read from MH i2c: 01 07 00 [01:15:56]MH_I2C_Read... [01:15:56]Read from MH i2c: 01 07 00 D7 0D 00 00 00 00 00 FF 0F F9 [01:15:56]process_action close_receipt done [01:15:56]requested_data is exist [01:15:56]produce_requested_data [01:15:56]requested_item fm.sn is exist - process it [01:15:56]wFMCommunicate request_size=4 [01:15:56]MH_SAM_APDU [01:15:56]CAPDU: 80 11 00 00 [01:15:56]Write to MH i2c: E2 08 00 D8 0D 80 11 00 00 00 00 00 00 5F [01:15:56]Write i2c OK [01:15:56]MH_I2C_Read... [01:15:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:15:56]Read from MH i2c: E2 [01:15:56]MH_I2C_Read... [01:15:56]Read from MH i2c: E2 17 00 [01:15:56]MH_I2C_Read... [01:15:56]Read from MH i2c: E2 17 00 D8 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 AA [01:15:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [01:15:56]wFMCommunicate OK [01:15:56]requested_item fd.num is exist - process it [01:15:56]SAM_PROTO_GetFieldsCounters [01:15:56]wFMCommunicate request_size=4 [01:15:56]MH_SAM_APDU [01:15:56]CAPDU: 80 13 00 00 [01:15:56]Write to MH i2c: E2 08 00 D9 0D 80 13 00 00 00 00 00 00 62 [01:15:56]Write i2c OK [01:15:56]MH_I2C_Read... [01:15:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:15:56]Read from MH i2c: E2 [01:15:56]MH_I2C_Read... [01:15:56]Read from MH i2c: E2 62 00 [01:15:56]MH_I2C_Read... [01:15:56]Read from MH i2c: E2 62 00 D9 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 99 0B 01 00 0E 04 04 00 45 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 76 [01:15:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 99 0B 01 00 0E 04 04 00 45 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 [01:15:56]wFMCommunicate OK [01:15:56]SAM_PROTO_GetFieldsCounters done [01:15:56]requested_item shift.num is exist - process it [01:15:56]requested_item shift.opened is exist - process it [01:15:56]req_shift_opened [01:15:56]FM_GetShiftState [01:15:56]SAM_PROTO_GetShiftState [01:15:56]wFMCommunicate request_size=4 [01:15:56]MH_SAM_APDU [01:15:56]CAPDU: 80 13 01 00 [01:15:56]Write to MH i2c: E2 08 00 DA 0D 80 13 01 00 00 00 00 00 64 [01:15:56]Write i2c OK [01:15:56]MH_I2C_Read... [01:15:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:15:56]Read from MH i2c: E2 [01:15:56]MH_I2C_Read... [01:15:56]Read from MH i2c: E2 0E 00 [01:15:56]MH_I2C_Read... [01:15:56]Read from MH i2c: E2 0E 00 DA 0D 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 00 [01:15:56]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [01:15:56]wFMCommunicate OK [01:15:56]SAM_PROTO_GetShiftState done [01:15:56]FM_GetShiftState done [01:15:56]req_shift_opened done [01:15:56]requested_item shift.open_date is exist - process it [01:15:56]req_shift_open_date [01:15:56]req_shift_open_date done [01:15:56]produce_requested_data done [01:15:56]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68505,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [01:15:56]process_action_free close_receipt [01:15:56]json_value_free [01:15:56]json_value_free done [01:15:56]process_json_proto returns [01:15:56]Send response to host [01:15:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68505,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [01:15:56]free response buf [01:15:56]execute_script done [01:15:56]execute_script returns [01:15:56]free content buf [01:15:56]Sock 7.Close socket [01:15:56]Sock 7.Thread stoped [01:16:00]OFD Sender: No OFD packet to send [01:16:05]OFD Sender: No OFD packet to send [01:16:10]OFD Sender: No OFD packet to send [01:16:15]OFD Sender: No OFD packet to send [01:16:20]OFD Sender: No OFD packet to send [01:16:25]OFD Sender: No OFD packet to send [01:16:30]OFD Sender: No OFD packet to send [01:16:35]OFD Sender: No OFD packet to send [01:16:40]OFD Sender: No OFD packet to send [01:16:45]OFD Sender: No OFD packet to send [01:16:50]OFD Sender: No OFD packet to send [01:16:55]OFD Sender: No OFD packet to send [01:17:00]OFD Sender: No OFD packet to send [01:17:05]OFD Sender: No OFD packet to send [01:17:10]OFD Sender: No OFD packet to send [01:17:15]OFD Sender: No OFD packet to send [01:17:20]OFD Sender: No OFD packet to send [01:17:25]OFD Sender: No OFD packet to send [01:17:30]OFD Sender: No OFD packet to send [01:17:35]OFD Sender: No OFD packet to send [01:17:40]OFD Sender: No OFD packet to send [01:17:45]OFD Sender: No OFD packet to send [01:17:50]OFD Sender: No OFD packet to send [01:17:55]OFD Sender: No OFD packet to send [01:18:00]OFD Sender: No OFD packet to send [01:18:05]OFD Sender: No OFD packet to send [01:18:10]OFD Sender: No OFD packet to send [01:18:15]OFD Sender: No OFD packet to send [01:18:20]OFD Sender: No OFD packet to send [01:18:25]OFD Sender: No OFD packet to send [01:18:30]OFD Sender: No OFD packet to send [01:18:35]OFD Sender: No OFD packet to send [01:18:40]OFD Sender: No OFD packet to send [01:18:45]OFD Sender: No OFD packet to send [01:18:50]OFD Sender: No OFD packet to send [01:18:55]OFD Sender: No OFD packet to send [01:19:00]OFD Sender: No OFD packet to send [01:19:05]OFD Sender: No OFD packet to send [01:19:10]OFD Sender: No OFD packet to send [01:19:15]OFD Sender: No OFD packet to send [01:19:20]OFD Sender: No OFD packet to send [01:19:25]OFD Sender: No OFD packet to send [01:19:30]OFD Sender: No OFD packet to send [01:19:35]OFD Sender: No OFD packet to send [01:19:40]OFD Sender: No OFD packet to send [01:19:45]OFD Sender: No OFD packet to send [01:19:50]OFD Sender: No OFD packet to send [01:19:55]OFD Sender: No OFD packet to send [01:20:00]OFD Sender: No OFD packet to send [01:20:05]OFD Sender: No OFD packet to send [01:20:10]OFD Sender: No OFD packet to send [01:20:15]OFD Sender: No OFD packet to send [01:20:20]OFD Sender: No OFD packet to send [01:20:25]OFD Sender: No OFD packet to send [01:20:30]OFD Sender: No OFD packet to send [01:20:35]OFD Sender: No OFD packet to send [01:20:40]OFD Sender: No OFD packet to send [01:20:45]OFD Sender: No OFD packet to send [01:20:50]OFD Sender: No OFD packet to send [01:20:55]OFD Sender: No OFD packet to send [01:21:00]OFD Sender: No OFD packet to send [01:21:05]OFD Sender: No OFD packet to send [01:21:10]OFD Sender: No OFD packet to send [01:21:15]OFD Sender: No OFD packet to send [01:21:20]OFD Sender: No OFD packet to send [01:21:25]OFD Sender: No OFD packet to send [01:21:30]OFD Sender: No OFD packet to send [01:21:35]OFD Sender: No OFD packet to send [01:21:40]OFD Sender: No OFD packet to send [01:21:45]OFD Sender: No OFD packet to send [01:21:50]OFD Sender: No OFD packet to send [01:21:55]OFD Sender: No OFD packet to send [01:22:00]OFD Sender: No OFD packet to send [01:22:05]OFD Sender: No OFD packet to send [01:22:10]OFD Sender: No OFD packet to send [01:22:15]OFD Sender: No OFD packet to send [01:22:20]OFD Sender: No OFD packet to send [01:22:25]OFD Sender: No OFD packet to send [01:22:30]OFD Sender: No OFD packet to send [01:22:35]OFD Sender: No OFD packet to send [01:22:40]OFD Sender: No OFD packet to send [01:22:45]OFD Sender: No OFD packet to send [01:22:50]OFD Sender: No OFD packet to send [01:22:55]OFD Sender: No OFD packet to send [01:23:00]OFD Sender: No OFD packet to send [01:23:05]OFD Sender: No OFD packet to send [01:23:10]OFD Sender: No OFD packet to send [01:23:15]OFD Sender: No OFD packet to send [01:23:20]OFD Sender: No OFD packet to send [01:23:25]OFD Sender: No OFD packet to send [01:23:30]OFD Sender: No OFD packet to send [01:23:35]OFD Sender: No OFD packet to send [01:23:40]OFD Sender: No OFD packet to send [01:23:45]OFD Sender: No OFD packet to send [01:23:50]OFD Sender: No OFD packet to send [01:23:55]OFD Sender: No OFD packet to send [01:24:00]OFD Sender: No OFD packet to send [01:24:05]OFD Sender: No OFD packet to send [01:24:10]OFD Sender: No OFD packet to send [01:24:15]OFD Sender: No OFD packet to send [01:24:20]OFD Sender: No OFD packet to send [01:24:25]OFD Sender: No OFD packet to send [01:24:30]OFD Sender: No OFD packet to send [01:24:35]OFD Sender: No OFD packet to send [01:24:40]OFD Sender: No OFD packet to send [01:24:45]OFD Sender: No OFD packet to send [01:24:50]OFD Sender: No OFD packet to send [01:24:51]accept exits with 9 [01:24:51]New connection [01:24:51]New thread 3067227492 created [01:24:51]Thread 3067084132 joined [01:24:51]Waiting for new connection... [01:24:51] Sock 9.Parse request [01:24:51]Sock 9.Check first char [01:24:51]Sock 9.First char is OK [01:24:51]request: POST /json_proto HTTP/1.0 [01:24:51]Method: POST [01:24:51]URL: /json_proto [01:24:51]Method is POST - this is cgi request [01:24:51]url: /json_proto [01:24:51]query_string will be loaded in cgi processing [01:24:51]execute_cgi json_proto POST (null) [01:24:51]execute_cgi path=json_proto method=POST [01:24:51]POST find Content-Length [01:24:51]Host: 172.17.36.132:8080 [01:24:51]Content-Length: 843 [01:24:51]Content-Type: application/json [01:24:51] [01:24:51]POST finish read [01:24:51]Found Content-Length = 843 [01:24:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706618", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:24:51]execute_script... [01:24:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706618", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:24:51]POST & json_proto [01:24:51]process_json_proto [01:24:51]json parsed OK: [01:24:51]protocol is kg_v1.0 [01:24:51]action value=close_receipt [01:24:51]process_action close_receipt [01:24:51]cmd_close_receipt [01:24:51]MH_GetDate [01:24:51]Write to MH i2c: F0 00 00 DB 0D D7 [01:24:51]Write i2c OK [01:24:51]MH_I2C_Read... [01:24:51]Read from MH i2c: F0 [01:24:51]MH_I2C_Read... [01:24:51]Read from MH i2c: F0 09 00 [01:24:51]MH_I2C_Read... [01:24:51]Read from MH i2c: F0 09 00 DB 0D 00 E5 6C 5E 66 B2 22 B0 64 DD [01:24:51]GetLastDocTimeStamp 1717463754 [01:24:51]current date 1717464293 [01:24:51]FM_GetShiftState [01:24:51]SAM_PROTO_GetShiftState [01:24:51]wFMCommunicate request_size=4 [01:24:51]MH_SAM_APDU [01:24:51]CAPDU: 80 13 01 00 [01:24:51]Write to MH i2c: E2 08 00 DC 0D 80 13 01 00 00 00 00 00 66 [01:24:51]Write i2c OK [01:24:51]MH_I2C_Read... [01:24:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:24:51]Read from MH i2c: E2 [01:24:51]MH_I2C_Read... [01:24:51]Read from MH i2c: E2 0E 00 [01:24:51]MH_I2C_Read... [01:24:51]Read from MH i2c: E2 0E 00 DC 0D 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 02 [01:24:51]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [01:24:51]wFMCommunicate OK [01:24:51]SAM_PROTO_GetShiftState done [01:24:51]FM_GetShiftState done [01:24:51]opened in 1717460590 [01:24:51]opened+sec_in_day 1717546990 [01:24:51]quantity*price = 100015 [01:24:51]sum+1 = 100017 [01:24:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 4 04.06.2024 01:24 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68506 ФПД: 207065164270398 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T012453&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68506&fm=207065164270398&tin=02508201610067®Number=0000000000098096&sum=100016 [01:24:52]StoreToDocumentArchive [01:24:52]shift 325 fd 68506 [01:24:52]save to /storage/0325/doc_00068506 [01:24:52]save last doc name /storage/0325/doc_00068506 to /storage/kkm_last_doc_name [01:24:52]save OK [01:24:52]Clear old archive folders... [01:24:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:24:52]tlvbuf is 00A3F890 [01:24:52]SAM_PROTO_ClearQueue [01:24:52]wFMCommunicate request_size=4 [01:24:52]MH_SAM_APDU [01:24:52]CAPDU: 80 09 00 00 [01:24:52]Write to MH i2c: E2 08 00 E9 0D 80 09 00 00 00 00 00 00 68 [01:24:52]Write i2c OK [01:24:52]MH_I2C_Read... [01:24:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:24:52]Read from MH i2c: E2 [01:24:52]MH_I2C_Read... [01:24:52]Read from MH i2c: E2 03 00 [01:24:52]MH_I2C_Read... [01:24:52]Read from MH i2c: E2 03 00 E9 0D 00 90 00 6A [01:24:52]RAPDU: 90 00 [01:24:52]wFMCommunicate OK [01:24:52]SAM_PROTO_ClearQueue done [01:24:52]KKMCreateOFDPacket [01:24:52]OFDProtocolAddRootSTLVToBuf [01:24:52]FM_MakeSignedData [01:24:52]FM_MakeSignedData [01:24:52]SAM_PROTO_SignData [01:24:52]wFMCommunicate request_size=4 [01:24:52]MH_SAM_APDU [01:24:52]CAPDU: 80 0D 01 02 [01:24:52]Write to MH i2c: E2 08 00 EA 0D 80 0D 01 02 00 00 00 00 70 [01:24:52]Write i2c OK [01:24:52]MH_I2C_Read... [01:24:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:24:52]Read from MH i2c: E2 [01:24:52]MH_I2C_Read... [01:24:52]Read from MH i2c: E2 03 00 [01:24:52]MH_I2C_Read... [01:24:52]Read from MH i2c: E2 03 00 EA 0D 00 90 00 6B [01:24:52]RAPDU: 90 00 [01:24:52]wFMCommunicate OK [01:24:52]wFMCommunicate request_size=255 [01:24:52]MH_SAM_APDU [01:24: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 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 E5 6C 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 9A 0B 01 00 35 04 06 00 BC [01:24:52]Write to MH i2c: E2 02 01 EB 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 E5 6C 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 9A 0B 01 00 35 04 06 00 BC 00 00 D8 [01:24:52]Write i2c OK [01:24:52]MH_I2C_Read... [01:24:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:24:53]Read from MH i2c: E2 [01:24:53]MH_I2C_Read... [01:24:53]Read from MH i2c: E2 03 00 [01:24:53]MH_I2C_Read... [01:24:53]Read from MH i2c: E2 03 00 EB 0D 00 90 00 6C [01:24:53]RAPDU: 90 00 [01:24:53]wFMCommunicate OK [01:24:53]wFMCommunicate request_size=10 [01:24:53]MH_SAM_APDU [01:24:53]CAPDU: 80 0D 02 02 05 53 1D 8F CB 3E [01:24:53]Write to MH i2c: E2 0D 00 EC 0D 80 0D 02 02 05 00 53 1D 8F CB 3E 00 00 85 [01:24:53]Write i2c OK [01:24:53]MH_I2C_Read... [01:24:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:24:53]Read from MH i2c: E2 [01:24:53]MH_I2C_Read... [01:24:53]Read from MH i2c: E2 03 00 [01:24:53]MH_I2C_Read... [01:24:53]Read from MH i2c: E2 03 00 EC 0D 00 90 00 6D [01:24:53]RAPDU: 90 00 [01:24:53]wFMCommunicate OK [01:24:53]wFMCommunicate request_size=4 [01:24:53]MH_SAM_APDU [01:24:53]CAPDU: 80 0D 03 02 [01:24:53]Write to MH i2c: E2 08 00 ED 0D 80 0D 03 02 00 00 00 00 75 [01:24:53]Write i2c OK [01:24:53]MH_I2C_Read... [01:24:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:24:53]Read from MH i2c: E2 [01:24:53]MH_I2C_Read... [01:24:53]Read from MH i2c: E2 0B 00 [01:24:53]MH_I2C_Read... [01:24:53]Read from MH i2c: E2 0B 00 ED 0D 00 3A 1E 6B E2 C2 20 92 F4 90 00 83 [01:24:53]RAPDU: 3A 1E 6B E2 C2 20 92 F4 90 00 [01:24:53]wFMCommunicate OK [01:24:53]SAM_PROTO_SignData done [01:24:53]FM_MakeSignedData done [01:24:53]CreateOFDProtocolMessage [01:24:53]wFMCommunicate request_size=4 [01:24:53]MH_SAM_APDU [01:24:53]CAPDU: 80 11 00 00 [01:24:53]Write to MH i2c: E2 08 00 EE 0D 80 11 00 00 00 00 00 00 75 [01:24:53]Write i2c OK [01:24:53]MH_I2C_Read... [01:24:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:24:53]Read from MH i2c: E2 [01:24:53]MH_I2C_Read... [01:24:53]Read from MH i2c: E2 17 00 [01:24:53]MH_I2C_Read... [01:24:53]Read from MH i2c: E2 17 00 EE 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 C0 [01:24:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [01:24:53]wFMCommunicate OK [01:24:53]CreateOFDProtocolMessage done [01:24:53]OFDSenderStorePacket 68506 [01:24:53]StoreOFDPacket docnum=68506 [01:24:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 3E 18 07 01 C8 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 E5 6C 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 9A 0B 01 00 35 04 06 00 BC 53 1D 8F CB 3E 3A 1E 6B E2 C2 20 92 F4 [01:24:53]CheckFolder [01:24:53]dirname=/storage/ofd_packets [01:24:53]CheckFolder done [01:24:53]ProducePacketName [01:24:53]name=ofd_packets/00068506 [01:24:53]NVStorageSaveData ofd_packets/00068506 [01:24:53]File name is /storage/ofd_packets/00068506 [01:24:53]Write 301 bytes [01:24:53]NVStorageSaveData done [01:24:53]OFDSenderStorePacket done [01:24:53]KKMCreateOFDPacket done [01:24:53]NVStorageSaveData kkm_last_timestamp [01:24:53]File name is /storage/kkm_last_timestamp [01:24:53]Write 4 bytes [01:24:53]NVStorageSaveData done [01:24:53]ExternCall_PrintAddStr [01:24:53]wPrintStart [01:24:53]Write to MH i2c: 01 00 00 EF 0D FC [01:24:53]Write i2c OK [01:24:53]MH_I2C_Read... [01:24:53]Read from MH i2c: 01 [01:24:53]MH_I2C_Read... [01:24:53]Read from MH i2c: 01 07 00 [01:24:53]MH_I2C_Read... [01:24:53]Read from MH i2c: 01 07 00 EF 0D 00 00 00 00 00 FF 0F 11 [01:24:53]RasterBufferAndPrint [01:24:53]line Счет N : (1)706618 [01:24:53]line ИНН: 02508201610067 [01:24:53]line Контрольно-Кассовый Чек [01:24:53]line ПРОДАЖА [01:24:53]line ТРК (МРК, ГНК) : 42 [01:24:53]line Товар: 2710124130 [01:24:53]line Аи-92-К-4 [01:24:53]line 14.950 * 66.90 [01:24:53]line = 1000.16 [01:24:53]line НДС 12% НСП 1% [01:24:53]line > о реализуемом товаре [01:24:53]line ИТОГО: 1000.16 [01:24:53]line НСП 1% : 8.85 [01:24:53]line НДС 12% : 106.21 [01:24:53]line Наличными: 0.00 [01:24:53]line Безнал.: 1000.16 [01:24:53]line Место: АЗС № 62 "Партнер Нефть" [01:24:53]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [01:24:53]line СНО: Общий режим [01:24:53]line Чек 4 04.06.2024 01:24 [01:24:53]line Смена: 325 ФФД: 1.0 [01:24:53]line ЗНМ: 0300000181 [01:24:53]line РНМ: 0000000000098096 [01:24:53]line Версия ККМ: 001 [01:24:53]line Платежная система: АКБ Кыргызстан [01:24:53]line ФМ: 0000000000965400 [01:24:53]line ФД: 68506 [01:24:53]line ФПД: 207065164270398 [01:24:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T012453&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68506&fm=207065164270398&tin=02508201610067®Number=0000000000098096&sum=100016 [01:24:53]OFD Sender: Processing packet 68506 [packets to send 26, broken 25] [01:24:53]ProducePacketName [01:24:53]name=ofd_packets/00068506 [01:24:53]OFD Sender: To server: pG, [01:24:53]CommunicateWithHost lk.salyk.kg:30040 [01:24:53]ConnectInit lk.salyk.kg [01:24:53]written 0, free lines is 4095 [01:24:53]Connected sock=10 [01:24:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 3E 18 07 01 C8 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 E5 6C 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 9A 0B 01 00 35 04 06 00 BC 53 1D 8F CB 3E 3A 1E 6B E2 C2 20 92 F4 [01:24:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 B9 1E 47 00 78 E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 9A 0B 01 00 F4 03 04 00 DF 13 5E 66 B6 04 01 00 00 AE BD 63 CE 11 2E E5 9D [01:24:53]CommunicateWithHost err = 0 [01:24:53]CheckOFDResponse [01:24:53]1017 (14) - 77093643461234 [01:24:53]1041 (16) - 0000000000965400 [01:24:53]1040 (4) - 68506 [01:24:53]1012 (4) - 03.06.2024 19:05 [01:24:53]1206 (1) - 0 [01:24:53]OFD Sender: Remove packet 68506 [01:24:53]ProducePacketName [01:24:53]name=ofd_packets/00068506 [01:24:53]NVStorageDeleteData [01:24:54]Write to MH i2c: 01 00 00 19 0E 27 [01:24:54]Write i2c OK [01:24:54]MH_I2C_Read... [01:24:54]Read from MH i2c: 01 [01:24:54]MH_I2C_Read... [01:24:54]Read from MH i2c: 01 07 00 [01:24:54]MH_I2C_Read... [01:24:54]Read from MH i2c: 01 07 00 19 0E 00 00 00 00 00 EC 0C 26 [01:24:54]RasterBufferAndPrint [01:24:54]line [01:24:54]line [01:24:54]line [01:24:54]line [01:24:54]line [01:24:54]written 0, free lines is 3315 [01:24:54]MH_Cut [01:24:54]Write to MH i2c: D1 01 00 20 0E 01 00 [01:24:54]Write i2c OK [01:24:54]MH_I2C_Read... [01:24:54]Read from MH i2c: D1 [01:24:54]MH_I2C_Read... [01:24:54]Read from MH i2c: D1 01 00 [01:24:54]MH_I2C_Read... [01:24:54]Read from MH i2c: D1 01 00 20 0E 00 FF [01:24:54]Write to MH i2c: 01 00 00 21 0E 2F [01:24:54]Write i2c OK [01:24:54]MH_I2C_Read... [01:24:54]OFD Sender: No OFD packet to send [01:24:54]*** Cut start [01:24:54]*** Partial cut [01:24:54]*** CUTSNS_PIN = 1 [01:24:54]*** CUTSNS_PIN = 0 [01:24:55]*** Brake cut motor [01:24:55]Read from MH i2c: 01 [01:24:55]MH_I2C_Read... [01:24:55]*** Stop cut motor [01:24:55]*** Cut end [01:24:55]Read from MH i2c: 01 07 00 [01:24:55]MH_I2C_Read... [01:24:55]Read from MH i2c: 01 07 00 21 0E 00 00 00 00 00 FF 0F 44 [01:24:55]process_action close_receipt done [01:24:55]requested_data is exist [01:24:55]produce_requested_data [01:24:55]requested_item fm.sn is exist - process it [01:24:55]wFMCommunicate request_size=4 [01:24:55]MH_SAM_APDU [01:24:55]CAPDU: 80 11 00 00 [01:24:55]Write to MH i2c: E2 08 00 22 0E 80 11 00 00 00 00 00 00 AA [01:24:55]Write i2c OK [01:24:55]MH_I2C_Read... [01:24:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:24:55]Read from MH i2c: E2 [01:24:55]MH_I2C_Read... [01:24:55]Read from MH i2c: E2 17 00 [01:24:55]MH_I2C_Read... [01:24:55]Read from MH i2c: E2 17 00 22 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 F5 [01:24:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [01:24:55]wFMCommunicate OK [01:24:55]requested_item fd.num is exist - process it [01:24:55]SAM_PROTO_GetFieldsCounters [01:24:55]wFMCommunicate request_size=4 [01:24:55]MH_SAM_APDU [01:24:55]CAPDU: 80 13 00 00 [01:24:55]Write to MH i2c: E2 08 00 23 0E 80 13 00 00 00 00 00 00 AD [01:24:55]Write i2c OK [01:24:55]MH_I2C_Read... [01:24:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:24:55]Read from MH i2c: E2 [01:24:55]MH_I2C_Read... [01:24:55]Read from MH i2c: E2 62 00 [01:24:55]MH_I2C_Read... [01:24:55]Read from MH i2c: E2 62 00 23 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 9A 0B 01 00 0E 04 04 00 45 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 C5 [01:24:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 9A 0B 01 00 0E 04 04 00 45 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 [01:24:55]wFMCommunicate OK [01:24:55]SAM_PROTO_GetFieldsCounters done [01:24:55]requested_item shift.num is exist - process it [01:24:55]requested_item shift.opened is exist - process it [01:24:55]req_shift_opened [01:24:55]FM_GetShiftState [01:24:55]SAM_PROTO_GetShiftState [01:24:55]wFMCommunicate request_size=4 [01:24:55]MH_SAM_APDU [01:24:55]CAPDU: 80 13 01 00 [01:24:55]Write to MH i2c: E2 08 00 24 0E 80 13 01 00 00 00 00 00 AF [01:24:55]Write i2c OK [01:24:55]MH_I2C_Read... [01:24:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:24:55]Read from MH i2c: E2 [01:24:55]MH_I2C_Read... [01:24:55]Read from MH i2c: E2 0E 00 [01:24:55]MH_I2C_Read... [01:24:55]Read from MH i2c: E2 0E 00 24 0E 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 4B [01:24:55]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [01:24:55]wFMCommunicate OK [01:24:55]SAM_PROTO_GetShiftState done [01:24:55]FM_GetShiftState done [01:24:55]req_shift_opened done [01:24:55]requested_item shift.open_date is exist - process it [01:24:55]req_shift_open_date [01:24:55]req_shift_open_date done [01:24:55]produce_requested_data done [01:24:55]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68506,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [01:24:55]process_action_free close_receipt [01:24:55]json_value_free [01:24:55]json_value_free done [01:24:55]process_json_proto returns [01:24:55]Send response to host [01:24:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68506,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [01:24:55]free response buf [01:24:55]execute_script done [01:24:55]execute_script returns [01:24:55]free content buf [01:24:55]Sock 9.Close socket [01:24:55]Sock 9.Thread stoped [01:24:59]OFD Sender: No OFD packet to send [01:25:04]OFD Sender: No OFD packet to send [01:25:09]OFD Sender: No OFD packet to send [01:25:14]OFD Sender: No OFD packet to send [01:25:19]OFD Sender: No OFD packet to send [01:25:24]OFD Sender: No OFD packet to send [01:25:29]OFD Sender: No OFD packet to send [01:25:34]OFD Sender: No OFD packet to send [01:25:39]OFD Sender: No OFD packet to send [01:25:44]OFD Sender: No OFD packet to send [01:25:49]OFD Sender: No OFD packet to send [01:25:54]OFD Sender: No OFD packet to send [01:25:59]OFD Sender: No OFD packet to send [01:26:04]OFD Sender: No OFD packet to send [01:26:09]OFD Sender: No OFD packet to send [01:26:14]OFD Sender: No OFD packet to send [01:26:19]OFD Sender: No OFD packet to send [01:26:24]OFD Sender: No OFD packet to send [01:26:29]OFD Sender: No OFD packet to send [01:26:34]OFD Sender: No OFD packet to send [01:26:39]OFD Sender: No OFD packet to send [01:26:44]OFD Sender: No OFD packet to send [01:26:49]OFD Sender: No OFD packet to send [01:26:54]OFD Sender: No OFD packet to send [01:26:59]OFD Sender: No OFD packet to send [01:27:04]OFD Sender: No OFD packet to send [01:27:09]OFD Sender: No OFD packet to send [01:27:14]OFD Sender: No OFD packet to send [01:27:19]OFD Sender: No OFD packet to send [01:27:24]OFD Sender: No OFD packet to send [01:27:29]OFD Sender: No OFD packet to send [01:27:34]OFD Sender: No OFD packet to send [01:27:39]OFD Sender: No OFD packet to send [01:27:44]OFD Sender: No OFD packet to send [01:27:49]OFD Sender: No OFD packet to send [01:27:54]OFD Sender: No OFD packet to send [01:27:59]OFD Sender: No OFD packet to send [01:28:04]OFD Sender: No OFD packet to send [01:28:09]OFD Sender: No OFD packet to send [01:28:14]OFD Sender: No OFD packet to send [01:28:19]OFD Sender: No OFD packet to send [01:28:24]OFD Sender: No OFD packet to send [01:28:29]OFD Sender: No OFD packet to send [01:28:34]OFD Sender: No OFD packet to send [01:28:39]OFD Sender: No OFD packet to send [01:28:44]OFD Sender: No OFD packet to send [01:28:49]OFD Sender: No OFD packet to send [01:28:54]OFD Sender: No OFD packet to send [01:28:59]OFD Sender: No OFD packet to send [01:29:04]OFD Sender: No OFD packet to send [01:29:09]OFD Sender: No OFD packet to send [01:29:14]OFD Sender: No OFD packet to send [01:29:19]OFD Sender: No OFD packet to send [01:29:24]OFD Sender: No OFD packet to send [01:29:29]OFD Sender: No OFD packet to send [01:29:34]OFD Sender: No OFD packet to send [01:29:39]OFD Sender: No OFD packet to send [01:29:44]OFD Sender: No OFD packet to send [01:29:49]OFD Sender: No OFD packet to send [01:29:54]OFD Sender: No OFD packet to send [01:29:59]OFD Sender: No OFD packet to send [01:30:04]OFD Sender: No OFD packet to send [01:30:09]OFD Sender: No OFD packet to send [01:30:14]OFD Sender: No OFD packet to send [01:30:19]OFD Sender: No OFD packet to send [01:30:24]OFD Sender: No OFD packet to send [01:30:29]OFD Sender: No OFD packet to send [01:30:34]OFD Sender: No OFD packet to send [01:30:39]OFD Sender: No OFD packet to send [01:30:44]OFD Sender: No OFD packet to send [01:30:49]OFD Sender: No OFD packet to send [01:30:54]OFD Sender: No OFD packet to send [01:30:59]OFD Sender: No OFD packet to send [01:31:04]OFD Sender: No OFD packet to send [01:31:09]OFD Sender: No OFD packet to send [01:31:14]OFD Sender: No OFD packet to send [01:31:19]OFD Sender: No OFD packet to send [01:31:24]OFD Sender: No OFD packet to send [01:31:29]OFD Sender: No OFD packet to send [01:31:34]OFD Sender: No OFD packet to send [01:31:39]OFD Sender: No OFD packet to send [01:31:44]OFD Sender: No OFD packet to send [01:31:49]OFD Sender: No OFD packet to send [01:31:54]OFD Sender: No OFD packet to send [01:31:59]OFD Sender: No OFD packet to send [01:32:04]OFD Sender: No OFD packet to send [01:32:09]OFD Sender: No OFD packet to send [01:32:14]OFD Sender: No OFD packet to send [01:32:19]OFD Sender: No OFD packet to send [01:32:24]OFD Sender: No OFD packet to send [01:32:29]OFD Sender: No OFD packet to send [01:32:34]OFD Sender: No OFD packet to send [01:32:39]OFD Sender: No OFD packet to send [01:32:44]OFD Sender: No OFD packet to send [01:32:49]OFD Sender: No OFD packet to send [01:32:54]OFD Sender: No OFD packet to send [01:32:59]OFD Sender: No OFD packet to send [01:33:04]OFD Sender: No OFD packet to send [01:33:09]OFD Sender: No OFD packet to send [01:33:14]OFD Sender: No OFD packet to send [01:33:19]OFD Sender: No OFD packet to send [01:33:24]OFD Sender: No OFD packet to send [01:33:29]OFD Sender: No OFD packet to send [01:33:34]OFD Sender: No OFD packet to send [01:33:39]OFD Sender: No OFD packet to send [01:33:44]OFD Sender: No OFD packet to send [01:33:49]OFD Sender: No OFD packet to send [01:33:54]OFD Sender: No OFD packet to send [01:33:59]OFD Sender: No OFD packet to send [01:34:04]OFD Sender: No OFD packet to send [01:34:09]OFD Sender: No OFD packet to send [01:34:14]OFD Sender: No OFD packet to send [01:34:19]OFD Sender: No OFD packet to send [01:34:24]OFD Sender: No OFD packet to send [01:34:29]OFD Sender: No OFD packet to send [01:34:34]OFD Sender: No OFD packet to send [01:34:39]OFD Sender: No OFD packet to send [01:34:44]OFD Sender: No OFD packet to send [01:34:49]OFD Sender: No OFD packet to send [01:34:54]OFD Sender: No OFD packet to send [01:34:59]OFD Sender: No OFD packet to send [01:35:04]OFD Sender: No OFD packet to send [01:35:09]OFD Sender: No OFD packet to send [01:35:14]OFD Sender: No OFD packet to send [01:35:19]OFD Sender: No OFD packet to send [01:35:24]OFD Sender: No OFD packet to send [01:35:29]OFD Sender: No OFD packet to send [01:35:34]OFD Sender: No OFD packet to send [01:35:39]OFD Sender: No OFD packet to send [01:35:44]OFD Sender: No OFD packet to send [01:35:49]OFD Sender: No OFD packet to send [01:35:54]OFD Sender: No OFD packet to send [01:35:59]OFD Sender: No OFD packet to send [01:36:04]OFD Sender: No OFD packet to send [01:36:09]OFD Sender: No OFD packet to send [01:36:14]OFD Sender: No OFD packet to send [01:36:19]OFD Sender: No OFD packet to send [01:36:24]OFD Sender: No OFD packet to send [01:36:29]OFD Sender: No OFD packet to send [01:36:35]OFD Sender: No OFD packet to send [01:36:40]OFD Sender: No OFD packet to send [01:36:45]OFD Sender: No OFD packet to send [01:36:50]OFD Sender: No OFD packet to send [01:36:55]OFD Sender: No OFD packet to send [01:37:00]OFD Sender: No OFD packet to send [01:37:05]OFD Sender: No OFD packet to send [01:37:10]OFD Sender: No OFD packet to send [01:37:15]OFD Sender: No OFD packet to send [01:37:20]OFD Sender: No OFD packet to send [01:37:25]OFD Sender: No OFD packet to send [01:37:30]OFD Sender: No OFD packet to send [01:37:35]OFD Sender: No OFD packet to send [01:37:40]OFD Sender: No OFD packet to send [01:37:45]OFD Sender: No OFD packet to send [01:37:50]OFD Sender: No OFD packet to send [01:37:55]OFD Sender: No OFD packet to send [01:38:00]OFD Sender: No OFD packet to send [01:38:05]OFD Sender: No OFD packet to send [01:38:10]OFD Sender: No OFD packet to send [01:38:15]OFD Sender: No OFD packet to send [01:38:20]OFD Sender: No OFD packet to send [01:38:25]OFD Sender: No OFD packet to send [01:38:30]OFD Sender: No OFD packet to send [01:38:35]OFD Sender: No OFD packet to send [01:38:40]OFD Sender: No OFD packet to send [01:38:45]OFD Sender: No OFD packet to send [01:38:50]OFD Sender: No OFD packet to send [01:38:55]OFD Sender: No OFD packet to send [01:39:00]OFD Sender: No OFD packet to send [01:39:05]OFD Sender: No OFD packet to send [01:39:10]OFD Sender: No OFD packet to send [01:39:15]OFD Sender: No OFD packet to send [01:39:20]OFD Sender: No OFD packet to send [01:39:25]OFD Sender: No OFD packet to send [01:39:30]OFD Sender: No OFD packet to send [01:39:35]OFD Sender: No OFD packet to send [01:39:40]OFD Sender: No OFD packet to send [01:39:45]OFD Sender: No OFD packet to send [01:39:50]OFD Sender: No OFD packet to send [01:39:55]OFD Sender: No OFD packet to send [01:40:00]OFD Sender: No OFD packet to send [01:40:05]OFD Sender: No OFD packet to send [01:40:10]OFD Sender: No OFD packet to send [01:40:15]OFD Sender: No OFD packet to send [01:40:20]OFD Sender: No OFD packet to send [01:40:25]OFD Sender: No OFD packet to send [01:40:30]OFD Sender: No OFD packet to send [01:40:35]OFD Sender: No OFD packet to send [01:40:40]OFD Sender: No OFD packet to send [01:40:45]OFD Sender: No OFD packet to send [01:40:50]OFD Sender: No OFD packet to send [01:40:55]OFD Sender: No OFD packet to send [01:41:00]OFD Sender: No OFD packet to send [01:41:05]OFD Sender: No OFD packet to send [01:41:10]OFD Sender: No OFD packet to send [01:41:15]OFD Sender: No OFD packet to send [01:41:20]OFD Sender: No OFD packet to send [01:41:25]OFD Sender: No OFD packet to send [01:41:30]OFD Sender: No OFD packet to send [01:41:35]OFD Sender: No OFD packet to send [01:41:40]OFD Sender: No OFD packet to send [01:41:45]OFD Sender: No OFD packet to send [01:41:50]OFD Sender: No OFD packet to send [01:41:55]OFD Sender: No OFD packet to send [01:42:00]OFD Sender: No OFD packet to send [01:42:05]OFD Sender: No OFD packet to send [01:42:10]OFD Sender: No OFD packet to send [01:42:15]OFD Sender: No OFD packet to send [01:42:20]OFD Sender: No OFD packet to send [01:42:25]OFD Sender: No OFD packet to send [01:42:30]OFD Sender: No OFD packet to send [01:42:35]OFD Sender: No OFD packet to send [01:42:40]OFD Sender: No OFD packet to send [01:42:45]OFD Sender: No OFD packet to send [01:42:50]OFD Sender: No OFD packet to send [01:42:55]OFD Sender: No OFD packet to send [01:43:00]OFD Sender: No OFD packet to send [01:43:05]OFD Sender: No OFD packet to send [01:43:10]OFD Sender: No OFD packet to send [01:43:15]OFD Sender: No OFD packet to send [01:43:20]OFD Sender: No OFD packet to send [01:43:25]OFD Sender: No OFD packet to send [01:43:30]OFD Sender: No OFD packet to send [01:43:35]OFD Sender: No OFD packet to send [01:43:40]OFD Sender: No OFD packet to send [01:43:45]OFD Sender: No OFD packet to send [01:43:50]OFD Sender: No OFD packet to send [01:43:55]OFD Sender: No OFD packet to send [01:44:00]OFD Sender: No OFD packet to send [01:44:05]OFD Sender: No OFD packet to send [01:44:10]OFD Sender: No OFD packet to send [01:44:15]OFD Sender: No OFD packet to send [01:44:20]OFD Sender: No OFD packet to send [01:44:25]OFD Sender: No OFD packet to send [01:44:30]OFD Sender: No OFD packet to send [01:44:35]OFD Sender: No OFD packet to send [01:44:40]OFD Sender: No OFD packet to send [01:44:45]OFD Sender: No OFD packet to send [01:44:50]OFD Sender: No OFD packet to send [01:44:55]OFD Sender: No OFD packet to send [01:45:00]OFD Sender: No OFD packet to send [01:45:05]OFD Sender: No OFD packet to send [01:45:10]OFD Sender: No OFD packet to send [01:45:15]OFD Sender: No OFD packet to send [01:45:20]OFD Sender: No OFD packet to send [01:45:25]OFD Sender: No OFD packet to send [01:45:30]OFD Sender: No OFD packet to send [01:45:35]OFD Sender: No OFD packet to send [01:45:40]OFD Sender: No OFD packet to send [01:45:45]OFD Sender: No OFD packet to send [01:45:50]OFD Sender: No OFD packet to send [01:45:55]OFD Sender: No OFD packet to send [01:46:00]OFD Sender: No OFD packet to send [01:46:05]OFD Sender: No OFD packet to send [01:46:10]OFD Sender: No OFD packet to send [01:46:15]OFD Sender: No OFD packet to send [01:46:20]OFD Sender: No OFD packet to send [01:46:25]OFD Sender: No OFD packet to send [01:46:30]OFD Sender: No OFD packet to send [01:46:35]OFD Sender: No OFD packet to send [01:46:40]OFD Sender: No OFD packet to send [01:46:45]OFD Sender: No OFD packet to send [01:46:50]OFD Sender: No OFD packet to send [01:46:55]OFD Sender: No OFD packet to send [01:47:00]OFD Sender: No OFD packet to send [01:47:05]OFD Sender: No OFD packet to send [01:47:10]OFD Sender: No OFD packet to send [01:47:15]OFD Sender: No OFD packet to send [01:47:20]OFD Sender: No OFD packet to send [01:47:25]OFD Sender: No OFD packet to send [01:47:30]OFD Sender: No OFD packet to send [01:47:35]OFD Sender: No OFD packet to send [01:47:40]OFD Sender: No OFD packet to send [01:47:45]OFD Sender: No OFD packet to send [01:47:50]OFD Sender: No OFD packet to send [01:47:55]OFD Sender: No OFD packet to send [01:48:00]OFD Sender: No OFD packet to send [01:48:05]OFD Sender: No OFD packet to send [01:48:10]OFD Sender: No OFD packet to send [01:48:15]OFD Sender: No OFD packet to send [01:48:20]OFD Sender: No OFD packet to send [01:48:25]OFD Sender: No OFD packet to send [01:48:30]OFD Sender: No OFD packet to send [01:48:35]OFD Sender: No OFD packet to send [01:48:40]OFD Sender: No OFD packet to send [01:48:45]OFD Sender: No OFD packet to send [01:48:50]OFD Sender: No OFD packet to send [01:48:55]OFD Sender: No OFD packet to send [01:49:00]OFD Sender: No OFD packet to send [01:49:05]OFD Sender: No OFD packet to send [01:49:10]OFD Sender: No OFD packet to send [01:49:15]OFD Sender: No OFD packet to send [01:49:20]OFD Sender: No OFD packet to send [01:49:25]OFD Sender: No OFD packet to send [01:49:30]OFD Sender: No OFD packet to send [01:49:35]OFD Sender: No OFD packet to send [01:49:40]OFD Sender: No OFD packet to send [01:49:45]OFD Sender: No OFD packet to send [01:49:50]OFD Sender: No OFD packet to send [01:49:55]OFD Sender: No OFD packet to send [01:50:00]OFD Sender: No OFD packet to send [01:50:05]OFD Sender: No OFD packet to send [01:50:10]OFD Sender: No OFD packet to send [01:50:15]OFD Sender: No OFD packet to send [01:50:20]OFD Sender: No OFD packet to send [01:50:25]OFD Sender: No OFD packet to send [01:50:30]OFD Sender: No OFD packet to send [01:50:35]OFD Sender: No OFD packet to send [01:50:40]OFD Sender: No OFD packet to send [01:50:45]OFD Sender: No OFD packet to send [01:50:50]OFD Sender: No OFD packet to send [01:50:55]OFD Sender: No OFD packet to send [01:51:00]OFD Sender: No OFD packet to send [01:51:05]OFD Sender: No OFD packet to send [01:51:10]OFD Sender: No OFD packet to send [01:51:15]OFD Sender: No OFD packet to send [01:51:20]OFD Sender: No OFD packet to send [01:51:25]OFD Sender: No OFD packet to send [01:51:30]OFD Sender: No OFD packet to send [01:51:35]OFD Sender: No OFD packet to send [01:51:40]OFD Sender: No OFD packet to send [01:51:45]OFD Sender: No OFD packet to send [01:51:50]OFD Sender: No OFD packet to send [01:51:55]OFD Sender: No OFD packet to send [01:52:00]OFD Sender: No OFD packet to send [01:52:05]OFD Sender: No OFD packet to send [01:52:10]OFD Sender: No OFD packet to send [01:52:15]OFD Sender: No OFD packet to send [01:52:20]OFD Sender: No OFD packet to send [01:52:25]OFD Sender: No OFD packet to send [01:52:30]OFD Sender: No OFD packet to send [01:52:35]OFD Sender: No OFD packet to send [01:52:40]OFD Sender: No OFD packet to send [01:52:45]OFD Sender: No OFD packet to send [01:52:50]OFD Sender: No OFD packet to send [01:52:55]OFD Sender: No OFD packet to send [01:53:00]OFD Sender: No OFD packet to send [01:53:05]OFD Sender: No OFD packet to send [01:53:10]OFD Sender: No OFD packet to send [01:53:15]OFD Sender: No OFD packet to send [01:53:20]OFD Sender: No OFD packet to send [01:53:25]OFD Sender: No OFD packet to send [01:53:30]OFD Sender: No OFD packet to send [01:53:35]OFD Sender: No OFD packet to send [01:53:40]OFD Sender: No OFD packet to send [01:53:45]OFD Sender: No OFD packet to send [01:53:50]OFD Sender: No OFD packet to send [01:53:55]OFD Sender: No OFD packet to send [01:54:00]OFD Sender: No OFD packet to send [01:54:05]OFD Sender: No OFD packet to send [01:54:10]OFD Sender: No OFD packet to send [01:54:15]OFD Sender: No OFD packet to send [01:54:20]OFD Sender: No OFD packet to send [01:54:25]OFD Sender: No OFD packet to send [01:54:30]OFD Sender: No OFD packet to send [01:54:35]OFD Sender: No OFD packet to send [01:54:40]OFD Sender: No OFD packet to send [01:54:45]OFD Sender: No OFD packet to send [01:54:50]OFD Sender: No OFD packet to send [01:54:55]OFD Sender: No OFD packet to send [01:55:00]OFD Sender: No OFD packet to send [01:55:05]OFD Sender: No OFD packet to send [01:55:10]OFD Sender: No OFD packet to send [01:55:15]OFD Sender: No OFD packet to send [01:55:20]OFD Sender: No OFD packet to send [01:55:25]OFD Sender: No OFD packet to send [01:55:30]OFD Sender: No OFD packet to send [01:55:35]OFD Sender: No OFD packet to send [01:55:40]OFD Sender: No OFD packet to send [01:55:45]OFD Sender: No OFD packet to send [01:55:50]OFD Sender: No OFD packet to send [01:55:56]OFD Sender: No OFD packet to send [01:56:01]OFD Sender: No OFD packet to send [01:56:06]OFD Sender: No OFD packet to send [01:56:11]OFD Sender: No OFD packet to send [01:56:16]OFD Sender: No OFD packet to send [01:56:21]OFD Sender: No OFD packet to send [01:56:26]OFD Sender: No OFD packet to send [01:56:31]OFD Sender: No OFD packet to send [01:56:36]OFD Sender: No OFD packet to send [01:56:41]OFD Sender: No OFD packet to send [01:56:46]OFD Sender: No OFD packet to send [01:56:51]OFD Sender: No OFD packet to send [01:56:56]OFD Sender: No OFD packet to send [01:57:01]OFD Sender: No OFD packet to send [01:57:06]OFD Sender: No OFD packet to send [01:57:11]OFD Sender: No OFD packet to send [01:57:16]OFD Sender: No OFD packet to send [01:57:21]OFD Sender: No OFD packet to send [01:57:26]OFD Sender: No OFD packet to send [01:57:31]OFD Sender: No OFD packet to send [01:57:36]OFD Sender: No OFD packet to send [01:57:41]OFD Sender: No OFD packet to send [01:57:46]OFD Sender: No OFD packet to send [01:57:51]OFD Sender: No OFD packet to send [01:57:56]OFD Sender: No OFD packet to send [01:58:01]OFD Sender: No OFD packet to send [01:58:06]OFD Sender: No OFD packet to send [01:58:11]OFD Sender: No OFD packet to send [01:58:16]OFD Sender: No OFD packet to send [01:58:21]OFD Sender: No OFD packet to send [01:58:26]OFD Sender: No OFD packet to send [01:58:31]OFD Sender: No OFD packet to send [01:58:36]OFD Sender: No OFD packet to send [01:58:41]OFD Sender: No OFD packet to send [01:58:46]OFD Sender: No OFD packet to send [01:58:51]OFD Sender: No OFD packet to send [01:58:56]OFD Sender: No OFD packet to send [01:59:01]OFD Sender: No OFD packet to send [01:59:06]OFD Sender: No OFD packet to send [01:59:11]OFD Sender: No OFD packet to send [01:59:16]OFD Sender: No OFD packet to send [01:59:21]OFD Sender: No OFD packet to send [01:59:26]OFD Sender: No OFD packet to send [01:59:31]OFD Sender: No OFD packet to send [01:59:36]OFD Sender: No OFD packet to send [01:59:41]OFD Sender: No OFD packet to send [01:59:46]OFD Sender: No OFD packet to send [01:59:51]OFD Sender: No OFD packet to send [01:59:56]OFD Sender: No OFD packet to send [02:00:01]OFD Sender: No OFD packet to send [02:00:06]OFD Sender: No OFD packet to send [02:00:11]OFD Sender: No OFD packet to send [02:00:16]OFD Sender: No OFD packet to send [02:00:21]OFD Sender: No OFD packet to send [02:00:26]OFD Sender: No OFD packet to send [02:00:31]OFD Sender: No OFD packet to send [02:00:36]OFD Sender: No OFD packet to send [02:00:41]OFD Sender: No OFD packet to send [02:00:46]OFD Sender: No OFD packet to send [02:00:51]OFD Sender: No OFD packet to send [02:00:56]OFD Sender: No OFD packet to send [02:01:01]OFD Sender: No OFD packet to send [02:01:06]OFD Sender: No OFD packet to send [02:01:11]OFD Sender: No OFD packet to send [02:01:16]OFD Sender: No OFD packet to send [02:01:21]OFD Sender: No OFD packet to send [02:01:26]OFD Sender: No OFD packet to send [02:01:31]OFD Sender: No OFD packet to send [02:01:36]OFD Sender: No OFD packet to send [02:01:41]OFD Sender: No OFD packet to send [02:01:46]OFD Sender: No OFD packet to send [02:01:51]OFD Sender: No OFD packet to send [02:01:56]OFD Sender: No OFD packet to send [02:02:01]OFD Sender: No OFD packet to send [02:02:06]OFD Sender: No OFD packet to send [02:02:11]OFD Sender: No OFD packet to send [02:02:16]OFD Sender: No OFD packet to send [02:02:21]OFD Sender: No OFD packet to send [02:02:26]OFD Sender: No OFD packet to send [02:02:31]OFD Sender: No OFD packet to send [02:02:36]OFD Sender: No OFD packet to send [02:02:41]OFD Sender: No OFD packet to send [02:02:46]OFD Sender: No OFD packet to send [02:02:51]OFD Sender: No OFD packet to send [02:02:56]OFD Sender: No OFD packet to send [02:03:01]OFD Sender: No OFD packet to send [02:03:06]OFD Sender: No OFD packet to send [02:03:11]OFD Sender: No OFD packet to send [02:03:16]OFD Sender: No OFD packet to send [02:03:21]OFD Sender: No OFD packet to send [02:03:26]OFD Sender: No OFD packet to send [02:03:31]OFD Sender: No OFD packet to send [02:03:36]OFD Sender: No OFD packet to send [02:03:41]OFD Sender: No OFD packet to send [02:03:46]OFD Sender: No OFD packet to send [02:03:51]OFD Sender: No OFD packet to send [02:03:56]OFD Sender: No OFD packet to send [02:04:01]OFD Sender: No OFD packet to send [02:04:06]OFD Sender: No OFD packet to send [02:04:11]OFD Sender: No OFD packet to send [02:04:16]OFD Sender: No OFD packet to send [02:04:21]OFD Sender: No OFD packet to send [02:04:26]OFD Sender: No OFD packet to send [02:04:31]OFD Sender: No OFD packet to send [02:04:36]OFD Sender: No OFD packet to send [02:04:41]OFD Sender: No OFD packet to send [02:04:46]OFD Sender: No OFD packet to send [02:04:51]OFD Sender: No OFD packet to send [02:04:56]OFD Sender: No OFD packet to send [02:05:01]OFD Sender: No OFD packet to send [02:05:06]OFD Sender: No OFD packet to send [02:05:11]OFD Sender: No OFD packet to send [02:05:16]OFD Sender: No OFD packet to send [02:05:21]OFD Sender: No OFD packet to send [02:05:26]OFD Sender: No OFD packet to send [02:05:31]OFD Sender: No OFD packet to send [02:05:36]OFD Sender: No OFD packet to send [02:05:41]OFD Sender: No OFD packet to send [02:05:46]OFD Sender: No OFD packet to send [02:05:51]OFD Sender: No OFD packet to send [02:05:56]OFD Sender: No OFD packet to send [02:06:01]OFD Sender: No OFD packet to send [02:06:06]OFD Sender: No OFD packet to send [02:06:11]OFD Sender: No OFD packet to send [02:06:16]OFD Sender: No OFD packet to send [02:06:18]accept exits with 7 [02:06:18]New connection [02:06:18]New thread 3067084132 created [02:06:18]Thread 3067227492 joined [02:06:18]Waiting for new connection... [02:06:18] Sock 7.Parse request [02:06:18]Sock 7.Check first char [02:06:18]Sock 7.First char is OK [02:06:18]request: POST /json_proto HTTP/1.0 [02:06:18]Method: POST [02:06:18]URL: /json_proto [02:06:18]Method is POST - this is cgi request [02:06:18]url: /json_proto [02:06:18]query_string will be loaded in cgi processing [02:06:18]execute_cgi json_proto POST (null) [02:06:18]execute_cgi path=json_proto method=POST [02:06:18]POST find Content-Length [02:06:18]Host: 172.17.36.132:8080 [02:06:18]Content-Length: 677 [02:06:18]Content-Type: application/json [02:06:18] [02:06:18]POST finish read [02:06:18]Found Content-Length = 677 [02:06:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706619", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:06:18]execute_script... [02:06:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706619", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:06:18]POST & json_proto [02:06:18]process_json_proto [02:06:18]json parsed OK: [02:06:18]protocol is kg_v1.0 [02:06:18]action value=close_receipt [02:06:18]process_action close_receipt [02:06:18]cmd_close_receipt [02:06:18]MH_GetDate [02:06:18]Write to MH i2c: F0 00 00 25 0E 22 [02:06:18]Write i2c OK [02:06:18]MH_I2C_Read... [02:06:18]Read from MH i2c: F0 [02:06:18]MH_I2C_Read... [02:06:18]Read from MH i2c: F0 09 00 [02:06:18]MH_I2C_Read... [02:06:18]Read from MH i2c: F0 09 00 25 0E 00 9C 76 5E 66 B2 22 B0 64 E9 [02:06:18]GetLastDocTimeStamp 1717464293 [02:06:18]current date 1717466780 [02:06:18]FM_GetShiftState [02:06:18]SAM_PROTO_GetShiftState [02:06:18]wFMCommunicate request_size=4 [02:06:18]MH_SAM_APDU [02:06:18]CAPDU: 80 13 01 00 [02:06:18]Write to MH i2c: E2 08 00 26 0E 80 13 01 00 00 00 00 00 B1 [02:06:18]Write i2c OK [02:06:18]MH_I2C_Read... [02:06:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:06:18]Read from MH i2c: E2 [02:06:18]MH_I2C_Read... [02:06:18]Read from MH i2c: E2 0E 00 [02:06:18]MH_I2C_Read... [02:06:18]Read from MH i2c: E2 0E 00 26 0E 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 4D [02:06:18]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [02:06:18]wFMCommunicate OK [02:06:18]SAM_PROTO_GetShiftState done [02:06:18]FM_GetShiftState done [02:06:18]opened in 1717460590 [02:06:18]opened+sec_in_day 1717546990 [02:06:18]quantity*price = 50041 [02:06:18]sum+1 = 50042 [02:06:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 5 04.06.2024 02:06 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 ФМ: 0000000000965400 ФД: 68507 ФПД: 237967522654134 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T020620&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68507&fm=237967522654134&tin=02508201610067®Number=0000000000098096&sum=50000 [02:06:19]StoreToDocumentArchive [02:06:19]shift 325 fd 68507 [02:06:19]save to /storage/0325/doc_00068507 [02:06:19]save last doc name /storage/0325/doc_00068507 to /storage/kkm_last_doc_name [02:06:19]save OK [02:06:19]Clear old archive folders... [02:06:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:06:19]tlvbuf is 00A37420 [02:06:19]SAM_PROTO_ClearQueue [02:06:19]wFMCommunicate request_size=4 [02:06:19]MH_SAM_APDU [02:06:19]CAPDU: 80 09 00 00 [02:06:19]Write to MH i2c: E2 08 00 33 0E 80 09 00 00 00 00 00 00 B3 [02:06:19]Write i2c OK [02:06:19]MH_I2C_Read... [02:06:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:06:19]Read from MH i2c: E2 [02:06:19]MH_I2C_Read... [02:06:19]Read from MH i2c: E2 03 00 [02:06:19]MH_I2C_Read... [02:06:19]Read from MH i2c: E2 03 00 33 0E 00 90 00 B5 [02:06:19]RAPDU: 90 00 [02:06:19]wFMCommunicate OK [02:06:19]SAM_PROTO_ClearQueue done [02:06:19]KKMCreateOFDPacket [02:06:19]OFDProtocolAddRootSTLVToBuf [02:06:19]FM_MakeSignedData [02:06:19]FM_MakeSignedData [02:06:19]SAM_PROTO_SignData [02:06:19]wFMCommunicate request_size=4 [02:06:19]MH_SAM_APDU [02:06:19]CAPDU: 80 0D 01 02 [02:06:19]Write to MH i2c: E2 08 00 34 0E 80 0D 01 02 00 00 00 00 BB [02:06:19]Write i2c OK [02:06:19]MH_I2C_Read... [02:06:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:06:19]Read from MH i2c: E2 [02:06:19]MH_I2C_Read... [02:06:19]Read from MH i2c: E2 03 00 [02:06:19]MH_I2C_Read... [02:06:19]Read from MH i2c: E2 03 00 34 0E 00 90 00 B6 [02:06:19]RAPDU: 90 00 [02:06:19]wFMCommunicate OK [02:06:19]wFMCommunicate request_size=255 [02:06:19]MH_SAM_APDU [02:06:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 9C 76 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 9B 0B 01 00 35 04 06 00 D8 [02:06:19]Write to MH i2c: E2 02 01 35 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 9C 76 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 9B 0B 01 00 35 04 06 00 D8 00 00 E8 [02:06:19]Write i2c OK [02:06:19]MH_I2C_Read... [02:06:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:06:19]Read from MH i2c: E2 [02:06:19]MH_I2C_Read... [02:06:19]Read from MH i2c: E2 03 00 [02:06:19]MH_I2C_Read... [02:06:19]Read from MH i2c: E2 03 00 35 0E 00 90 00 B7 [02:06:19]RAPDU: 90 00 [02:06:19]wFMCommunicate OK [02:06:19]wFMCommunicate request_size=10 [02:06:19]MH_SAM_APDU [02:06:19]CAPDU: 80 0D 02 02 05 6E 21 A7 E7 B6 [02:06:19]Write to MH i2c: E2 0D 00 36 0E 80 0D 02 02 05 00 6E 21 A7 E7 B6 00 00 9B [02:06:19]Write i2c OK [02:06:19]MH_I2C_Read... [02:06:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:06:19]Read from MH i2c: E2 [02:06:19]MH_I2C_Read... [02:06:19]Read from MH i2c: E2 03 00 [02:06:19]MH_I2C_Read... [02:06:19]Read from MH i2c: E2 03 00 36 0E 00 90 00 B8 [02:06:19]RAPDU: 90 00 [02:06:19]wFMCommunicate OK [02:06:19]wFMCommunicate request_size=4 [02:06:19]MH_SAM_APDU [02:06:19]CAPDU: 80 0D 03 02 [02:06:19]Write to MH i2c: E2 08 00 37 0E 80 0D 03 02 00 00 00 00 C0 [02:06:19]Write i2c OK [02:06:19]MH_I2C_Read... [02:06:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:06:20]Read from MH i2c: E2 [02:06:20]MH_I2C_Read... [02:06:20]Read from MH i2c: E2 0B 00 [02:06:20]MH_I2C_Read... [02:06:20]Read from MH i2c: E2 0B 00 37 0E 00 3C 35 25 A9 85 43 EF 6A 90 00 21 [02:06:20]RAPDU: 3C 35 25 A9 85 43 EF 6A 90 00 [02:06:20]wFMCommunicate OK [02:06:20]SAM_PROTO_SignData done [02:06:20]FM_MakeSignedData done [02:06:20]CreateOFDProtocolMessage [02:06:20]wFMCommunicate request_size=4 [02:06:20]MH_SAM_APDU [02:06:20]CAPDU: 80 11 00 00 [02:06:20]Write to MH i2c: E2 08 00 38 0E 80 11 00 00 00 00 00 00 C0 [02:06:20]Write i2c OK [02:06:20]MH_I2C_Read... [02:06:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:06:20]Read from MH i2c: E2 [02:06:20]MH_I2C_Read... [02:06:20]Read from MH i2c: E2 17 00 [02:06:20]MH_I2C_Read... [02:06:20]Read from MH i2c: E2 17 00 38 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 0B [02:06:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [02:06:20]wFMCommunicate OK [02:06:20]CreateOFDProtocolMessage done [02:06:20]OFDSenderStorePacket 68507 [02:06:20]StoreOFDPacket docnum=68507 [02:06:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 8D E6 07 01 F7 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 9C 76 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 9B 0B 01 00 35 04 06 00 D8 6E 21 A7 E7 B6 3C 35 25 A9 85 43 EF 6A [02:06:20]CheckFolder [02:06:20]dirname=/storage/ofd_packets [02:06:20]CheckFolder done [02:06:20]ProducePacketName [02:06:20]name=ofd_packets/00068507 [02:06:20]NVStorageSaveData ofd_packets/00068507 [02:06:20]File name is /storage/ofd_packets/00068507 [02:06:20]Write 301 bytes [02:06:20]NVStorageSaveData done [02:06:20]OFDSenderStorePacket done [02:06:20]KKMCreateOFDPacket done [02:06:20]NVStorageSaveData kkm_last_timestamp [02:06:20]File name is /storage/kkm_last_timestamp [02:06:20]Write 4 bytes [02:06:20]NVStorageSaveData done [02:06:20]ExternCall_PrintAddStr [02:06:20]wPrintStart [02:06:20]Write to MH i2c: 01 00 00 39 0E 47 [02:06:20]Write i2c OK [02:06:20]MH_I2C_Read... [02:06:20]Read from MH i2c: 01 [02:06:20]MH_I2C_Read... [02:06:20]Read from MH i2c: 01 07 00 [02:06:20]MH_I2C_Read... [02:06:20]Read from MH i2c: 01 07 00 39 0E 00 00 00 00 00 FF 0F 5C [02:06:20]RasterBufferAndPrint [02:06:20]line Счет N : (1)706619 [02:06:20]line ИНН: 02508201610067 [02:06:20]line Контрольно-Кассовый Чек [02:06:20]line ПРОДАЖА [02:06:20]line ТРК (МРК, ГНК) : 32 [02:06:20]line Товар: 2710124130 [02:06:20]line Аи-92-К-4 [02:06:20]line 7.480 * 66.90 [02:06:20]line = 500.41 [02:06:20]line НДС 12% НСП 1% [02:06:20]line > о реализуемом товаре [02:06:20]line ОКРУГЛЕНИЕ: -0.41 [02:06:20]line ИТОГО: 500.00 [02:06:20]line Внесено: 500.00 [02:06:20]line СДАЧА: 0.00 [02:06:20]line НСП 1% : 4.43 [02:06:20]line НДС 12% : 53.14 [02:06:20]line Наличными: 500.00 [02:06:20]line Безнал.: 0.00 [02:06:20]line Место: АЗС № 62 "Партнер Нефть" [02:06:20]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [02:06:20]line СНО: Общий режим [02:06:20]line Чек 5 04.06.2024 02:06 [02:06:20]line Смена: 325 ФФД: 1.0 [02:06:20]line ЗНМ: 0300000181 [02:06:20]line РНМ: 0000000000098096 [02:06:20]line Версия ККМ: 001 [02:06:20]line ФМ: 0000000000965400 [02:06:20]line ФД: 68507 [02:06:20]line ФПД: 237967522654134 [02:06:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T020620&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68507&fm=237967522654134&tin=02508201610067®Number=0000000000098096&sum=50000 [02:06:20]OFD Sender: Processing packet 68507 [packets to send 26, broken 25] [02:06:20]ProducePacketName [02:06:20]name=ofd_packets/00068507 [02:06:20]OFD Sender: To server: pG, [02:06:20]CommunicateWithHost lk.salyk.kg:30040 [02:06:20]ConnectInit lk.salyk.kg [02:06:20]written 0, free lines is 4095 [02:06:20]Connected sock=10 [02:06:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 8D E6 07 01 F7 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 34 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 9C 76 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 9B 0B 01 00 35 04 06 00 D8 6E 21 A7 E7 B6 3C 35 25 A9 85 43 EF 6A [02:06:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 23 09 47 00 A6 E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 9B 0B 01 00 F4 03 04 00 96 1D 5E 66 B6 04 01 00 00 6C D8 E6 11 5D D4 A3 BA [02:06:20]CommunicateWithHost err = 0 [02:06:20]CheckOFDResponse [02:06:20]1017 (14) - 77093643461234 [02:06:20]1041 (16) - 0000000000965400 [02:06:20]1040 (4) - 68507 [02:06:20]1012 (4) - 03.06.2024 19:46 [02:06:20]1206 (1) - 0 [02:06:20]OFD Sender: Remove packet 68507 [02:06:20]ProducePacketName [02:06:20]name=ofd_packets/00068507 [02:06:20]NVStorageDeleteData [02:06:20]Write to MH i2c: 01 00 00 64 0E 72 [02:06:20]Write i2c OK [02:06:20]MH_I2C_Read... [02:06:20]Read from MH i2c: 01 [02:06:20]MH_I2C_Read... [02:06:20]Read from MH i2c: 01 07 00 [02:06:20]MH_I2C_Read... [02:06:20]Read from MH i2c: 01 07 00 64 0E 00 00 00 00 00 CF 0C 54 [02:06:20]RasterBufferAndPrint [02:06:20]line [02:06:20]line [02:06:20]line [02:06:20]line [02:06:20]line [02:06:20]written 0, free lines is 3283 [02:06:20]MH_Cut [02:06:20]Write to MH i2c: D1 01 00 6B 0E 01 4B [02:06:20]Write i2c OK [02:06:20]MH_I2C_Read... [02:06:20]Read from MH i2c: D1 [02:06:20]MH_I2C_Read... [02:06:20]Read from MH i2c: D1 01 00 [02:06:20]MH_I2C_Read... [02:06:20]Read from MH i2c: D1 01 00 6B 0E 00 4A [02:06:20]Write to MH i2c: 01 00 00 6C 0E 7A [02:06:20]Write i2c OK [02:06:20]MH_I2C_Read... [02:06:21]OFD Sender: No OFD packet to send [02:06:21]*** Cut start [02:06:21]*** Partial cut [02:06:21]*** CUTSNS_PIN = 1 [02:06:21]*** CUTSNS_PIN = 0 [02:06:21]*** Brake cut motor [02:06:22]Read from MH i2c: 01 [02:06:22]MH_I2C_Read... [02:06:22]*** Stop cut motor [02:06:22]*** Cut end [02:06:22]Read from MH i2c: 01 07 00 [02:06:22]MH_I2C_Read... [02:06:22]Read from MH i2c: 01 07 00 6C 0E 00 00 00 00 00 FF 0F 8F [02:06:22]process_action close_receipt done [02:06:22]requested_data is exist [02:06:22]produce_requested_data [02:06:22]requested_item fm.sn is exist - process it [02:06:22]wFMCommunicate request_size=4 [02:06:22]MH_SAM_APDU [02:06:22]CAPDU: 80 11 00 00 [02:06:22]Write to MH i2c: E2 08 00 6D 0E 80 11 00 00 00 00 00 00 F5 [02:06:22]Write i2c OK [02:06:22]MH_I2C_Read... [02:06:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:06:22]Read from MH i2c: E2 [02:06:22]MH_I2C_Read... [02:06:22]Read from MH i2c: E2 17 00 [02:06:22]MH_I2C_Read... [02:06:22]Read from MH i2c: E2 17 00 6D 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 40 [02:06:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [02:06:22]wFMCommunicate OK [02:06:22]requested_item fd.num is exist - process it [02:06:22]SAM_PROTO_GetFieldsCounters [02:06:22]wFMCommunicate request_size=4 [02:06:22]MH_SAM_APDU [02:06:22]CAPDU: 80 13 00 00 [02:06:22]Write to MH i2c: E2 08 00 6E 0E 80 13 00 00 00 00 00 00 F8 [02:06:22]Write i2c OK [02:06:22]MH_I2C_Read... [02:06:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:06:22]Read from MH i2c: E2 [02:06:22]MH_I2C_Read... [02:06:22]Read from MH i2c: E2 62 00 [02:06:22]MH_I2C_Read... [02:06:22]Read from MH i2c: E2 62 00 6E 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 9B 0B 01 00 0E 04 04 00 45 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 14 [02:06:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 9B 0B 01 00 0E 04 04 00 45 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 [02:06:22]wFMCommunicate OK [02:06:22]SAM_PROTO_GetFieldsCounters done [02:06:22]requested_item shift.num is exist - process it [02:06:22]requested_item shift.opened is exist - process it [02:06:22]req_shift_opened [02:06:22]FM_GetShiftState [02:06:22]SAM_PROTO_GetShiftState [02:06:22]wFMCommunicate request_size=4 [02:06:22]MH_SAM_APDU [02:06:22]CAPDU: 80 13 01 00 [02:06:22]Write to MH i2c: E2 08 00 6F 0E 80 13 01 00 00 00 00 00 FA [02:06:22]Write i2c OK [02:06:22]MH_I2C_Read... [02:06:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:06:22]Read from MH i2c: E2 [02:06:22]MH_I2C_Read... [02:06:22]Read from MH i2c: E2 0E 00 [02:06:22]MH_I2C_Read... [02:06:22]Read from MH i2c: E2 0E 00 6F 0E 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 96 [02:06:22]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [02:06:22]wFMCommunicate OK [02:06:22]SAM_PROTO_GetShiftState done [02:06:22]FM_GetShiftState done [02:06:22]req_shift_opened done [02:06:22]requested_item shift.open_date is exist - process it [02:06:22]req_shift_open_date [02:06:22]req_shift_open_date done [02:06:22]produce_requested_data done [02:06:22]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68507,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [02:06:22]process_action_free close_receipt [02:06:22]json_value_free [02:06:22]json_value_free done [02:06:22]process_json_proto returns [02:06:22]Send response to host [02:06:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68507,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [02:06:22]free response buf [02:06:22]execute_script done [02:06:22]execute_script returns [02:06:22]free content buf [02:06:22]Sock 7.Close socket [02:06:22]Sock 7.Thread stoped [02:06:26]OFD Sender: No OFD packet to send [02:06:31]OFD Sender: No OFD packet to send [02:06:36]OFD Sender: No OFD packet to send [02:06:41]OFD Sender: No OFD packet to send [02:06:46]OFD Sender: No OFD packet to send [02:06:51]OFD Sender: No OFD packet to send [02:06:56]OFD Sender: No OFD packet to send [02:07:01]OFD Sender: No OFD packet to send [02:07:06]OFD Sender: No OFD packet to send [02:07:11]OFD Sender: No OFD packet to send [02:07:16]OFD Sender: No OFD packet to send [02:07:21]OFD Sender: No OFD packet to send [02:07:26]OFD Sender: No OFD packet to send [02:07:31]OFD Sender: No OFD packet to send [02:07:36]OFD Sender: No OFD packet to send [02:07:41]OFD Sender: No OFD packet to send [02:07:46]OFD Sender: No OFD packet to send [02:07:51]OFD Sender: No OFD packet to send [02:07:56]OFD Sender: No OFD packet to send [02:08:01]OFD Sender: No OFD packet to send [02:08:06]OFD Sender: No OFD packet to send [02:08:11]OFD Sender: No OFD packet to send [02:08:16]OFD Sender: No OFD packet to send [02:08:21]OFD Sender: No OFD packet to send [02:08:26]OFD Sender: No OFD packet to send [02:08:31]OFD Sender: No OFD packet to send [02:08:36]OFD Sender: No OFD packet to send [02:08:41]OFD Sender: No OFD packet to send [02:08:46]OFD Sender: No OFD packet to send [02:08:51]OFD Sender: No OFD packet to send [02:08:56]OFD Sender: No OFD packet to send [02:09:01]OFD Sender: No OFD packet to send [02:09:06]OFD Sender: No OFD packet to send [02:09:11]OFD Sender: No OFD packet to send [02:09:16]OFD Sender: No OFD packet to send [02:09:21]OFD Sender: No OFD packet to send [02:09:26]OFD Sender: No OFD packet to send [02:09:31]OFD Sender: No OFD packet to send [02:09:36]OFD Sender: No OFD packet to send [02:09:41]OFD Sender: No OFD packet to send [02:09:46]OFD Sender: No OFD packet to send [02:09:51]OFD Sender: No OFD packet to send [02:09:56]OFD Sender: No OFD packet to send [02:10:01]OFD Sender: No OFD packet to send [02:10:06]OFD Sender: No OFD packet to send [02:10:11]OFD Sender: No OFD packet to send [02:10:16]OFD Sender: No OFD packet to send [02:10:21]OFD Sender: No OFD packet to send [02:10:26]OFD Sender: No OFD packet to send [02:10:31]OFD Sender: No OFD packet to send [02:10:36]OFD Sender: No OFD packet to send [02:10:41]OFD Sender: No OFD packet to send [02:10:46]OFD Sender: No OFD packet to send [02:10:51]OFD Sender: No OFD packet to send [02:10:56]OFD Sender: No OFD packet to send [02:11:01]OFD Sender: No OFD packet to send [02:11:06]OFD Sender: No OFD packet to send [02:11:11]OFD Sender: No OFD packet to send [02:11:16]OFD Sender: No OFD packet to send [02:11:21]OFD Sender: No OFD packet to send [02:11:26]OFD Sender: No OFD packet to send [02:11:31]OFD Sender: No OFD packet to send [02:11:36]OFD Sender: No OFD packet to send [02:11:41]OFD Sender: No OFD packet to send [02:11:46]OFD Sender: No OFD packet to send [02:11:51]OFD Sender: No OFD packet to send [02:11:56]OFD Sender: No OFD packet to send [02:12:01]OFD Sender: No OFD packet to send [02:12:06]OFD Sender: No OFD packet to send [02:12:11]OFD Sender: No OFD packet to send [02:12:16]OFD Sender: No OFD packet to send [02:12:21]OFD Sender: No OFD packet to send [02:12:26]OFD Sender: No OFD packet to send [02:12:31]OFD Sender: No OFD packet to send [02:12:36]OFD Sender: No OFD packet to send [02:12:41]OFD Sender: No OFD packet to send [02:12:46]OFD Sender: No OFD packet to send [02:12:51]OFD Sender: No OFD packet to send [02:12:56]OFD Sender: No OFD packet to send [02:13:01]OFD Sender: No OFD packet to send [02:13:06]OFD Sender: No OFD packet to send [02:13:11]OFD Sender: No OFD packet to send [02:13:16]OFD Sender: No OFD packet to send [02:13:21]OFD Sender: No OFD packet to send [02:13:26]OFD Sender: No OFD packet to send [02:13:31]OFD Sender: No OFD packet to send [02:13:36]OFD Sender: No OFD packet to send [02:13:41]OFD Sender: No OFD packet to send [02:13:46]OFD Sender: No OFD packet to send [02:13:51]OFD Sender: No OFD packet to send [02:13:56]OFD Sender: No OFD packet to send [02:14:01]OFD Sender: No OFD packet to send [02:14:06]OFD Sender: No OFD packet to send [02:14:11]OFD Sender: No OFD packet to send [02:14:16]OFD Sender: No OFD packet to send [02:14:21]OFD Sender: No OFD packet to send [02:14:26]OFD Sender: No OFD packet to send [02:14:31]OFD Sender: No OFD packet to send [02:14:36]OFD Sender: No OFD packet to send [02:14:41]OFD Sender: No OFD packet to send [02:14:46]OFD Sender: No OFD packet to send [02:14:51]OFD Sender: No OFD packet to send [02:14:56]OFD Sender: No OFD packet to send [02:15:01]OFD Sender: No OFD packet to send [02:15:06]OFD Sender: No OFD packet to send [02:15:11]OFD Sender: No OFD packet to send [02:15:16]OFD Sender: No OFD packet to send [02:15:21]OFD Sender: No OFD packet to send [02:15:26]OFD Sender: No OFD packet to send [02:15:31]OFD Sender: No OFD packet to send [02:15:36]OFD Sender: No OFD packet to send [02:15:41]OFD Sender: No OFD packet to send [02:15:46]OFD Sender: No OFD packet to send [02:15:51]OFD Sender: No OFD packet to send [02:15:56]OFD Sender: No OFD packet to send [02:16:01]OFD Sender: No OFD packet to send [02:16:06]OFD Sender: No OFD packet to send [02:16:11]OFD Sender: No OFD packet to send [02:16:16]OFD Sender: No OFD packet to send [02:16:21]OFD Sender: No OFD packet to send [02:16:26]OFD Sender: No OFD packet to send [02:16:31]OFD Sender: No OFD packet to send [02:16:36]OFD Sender: No OFD packet to send [02:16:41]OFD Sender: No OFD packet to send [02:16:46]OFD Sender: No OFD packet to send [02:16:51]OFD Sender: No OFD packet to send [02:16:56]OFD Sender: No OFD packet to send [02:17:01]OFD Sender: No OFD packet to send [02:17:06]OFD Sender: No OFD packet to send [02:17:11]OFD Sender: No OFD packet to send [02:17:16]OFD Sender: No OFD packet to send [02:17:21]OFD Sender: No OFD packet to send [02:17:26]OFD Sender: No OFD packet to send [02:17:31]OFD Sender: No OFD packet to send [02:17:36]OFD Sender: No OFD packet to send [02:17:41]OFD Sender: No OFD packet to send [02:17:46]OFD Sender: No OFD packet to send [02:17:51]OFD Sender: No OFD packet to send [02:17:56]OFD Sender: No OFD packet to send [02:18:01]OFD Sender: No OFD packet to send [02:18:06]OFD Sender: No OFD packet to send [02:18:11]OFD Sender: No OFD packet to send [02:18:16]OFD Sender: No OFD packet to send [02:18:21]OFD Sender: No OFD packet to send [02:18:26]OFD Sender: No OFD packet to send [02:18:31]OFD Sender: No OFD packet to send [02:18:36]OFD Sender: No OFD packet to send [02:18:41]OFD Sender: No OFD packet to send [02:18:46]OFD Sender: No OFD packet to send [02:18:51]OFD Sender: No OFD packet to send [02:18:56]OFD Sender: No OFD packet to send [02:19:01]OFD Sender: No OFD packet to send [02:19:06]OFD Sender: No OFD packet to send [02:19:11]OFD Sender: No OFD packet to send [02:19:16]OFD Sender: No OFD packet to send [02:19:21]OFD Sender: No OFD packet to send [02:19:26]OFD Sender: No OFD packet to send [02:19:31]OFD Sender: No OFD packet to send [02:19:36]OFD Sender: No OFD packet to send [02:19:41]OFD Sender: No OFD packet to send [02:19:46]OFD Sender: No OFD packet to send [02:19:51]OFD Sender: No OFD packet to send [02:19:56]OFD Sender: No OFD packet to send [02:20:01]OFD Sender: No OFD packet to send [02:20:06]OFD Sender: No OFD packet to send [02:20:11]OFD Sender: No OFD packet to send [02:20:16]OFD Sender: No OFD packet to send [02:20:21]OFD Sender: No OFD packet to send [02:20:26]OFD Sender: No OFD packet to send [02:20:31]OFD Sender: No OFD packet to send [02:20:36]OFD Sender: No OFD packet to send [02:20:41]OFD Sender: No OFD packet to send [02:20:46]OFD Sender: No OFD packet to send [02:20:51]OFD Sender: No OFD packet to send [02:20:56]OFD Sender: No OFD packet to send [02:21:01]OFD Sender: No OFD packet to send [02:21:06]OFD Sender: No OFD packet to send [02:21:11]OFD Sender: No OFD packet to send [02:21:16]OFD Sender: No OFD packet to send [02:21:21]OFD Sender: No OFD packet to send [02:21:26]OFD Sender: No OFD packet to send [02:21:31]OFD Sender: No OFD packet to send [02:21:36]OFD Sender: No OFD packet to send [02:21:41]OFD Sender: No OFD packet to send [02:21:46]OFD Sender: No OFD packet to send [02:21:51]OFD Sender: No OFD packet to send [02:21:56]OFD Sender: No OFD packet to send [02:22:01]OFD Sender: No OFD packet to send [02:22:06]OFD Sender: No OFD packet to send [02:22:11]OFD Sender: No OFD packet to send [02:22:16]OFD Sender: No OFD packet to send [02:22:21]OFD Sender: No OFD packet to send [02:22:26]OFD Sender: No OFD packet to send [02:22:31]OFD Sender: No OFD packet to send [02:22:36]OFD Sender: No OFD packet to send [02:22:41]OFD Sender: No OFD packet to send [02:22:46]OFD Sender: No OFD packet to send [02:22:49]accept exits with 9 [02:22:49]New connection [02:22:49]New thread 3067227492 created [02:22:49]Thread 3067084132 joined [02:22:49]Waiting for new connection... [02:22:49] Sock 9.Parse request [02:22:49]Sock 9.Check first char [02:22:49]Sock 9.First char is OK [02:22:49]request: POST /json_proto HTTP/1.0 [02:22:49]Method: POST [02:22:49]URL: /json_proto [02:22:49]Method is POST - this is cgi request [02:22:49]url: /json_proto [02:22:49]query_string will be loaded in cgi processing [02:22:49]execute_cgi json_proto POST (null) [02:22:49]execute_cgi path=json_proto method=POST [02:22:49]POST find Content-Length [02:22:49]Host: 172.17.36.132:8080 [02:22:49]Content-Length: 840 [02:22:49]Content-Type: application/json [02:22:49] [02:22:49]POST finish read [02:22:49]Found Content-Length = 840 [02:22:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)706620", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:22:49]execute_script... [02:22: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)706620", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:22:49]POST & json_proto [02:22:49]process_json_proto [02:22:49]json parsed OK: [02:22:49]protocol is kg_v1.0 [02:22:49]action value=close_receipt [02:22:49]process_action close_receipt [02:22:49]cmd_close_receipt [02:22:49]MH_GetDate [02:22:49]Write to MH i2c: F0 00 00 70 0E 6D [02:22:49]Write i2c OK [02:22:49]MH_I2C_Read... [02:22:49]Read from MH i2c: F0 [02:22:49]MH_I2C_Read... [02:22:49]Read from MH i2c: F0 09 00 [02:22:49]MH_I2C_Read... [02:22:49]Read from MH i2c: F0 09 00 70 0E 00 7B 7A 5E 66 B2 22 B0 64 17 [02:22:49]GetLastDocTimeStamp 1717466780 [02:22:49]current date 1717467771 [02:22:49]FM_GetShiftState [02:22:49]SAM_PROTO_GetShiftState [02:22:49]wFMCommunicate request_size=4 [02:22:49]MH_SAM_APDU [02:22:49]CAPDU: 80 13 01 00 [02:22:49]Write to MH i2c: E2 08 00 71 0E 80 13 01 00 00 00 00 00 FC [02:22:49]Write i2c OK [02:22:49]MH_I2C_Read... [02:22:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:22:49]Read from MH i2c: E2 [02:22:49]MH_I2C_Read... [02:22:49]Read from MH i2c: E2 0E 00 [02:22:49]MH_I2C_Read... [02:22:49]Read from MH i2c: E2 0E 00 71 0E 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 98 [02:22:49]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [02:22:49]wFMCommunicate OK [02:22:49]SAM_PROTO_GetShiftState done [02:22:49]FM_GetShiftState done [02:22:49]opened in 1717460590 [02:22:49]opened+sec_in_day 1717546990 [02:22:49]quantity*price = 40006 [02:22:49]sum+1 = 40007 [02:22:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.06 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.06 Место: АЗС № 62 "Партнер Нефть" Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 СНО: Общий режим Чек 6 04.06.2024 02:22 Смена: 325 ФФД: 1.0 ЗНМ: 0300000181 РНМ: 0000000000098096 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965400 ФД: 68508 ФПД: 14089231416045 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T022251&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68508&fm=14089231416045&tin=02508201610067®Number=0000000000098096&sum=40006 [02:22:51]StoreToDocumentArchive [02:22:51]shift 325 fd 68508 [02:22:51]save to /storage/0325/doc_00068508 [02:22:51]save last doc name /storage/0325/doc_00068508 to /storage/kkm_last_doc_name [02:22:51]save OK [02:22:51]Clear old archive folders... [02:22:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:22:51]tlvbuf is 00A3A850 [02:22:51]SAM_PROTO_ClearQueue [02:22:51]wFMCommunicate request_size=4 [02:22:51]MH_SAM_APDU [02:22:51]CAPDU: 80 09 00 00 [02:22:51]Write to MH i2c: E2 08 00 7E 0E 80 09 00 00 00 00 00 00 FE [02:22:51]Write i2c OK [02:22:51]MH_I2C_Read... [02:22:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:22:51]Read from MH i2c: E2 [02:22:51]MH_I2C_Read... [02:22:51]Read from MH i2c: E2 03 00 [02:22:51]MH_I2C_Read... [02:22:51]Read from MH i2c: E2 03 00 7E 0E 00 90 00 00 [02:22:51]RAPDU: 90 00 [02:22:51]wFMCommunicate OK [02:22:51]SAM_PROTO_ClearQueue done [02:22:51]KKMCreateOFDPacket [02:22:51]OFDProtocolAddRootSTLVToBuf [02:22:51]FM_MakeSignedData [02:22:51]FM_MakeSignedData [02:22:51]SAM_PROTO_SignData [02:22:51]wFMCommunicate request_size=4 [02:22:51]MH_SAM_APDU [02:22:51]CAPDU: 80 0D 01 02 [02:22:51]Write to MH i2c: E2 08 00 7F 0E 80 0D 01 02 00 00 00 00 06 [02:22:51]Write i2c OK [02:22:51]MH_I2C_Read... [02:22:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:22:51]Read from MH i2c: E2 [02:22:51]MH_I2C_Read... [02:22:51]Read from MH i2c: E2 03 00 [02:22:51]MH_I2C_Read... [02:22:51]Read from MH i2c: E2 03 00 7F 0E 00 90 00 01 [02:22:51]RAPDU: 90 00 [02:22:51]wFMCommunicate OK [02:22:51]wFMCommunicate request_size=255 [02:22:51]MH_SAM_APDU [02:22:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 7B 7A 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 9C 0B 01 00 35 04 06 00 0C [02:22:51]Write to MH i2c: E2 02 01 80 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 7B 7A 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 9C 0B 01 00 35 04 06 00 0C 00 00 27 [02:22:51]Write i2c OK [02:22:51]MH_I2C_Read... [02:22:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:22:51]Read from MH i2c: E2 [02:22:51]MH_I2C_Read... [02:22:51]Read from MH i2c: E2 03 00 [02:22:51]MH_I2C_Read... [02:22:51]Read from MH i2c: E2 03 00 80 0E 00 90 00 02 [02:22:51]RAPDU: 90 00 [02:22:51]wFMCommunicate OK [02:22:51]wFMCommunicate request_size=10 [02:22:51]MH_SAM_APDU [02:22:51]CAPDU: 80 0D 02 02 05 D0 67 A2 3A ED [02:22:51]Write to MH i2c: E2 0D 00 81 0E 80 0D 02 02 05 00 D0 67 A2 3A ED 00 00 13 [02:22:51]Write i2c OK [02:22:51]MH_I2C_Read... [02:22:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:22:51]Read from MH i2c: E2 [02:22:51]MH_I2C_Read... [02:22:51]Read from MH i2c: E2 03 00 [02:22:51]MH_I2C_Read... [02:22:51]Read from MH i2c: E2 03 00 81 0E 00 90 00 03 [02:22:51]RAPDU: 90 00 [02:22:51]wFMCommunicate OK [02:22:51]wFMCommunicate request_size=4 [02:22:51]MH_SAM_APDU [02:22:51]CAPDU: 80 0D 03 02 [02:22:51]Write to MH i2c: E2 08 00 82 0E 80 0D 03 02 00 00 00 00 0B [02:22:51]Write i2c OK [02:22:51]MH_I2C_Read... [02:22:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:22:51]Read from MH i2c: E2 [02:22:51]MH_I2C_Read... [02:22:51]Read from MH i2c: E2 0B 00 [02:22:51]MH_I2C_Read... [02:22:51]Read from MH i2c: E2 0B 00 82 0E 00 FC 58 CD FC 71 38 0D 5A 90 00 39 [02:22:51]RAPDU: FC 58 CD FC 71 38 0D 5A 90 00 [02:22:51]wFMCommunicate OK [02:22:51]SAM_PROTO_SignData done [02:22:51]FM_MakeSignedData done [02:22:51]CreateOFDProtocolMessage [02:22:51]wFMCommunicate request_size=4 [02:22:51]MH_SAM_APDU [02:22:51]CAPDU: 80 11 00 00 [02:22:51]Write to MH i2c: E2 08 00 83 0E 80 11 00 00 00 00 00 00 0B [02:22:51]Write i2c OK [02:22:51]MH_I2C_Read... [02:22:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:22:51]Read from MH i2c: E2 [02:22:51]MH_I2C_Read... [02:22:51]Read from MH i2c: E2 17 00 [02:22:51]MH_I2C_Read... [02:22:51]Read from MH i2c: E2 17 00 83 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 56 [02:22:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [02:22:51]wFMCommunicate OK [02:22:51]CreateOFDProtocolMessage done [02:22:51]OFDSenderStorePacket 68508 [02:22:51]StoreOFDPacket docnum=68508 [02:22:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 BE A7 07 01 AE 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 7B 7A 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 9C 0B 01 00 35 04 06 00 0C D0 67 A2 3A ED FC 58 CD FC 71 38 0D 5A [02:22:51]CheckFolder [02:22:51]dirname=/storage/ofd_packets [02:22:51]CheckFolder done [02:22:51]ProducePacketName [02:22:51]name=ofd_packets/00068508 [02:22:51]NVStorageSaveData ofd_packets/00068508 [02:22:51]File name is /storage/ofd_packets/00068508 [02:22:51]Write 301 bytes [02:22:51]NVStorageSaveData done [02:22:51]OFDSenderStorePacket done [02:22:51]KKMCreateOFDPacket done [02:22:51]NVStorageSaveData kkm_last_timestamp [02:22:51]File name is /storage/kkm_last_timestamp [02:22:51]Write 4 bytes [02:22:51]NVStorageSaveData done [02:22:51]ExternCall_PrintAddStr [02:22:51]wPrintStart [02:22:51]Write to MH i2c: 01 00 00 84 0E 92 [02:22:51]Write i2c OK [02:22:51]MH_I2C_Read... [02:22:51]Read from MH i2c: 01 [02:22:51]MH_I2C_Read... [02:22:51]Read from MH i2c: 01 07 00 [02:22:51]MH_I2C_Read... [02:22:51]Read from MH i2c: 01 07 00 84 0E 00 00 00 00 00 FF 0F A7 [02:22:51]RasterBufferAndPrint [02:22:51]line Счет N : (1)706620 [02:22:51]line ИНН: 02508201610067 [02:22:51]line Контрольно-Кассовый Чек [02:22:51]line ПРОДАЖА [02:22:51]line ТРК (МРК, ГНК) : 53 [02:22:51]line Товар: 2710124130 [02:22:51]line Аи-92-К-4 [02:22:51]line 5.980 * 66.90 [02:22:51]line = 400.06 [02:22:51]line НДС 12% НСП 1% [02:22:51]line > о реализуемом товаре [02:22:51]line ИТОГО: 400.06 [02:22:51]line НСП 1% : 3.54 [02:22:51]line НДС 12% : 42.48 [02:22:51]line Наличными: 0.00 [02:22:51]line Безнал.: 400.06 [02:22:51]line Место: АЗС № 62 "Партнер Нефть" [02:22:51]line Адрес: 720001, г. Балыкчы, ул. Абдрахманова 325 Б, 42.462761, 76.214931 [02:22:51]line СНО: Общий режим [02:22:51]line Чек 6 04.06.2024 02:22 [02:22:51]line Смена: 325 ФФД: 1.0 [02:22:51]line ЗНМ: 0300000181 [02:22:51]line РНМ: 0000000000098096 [02:22:51]line Версия ККМ: 001 [02:22:51]line Платежная система: АКБ Кыргызстан [02:22:51]line ФМ: 0000000000965400 [02:22:51]line ФД: 68508 [02:22:51]line ФПД: 14089231416045 [02:22:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240604T022251&type=1&operation_type=1&fn_number=0000000000965400&fd_number=68508&fm=14089231416045&tin=02508201610067®Number=0000000000098096&sum=40006 [02:22:51]OFD Sender: Processing packet 68508 [packets to send 26, broken 25] [02:22:51]ProducePacketName [02:22:51]name=ofd_packets/00068508 [02:22:51]OFD Sender: To server: pG, [02:22:51]CommunicateWithHost lk.salyk.kg:30040 [02:22:51]ConnectInit lk.salyk.kg [02:22:51]written 0, free lines is 4095 [02:22:52]Connected sock=10 [02:22:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0F 01 00 00 BE A7 07 01 AE 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 7B 7A 5E 66 0E 04 04 00 45 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 9C 0B 01 00 35 04 06 00 0C D0 67 A2 3A ED FC 58 CD FC 71 38 0D 5A [02:22:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 4F 00 00 00 16 E8 47 00 F9 A6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 10 04 04 00 9C 0B 01 00 F4 03 04 00 75 21 5E 66 B6 04 01 00 00 A5 4C 5D D6 79 1C 22 3F [02:22:52]CommunicateWithHost err = 0 [02:22:52]CheckOFDResponse [02:22:52]1017 (14) - 77093643461234 [02:22:52]1041 (16) - 0000000000965400 [02:22:52]1040 (4) - 68508 [02:22:52]1012 (4) - 03.06.2024 20:03 [02:22:52]1206 (1) - 0 [02:22:52]OFD Sender: Remove packet 68508 [02:22:52]ProducePacketName [02:22:52]name=ofd_packets/00068508 [02:22:52]NVStorageDeleteData [02:22:52]Write to MH i2c: 01 00 00 AE 0E BC [02:22:52]Write i2c OK [02:22:52]MH_I2C_Read... [02:22:52]Read from MH i2c: 01 [02:22:52]MH_I2C_Read... [02:22:52]Read from MH i2c: 01 07 00 [02:22:52]MH_I2C_Read... [02:22:52]Read from MH i2c: 01 07 00 AE 0E 00 00 00 00 00 F7 0C C6 [02:22:52]RasterBufferAndPrint [02:22:52]line [02:22:52]line [02:22:52]line [02:22:52]line [02:22:52]line [02:22:52]written 0, free lines is 3327 [02:22:52]MH_Cut [02:22:52]Write to MH i2c: D1 01 00 B5 0E 01 95 [02:22:52]Write i2c OK [02:22:52]MH_I2C_Read... [02:22:52]Read from MH i2c: D1 [02:22:52]MH_I2C_Read... [02:22:52]Read from MH i2c: D1 01 00 [02:22:52]MH_I2C_Read... [02:22:52]Read from MH i2c: D1 01 00 B5 0E 00 94 [02:22:52]Write to MH i2c: 01 00 00 B6 0E C4 [02:22:52]Write i2c OK [02:22:52]MH_I2C_Read... [02:22:52]OFD Sender: No OFD packet to send [02:22:53]*** Cut start [02:22:53]*** Partial cut [02:22:53]*** CUTSNS_PIN = 1 [02:22:53]*** CUTSNS_PIN = 0 [02:22:53]*** Brake cut motor [02:22:53]Read from MH i2c: 01 [02:22:53]MH_I2C_Read... [02:22:53]*** Stop cut motor [02:22:53]*** Cut end [02:22:53]Read from MH i2c: 01 07 00 [02:22:53]MH_I2C_Read... [02:22:53]Read from MH i2c: 01 07 00 B6 0E 00 00 00 00 00 FF 0F D9 [02:22:53]process_action close_receipt done [02:22:53]requested_data is exist [02:22:53]produce_requested_data [02:22:53]requested_item fm.sn is exist - process it [02:22:53]wFMCommunicate request_size=4 [02:22:53]MH_SAM_APDU [02:22:53]CAPDU: 80 11 00 00 [02:22:53]Write to MH i2c: E2 08 00 B7 0E 80 11 00 00 00 00 00 00 3F [02:22:53]Write i2c OK [02:22:53]MH_I2C_Read... [02:22:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:22:53]Read from MH i2c: E2 [02:22:53]MH_I2C_Read... [02:22:53]Read from MH i2c: E2 17 00 [02:22:53]MH_I2C_Read... [02:22:53]Read from MH i2c: E2 17 00 B7 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 8A [02:22:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 90 00 [02:22:53]wFMCommunicate OK [02:22:53]requested_item fd.num is exist - process it [02:22:53]SAM_PROTO_GetFieldsCounters [02:22:53]wFMCommunicate request_size=4 [02:22:53]MH_SAM_APDU [02:22:53]CAPDU: 80 13 00 00 [02:22:53]Write to MH i2c: E2 08 00 B8 0E 80 13 00 00 00 00 00 00 42 [02:22:53]Write i2c OK [02:22:53]MH_I2C_Read... [02:22:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:22:54]Read from MH i2c: E2 [02:22:54]MH_I2C_Read... [02:22:54]Read from MH i2c: E2 62 00 [02:22:54]MH_I2C_Read... [02:22:54]Read from MH i2c: E2 62 00 B8 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 9C 0B 01 00 0E 04 04 00 45 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 62 [02:22:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 34 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 39 36 10 04 04 00 9C 0B 01 00 0E 04 04 00 45 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 [02:22:54]wFMCommunicate OK [02:22:54]SAM_PROTO_GetFieldsCounters done [02:22:54]requested_item shift.num is exist - process it [02:22:54]requested_item shift.opened is exist - process it [02:22:54]req_shift_opened [02:22:54]FM_GetShiftState [02:22:54]SAM_PROTO_GetShiftState [02:22:54]wFMCommunicate request_size=4 [02:22:54]MH_SAM_APDU [02:22:54]CAPDU: 80 13 01 00 [02:22:54]Write to MH i2c: E2 08 00 B9 0E 80 13 01 00 00 00 00 00 44 [02:22:54]Write i2c OK [02:22:54]MH_I2C_Read... [02:22:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:22:54]Read from MH i2c: E2 [02:22:54]MH_I2C_Read... [02:22:54]Read from MH i2c: E2 0E 00 [02:22:54]MH_I2C_Read... [02:22:54]Read from MH i2c: E2 0E 00 B9 0E 00 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 E0 [02:22:54]RAPDU: 09 00 01 6E 5E 5E 66 00 00 00 00 90 00 [02:22:54]wFMCommunicate OK [02:22:54]SAM_PROTO_GetShiftState done [02:22:54]FM_GetShiftState done [02:22:54]req_shift_opened done [02:22:54]requested_item shift.open_date is exist - process it [02:22:54]req_shift_open_date [02:22:54]req_shift_open_date done [02:22:54]produce_requested_data done [02:22:54]produce_requested_data return {"fm.sn":"0000000000965400","fd.num":68508,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590} [02:22:54]process_action_free close_receipt [02:22:54]json_value_free [02:22:54]json_value_free done [02:22:54]process_json_proto returns [02:22:54]Send response to host [02:22:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965400","fd.num":68508,"shift.num":325,"shift.opened":1,"shift.open_date":1717460590}}} [02:22:54]free response buf [02:22:54]execute_script done [02:22:54]execute_script returns [02:22:54]free content buf [02:22:54]Sock 9.Close socket [02:22:54]Sock 9.Thread stoped [02:22:57]OFD Sender: No OFD packet to send [02:23:02]OFD Sender: No OFD packet to send [02:23:07]OFD Sender: No OFD packet to send [02:23:12]OFD Sender: No OFD packet to send [02:23:17]OFD Sender: No OFD packet to send [02:23:22]OFD Sender: No OFD packet to send [02:23:27]OFD Sender: No OFD packet to send [02:23:32]OFD Sender: No OFD packet to send [02:23:37]OFD Sender: No OFD packet to send [02:23:42]OFD Sender: No OFD packet to send [02:23:47]OFD Sender: No OFD packet to send [02:23:52]OFD Sender: No OFD packet to send [02:23:57]OFD Sender: No OFD packet to send [02:24:02]OFD Sender: No OFD packet to send [02:24:07]OFD Sender: No OFD packet to send [02:24:12]OFD Sender: No OFD packet to send [02:24:17]OFD Sender: No OFD packet to send [02:24:22]OFD Sender: No OFD packet to send [02:24:27]OFD Sender: No OFD packet to send [02:24:32]OFD Sender: No OFD packet to send [02:24:37]OFD Sender: No OFD packet to send [02:24:42]OFD Sender: No OFD packet to send [02:24:47]OFD Sender: No OFD packet to send [02:24:52]OFD Sender: No OFD packet to send [02:24:57]OFD Sender: No OFD packet to send [02:25:02]OFD Sender: No OFD packet to send [02:25:07]OFD Sender: No OFD packet to send [02:25:12]OFD Sender: No OFD packet to send [02:25:17]OFD Sender: No OFD packet to send [02:25:22]OFD Sender: No OFD packet to send [02:25:27]OFD Sender: No OFD packet to send [02:25:32]OFD Sender: No OFD packet to send [02:25:37]OFD Sender: No OFD packet to send [02:25:42]OFD Sender: No OFD packet to send [02:25:47]OFD Sender: No OFD packet to send [02:25:52]OFD Sender: No OFD packet to send [02:25:57]OFD Sender: No OFD packet to send [02:26:02]OFD Sender: No OFD packet to send [02:26:07]OFD Sender: No OFD packet to send [02:26:12]OFD Sender: No OFD packet to send [02:26:17]OFD Sender: No OFD packet to send [02:26:22]OFD Sender: No OFD packet to send [02:26:27]OFD Sender: No OFD packet to send [02:26:32]OFD Sender: No OFD packet to send [02:26:37]OFD Sender: No OFD packet to send [02:26:42]OFD Sender: No OFD packet to send [02:26:47]OFD Sender: No OFD packet to send [02:26:52]OFD Sender: No OFD packet to send [02:26:57]OFD Sender: No OFD packet to send [02:27:02]OFD Sender: No OFD packet to send [02:27:07]OFD Sender: No OFD packet to send [02:27:12]OFD Sender: No OFD packet to send [02:27:17]OFD Sender: No OFD packet to send [02:27:22]OFD Sender: No OFD packet to send [02:27:27]OFD Sender: No OFD packet to send [02:27:32]OFD Sender: No OFD packet to send [02:27:37]OFD Sender: No OFD packet to send [02:27:42]OFD Sender: No OFD packet to send [02:27:47]OFD Sender: No OFD packet to send [02:27:52]OFD Sender: No OFD packet to send [02:27:57]OFD Sender: No OFD packet to send [02:28:02]OFD Sender: No OFD packet to send [02:28:07]OFD Sender: No OFD packet to send [02:28:12]OFD Sender: No OFD packet to send [02:28:18]OFD Sender: No OFD packet to send [02:28:23]OFD Sender: No OFD packet to send [02:28:28]OFD Sender: No OFD packet to send [02:28:33]OFD Sender: No OFD packet to send [02:28:38]OFD Sender: No OFD packet to send [02:28:43]OFD Sender: No OFD packet to send [02:28:48]OFD Sender: No OFD packet to send [02:28:53]OFD Sender: No OFD packet to send [02:28:58]OFD Sender: No OFD packet to send [02:29:03]OFD Sender: No OFD packet to send [02:29:08]OFD Sender: No OFD packet to send [02:29:13]OFD Sender: No OFD packet to send [02:29:18]OFD Sender: No OFD packet to send [02:29:23]OFD Sender: No OFD packet to send [02:29:28]OFD Sender: No OFD packet to send [02:29:33]OFD Sender: No OFD packet to send [02:29:38]OFD Sender: No OFD packet to send [02:29:43]OFD Sender: No OFD packet to send [02:29:48]OFD Sender: No OFD packet to send [02:29:53]OFD Sender: No OFD packet to send [02:29:58]OFD Sender: No OFD packet to send [02:30:03]OFD Sender: No OFD packet to send [02:30:08]OFD Sender: No OFD packet to send [02:30:13]OFD Sender: No OFD packet to send [02:30:18]OFD Sender: No OFD packet to send [02:30:23]OFD Sender: No OFD packet to send [02:30:28]OFD Sender: No OFD packet to send [02:30:33]OFD Sender: No OFD packet to send [02:30:38]OFD Sender: No OFD packet to send [02:30:43]OFD Sender: No OFD packet to send [02:30:48]OFD Sender: No OFD packet to send [02:30:53]OFD Sender: No OFD packet to send [02:30:58]OFD Sender: No OFD packet to send [02:31:03]OFD Sender: No OFD packet to send [02:31:08]OFD Sender: No OFD packet to send [02:31:13]OFD Sender: No OFD packet to send [02:31:18]OFD Sender: No OFD packet to send [02:31:23]OFD Sender: No OFD packet to send [02:31:28]OFD Sender: No OFD packet to send [02:31:33]OFD Sender: No OFD packet to send [02:31:38]OFD Sender: No OFD packet to send [02:31:43]OFD Sender: No OFD packet to send [02:31:48]OFD Sender: No OFD packet to send [02:31:53]OFD Sender: No OFD packet to send [02:31:58]OFD Sender: No OFD packet to send [02:32:03]OFD Sender: No OFD packet to send [02:32:08]OFD Sender: No OFD packet to send [02:32:13]OFD Sender: No OFD packet to send [02:32:18]OFD Sender: No OFD packet to send [02:32:23]OFD Sender: No OFD packet to send [02:32:28]OFD Sender: No OFD packet to send [02:32:33]OFD Sender: No OFD packet to send [02:32:38]OFD Sender: No OFD packet to send [02:32:43]OFD Sender: No OFD packet to send [02:32:48]OFD Sender: No OFD packet to send [02:32:53]OFD Sender: No OFD packet to send [02:32:58]OFD Sender: No OFD packet to send [02:33:03]OFD Sender: No OFD packet to send [02:33:08]OFD Sender: No OFD packet to send [02:33:13]OFD Sender: No OFD packet to send [02:33:18]OFD Sender: No OFD packet to send [02:33:23]OFD Sender: No OFD packet to send [02:33:28]OFD Sender: No OFD packet to send [02:33:33]OFD Sender: No OFD packet to send [02:33:38]OFD Sender: No OFD packet to send [02:33:43]OFD Sender: No OFD packet to send [02:33:48]OFD Sender: No OFD packet to send [02:33:53]OFD Sender: No OFD packet to send [02:33:58]OFD Sender: No OFD packet to send [02:34:03]OFD Sender: No OFD packet to send [02:34:08]OFD Sender: No OFD packet to send [02:34:13]OFD Sender: No OFD packet to send [02:34:18]OFD Sender: No OFD packet to send [02:34:23]OFD Sender: No OFD packet to send [02:34:28]OFD Sender: No OFD packet to send [02:34:33]OFD Sender: No OFD packet to send [02:34:38]OFD Sender: No OFD packet to send [02:34:43]OFD Sender: No OFD packet to send [02:34:48]OFD Sender: No OFD packet to send [02:34:53]OFD Sender: No OFD packet to send [02:34:58]OFD Sender: No OFD packet to send [02:35:03]OFD Sender: No OFD packet to send [02:35:08]OFD Sender: No OFD packet to send [02:35:13]OFD Sender: No OFD packet to send [02:35:18]OFD Sender: No OFD packet to send [02:35:23]OFD Sender: No OFD packet to send [02:35:28]OFD Sender: No OFD packet to send [02:35:33]OFD Sender: No OFD packet to send [02:35:38]OFD Sender: No OFD packet to send [02:35:43]OFD Sender: No OFD packet to send [02:35:48]OFD Sender: No OFD packet to send [02:35:53]OFD Sender: No OFD packet to send [02:35:58]OFD Sender: No OFD packet to send [02:36:03]OFD Sender: No OFD packet to send [02:36:08]OFD Sender: No OFD packet to send [02:36:13]OFD Sender: No OFD packet to send [02:36:18]OFD Sender: No OFD packet to send [02:36:23]OFD Sender: No OFD packet to send [02:36:28]OFD Sender: No OFD packet to send [02:36:33]OFD Sender: No OFD packet to send [02:36:38]OFD Sender: No OFD packet to send [02:36:43]OFD Sender: No OFD packet to send [02:36:48]OFD Sender: No OFD packet to send [02:36:53]OFD Sender: No OFD packet to send [02:36:58]OFD Sender: No OFD packet to send [02:37:03]OFD Sender: No OFD packet to send [02:37:08]OFD Sender: No OFD packet to send [02:37:13]OFD Sender: No OFD packet to send [02:37:18]OFD Sender: No OFD packet to send [02:37:23]OFD Sender: No OFD packet to send [02:37:28]OFD Sender: No OFD packet to send [02:37:33]OFD Sender: No OFD packet to send [02:37:38]OFD Sender: No OFD packet to send [02:37:43]OFD Sender: No OFD packet to send [02:37:48]OFD Sender: No OFD packet to send [02:37:53]OFD Sender: No OFD packet to send [02:37:58]OFD Sender: No OFD packet to send [02:38:03]OFD Sender: No OFD packet to send [02:38:08]OFD Sender: No OFD packet to send [02:38:13]OFD Sender: No OFD packet to send [02:38:18]OFD Sender: No OFD packet to send [02:38:23]OFD Sender: No OFD packet to send [02:38:28]OFD Sender: No OFD packet to send [02:38:33]OFD Sender: No OFD packet to send [02:38:38]OFD Sender: No OFD packet to send [02:38:43]OFD Sender: No OFD packet to send [02:38:48]OFD Sender: No OFD packet to send [02:38:53]OFD Sender: No OFD packet to send [02:38:58]OFD Sender: No OFD packet to send [02:39:03]OFD Sender: No OFD packet to send [02:39:08]OFD Sender: No OFD packet to send [02:39:13]OFD Sender: No OFD packet to send [02:39:18]OFD Sender: No OFD packet to send [02:39:23]OFD Sender: No OFD packet to send [02:39:28]OFD Sender: No OFD packet to send [02:39:33]OFD Sender: No OFD packet to send [02:39:38]OFD Sender: No OFD packet to send [02:39:43]OFD Sender: No OFD packet to send [02:39:48]OFD Sender: No OFD packet to send [02:39:53]OFD Sender: No OFD packet to send [02:39:58]OFD Sender: No OFD packet to send [02:40:03]OFD Sender: No OFD packet to send [02:40:08]OFD Sender: No OFD packet to send [02:40:13]OFD Sender: No OFD packet to send [02:40:18]OFD Sender: No OFD packet to send [02:40:23]OFD Sender: No OFD packet to send [02:40:28]OFD Sender: No OFD packet to send [02:40:33]OFD Sender: No OFD packet to send [02:40:38]OFD Sender: No OFD packet to send [02:40:43]OFD Sender: No OFD packet to send [02:40:48]OFD Sender: No OFD packet to send [02:40:53]OFD Sender: No OFD packet to send [02:40:58]OFD Sender: No OFD packet to send [02:41:03]OFD Sender: No OFD packet to send [02:41:08]OFD Sender: No OFD packet to send [02:41:13]OFD Sender: No OFD packet to send [02:41:18]OFD Sender: No OFD packet to send [02:41:23]OFD Sender: No OFD packet to send [02:41:28]OFD Sender: No OFD packet to send [02:41:33]OFD Sender: No OFD packet to send [02:41:38]OFD Sender: No OFD packet to send [02:41:43]OFD Sender: No OFD packet to send [02:41:48]OFD Sender: No OFD packet to send [02:41:53]OFD Sender: No OFD packet to send [02:41:58]OFD Sender: No OFD packet to send [02:42:03]OFD Sender: No OFD packet to send [02:42:08]OFD Sender: No OFD packet to send [02:42:13]OFD Sender: No OFD packet to send [02:42:18]OFD Sender: No OFD packet to send [02:42:23]OFD Sender: No OFD packet to send [02:42:28]OFD Sender: No OFD packet to send [02:42:33]OFD Sender: No OFD packet to send [02:42:38]OFD Sender: No OFD packet to send [02:42:43]OFD Sender: No OFD packet to send [02:42:48]OFD Sender: No OFD packet to send [02:42:53]OFD Sender: No OFD packet to send [02:42:58]OFD Sender: No OFD packet to send [02:43:03]OFD Sender: No OFD packet to send [02:43:08]OFD Sender: No OFD packet to send [02:43:13]OFD Sender: No OFD packet to send [02:43:18]OFD Sender: No OFD packet to send [02:43:23]OFD Sender: No OFD packet to send [02:43:28]OFD Sender: No OFD packet to send [02:43:33]OFD Sender: No OFD packet to send [02:43:38]OFD Sender: No OFD packet to send [02:43:43]OFD Sender: No OFD packet to send [02:43:48]OFD Sender: No OFD packet to send [02:43:53]OFD Sender: No OFD packet to send [02:43:58]OFD Sender: No OFD packet to send [02:44:03]OFD Sender: No OFD packet to send [02:44:08]OFD Sender: No OFD packet to send [02:44:13]OFD Sender: No OFD packet to send [02:44:18]OFD Sender: No OFD packet to send [02:44:23]OFD Sender: No OFD packet to send [02:44:28]OFD Sender: No OFD packet to send [02:44:33]OFD Sender: No OFD packet to send [02:44:38]OFD Sender: No OFD packet to send [02:44:43]OFD Sender: No OFD packet to send [02:44:48]OFD Sender: No OFD packet to send [02:44:53]OFD Sender: No OFD packet to send [02:44:58]OFD Sender: No OFD packet to send [02:45:03]OFD Sender: No OFD packet to send [02:45:08]OFD Sender: No OFD packet to send [02:45:13]OFD Sender: No OFD packet to send [02:45:18]OFD Sender: No OFD packet to send [02:45:23]OFD Sender: No OFD packet to send [02:45:28]OFD Sender: No OFD packet to send [02:45:33]OFD Sender: No OFD packet to send [02:45:38]OFD Sender: No OFD packet to send [02:45:43]OFD Sender: No OFD packet to send [02:45:48]OFD Sender: No OFD packet to send [02:45:53]OFD Sender: No OFD packet to send [02:45:58]OFD Sender: No OFD packet to send [02:46:03]OFD Sender: No OFD packet to send [02:46:08]OFD Sender: No OFD packet to send [02:46:13]OFD Sender: No OFD packet to send [02:46:18]OFD Sender: No OFD packet to send [02:46:23]OFD Sender: No OFD packet to send [02:46:28]OFD Sender: No OFD packet to send [02:46:33]OFD Sender: No OFD packet to send [02:46:38]OFD Sender: No OFD packet to send [02:46:43]OFD Sender: No OFD packet to send [02:46:48]OFD Sender: No OFD packet to send [02:46:53]OFD Sender: No OFD packet to send [02:46:58]OFD Sender: No OFD packet to send [02:47:03]OFD Sender: No OFD packet to send [02:47:08]OFD Sender: No OFD packet to send [02:47:13]OFD Sender: No OFD packet to send [02:47:18]OFD Sender: No OFD packet to send [02:47:23]OFD Sender: No OFD packet to send [02:47:28]OFD Sender: No OFD packet to send [02:47:33]OFD Sender: No OFD packet to send [02:47:38]OFD Sender: No OFD packet to send [02:47:43]OFD Sender: No OFD packet to send [02:47:48]OFD Sender: No OFD packet to send [02:47:53]OFD Sender: No OFD packet to send [02:47:59]OFD Sender: No OFD packet to send [02:48:04]OFD Sender: No OFD packet to send [02:48:09]OFD Sender: No OFD packet to send [02:48:14]OFD Sender: No OFD packet to send [02:48:19]OFD Sender: No OFD packet to send [02:48:24]OFD Sender: No OFD packet to send [02:48:29]OFD Sender: No OFD packet to send [02:48:34]OFD Sender: No OFD packet to send [02:48:39]OFD Sender: No OFD packet to send [02:48:44]OFD Sender: No OFD packet to send [02:48:49]OFD Sender: No OFD packet to send [02:48:54]OFD Sender: No OFD packet to send [02:48:59]OFD Sender: No OFD packet to send [02:49:04]OFD Sender: No OFD packet to send [02:49:09]OFD Sender: No OFD packet to send [02:49:14]OFD Sender: No OFD packet to send [02:49:19]OFD Sender: No OFD packet to send [02:49:24]OFD Sender: No OFD packet to send [02:49:29]OFD Sender: No OFD packet to send [02:49:34]OFD Sender: No OFD packet to send [02:49:39]OFD Sender: No OFD packet to send [02:49:44]OFD Sender: No OFD packet to send [02:49:49]OFD Sender: No OFD packet to send [02:49:54]OFD Sender: No OFD packet to send [02:49:59]OFD Sender: No OFD packet to send [02:50:04]OFD Sender: No OFD packet to send [02:50:09]OFD Sender: No OFD packet to send [02:50:14]OFD Sender: No OFD packet to send [02:50:19]OFD Sender: No OFD packet to send [02:50:24]OFD Sender: No OFD packet to send [02:50:29]OFD Sender: No OFD packet to send [02:50:34]OFD Sender: No OFD packet to send [02:50:39]OFD Sender: No OFD packet to send [02:50:44]OFD Sender: No OFD packet to send [02:50:49]OFD Sender: No OFD packet to send [02:50:54]OFD Sender: No OFD packet to send [02:50:59]OFD Sender: No OFD packet to send [02:51:04]OFD Sender: No OFD packet to send [02:51:09]OFD Sender: No OFD packet to send [02:51:14]OFD Sender: No OFD packet to send [02:51:19]OFD Sender: No OFD packet to send [02:51:24]OFD Sender: No OFD packet to send [02:51:29]OFD Sender: No OFD packet to send [02:51:34]OFD Sender: No OFD packet to send [02:51:39]OFD Sender: No OFD packet to send [02:51:44]OFD Sender: No OFD packet to send [02:51:49]OFD Sender: No OFD packet to send [02:51:54]OFD Sender: No OFD packet to send [02:51:59]OFD Sender: No OFD packet to send [02:52:04]OFD Sender: No OFD packet to send [02:52:09]OFD Sender: No OFD packet to send [02:52:14]OFD Sender: No OFD packet to send [02:52:19]OFD Sender: No OFD packet to send [02:52:24]OFD Sender: No OFD packet to send [02:52:29]OFD Sender: No OFD packet to send [02:52:34]OFD Sender: No OFD packet to send [02:52:39]OFD Sender: No OFD packet to send [02:52:44]OFD Sender: No OFD packet to send [02:52:49]OFD Sender: No OFD packet to send [02:52:54]OFD Sender: No OFD packet to send [02:52:59]OFD Sender: No OFD packet to send [02:53:04]OFD Sender: No OFD packet to send [02:53:09]OFD Sender: No OFD packet to send [02:53:14]OFD Sender: No OFD packet to send [02:53:19]OFD Sender: No OFD packet to send [02:53:24]OFD Sender: No OFD packet to send [02:53:29]OFD Sender: No OFD packet to send [02:53:34]OFD Sender: No OFD packet to send [02:53:39]OFD Sender: No OFD packet to send [02:53:44]OFD Sender: No OFD packet to send [02:53:49]OFD Sender: No OFD packet to send [02:53:54]OFD Sender: No OFD packet to send [02:53:59]OFD Sender: No OFD packet to send [02:54:04]OFD Sender: No OFD packet to send [02:54:09]OFD Sender: No OFD packet to send [02:54:14]OFD Sender: No OFD packet to send [02:54:19]OFD Sender: No OFD packet to send [02:54:24]OFD Sender: No OFD packet to send [02:54:29]OFD Sender: No OFD packet to send [02:54:34]OFD Sender: No OFD packet to send [02:54:39]OFD Sender: No OFD packet to send [02:54:44]OFD Sender: No OFD packet to send [02:54:49]OFD Sender: No OFD packet to send [02:54:54]OFD Sender: No OFD packet to send [02:54:59]OFD Sender: No OFD packet to send [02:55:04]OFD Sender: No OFD packet to send [02:55:09]OFD Sender: No OFD packet to send [02:55:14]OFD Sender: No OFD packet to send [02:55:19]OFD Sender: No OFD packet to send [02:55:24]OFD Sender: No OFD packet to send [02:55:29]OFD Sender: No OFD packet to send [02:55:34]OFD Sender: No OFD packet to send [02:55:39]OFD Sender: No OFD packet to send [02:55:44]OFD Sender: No OFD packet to send [02:55:49]OFD Sender: No OFD packet to send [02:55:54]OFD Sender: No OFD packet to send [02:55:59]OFD Sender: No OFD packet to send [02:56:04]OFD Sender: No OFD packet to send [02:56:09]OFD Sender: No OFD packet to send [02:56:14]OFD Sender: No OFD packet to send [02:56:19]OFD Sender: No OFD packet to send [02:56:24]OFD Sender: No OFD packet to send [02:56:29]OFD Sender: No OFD packet to send [02:56:34]OFD Sender: No OFD packet to send [02:56:39]OFD Sender: No OFD packet to send [02:56:44]OFD Sender: No OFD packet to send [02:56:49]OFD Sender: No OFD packet to send [02:56:54]OFD Sender: No OFD packet to send [02:56:59]OFD Sender: No OFD packet to send [02:57:04]OFD Sender: No OFD packet to send [02:57:09]OFD Sender: No OFD packet to send [02:57:14]OFD Sender: No OFD packet to send [02:57:19]OFD Sender: No OFD packet to send [02:57:24]OFD Sender: No OFD packet to send [02:57:29]OFD Sender: No OFD packet to send [02:57:34]OFD Sender: No OFD packet to send [02:57:39]OFD Sender: No OFD packet to send [02:57:44]OFD Sender: No OFD packet to send [02:57:49]OFD Sender: No OFD packet to send [02:57:54]OFD Sender: No OFD packet to send [02:57:59]OFD Sender: No OFD packet to send [02:58:04]OFD Sender: No OFD packet to send [02:58:09]OFD Sender: No OFD packet to send [02:58:14]OFD Sender: No OFD packet to send [02:58:19]OFD Sender: No OFD packet to send [02:58:24]OFD Sender: No OFD packet to send [02:58:29]OFD Sender: No OFD packet to send [02:58:34]OFD Sender: No OFD packet to send [02:58:39]OFD Sender: No OFD packet to send [02:58:44]OFD Sender: No OFD packet to send [02:58:49]OFD Sender: No OFD packet to send [02:58:54]OFD Sender: No OFD packet to send [02:58:59]OFD Sender: No OFD packet to send [02:59:04]OFD Sender: No OFD packet to send [02:59:09]OFD Sender: No OFD packet to send [02:59:14]OFD Sender: No OFD packet to send [02:59:19]OFD Sender: No OFD packet to send [02:59:24]OFD Sender: No OFD packet to send [02:59:29]OFD Sender: No OFD packet to send [02:59:34]OFD Sender: No OFD packet to send [02:59:39]OFD Sender: No OFD packet to send [02:59:44]OFD Sender: No OFD packet to send [02:59:49]OFD Sender: No OFD packet to send [02:59:54]OFD Sender: No OFD packet to send [02:59:59]OFD Sender: No OFD packet to send [03:00:04]OFD Sender: No OFD packet to send [03:00:09]OFD Sender: No OFD packet to send [03:00:14]OFD Sender: No OFD packet to send [03:00:19]OFD Sender: No OFD packet to send [03:00:24]OFD Sender: No OFD packet to send [03:00:29]OFD Sender: No OFD packet to send [03:00:34]OFD Sender: No OFD packet to send [03:00:39]OFD Sender: No OFD packet to send [03:00:44]OFD Sender: No OFD packet to send [03:00:49]OFD Sender: No OFD packet to send [03:00:54]OFD Sender: No OFD packet to send [03:00:59]OFD Sender: No OFD packet to send [03:01:04]OFD Sender: No OFD packet to send [03:01:09]OFD Sender: No OFD packet to send [03:01:14]OFD Sender: No OFD packet to send [03:01:19]OFD Sender: No OFD packet to send [03:01:24]OFD Sender: No OFD packet to send [03:01:29]OFD Sender: No OFD packet to send [03:01:34]OFD Sender: No OFD packet to send [03:01:39]OFD Sender: No OFD packet to send [03:01:44]OFD Sender: No OFD packet to send [03:01:49]OFD Sender: No OFD packet to send [03:01:54]OFD Sender: No OFD packet to send [03:01:59]OFD Sender: No OFD packet to send [03:02:04]OFD Sender: No OFD packet to send [03:02:09]OFD Sender: No OFD packet to send [03:02:14]OFD Sender: No OFD packet to send [03:02:19]OFD Sender: No OFD packet to send [03:02:24]OFD Sender: No OFD packet to send [03:02:29]OFD Sender: No OFD packet to send [03:02:34]OFD Sender: No OFD packet to send [03:02:39]OFD Sender: No OFD packet to send [03:02:44]OFD Sender: No OFD packet to send [03:02:49]OFD Sender: No OFD packet to send [03:02:54]OFD Sender: No OFD packet to send [03:02:59]OFD Sender: No OFD packet to send [03:03:04]OFD Sender: No OFD packet to send [03:03:09]OFD Sender: No OFD packet to send [03:03:14]OFD Sender: No OFD packet to send [03:03:19]OFD Sender: No OFD packet to send [03:03:24]OFD Sender: No OFD packet to send [03:03:29]OFD Sender: No OFD packet to send [03:03:34]OFD Sender: No OFD packet to send [03:03:39]OFD Sender: No OFD packet to send [03:03:44]OFD Sender: No OFD packet to send [03:03:49]OFD Sender: No OFD packet to send [03:03:54]OFD Sender: No OFD packet to send [03:03:59]OFD Sender: No OFD packet to send [03:04:04]OFD Sender: No OFD packet to send [03:04:09]OFD Sender: No OFD packet to send [03:04:14]OFD Sender: No OFD packet to send [03:04:19]OFD Sender: No OFD packet to send [03:04:24]OFD Sender: No OFD packet to send [03:04:29]OFD Sender: No OFD packet to send [03:04:34]OFD Sender: No OFD packet to send [03:04:39]OFD Sender: No OFD packet to send [03:04:44]OFD Sender: No OFD packet to send [03:04:49]OFD Sender: No OFD packet to send [03:04:54]OFD Sender: No OFD packet to send [03:04:59]OFD Sender: No OFD packet to send [03:05:04]OFD Sender: No OFD packet to send [03:05:09]OFD Sender: No OFD packet to send [03:05:14]OFD Sender: No OFD packet to send [03:05:19]OFD Sender: No OFD packet to send [03:05:24]OFD Sender: No OFD packet to send [03:05:29]OFD Sender: No OFD packet to send [03:05:34]OFD Sender: No OFD packet to send [03:05:39]OFD Sender: No OFD packet to send [03:05:44]OFD Sender: No OFD packet to send [03:05:49]OFD Sender: No OFD packet to send [03:05:54]OFD Sender: No OFD packet to send [03:05:59]OFD Sender: No OFD packet to send [03:06:04]OFD Sender: No OFD packet to send [03:06:09]OFD Sender: No OFD packet to send [03:06:14]OFD Sender: No OFD packet to send [03:06:19]OFD Sender: No OFD packet to send [03:06:24]OFD Sender: No OFD packet to send [03:06:29]OFD Sender: No OFD packet to send [03:06:34]OFD Sender: No OFD packet to send [03:06:39]OFD Sender: No OFD packet to send [03:06:44]OFD Sender: No OFD packet to send [03:06:49]OFD Sender: No OFD packet to send [03:06:54]OFD Sender: No OFD packet to send [03:06:59]OFD Sender: No OFD packet to send [03:07:04]OFD Sender: No OFD packet to send [03:07:09]OFD Sender: No OFD packet to send [03:07:14]OFD Sender: No OFD packet to send [03:07:19]OFD Sender: No OFD packet to send [03:07:24]OFD Sender: No OFD packet to send [03:07:29]OFD Sender: No OFD packet to send [03:07:34]OFD Sender: No OFD packet to send [03:07:39]OFD Sender: No OFD packet to send [03:07:44]OFD Sender: No OFD packet to send [03:07:50]OFD Sender: No OFD packet to send [03:07:55]OFD Sender: No OFD packet to send [03:08:00]OFD Sender: No OFD packet to send [03:08:05]OFD Sender: No OFD packet to send [03:08:10]OFD Sender: No OFD packet to send [03:08:15]OFD Sender: No OFD packet to send [03:08:20]OFD Sender: No OFD packet to send [03:08:25]OFD Sender: No OFD packet to send [03:08:30]OFD Sender: No OFD packet to send [03:08:35]OFD Sender: No OFD packet to send [03:08:40]OFD Sender: No OFD packet to send [03:08:45]OFD Sender: No OFD packet to send [03:08:50]OFD Sender: No OFD packet to send [03:08:55]OFD Sender: No OFD packet to send [03:09:00]OFD Sender: No OFD packet to send [03:09:05]OFD Sender: No OFD packet to send [03:09:10]OFD Sender: No OFD packet to send [03:09:15]OFD Sender: No OFD packet to send [03:09:20]OFD Sender: No OFD packet to send [03:09:25]OFD Sender: No OFD packet to send [03:09:30]OFD Sender: No OFD packet to send [03:09:35]OFD Sender: No OFD packet to send [03:09:40]OFD Sender: No OFD packet to send [03:09:45]OFD Sender: No OFD packet to send [03:09:50]OFD Sender: No OFD packet to send [03:09:55]OFD Sender: No OFD packet to send [03:10:00]OFD Sender: No OFD packet to send [03:10:05]OFD Sender: No OFD packet to send [03:10:10]OFD Sender: No OFD packet to send [03:10:15]OFD Sender: No OFD packet to send [03:10:20]OFD Sender: No OFD packet to send [03:10:25]OFD Sender: No OFD packet to send [03:10:30]OFD Sender: No OFD packet to send [03:10:35]OFD Sender: No OFD packet to send [03:10:40]OFD Sender: No OFD packet to send [03:10:45]OFD Sender: No OFD packet to send [03:10:50]OFD Sender: No OFD packet to send [03:10:55]OFD Sender: No OFD packet to send [03:11:00]OFD Sender: No OFD packet to send [03:11:05]OFD Sender: No OFD packet to send [03:11:10]OFD Sender: No OFD packet to send [03:11:15]OFD Sender: No OFD packet to send [03:11:20]OFD Sender: No OFD packet to send [03:11:25]OFD Sender: No OFD packet to send [03:11:30]OFD Sender: No OFD packet to send [03:11:35]OFD Sender: No OFD packet to send [03:11:40]OFD Sender: No OFD packet to send [03:11:45]OFD Sender: No OFD packet to send [03:11:50]OFD Sender: No OFD packet to send [03:11:55]OFD Sender: No OFD packet to send [03:12:00]OFD Sender: No OFD packet to send [03:12:05]OFD Sender: No OFD packet to send [03:12:10]OFD Sender: No OFD packet to send [03:12:15]OFD Sender: No OFD packet to send [03:12:20]OFD Sender: No OFD packet to send [03:12:25]OFD Sender: No OFD packet to send [03:12:30]OFD Sender: No OFD packet to send [03:12:35]OFD Sender: No OFD packet to send [03:12:40]OFD Sender: No OFD packet to send [03:12:45]OFD Sender: No OFD packet to send [03:12:50]OFD Sender: No OFD packet to send [03:12:55]OFD Sender: No OFD packet to send [03:13:00]OFD Sender: No OFD packet to send [03:13:05]OFD Sender: No OFD packet to send [03:13:10]OFD Sender: No OFD packet to send [03:13:15]OFD Sender: No OFD packet to send [03:13:20]OFD Sender: No OFD packet to send [03:13:25]OFD Sender: No OFD packet to send [03:13:30]OFD Sender: No OFD packet to send [03:13:35]OFD Sender: No OFD packet to send [03:13:40]OFD Sender: No OFD packet to send [03:13:45]OFD Sender: No OFD packet to send [03:13:50]OFD Sender: No OFD packet to send [03:13:55]OFD Sender: No OFD packet to send [03:14:00]OFD Sender: No OFD packet to send [03:14:05]OFD Sender: No OFD packet to send [03:14:10]OFD Sender: No OFD packet to send [03:14:15]OFD Sender: No OFD packet to send [03:14:20]OFD Sender: No OFD packet to send [03:14:25]OFD Sender: No OFD packet to send [03:14:30]OFD Sender: No OFD packet to send [03:14:35]OFD Sender: No OFD packet to send [03:14:40]OFD Sender: No OFD packet to send [03:14:45]OFD Sender: No OFD packet to send [03:14:50]OFD Sender: No OFD packet to send [03:14:55]OFD Sender: No OFD packet to send [03:15:00]OFD Sender: No OFD packet to send [03:15:05]OFD Sender: No OFD packet to send [03:15:10]OFD Sender: No OFD packet to send [03:15:15]OFD Sender: No OFD packet to send [03:15:20]OFD Sender: No OFD packet to send [03:15:25]OFD Sender: No OFD packet to send [03:15:30]OFD Sender: No OFD packet to send [03:15:35]OFD Sender: No OFD packet to send [03:15:40]OFD Sender: No OFD packet to send [03:15:45]OFD Sender: No OFD packet to send [03:15:50]OFD Sender: No OFD packet to send [03:15:55]OFD Sender: No OFD packet to send [03:16:00]OFD Sender: No OFD packet to send [03:16:05]OFD Sender: No OFD packet to send [03:16:10]OFD Sender: No OFD packet to send [03:16:15]OFD Sender: No OFD packet to send [03:16:20]OFD Sender: No OFD packet to send [03:16:25]OFD Sender: No OFD packet to send [03:16:30]OFD Sender: No OFD packet to send [03:16:35]OFD Sender: No OFD packet to send [03:16:40]OFD Sender: No OFD packet to send [03:16:45]OFD Sender: No OFD packet to send [03:16:50]OFD Sender: No OFD packet to send [03:16:55]OFD Sender: No OFD packet to send [03:17:00]OFD Sender: No OFD packet to send [03:17:05]OFD Sender: No OFD packet to send [03:17:10]OFD Sender: No OFD packet to send [03:17:15]OFD Sender: No OFD packet to send [03:17:20]OFD Sender: No OFD packet to send [03:17:25]OFD Sender: No OFD packet to send [03:17:30]OFD Sender: No OFD packet to send [03:17:35]OFD Sender: No OFD packet to send [03:17:40]OFD Sender: No OFD packet to send [03:17:45]OFD Sender: No OFD packet to send [03:17:50]OFD Sender: No OFD packet to send [03:17:55]OFD Sender: No OFD packet to send [03:18:00]OFD Sender: No OFD packet to send [03:18:05]OFD Sender: No OFD packet to send [03:18:10]OFD Sender: No OFD packet to send [03:18:15]OFD Sender: No OFD packet to send [03:18:20]OFD Sender: No OFD packet to send [03:18:25]OFD Sender: No OFD packet to send [03:18:30]OFD Sender: No OFD packet to send [03:18:35]OFD Sender: No OFD packet to send [03:18:40]OFD Sender: No OFD packet to send [03:18:45]OFD Sender: No OFD packet to send [03:18:50]OFD Sender: No OFD packet to send [03:18:55]OFD Sender: No OFD packet to send [03:19:00]OFD Sender: No OFD packet to send [03:19:05]OFD Sender: No OFD packet to send [03:19:10]OFD Sender: No OFD packet to send [03:19:15]OFD Sender: No OFD packet to send [03:19:20]OFD Sender: No OFD packet to send [03:19:25]OFD Sender: No OFD packet to send [03:19:30]OFD Sender: No OFD packet to send [03:19:35]OFD Sender: No OFD packet to send [03:19:40]OFD Sender: No OFD packet to send [03:19:45]OFD Sender: No OFD packet to send